Upgrade to version 1.0.7.6
[texmacs.git] / src / configure
blobb3c19618a4f409e6c501efcad17db01d63fc03ae
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 # Factoring default headers for most tests.
558 ac_includes_default="\
559 #include <stdio.h>
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
562 #endif
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
565 #endif
566 #ifdef STDC_HEADERS
567 # include <stdlib.h>
568 # include <stddef.h>
569 #else
570 # ifdef HAVE_STDLIB_H
571 # include <stdlib.h>
572 # endif
573 #endif
574 #ifdef HAVE_STRING_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576 # include <memory.h>
577 # endif
578 # include <string.h>
579 #endif
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
582 #endif
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
585 #endif
586 #ifdef HAVE_STDINT_H
587 # include <stdint.h>
588 #endif
589 #ifdef HAVE_UNISTD_H
590 # include <unistd.h>
591 #endif"
593 ac_subst_vars='LTLIBOBJS
594 LIBOBJS
595 tmwin
596 tmsrpm
597 tmstgz
598 tmrpm
599 tmtgz
600 tmdata
601 tmbin
602 tmsrc
603 tmdir
604 tmorig
605 CONFIG_NATIVE_ARCH_TAG
606 CONFIG_LDRT
607 CONFIG_CHMOD
608 CONFIG_STRIP
609 CONFIG_LIB_PATH
610 CONFIG_SO
611 CONFIG_STD_SETENV
612 CONFIG_CXXFLAGS
613 CONFIG_MAX_FAST
614 CONFIG_WORD_MASK
615 CONFIG_WORD_LENGTH_INC
616 CONFIG_WORD_LENGTH
617 CONFIG_BPATH
618 CONFIG_BSHARED
619 CONFIG_BSTATIC
620 CONFIG_BFLAGS
621 CONFIG_CXXDEBUG
622 CONFIG_CXXOPTIMIZE
623 CONFIG_CXXTEMPLATE
624 CONFIG_CXXWARNING
625 CONFIG_OS_COMPAT
626 CONFIG_OS_SUFFIX
627 CONFIG_OS
628 CONFIG_CXXDIALECT
629 CONFIG_GUI_DEFINE
630 CONFIG_GUI
631 CONFIG_QT
632 CONFIG_COCOA
633 CONFIG_X11
634 COCOA_LDFLAGS
635 COCOA_CFLAGS
636 X11_LDFLAGS
637 X11_CFLAGS
638 QT_LIBS
639 QT_LFLAGS
640 QT_LDFLAGS
641 QT_CPPFLAGS
642 QT_INCPATH
643 QT_CXXFLAGS
644 QT_CFLAGS
645 QT_DEFINES
646 QT_VERSION_MAJOR
647 TMPDIR
648 QT_PATH
652 QMAKE
653 CONFIG_PDF
654 CONFIG_MACOS
655 CONFIG_EXPERIMENTAL
656 GS_DLL
657 GS_EXE
658 CONFIG_GS
659 HAS_GS_LIB
660 HAS_GS_EXE
661 AXEL_LDFLAGS
662 AXEL_CFLAGS
663 IMLIB2_LDFLAGS
664 IMLIB2_CFLAGS
665 CAIRO_LDFLAGS
666 CAIRO_CFLAGS
667 FREETYPE_LDFLAGS
668 FREETYPE_CFLAGS
669 ICONV_LDFLAGS
670 ICONV_CFLAGS
672 CONFIG_BDL
673 X_EXTRA_LIBS
674 X_LIBS
675 X_PRE_LIBS
676 X_CFLAGS
677 XMKMF
678 EGREP
679 GREP
680 CXXCPP
681 CONFIG_GUILE_SERIAL
682 GUILE_LDFLAGS
683 GUILE_CFLAGS
684 ac_ct_CXX
685 CXXFLAGS
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
694 STABLE_RELEASE
695 STABLE_VERSION
696 DEVEL_RELEASE
697 DEVEL_VERSION
698 PACKAGE
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 with_x
749 with_iconv
750 with_freetype
751 with_cairo
752 with_imlib2
753 with_axel
754 with_gs
755 enable_fastalloc
756 enable_experimental
757 enable_macosx_extensions
758 enable_pdf_renderer
759 enable_qt
760 with_qt
761 enable_qtpipes
762 enable_cocoa
763 enable_debug
764 enable_assert
765 enable_warnings
766 enable_optimize
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
777 CXXFLAGS
779 CXXCPP
780 XMKMF
782 TMPDIR'
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
833 ac_prev=
834 ac_dashdash=
835 for ac_option
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
854 ac_dashdash=yes ;;
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
873 --config-cache | -C)
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 esac
1191 done
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used" >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1277 /^X\(\/\/\)$/{
1278 s//\1/
1281 /^X\(\/\).*/{
1282 s//\1/
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1290 else
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures this package to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1380 cat <<\_ACEOF
1382 X features:
1383 --x-includes=DIR X include files are in DIR
1384 --x-libraries=DIR X library files are in DIR
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1392 if test -n "$ac_init_help"; then
1394 cat <<\_ACEOF
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --disable-fastalloc omit fast allocator for small objects
1401 --enable-experimental support new style rewriting code
1402 --enable-macosx-extensions support new style rewriting code
1403 --enable-pdf-renderer use experimental PDF renderer for pdf export
1404 --enable-qt replace X11 by Qt interface
1405 --enable-qtpipes replace UNIX pipes by Qt pipes
1406 --enable-cocoa replace X11 by Cocoa interface
1407 --enable-debug=ARG install a debugging enable executable -ggdb
1408 --enable-assert exit on failed assertions in code
1409 --enable-warnings print warning messages during compilation
1410 --enable-optimize=ARG compile with optimizations guessed
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-x use the X Window System
1416 --with-iconv=DIR where to find iconv system
1417 --with-freetype=ARG with freetype support ARG=linked
1418 --with-cairo=ARG with cairo support ARG=no
1419 --with-imlib2=ARG with imlib2 support ARG=no
1420 --with-axel=ARG with axel support ARG=no
1421 --with-gs=ARG with ghostscript support ARG=yes
1422 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CXX C++ compiler command
1433 CXXFLAGS C++ compiler flags
1434 CXXCPP C++ preprocessor
1435 XMKMF Path to xmkmf, Makefile generator for X Window System
1436 CPP C preprocessor
1437 TMPDIR A temporary directory with write access [/tmp]
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1442 Report bugs to the package provider.
1443 _ACEOF
1444 ac_status=$?
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 configure
1506 generated by GNU Autoconf 2.67
1508 Copyright (C) 2010 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=1
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_c_try_compile
1557 # ac_fn_cxx_try_compile LINENO
1558 # ----------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1588 ac_retval=1
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_cxx_try_compile
1595 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1596 # ---------------------------------------------
1597 # Tests whether TYPE exists after having included INCLUDES, setting cache
1598 # variable VAR accordingly.
1599 ac_fn_cxx_check_type ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if eval "test \"\${$3+set}\"" = set; then :
1605 $as_echo_n "(cached) " >&6
1606 else
1607 eval "$3=no"
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1612 main ()
1614 if (sizeof ($2))
1615 return 0;
1617 return 0;
1619 _ACEOF
1620 if ac_fn_cxx_try_compile "$LINENO"; then :
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1625 main ()
1627 if (sizeof (($2)))
1628 return 0;
1630 return 0;
1632 _ACEOF
1633 if ac_fn_cxx_try_compile "$LINENO"; then :
1635 else
1636 eval "$3=yes"
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_cxx_check_type
1649 # ac_fn_cxx_try_cpp LINENO
1650 # ------------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_cpp ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_cxx_try_cpp
1686 # ac_fn_cxx_try_run LINENO
1687 # ------------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_cxx_try_run ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=$ac_status
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_cxx_try_run
1728 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1729 # ---------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_cxx_check_header_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval "test \"\${$3+set}\"" = set; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_cxx_try_compile "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_cxx_check_header_compile
1759 # ac_fn_cxx_try_link LINENO
1760 # -------------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_link ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 $as_test_x conftest$ac_exeext
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_cxx_try_link
1805 # ac_fn_cxx_check_func LINENO FUNC VAR
1806 # ------------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_cxx_check_func ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval "test \"\${$3+set}\"" = set; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1833 #undef $2
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1850 main ()
1852 return $2 ();
1854 return 0;
1856 _ACEOF
1857 if ac_fn_cxx_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_cxx_check_func
1872 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1873 # ---------------------------------------------------------
1874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875 # the include files in INCLUDES and setting the cache variable VAR
1876 # accordingly.
1877 ac_fn_cxx_check_header_mongrel ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if eval "test \"\${$3+set}\"" = set; then :
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval "test \"\${$3+set}\"" = set; then :
1884 $as_echo_n "(cached) " >&6
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 else
1890 # Is the header compilable?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892 $as_echo_n "checking $2 usability... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_cxx_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1900 else
1901 ac_header_compiler=no
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905 $as_echo "$ac_header_compiler" >&6; }
1907 # Is the header present?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909 $as_echo_n "checking $2 presence... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_cxx_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1916 else
1917 ac_header_preproc=no
1919 rm -f conftest.err conftest.i conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921 $as_echo "$ac_header_preproc" >&6; }
1923 # So? What about this header?
1924 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1925 yes:no: )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 no:yes:* )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 esac
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval "test \"\${$3+set}\"" = set; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 eval "$3=\$ac_header_compiler"
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_cxx_check_header_mongrel
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_c_try_cpp ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } > conftest.i && {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 }; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1989 ac_retval=1
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 as_fn_set_status $ac_retval
1994 } # ac_fn_c_try_cpp
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2000 # accordingly.
2001 ac_fn_c_check_header_mongrel ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if eval "test \"\${$3+set}\"" = set; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval "test \"\${$3+set}\"" = set; then :
2008 $as_echo_n "(cached) " >&6
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 else
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_header_compiler=yes
2024 else
2025 ac_header_compiler=no
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039 ac_header_preproc=yes
2040 else
2041 ac_header_preproc=no
2043 rm -f conftest.err conftest.i conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2049 yes:no: )
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 no:yes:* )
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 esac
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval "test \"\${$3+set}\"" = set; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 eval "$3=\$ac_header_compiler"
2075 eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_header_mongrel
2083 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2084 # ----------------------------------------------
2085 # Tries to find the compile-time value of EXPR in a program that includes
2086 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2087 # computed
2088 ac_fn_cxx_compute_int ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if test "$cross_compiling" = yes; then
2092 # Depending upon the size, compute the lo and hi bounds.
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 static int test_array [1 - 2 * !(($2) >= 0)];
2100 test_array [0] = 0
2103 return 0;
2105 _ACEOF
2106 if ac_fn_cxx_try_compile "$LINENO"; then :
2107 ac_lo=0 ac_mid=0
2108 while :; do
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2113 main ()
2115 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 test_array [0] = 0
2119 return 0;
2121 _ACEOF
2122 if ac_fn_cxx_try_compile "$LINENO"; then :
2123 ac_hi=$ac_mid; break
2124 else
2125 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126 if test $ac_lo -le $ac_mid; then
2127 ac_lo= ac_hi=
2128 break
2130 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 done
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 static int test_array [1 - 2 * !(($2) < 0)];
2142 test_array [0] = 0
2145 return 0;
2147 _ACEOF
2148 if ac_fn_cxx_try_compile "$LINENO"; then :
2149 ac_hi=-1 ac_mid=-1
2150 while :; do
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2158 test_array [0] = 0
2161 return 0;
2163 _ACEOF
2164 if ac_fn_cxx_try_compile "$LINENO"; then :
2165 ac_lo=$ac_mid; break
2166 else
2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2168 if test $ac_mid -le $ac_hi; then
2169 ac_lo= ac_hi=
2170 break
2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 else
2177 ac_lo= ac_hi=
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 # Binary search between lo and hi bounds.
2183 while test "x$ac_lo" != "x$ac_hi"; do
2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2189 main ()
2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 test_array [0] = 0
2195 return 0;
2197 _ACEOF
2198 if ac_fn_cxx_try_compile "$LINENO"; then :
2199 ac_hi=$ac_mid
2200 else
2201 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 case $ac_lo in #((
2206 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2207 '') ac_retval=1 ;;
2208 esac
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2213 static long int longval () { return $2; }
2214 static unsigned long int ulongval () { return $2; }
2215 #include <stdio.h>
2216 #include <stdlib.h>
2218 main ()
2221 FILE *f = fopen ("conftest.val", "w");
2222 if (! f)
2223 return 1;
2224 if (($2) < 0)
2226 long int i = longval ();
2227 if (i != ($2))
2228 return 1;
2229 fprintf (f, "%ld", i);
2231 else
2233 unsigned long int i = ulongval ();
2234 if (i != ($2))
2235 return 1;
2236 fprintf (f, "%lu", i);
2238 /* Do not output a trailing newline, as this causes \r\n confusion
2239 on some platforms. */
2240 return ferror (f) || fclose (f) != 0;
2243 return 0;
2245 _ACEOF
2246 if ac_fn_cxx_try_run "$LINENO"; then :
2247 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2248 else
2249 ac_retval=1
2251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2252 conftest.$ac_objext conftest.beam conftest.$ac_ext
2253 rm -f conftest.val
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257 as_fn_set_status $ac_retval
2259 } # ac_fn_cxx_compute_int
2260 cat >config.log <<_ACEOF
2261 This file contains any messages produced by compilers while
2262 running configure, to aid debugging if configure makes a mistake.
2264 It was created by $as_me, which was
2265 generated by GNU Autoconf 2.67. Invocation command line was
2267 $ $0 $@
2269 _ACEOF
2270 exec 5>>config.log
2272 cat <<_ASUNAME
2273 ## --------- ##
2274 ## Platform. ##
2275 ## --------- ##
2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2294 _ASUNAME
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 $as_echo "PATH: $as_dir"
2302 done
2303 IFS=$as_save_IFS
2305 } >&5
2307 cat >&5 <<_ACEOF
2310 ## ----------- ##
2311 ## Core tests. ##
2312 ## ----------- ##
2314 _ACEOF
2317 # Keep a trace of the command line.
2318 # Strip out --no-create and --no-recursion so they do not pile up.
2319 # Strip out --silent because we don't want to record it for future runs.
2320 # Also quote any args containing shell meta-characters.
2321 # Make two passes to allow for proper duplicate-argument suppression.
2322 ac_configure_args=
2323 ac_configure_args0=
2324 ac_configure_args1=
2325 ac_must_keep_next=false
2326 for ac_pass in 1 2
2328 for ac_arg
2330 case $ac_arg in
2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2333 | -silent | --silent | --silen | --sile | --sil)
2334 continue ;;
2335 *\'*)
2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 esac
2338 case $ac_pass in
2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2341 as_fn_append ac_configure_args1 " '$ac_arg'"
2342 if test $ac_must_keep_next = true; then
2343 ac_must_keep_next=false # Got value, back to normal.
2344 else
2345 case $ac_arg in
2346 *=* | --config-cache | -C | -disable-* | --disable-* \
2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2349 | -with-* | --with-* | -without-* | --without-* | --x)
2350 case "$ac_configure_args0 " in
2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2352 esac
2354 -* ) ac_must_keep_next=true ;;
2355 esac
2357 as_fn_append ac_configure_args " '$ac_arg'"
2359 esac
2360 done
2361 done
2362 { ac_configure_args0=; unset ac_configure_args0;}
2363 { ac_configure_args1=; unset ac_configure_args1;}
2365 # When interrupted or exit'd, cleanup temporary files, and complete
2366 # config.log. We remove comments because anyway the quotes in there
2367 # would cause problems or look ugly.
2368 # WARNING: Use '\'' to represent an apostrophe within the trap.
2369 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2370 trap 'exit_status=$?
2371 # Save into config.log some information that might help in debugging.
2373 echo
2375 $as_echo "## ---------------- ##
2376 ## Cache variables. ##
2377 ## ---------------- ##"
2378 echo
2379 # The following way of writing the cache mishandles newlines in values,
2381 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2382 eval ac_val=\$$ac_var
2383 case $ac_val in #(
2384 *${as_nl}*)
2385 case $ac_var in #(
2386 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2387 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2388 esac
2389 case $ac_var in #(
2390 _ | IFS | as_nl) ;; #(
2391 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2392 *) { eval $ac_var=; unset $ac_var;} ;;
2393 esac ;;
2394 esac
2395 done
2396 (set) 2>&1 |
2397 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2398 *${as_nl}ac_space=\ *)
2399 sed -n \
2400 "s/'\''/'\''\\\\'\'''\''/g;
2401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2402 ;; #(
2404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406 esac |
2407 sort
2409 echo
2411 $as_echo "## ----------------- ##
2412 ## Output variables. ##
2413 ## ----------------- ##"
2414 echo
2415 for ac_var in $ac_subst_vars
2417 eval ac_val=\$$ac_var
2418 case $ac_val in
2419 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420 esac
2421 $as_echo "$ac_var='\''$ac_val'\''"
2422 done | sort
2423 echo
2425 if test -n "$ac_subst_files"; then
2426 $as_echo "## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##"
2429 echo
2430 for ac_var in $ac_subst_files
2432 eval ac_val=\$$ac_var
2433 case $ac_val in
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 esac
2436 $as_echo "$ac_var='\''$ac_val'\''"
2437 done | sort
2438 echo
2441 if test -s confdefs.h; then
2442 $as_echo "## ----------- ##
2443 ## confdefs.h. ##
2444 ## ----------- ##"
2445 echo
2446 cat confdefs.h
2447 echo
2449 test "$ac_signal" != 0 &&
2450 $as_echo "$as_me: caught signal $ac_signal"
2451 $as_echo "$as_me: exit $exit_status"
2452 } >&5
2453 rm -f core *.core core.conftest.* &&
2454 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455 exit $exit_status
2457 for ac_signal in 1 2 13 15; do
2458 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 done
2460 ac_signal=0
2462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2463 rm -f -r conftest* confdefs.h
2465 $as_echo "/* confdefs.h */" > confdefs.h
2467 # Predefined preprocessor variables.
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_NAME "$PACKAGE_NAME"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_STRING "$PACKAGE_STRING"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487 _ACEOF
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_URL "$PACKAGE_URL"
2491 _ACEOF
2494 # Let the site file select an alternate cache file if it wants to.
2495 # Prefer an explicitly selected file to automatically selected ones.
2496 ac_site_file1=NONE
2497 ac_site_file2=NONE
2498 if test -n "$CONFIG_SITE"; then
2499 # We do not want a PATH search for config.site.
2500 case $CONFIG_SITE in #((
2501 -*) ac_site_file1=./$CONFIG_SITE;;
2502 */*) ac_site_file1=$CONFIG_SITE;;
2503 *) ac_site_file1=./$CONFIG_SITE;;
2504 esac
2505 elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2508 else
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2512 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2514 test "x$ac_site_file" = xNONE && continue
2515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2518 sed 's/^/| /' "$ac_site_file" >&5
2519 . "$ac_site_file" \
2520 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 as_fn_error $? "failed to load site script $ac_site_file
2523 See \`config.log' for more details" "$LINENO" 5; }
2525 done
2527 if test -r "$cache_file"; then
2528 # Some versions of bash will fail to source /dev/null (special files
2529 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2530 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2532 $as_echo "$as_me: loading cache $cache_file" >&6;}
2533 case $cache_file in
2534 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2535 *) . "./$cache_file";;
2536 esac
2538 else
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2540 $as_echo "$as_me: creating cache $cache_file" >&6;}
2541 >$cache_file
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2593 done
2594 if $ac_cache_corrupted; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2601 ## -------------------- ##
2602 ## Main body of script. ##
2603 ## -------------------- ##
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
2614 ac_aux_dir=
2615 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2616 if test -f "$ac_dir/install-sh"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/install-sh -c"
2619 break
2620 elif test -f "$ac_dir/install.sh"; then
2621 ac_aux_dir=$ac_dir
2622 ac_install_sh="$ac_aux_dir/install.sh -c"
2623 break
2624 elif test -f "$ac_dir/shtool"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/shtool install -c"
2627 break
2629 done
2630 if test -z "$ac_aux_dir"; then
2631 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2634 # These three variables are undocumented and unsupported,
2635 # and are intended to be withdrawn in a future Autoconf release.
2636 # They can cause serious problems if a builder's source tree is in a directory
2637 # whose full name contains unusual characters.
2638 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2639 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2640 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2643 # Make sure we can run config.sub.
2644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2645 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2648 $as_echo_n "checking build system type... " >&6; }
2649 if test "${ac_cv_build+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 ac_build_alias=$build_alias
2653 test "x$ac_build_alias" = x &&
2654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2655 test "x$ac_build_alias" = x &&
2656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2664 *-*-*) ;;
2665 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2666 esac
2667 build=$ac_cv_build
2668 ac_save_IFS=$IFS; IFS='-'
2669 set x $ac_cv_build
2670 shift
2671 build_cpu=$1
2672 build_vendor=$2
2673 shift; shift
2674 # Remember, the first character of IFS is used to create $*,
2675 # except with old shells:
2676 build_os=$*
2677 IFS=$ac_save_IFS
2678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2682 $as_echo_n "checking host system type... " >&6; }
2683 if test "${ac_cv_host+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test "x$host_alias" = x; then
2687 ac_cv_host=$ac_cv_build
2688 else
2689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2695 $as_echo "$ac_cv_host" >&6; }
2696 case $ac_cv_host in
2697 *-*-*) ;;
2698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2699 esac
2700 host=$ac_cv_host
2701 ac_save_IFS=$IFS; IFS='-'
2702 set x $ac_cv_host
2703 shift
2704 host_cpu=$1
2705 host_vendor=$2
2706 shift; shift
2707 # Remember, the first character of IFS is used to create $*,
2708 # except with old shells:
2709 host_os=$*
2710 IFS=$ac_save_IFS
2711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2715 PACKAGE="TeXmacs"
2716 DEVEL_VERSION="1.0.7.6"
2717 DEVEL_RELEASE="1"
2718 STABLE_VERSION="1.0.7"
2719 STABLE_RELEASE="1"
2720 WINDOWS_VERSION="1.0.5"
2721 WINDOWS_RELEASE="1"
2728 #--------------------------------------------------------------------
2729 # Checks for C++ compiler
2730 #--------------------------------------------------------------------
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2761 IFS=$as_save_IFS
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2776 if test -z "$ac_cv_prog_CC"; then
2777 ac_ct_CC=$CC
2778 # Extract the first word of "gcc", so it can be a program name with args.
2779 set dummy gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_ac_ct_CC="gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2801 IFS=$as_save_IFS
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2825 else
2826 CC="$ac_cv_prog_CC"
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}cc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2852 done
2853 done
2854 IFS=$as_save_IFS
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 ac_prog_rejected=no
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected=yes
2891 continue
2893 ac_cv_prog_CC="cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2901 if test $ac_prog_rejected = yes; then
2902 # We found a bogon in the path, so make sure we never use it.
2903 set dummy $ac_cv_prog_CC
2904 shift
2905 if test $# != 0; then
2906 # We chose a different compiler from the bogus one.
2907 # However, it has the same basename, so the bogon will be chosen
2908 # first if we set CC to just the basename; use the full file name.
2909 shift
2910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in cl.exe
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2967 test -n "$CC" && break
2968 done
2970 if test -z "$CC"; then
2971 ac_ct_CC=$CC
2972 for ac_prog in cl.exe
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$ac_ct_CC" && break
3012 done
3014 if test "x$ac_ct_CC" = x; then
3015 CC=""
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 CC=$ac_ct_CC
3030 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error $? "no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details" "$LINENO" 5; }
3035 # Provide some information about the compiler.
3036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3037 set X $ac_compile
3038 ac_compiler=$2
3039 for ac_option in --version -v -V -qversion; do
3040 { { ac_try="$ac_compiler $ac_option >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 ac_status=$?
3049 if test -s conftest.err; then
3050 sed '10a\
3051 ... rest of stderr output deleted ...
3052 10q' conftest.err >conftest.er1
3053 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058 done
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3064 main ()
3068 return 0;
3070 _ACEOF
3071 ac_clean_files_save=$ac_clean_files
3072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073 # Try to create an executable without -o first, disregard a.out.
3074 # It will help us diagnose broken compilers, and finding out an intuition
3075 # of exeext.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3077 $as_echo_n "checking whether the C compiler works... " >&6; }
3078 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 # The possible output files:
3081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083 ac_rmfiles=
3084 for ac_file in $ac_files
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089 esac
3090 done
3091 rm -f $ac_rmfiles
3093 if { { ac_try="$ac_link_default"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link_default") 2>&5
3101 ac_status=$?
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3107 # so that the user can short-circuit this test for compilers unknown to
3108 # Autoconf.
3109 for ac_file in $ac_files ''
3111 test -f "$ac_file" || continue
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3115 [ab].out )
3116 # We found the default executable, but exeext='' is most
3117 # certainly right.
3118 break;;
3119 *.* )
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 then :; else
3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3128 # actually working.
3129 break;;
3131 break;;
3132 esac
3133 done
3134 test "$ac_cv_exeext" = no && ac_cv_exeext=
3136 else
3137 ac_file=''
3139 if test -z "$ac_file"; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error 77 "C compiler cannot create executables
3148 See \`config.log' for more details" "$LINENO" 5; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3151 $as_echo "yes" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3154 $as_echo_n "checking for C compiler default output file name... " >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3156 $as_echo "$ac_file" >&6; }
3157 ac_exeext=$ac_cv_exeext
3159 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3160 ac_clean_files=$ac_clean_files_save
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3162 $as_echo_n "checking for suffix of executables... " >&6; }
3163 if { { ac_try="$ac_link"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }; then :
3174 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3175 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3176 # work properly (i.e., refer to `conftest.exe'), while it won't with
3177 # `rm'.
3178 for ac_file in conftest.exe conftest conftest.*; do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3183 break;;
3184 * ) break;;
3185 esac
3186 done
3187 else
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3191 See \`config.log' for more details" "$LINENO" 5; }
3193 rm -f conftest conftest$ac_cv_exeext
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3195 $as_echo "$ac_cv_exeext" >&6; }
3197 rm -f conftest.$ac_ext
3198 EXEEXT=$ac_cv_exeext
3199 ac_exeext=$EXEEXT
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202 #include <stdio.h>
3204 main ()
3206 FILE *f = fopen ("conftest.out", "w");
3207 return ferror (f) || fclose (f) != 0;
3210 return 0;
3212 _ACEOF
3213 ac_clean_files="$ac_clean_files conftest.out"
3214 # Check that the compiler produces executables we can run. If not, either
3215 # the compiler is broken, or we cross compile.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3217 $as_echo_n "checking whether we are cross compiling... " >&6; }
3218 if test "$cross_compiling" != yes; then
3219 { { ac_try="$ac_link"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230 if { ac_try='./conftest$ac_cv_exeext'
3231 { { case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; }; then
3241 cross_compiling=no
3242 else
3243 if test "$cross_compiling" = maybe; then
3244 cross_compiling=yes
3245 else
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details" "$LINENO" 5; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3255 $as_echo "$cross_compiling" >&6; }
3257 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3258 ac_clean_files=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3260 $as_echo_n "checking for suffix of object files... " >&6; }
3261 if test "${ac_cv_objext+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 rm -f conftest.o conftest.obj
3276 if { { ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_compile") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 for ac_file in conftest.o conftest.obj conftest.*; do
3288 test -f "$ac_file" || continue;
3289 case $ac_file in
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3291 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3292 break;;
3293 esac
3294 done
3295 else
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details" "$LINENO" 5; }
3304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3307 $as_echo "$ac_cv_objext" >&6; }
3308 OBJEXT=$ac_cv_objext
3309 ac_objext=$OBJEXT
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3311 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3312 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3319 main ()
3321 #ifndef __GNUC__
3322 choke me
3323 #endif
3326 return 0;
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_compiler_gnu=yes
3331 else
3332 ac_compiler_gnu=no
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3339 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3340 if test $ac_compiler_gnu = yes; then
3341 GCC=yes
3342 else
3343 GCC=
3345 ac_test_CFLAGS=${CFLAGS+set}
3346 ac_save_CFLAGS=$CFLAGS
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3348 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3349 if test "${ac_cv_prog_cc_g+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 ac_save_c_werror_flag=$ac_c_werror_flag
3353 ac_c_werror_flag=yes
3354 ac_cv_prog_cc_g=no
3355 CFLAGS="-g"
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3360 main ()
3364 return 0;
3366 _ACEOF
3367 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_cv_prog_cc_g=yes
3369 else
3370 CFLAGS=""
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3375 main ()
3379 return 0;
3381 _ACEOF
3382 if ac_fn_c_try_compile "$LINENO"; then :
3384 else
3385 ac_c_werror_flag=$ac_save_c_werror_flag
3386 CFLAGS="-g"
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_cv_prog_cc_g=yes
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3409 $as_echo "$ac_cv_prog_cc_g" >&6; }
3410 if test "$ac_test_CFLAGS" = set; then
3411 CFLAGS=$ac_save_CFLAGS
3412 elif test $ac_cv_prog_cc_g = yes; then
3413 if test "$GCC" = yes; then
3414 CFLAGS="-g -O2"
3415 else
3416 CFLAGS="-g"
3418 else
3419 if test "$GCC" = yes; then
3420 CFLAGS="-O2"
3421 else
3422 CFLAGS=
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3427 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 ac_cv_prog_cc_c89=no
3431 ac_save_CC=$CC
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434 #include <stdarg.h>
3435 #include <stdio.h>
3436 #include <sys/types.h>
3437 #include <sys/stat.h>
3438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3439 struct buf { int x; };
3440 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3441 static char *e (p, i)
3442 char **p;
3443 int i;
3445 return p[i];
3447 static char *f (char * (*g) (char **, int), char **p, ...)
3449 char *s;
3450 va_list v;
3451 va_start (v,p);
3452 s = g (p, va_arg (v,int));
3453 va_end (v);
3454 return s;
3457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3458 function prototypes and stuff, but not '\xHH' hex character constants.
3459 These don't provoke an error unfortunately, instead are silently treated
3460 as 'x'. The following induces an error, until -std is added to get
3461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3462 array size at least. It's necessary to write '\x00'==0 to get something
3463 that's true only with -std. */
3464 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3466 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3467 inside strings and character constants. */
3468 #define FOO(x) 'x'
3469 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3471 int test (int i, double x);
3472 struct s1 {int (*f) (int a);};
3473 struct s2 {int (*f) (double a);};
3474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3475 int argc;
3476 char **argv;
3478 main ()
3480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3482 return 0;
3484 _ACEOF
3485 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3486 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488 CC="$ac_save_CC $ac_arg"
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_c89=$ac_arg
3492 rm -f core conftest.err conftest.$ac_objext
3493 test "x$ac_cv_prog_cc_c89" != "xno" && break
3494 done
3495 rm -f conftest.$ac_ext
3496 CC=$ac_save_CC
3499 # AC_CACHE_VAL
3500 case "x$ac_cv_prog_cc_c89" in
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 $as_echo "none needed" >&6; } ;;
3504 xno)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3506 $as_echo "unsupported" >&6; } ;;
3508 CC="$CC $ac_cv_prog_cc_c89"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3510 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3511 esac
3512 if test "x$ac_cv_prog_cc_c89" != xno; then :
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 ac_ext=cpp
3523 ac_cpp='$CXXCPP $CPPFLAGS'
3524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527 if test -z "$CXX"; then
3528 if test -n "$CCC"; then
3529 CXX=$CCC
3530 else
3531 if test -n "$ac_tool_prefix"; then
3532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_CXX+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$CXX"; then
3542 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 CXX=$ac_cv_prog_CXX
3562 if test -n "$CXX"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3564 $as_echo "$CXX" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 test -n "$CXX" && break
3572 done
3574 if test -z "$CXX"; then
3575 ac_ct_CXX=$CXX
3576 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$ac_ct_CXX"; then
3586 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_ac_ct_CXX="$ac_prog"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3605 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3606 if test -n "$ac_ct_CXX"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3608 $as_echo "$ac_ct_CXX" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3615 test -n "$ac_ct_CXX" && break
3616 done
3618 if test "x$ac_ct_CXX" = x; then
3619 CXX="g++"
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CXX=$ac_ct_CXX
3633 # Provide some information about the compiler.
3634 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3635 set X $ac_compile
3636 ac_compiler=$2
3637 for ac_option in --version -v -V -qversion; do
3638 { { ac_try="$ac_compiler $ac_option >&5"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646 ac_status=$?
3647 if test -s conftest.err; then
3648 sed '10a\
3649 ... rest of stderr output deleted ...
3650 10q' conftest.err >conftest.er1
3651 cat conftest.er1 >&5
3653 rm -f conftest.er1 conftest.err
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3656 done
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3659 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3660 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3667 main ()
3669 #ifndef __GNUC__
3670 choke me
3671 #endif
3674 return 0;
3676 _ACEOF
3677 if ac_fn_cxx_try_compile "$LINENO"; then :
3678 ac_compiler_gnu=yes
3679 else
3680 ac_compiler_gnu=no
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3687 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3688 if test $ac_compiler_gnu = yes; then
3689 GXX=yes
3690 else
3691 GXX=
3693 ac_test_CXXFLAGS=${CXXFLAGS+set}
3694 ac_save_CXXFLAGS=$CXXFLAGS
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3696 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3697 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3701 ac_cxx_werror_flag=yes
3702 ac_cv_prog_cxx_g=no
3703 CXXFLAGS="-g"
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3708 main ()
3712 return 0;
3714 _ACEOF
3715 if ac_fn_cxx_try_compile "$LINENO"; then :
3716 ac_cv_prog_cxx_g=yes
3717 else
3718 CXXFLAGS=""
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3723 main ()
3727 return 0;
3729 _ACEOF
3730 if ac_fn_cxx_try_compile "$LINENO"; then :
3732 else
3733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3734 CXXFLAGS="-g"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3739 main ()
3743 return 0;
3745 _ACEOF
3746 if ac_fn_cxx_try_compile "$LINENO"; then :
3747 ac_cv_prog_cxx_g=yes
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3757 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3758 if test "$ac_test_CXXFLAGS" = set; then
3759 CXXFLAGS=$ac_save_CXXFLAGS
3760 elif test $ac_cv_prog_cxx_g = yes; then
3761 if test "$GXX" = yes; then
3762 CXXFLAGS="-g -O2"
3763 else
3764 CXXFLAGS="-g"
3766 else
3767 if test "$GXX" = yes; then
3768 CXXFLAGS="-O2"
3769 else
3770 CXXFLAGS=
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 ac_ext=cpp
3780 ac_cpp='$CXXCPP $CPPFLAGS'
3781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU C++ compiler is default" >&5
3787 $as_echo_n "checking whether GNU C++ compiler is default... " >&6; }
3788 case "$GXX" in
3789 yes )
3790 GCC_VERSION=`$CC -dumpversion`
3791 GXX_VERSION=`$CXX -dumpversion`
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 $as_echo "yes" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gcc" >&5
3795 $as_echo_n "checking version of gcc... " >&6; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
3797 $as_echo "$GCC_VERSION" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of g++" >&5
3799 $as_echo_n "checking version of g++... " >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GXX_VERSION" >&5
3801 $as_echo "$GXX_VERSION" >&6; }
3802 case "$GXX_VERSION" in
3803 0* | 1* | 2*)
3804 echo "old style GNU compiler"
3805 $as_echo "#define OLD_GNU_COMPILER /**/" >>confdefs.h
3808 esac
3811 GCC_VERSION="none"
3812 GXX_VERSION="none"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find GNU C++ compiler" >&5
3816 $as_echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3818 esac
3820 #--------------------------------------------------------------------
3821 # Checks for Guile
3822 #--------------------------------------------------------------------
3824 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3826 ## The GUILE_FLAGS macro.
3827 ## First, let's just see if we can find Guile at all.
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile" >&5
3829 $as_echo_n "checking for Guile... " >&6; }
3830 guile-config link > /dev/null || {
3831 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3832 exit 1
3834 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3835 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3836 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3837 GUILE_LDFLAGS="`guile-config link`"
3838 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3842 $as_echo "yes" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of guile" >&5
3846 $as_echo_n "checking version of guile... " >&6; }
3847 if test -z "$GUILE_VERSION" ; then
3848 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_VERSION" >&5
3851 $as_echo "$GUILE_VERSION" >&6; }
3853 case "$GUILE_VERSION" in
3854 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3855 CONFIG_GUILE_SERIAL="A"
3857 1.6* | 1.7*)
3858 CONFIG_GUILE_SERIAL="B"
3861 CONFIG_GUILE_SERIAL="C"
3863 esac
3866 #--------------------------------------------------------------------
3867 # Checks for standard functionality
3868 #--------------------------------------------------------------------
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-compatible X header files" >&5
3873 $as_echo_n "checking for C++-compatible X header files... " >&6; }
3874 ac_save_cppflags="$CPPFLAGS"
3875 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <X11/Xlib.h>
3879 #include <X11/Xutil.h>
3881 main ()
3885 return 0;
3887 _ACEOF
3888 if ac_fn_cxx_try_compile "$LINENO"; then :
3889 echo yes
3890 else
3891 rm -rf X11
3892 mkdir X11
3893 for ac_dir in \
3894 /usr/X11/include \
3895 /usr/X11R6/include \
3896 /usr/X11R5/include \
3897 /usr/X11R4/include \
3899 /usr/include/X11 \
3900 /usr/include/X11R6 \
3901 /usr/include/X11R5 \
3902 /usr/include/X11R4 \
3904 /usr/local/X11/include \
3905 /usr/local/X11R6/include \
3906 /usr/local/X11R5/include \
3907 /usr/local/X11R4/include \
3909 /usr/local/include/X11 \
3910 /usr/local/include/X11R6 \
3911 /usr/local/include/X11R5 \
3912 /usr/local/include/X11R4 \
3914 /usr/X386/include \
3915 /usr/x386/include \
3916 /usr/XFree86/include/X11 \
3918 /usr/include \
3919 /usr/local/include \
3920 /usr/unsupported/include \
3921 /usr/athena/include \
3922 /usr/local/x11r5/include \
3923 /usr/lpp/Xamples/include \
3925 /usr/openwin/include \
3926 /usr/openwin/share/include \
3929 if test -r "$ac_dir/X11/Xlib.h"; then
3930 tm_x_includes=$ac_dir
3931 break
3933 done
3934 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3935 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3936 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3937 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3938 X_CFLAGS="-I.. $X_CFLAGS"
3939 echo "no; fixing"
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 CPPFLAGS="$ac_save_cppflags"
3944 ac_ext=cpp
3945 ac_cpp='$CXXCPP $CPPFLAGS'
3946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3950 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3951 if test -z "$CXXCPP"; then
3952 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 # Double quotes because CXXCPP needs to be expanded
3956 for CXXCPP in "$CXX -E" "/lib/cpp"
3958 ac_preproc_ok=false
3959 for ac_cxx_preproc_warn_flag in '' yes
3961 # Use a header file that comes with gcc, so configuring glibc
3962 # with a fresh cross-compiler works.
3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964 # <limits.h> exists even on freestanding compilers.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 #ifdef __STDC__
3970 # include <limits.h>
3971 #else
3972 # include <assert.h>
3973 #endif
3974 Syntax error
3975 _ACEOF
3976 if ac_fn_cxx_try_cpp "$LINENO"; then :
3978 else
3979 # Broken: fails on valid input.
3980 continue
3982 rm -f conftest.err conftest.i conftest.$ac_ext
3984 # OK, works on sane cases. Now check whether nonexistent headers
3985 # can be detected and how.
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <ac_nonexistent.h>
3989 _ACEOF
3990 if ac_fn_cxx_try_cpp "$LINENO"; then :
3991 # Broken: success on invalid input.
3992 continue
3993 else
3994 # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3998 rm -f conftest.err conftest.i conftest.$ac_ext
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.i conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then :
4004 break
4007 done
4008 ac_cv_prog_CXXCPP=$CXXCPP
4011 CXXCPP=$ac_cv_prog_CXXCPP
4012 else
4013 ac_cv_prog_CXXCPP=$CXXCPP
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4016 $as_echo "$CXXCPP" >&6; }
4017 ac_preproc_ok=false
4018 for ac_cxx_preproc_warn_flag in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #ifdef __STDC__
4029 # include <limits.h>
4030 #else
4031 # include <assert.h>
4032 #endif
4033 Syntax error
4034 _ACEOF
4035 if ac_fn_cxx_try_cpp "$LINENO"; then :
4037 else
4038 # Broken: fails on valid input.
4039 continue
4041 rm -f conftest.err conftest.i conftest.$ac_ext
4043 # OK, works on sane cases. Now check whether nonexistent headers
4044 # can be detected and how.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if ac_fn_cxx_try_cpp "$LINENO"; then :
4050 # Broken: success on invalid input.
4051 continue
4052 else
4053 # Passes both tests.
4054 ac_preproc_ok=:
4055 break
4057 rm -f conftest.err conftest.i conftest.$ac_ext
4059 done
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.i conftest.err conftest.$ac_ext
4062 if $ac_preproc_ok; then :
4064 else
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4068 See \`config.log' for more details" "$LINENO" 5; }
4071 ac_ext=cpp
4072 ac_cpp='$CXXCPP $CPPFLAGS'
4073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4079 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4080 if test "${ac_cv_path_GREP+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -z "$GREP"; then
4084 ac_path_GREP_found=false
4085 # Loop through the user's path and test for each of PROGNAME-LIST
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_prog in grep ggrep; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4094 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4095 # Check for GNU ac_path_GREP and select it if it is found.
4096 # Check for GNU $ac_path_GREP
4097 case `"$ac_path_GREP" --version 2>&1` in
4098 *GNU*)
4099 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101 ac_count=0
4102 $as_echo_n 0123456789 >"conftest.in"
4103 while :
4105 cat "conftest.in" "conftest.in" >"conftest.tmp"
4106 mv "conftest.tmp" "conftest.in"
4107 cp "conftest.in" "conftest.nl"
4108 $as_echo 'GREP' >> "conftest.nl"
4109 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111 as_fn_arith $ac_count + 1 && ac_count=$as_val
4112 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4113 # Best one so far, save it but keep looking for a better one
4114 ac_cv_path_GREP="$ac_path_GREP"
4115 ac_path_GREP_max=$ac_count
4117 # 10*(2^10) chars as input seems more than enough
4118 test $ac_count -gt 10 && break
4119 done
4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121 esac
4123 $ac_path_GREP_found && break 3
4124 done
4125 done
4126 done
4127 IFS=$as_save_IFS
4128 if test -z "$ac_cv_path_GREP"; then
4129 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131 else
4132 ac_cv_path_GREP=$GREP
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4137 $as_echo "$ac_cv_path_GREP" >&6; }
4138 GREP="$ac_cv_path_GREP"
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4142 $as_echo_n "checking for egrep... " >&6; }
4143 if test "${ac_cv_path_EGREP+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4147 then ac_cv_path_EGREP="$GREP -E"
4148 else
4149 if test -z "$EGREP"; then
4150 ac_path_EGREP_found=false
4151 # Loop through the user's path and test for each of PROGNAME-LIST
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_prog in egrep; do
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4160 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4161 # Check for GNU ac_path_EGREP and select it if it is found.
4162 # Check for GNU $ac_path_EGREP
4163 case `"$ac_path_EGREP" --version 2>&1` in
4164 *GNU*)
4165 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4167 ac_count=0
4168 $as_echo_n 0123456789 >"conftest.in"
4169 while :
4171 cat "conftest.in" "conftest.in" >"conftest.tmp"
4172 mv "conftest.tmp" "conftest.in"
4173 cp "conftest.in" "conftest.nl"
4174 $as_echo 'EGREP' >> "conftest.nl"
4175 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177 as_fn_arith $ac_count + 1 && ac_count=$as_val
4178 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179 # Best one so far, save it but keep looking for a better one
4180 ac_cv_path_EGREP="$ac_path_EGREP"
4181 ac_path_EGREP_max=$ac_count
4183 # 10*(2^10) chars as input seems more than enough
4184 test $ac_count -gt 10 && break
4185 done
4186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187 esac
4189 $ac_path_EGREP_found && break 3
4190 done
4191 done
4192 done
4193 IFS=$as_save_IFS
4194 if test -z "$ac_cv_path_EGREP"; then
4195 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197 else
4198 ac_cv_path_EGREP=$EGREP
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4204 $as_echo "$ac_cv_path_EGREP" >&6; }
4205 EGREP="$ac_cv_path_EGREP"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4209 $as_echo_n "checking for ANSI C header files... " >&6; }
4210 if test "${ac_cv_header_stdc+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <stdlib.h>
4216 #include <stdarg.h>
4217 #include <string.h>
4218 #include <float.h>
4221 main ()
4225 return 0;
4227 _ACEOF
4228 if ac_fn_cxx_try_compile "$LINENO"; then :
4229 ac_cv_header_stdc=yes
4230 else
4231 ac_cv_header_stdc=no
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 if test $ac_cv_header_stdc = yes; then
4236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <string.h>
4241 _ACEOF
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243 $EGREP "memchr" >/dev/null 2>&1; then :
4245 else
4246 ac_cv_header_stdc=no
4248 rm -f conftest*
4252 if test $ac_cv_header_stdc = yes; then
4253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <stdlib.h>
4258 _ACEOF
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "free" >/dev/null 2>&1; then :
4262 else
4263 ac_cv_header_stdc=no
4265 rm -f conftest*
4269 if test $ac_cv_header_stdc = yes; then
4270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271 if test "$cross_compiling" = yes; then :
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <ctype.h>
4277 #include <stdlib.h>
4278 #if ((' ' & 0x0FF) == 0x020)
4279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281 #else
4282 # define ISLOWER(c) \
4283 (('a' <= (c) && (c) <= 'i') \
4284 || ('j' <= (c) && (c) <= 'r') \
4285 || ('s' <= (c) && (c) <= 'z'))
4286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4287 #endif
4289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291 main ()
4293 int i;
4294 for (i = 0; i < 256; i++)
4295 if (XOR (islower (i), ISLOWER (i))
4296 || toupper (i) != TOUPPER (i))
4297 return 2;
4298 return 0;
4300 _ACEOF
4301 if ac_fn_cxx_try_run "$LINENO"; then :
4303 else
4304 ac_cv_header_stdc=no
4306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4307 conftest.$ac_objext conftest.beam conftest.$ac_ext
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4313 $as_echo "$ac_cv_header_stdc" >&6; }
4314 if test $ac_cv_header_stdc = yes; then
4316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
4323 do :
4324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4327 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4328 cat >>confdefs.h <<_ACEOF
4329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4330 _ACEOF
4334 done
4337 ac_fn_cxx_check_type "$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
4338 if test "x$ac_cv_type_FILE" = x""yes; then :
4340 cat >>confdefs.h <<_ACEOF
4341 #define HAVE_FILE 1
4342 _ACEOF
4347 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
4348 if test "x$ac_cv_type_intptr_t" = x""yes; then :
4350 cat >>confdefs.h <<_ACEOF
4351 #define HAVE_INTPTR_T 1
4352 _ACEOF
4357 ac_fn_cxx_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
4358 if test "x$ac_cv_type_time_t" = x""yes; then :
4360 cat >>confdefs.h <<_ACEOF
4361 #define HAVE_TIME_T 1
4362 _ACEOF
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4368 $as_echo_n "checking for X... " >&6; }
4371 # Check whether --with-x was given.
4372 if test "${with_x+set}" = set; then :
4373 withval=$with_x;
4376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4377 if test "x$with_x" = xno; then
4378 # The user explicitly disabled X.
4379 have_x=disabled
4380 else
4381 case $x_includes,$x_libraries in #(
4382 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4383 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 # One or both of the vars are not set, and there is no cached value.
4387 ac_x_includes=no ac_x_libraries=no
4388 rm -f -r conftest.dir
4389 if mkdir conftest.dir; then
4390 cd conftest.dir
4391 cat >Imakefile <<'_ACEOF'
4392 incroot:
4393 @echo incroot='${INCROOT}'
4394 usrlibdir:
4395 @echo usrlibdir='${USRLIBDIR}'
4396 libdir:
4397 @echo libdir='${LIBDIR}'
4398 _ACEOF
4399 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4401 for ac_var in incroot usrlibdir libdir; do
4402 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4403 done
4404 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4405 for ac_extension in a so sl dylib la dll; do
4406 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4407 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4408 ac_im_usrlibdir=$ac_im_libdir; break
4410 done
4411 # Screen out bogus values from the imake configuration. They are
4412 # bogus both because they are the default anyway, and because
4413 # using them would break gcc on systems where it needs fixed includes.
4414 case $ac_im_incroot in
4415 /usr/include) ac_x_includes= ;;
4416 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4417 esac
4418 case $ac_im_usrlibdir in
4419 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4420 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4421 esac
4423 cd ..
4424 rm -f -r conftest.dir
4427 # Standard set of common directories for X headers.
4428 # Check X11 before X11Rn because it is often a symlink to the current release.
4429 ac_x_header_dirs='
4430 /usr/X11/include
4431 /usr/X11R7/include
4432 /usr/X11R6/include
4433 /usr/X11R5/include
4434 /usr/X11R4/include
4436 /usr/include/X11
4437 /usr/include/X11R7
4438 /usr/include/X11R6
4439 /usr/include/X11R5
4440 /usr/include/X11R4
4442 /usr/local/X11/include
4443 /usr/local/X11R7/include
4444 /usr/local/X11R6/include
4445 /usr/local/X11R5/include
4446 /usr/local/X11R4/include
4448 /usr/local/include/X11
4449 /usr/local/include/X11R7
4450 /usr/local/include/X11R6
4451 /usr/local/include/X11R5
4452 /usr/local/include/X11R4
4454 /usr/X386/include
4455 /usr/x386/include
4456 /usr/XFree86/include/X11
4458 /usr/include
4459 /usr/local/include
4460 /usr/unsupported/include
4461 /usr/athena/include
4462 /usr/local/x11r5/include
4463 /usr/lpp/Xamples/include
4465 /usr/openwin/include
4466 /usr/openwin/share/include'
4468 if test "$ac_x_includes" = no; then
4469 # Guess where to find include files, by looking for Xlib.h.
4470 # First, try using that file with no special directory specified.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <X11/Xlib.h>
4474 _ACEOF
4475 if ac_fn_cxx_try_cpp "$LINENO"; then :
4476 # We can compile using X headers with no special include directory.
4477 ac_x_includes=
4478 else
4479 for ac_dir in $ac_x_header_dirs; do
4480 if test -r "$ac_dir/X11/Xlib.h"; then
4481 ac_x_includes=$ac_dir
4482 break
4484 done
4486 rm -f conftest.err conftest.i conftest.$ac_ext
4487 fi # $ac_x_includes = no
4489 if test "$ac_x_libraries" = no; then
4490 # Check for the libraries.
4491 # See if we find them without any special options.
4492 # Don't add to $LIBS permanently.
4493 ac_save_LIBS=$LIBS
4494 LIBS="-lX11 $LIBS"
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <X11/Xlib.h>
4499 main ()
4501 XrmInitialize ()
4503 return 0;
4505 _ACEOF
4506 if ac_fn_cxx_try_link "$LINENO"; then :
4507 LIBS=$ac_save_LIBS
4508 # We can link X programs with no special library path.
4509 ac_x_libraries=
4510 else
4511 LIBS=$ac_save_LIBS
4512 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4514 # Don't even attempt the hair of trying to link an X program!
4515 for ac_extension in a so sl dylib la dll; do
4516 if test -r "$ac_dir/libX11.$ac_extension"; then
4517 ac_x_libraries=$ac_dir
4518 break 2
4520 done
4521 done
4523 rm -f core conftest.err conftest.$ac_objext \
4524 conftest$ac_exeext conftest.$ac_ext
4525 fi # $ac_x_libraries = no
4527 case $ac_x_includes,$ac_x_libraries in #(
4528 no,* | *,no | *\'*)
4529 # Didn't find X, or a directory has "'" in its name.
4530 ac_cv_have_x="have_x=no";; #(
4532 # Record where we found X for the cache.
4533 ac_cv_have_x="have_x=yes\
4534 ac_x_includes='$ac_x_includes'\
4535 ac_x_libraries='$ac_x_libraries'"
4536 esac
4538 ;; #(
4539 *) have_x=yes;;
4540 esac
4541 eval "$ac_cv_have_x"
4542 fi # $with_x != no
4544 if test "$have_x" != yes; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4546 $as_echo "$have_x" >&6; }
4547 no_x=yes
4548 else
4549 # If each of the values was on the command line, it overrides each guess.
4550 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4551 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4552 # Update the cache value to reflect the command line values.
4553 ac_cv_have_x="have_x=yes\
4554 ac_x_includes='$x_includes'\
4555 ac_x_libraries='$x_libraries'"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4557 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4560 if test "$no_x" = yes; then
4561 # Not all programs may use this symbol, but it does not hurt to define it.
4563 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4565 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4566 else
4567 if test -n "$x_includes"; then
4568 X_CFLAGS="$X_CFLAGS -I$x_includes"
4571 # It would also be nice to do this for all -L options, not just this one.
4572 if test -n "$x_libraries"; then
4573 X_LIBS="$X_LIBS -L$x_libraries"
4574 # For Solaris; some versions of Sun CC require a space after -R and
4575 # others require no space. Words are not sufficient . . . .
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4577 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4578 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4579 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4580 ac_cxx_werror_flag=yes
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 main ()
4589 return 0;
4591 _ACEOF
4592 if ac_fn_cxx_try_link "$LINENO"; then :
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 X_LIBS="$X_LIBS -R$x_libraries"
4596 else
4597 LIBS="$ac_xsave_LIBS -R $x_libraries"
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4602 main ()
4606 return 0;
4608 _ACEOF
4609 if ac_fn_cxx_try_link "$LINENO"; then :
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 X_LIBS="$X_LIBS -R $x_libraries"
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4615 $as_echo "neither works" >&6; }
4617 rm -f core conftest.err conftest.$ac_objext \
4618 conftest$ac_exeext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext \
4621 conftest$ac_exeext conftest.$ac_ext
4622 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4623 LIBS=$ac_xsave_LIBS
4626 # Check for system-dependent libraries X programs must link with.
4627 # Do this before checking for the system-independent R6 libraries
4628 # (-lICE), since we may need -lsocket or whatever for X linking.
4630 if test "$ISC" = yes; then
4631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4632 else
4633 # Martyn Johnson says this is needed for Ultrix, if the X
4634 # libraries were built with DECnet support. And Karl Berry says
4635 # the Alpha needs dnet_stub (dnet does not exist).
4636 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4640 /* Override any GCC internal prototype to avoid an error.
4641 Use char because int might match the return type of a GCC
4642 builtin and then its argument prototype would still apply. */
4643 #ifdef __cplusplus
4644 extern "C"
4645 #endif
4646 char XOpenDisplay ();
4648 main ()
4650 return XOpenDisplay ();
4652 return 0;
4654 _ACEOF
4655 if ac_fn_cxx_try_link "$LINENO"; then :
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4659 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_check_lib_save_LIBS=$LIBS
4664 LIBS="-ldnet $LIBS"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4668 /* Override any GCC internal prototype to avoid an error.
4669 Use char because int might match the return type of a GCC
4670 builtin and then its argument prototype would still apply. */
4671 #ifdef __cplusplus
4672 extern "C"
4673 #endif
4674 char dnet_ntoa ();
4676 main ()
4678 return dnet_ntoa ();
4680 return 0;
4682 _ACEOF
4683 if ac_fn_cxx_try_link "$LINENO"; then :
4684 ac_cv_lib_dnet_dnet_ntoa=yes
4685 else
4686 ac_cv_lib_dnet_dnet_ntoa=no
4688 rm -f core conftest.err conftest.$ac_objext \
4689 conftest$ac_exeext conftest.$ac_ext
4690 LIBS=$ac_check_lib_save_LIBS
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4693 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4694 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
4695 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4698 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4700 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4701 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-ldnet_stub $LIBS"
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4709 /* Override any GCC internal prototype to avoid an error.
4710 Use char because int might match the return type of a GCC
4711 builtin and then its argument prototype would still apply. */
4712 #ifdef __cplusplus
4713 extern "C"
4714 #endif
4715 char dnet_ntoa ();
4717 main ()
4719 return dnet_ntoa ();
4721 return 0;
4723 _ACEOF
4724 if ac_fn_cxx_try_link "$LINENO"; then :
4725 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4726 else
4727 ac_cv_lib_dnet_stub_dnet_ntoa=no
4729 rm -f core conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4734 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4735 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
4736 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4741 rm -f core conftest.err conftest.$ac_objext \
4742 conftest$ac_exeext conftest.$ac_ext
4743 LIBS="$ac_xsave_LIBS"
4745 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4746 # to get the SysV transport functions.
4747 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4748 # needs -lnsl.
4749 # The nsl library prevents programs from opening the X display
4750 # on Irix 5.2, according to T.E. Dickey.
4751 # The functions gethostbyname, getservbyname, and inet_addr are
4752 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4753 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4754 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4758 if test $ac_cv_func_gethostbyname = no; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4760 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4761 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 ac_check_lib_save_LIBS=$LIBS
4765 LIBS="-lnsl $LIBS"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4769 /* Override any GCC internal prototype to avoid an error.
4770 Use char because int might match the return type of a GCC
4771 builtin and then its argument prototype would still apply. */
4772 #ifdef __cplusplus
4773 extern "C"
4774 #endif
4775 char gethostbyname ();
4777 main ()
4779 return gethostbyname ();
4781 return 0;
4783 _ACEOF
4784 if ac_fn_cxx_try_link "$LINENO"; then :
4785 ac_cv_lib_nsl_gethostbyname=yes
4786 else
4787 ac_cv_lib_nsl_gethostbyname=no
4789 rm -f core conftest.err conftest.$ac_objext \
4790 conftest$ac_exeext conftest.$ac_ext
4791 LIBS=$ac_check_lib_save_LIBS
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4794 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4795 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4799 if test $ac_cv_lib_nsl_gethostbyname = no; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4801 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4802 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_check_lib_save_LIBS=$LIBS
4806 LIBS="-lbsd $LIBS"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4810 /* Override any GCC internal prototype to avoid an error.
4811 Use char because int might match the return type of a GCC
4812 builtin and then its argument prototype would still apply. */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 char gethostbyname ();
4818 main ()
4820 return gethostbyname ();
4822 return 0;
4824 _ACEOF
4825 if ac_fn_cxx_try_link "$LINENO"; then :
4826 ac_cv_lib_bsd_gethostbyname=yes
4827 else
4828 ac_cv_lib_bsd_gethostbyname=no
4830 rm -f core conftest.err conftest.$ac_objext \
4831 conftest$ac_exeext conftest.$ac_ext
4832 LIBS=$ac_check_lib_save_LIBS
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4835 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4836 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
4837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4843 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4844 # socket/setsockopt and other routines are undefined under SCO ODT
4845 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4846 # on later versions), says Simon Leinen: it contains gethostby*
4847 # variants that don't use the name server (or something). -lsocket
4848 # must be given before -lnsl if both are needed. We assume that
4849 # if connect needs -lnsl, so does gethostbyname.
4850 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
4851 if test "x$ac_cv_func_connect" = x""yes; then :
4855 if test $ac_cv_func_connect = no; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4857 $as_echo_n "checking for connect in -lsocket... " >&6; }
4858 if test "${ac_cv_lib_socket_connect+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 ac_check_lib_save_LIBS=$LIBS
4862 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4866 /* Override any GCC internal prototype to avoid an error.
4867 Use char because int might match the return type of a GCC
4868 builtin and then its argument prototype would still apply. */
4869 #ifdef __cplusplus
4870 extern "C"
4871 #endif
4872 char connect ();
4874 main ()
4876 return connect ();
4878 return 0;
4880 _ACEOF
4881 if ac_fn_cxx_try_link "$LINENO"; then :
4882 ac_cv_lib_socket_connect=yes
4883 else
4884 ac_cv_lib_socket_connect=no
4886 rm -f core conftest.err conftest.$ac_objext \
4887 conftest$ac_exeext conftest.$ac_ext
4888 LIBS=$ac_check_lib_save_LIBS
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4891 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4892 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
4893 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4898 # Guillermo Gomez says -lposix is necessary on A/UX.
4899 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
4900 if test "x$ac_cv_func_remove" = x""yes; then :
4904 if test $ac_cv_func_remove = no; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4906 $as_echo_n "checking for remove in -lposix... " >&6; }
4907 if test "${ac_cv_lib_posix_remove+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 ac_check_lib_save_LIBS=$LIBS
4911 LIBS="-lposix $LIBS"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4915 /* Override any GCC internal prototype to avoid an error.
4916 Use char because int might match the return type of a GCC
4917 builtin and then its argument prototype would still apply. */
4918 #ifdef __cplusplus
4919 extern "C"
4920 #endif
4921 char remove ();
4923 main ()
4925 return remove ();
4927 return 0;
4929 _ACEOF
4930 if ac_fn_cxx_try_link "$LINENO"; then :
4931 ac_cv_lib_posix_remove=yes
4932 else
4933 ac_cv_lib_posix_remove=no
4935 rm -f core conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937 LIBS=$ac_check_lib_save_LIBS
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4940 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4941 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
4942 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4947 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4948 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4949 if test "x$ac_cv_func_shmat" = x""yes; then :
4953 if test $ac_cv_func_shmat = no; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4955 $as_echo_n "checking for shmat in -lipc... " >&6; }
4956 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 ac_check_lib_save_LIBS=$LIBS
4960 LIBS="-lipc $LIBS"
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4964 /* Override any GCC internal prototype to avoid an error.
4965 Use char because int might match the return type of a GCC
4966 builtin and then its argument prototype would still apply. */
4967 #ifdef __cplusplus
4968 extern "C"
4969 #endif
4970 char shmat ();
4972 main ()
4974 return shmat ();
4976 return 0;
4978 _ACEOF
4979 if ac_fn_cxx_try_link "$LINENO"; then :
4980 ac_cv_lib_ipc_shmat=yes
4981 else
4982 ac_cv_lib_ipc_shmat=no
4984 rm -f core conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4986 LIBS=$ac_check_lib_save_LIBS
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4989 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4990 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
4991 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4997 # Check for libraries that X11R6 Xt/Xaw programs need.
4998 ac_save_LDFLAGS=$LDFLAGS
4999 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5000 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5001 # check for ICE first), but we must link in the order -lSM -lICE or
5002 # we get undefined symbols. So assume we have SM if we have ICE.
5003 # These have to be linked with before -lX11, unlike the other
5004 # libraries we check for below, so use a different variable.
5005 # John Interrante, Karl Berry
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5007 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5008 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 ac_check_lib_save_LIBS=$LIBS
5012 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 char IceConnectionNumber ();
5024 main ()
5026 return IceConnectionNumber ();
5028 return 0;
5030 _ACEOF
5031 if ac_fn_cxx_try_link "$LINENO"; then :
5032 ac_cv_lib_ICE_IceConnectionNumber=yes
5033 else
5034 ac_cv_lib_ICE_IceConnectionNumber=no
5036 rm -f core conftest.err conftest.$ac_objext \
5037 conftest$ac_exeext conftest.$ac_ext
5038 LIBS=$ac_check_lib_save_LIBS
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5041 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5042 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5043 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5046 LDFLAGS=$ac_save_LDFLAGS
5050 for ac_header in pty.h util.h
5051 do :
5052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5054 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5055 cat >>confdefs.h <<_ACEOF
5056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5057 _ACEOF
5061 done
5063 for ac_func in gettimeofday
5064 do :
5065 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5066 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
5067 cat >>confdefs.h <<_ACEOF
5068 #define HAVE_GETTIMEOFDAY 1
5069 _ACEOF
5072 done
5075 #--------------------------------------------------------------------
5076 # Checks for dl library
5077 #--------------------------------------------------------------------
5079 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5080 if test "x$ac_cv_func_dlopen" = x""yes; then :
5084 if test "$ac_cv_func_dl" = "yes"; then
5086 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5090 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 ac_check_lib_save_LIBS=$LIBS
5095 LIBS="-ldl $LIBS"
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5099 /* Override any GCC internal prototype to avoid an error.
5100 Use char because int might match the return type of a GCC
5101 builtin and then its argument prototype would still apply. */
5102 #ifdef __cplusplus
5103 extern "C"
5104 #endif
5105 char dlopen ();
5107 main ()
5109 return dlopen ();
5111 return 0;
5113 _ACEOF
5114 if ac_fn_cxx_try_link "$LINENO"; then :
5115 ac_cv_lib_dl_dlopen=yes
5116 else
5117 ac_cv_lib_dl_dlopen=no
5119 rm -f core conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5124 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5125 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5126 cat >>confdefs.h <<_ACEOF
5127 #define HAVE_LIBDL 1
5128 _ACEOF
5130 LIBS="-ldl $LIBS"
5134 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5135 for ac_func in dlopen
5136 do :
5137 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5138 if test "x$ac_cv_func_dlopen" = x""yes; then :
5139 cat >>confdefs.h <<_ACEOF
5140 #define HAVE_DLOPEN 1
5141 _ACEOF
5144 done
5146 CONFIG_BDL="-ldl"
5148 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5152 $as_echo_n "checking for dld_link in -ldld... " >&6; }
5153 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 ac_check_lib_save_LIBS=$LIBS
5157 LIBS="-ldld $LIBS"
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5161 /* Override any GCC internal prototype to avoid an error.
5162 Use char because int might match the return type of a GCC
5163 builtin and then its argument prototype would still apply. */
5164 #ifdef __cplusplus
5165 extern "C"
5166 #endif
5167 char dld_link ();
5169 main ()
5171 return dld_link ();
5173 return 0;
5175 _ACEOF
5176 if ac_fn_cxx_try_link "$LINENO"; then :
5177 ac_cv_lib_dld_dld_link=yes
5178 else
5179 ac_cv_lib_dld_dld_link=no
5181 rm -f core conftest.err conftest.$ac_objext \
5182 conftest$ac_exeext conftest.$ac_ext
5183 LIBS=$ac_check_lib_save_LIBS
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5186 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5187 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
5188 cat >>confdefs.h <<_ACEOF
5189 #define HAVE_LIBDLD 1
5190 _ACEOF
5192 LIBS="-ldld $LIBS"
5196 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5197 CONFIG_BDL="-ldl"
5199 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5201 else
5202 for ac_func in shl_load
5203 do :
5204 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
5205 if test "x$ac_cv_func_shl_load" = x""yes; then :
5206 cat >>confdefs.h <<_ACEOF
5207 #define HAVE_SHL_LOAD 1
5208 _ACEOF
5211 done
5213 if test "$ac_cv_func_shl_load" = "yes"; then
5214 CONFIG_BDL="-ldl"
5216 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5218 else
5219 for ac_func in dlopen
5220 do :
5221 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5222 if test "x$ac_cv_func_dlopen" = x""yes; then :
5223 cat >>confdefs.h <<_ACEOF
5224 #define HAVE_DLOPEN 1
5225 _ACEOF
5228 done
5230 if test "$ac_cv_func_dlopen" = "yes"; then
5232 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5241 #--------------------------------------------------------------------
5242 # Checks for iconv library
5243 #--------------------------------------------------------------------
5246 # Check whether --with-iconv was given.
5247 if test "${with_iconv+set}" = set; then :
5248 withval=$with_iconv;
5252 # Check for iconv
5253 # Modified from GNOME's libxml2 configure.in
5255 ac_ext=c
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 # compile C to avoid the 'const char**' problem
5262 SAVE_CPPFLAGS="$CPPFLAGS"
5263 SAVE_LDFLAGS="$LDFLAGS"
5264 SAVE_LIBS="$LIBS"
5265 if test "$with_iconv" = "no" ; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling iconv support" >&5
5267 $as_echo "disabling iconv support" >&6; }
5268 else
5269 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
5270 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
5271 LDFLAGS="$ICONV_LDFLAGS"
5273 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
5274 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
5275 LDFLAGS="-L$with_iconv/lib"
5276 ICONV_CFLAGS="-I$with_iconv/include"
5277 ICONV_LDFLAGS="-L$with_iconv/lib"
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5287 # On Suns, sometimes $CPP names a directory.
5288 if test -n "$CPP" && test -d "$CPP"; then
5289 CPP=
5291 if test -z "$CPP"; then
5292 if test "${ac_cv_prog_CPP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 # Double quotes because CPP needs to be expanded
5296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5298 ac_preproc_ok=false
5299 for ac_c_preproc_warn_flag in '' yes
5301 # Use a header file that comes with gcc, so configuring glibc
5302 # with a fresh cross-compiler works.
5303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304 # <limits.h> exists even on freestanding compilers.
5305 # On the NeXT, cc -E runs the code through the compiler's parser,
5306 # not just through cpp. "Syntax error" is here to catch this case.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #ifdef __STDC__
5310 # include <limits.h>
5311 #else
5312 # include <assert.h>
5313 #endif
5314 Syntax error
5315 _ACEOF
5316 if ac_fn_c_try_cpp "$LINENO"; then :
5318 else
5319 # Broken: fails on valid input.
5320 continue
5322 rm -f conftest.err conftest.i conftest.$ac_ext
5324 # OK, works on sane cases. Now check whether nonexistent headers
5325 # can be detected and how.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <ac_nonexistent.h>
5329 _ACEOF
5330 if ac_fn_c_try_cpp "$LINENO"; then :
5331 # Broken: success on invalid input.
5332 continue
5333 else
5334 # Passes both tests.
5335 ac_preproc_ok=:
5336 break
5338 rm -f conftest.err conftest.i conftest.$ac_ext
5340 done
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.i conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then :
5344 break
5347 done
5348 ac_cv_prog_CPP=$CPP
5351 CPP=$ac_cv_prog_CPP
5352 else
5353 ac_cv_prog_CPP=$CPP
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5357 ac_preproc_ok=false
5358 for ac_c_preproc_warn_flag in '' yes
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373 Syntax error
5374 _ACEOF
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5377 else
5378 # Broken: fails on valid input.
5379 continue
5381 rm -f conftest.err conftest.i conftest.$ac_ext
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390 # Broken: success on invalid input.
5391 continue
5392 else
5393 # Passes both tests.
5394 ac_preproc_ok=:
5395 break
5397 rm -f conftest.err conftest.i conftest.$ac_ext
5399 done
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.i conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5404 else
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5408 See \`config.log' for more details" "$LINENO" 5; }
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5419 if test "x$ac_cv_header_iconv_h" = x""yes; then :
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5421 $as_echo_n "checking for iconv... " >&6; }
5424 # ac_fn_c_try_link LINENO
5425 # -----------------------
5426 # Try to link conftest.$ac_ext, and return whether this succeeded.
5427 ac_fn_c_try_link ()
5429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5430 rm -f conftest.$ac_objext conftest$ac_exeext
5431 if { { ac_try="$ac_link"
5432 case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435 esac
5436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5437 $as_echo "$ac_try_echo"; } >&5
5438 (eval "$ac_link") 2>conftest.err
5439 ac_status=$?
5440 if test -s conftest.err; then
5441 grep -v '^ *+' conftest.err >conftest.er1
5442 cat conftest.er1 >&5
5443 mv -f conftest.er1 conftest.err
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; } && {
5447 test -z "$ac_c_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest$ac_exeext && {
5450 test "$cross_compiling" = yes ||
5451 $as_test_x conftest$ac_exeext
5452 }; then :
5453 ac_retval=0
5454 else
5455 $as_echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_retval=1
5460 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5461 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5462 # interfere with the next link command; also delete a directory that is
5463 # left behind by Apple's compiler. We do this before executing the actions.
5464 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5466 as_fn_set_status $ac_retval
5468 } # ac_fn_c_try_link
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5472 #include <stdlib.h>
5473 #include <iconv.h>
5476 main ()
5479 iconv_t cd = iconv_open ("","");
5480 iconv (cd, NULL, NULL, NULL, NULL);
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_link "$LINENO"; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489 $as_echo "yes" >&6; }
5491 $as_echo "#define USE_ICONV 1" >>confdefs.h
5494 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
5499 $as_echo_n "checking for iconv in -liconv... " >&6; }
5500 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5501 LIBS="-liconv" # for AC_TRY_LINK
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5505 #include <stdlib.h>
5506 #include <iconv.h>
5509 main ()
5512 iconv_t cd = iconv_open ("","");
5513 iconv (cd, NULL, NULL, NULL, NULL);
5516 return 0;
5518 _ACEOF
5519 if ac_fn_c_try_link "$LINENO"; then :
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5522 $as_echo "yes" >&6; }
5524 $as_echo "#define USE_ICONV 1" >>confdefs.h
5526 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
5528 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: absence of iconv may crash HTML import" >&5
5533 $as_echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5536 rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5546 CPPFLAGS="$SAVE_CPPFLAGS"
5547 LDFLAGS="$SAVE_LDFLAGS"
5548 LIBS="$SAVE_LIBS"
5549 ac_ext=cpp
5550 ac_cpp='$CXXCPP $CPPFLAGS'
5551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5554 # restore C++ language
5558 #--------------------------------------------------------------------
5559 # Checks for freetype library
5560 #--------------------------------------------------------------------
5563 # Check whether --with-freetype was given.
5564 if test "${with_freetype+set}" = set; then :
5565 withval=$with_freetype;
5569 SAVE_CPPFLAGS="$CPPFLAGS"
5570 SAVE_LDFLAGS="$LDFLAGS"
5571 SAVE_LIBS="$LIBS"
5572 if test "$with_freetype" = "no" ; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling freetype support" >&5
5574 $as_echo "disabling freetype support" >&6; }
5575 else
5576 if test -z "$FREETYPE_CFLAGS"; then
5577 FREETYPE_CFLAGS=`freetype-config --cflags`
5579 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
5580 if test -z "$FREETYPE_LDFLAGS"; then
5581 FREETYPE_LDFLAGS=`freetype-config --libs`
5583 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
5584 ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5585 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
5587 $as_echo_n "checking for freetype... " >&6; }
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 #include <ft2build.h>
5592 #include FT_FREETYPE_H
5595 main ()
5598 FT_Library ft_library;
5599 (void) FT_Init_FreeType (&ft_library);
5602 return 0;
5604 _ACEOF
5605 if ac_fn_cxx_try_link "$LINENO"; then :
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5610 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5612 FREETYPE_CFLAGS="$CPPFLAGS"
5613 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5614 FREETYPE_LDFLAGS="$LIBS"
5616 $as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
5620 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5632 CPPFLAGS="$SAVE_CPPFLAGS"
5633 LDFLAGS="$SAVE_LDFLAGS"
5634 LIBS="$SAVE_LIBS"
5639 #--------------------------------------------------------------------
5640 # Checks for Cairo library
5641 #--------------------------------------------------------------------
5644 # Check whether --with-cairo was given.
5645 if test "${with_cairo+set}" = set; then :
5646 withval=$with_cairo;
5650 SAVE_CPPFLAGS="$CPPFLAGS"
5651 SAVE_LDFLAGS="$LDFLAGS"
5652 SAVE_LIBS="$LIBS"
5653 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
5655 $as_echo "disabling cairo support" >&6; }
5656 else
5657 CPPFLAGS=`pkg-config --cflags cairo`
5658 LIBS=`pkg-config --libs cairo`
5659 ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
5660 if test "x$ac_cv_header_cairo_h" = x""yes; then :
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
5662 $as_echo_n "checking for cairo... " >&6; }
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5666 #include <cairo.h>
5669 main ()
5672 cairo_surface_t *surface;
5673 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
5676 return 0;
5678 _ACEOF
5679 if ac_fn_cxx_try_link "$LINENO"; then :
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5682 $as_echo "yes" >&6; }
5684 $as_echo "#define USE_CAIRO 1" >>confdefs.h
5686 CAIRO_CFLAGS="$CPPFLAGS"
5687 if test "$with_cairo" = "linked" ; then
5688 CAIRO_LDFLAGS="$LIBS"
5690 $as_echo "#define LINKED_CAIRO 1" >>confdefs.h
5694 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5699 rm -f core conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5706 CPPFLAGS="$SAVE_CPPFLAGS"
5707 LDFLAGS="$SAVE_LDFLAGS"
5708 LIBS="$SAVE_LIBS"
5713 #--------------------------------------------------------------------
5714 # Checks for Imlib2 library
5715 #--------------------------------------------------------------------
5718 # Check whether --with-imlib2 was given.
5719 if test "${with_imlib2+set}" = set; then :
5720 withval=$with_imlib2;
5724 SAVE_CPPFLAGS="$CPPFLAGS"
5725 SAVE_LDFLAGS="$LDFLAGS"
5726 SAVE_LIBS="$LIBS"
5727 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
5729 $as_echo "disabling imlib2 support" >&6; }
5730 else
5731 CPPFLAGS=`imlib2-config --cflags`
5732 LIBS=`imlib2-config --libs`
5733 ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_Imlib2_h" = x""yes; then :
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
5736 $as_echo_n "checking for imlib2... " >&6; }
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5740 #include <X11/Xlib.h>
5741 #include <Imlib2.h>
5742 #include <stdio.h>
5743 #include <string.h>
5746 main ()
5749 Imlib_Image image= imlib_load_image("");
5752 return 0;
5754 _ACEOF
5755 if ac_fn_cxx_try_link "$LINENO"; then :
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758 $as_echo "yes" >&6; }
5760 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
5762 IMLIB2_CFLAGS="$CPPFLAGS"
5763 if test "$with_imlib2" = "linked" ; then
5764 IMLIB2_LDFLAGS="$LIBS"
5766 $as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
5770 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5775 rm -f core conftest.err conftest.$ac_objext \
5776 conftest$ac_exeext conftest.$ac_ext
5782 CPPFLAGS="$SAVE_CPPFLAGS"
5783 LDFLAGS="$SAVE_LDFLAGS"
5784 LIBS="$SAVE_LIBS"
5789 #--------------------------------------------------------------------
5790 # Checks for Axel library
5791 #--------------------------------------------------------------------
5794 # Check whether --with-axel was given.
5795 if test "${with_axel+set}" = set; then :
5796 withval=$with_axel;
5800 SAVE_CPPFLAGS="$CPPFLAGS"
5801 SAVE_LDFLAGS="$LDFLAGS"
5802 SAVE_LIBS="$LIBS"
5803 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
5805 $as_echo "disabling axel support" >&6; }
5806 else
5807 CPPFLAGS=`axel-config --cflags`
5808 LIBS=`axel-config --libs`
5809 ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
5810 if test "x$ac_cv_header_QGui_Viewer_h" = x""yes; then :
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
5812 $as_echo_n "checking for axel... " >&6; }
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 #include <QGui/Viewer.h>
5819 main ()
5822 Viewer viewer(0);
5825 return 0;
5827 _ACEOF
5828 if ac_fn_cxx_try_link "$LINENO"; then :
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5833 $as_echo "#define USE_AXEL 1" >>confdefs.h
5835 AXEL_CFLAGS="$CPPFLAGS"
5836 if test "$with_axel" = "linked" ; then
5837 AXEL_LDFLAGS="$LIBS"
5839 $as_echo "#define LINKED_AXEL 1" >>confdefs.h
5843 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5855 CPPFLAGS="$SAVE_CPPFLAGS"
5856 LDFLAGS="$SAVE_LDFLAGS"
5857 LIBS="$SAVE_LIBS"
5862 #--------------------------------------------------------------------
5863 # Checks for ghostscript library
5864 #--------------------------------------------------------------------
5867 # Check whether --with-gs was given.
5868 if test "${with_gs+set}" = set; then :
5869 withval=$with_gs;
5873 if test "$with_gs" = "no" ; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
5875 $as_echo "disabling ghostscript support" >&6; }
5876 else
5877 case "${host}" in
5878 *mingw*)
5879 GS_EXE="gswin32c.exe"
5880 GS_DLL="gsdll32.dll"
5881 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
5882 set dummy ${GS_EXE}; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if test -n "$HAS_GS_EXE"; then
5889 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_HAS_GS_EXE="yes"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5902 done
5903 done
5904 IFS=$as_save_IFS
5906 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5909 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5910 if test -n "$HAS_GS_EXE"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5912 $as_echo "$HAS_GS_EXE" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5919 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
5920 set dummy ${GS_DLL}; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -n "$HAS_GS_LIB"; then
5927 ac_cv_prog_HAS_GS_LIB="$HAS_GS_LIB" # Let the user override the test.
5928 else
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_HAS_GS_LIB="yes"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5940 done
5941 done
5942 IFS=$as_save_IFS
5944 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB="no"
5947 HAS_GS_LIB=$ac_cv_prog_HAS_GS_LIB
5948 if test -n "$HAS_GS_LIB"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_LIB" >&5
5950 $as_echo "$HAS_GS_LIB" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5959 # Extract the first word of "gs", so it can be a program name with args.
5960 set dummy gs; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$HAS_GS_EXE"; then
5967 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_HAS_GS_EXE="yes"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5980 done
5981 done
5982 IFS=$as_save_IFS
5984 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5987 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5988 if test -n "$HAS_GS_EXE"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5990 $as_echo "$HAS_GS_EXE" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5997 HAS_GS_LIB="yes"
5999 esac
6000 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
6002 $as_echo "#define USE_GS 1" >>confdefs.h
6004 CONFIG_GS="Ghostscript"
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
6010 $as_echo "disabling ghostscript support" >&6; }
6014 #--------------------------------------------------------------------
6015 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
6016 #--------------------------------------------------------------------
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ... arguments behave correctly" >&5
6019 $as_echo_n "checking whether ... arguments behave correctly... " >&6; }
6020 if test -z "$GUILE_CFLAGS"; then
6021 CXXFLAGS="`guile-config compile`"
6022 else
6023 CXXFLAGS="$GUILE_CFLAGS"
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6028 #include <guile/gh.h>
6029 #include <libguile.h>
6030 typedef SCM (*FN)(...);
6031 static SCM identity (SCM x) { return x; }
6032 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
6035 main ()
6040 return 0;
6042 _ACEOF
6043 if ac_fn_cxx_try_compile "$LINENO"; then :
6046 $as_echo "#define DOTS_OK 1" >>confdefs.h
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6049 $as_echo "yes" >&6; }
6051 else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 CXXFLAGS=""
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the size_t of guile strings" >&5
6061 $as_echo_n "checking the size_t of guile strings... " >&6; }
6062 if test -z "$GUILE_CFLAGS"; then
6063 CXXFLAGS="`guile-config compile`"
6064 else
6065 CXXFLAGS="$GUILE_CFLAGS"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 #include <guile/gh.h>
6071 #include <libguile.h>
6072 void print_string (SCM s) {
6073 int len_r;
6074 char* r= gh_scm2newstr (s, &len_r); }
6077 main ()
6082 return 0;
6084 _ACEOF
6085 if ac_fn_cxx_try_compile "$LINENO"; then :
6088 $as_echo "#define guile_str_size_t int" >>confdefs.h
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
6091 $as_echo "int" >&6; }
6093 else
6096 $as_echo "#define guile_str_size_t size_t" >>confdefs.h
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
6099 $as_echo "size_t" >&6; }
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 CXXFLAGS=""
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statically linking with guile works" >&5
6106 $as_echo_n "checking if statically linking with guile works... " >&6; }
6107 SAVE_CPPFLAGS="$CPPFLAGS"
6108 SAVE_LDFLAGS="$LDFLAGS"
6109 SAVE_LIBS="$LIBS"
6110 CPPFLAGS="$GUILE_CFLAGS"
6111 LDFLAGS="-static"
6112 LIBS="$GUILE_LDFLAGS"
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6116 #include <guile/gh.h>
6117 $CONFIG_DOTS
6120 main ()
6123 struct dummy {
6124 static void my_main (int argc, char** argv) {}
6125 static void install_guile () {
6126 #ifdef DOTS_OK
6127 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6128 #else
6129 gh_enter (0, NULL, my_main);
6130 #endif
6133 dummy::install_guile ();
6136 return 0;
6138 _ACEOF
6139 if ac_fn_cxx_try_link "$LINENO"; then :
6140 tm_link_guile_static="yes"
6141 else
6142 tm_link_guile_static="no"
6144 rm -f core conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static\"" >&5
6148 $as_echo "\"$tm_link_guile_static\"" >&6; }
6149 if test "$tm_link_guile_static" = "no" ; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl" >&5
6151 $as_echo_n "checking if it works with -lltdl... " >&6; }
6152 LIBS="$GUILE_LDFLAGS -lltdl"
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6156 #include <guile/gh.h>
6157 $CONFIG_DOTS
6160 main ()
6163 struct dummy {
6164 static void my_main (int argc, char** argv) {}
6165 static void install_guile () {
6166 #ifdef DOTS_OK
6167 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6168 #else
6169 gh_enter (0, NULL, my_main);
6170 #endif
6173 dummy::install_guile ();
6176 return 0;
6178 _ACEOF
6179 if ac_fn_cxx_try_link "$LINENO"; then :
6180 tm_link_guile_static_ltdl="yes"
6181 else
6182 tm_link_guile_static_ltdl="no"
6184 rm -f core conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl\"" >&5
6188 $as_echo "\"$tm_link_guile_static_ltdl\"" >&6; }
6189 if test "$tm_link_guile_static_ltdl" = "yes" ; then
6190 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl -ldl" >&5
6193 $as_echo_n "checking if it works with -lltdl -ldl... " >&6; }
6194 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6198 #include <guile/gh.h>
6199 $CONFIG_DOTS
6202 main ()
6205 struct dummy {
6206 static void my_main (int argc, char** argv) {}
6207 static void install_guile () {
6208 #ifdef DOTS_OK
6209 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6210 #else
6211 gh_enter (0, NULL, my_main);
6212 #endif
6215 dummy::install_guile ();
6218 return 0;
6220 _ACEOF
6221 if ac_fn_cxx_try_link "$LINENO"; then :
6222 tm_link_guile_static_ltdl_ldl="yes"
6223 else
6224 tm_link_guile_static_ltdl_ldl="no"
6226 rm -f core conftest.err conftest.$ac_objext \
6227 conftest$ac_exeext conftest.$ac_ext
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
6230 $as_echo "\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
6231 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
6232 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link statically with guile" >&5
6235 $as_echo "$as_me: WARNING: unable to link statically with guile" >&2;}
6239 CPPFLAGS="$SAVE_CPPFLAGS"
6240 LDFLAGS="$SAVE_LDFLAGS"
6241 LIBS="$SAVE_LIBS"
6243 #--------------------------------------------------------------------
6244 # Handle different systems case by case
6245 #--------------------------------------------------------------------
6247 CONFIG_OS="GNU_LINUX"
6248 CONFIG_OS_SUFFIX="gnu-linux"
6249 CONFIG_OS_COMPAT="Unix"
6250 CONFIG_MACOS=""
6251 CONFIG_CXXFLAGS=""
6252 CONFIG_CXXTEMPLATE=""
6253 CONFIG_STD_SETENV="#define STD_SETENV"
6254 CONFIG_SO="so"
6255 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
6256 CONFIG_CHMOD="chmod -f"
6257 CONFIG_CXXOPTIMIZE="-O2"
6258 CONFIG_BSTATIC="-Wl,-Bstatic"
6259 CONFIG_BSHARED="-Wl,-Bdynamic"
6260 CONFIG_BFLAGS=""
6261 CONFIG_BPATH="-Wl,-rpath,"
6262 CONFIG_LDRT=""
6263 CONFIG_WORD_LENGTH="4"
6264 CONFIG_WORD_LENGTH_INC="3"
6265 CONFIG_WORD_MASK="0xfffffffc"
6266 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6267 # tweak for XCode project
6268 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
6270 X11_CFLAGS="$X_CFLAGS"
6271 X11_LDFLAGS="$X_LIBS -lXext -lX11"
6273 # The cast to long int works around a bug in the HP C Compiler
6274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6276 # This bug is HP SR number 8606223364.
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6278 $as_echo_n "checking size of void *... " >&6; }
6279 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6284 else
6285 if test "$ac_cv_type_void_p" = yes; then
6286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6288 as_fn_error 77 "cannot compute sizeof (void *)
6289 See \`config.log' for more details" "$LINENO" 5; }
6290 else
6291 ac_cv_sizeof_void_p=0
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6297 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6301 cat >>confdefs.h <<_ACEOF
6302 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6303 _ACEOF
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
6307 $as_echo_n "checking if we are on a 64-bits computer... " >&6; }
6308 if test "$ac_cv_sizeof_void_p" = "8"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6310 $as_echo "yes" >&6; }
6311 CONFIG_WORD_LENGTH="8"
6312 CONFIG_WORD_LENGTH_INC="7"
6313 CONFIG_WORD_MASK="0xfffffffffffffff8"
6314 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6320 case "${host}" in
6321 i*86-*-linux* | x86_64-*-linux*)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6323 $as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
6324 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6326 i*86-*-freebsd* | x86_64-*-freebsd*)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6328 $as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
6329 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6331 i*86-*-solaris*)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
6333 $as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
6334 CONFIG_CXXOPTIMIZE="-O3"
6335 CONFIG_BPATH="-Wl,-R,"
6336 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6338 *mingw*)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
6340 $as_echo "final adjustments for mingw host" >&6; }
6341 CONFIG_OS_COMPAT="Windows"
6342 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
6344 *-*-cygwin)
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
6346 $as_echo "final adjustments for cygwin host" >&6; }
6347 CONFIG_OS="CYGWIN"
6348 CONFIG_BFLAGS="-Wl,-stack,8388608"
6349 # CXX="export CYGWIN=check_case:strict; $CXX"
6350 # AC_SUBST(CXX)
6352 *apple*darwin*)
6353 echo "$ac_t""final adjustments for a MacOS host" 1>&6
6354 CONFIG_OS="MACOS"
6355 CONFIG_CXXFLAGS="-I${prefix}/include"
6356 CONFIG_BSHARED=""
6357 CONFIG_BFLAGS="-framework Cocoa"
6358 CONFIG_BPATH=""
6359 CONFIG_SO="dylib"
6360 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6362 *darwin*)
6363 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
6364 CONFIG_CXXFLAGS="-I${prefix}/include"
6365 CONFIG_BSHARED=""
6366 CONFIG_BPATH=""
6367 CONFIG_SO="dylib"
6368 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6370 powerpc-*-linux*)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
6372 $as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
6373 CONFIG_OS="POWERPC_GNU_LINUX"
6374 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6376 *sun*)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
6378 $as_echo "final adjustments for a SUN/solaris host" >&6; }
6379 CONFIG_OS="SUN"
6380 CONFIG_OS_SUFFIX="sun"
6381 CONFIG_BSTATIC=""
6382 CONFIG_BSHARED=""
6383 CONFIG_BPATH="-Wl,-R,"
6384 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6385 CONFIG_WORD_LENGTH="8"
6386 CONFIG_WORD_LENGTH_INC="7"
6387 CONFIG_WORD_MASK="0xfffffff8"
6388 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6389 CONFIG_STD_SETENV=""
6391 sparc*-*-linux*)
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
6393 $as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
6394 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6395 CONFIG_WORD_LENGTH="8"
6396 CONFIG_WORD_LENGTH_INC="7"
6397 CONFIG_WORD_MASK="0xfffffff8"
6398 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6399 CONFIG_STD_SETENV=""
6401 *dec*)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
6403 $as_echo "final adjustments for a DEC/alpha host" >&6; }
6404 CONFIG_BSTATIC=""
6405 CONFIG_BSHARED="-shared"
6406 CONFIG_STD_SETENV=""
6408 *alpha*-*-linux*)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
6410 $as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
6411 CONFIG_BSTATIC=""
6412 CONFIG_BSHARED="-shared"
6414 s390-*-linux*)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6416 $as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
6417 CONFIG_STD_SETENV=""
6419 ia64-*-linux*)
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
6421 $as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
6422 CONFIG_BSTATIC=""
6423 CONFIG_BSHARED="-shared"
6425 hppa*-*-linux*)
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6427 $as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
6428 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6429 CONFIG_BSTATIC=""
6430 CONFIG_BSHARED="-shared"
6432 *sgi-irix*)
6433 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6434 CONFIG_OS="IRIX"
6435 CONFIG_CXXFLAGS=""
6436 X_LIBS=-L/usr/lib32
6437 CONFIG_BSTATIC=""
6438 CONFIG_BSHARED=""
6439 CONFIG_BPATH=""
6440 X11_LDFLAGS="$X_LIBS -lX11"
6441 CONFIG_WORD_MASK="0xfffffff8"
6442 CONFIG_STD_SETENV=""
6443 CONFIG_CHMOD="chmod"
6444 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6446 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
6448 $as_echo "final adjustments for a supported GNU/Linux host" >&6; }
6450 *-linux*)
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
6452 $as_echo "final adjustments for a generic GNU/Linux host" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
6456 $as_echo "final adjustments for a generic host" >&6; }
6458 esac
6460 case "${host}" in
6461 *apple*darwin10*)
6462 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
6463 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
6465 esac
6467 #--------------------------------------------------------------------
6468 # Temporary fix for link problem
6469 #--------------------------------------------------------------------
6471 case "$GXX_VERSION" in
6472 3.* | 4.*)
6473 CONFIG_BSTATIC="-static"
6474 CONFIG_BSHARED="-dynamic"
6476 esac
6478 #--------------------------------------------------------------------
6479 # Memory allocation options
6480 #--------------------------------------------------------------------
6482 # Check whether --enable-fastalloc was given.
6483 if test "${enable_fastalloc+set}" = set; then :
6484 enableval=$enable_fastalloc;
6485 else
6486 enable_fastalloc="yes"
6489 case "$enable_fastalloc" in
6490 yes)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
6494 $as_echo "disabling fast allocator for small objects" >&6; }
6496 $as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
6500 as_fn_error $? "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
6502 esac
6504 #--------------------------------------------------------------------
6505 # Experimental options
6506 #--------------------------------------------------------------------
6508 # Check whether --enable-experimental was given.
6509 if test "${enable_experimental+set}" = set; then :
6510 enableval=$enable_experimental;
6511 else
6512 enable_experimental="no"
6515 case "$enable_experimental" in
6516 yes)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
6518 $as_echo "enabling experimental style rewriting code" >&6; }
6520 $as_echo "#define EXPERIMENTAL 1" >>confdefs.h
6522 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
6526 $as_echo "disabling experimental style rewriting code" >&6; }
6527 CONFIG_EXPERIMENTAL=""
6530 as_fn_error $? "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
6532 esac
6535 #--------------------------------------------------------------------
6536 # MacOS X extensions (spellchecker, image loading)
6537 #--------------------------------------------------------------------
6539 # Check whether --enable-macosx-extensions was given.
6540 if test "${enable_macosx_extensions+set}" = set; then :
6541 enableval=$enable_macosx_extensions;
6542 else
6543 enable_macosx_extensions="no"
6546 case "$enable_macosx_extensions" in
6547 yes)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
6549 $as_echo "enabling Mac OSX extensions" >&6; }
6551 $as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
6553 CONFIG_MACOS="MacOS"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
6557 $as_echo "disabling Mac OSX extensions" >&6; }
6558 CONFIG_MACOS=""
6561 as_fn_error $? "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
6563 esac
6566 #--------------------------------------------------------------------
6567 # Experimental PDF renderer
6568 #--------------------------------------------------------------------
6570 # Check whether --enable-pdf-renderer was given.
6571 if test "${enable_pdf_renderer+set}" = set; then :
6572 enableval=$enable_pdf_renderer;
6573 else
6574 enable_pdf_renderer="no"
6577 case "$enable_pdf_renderer" in
6578 yes)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental PDF renderer" >&5
6580 $as_echo "enabling experimental PDF renderer" >&6; }
6582 $as_echo "#define PDF_RENDERER 1" >>confdefs.h
6584 CONFIG_PDF="Pdf Pdf/dvipdfmx"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental PDF renderer" >&5
6588 $as_echo "disabling experimental PDF renderer" >&6; }
6589 CONFIG_PDF=""
6592 as_fn_error $? "bad option --enable-pdf-renderer=$enable_pdf_renderer" "$LINENO" 5
6594 esac
6597 #--------------------------------------------------------------------
6598 # Gui selection
6599 #--------------------------------------------------------------------
6601 CONFIG_X11=""
6602 CONFIG_COCOA=""
6603 CONFIG_GUI="X11"
6605 # Check whether --enable-qt was given.
6606 if test "${enable_qt+set}" = set; then :
6607 enableval=$enable_qt;
6608 else
6609 enable_qt="no"
6613 case "$enable_qt" in
6614 yes)
6616 if test -r "/c/Qt"; then
6617 MOC="`which moc`"
6618 qt_bin="`dirname $MOC`"
6619 qt_home="`dirname $qt_bin`"
6620 qt_version="`basename $qt_home`"
6621 qt_parent="`dirname $qt_home`"
6622 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."
6623 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
6624 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
6625 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
6626 if test "$qt_parent" != "/c/Qt"; then
6627 at_cv_qt_build="ko"
6629 else
6634 test x"$TROLL" != x && echo 'ViM rox emacs.'
6637 # Check whether --with-qt was given.
6638 if test "${with_qt+set}" = set; then :
6639 withval=$with_qt; QT_PATH=$withval
6640 else
6641 QT_PATH=
6645 # Find Qt.
6646 if test -d /usr/local/Trolltech; then
6647 # Try to find the latest version.
6648 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
6649 | xargs | sed 's/ */:/g'`
6652 # Find qmake.
6653 if test -z "$QMAKE"; then
6654 for ac_prog in qmake
6656 # Extract the first word of "$ac_prog", so it can be a program name with args.
6657 set dummy $ac_prog; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_path_QMAKE+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 case $QMAKE in
6664 [\\/]* | ?:[\\/]*)
6665 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
6670 for as_dir in $as_dummy
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
6674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
6677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 break 2
6680 done
6681 done
6682 IFS=$as_save_IFS
6685 esac
6687 QMAKE=$ac_cv_path_QMAKE
6688 if test -n "$QMAKE"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6690 $as_echo "$QMAKE" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6697 test -n "$QMAKE" && break
6698 done
6699 test -n "$QMAKE" || QMAKE="missing"
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
6703 $as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6705 $as_echo "$QMAKE" >&6; }
6707 if test x"$QMAKE" = xmissing; then
6708 as_fn_error $? "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
6711 # Find moc (Meta Object Compiler).
6712 if test -z "$MOC"; then
6713 for ac_prog in moc
6715 # Extract the first word of "$ac_prog", so it can be a program name with args.
6716 set dummy $ac_prog; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_path_MOC+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 case $MOC in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6729 for as_dir in $as_dummy
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6744 esac
6746 MOC=$ac_cv_path_MOC
6747 if test -n "$MOC"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6749 $as_echo "$MOC" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6756 test -n "$MOC" && break
6757 done
6758 test -n "$MOC" || MOC="missing"
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
6762 $as_echo_n "checking for the MOC to use with Qt... " >&6; }
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6764 $as_echo "$MOC" >&6; }
6766 if test x"$MOC" = xmissing; then
6767 as_fn_error $? "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6770 # Find uic (User Interface Compiler).
6771 if test -z "$UIC"; then
6772 for ac_prog in uic
6774 # Extract the first word of "$ac_prog", so it can be a program name with args.
6775 set dummy $ac_prog; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_path_UIC+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 case $UIC in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6788 for as_dir in $as_dummy
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6803 esac
6805 UIC=$ac_cv_path_UIC
6806 if test -n "$UIC"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6808 $as_echo "$UIC" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6815 test -n "$UIC" && break
6816 done
6817 test -n "$UIC" || UIC="missing"
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
6821 $as_echo_n "checking for the UIC to use with Qt... " >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6823 $as_echo "$UIC" >&6; }
6825 if test x"$UIC" = xmissing; then
6826 as_fn_error $? "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6829 # Find rcc (Qt Resource Compiler).
6830 for ac_prog in rcc
6832 # Extract the first word of "$ac_prog", so it can be a program name with args.
6833 set dummy $ac_prog; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_path_RCC+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 case $RCC in
6840 [\\/]* | ?:[\\/]*)
6841 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6846 for as_dir in $as_dummy
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6856 done
6857 done
6858 IFS=$as_save_IFS
6861 esac
6863 RCC=$ac_cv_path_RCC
6864 if test -n "$RCC"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
6866 $as_echo "$RCC" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6873 test -n "$RCC" && break
6874 done
6875 test -n "$RCC" || RCC="false"
6877 if test x"$UIC" = xfalse; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
6879 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
6882 # If we don't know the path to Qt, guess it from the path to qmake.
6883 if test x"$QT_PATH" = x; then
6884 QT_PATH=`dirname "$QMAKE"`
6886 if test x"$QT_PATH" = x; then
6887 as_fn_error $? "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
6891 $as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
6893 $as_echo "$QT_PATH" >&6; }
6895 # Get ready to build a test-app with Qt.
6897 # Look for a writable temporary directory.
6899 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
6900 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
6902 for i in /tmp /var/tmp; do
6903 if test -d "$i" && test -w "$i"; then
6904 TMPDIR=$i
6905 export TMPDIR
6906 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
6907 break
6909 done
6912 # Kludge!! QMake has a very strange behavior. For instance, if you
6913 # install Qt under your $HOME and run QMake somewhere else under your
6914 # $HOME, it will try to be clever and produce Makefiles with relative
6915 # include paths. In order to avoid this, we will test QMake from a
6916 # temporary directory (usually /tmp). Note that this problem was only
6917 # observed with Qt 4.
6918 my_configure_pwd=`pwd`
6919 my_tmpdir="$TMPDIR/conftest$$.dir"
6920 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
6921 if test -w "$my_tmpdir" && cd "$my_tmpdir"
6922 then
6924 else
6925 as_fn_error $? "Cannot cd to or write in $my_tmpdir" "$LINENO" 5
6927 cat >conftest.h <<_ASEOF
6928 #include <QObject>
6930 class Foo: public QObject
6932 Q_OBJECT;
6933 public:
6934 Foo();
6935 ~Foo() {}
6936 public slots:
6937 void setValue(int value);
6938 signals:
6939 void valueChanged(int newValue);
6940 private:
6941 int value_;
6943 _ASEOF
6945 cat >conftest.cpp <<_ASEOF
6946 #include "conftest.h"
6947 Foo::Foo()
6948 : value_ (42)
6950 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
6953 void Foo::setValue(int value)
6955 value_ = value;
6958 int main()
6960 Foo f;
6962 _ASEOF
6963 if $QMAKE -project; then :; else
6964 as_fn_error $? "Calling $QMAKE -project failed." "$LINENO" 5
6967 # Find the .pro file generated by qmake.
6968 pro_file='conftest.dir.pro'
6969 test -f $pro_file || pro_file=`echo *.pro`
6970 if test -f "$pro_file"; then :; else
6971 as_fn_error $? "Can't find the .pro file generated by Qmake." "$LINENO" 5
6980 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
6981 sed 's/^/| /' "$pro_file" >&5
6983 additional_qmake_flags=""
6984 case $host_os in
6985 darwin*)
6986 additional_qmake_flags="-spec macx-g++"
6988 esac
6990 if $QMAKE ${additional_qmake_flags} ; then :; else
6991 as_fn_error $? "Calling $QMAKE failed." "$LINENO" 5
6993 # Try to compile a simple Qt app.
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
6995 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
6996 if test "${at_cv_qt_build+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 at_cv_qt_build=ko
7000 : ${MAKE=make}
7002 if $MAKE >&5 2>&1; then
7003 at_cv_qt_build='ok, looks like Qt 4'
7004 else
7005 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
7006 instead" >&5
7007 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
7008 if $MAKE >&5 2>&1; then
7009 at_cv_qt_build='ok, looks like Qt 3'
7010 else
7011 # Sometimes (such as on Debian) build will fail because Qt hasn't been
7012 # installed in debug mode and qmake tries (by default) to build apps in
7013 # debug mode => Try again in release mode.
7014 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
7017 # Tweak the value of CONFIG in the .pro file for +release.
7019 qt_conf=''
7020 for at_mod in +release; do
7021 at_mod=`echo "$at_mod" | sed 's/^-//; tough
7022 s/^+//; beef
7023 :ough
7024 s/^/CONFIG -= /;n
7025 :eef
7026 s/^/CONFIG += /'`
7027 qt_conf="$qt_conf
7028 $at_mod"
7029 done
7030 echo "$qt_conf" | sed 1d >>"$pro_file"
7033 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
7034 if $MAKE >&5 2>&1; then
7035 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
7036 else
7037 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
7038 instead" >&5
7039 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
7040 if $MAKE >&5 2>&1; then
7041 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
7042 else
7043 at_cv_qt_build=ko
7044 echo "$as_me:$LINENO: failed program was:" >&5
7045 sed 's/^/| /' conftest.h >&5
7046 echo "$as_me:$LINENO: failed program was:" >&5
7047 sed 's/^/| /' conftest.cpp >&5
7048 fi # if make with Qt3-style #include and release mode forced.
7049 fi # if make with Qt4-style #include and release mode forced.
7050 fi # if make with Qt3-style #include.
7051 fi # if make with Qt4-style #include.
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
7055 $as_echo "$at_cv_qt_build" >&6; }
7056 if test x"$at_cv_qt_build" = xko; then
7057 as_fn_error $? "Cannot build a test Qt program" "$LINENO" 5
7059 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
7062 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
7063 # It starts by removing the beginning of the line, removing references to
7064 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
7065 # all variable uses by QT_.
7066 qt_sed_filter='s///;
7067 s/$(SUBLIBS)//g;
7068 s/^ *//;
7069 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
7071 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
7072 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
7073 # Makefile.Release. The reason is that the main difference is that release
7074 # uses -Os and debug -g. We can override -Os by passing another -O but we
7075 # usually don't override -g.
7076 if test -f Makefile.Release; then
7077 at_mfile='Makefile.Release'
7078 else
7079 at_mfile='Makefile'
7081 if test -f $at_mfile; then :; else
7082 cd "$my_configure_pwd"
7083 as_fn_error $? "Cannot find the Makefile generated by qmake." "$LINENO" 5
7086 # Find the DEFINES of Qt (should have been named CPPFLAGS).
7087 if test -z "$QT_DEFINES"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
7089 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
7090 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
7096 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
7097 QT_DEFINES="$at_cv_env_QT_DEFINES"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
7101 $as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
7103 $as_echo "$QT_DEFINES" >&6; }
7105 # Find the CFLAGS of Qt (We can use Qt in C?!)
7106 if test -z "$QT_CFLAGS"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
7108 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
7109 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
7115 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
7116 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
7120 $as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
7122 $as_echo "$QT_CFLAGS" >&6; }
7124 # Find the CXXFLAGS of Qt.
7125 if test -z "$QT_CXXFLAGS"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
7127 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
7128 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
7134 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
7135 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
7139 $as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
7141 $as_echo "$QT_CXXFLAGS" >&6; }
7143 # Find the INCPATH of Qt.
7144 if test -z "$QT_INCPATH"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
7146 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
7147 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
7153 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
7154 QT_INCPATH="$at_cv_env_QT_INCPATH"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
7158 $as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
7160 $as_echo "$QT_INCPATH" >&6; }
7162 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
7165 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
7166 if test -z "$QT_LDFLAGS"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
7168 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
7169 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
7175 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
7176 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
7179 QT_LFLAGS=$QT_LDFLAGS
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
7182 $as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
7184 $as_echo "$QT_LDFLAGS" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
7187 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
7188 at_darwin="no"
7189 case $host_os in
7190 darwin*)
7191 at_darwin="yes"
7193 esac
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
7195 $as_echo "$at_darwin" >&6; }
7197 # Find the LIBS of Qt.
7198 if test -z "$QT_LIBS"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
7200 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
7201 if test "${at_cv_env_QT_LIBS+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7205 if test x$at_darwin = xyes; then
7206 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
7207 # -F properly. The "bug" has been fixed on 22 October 2006
7208 # by Peter O'Gorman but we provide backward compatibility here.
7209 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
7210 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
7215 $as_echo "$at_cv_env_QT_LIBS" >&6; }
7216 QT_LIBS="$at_cv_env_QT_LIBS"
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
7220 $as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
7222 $as_echo "$QT_LIBS" >&6; }
7224 cd "$my_configure_pwd" || echo 'WTF!'
7225 rm -rf "$my_tmpdir"
7229 if test x"$at_cv_qt_build" = xko; then
7230 as_fn_error $? "cannot find Qt!" "$LINENO" 5
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Qt port" >&5
7233 $as_echo "enabling experimental Qt port" >&6; }
7234 CONFIG_GUI="QT"
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Qt port" >&5
7239 $as_echo "disabling experimental Qt port" >&6; }
7242 as_fn_error $? "bad option --enable-qt=$enable_qt" "$LINENO" 5
7244 esac
7246 # Check whether --enable-qtpipes was given.
7247 if test "${enable_qtpipes+set}" = set; then :
7248 enableval=$enable_qtpipes;
7249 else
7250 enable_qtpipes="no"
7254 case "$enable_qtpipes" in
7255 yes)
7256 if test x"$CONFIG_GUI" = xQT; then
7258 $as_echo "#define QTPIPES 1" >>confdefs.h
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Qt pipes" >&5
7261 $as_echo "enabling Qt pipes" >&6; }
7262 else
7263 as_fn_error $? "QT not enabled!" "$LINENO" 5
7267 if test x"$CONFIG_GUI" = xQT; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Qt pipes" >&5
7269 $as_echo "disabling Qt pipes" >&6; }
7273 as_fn_error $? "bad option --enable-qtpipes=$enable_qt" "$LINENO" 5
7275 esac
7277 # Check whether --enable-cocoa was given.
7278 if test "${enable_cocoa+set}" = set; then :
7279 enableval=$enable_cocoa;
7280 else
7281 enable_cocoa="no"
7284 case "$enable_cocoa" in
7285 yes)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
7287 $as_echo "enabling experimental Cocoa port" >&6; }
7288 COCOA_CFLAGS=""
7289 COCOA_LDFLAGS="-framework Cocoa"
7290 CONFIG_GUI="COCOA"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
7294 $as_echo "disabling experimental Cocoa port" >&6; }
7297 as_fn_error $? "bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
7299 esac
7301 case "$CONFIG_GUI" in
7302 X11)
7303 CONFIG_X11="X11 Widkit"
7304 if test "x${CONFIG_GS}" != "xGhostscript"; then
7305 CONFIG_X11="$CONFIG_X11 Ghostscript"
7307 CONFIG_GUI_DEFINE="X11TEXMACS"
7308 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
7310 COCOA)
7311 CONFIG_COCOA="Cocoa"
7312 CONFIG_GUI_DEFINE="AQUATEXMACS"
7313 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
7316 CONFIG_QT="Qt"
7317 CONFIG_GUI_DEFINE="QTTEXMACS"
7318 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
7320 esac
7335 #--------------------------------------------------------------------
7336 # Debugging options
7337 #--------------------------------------------------------------------
7339 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
7340 if test "$enable_cocoa" = "yes"; then
7341 STD_DEBUG_FLAGS="-fno-exceptions"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports $STD_DEBUG_FLAGS" >&5
7345 $as_echo_n "checking if compiler supports $STD_DEBUG_FLAGS... " >&6; }
7346 CXXFLAGS="$STD_DEBUG_FLAGS"
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7350 int some_variable = 0;
7353 main ()
7358 return 0;
7360 _ACEOF
7361 if ac_fn_cxx_try_compile "$LINENO"; then :
7363 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7365 $as_echo "yes" >&6; }
7367 else
7369 CONFIG_CXXDIALECT=""
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 CXXFLAGS=""
7378 # Check whether --enable-debug was given.
7379 if test "${enable_debug+set}" = set; then :
7380 enableval=$enable_debug;
7381 else
7382 enable_debug="no"
7386 if test "$enable_debug" = "yes"; then
7387 if test "$GXX" = "yes"; then
7388 enable_debug="-ggdb"
7389 else
7390 enable_debug="-g3"
7394 if test "$enable_debug" = "no"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling debugging" >&5
7396 $as_echo "disabling debugging" >&6; }
7397 CONFIG_STRIP="strip"
7398 CONFIG_CXXDEBUG=""
7399 optimize_default="yes"
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debugging, $enable_debug" >&5
7402 $as_echo "enabling debugging, $enable_debug" >&6; }
7403 CONFIG_STRIP="true"
7404 CONFIG_CXXDEBUG="$enable_debug"
7405 optimize_default="no"
7408 # Check whether --enable-assert was given.
7409 if test "${enable_assert+set}" = set; then :
7410 enableval=$enable_assert;
7411 else
7412 enable_assert="yes"
7416 if test "$enable_assert" = "no"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling assertion checking" >&5
7418 $as_echo "disabling assertion checking" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling assertion checking" >&5
7421 $as_echo "enabling assertion checking" >&6; }
7423 $as_echo "#define DEBUG_ASSERT 1" >>confdefs.h
7427 #--------------------------------------------------------------------
7428 # Warning options
7429 #--------------------------------------------------------------------
7431 case "$GXX_VERSION" in
7432 none)
7433 CONFIG_CXXWARNING="";
7436 CONFIG_CXXWARNING="-Wall -Wno-return-type"
7438 esac
7440 # Check whether --enable-warnings was given.
7441 if test "${enable_warnings+set}" = set; then :
7442 enableval=$enable_warnings;
7443 else
7444 enable_warnings="yes"
7447 case "$enable_warnings" in
7448 yes)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7450 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7452 CONFIG_CXXWARNING=""
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warning flags" >&5
7454 $as_echo "disabling warning flags" >&6; } ;;
7456 CONFIG_CXXWARNING="$enable_warnings"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7458 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7459 esac
7461 #--------------------------------------------------------------------
7462 # Optimization options
7463 #--------------------------------------------------------------------
7465 if test "$optimize_default" = "yes"; then
7466 case "$GXX_VERSION" in
7467 3.3.3 | 3.3.4 | 4.*)
7469 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
7470 case "${host}" in
7471 i*86-*-linux-gnu* | i*86-*-freebsd*)
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7473 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7474 optimize_default="no-inline"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7478 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7479 optimize_default="no-inline"
7481 esac
7483 esac
7486 # Check whether --enable-optimize was given.
7487 if test "${enable_optimize+set}" = set; then :
7488 enableval=$enable_optimize;
7489 else
7490 enable_optimize="$optimize_default"
7494 case "$enable_optimize" in
7495 yes)
7496 # keep optimization options
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7498 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7499 no-inline)
7500 optimize_no_inline="-fno-default-inline -fno-inline"
7501 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7503 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7505 CONFIG_CXXOPTIMIZE=""
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling optimizations" >&5
7507 $as_echo "disabling optimizations" >&6; } ;;
7509 CONFIG_CXXOPTIMIZE="$enable_optimize"
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: customizing optimizations, $enable_optimize" >&5
7511 $as_echo "customizing optimizations, $enable_optimize" >&6; } ;;
7512 esac
7514 #--------------------------------------------------------------------
7515 # Substitute TeXmacs specific configuration parameters
7516 #--------------------------------------------------------------------
7542 #--------------------------------------------------------------------
7543 # Default paths for installation
7544 #--------------------------------------------------------------------
7546 if test "$prefix" = ""; then
7547 prefix=/usr/local
7549 if test "$prefix" = "NONE"; then
7550 prefix=/usr/local
7552 if test "$exec_prefix" = ""; then
7553 exec_prefix='${prefix}'
7555 if test "$exec_prefix" = "NONE"; then
7556 exec_prefix='${prefix}'
7558 if test "$exec_prefix" = '${prefix}'; then
7559 exec_prefix='${prefix}'
7561 if test "$includedir" = ""; then
7562 includedir='${prefix}/include'
7564 if test "$includedir" = "NONE"; then
7565 includedir='${prefix}/include'
7567 if test "$includedir" = '${prefix}/include'; then
7568 includedir='${prefix}/include'
7570 if test "$libdir" = ""; then
7571 libdir='${exec_prefix}/lib'
7573 if test "$libdir" = "NONE"; then
7574 libdir='${exec_prefix}/lib'
7576 if test "$libdir" = '${exec_prefix}/lib'; then
7577 libdir='${exec_prefix}/lib'
7579 if test "$bindir" = ""; then
7580 bindir='${exec_prefix}/bin'
7582 if test "$bindir" = "NONE"; then
7583 bindir=${exec_prefix}/bin
7585 if test "$bindir" = '${exec_prefix}/bin'; then
7586 bindir='${exec_prefix}/bin'
7588 if test "$datarootdir" = ""; then
7589 datarootdir='${prefix}/share'
7591 if test "$datarootdir" = "NONE"; then
7592 datarootdir='${prefix}/share'
7594 if test "$datarootdir" = '${prefix}/share'; then
7595 datarootdir='${prefix}/share'
7597 if test "$datadir" = ""; then
7598 datadir='${prefix}/share'
7600 if test "$datadir" = "NONE"; then
7601 datadir='${prefix}/share'
7603 if test "$datadir" = '${prefix}/share'; then
7604 datadir='${prefix}/share'
7606 if test "$mandir" = ""; then
7607 mandir='${datarootdir}/man'
7609 if test "$mandir" = "NONE"; then
7610 mandir='${datarootdir}/man'
7612 if test "$mandir" = '${datarootdir}/man'; then
7613 mandir='${datarootdir}/man'
7615 if test "$libexecdir" = ""; then
7616 libexecdir='${exec_prefix}/libexec'
7618 if test "$libexecdir" = "NONE"; then
7619 libexecdir='${exec_prefix}/libexec'
7621 if test "$libexecdir" = '${exec_prefix}/libexec'; then
7622 libexecdir='${exec_prefix}/libexec'
7625 curdir="`pwd`"
7626 tmorig=${curdir}
7627 tmdir=${PACKAGE}
7628 tmsrc=${curdir}/${tmdir}
7629 tmbin=${libexecdir}/${tmdir}
7630 tmdata=${datadir}/${tmdir}
7637 if test "$DEVEL_RELEASE" = "1"; then
7638 tmtgz=${PACKAGE}-${DEVEL_VERSION}
7639 else
7640 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
7642 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
7643 if test "$STABLE_RELEASE" = "1"; then
7644 tmstgz=${PACKAGE}-${STABLE_VERSION}
7645 else
7646 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
7648 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
7649 if test "$WINDOWS_RELEASE" = "1"; then
7650 tmwin=wintexmacs-${WINDOWS_VERSION}
7651 else
7652 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
7660 #--------------------------------------------------------------------
7661 # Done
7662 #--------------------------------------------------------------------
7664 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"
7666 cat >confcache <<\_ACEOF
7667 # This file is a shell script that caches the results of configure
7668 # tests run on this system so they can be shared between configure
7669 # scripts and configure runs, see configure's option --config-cache.
7670 # It is not useful on other systems. If it contains results you don't
7671 # want to keep, you may remove or edit it.
7673 # config.status only pays attention to the cache file if you give it
7674 # the --recheck option to rerun configure.
7676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7678 # following values.
7680 _ACEOF
7682 # The following way of writing the cache mishandles newlines in values,
7683 # but we know of no workaround that is simple, portable, and efficient.
7684 # So, we kill variables containing newlines.
7685 # Ultrix sh set writes to stderr and can't be redirected directly,
7686 # and sets the high bit in the cache file unless we assign to the vars.
7688 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7689 eval ac_val=\$$ac_var
7690 case $ac_val in #(
7691 *${as_nl}*)
7692 case $ac_var in #(
7693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7695 esac
7696 case $ac_var in #(
7697 _ | IFS | as_nl) ;; #(
7698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7699 *) { eval $ac_var=; unset $ac_var;} ;;
7700 esac ;;
7701 esac
7702 done
7704 (set) 2>&1 |
7705 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7706 *${as_nl}ac_space=\ *)
7707 # `set' does not quote correctly, so add quotes: double-quote
7708 # substitution turns \\\\ into \\, and sed turns \\ into \.
7709 sed -n \
7710 "s/'/'\\\\''/g;
7711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7712 ;; #(
7714 # `set' quotes correctly as required by POSIX, so do not add quotes.
7715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7717 esac |
7718 sort
7720 sed '
7721 /^ac_cv_env_/b end
7722 t clear
7723 :clear
7724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7725 t end
7726 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7727 :end' >>confcache
7728 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7729 if test -w "$cache_file"; then
7730 test "x$cache_file" != "x/dev/null" &&
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7732 $as_echo "$as_me: updating cache $cache_file" >&6;}
7733 cat confcache >$cache_file
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7739 rm -f confcache
7741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7742 # Let make expand exec_prefix.
7743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7745 DEFS=-DHAVE_CONFIG_H
7747 ac_libobjs=
7748 ac_ltlibobjs=
7750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7751 # 1. Remove the extension, and $U if already installed.
7752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7755 # will be set to the directory where LIBOBJS objects are built.
7756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7758 done
7759 LIBOBJS=$ac_libobjs
7761 LTLIBOBJS=$ac_ltlibobjs
7765 : ${CONFIG_STATUS=./config.status}
7766 ac_write_fail=0
7767 ac_clean_files_save=$ac_clean_files
7768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7771 as_write_fail=0
7772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7773 #! $SHELL
7774 # Generated by $as_me.
7775 # Run this file to recreate the current configuration.
7776 # Compiler output produced by configure, useful for debugging
7777 # configure, is in config.log if it exists.
7779 debug=false
7780 ac_cs_recheck=false
7781 ac_cs_silent=false
7783 SHELL=\${CONFIG_SHELL-$SHELL}
7784 export SHELL
7785 _ASEOF
7786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7787 ## -------------------- ##
7788 ## M4sh Initialization. ##
7789 ## -------------------- ##
7791 # Be more Bourne compatible
7792 DUALCASE=1; export DUALCASE # for MKS sh
7793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7794 emulate sh
7795 NULLCMD=:
7796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7797 # is contrary to our usage. Disable this feature.
7798 alias -g '${1+"$@"}'='"$@"'
7799 setopt NO_GLOB_SUBST
7800 else
7801 case `(set -o) 2>/dev/null` in #(
7802 *posix*) :
7803 set -o posix ;; #(
7804 *) :
7806 esac
7810 as_nl='
7812 export as_nl
7813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7817 # Prefer a ksh shell builtin over an external printf program on Solaris,
7818 # but without wasting forks for bash or zsh.
7819 if test -z "$BASH_VERSION$ZSH_VERSION" \
7820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7821 as_echo='print -r --'
7822 as_echo_n='print -rn --'
7823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7824 as_echo='printf %s\n'
7825 as_echo_n='printf %s'
7826 else
7827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7829 as_echo_n='/usr/ucb/echo -n'
7830 else
7831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7832 as_echo_n_body='eval
7833 arg=$1;
7834 case $arg in #(
7835 *"$as_nl"*)
7836 expr "X$arg" : "X\\(.*\\)$as_nl";
7837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7838 esac;
7839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7841 export as_echo_n_body
7842 as_echo_n='sh -c $as_echo_n_body as_echo'
7844 export as_echo_body
7845 as_echo='sh -c $as_echo_body as_echo'
7848 # The user is always right.
7849 if test "${PATH_SEPARATOR+set}" != set; then
7850 PATH_SEPARATOR=:
7851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7853 PATH_SEPARATOR=';'
7858 # IFS
7859 # We need space, tab and new line, in precisely that order. Quoting is
7860 # there to prevent editors from complaining about space-tab.
7861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7862 # splitting by setting IFS to empty value.)
7863 IFS=" "" $as_nl"
7865 # Find who we are. Look in the path if we contain no directory separator.
7866 case $0 in #((
7867 *[\\/]* ) as_myself=$0 ;;
7868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7874 done
7875 IFS=$as_save_IFS
7878 esac
7879 # We did not find ourselves, most probably we were run as `sh COMMAND'
7880 # in which case we are not to be found in the path.
7881 if test "x$as_myself" = x; then
7882 as_myself=$0
7884 if test ! -f "$as_myself"; then
7885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7886 exit 1
7889 # Unset variables that we do not need and which cause bugs (e.g. in
7890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7891 # suppresses any "Segmentation fault" message there. '((' could
7892 # trigger a bug in pdksh 5.2.14.
7893 for as_var in BASH_ENV ENV MAIL MAILPATH
7894 do eval test x\${$as_var+set} = xset \
7895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7896 done
7897 PS1='$ '
7898 PS2='> '
7899 PS4='+ '
7901 # NLS nuisances.
7902 LC_ALL=C
7903 export LC_ALL
7904 LANGUAGE=C
7905 export LANGUAGE
7907 # CDPATH.
7908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7912 # ----------------------------------------
7913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7915 # script with STATUS, using 1 if that was 0.
7916 as_fn_error ()
7918 as_status=$1; test $as_status -eq 0 && as_status=1
7919 if test "$4"; then
7920 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7923 $as_echo "$as_me: error: $2" >&2
7924 as_fn_exit $as_status
7925 } # as_fn_error
7928 # as_fn_set_status STATUS
7929 # -----------------------
7930 # Set $? to STATUS, without forking.
7931 as_fn_set_status ()
7933 return $1
7934 } # as_fn_set_status
7936 # as_fn_exit STATUS
7937 # -----------------
7938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7939 as_fn_exit ()
7941 set +e
7942 as_fn_set_status $1
7943 exit $1
7944 } # as_fn_exit
7946 # as_fn_unset VAR
7947 # ---------------
7948 # Portably unset VAR.
7949 as_fn_unset ()
7951 { eval $1=; unset $1;}
7953 as_unset=as_fn_unset
7954 # as_fn_append VAR VALUE
7955 # ----------------------
7956 # Append the text in VALUE to the end of the definition contained in VAR. Take
7957 # advantage of any shell optimizations that allow amortized linear growth over
7958 # repeated appends, instead of the typical quadratic growth present in naive
7959 # implementations.
7960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7961 eval 'as_fn_append ()
7963 eval $1+=\$2
7965 else
7966 as_fn_append ()
7968 eval $1=\$$1\$2
7970 fi # as_fn_append
7972 # as_fn_arith ARG...
7973 # ------------------
7974 # Perform arithmetic evaluation on the ARGs, and store the result in the
7975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7976 # must be portable across $(()) and expr.
7977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7978 eval 'as_fn_arith ()
7980 as_val=$(( $* ))
7982 else
7983 as_fn_arith ()
7985 as_val=`expr "$@" || test $? -eq 1`
7987 fi # as_fn_arith
7990 if expr a : '\(a\)' >/dev/null 2>&1 &&
7991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7992 as_expr=expr
7993 else
7994 as_expr=false
7997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7998 as_basename=basename
7999 else
8000 as_basename=false
8003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8004 as_dirname=dirname
8005 else
8006 as_dirname=false
8009 as_me=`$as_basename -- "$0" ||
8010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8011 X"$0" : 'X\(//\)$' \| \
8012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8013 $as_echo X/"$0" |
8014 sed '/^.*\/\([^/][^/]*\)\/*$/{
8015 s//\1/
8018 /^X\/\(\/\/\)$/{
8019 s//\1/
8022 /^X\/\(\/\).*/{
8023 s//\1/
8026 s/.*/./; q'`
8028 # Avoid depending upon Character Ranges.
8029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8032 as_cr_digits='0123456789'
8033 as_cr_alnum=$as_cr_Letters$as_cr_digits
8035 ECHO_C= ECHO_N= ECHO_T=
8036 case `echo -n x` in #(((((
8037 -n*)
8038 case `echo 'xy\c'` in
8039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8040 xy) ECHO_C='\c';;
8041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8042 ECHO_T=' ';;
8043 esac;;
8045 ECHO_N='-n';;
8046 esac
8048 rm -f conf$$ conf$$.exe conf$$.file
8049 if test -d conf$$.dir; then
8050 rm -f conf$$.dir/conf$$.file
8051 else
8052 rm -f conf$$.dir
8053 mkdir conf$$.dir 2>/dev/null
8055 if (echo >conf$$.file) 2>/dev/null; then
8056 if ln -s conf$$.file conf$$ 2>/dev/null; then
8057 as_ln_s='ln -s'
8058 # ... but there are two gotchas:
8059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8061 # In both cases, we have to default to `cp -p'.
8062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8063 as_ln_s='cp -p'
8064 elif ln conf$$.file conf$$ 2>/dev/null; then
8065 as_ln_s=ln
8066 else
8067 as_ln_s='cp -p'
8069 else
8070 as_ln_s='cp -p'
8072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8073 rmdir conf$$.dir 2>/dev/null
8076 # as_fn_mkdir_p
8077 # -------------
8078 # Create "$as_dir" as a directory, including parents if necessary.
8079 as_fn_mkdir_p ()
8082 case $as_dir in #(
8083 -*) as_dir=./$as_dir;;
8084 esac
8085 test -d "$as_dir" || eval $as_mkdir_p || {
8086 as_dirs=
8087 while :; do
8088 case $as_dir in #(
8089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8090 *) as_qdir=$as_dir;;
8091 esac
8092 as_dirs="'$as_qdir' $as_dirs"
8093 as_dir=`$as_dirname -- "$as_dir" ||
8094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8095 X"$as_dir" : 'X\(//\)[^/]' \| \
8096 X"$as_dir" : 'X\(//\)$' \| \
8097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8098 $as_echo X"$as_dir" |
8099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8100 s//\1/
8103 /^X\(\/\/\)[^/].*/{
8104 s//\1/
8107 /^X\(\/\/\)$/{
8108 s//\1/
8111 /^X\(\/\).*/{
8112 s//\1/
8115 s/.*/./; q'`
8116 test -d "$as_dir" && break
8117 done
8118 test -z "$as_dirs" || eval "mkdir $as_dirs"
8119 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8122 } # as_fn_mkdir_p
8123 if mkdir -p . 2>/dev/null; then
8124 as_mkdir_p='mkdir -p "$as_dir"'
8125 else
8126 test -d ./-p && rmdir ./-p
8127 as_mkdir_p=false
8130 if test -x / >/dev/null 2>&1; then
8131 as_test_x='test -x'
8132 else
8133 if ls -dL / >/dev/null 2>&1; then
8134 as_ls_L_option=L
8135 else
8136 as_ls_L_option=
8138 as_test_x='
8139 eval sh -c '\''
8140 if test -d "$1"; then
8141 test -d "$1/.";
8142 else
8143 case $1 in #(
8144 -*)set "./$1";;
8145 esac;
8146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8147 ???[sx]*):;;*)false;;esac;fi
8148 '\'' sh
8151 as_executable_p=$as_test_x
8153 # Sed expression to map a string onto a valid CPP name.
8154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8156 # Sed expression to map a string onto a valid variable name.
8157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8160 exec 6>&1
8161 ## ----------------------------------- ##
8162 ## Main body of $CONFIG_STATUS script. ##
8163 ## ----------------------------------- ##
8164 _ASEOF
8165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8168 # Save the log message, to keep $0 and so on meaningful, and to
8169 # report actual input values of CONFIG_FILES etc. instead of their
8170 # values after options handling.
8171 ac_log="
8172 This file was extended by $as_me, which was
8173 generated by GNU Autoconf 2.67. Invocation command line was
8175 CONFIG_FILES = $CONFIG_FILES
8176 CONFIG_HEADERS = $CONFIG_HEADERS
8177 CONFIG_LINKS = $CONFIG_LINKS
8178 CONFIG_COMMANDS = $CONFIG_COMMANDS
8179 $ $0 $@
8181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8184 _ACEOF
8186 case $ac_config_files in *"
8187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8188 esac
8190 case $ac_config_headers in *"
8191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8192 esac
8195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8196 # Files that config.status was made for.
8197 config_files="$ac_config_files"
8198 config_headers="$ac_config_headers"
8200 _ACEOF
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203 ac_cs_usage="\
8204 \`$as_me' instantiates files and other configuration actions
8205 from templates according to the current configuration. Unless the files
8206 and actions are specified as TAGs, all are instantiated by default.
8208 Usage: $0 [OPTION]... [TAG]...
8210 -h, --help print this help, then exit
8211 -V, --version print version number and configuration settings, then exit
8212 --config print configuration, then exit
8213 -q, --quiet, --silent
8214 do not print progress messages
8215 -d, --debug don't remove temporary files
8216 --recheck update $as_me by reconfiguring in the same conditions
8217 --file=FILE[:TEMPLATE]
8218 instantiate the configuration file FILE
8219 --header=FILE[:TEMPLATE]
8220 instantiate the configuration header FILE
8222 Configuration files:
8223 $config_files
8225 Configuration headers:
8226 $config_headers
8228 Report bugs to the package provider."
8230 _ACEOF
8231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8232 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8233 ac_cs_version="\\
8234 config.status
8235 configured by $0, generated by GNU Autoconf 2.67,
8236 with options \\"\$ac_cs_config\\"
8238 Copyright (C) 2010 Free Software Foundation, Inc.
8239 This config.status script is free software; the Free Software Foundation
8240 gives unlimited permission to copy, distribute and modify it."
8242 ac_pwd='$ac_pwd'
8243 srcdir='$srcdir'
8244 test -n "\$AWK" || AWK=awk
8245 _ACEOF
8247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8248 # The default lists apply if the user does not specify any file.
8249 ac_need_defaults=:
8250 while test $# != 0
8252 case $1 in
8253 --*=?*)
8254 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8255 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8256 ac_shift=:
8258 --*=)
8259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8260 ac_optarg=
8261 ac_shift=:
8264 ac_option=$1
8265 ac_optarg=$2
8266 ac_shift=shift
8268 esac
8270 case $ac_option in
8271 # Handling of the options.
8272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8273 ac_cs_recheck=: ;;
8274 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8275 $as_echo "$ac_cs_version"; exit ;;
8276 --config | --confi | --conf | --con | --co | --c )
8277 $as_echo "$ac_cs_config"; exit ;;
8278 --debug | --debu | --deb | --de | --d | -d )
8279 debug=: ;;
8280 --file | --fil | --fi | --f )
8281 $ac_shift
8282 case $ac_optarg in
8283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8284 '') as_fn_error $? "missing file argument" ;;
8285 esac
8286 as_fn_append CONFIG_FILES " '$ac_optarg'"
8287 ac_need_defaults=false;;
8288 --header | --heade | --head | --hea )
8289 $ac_shift
8290 case $ac_optarg in
8291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8292 esac
8293 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8294 ac_need_defaults=false;;
8295 --he | --h)
8296 # Conflict between --help and --header
8297 as_fn_error $? "ambiguous option: \`$1'
8298 Try \`$0 --help' for more information.";;
8299 --help | --hel | -h )
8300 $as_echo "$ac_cs_usage"; exit ;;
8301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8303 ac_cs_silent=: ;;
8305 # This is an error.
8306 -*) as_fn_error $? "unrecognized option: \`$1'
8307 Try \`$0 --help' for more information." ;;
8309 *) as_fn_append ac_config_targets " $1"
8310 ac_need_defaults=false ;;
8312 esac
8313 shift
8314 done
8316 ac_configure_extra_args=
8318 if $ac_cs_silent; then
8319 exec 6>/dev/null
8320 ac_configure_extra_args="$ac_configure_extra_args --silent"
8323 _ACEOF
8324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8325 if \$ac_cs_recheck; then
8326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8327 shift
8328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8329 CONFIG_SHELL='$SHELL'
8330 export CONFIG_SHELL
8331 exec "\$@"
8334 _ACEOF
8335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8336 exec 5>>config.log
8338 echo
8339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8340 ## Running $as_me. ##
8341 _ASBOX
8342 $as_echo "$ac_log"
8343 } >&5
8345 _ACEOF
8346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8347 _ACEOF
8349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8351 # Handling of arguments.
8352 for ac_config_target in $ac_config_targets
8354 case $ac_config_target in
8355 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
8356 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
8357 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
8358 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
8359 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
8360 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
8361 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
8362 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
8363 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
8364 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
8365 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
8366 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
8368 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8369 esac
8370 done
8373 # If the user did not use the arguments to specify the items to instantiate,
8374 # then the envvar interface is used. Set only those that are not.
8375 # We use the long form for the default assignment because of an extremely
8376 # bizarre bug on SunOS 4.1.3.
8377 if $ac_need_defaults; then
8378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8382 # Have a temporary directory for convenience. Make it in the build tree
8383 # simply because there is no reason against having it here, and in addition,
8384 # creating and moving files from /tmp can sometimes cause problems.
8385 # Hook for its removal unless debugging.
8386 # Note that there is a small window in which the directory will not be cleaned:
8387 # after its creation but before its name has been assigned to `$tmp'.
8388 $debug ||
8390 tmp=
8391 trap 'exit_status=$?
8392 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8394 trap 'as_fn_exit 1' 1 2 13 15
8396 # Create a (secure) tmp directory for tmp files.
8399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8400 test -n "$tmp" && test -d "$tmp"
8401 } ||
8403 tmp=./conf$$-$RANDOM
8404 (umask 077 && mkdir "$tmp")
8405 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8407 # Set up the scripts for CONFIG_FILES section.
8408 # No need to generate them if there are no CONFIG_FILES.
8409 # This happens for instance with `./config.status config.h'.
8410 if test -n "$CONFIG_FILES"; then
8413 ac_cr=`echo X | tr X '\015'`
8414 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8415 # But we know of no other shell where ac_cr would be empty at this
8416 # point, so we can use a bashism as a fallback.
8417 if test "x$ac_cr" = x; then
8418 eval ac_cr=\$\'\\r\'
8420 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8421 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8422 ac_cs_awk_cr='\\r'
8423 else
8424 ac_cs_awk_cr=$ac_cr
8427 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8428 _ACEOF
8432 echo "cat >conf$$subs.awk <<_ACEOF" &&
8433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8434 echo "_ACEOF"
8435 } >conf$$subs.sh ||
8436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8437 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8438 ac_delim='%!_!# '
8439 for ac_last_try in false false false false false :; do
8440 . ./conf$$subs.sh ||
8441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8444 if test $ac_delim_n = $ac_delim_num; then
8445 break
8446 elif $ac_last_try; then
8447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8448 else
8449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8451 done
8452 rm -f conf$$subs.sh
8454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8455 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8456 _ACEOF
8457 sed -n '
8459 s/^/S["/; s/!.*/"]=/
8462 s/^[^!]*!//
8463 :repl
8464 t repl
8465 s/'"$ac_delim"'$//
8466 t delim
8469 s/\(.\{148\}\)..*/\1/
8470 t more1
8471 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8474 b repl
8475 :more1
8476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8479 s/.\{148\}//
8480 t nl
8481 :delim
8483 s/\(.\{148\}\)..*/\1/
8484 t more2
8485 s/["\\]/\\&/g; s/^/"/; s/$/"/
8488 :more2
8489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8492 s/.\{148\}//
8493 t delim
8494 ' <conf$$subs.awk | sed '
8495 /^[^""]/{
8497 s/\n//
8499 ' >>$CONFIG_STATUS || ac_write_fail=1
8500 rm -f conf$$subs.awk
8501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8502 _ACAWK
8503 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8504 for (key in S) S_is_set[key] = 1
8505 FS = "\a"
8509 line = $ 0
8510 nfields = split(line, field, "@")
8511 substed = 0
8512 len = length(field[1])
8513 for (i = 2; i < nfields; i++) {
8514 key = field[i]
8515 keylen = length(key)
8516 if (S_is_set[key]) {
8517 value = S[key]
8518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8519 len += length(value) + length(field[++i])
8520 substed = 1
8521 } else
8522 len += 1 + keylen
8525 print line
8528 _ACAWK
8529 _ACEOF
8530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8531 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8533 else
8535 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8536 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8537 _ACEOF
8539 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8540 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8541 # trailing colons and then remove the whole line if VPATH becomes empty
8542 # (actually we leave an empty line to preserve line numbers).
8543 if test "x$srcdir" = x.; then
8544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8546 s///
8547 s/^/:/
8548 s/[ ]*$/:/
8549 s/:\$(srcdir):/:/g
8550 s/:\${srcdir}:/:/g
8551 s/:@srcdir@:/:/g
8552 s/^:*//
8553 s/:*$//
8555 s/\(=[ ]*\).*/\1/
8557 s/\n//
8558 s/^[^=]*=[ ]*$//
8562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8563 fi # test -n "$CONFIG_FILES"
8565 # Set up the scripts for CONFIG_HEADERS section.
8566 # No need to generate them if there are no CONFIG_HEADERS.
8567 # This happens for instance with `./config.status Makefile'.
8568 if test -n "$CONFIG_HEADERS"; then
8569 cat >"$tmp/defines.awk" <<\_ACAWK ||
8570 BEGIN {
8571 _ACEOF
8573 # Transform confdefs.h into an awk script `defines.awk', embedded as
8574 # here-document in config.status, that substitutes the proper values into
8575 # config.h.in to produce config.h.
8577 # Create a delimiter string that does not exist in confdefs.h, to ease
8578 # handling of long lines.
8579 ac_delim='%!_!# '
8580 for ac_last_try in false false :; do
8581 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8582 if test -z "$ac_t"; then
8583 break
8584 elif $ac_last_try; then
8585 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8586 else
8587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8589 done
8591 # For the awk script, D is an array of macro values keyed by name,
8592 # likewise P contains macro parameters if any. Preserve backslash
8593 # newline sequences.
8595 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8596 sed -n '
8597 s/.\{148\}/&'"$ac_delim"'/g
8598 t rset
8599 :rset
8600 s/^[ ]*#[ ]*define[ ][ ]*/ /
8601 t def
8603 :def
8604 s/\\$//
8605 t bsnl
8606 s/["\\]/\\&/g
8607 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8608 D["\1"]=" \3"/p
8609 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8611 :bsnl
8612 s/["\\]/\\&/g
8613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8614 D["\1"]=" \3\\\\\\n"\\/p
8615 t cont
8616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8617 t cont
8619 :cont
8621 s/.\{148\}/&'"$ac_delim"'/g
8622 t clear
8623 :clear
8624 s/\\$//
8625 t bsnlc
8626 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8628 :bsnlc
8629 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8630 b cont
8631 ' <confdefs.h | sed '
8632 s/'"$ac_delim"'/"\\\
8633 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8636 for (key in D) D_is_set[key] = 1
8637 FS = "\a"
8639 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8640 line = \$ 0
8641 split(line, arg, " ")
8642 if (arg[1] == "#") {
8643 defundef = arg[2]
8644 mac1 = arg[3]
8645 } else {
8646 defundef = substr(arg[1], 2)
8647 mac1 = arg[2]
8649 split(mac1, mac2, "(") #)
8650 macro = mac2[1]
8651 prefix = substr(line, 1, index(line, defundef) - 1)
8652 if (D_is_set[macro]) {
8653 # Preserve the white space surrounding the "#".
8654 print prefix "define", macro P[macro] D[macro]
8655 next
8656 } else {
8657 # Replace #undef with comments. This is necessary, for example,
8658 # in the case of _POSIX_SOURCE, which is predefined and required
8659 # on some systems where configure will not decide to define it.
8660 if (defundef == "undef") {
8661 print "/*", prefix defundef, macro, "*/"
8662 next
8666 { print }
8667 _ACAWK
8668 _ACEOF
8669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8670 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8671 fi # test -n "$CONFIG_HEADERS"
8674 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8675 shift
8676 for ac_tag
8678 case $ac_tag in
8679 :[FHLC]) ac_mode=$ac_tag; continue;;
8680 esac
8681 case $ac_mode$ac_tag in
8682 :[FHL]*:*);;
8683 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8684 :[FH]-) ac_tag=-:-;;
8685 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8686 esac
8687 ac_save_IFS=$IFS
8688 IFS=:
8689 set x $ac_tag
8690 IFS=$ac_save_IFS
8691 shift
8692 ac_file=$1
8693 shift
8695 case $ac_mode in
8696 :L) ac_source=$1;;
8697 :[FH])
8698 ac_file_inputs=
8699 for ac_f
8701 case $ac_f in
8702 -) ac_f="$tmp/stdin";;
8703 *) # Look for the file first in the build tree, then in the source tree
8704 # (if the path is not absolute). The absolute path cannot be DOS-style,
8705 # because $ac_f cannot contain `:'.
8706 test -f "$ac_f" ||
8707 case $ac_f in
8708 [\\/$]*) false;;
8709 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8710 esac ||
8711 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8712 esac
8713 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8714 as_fn_append ac_file_inputs " '$ac_f'"
8715 done
8717 # Let's still pretend it is `configure' which instantiates (i.e., don't
8718 # use $as_me), people would be surprised to read:
8719 # /* config.h. Generated by config.status. */
8720 configure_input='Generated from '`
8721 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8722 `' by configure.'
8723 if test x"$ac_file" != x-; then
8724 configure_input="$ac_file. $configure_input"
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8726 $as_echo "$as_me: creating $ac_file" >&6;}
8728 # Neutralize special characters interpreted by sed in replacement strings.
8729 case $configure_input in #(
8730 *\&* | *\|* | *\\* )
8731 ac_sed_conf_input=`$as_echo "$configure_input" |
8732 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8733 *) ac_sed_conf_input=$configure_input;;
8734 esac
8736 case $ac_tag in
8737 *:-:* | *:-) cat >"$tmp/stdin" \
8738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8739 esac
8741 esac
8743 ac_dir=`$as_dirname -- "$ac_file" ||
8744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8745 X"$ac_file" : 'X\(//\)[^/]' \| \
8746 X"$ac_file" : 'X\(//\)$' \| \
8747 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8748 $as_echo X"$ac_file" |
8749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8750 s//\1/
8753 /^X\(\/\/\)[^/].*/{
8754 s//\1/
8757 /^X\(\/\/\)$/{
8758 s//\1/
8761 /^X\(\/\).*/{
8762 s//\1/
8765 s/.*/./; q'`
8766 as_dir="$ac_dir"; as_fn_mkdir_p
8767 ac_builddir=.
8769 case "$ac_dir" in
8770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8772 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8773 # A ".." for each directory in $ac_dir_suffix.
8774 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8775 case $ac_top_builddir_sub in
8776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8778 esac ;;
8779 esac
8780 ac_abs_top_builddir=$ac_pwd
8781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8782 # for backward compatibility:
8783 ac_top_builddir=$ac_top_build_prefix
8785 case $srcdir in
8786 .) # We are building in place.
8787 ac_srcdir=.
8788 ac_top_srcdir=$ac_top_builddir_sub
8789 ac_abs_top_srcdir=$ac_pwd ;;
8790 [\\/]* | ?:[\\/]* ) # Absolute name.
8791 ac_srcdir=$srcdir$ac_dir_suffix;
8792 ac_top_srcdir=$srcdir
8793 ac_abs_top_srcdir=$srcdir ;;
8794 *) # Relative name.
8795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8796 ac_top_srcdir=$ac_top_build_prefix$srcdir
8797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8798 esac
8799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8802 case $ac_mode in
8805 # CONFIG_FILE
8808 _ACEOF
8810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8811 # If the template does not know about datarootdir, expand it.
8812 # FIXME: This hack should be removed a few years after 2.60.
8813 ac_datarootdir_hack=; ac_datarootdir_seen=
8814 ac_sed_dataroot='
8815 /datarootdir/ {
8819 /@datadir@/p
8820 /@docdir@/p
8821 /@infodir@/p
8822 /@localedir@/p
8823 /@mandir@/p'
8824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8825 *datarootdir*) ac_datarootdir_seen=yes;;
8826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8829 _ACEOF
8830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8831 ac_datarootdir_hack='
8832 s&@datadir@&$datadir&g
8833 s&@docdir@&$docdir&g
8834 s&@infodir@&$infodir&g
8835 s&@localedir@&$localedir&g
8836 s&@mandir@&$mandir&g
8837 s&\\\${datarootdir}&$datarootdir&g' ;;
8838 esac
8839 _ACEOF
8841 # Neutralize VPATH when `$srcdir' = `.'.
8842 # Shell code in configure.ac might set extrasub.
8843 # FIXME: do we really want to maintain this feature?
8844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8845 ac_sed_extra="$ac_vpsub
8846 $extrasub
8847 _ACEOF
8848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8851 s|@configure_input@|$ac_sed_conf_input|;t t
8852 s&@top_builddir@&$ac_top_builddir_sub&;t t
8853 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8854 s&@srcdir@&$ac_srcdir&;t t
8855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8856 s&@top_srcdir@&$ac_top_srcdir&;t t
8857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8858 s&@builddir@&$ac_builddir&;t t
8859 s&@abs_builddir@&$ac_abs_builddir&;t t
8860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8861 $ac_datarootdir_hack
8863 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8870 which seems to be undefined. Please make sure it is defined" >&5
8871 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8872 which seems to be undefined. Please make sure it is defined" >&2;}
8874 rm -f "$tmp/stdin"
8875 case $ac_file in
8876 -) cat "$tmp/out" && rm -f "$tmp/out";;
8877 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8878 esac \
8879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8883 # CONFIG_HEADER
8885 if test x"$ac_file" != x-; then
8887 $as_echo "/* $configure_input */" \
8888 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8889 } >"$tmp/config.h" \
8890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8891 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8893 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8894 else
8895 rm -f "$ac_file"
8896 mv "$tmp/config.h" "$ac_file" \
8897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8899 else
8900 $as_echo "/* $configure_input */" \
8901 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8902 || as_fn_error $? "could not create -" "$LINENO" 5
8907 esac
8909 done # for ac_tag
8912 as_fn_exit 0
8913 _ACEOF
8914 ac_clean_files=$ac_clean_files_save
8916 test $ac_write_fail = 0 ||
8917 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8920 # configure is writing to config.log, and then calls config.status.
8921 # config.status does its own redirection, appending to config.log.
8922 # Unfortunately, on DOS this fails, as config.log is still kept open
8923 # by configure, so config.status won't be able to write to it; its
8924 # output is simply discarded. So we exec the FD to /dev/null,
8925 # effectively closing config.log, so it can be properly (re)opened and
8926 # appended to by config.status. When coming back to configure, we
8927 # need to make the FD available again.
8928 if test "$no_create" != yes; then
8929 ac_cs_success=:
8930 ac_config_status_args=
8931 test "$silent" = yes &&
8932 ac_config_status_args="$ac_config_status_args --quiet"
8933 exec 5>/dev/null
8934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8935 exec 5>>config.log
8936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8937 # would make configure fail if this is the last instruction.
8938 $ac_cs_success || as_fn_exit 1
8940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}