Upgrade to version 1.0.7.5
[texmacs.git] / src / configure
blobb0ec58cace516ba65031f3adcbb4b45fd7c97a6a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 # Factoring default headers for most tests.
555 ac_includes_default="\
556 #include <stdio.h>
557 #ifdef HAVE_SYS_TYPES_H
558 # include <sys/types.h>
559 #endif
560 #ifdef HAVE_SYS_STAT_H
561 # include <sys/stat.h>
562 #endif
563 #ifdef STDC_HEADERS
564 # include <stdlib.h>
565 # include <stddef.h>
566 #else
567 # ifdef HAVE_STDLIB_H
568 # include <stdlib.h>
569 # endif
570 #endif
571 #ifdef HAVE_STRING_H
572 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
573 # include <memory.h>
574 # endif
575 # include <string.h>
576 #endif
577 #ifdef HAVE_STRINGS_H
578 # include <strings.h>
579 #endif
580 #ifdef HAVE_INTTYPES_H
581 # include <inttypes.h>
582 #endif
583 #ifdef HAVE_STDINT_H
584 # include <stdint.h>
585 #endif
586 #ifdef HAVE_UNISTD_H
587 # include <unistd.h>
588 #endif"
590 ac_subst_vars='LTLIBOBJS
591 LIBOBJS
592 tmwin
593 tmsrpm
594 tmstgz
595 tmrpm
596 tmtgz
597 tmdata
598 tmbin
599 tmsrc
600 tmdir
601 tmorig
602 CONFIG_NATIVE_ARCH_TAG
603 CONFIG_LDRT
604 CONFIG_CHMOD
605 CONFIG_STRIP
606 CONFIG_LIB_PATH
607 CONFIG_SO
608 CONFIG_STD_SETENV
609 CONFIG_CXXFLAGS
610 CONFIG_MAX_FAST
611 CONFIG_WORD_MASK
612 CONFIG_WORD_LENGTH_INC
613 CONFIG_WORD_LENGTH
614 CONFIG_BPATH
615 CONFIG_BSHARED
616 CONFIG_BSTATIC
617 CONFIG_BFLAGS
618 CONFIG_CXXDEBUG
619 CONFIG_CXXOPTIMIZE
620 CONFIG_CXXTEMPLATE
621 CONFIG_CXXWARNING
622 CONFIG_OS_COMPAT
623 CONFIG_OS_SUFFIX
624 CONFIG_OS
625 CONFIG_CXXDIALECT
626 CONFIG_GUI_DEFINE
627 CONFIG_GUI
628 CONFIG_QT
629 CONFIG_COCOA
630 CONFIG_X11
631 COCOA_LDFLAGS
632 COCOA_CFLAGS
633 X11_LDFLAGS
634 X11_CFLAGS
635 QT_LIBS
636 QT_LFLAGS
637 QT_LDFLAGS
638 QT_CPPFLAGS
639 QT_INCPATH
640 QT_CXXFLAGS
641 QT_CFLAGS
642 QT_DEFINES
643 QT_VERSION_MAJOR
644 TMPDIR
645 QT_PATH
649 QMAKE
650 CONFIG_PDF
651 CONFIG_MACOS
652 CONFIG_EXPERIMENTAL
653 GS_DLL
654 GS_EXE
655 CONFIG_GS
656 HAS_GS_LIB
657 HAS_GS_EXE
658 AXEL_LDFLAGS
659 AXEL_CFLAGS
660 IMLIB2_LDFLAGS
661 IMLIB2_CFLAGS
662 CAIRO_LDFLAGS
663 CAIRO_CFLAGS
664 FREETYPE_LDFLAGS
665 FREETYPE_CFLAGS
666 ICONV_LDFLAGS
667 ICONV_CFLAGS
669 CONFIG_BDL
670 X_EXTRA_LIBS
671 X_LIBS
672 X_PRE_LIBS
673 X_CFLAGS
674 XMKMF
675 EGREP
676 GREP
677 CXXCPP
678 CONFIG_GUILE_SERIAL
679 GUILE_LDFLAGS
680 GUILE_CFLAGS
681 ac_ct_CXX
682 CXXFLAGS
684 OBJEXT
685 EXEEXT
686 ac_ct_CC
687 CPPFLAGS
688 LDFLAGS
689 CFLAGS
691 STABLE_RELEASE
692 STABLE_VERSION
693 DEVEL_RELEASE
694 DEVEL_VERSION
695 PACKAGE
696 host_os
697 host_vendor
698 host_cpu
699 host
700 build_os
701 build_vendor
702 build_cpu
703 build
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files=''
743 ac_user_opts='
744 enable_option_checking
745 with_x
746 with_iconv
747 with_freetype
748 with_cairo
749 with_imlib2
750 with_axel
751 with_gs
752 enable_fastalloc
753 enable_experimental
754 enable_macosx_extensions
755 enable_pdf_renderer
756 enable_qt
757 with_qt
758 enable_cocoa
759 enable_debug
760 enable_assert
761 enable_warnings
762 enable_optimize
764 ac_precious_vars='build_alias
765 host_alias
766 target_alias
768 CFLAGS
769 LDFLAGS
770 LIBS
771 CPPFLAGS
773 CXXFLAGS
775 CXXCPP
776 XMKMF
778 TMPDIR'
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
829 ac_prev=
830 ac_dashdash=
831 for ac_option
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
840 case $ac_option in
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *) ac_optarg=yes ;;
843 esac
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
849 ac_dashdash=yes ;;
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
868 --config-cache | -C)
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) as_fn_error "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information."
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 esac
1186 done
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error "missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error "pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1272 /^X\(\/\/\)$/{
1273 s//\1/
1276 /^X\(\/\).*/{
1277 s//\1/
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1285 else
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures this package to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1375 cat <<\_ACEOF
1377 X features:
1378 --x-includes=DIR X include files are in DIR
1379 --x-libraries=DIR X library files are in DIR
1381 System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 _ACEOF
1387 if test -n "$ac_init_help"; then
1389 cat <<\_ACEOF
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --disable-fastalloc omit fast allocator for small objects
1396 --enable-experimental support new style rewriting code
1397 --enable-macosx-extensions support new style rewriting code
1398 --enable-pdf-renderer use experimental PDF renderer for pdf export
1399 --enable-qt replace X11 by Qt interface
1400 --enable-cocoa replace X11 by Cocoa interface
1401 --enable-debug=ARG install a debugging enable executable -ggdb
1402 --enable-assert exit on failed assertions in code
1403 --enable-warnings print warning messages during compilation
1404 --enable-optimize=ARG compile with optimizations guessed
1406 Optional Packages:
1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1409 --with-x use the X Window System
1410 --with-iconv=DIR where to find iconv system
1411 --with-freetype=ARG with freetype support ARG=linked
1412 --with-cairo=ARG with cairo support ARG=no
1413 --with-imlib2=ARG with imlib2 support ARG=no
1414 --with-axel=ARG with axel support ARG=no
1415 --with-gs=ARG with ghostscript support ARG=yes
1416 --with-qt Path to Qt [Look in PATH and /usr/local/Trolltech]
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CXX C++ compiler command
1427 CXXFLAGS C++ compiler flags
1428 CXXCPP C++ preprocessor
1429 XMKMF Path to xmkmf, Makefile generator for X Window System
1430 CPP C preprocessor
1431 TMPDIR A temporary directory with write access [/tmp]
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1436 Report bugs to the package provider.
1437 _ACEOF
1438 ac_status=$?
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
1447 ac_builddir=.
1449 case "$ac_dir" in
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 esac ;;
1459 esac
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1465 case $srcdir in
1466 .) # We are building in place.
1467 ac_srcdir=.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1474 *) # Relative name.
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 esac
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498 cat <<\_ACEOF
1499 configure
1500 generated by GNU Autoconf 2.64
1502 Copyright (C) 2009 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506 exit
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1539 ac_retval=0
1540 else
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1544 ac_retval=1
1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1547 return $ac_retval
1549 } # ac_fn_c_try_compile
1551 # ac_fn_cxx_try_compile LINENO
1552 # ----------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_cxx_try_compile ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_cxx_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 return $ac_retval
1587 } # ac_fn_cxx_try_compile
1589 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1590 # ---------------------------------------------
1591 # Tests whether TYPE exists after having included INCLUDES, setting cache
1592 # variable VAR accordingly.
1593 ac_fn_cxx_check_type ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 $as_echo_n "(cached) " >&6
1600 else
1601 eval "$3=no"
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1606 main ()
1608 if (sizeof ($2))
1609 return 0;
1611 return 0;
1613 _ACEOF
1614 if ac_fn_cxx_try_compile "$LINENO"; then :
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1619 main ()
1621 if (sizeof (($2)))
1622 return 0;
1624 return 0;
1626 _ACEOF
1627 if ac_fn_cxx_try_compile "$LINENO"; then :
1629 else
1630 eval "$3=yes"
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 } # ac_fn_cxx_check_type
1643 # ac_fn_cxx_try_cpp LINENO
1644 # ------------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_cpp ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } >/dev/null && {
1665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1678 } # ac_fn_cxx_try_cpp
1680 # ac_fn_cxx_try_run LINENO
1681 # ------------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_cxx_try_run ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1720 } # ac_fn_cxx_try_run
1722 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1723 # ---------------------------------------------------------
1724 # Tests whether HEADER exists and can be compiled using the include files in
1725 # INCLUDES, setting the cache variable VAR accordingly.
1726 ac_fn_cxx_check_header_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1737 #include <$2>
1738 _ACEOF
1739 if ac_fn_cxx_try_compile "$LINENO"; then :
1740 eval "$3=yes"
1741 else
1742 eval "$3=no"
1744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 } # ac_fn_cxx_check_header_compile
1753 # ac_fn_cxx_try_link LINENO
1754 # -------------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_link ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext conftest$ac_exeext
1760 if { { ac_try="$ac_link"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_cxx_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest$ac_exeext && {
1779 test "$cross_compiling" = yes ||
1780 $as_test_x conftest$ac_exeext
1781 }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 ac_retval=1
1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791 # interfere with the next link command; also delete a directory that is
1792 # left behind by Apple's compiler. We do this before executing the actions.
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1797 } # ac_fn_cxx_try_link
1799 # ac_fn_cxx_check_func LINENO FUNC VAR
1800 # ------------------------------------
1801 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1802 ac_fn_cxx_check_func ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814 #define $2 innocuous_$2
1816 /* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1821 #ifdef __STDC__
1822 # include <limits.h>
1823 #else
1824 # include <assert.h>
1825 #endif
1827 #undef $2
1829 /* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832 #ifdef __cplusplus
1833 extern "C"
1834 #endif
1835 char $2 ();
1836 /* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839 #if defined __stub_$2 || defined __stub___$2
1840 choke me
1841 #endif
1844 main ()
1846 return $2 ();
1848 return 0;
1850 _ACEOF
1851 if ac_fn_cxx_try_link "$LINENO"; then :
1852 eval "$3=yes"
1853 else
1854 eval "$3=no"
1856 rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_cxx_check_func
1866 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # ---------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1870 # accordingly.
1871 ac_fn_cxx_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 else
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_cxx_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1894 else
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_cxx_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1910 else
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1919 yes:no: )
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 no:yes:* )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 esac
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=\$ac_header_compiler"
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_cxx_check_header_mongrel
1953 # ac_fn_c_try_cpp LINENO
1954 # ----------------------
1955 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_cpp ()
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_cpp conftest.$ac_ext"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } >/dev/null && {
1975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1976 test ! -s conftest.err
1977 }; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 ac_retval=1
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 return $ac_retval
1988 } # ac_fn_c_try_cpp
1990 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1991 # -------------------------------------------------------
1992 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1993 # the include files in INCLUDES and setting the cache variable VAR
1994 # accordingly.
1995 ac_fn_c_check_header_mongrel ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 else
2008 # Is the header compilable?
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2010 $as_echo_n "checking $2 usability... " >&6; }
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2014 #include <$2>
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_header_compiler=yes
2018 else
2019 ac_header_compiler=no
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2023 $as_echo "$ac_header_compiler" >&6; }
2025 # Is the header present?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2027 $as_echo_n "checking $2 presence... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_cpp "$LINENO"; then :
2033 ac_header_preproc=yes
2034 else
2035 ac_header_preproc=no
2037 rm -f conftest.err conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2039 $as_echo "$ac_header_preproc" >&6; }
2041 # So? What about this header?
2042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2043 yes:no: )
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2045 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 no:yes:* )
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2051 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2053 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2055 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2057 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 esac
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=\$ac_header_compiler"
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075 } # ac_fn_c_check_header_mongrel
2077 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2078 # ----------------------------------------------
2079 # Tries to find the compile-time value of EXPR in a program that includes
2080 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2081 # computed
2082 ac_fn_cxx_compute_int ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 static int test_array [1 - 2 * !(($2) >= 0)];
2094 test_array [0] = 0
2097 return 0;
2099 _ACEOF
2100 if ac_fn_cxx_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110 test_array [0] = 0
2113 return 0;
2115 _ACEOF
2116 if ac_fn_cxx_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid; break
2118 else
2119 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120 if test $ac_lo -le $ac_mid; then
2121 ac_lo= ac_hi=
2122 break
2124 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2133 main ()
2135 static int test_array [1 - 2 * !(($2) < 0)];
2136 test_array [0] = 0
2139 return 0;
2141 _ACEOF
2142 if ac_fn_cxx_try_compile "$LINENO"; then :
2143 ac_hi=-1 ac_mid=-1
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2149 main ()
2151 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 test_array [0] = 0
2155 return 0;
2157 _ACEOF
2158 if ac_fn_cxx_try_compile "$LINENO"; then :
2159 ac_lo=$ac_mid; break
2160 else
2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2162 if test $ac_mid -le $ac_hi; then
2163 ac_lo= ac_hi=
2164 break
2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 else
2171 ac_lo= ac_hi=
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 # Binary search between lo and hi bounds.
2177 while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2183 main ()
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 test_array [0] = 0
2189 return 0;
2191 _ACEOF
2192 if ac_fn_cxx_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194 else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 done
2199 case $ac_lo in #((
2200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201 '') ac_retval=1 ;;
2202 esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2207 static long int longval () { return $2; }
2208 static unsigned long int ulongval () { return $2; }
2209 #include <stdio.h>
2210 #include <stdlib.h>
2212 main ()
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2225 else
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_cxx_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242 else
2243 ac_retval=1
2245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 rm -f conftest.val
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 return $ac_retval
2253 } # ac_fn_cxx_compute_int
2254 cat >config.log <<_ACEOF
2255 This file contains any messages produced by compilers while
2256 running configure, to aid debugging if configure makes a mistake.
2258 It was created by $as_me, which was
2259 generated by GNU Autoconf 2.64. Invocation command line was
2261 $ $0 $@
2263 _ACEOF
2264 exec 5>>config.log
2266 cat <<_ASUNAME
2267 ## --------- ##
2268 ## Platform. ##
2269 ## --------- ##
2271 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2277 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2280 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2284 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2288 _ASUNAME
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
2295 $as_echo "PATH: $as_dir"
2296 done
2297 IFS=$as_save_IFS
2299 } >&5
2301 cat >&5 <<_ACEOF
2304 ## ----------- ##
2305 ## Core tests. ##
2306 ## ----------- ##
2308 _ACEOF
2311 # Keep a trace of the command line.
2312 # Strip out --no-create and --no-recursion so they do not pile up.
2313 # Strip out --silent because we don't want to record it for future runs.
2314 # Also quote any args containing shell meta-characters.
2315 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_configure_args=
2317 ac_configure_args0=
2318 ac_configure_args1=
2319 ac_must_keep_next=false
2320 for ac_pass in 1 2
2322 for ac_arg
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2331 esac
2332 case $ac_pass in
2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335 as_fn_append ac_configure_args1 " '$ac_arg'"
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2351 as_fn_append ac_configure_args " '$ac_arg'"
2353 esac
2354 done
2355 done
2356 { ac_configure_args0=; unset ac_configure_args0;}
2357 { ac_configure_args1=; unset ac_configure_args1;}
2359 # When interrupted or exit'd, cleanup temporary files, and complete
2360 # config.log. We remove comments because anyway the quotes in there
2361 # would cause problems or look ugly.
2362 # WARNING: Use '\'' to represent an apostrophe within the trap.
2363 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2364 trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2367 echo
2369 cat <<\_ASBOX
2370 ## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##
2373 _ASBOX
2374 echo
2375 # The following way of writing the cache mishandles newlines in values,
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in #(
2380 *${as_nl}*)
2381 case $ac_var in #(
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 esac
2385 case $ac_var in #(
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2389 esac ;;
2390 esac
2391 done
2392 (set) 2>&1 |
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2395 sed -n \
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 ;; #(
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 esac |
2403 sort
2405 echo
2407 cat <<\_ASBOX
2408 ## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##
2411 _ASBOX
2412 echo
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2423 if test -n "$ac_subst_files"; then
2424 cat <<\_ASBOX
2425 ## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##
2428 _ASBOX
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 cat <<\_ASBOX
2443 ## ----------- ##
2444 ## confdefs.h. ##
2445 ## ----------- ##
2446 _ASBOX
2447 echo
2448 cat confdefs.h
2449 echo
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2454 } >&5
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 exit $exit_status
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 done
2462 ac_signal=0
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2493 _ACEOF
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2498 ac_site_file1=NONE
2499 ac_site_file2=NONE
2500 if test -n "$CONFIG_SITE"; then
2501 ac_site_file1=$CONFIG_SITE
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE && continue
2512 if test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file"
2518 done
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2526 case $cache_file in
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
2529 esac
2531 else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2534 >$cache_file
2537 # Check that the precious variables saved in the cache have kept the same
2538 # value.
2539 ac_cache_corrupted=false
2540 for ac_var in $ac_precious_vars; do
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2546 set,)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,set)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,);;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 esac
2586 done
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2598 ac_ext=c
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
2607 ac_aux_dir=
2608 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2609 for ac_t in install-sh install.sh shtool; do
2610 if test -f "$ac_dir/$ac_t"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/$ac_t -c"
2613 break 2
2615 done
2616 done
2617 if test -z "$ac_aux_dir"; then
2618 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2621 # These three variables are undocumented and unsupported,
2622 # and are intended to be withdrawn in a future Autoconf release.
2623 # They can cause serious problems if a builder's source tree is in a directory
2624 # whose full name contains unusual characters.
2625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630 # Make sure we can run config.sub.
2631 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2632 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2635 $as_echo_n "checking build system type... " >&6; }
2636 if test "${ac_cv_build+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 ac_build_alias=$build_alias
2640 test "x$ac_build_alias" = x &&
2641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2642 test "x$ac_build_alias" = x &&
2643 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2644 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2645 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2649 $as_echo "$ac_cv_build" >&6; }
2650 case $ac_cv_build in
2651 *-*-*) ;;
2652 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2653 esac
2654 build=$ac_cv_build
2655 ac_save_IFS=$IFS; IFS='-'
2656 set x $ac_cv_build
2657 shift
2658 build_cpu=$1
2659 build_vendor=$2
2660 shift; shift
2661 # Remember, the first character of IFS is used to create $*,
2662 # except with old shells:
2663 build_os=$*
2664 IFS=$ac_save_IFS
2665 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2669 $as_echo_n "checking host system type... " >&6; }
2670 if test "${ac_cv_host+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test "x$host_alias" = x; then
2674 ac_cv_host=$ac_cv_build
2675 else
2676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2677 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2682 $as_echo "$ac_cv_host" >&6; }
2683 case $ac_cv_host in
2684 *-*-*) ;;
2685 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2686 esac
2687 host=$ac_cv_host
2688 ac_save_IFS=$IFS; IFS='-'
2689 set x $ac_cv_host
2690 shift
2691 host_cpu=$1
2692 host_vendor=$2
2693 shift; shift
2694 # Remember, the first character of IFS is used to create $*,
2695 # except with old shells:
2696 host_os=$*
2697 IFS=$ac_save_IFS
2698 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2702 PACKAGE="TeXmacs"
2703 DEVEL_VERSION="1.0.7.5"
2704 DEVEL_RELEASE="1"
2705 STABLE_VERSION="1.0.7"
2706 STABLE_RELEASE="1"
2707 WINDOWS_VERSION="1.0.5"
2708 WINDOWS_RELEASE="1"
2715 #--------------------------------------------------------------------
2716 # Checks for C++ compiler
2717 #--------------------------------------------------------------------
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2763 if test -z "$ac_cv_prog_CC"; then
2764 ac_ct_CC=$CC
2765 # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="gcc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2788 IFS=$as_save_IFS
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2801 if test "x$ac_ct_CC" = x; then
2802 CC=""
2803 else
2804 case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810 CC=$ac_ct_CC
2812 else
2813 CC="$ac_cv_prog_CC"
2816 if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CC="${ac_tool_prefix}cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2841 IFS=$as_save_IFS
2845 CC=$ac_cv_prog_CC
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2857 if test -z "$CC"; then
2858 # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 ac_prog_rejected=no
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877 ac_prog_rejected=yes
2878 continue
2880 ac_cv_prog_CC="cc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2884 done
2885 done
2886 IFS=$as_save_IFS
2888 if test $ac_prog_rejected = yes; then
2889 # We found a bogon in the path, so make sure we never use it.
2890 set dummy $ac_cv_prog_CC
2891 shift
2892 if test $# != 0; then
2893 # We chose a different compiler from the bogus one.
2894 # However, it has the same basename, so the bogon will be chosen
2895 # first if we set CC to just the basename; use the full file name.
2896 shift
2897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl.exe
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2954 test -n "$CC" && break
2955 done
2957 if test -z "$CC"; then
2958 ac_ct_CC=$CC
2959 for ac_prog in cl.exe
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy $ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_ac_ct_CC="$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2982 done
2983 done
2984 IFS=$as_save_IFS
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$ac_ct_CC" && break
2999 done
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3017 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error "no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details." "$LINENO" 5; }
3022 # Provide some information about the compiler.
3023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3024 set X $ac_compile
3025 ac_compiler=$2
3026 for ac_option in --version -v -V -qversion; do
3027 { { ac_try="$ac_compiler $ac_option >&5"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3035 ac_status=$?
3036 if test -s conftest.err; then
3037 sed '10a\
3038 ... rest of stderr output deleted ...
3039 10q' conftest.err >conftest.er1
3040 cat conftest.er1 >&5
3041 rm -f conftest.er1 conftest.err
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3045 done
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3049 #include <stdio.h>
3051 main ()
3053 FILE *f = fopen ("conftest.out", "w");
3054 return ferror (f) || fclose (f) != 0;
3057 return 0;
3059 _ACEOF
3060 ac_clean_files_save=$ac_clean_files
3061 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3062 # Try to create an executable without -o first, disregard a.out.
3063 # It will help us diagnose broken compilers, and finding out an intuition
3064 # of exeext.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3066 $as_echo_n "checking for C compiler default output file name... " >&6; }
3067 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3069 # The possible output files:
3070 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3072 ac_rmfiles=
3073 for ac_file in $ac_files
3075 case $ac_file in
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3077 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3078 esac
3079 done
3080 rm -f $ac_rmfiles
3082 if { { ac_try="$ac_link_default"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_link_default") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3094 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3095 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3096 # so that the user can short-circuit this test for compilers unknown to
3097 # Autoconf.
3098 for ac_file in $ac_files ''
3100 test -f "$ac_file" || continue
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3104 [ab].out )
3105 # We found the default executable, but exeext='' is most
3106 # certainly right.
3107 break;;
3108 *.* )
3109 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3110 then :; else
3111 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 # We set ac_cv_exeext here because the later test for it is not
3114 # safe: cross compilers may not add the suffix if given an `-o'
3115 # argument, so we may need to know it at that point already.
3116 # Even if this section looks crufty: it has the advantage of
3117 # actually working.
3118 break;;
3120 break;;
3121 esac
3122 done
3123 test "$ac_cv_exeext" = no && ac_cv_exeext=
3125 else
3126 ac_file=''
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3129 $as_echo "$ac_file" >&6; }
3130 if test -z "$ac_file"; then :
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 { as_fn_set_status 77
3137 as_fn_error "C compiler cannot create executables
3138 See \`config.log' for more details." "$LINENO" 5; }; }
3140 ac_exeext=$ac_cv_exeext
3142 # Check that the compiler produces executables we can run. If not, either
3143 # the compiler is broken, or we cross compile.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3145 $as_echo_n "checking whether the C compiler works... " >&6; }
3146 # If not cross compiling, check that we can run a simple program.
3147 if test "$cross_compiling" != yes; then
3148 if { ac_try='./$ac_file'
3149 { { case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; }; then
3159 cross_compiling=no
3160 else
3161 if test "$cross_compiling" = maybe; then
3162 cross_compiling=yes
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error "cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details." "$LINENO" 5; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173 $as_echo "yes" >&6; }
3175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3176 ac_clean_files=$ac_clean_files_save
3177 # Check that the compiler produces executables we can run. If not, either
3178 # the compiler is broken, or we cross compile.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3180 $as_echo_n "checking whether we are cross compiling... " >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3182 $as_echo "$cross_compiling" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3185 $as_echo_n "checking for suffix of executables... " >&6; }
3186 if { { ac_try="$ac_link"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3199 # work properly (i.e., refer to `conftest.exe'), while it won't with
3200 # `rm'.
3201 for ac_file in conftest.exe conftest conftest.*; do
3202 test -f "$ac_file" || continue
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 break;;
3207 * ) break;;
3208 esac
3209 done
3210 else
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error "cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." "$LINENO" 5; }
3216 rm -f conftest$ac_cv_exeext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3218 $as_echo "$ac_cv_exeext" >&6; }
3220 rm -f conftest.$ac_ext
3221 EXEEXT=$ac_cv_exeext
3222 ac_exeext=$EXEEXT
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3224 $as_echo_n "checking for suffix of object files... " >&6; }
3225 if test "${ac_cv_objext+set}" = set; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 main ()
3236 return 0;
3238 _ACEOF
3239 rm -f conftest.o conftest.obj
3240 if { { ac_try="$ac_compile"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_compile") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 for ac_file in conftest.o conftest.obj conftest.*; do
3252 test -f "$ac_file" || continue;
3253 case $ac_file in
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3255 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3256 break;;
3257 esac
3258 done
3259 else
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error "cannot compute suffix of object files: cannot compile
3266 See \`config.log' for more details." "$LINENO" 5; }
3268 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3271 $as_echo "$ac_cv_objext" >&6; }
3272 OBJEXT=$ac_cv_objext
3273 ac_objext=$OBJEXT
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3275 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3276 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3283 main ()
3285 #ifndef __GNUC__
3286 choke me
3287 #endif
3290 return 0;
3292 _ACEOF
3293 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_compiler_gnu=yes
3295 else
3296 ac_compiler_gnu=no
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3303 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3304 if test $ac_compiler_gnu = yes; then
3305 GCC=yes
3306 else
3307 GCC=
3309 ac_test_CFLAGS=${CFLAGS+set}
3310 ac_save_CFLAGS=$CFLAGS
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3312 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3313 if test "${ac_cv_prog_cc_g+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 ac_save_c_werror_flag=$ac_c_werror_flag
3317 ac_c_werror_flag=yes
3318 ac_cv_prog_cc_g=no
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3333 else
3334 CFLAGS=""
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3348 else
3349 ac_c_werror_flag=$ac_save_c_werror_flag
3350 CFLAGS="-g"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3355 main ()
3359 return 0;
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363 ac_cv_prog_cc_g=yes
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_c_werror_flag=$ac_save_c_werror_flag
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3373 $as_echo "$ac_cv_prog_cc_g" >&6; }
3374 if test "$ac_test_CFLAGS" = set; then
3375 CFLAGS=$ac_save_CFLAGS
3376 elif test $ac_cv_prog_cc_g = yes; then
3377 if test "$GCC" = yes; then
3378 CFLAGS="-g -O2"
3379 else
3380 CFLAGS="-g"
3382 else
3383 if test "$GCC" = yes; then
3384 CFLAGS="-O2"
3385 else
3386 CFLAGS=
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3390 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3391 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 ac_cv_prog_cc_c89=no
3395 ac_save_CC=$CC
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398 #include <stdarg.h>
3399 #include <stdio.h>
3400 #include <sys/types.h>
3401 #include <sys/stat.h>
3402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3403 struct buf { int x; };
3404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3405 static char *e (p, i)
3406 char **p;
3407 int i;
3409 return p[i];
3411 static char *f (char * (*g) (char **, int), char **p, ...)
3413 char *s;
3414 va_list v;
3415 va_start (v,p);
3416 s = g (p, va_arg (v,int));
3417 va_end (v);
3418 return s;
3421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3422 function prototypes and stuff, but not '\xHH' hex character constants.
3423 These don't provoke an error unfortunately, instead are silently treated
3424 as 'x'. The following induces an error, until -std is added to get
3425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3426 array size at least. It's necessary to write '\x00'==0 to get something
3427 that's true only with -std. */
3428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3431 inside strings and character constants. */
3432 #define FOO(x) 'x'
3433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3435 int test (int i, double x);
3436 struct s1 {int (*f) (int a);};
3437 struct s2 {int (*f) (double a);};
3438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3439 int argc;
3440 char **argv;
3442 main ()
3444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3446 return 0;
3448 _ACEOF
3449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3452 CC="$ac_save_CC $ac_arg"
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_c89=$ac_arg
3456 rm -f core conftest.err conftest.$ac_objext
3457 test "x$ac_cv_prog_cc_c89" != "xno" && break
3458 done
3459 rm -f conftest.$ac_ext
3460 CC=$ac_save_CC
3463 # AC_CACHE_VAL
3464 case "x$ac_cv_prog_cc_c89" in
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3467 $as_echo "none needed" >&6; } ;;
3468 xno)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3470 $as_echo "unsupported" >&6; } ;;
3472 CC="$CC $ac_cv_prog_cc_c89"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3474 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3475 esac
3476 if test "x$ac_cv_prog_cc_c89" != xno; then :
3480 ac_ext=c
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 ac_ext=cpp
3487 ac_cpp='$CXXCPP $CPPFLAGS'
3488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491 if test -z "$CXX"; then
3492 if test -n "$CCC"; then
3493 CXX=$CCC
3494 else
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CXX+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$CXX"; then
3506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 CXX=$ac_cv_prog_CXX
3526 if test -n "$CXX"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3528 $as_echo "$CXX" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$CXX" && break
3536 done
3538 if test -z "$CXX"; then
3539 ac_ct_CXX=$CXX
3540 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$ac_ct_CXX"; then
3550 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CXX="$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3570 if test -n "$ac_ct_CXX"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3572 $as_echo "$ac_ct_CXX" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$ac_ct_CXX" && break
3580 done
3582 if test "x$ac_ct_CXX" = x; then
3583 CXX="g++"
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591 CXX=$ac_ct_CXX
3597 # Provide some information about the compiler.
3598 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3599 set X $ac_compile
3600 ac_compiler=$2
3601 for ac_option in --version -v -V -qversion; do
3602 { { ac_try="$ac_compiler $ac_option >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3610 ac_status=$?
3611 if test -s conftest.err; then
3612 sed '10a\
3613 ... rest of stderr output deleted ...
3614 10q' conftest.err >conftest.er1
3615 cat conftest.er1 >&5
3616 rm -f conftest.er1 conftest.err
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 done
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3624 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3631 main ()
3633 #ifndef __GNUC__
3634 choke me
3635 #endif
3638 return 0;
3640 _ACEOF
3641 if ac_fn_cxx_try_compile "$LINENO"; then :
3642 ac_compiler_gnu=yes
3643 else
3644 ac_compiler_gnu=no
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3651 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3652 if test $ac_compiler_gnu = yes; then
3653 GXX=yes
3654 else
3655 GXX=
3657 ac_test_CXXFLAGS=${CXXFLAGS+set}
3658 ac_save_CXXFLAGS=$CXXFLAGS
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3660 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3661 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3665 ac_cxx_werror_flag=yes
3666 ac_cv_prog_cxx_g=no
3667 CXXFLAGS="-g"
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 main ()
3676 return 0;
3678 _ACEOF
3679 if ac_fn_cxx_try_compile "$LINENO"; then :
3680 ac_cv_prog_cxx_g=yes
3681 else
3682 CXXFLAGS=""
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 if ac_fn_cxx_try_compile "$LINENO"; then :
3696 else
3697 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3698 CXXFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3703 main ()
3707 return 0;
3709 _ACEOF
3710 if ac_fn_cxx_try_compile "$LINENO"; then :
3711 ac_cv_prog_cxx_g=yes
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3721 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3722 if test "$ac_test_CXXFLAGS" = set; then
3723 CXXFLAGS=$ac_save_CXXFLAGS
3724 elif test $ac_cv_prog_cxx_g = yes; then
3725 if test "$GXX" = yes; then
3726 CXXFLAGS="-g -O2"
3727 else
3728 CXXFLAGS="-g"
3730 else
3731 if test "$GXX" = yes; then
3732 CXXFLAGS="-O2"
3733 else
3734 CXXFLAGS=
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 ac_ext=cpp
3744 ac_cpp='$CXXCPP $CPPFLAGS'
3745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU C++ compiler is default" >&5
3751 $as_echo_n "checking whether GNU C++ compiler is default... " >&6; }
3752 case "$GXX" in
3753 yes )
3754 GCC_VERSION=`$CC -dumpversion`
3755 GXX_VERSION=`$CXX -dumpversion`
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 $as_echo "yes" >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of gcc" >&5
3759 $as_echo_n "checking version of gcc... " >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
3761 $as_echo "$GCC_VERSION" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of g++" >&5
3763 $as_echo_n "checking version of g++... " >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GXX_VERSION" >&5
3765 $as_echo "$GXX_VERSION" >&6; }
3766 case "$GXX_VERSION" in
3767 0* | 1* | 2*)
3768 echo "old style GNU compiler"
3769 $as_echo "#define OLD_GNU_COMPILER /**/" >>confdefs.h
3772 esac
3775 GCC_VERSION="none"
3776 GXX_VERSION="none"
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find GNU C++ compiler" >&5
3780 $as_echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3782 esac
3784 #--------------------------------------------------------------------
3785 # Checks for Guile
3786 #--------------------------------------------------------------------
3788 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3790 ## The GUILE_FLAGS macro.
3791 ## First, let's just see if we can find Guile at all.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile" >&5
3793 $as_echo_n "checking for Guile... " >&6; }
3794 guile-config link > /dev/null || {
3795 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3796 exit 1
3798 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
3799 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3800 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3801 GUILE_LDFLAGS="`guile-config link`"
3802 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of guile" >&5
3810 $as_echo_n "checking version of guile... " >&6; }
3811 if test -z "$GUILE_VERSION" ; then
3812 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_VERSION" >&5
3815 $as_echo "$GUILE_VERSION" >&6; }
3817 case "$GUILE_VERSION" in
3818 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3819 CONFIG_GUILE_SERIAL="A"
3821 1.6* | 1.7*)
3822 CONFIG_GUILE_SERIAL="B"
3825 CONFIG_GUILE_SERIAL="C"
3827 esac
3830 #--------------------------------------------------------------------
3831 # Checks for standard functionality
3832 #--------------------------------------------------------------------
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++-compatible X header files" >&5
3837 $as_echo_n "checking for C++-compatible X header files... " >&6; }
3838 ac_save_cppflags="$CPPFLAGS"
3839 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <X11/Xlib.h>
3843 #include <X11/Xutil.h>
3845 main ()
3849 return 0;
3851 _ACEOF
3852 if ac_fn_cxx_try_compile "$LINENO"; then :
3853 echo yes
3854 else
3855 rm -rf X11
3856 mkdir X11
3857 for ac_dir in \
3858 /usr/X11/include \
3859 /usr/X11R6/include \
3860 /usr/X11R5/include \
3861 /usr/X11R4/include \
3863 /usr/include/X11 \
3864 /usr/include/X11R6 \
3865 /usr/include/X11R5 \
3866 /usr/include/X11R4 \
3868 /usr/local/X11/include \
3869 /usr/local/X11R6/include \
3870 /usr/local/X11R5/include \
3871 /usr/local/X11R4/include \
3873 /usr/local/include/X11 \
3874 /usr/local/include/X11R6 \
3875 /usr/local/include/X11R5 \
3876 /usr/local/include/X11R4 \
3878 /usr/X386/include \
3879 /usr/x386/include \
3880 /usr/XFree86/include/X11 \
3882 /usr/include \
3883 /usr/local/include \
3884 /usr/unsupported/include \
3885 /usr/athena/include \
3886 /usr/local/x11r5/include \
3887 /usr/lpp/Xamples/include \
3889 /usr/openwin/include \
3890 /usr/openwin/share/include \
3893 if test -r "$ac_dir/X11/Xlib.h"; then
3894 tm_x_includes=$ac_dir
3895 break
3897 done
3898 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3899 < "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
3900 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3901 < "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
3902 X_CFLAGS="-I.. $X_CFLAGS"
3903 echo "no; fixing"
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 CPPFLAGS="$ac_save_cppflags"
3908 ac_ext=cpp
3909 ac_cpp='$CXXCPP $CPPFLAGS'
3910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3914 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3915 if test -z "$CXXCPP"; then
3916 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 # Double quotes because CXXCPP needs to be expanded
3920 for CXXCPP in "$CXX -E" "/lib/cpp"
3922 ac_preproc_ok=false
3923 for ac_cxx_preproc_warn_flag in '' yes
3925 # Use a header file that comes with gcc, so configuring glibc
3926 # with a fresh cross-compiler works.
3927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3928 # <limits.h> exists even on freestanding compilers.
3929 # On the NeXT, cc -E runs the code through the compiler's parser,
3930 # not just through cpp. "Syntax error" is here to catch this case.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #ifdef __STDC__
3934 # include <limits.h>
3935 #else
3936 # include <assert.h>
3937 #endif
3938 Syntax error
3939 _ACEOF
3940 if ac_fn_cxx_try_cpp "$LINENO"; then :
3942 else
3943 # Broken: fails on valid input.
3944 continue
3946 rm -f conftest.err conftest.$ac_ext
3948 # OK, works on sane cases. Now check whether nonexistent headers
3949 # can be detected and how.
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #include <ac_nonexistent.h>
3953 _ACEOF
3954 if ac_fn_cxx_try_cpp "$LINENO"; then :
3955 # Broken: success on invalid input.
3956 continue
3957 else
3958 # Passes both tests.
3959 ac_preproc_ok=:
3960 break
3962 rm -f conftest.err conftest.$ac_ext
3964 done
3965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3966 rm -f conftest.err conftest.$ac_ext
3967 if $ac_preproc_ok; then :
3968 break
3971 done
3972 ac_cv_prog_CXXCPP=$CXXCPP
3975 CXXCPP=$ac_cv_prog_CXXCPP
3976 else
3977 ac_cv_prog_CXXCPP=$CXXCPP
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3980 $as_echo "$CXXCPP" >&6; }
3981 ac_preproc_ok=false
3982 for ac_cxx_preproc_warn_flag in '' yes
3984 # Use a header file that comes with gcc, so configuring glibc
3985 # with a fresh cross-compiler works.
3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 # <limits.h> exists even on freestanding compilers.
3988 # On the NeXT, cc -E runs the code through the compiler's parser,
3989 # not just through cpp. "Syntax error" is here to catch this case.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #ifdef __STDC__
3993 # include <limits.h>
3994 #else
3995 # include <assert.h>
3996 #endif
3997 Syntax error
3998 _ACEOF
3999 if ac_fn_cxx_try_cpp "$LINENO"; then :
4001 else
4002 # Broken: fails on valid input.
4003 continue
4005 rm -f conftest.err conftest.$ac_ext
4007 # OK, works on sane cases. Now check whether nonexistent headers
4008 # can be detected and how.
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <ac_nonexistent.h>
4012 _ACEOF
4013 if ac_fn_cxx_try_cpp "$LINENO"; then :
4014 # Broken: success on invalid input.
4015 continue
4016 else
4017 # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4021 rm -f conftest.err conftest.$ac_ext
4023 done
4024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025 rm -f conftest.err conftest.$ac_ext
4026 if $ac_preproc_ok; then :
4028 else
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4032 See \`config.log' for more details." "$LINENO" 5; }
4035 ac_ext=cpp
4036 ac_cpp='$CXXCPP $CPPFLAGS'
4037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4043 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4044 if test "${ac_cv_path_GREP+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -z "$GREP"; then
4048 ac_path_GREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in grep ggrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4059 # Check for GNU ac_path_GREP and select it if it is found.
4060 # Check for GNU $ac_path_GREP
4061 case `"$ac_path_GREP" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'GREP' >> "conftest.nl"
4073 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_GREP="$ac_path_GREP"
4079 ac_path_GREP_max=$ac_count
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4087 $ac_path_GREP_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_GREP"; then
4093 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4095 else
4096 ac_cv_path_GREP=$GREP
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4101 $as_echo "$ac_cv_path_GREP" >&6; }
4102 GREP="$ac_cv_path_GREP"
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4106 $as_echo_n "checking for egrep... " >&6; }
4107 if test "${ac_cv_path_EGREP+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4111 then ac_cv_path_EGREP="$GREP -E"
4112 else
4113 if test -z "$EGREP"; then
4114 ac_path_EGREP_found=false
4115 # Loop through the user's path and test for each of PROGNAME-LIST
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_prog in egrep; do
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4124 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4125 # Check for GNU ac_path_EGREP and select it if it is found.
4126 # Check for GNU $ac_path_EGREP
4127 case `"$ac_path_EGREP" --version 2>&1` in
4128 *GNU*)
4129 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4131 ac_count=0
4132 $as_echo_n 0123456789 >"conftest.in"
4133 while :
4135 cat "conftest.in" "conftest.in" >"conftest.tmp"
4136 mv "conftest.tmp" "conftest.in"
4137 cp "conftest.in" "conftest.nl"
4138 $as_echo 'EGREP' >> "conftest.nl"
4139 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4141 as_fn_arith $ac_count + 1 && ac_count=$as_val
4142 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4143 # Best one so far, save it but keep looking for a better one
4144 ac_cv_path_EGREP="$ac_path_EGREP"
4145 ac_path_EGREP_max=$ac_count
4147 # 10*(2^10) chars as input seems more than enough
4148 test $ac_count -gt 10 && break
4149 done
4150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4151 esac
4153 $ac_path_EGREP_found && break 3
4154 done
4155 done
4156 done
4157 IFS=$as_save_IFS
4158 if test -z "$ac_cv_path_EGREP"; then
4159 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161 else
4162 ac_cv_path_EGREP=$EGREP
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4168 $as_echo "$ac_cv_path_EGREP" >&6; }
4169 EGREP="$ac_cv_path_EGREP"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4173 $as_echo_n "checking for ANSI C header files... " >&6; }
4174 if test "${ac_cv_header_stdc+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #include <stdlib.h>
4180 #include <stdarg.h>
4181 #include <string.h>
4182 #include <float.h>
4185 main ()
4189 return 0;
4191 _ACEOF
4192 if ac_fn_cxx_try_compile "$LINENO"; then :
4193 ac_cv_header_stdc=yes
4194 else
4195 ac_cv_header_stdc=no
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 if test $ac_cv_header_stdc = yes; then
4200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <string.h>
4205 _ACEOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "memchr" >/dev/null 2>&1; then :
4209 else
4210 ac_cv_header_stdc=no
4212 rm -f conftest*
4216 if test $ac_cv_header_stdc = yes; then
4217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <stdlib.h>
4222 _ACEOF
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224 $EGREP "free" >/dev/null 2>&1; then :
4226 else
4227 ac_cv_header_stdc=no
4229 rm -f conftest*
4233 if test $ac_cv_header_stdc = yes; then
4234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4235 if test "$cross_compiling" = yes; then :
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <ctype.h>
4241 #include <stdlib.h>
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245 #else
4246 # define ISLOWER(c) \
4247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #endif
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255 main ()
4257 int i;
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
4260 || toupper (i) != TOUPPER (i))
4261 return 2;
4262 return 0;
4264 _ACEOF
4265 if ac_fn_cxx_try_run "$LINENO"; then :
4267 else
4268 ac_cv_header_stdc=no
4270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4271 conftest.$ac_objext conftest.beam conftest.$ac_ext
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4277 $as_echo "$ac_cv_header_stdc" >&6; }
4278 if test $ac_cv_header_stdc = yes; then
4280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286 inttypes.h stdint.h unistd.h
4287 do :
4288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4291 eval as_val=\$$as_ac_Header
4292 if test "x$as_val" = x""yes; then :
4293 cat >>confdefs.h <<_ACEOF
4294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 _ACEOF
4299 done
4302 ac_fn_cxx_check_type "$LINENO" "FILE" "ac_cv_type_FILE" "$ac_includes_default"
4303 if test "x$ac_cv_type_FILE" = x""yes; then :
4305 cat >>confdefs.h <<_ACEOF
4306 #define HAVE_FILE 1
4307 _ACEOF
4312 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
4313 if test "x$ac_cv_type_intptr_t" = x""yes; then :
4315 cat >>confdefs.h <<_ACEOF
4316 #define HAVE_INTPTR_T 1
4317 _ACEOF
4322 ac_fn_cxx_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
4323 if test "x$ac_cv_type_time_t" = x""yes; then :
4325 cat >>confdefs.h <<_ACEOF
4326 #define HAVE_TIME_T 1
4327 _ACEOF
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4333 $as_echo_n "checking for X... " >&6; }
4336 # Check whether --with-x was given.
4337 if test "${with_x+set}" = set; then :
4338 withval=$with_x;
4341 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4342 if test "x$with_x" = xno; then
4343 # The user explicitly disabled X.
4344 have_x=disabled
4345 else
4346 case $x_includes,$x_libraries in #(
4347 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
4348 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 # One or both of the vars are not set, and there is no cached value.
4352 ac_x_includes=no ac_x_libraries=no
4353 rm -f -r conftest.dir
4354 if mkdir conftest.dir; then
4355 cd conftest.dir
4356 cat >Imakefile <<'_ACEOF'
4357 incroot:
4358 @echo incroot='${INCROOT}'
4359 usrlibdir:
4360 @echo usrlibdir='${USRLIBDIR}'
4361 libdir:
4362 @echo libdir='${LIBDIR}'
4363 _ACEOF
4364 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4366 for ac_var in incroot usrlibdir libdir; do
4367 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4368 done
4369 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4370 for ac_extension in a so sl dylib la dll; do
4371 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4372 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4373 ac_im_usrlibdir=$ac_im_libdir; break
4375 done
4376 # Screen out bogus values from the imake configuration. They are
4377 # bogus both because they are the default anyway, and because
4378 # using them would break gcc on systems where it needs fixed includes.
4379 case $ac_im_incroot in
4380 /usr/include) ac_x_includes= ;;
4381 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4382 esac
4383 case $ac_im_usrlibdir in
4384 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4385 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4386 esac
4388 cd ..
4389 rm -f -r conftest.dir
4392 # Standard set of common directories for X headers.
4393 # Check X11 before X11Rn because it is often a symlink to the current release.
4394 ac_x_header_dirs='
4395 /usr/X11/include
4396 /usr/X11R7/include
4397 /usr/X11R6/include
4398 /usr/X11R5/include
4399 /usr/X11R4/include
4401 /usr/include/X11
4402 /usr/include/X11R7
4403 /usr/include/X11R6
4404 /usr/include/X11R5
4405 /usr/include/X11R4
4407 /usr/local/X11/include
4408 /usr/local/X11R7/include
4409 /usr/local/X11R6/include
4410 /usr/local/X11R5/include
4411 /usr/local/X11R4/include
4413 /usr/local/include/X11
4414 /usr/local/include/X11R7
4415 /usr/local/include/X11R6
4416 /usr/local/include/X11R5
4417 /usr/local/include/X11R4
4419 /usr/X386/include
4420 /usr/x386/include
4421 /usr/XFree86/include/X11
4423 /usr/include
4424 /usr/local/include
4425 /usr/unsupported/include
4426 /usr/athena/include
4427 /usr/local/x11r5/include
4428 /usr/lpp/Xamples/include
4430 /usr/openwin/include
4431 /usr/openwin/share/include'
4433 if test "$ac_x_includes" = no; then
4434 # Guess where to find include files, by looking for Xlib.h.
4435 # First, try using that file with no special directory specified.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <X11/Xlib.h>
4439 _ACEOF
4440 if ac_fn_cxx_try_cpp "$LINENO"; then :
4441 # We can compile using X headers with no special include directory.
4442 ac_x_includes=
4443 else
4444 for ac_dir in $ac_x_header_dirs; do
4445 if test -r "$ac_dir/X11/Xlib.h"; then
4446 ac_x_includes=$ac_dir
4447 break
4449 done
4451 rm -f conftest.err conftest.$ac_ext
4452 fi # $ac_x_includes = no
4454 if test "$ac_x_libraries" = no; then
4455 # Check for the libraries.
4456 # See if we find them without any special options.
4457 # Don't add to $LIBS permanently.
4458 ac_save_LIBS=$LIBS
4459 LIBS="-lX11 $LIBS"
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <X11/Xlib.h>
4464 main ()
4466 XrmInitialize ()
4468 return 0;
4470 _ACEOF
4471 if ac_fn_cxx_try_link "$LINENO"; then :
4472 LIBS=$ac_save_LIBS
4473 # We can link X programs with no special library path.
4474 ac_x_libraries=
4475 else
4476 LIBS=$ac_save_LIBS
4477 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4479 # Don't even attempt the hair of trying to link an X program!
4480 for ac_extension in a so sl dylib la dll; do
4481 if test -r "$ac_dir/libX11.$ac_extension"; then
4482 ac_x_libraries=$ac_dir
4483 break 2
4485 done
4486 done
4488 rm -f core conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4490 fi # $ac_x_libraries = no
4492 case $ac_x_includes,$ac_x_libraries in #(
4493 no,* | *,no | *\'*)
4494 # Didn't find X, or a directory has "'" in its name.
4495 ac_cv_have_x="have_x=no";; #(
4497 # Record where we found X for the cache.
4498 ac_cv_have_x="have_x=yes\
4499 ac_x_includes='$ac_x_includes'\
4500 ac_x_libraries='$ac_x_libraries'"
4501 esac
4503 ;; #(
4504 *) have_x=yes;;
4505 esac
4506 eval "$ac_cv_have_x"
4507 fi # $with_x != no
4509 if test "$have_x" != yes; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4511 $as_echo "$have_x" >&6; }
4512 no_x=yes
4513 else
4514 # If each of the values was on the command line, it overrides each guess.
4515 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4516 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4517 # Update the cache value to reflect the command line values.
4518 ac_cv_have_x="have_x=yes\
4519 ac_x_includes='$x_includes'\
4520 ac_x_libraries='$x_libraries'"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4522 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4525 if test "$no_x" = yes; then
4526 # Not all programs may use this symbol, but it does not hurt to define it.
4528 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4530 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4531 else
4532 if test -n "$x_includes"; then
4533 X_CFLAGS="$X_CFLAGS -I$x_includes"
4536 # It would also be nice to do this for all -L options, not just this one.
4537 if test -n "$x_libraries"; then
4538 X_LIBS="$X_LIBS -L$x_libraries"
4539 # For Solaris; some versions of Sun CC require a space after -R and
4540 # others require no space. Words are not sufficient . . . .
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4542 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4543 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4544 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4545 ac_cxx_werror_flag=yes
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 main ()
4554 return 0;
4556 _ACEOF
4557 if ac_fn_cxx_try_link "$LINENO"; then :
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 X_LIBS="$X_LIBS -R$x_libraries"
4561 else
4562 LIBS="$ac_xsave_LIBS -R $x_libraries"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4567 main ()
4571 return 0;
4573 _ACEOF
4574 if ac_fn_cxx_try_link "$LINENO"; then :
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 X_LIBS="$X_LIBS -R $x_libraries"
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4580 $as_echo "neither works" >&6; }
4582 rm -f core conftest.err conftest.$ac_objext \
4583 conftest$ac_exeext conftest.$ac_ext
4585 rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4587 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4588 LIBS=$ac_xsave_LIBS
4591 # Check for system-dependent libraries X programs must link with.
4592 # Do this before checking for the system-independent R6 libraries
4593 # (-lICE), since we may need -lsocket or whatever for X linking.
4595 if test "$ISC" = yes; then
4596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4597 else
4598 # Martyn Johnson says this is needed for Ultrix, if the X
4599 # libraries were built with DECnet support. And Karl Berry says
4600 # the Alpha needs dnet_stub (dnet does not exist).
4601 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4605 /* Override any GCC internal prototype to avoid an error.
4606 Use char because int might match the return type of a GCC
4607 builtin and then its argument prototype would still apply. */
4608 #ifdef __cplusplus
4609 extern "C"
4610 #endif
4611 char XOpenDisplay ();
4613 main ()
4615 return XOpenDisplay ();
4617 return 0;
4619 _ACEOF
4620 if ac_fn_cxx_try_link "$LINENO"; then :
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4624 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4625 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 ac_check_lib_save_LIBS=$LIBS
4629 LIBS="-ldnet $LIBS"
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 /* Override any GCC internal prototype to avoid an error.
4634 Use char because int might match the return type of a GCC
4635 builtin and then its argument prototype would still apply. */
4636 #ifdef __cplusplus
4637 extern "C"
4638 #endif
4639 char dnet_ntoa ();
4641 main ()
4643 return dnet_ntoa ();
4645 return 0;
4647 _ACEOF
4648 if ac_fn_cxx_try_link "$LINENO"; then :
4649 ac_cv_lib_dnet_dnet_ntoa=yes
4650 else
4651 ac_cv_lib_dnet_dnet_ntoa=no
4653 rm -f core conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4655 LIBS=$ac_check_lib_save_LIBS
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4658 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4659 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
4660 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4663 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4665 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4666 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 ac_check_lib_save_LIBS=$LIBS
4670 LIBS="-ldnet_stub $LIBS"
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4674 /* Override any GCC internal prototype to avoid an error.
4675 Use char because int might match the return type of a GCC
4676 builtin and then its argument prototype would still apply. */
4677 #ifdef __cplusplus
4678 extern "C"
4679 #endif
4680 char dnet_ntoa ();
4682 main ()
4684 return dnet_ntoa ();
4686 return 0;
4688 _ACEOF
4689 if ac_fn_cxx_try_link "$LINENO"; then :
4690 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4691 else
4692 ac_cv_lib_dnet_stub_dnet_ntoa=no
4694 rm -f core conftest.err conftest.$ac_objext \
4695 conftest$ac_exeext conftest.$ac_ext
4696 LIBS=$ac_check_lib_save_LIBS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4699 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4700 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
4701 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4706 rm -f core conftest.err conftest.$ac_objext \
4707 conftest$ac_exeext conftest.$ac_ext
4708 LIBS="$ac_xsave_LIBS"
4710 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4711 # to get the SysV transport functions.
4712 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4713 # needs -lnsl.
4714 # The nsl library prevents programs from opening the X display
4715 # on Irix 5.2, according to T.E. Dickey.
4716 # The functions gethostbyname, getservbyname, and inet_addr are
4717 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4718 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4719 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4723 if test $ac_cv_func_gethostbyname = no; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4725 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4726 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-lnsl $LIBS"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4737 #ifdef __cplusplus
4738 extern "C"
4739 #endif
4740 char gethostbyname ();
4742 main ()
4744 return gethostbyname ();
4746 return 0;
4748 _ACEOF
4749 if ac_fn_cxx_try_link "$LINENO"; then :
4750 ac_cv_lib_nsl_gethostbyname=yes
4751 else
4752 ac_cv_lib_nsl_gethostbyname=no
4754 rm -f core conftest.err conftest.$ac_objext \
4755 conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4759 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4760 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4764 if test $ac_cv_lib_nsl_gethostbyname = no; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4766 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4767 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 ac_check_lib_save_LIBS=$LIBS
4771 LIBS="-lbsd $LIBS"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4775 /* Override any GCC internal prototype to avoid an error.
4776 Use char because int might match the return type of a GCC
4777 builtin and then its argument prototype would still apply. */
4778 #ifdef __cplusplus
4779 extern "C"
4780 #endif
4781 char gethostbyname ();
4783 main ()
4785 return gethostbyname ();
4787 return 0;
4789 _ACEOF
4790 if ac_fn_cxx_try_link "$LINENO"; then :
4791 ac_cv_lib_bsd_gethostbyname=yes
4792 else
4793 ac_cv_lib_bsd_gethostbyname=no
4795 rm -f core conftest.err conftest.$ac_objext \
4796 conftest$ac_exeext conftest.$ac_ext
4797 LIBS=$ac_check_lib_save_LIBS
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4800 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4801 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
4802 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4808 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4809 # socket/setsockopt and other routines are undefined under SCO ODT
4810 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4811 # on later versions), says Simon Leinen: it contains gethostby*
4812 # variants that don't use the name server (or something). -lsocket
4813 # must be given before -lnsl if both are needed. We assume that
4814 # if connect needs -lnsl, so does gethostbyname.
4815 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
4816 if test "x$ac_cv_func_connect" = x""yes; then :
4820 if test $ac_cv_func_connect = no; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4822 $as_echo_n "checking for connect in -lsocket... " >&6; }
4823 if test "${ac_cv_lib_socket_connect+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 ac_check_lib_save_LIBS=$LIBS
4827 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4831 /* Override any GCC internal prototype to avoid an error.
4832 Use char because int might match the return type of a GCC
4833 builtin and then its argument prototype would still apply. */
4834 #ifdef __cplusplus
4835 extern "C"
4836 #endif
4837 char connect ();
4839 main ()
4841 return connect ();
4843 return 0;
4845 _ACEOF
4846 if ac_fn_cxx_try_link "$LINENO"; then :
4847 ac_cv_lib_socket_connect=yes
4848 else
4849 ac_cv_lib_socket_connect=no
4851 rm -f core conftest.err conftest.$ac_objext \
4852 conftest$ac_exeext conftest.$ac_ext
4853 LIBS=$ac_check_lib_save_LIBS
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4856 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4857 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
4858 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4863 # Guillermo Gomez says -lposix is necessary on A/UX.
4864 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
4865 if test "x$ac_cv_func_remove" = x""yes; then :
4869 if test $ac_cv_func_remove = no; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4871 $as_echo_n "checking for remove in -lposix... " >&6; }
4872 if test "${ac_cv_lib_posix_remove+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 ac_check_lib_save_LIBS=$LIBS
4876 LIBS="-lposix $LIBS"
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4880 /* Override any GCC internal prototype to avoid an error.
4881 Use char because int might match the return type of a GCC
4882 builtin and then its argument prototype would still apply. */
4883 #ifdef __cplusplus
4884 extern "C"
4885 #endif
4886 char remove ();
4888 main ()
4890 return remove ();
4892 return 0;
4894 _ACEOF
4895 if ac_fn_cxx_try_link "$LINENO"; then :
4896 ac_cv_lib_posix_remove=yes
4897 else
4898 ac_cv_lib_posix_remove=no
4900 rm -f core conftest.err conftest.$ac_objext \
4901 conftest$ac_exeext conftest.$ac_ext
4902 LIBS=$ac_check_lib_save_LIBS
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4905 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4906 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
4907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4912 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4913 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4914 if test "x$ac_cv_func_shmat" = x""yes; then :
4918 if test $ac_cv_func_shmat = no; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4920 $as_echo_n "checking for shmat in -lipc... " >&6; }
4921 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 ac_check_lib_save_LIBS=$LIBS
4925 LIBS="-lipc $LIBS"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4929 /* Override any GCC internal prototype to avoid an error.
4930 Use char because int might match the return type of a GCC
4931 builtin and then its argument prototype would still apply. */
4932 #ifdef __cplusplus
4933 extern "C"
4934 #endif
4935 char shmat ();
4937 main ()
4939 return shmat ();
4941 return 0;
4943 _ACEOF
4944 if ac_fn_cxx_try_link "$LINENO"; then :
4945 ac_cv_lib_ipc_shmat=yes
4946 else
4947 ac_cv_lib_ipc_shmat=no
4949 rm -f core conftest.err conftest.$ac_objext \
4950 conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4954 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4955 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
4956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4962 # Check for libraries that X11R6 Xt/Xaw programs need.
4963 ac_save_LDFLAGS=$LDFLAGS
4964 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4965 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4966 # check for ICE first), but we must link in the order -lSM -lICE or
4967 # we get undefined symbols. So assume we have SM if we have ICE.
4968 # These have to be linked with before -lX11, unlike the other
4969 # libraries we check for below, so use a different variable.
4970 # John Interrante, Karl Berry
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4972 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4973 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_check_lib_save_LIBS=$LIBS
4977 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 /* Override any GCC internal prototype to avoid an error.
4982 Use char because int might match the return type of a GCC
4983 builtin and then its argument prototype would still apply. */
4984 #ifdef __cplusplus
4985 extern "C"
4986 #endif
4987 char IceConnectionNumber ();
4989 main ()
4991 return IceConnectionNumber ();
4993 return 0;
4995 _ACEOF
4996 if ac_fn_cxx_try_link "$LINENO"; then :
4997 ac_cv_lib_ICE_IceConnectionNumber=yes
4998 else
4999 ac_cv_lib_ICE_IceConnectionNumber=no
5001 rm -f core conftest.err conftest.$ac_objext \
5002 conftest$ac_exeext conftest.$ac_ext
5003 LIBS=$ac_check_lib_save_LIBS
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5006 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5007 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5008 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5011 LDFLAGS=$ac_save_LDFLAGS
5015 for ac_header in pty.h util.h
5016 do :
5017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5019 eval as_val=\$$as_ac_Header
5020 if test "x$as_val" = x""yes; then :
5021 cat >>confdefs.h <<_ACEOF
5022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023 _ACEOF
5027 done
5029 for ac_func in gettimeofday
5030 do :
5031 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5032 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
5033 cat >>confdefs.h <<_ACEOF
5034 #define HAVE_GETTIMEOFDAY 1
5035 _ACEOF
5038 done
5041 #--------------------------------------------------------------------
5042 # Checks for dl library
5043 #--------------------------------------------------------------------
5045 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5046 if test "x$ac_cv_func_dlopen" = x""yes; then :
5050 if test "$ac_cv_func_dl" = "yes"; then
5052 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5056 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5057 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 ac_check_lib_save_LIBS=$LIBS
5061 LIBS="-ldl $LIBS"
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5065 /* Override any GCC internal prototype to avoid an error.
5066 Use char because int might match the return type of a GCC
5067 builtin and then its argument prototype would still apply. */
5068 #ifdef __cplusplus
5069 extern "C"
5070 #endif
5071 char dlopen ();
5073 main ()
5075 return dlopen ();
5077 return 0;
5079 _ACEOF
5080 if ac_fn_cxx_try_link "$LINENO"; then :
5081 ac_cv_lib_dl_dlopen=yes
5082 else
5083 ac_cv_lib_dl_dlopen=no
5085 rm -f core conftest.err conftest.$ac_objext \
5086 conftest$ac_exeext conftest.$ac_ext
5087 LIBS=$ac_check_lib_save_LIBS
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5090 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5091 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_LIBDL 1
5094 _ACEOF
5096 LIBS="-ldl $LIBS"
5100 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5101 for ac_func in dlopen
5102 do :
5103 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5104 if test "x$ac_cv_func_dlopen" = x""yes; then :
5105 cat >>confdefs.h <<_ACEOF
5106 #define HAVE_DLOPEN 1
5107 _ACEOF
5110 done
5112 CONFIG_BDL="-ldl"
5114 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
5118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
5119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 ac_check_lib_save_LIBS=$LIBS
5123 LIBS="-ldld $LIBS"
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5127 /* Override any GCC internal prototype to avoid an error.
5128 Use char because int might match the return type of a GCC
5129 builtin and then its argument prototype would still apply. */
5130 #ifdef __cplusplus
5131 extern "C"
5132 #endif
5133 char dld_link ();
5135 main ()
5137 return dld_link ();
5139 return 0;
5141 _ACEOF
5142 if ac_fn_cxx_try_link "$LINENO"; then :
5143 ac_cv_lib_dld_dld_link=yes
5144 else
5145 ac_cv_lib_dld_dld_link=no
5147 rm -f core conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
5152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
5153 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_LIBDLD 1
5156 _ACEOF
5158 LIBS="-ldld $LIBS"
5162 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
5163 CONFIG_BDL="-ldl"
5165 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5167 else
5168 for ac_func in shl_load
5169 do :
5170 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
5171 if test "x$ac_cv_func_shl_load" = x""yes; then :
5172 cat >>confdefs.h <<_ACEOF
5173 #define HAVE_SHL_LOAD 1
5174 _ACEOF
5177 done
5179 if test "$ac_cv_func_shl_load" = "yes"; then
5180 CONFIG_BDL="-ldl"
5182 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5184 else
5185 for ac_func in dlopen
5186 do :
5187 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
5188 if test "x$ac_cv_func_dlopen" = x""yes; then :
5189 cat >>confdefs.h <<_ACEOF
5190 #define HAVE_DLOPEN 1
5191 _ACEOF
5194 done
5196 if test "$ac_cv_func_dlopen" = "yes"; then
5198 $as_echo "#define DYNAMIC_LINKING 1" >>confdefs.h
5207 #--------------------------------------------------------------------
5208 # Checks for iconv library
5209 #--------------------------------------------------------------------
5212 # Check whether --with-iconv was given.
5213 if test "${with_iconv+set}" = set; then :
5214 withval=$with_iconv;
5218 # Check for iconv
5219 # Modified from GNOME's libxml2 configure.in
5221 ac_ext=c
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 # compile C to avoid the 'const char**' problem
5228 SAVE_CPPFLAGS="$CPPFLAGS"
5229 SAVE_LDFLAGS="$LDFLAGS"
5230 SAVE_LIBS="$LIBS"
5231 if test "$with_iconv" = "no" ; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling iconv support" >&5
5233 $as_echo "disabling iconv support" >&6; }
5234 else
5235 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
5236 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
5237 LDFLAGS="$ICONV_LDFLAGS"
5239 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
5240 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
5241 LDFLAGS="-L$with_iconv/lib"
5242 ICONV_CFLAGS="-I$with_iconv/include"
5243 ICONV_LDFLAGS="-L$with_iconv/lib"
5246 ac_ext=c
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5252 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5255 CPP=
5257 if test -z "$CPP"; then
5258 if test "${ac_cv_prog_CPP+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 # Double quotes because CPP needs to be expanded
5262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5264 ac_preproc_ok=false
5265 for ac_c_preproc_warn_flag in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #ifdef __STDC__
5276 # include <limits.h>
5277 #else
5278 # include <assert.h>
5279 #endif
5280 Syntax error
5281 _ACEOF
5282 if ac_fn_c_try_cpp "$LINENO"; then :
5284 else
5285 # Broken: fails on valid input.
5286 continue
5288 rm -f conftest.err conftest.$ac_ext
5290 # OK, works on sane cases. Now check whether nonexistent headers
5291 # can be detected and how.
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if ac_fn_c_try_cpp "$LINENO"; then :
5297 # Broken: success on invalid input.
5298 continue
5299 else
5300 # Passes both tests.
5301 ac_preproc_ok=:
5302 break
5304 rm -f conftest.err conftest.$ac_ext
5306 done
5307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5308 rm -f conftest.err conftest.$ac_ext
5309 if $ac_preproc_ok; then :
5310 break
5313 done
5314 ac_cv_prog_CPP=$CPP
5317 CPP=$ac_cv_prog_CPP
5318 else
5319 ac_cv_prog_CPP=$CPP
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5322 $as_echo "$CPP" >&6; }
5323 ac_preproc_ok=false
5324 for ac_c_preproc_warn_flag in '' yes
5326 # Use a header file that comes with gcc, so configuring glibc
5327 # with a fresh cross-compiler works.
5328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329 # <limits.h> exists even on freestanding compilers.
5330 # On the NeXT, cc -E runs the code through the compiler's parser,
5331 # not just through cpp. "Syntax error" is here to catch this case.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #ifdef __STDC__
5335 # include <limits.h>
5336 #else
5337 # include <assert.h>
5338 #endif
5339 Syntax error
5340 _ACEOF
5341 if ac_fn_c_try_cpp "$LINENO"; then :
5343 else
5344 # Broken: fails on valid input.
5345 continue
5347 rm -f conftest.err conftest.$ac_ext
5349 # OK, works on sane cases. Now check whether nonexistent headers
5350 # can be detected and how.
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <ac_nonexistent.h>
5354 _ACEOF
5355 if ac_fn_c_try_cpp "$LINENO"; then :
5356 # Broken: success on invalid input.
5357 continue
5358 else
5359 # Passes both tests.
5360 ac_preproc_ok=:
5361 break
5363 rm -f conftest.err conftest.$ac_ext
5365 done
5366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367 rm -f conftest.err conftest.$ac_ext
5368 if $ac_preproc_ok; then :
5370 else
5371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5373 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5374 See \`config.log' for more details." "$LINENO" 5; }
5377 ac_ext=c
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5384 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5385 if test "x$ac_cv_header_iconv_h" = x""yes; then :
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5387 $as_echo_n "checking for iconv... " >&6; }
5390 # ac_fn_c_try_link LINENO
5391 # -----------------------
5392 # Try to link conftest.$ac_ext, and return whether this succeeded.
5393 ac_fn_c_try_link ()
5395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { { ac_try="$ac_link"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5403 $as_echo "$ac_try_echo"; } >&5
5404 (eval "$ac_link") 2>conftest.err
5405 ac_status=$?
5406 if test -s conftest.err; then
5407 grep -v '^ *+' conftest.err >conftest.er1
5408 cat conftest.er1 >&5
5409 mv -f conftest.er1 conftest.err
5411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5412 test $ac_status = 0; } && {
5413 test -z "$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest$ac_exeext && {
5416 test "$cross_compiling" = yes ||
5417 $as_test_x conftest$ac_exeext
5418 }; then :
5419 ac_retval=0
5420 else
5421 $as_echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_retval=1
5426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5428 # interfere with the next link command; also delete a directory that is
5429 # left behind by Apple's compiler. We do this before executing the actions.
5430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5432 return $ac_retval
5434 } # ac_fn_c_try_link
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5438 #include <stdlib.h>
5439 #include <iconv.h>
5442 main ()
5445 iconv_t cd = iconv_open ("","");
5446 iconv (cd, NULL, NULL, NULL, NULL);
5449 return 0;
5451 _ACEOF
5452 if ac_fn_c_try_link "$LINENO"; then :
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5455 $as_echo "yes" >&6; }
5457 $as_echo "#define USE_ICONV 1" >>confdefs.h
5460 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
5465 $as_echo_n "checking for iconv in -liconv... " >&6; }
5466 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5467 LIBS="-liconv" # for AC_TRY_LINK
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5471 #include <stdlib.h>
5472 #include <iconv.h>
5475 main ()
5478 iconv_t cd = iconv_open ("","");
5479 iconv (cd, NULL, NULL, NULL, NULL);
5482 return 0;
5484 _ACEOF
5485 if ac_fn_c_try_link "$LINENO"; then :
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5490 $as_echo "#define USE_ICONV 1" >>confdefs.h
5492 ICONV_LDFLAGS="${ICONV_LDFLAGS/-liconv} -liconv"
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}: WARNING: absence of iconv may crash HTML import" >&5
5499 $as_echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5502 rm -f core conftest.err conftest.$ac_objext \
5503 conftest$ac_exeext conftest.$ac_ext
5505 rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5512 CPPFLAGS="$SAVE_CPPFLAGS"
5513 LDFLAGS="$SAVE_LDFLAGS"
5514 LIBS="$SAVE_LIBS"
5515 ac_ext=cpp
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520 # restore C++ language
5524 #--------------------------------------------------------------------
5525 # Checks for freetype library
5526 #--------------------------------------------------------------------
5529 # Check whether --with-freetype was given.
5530 if test "${with_freetype+set}" = set; then :
5531 withval=$with_freetype;
5535 SAVE_CPPFLAGS="$CPPFLAGS"
5536 SAVE_LDFLAGS="$LDFLAGS"
5537 SAVE_LIBS="$LIBS"
5538 if test "$with_freetype" = "no" ; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling freetype support" >&5
5540 $as_echo "disabling freetype support" >&6; }
5541 else
5542 if test -z "$FREETYPE_CFLAGS"; then
5543 FREETYPE_CFLAGS=`freetype-config --cflags`
5545 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
5546 if test -z "$FREETYPE_LDFLAGS"; then
5547 FREETYPE_LDFLAGS=`freetype-config --libs`
5549 LIBS="$LDFLAGS $FREETYPE_LDFLAGS"
5550 ac_fn_cxx_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
5553 $as_echo_n "checking for freetype... " >&6; }
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5557 #include <ft2build.h>
5558 #include FT_FREETYPE_H
5561 main ()
5564 FT_Library ft_library;
5565 (void) FT_Init_FreeType (&ft_library);
5568 return 0;
5570 _ACEOF
5571 if ac_fn_cxx_try_link "$LINENO"; then :
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5574 $as_echo "yes" >&6; }
5576 $as_echo "#define USE_FREETYPE 1" >>confdefs.h
5578 FREETYPE_CFLAGS="$CPPFLAGS"
5579 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5580 FREETYPE_LDFLAGS="$LIBS"
5582 $as_echo "#define LINKED_FREETYPE 1" >>confdefs.h
5586 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5598 CPPFLAGS="$SAVE_CPPFLAGS"
5599 LDFLAGS="$SAVE_LDFLAGS"
5600 LIBS="$SAVE_LIBS"
5605 #--------------------------------------------------------------------
5606 # Checks for Cairo library
5607 #--------------------------------------------------------------------
5610 # Check whether --with-cairo was given.
5611 if test "${with_cairo+set}" = set; then :
5612 withval=$with_cairo;
5616 SAVE_CPPFLAGS="$CPPFLAGS"
5617 SAVE_LDFLAGS="$LDFLAGS"
5618 SAVE_LIBS="$LIBS"
5619 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling cairo support" >&5
5621 $as_echo "disabling cairo support" >&6; }
5622 else
5623 CPPFLAGS=`pkg-config --cflags cairo`
5624 LIBS=`pkg-config --libs cairo`
5625 ac_fn_cxx_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
5626 if test "x$ac_cv_header_cairo_h" = x""yes; then :
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
5628 $as_echo_n "checking for cairo... " >&6; }
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5632 #include <cairo.h>
5635 main ()
5638 cairo_surface_t *surface;
5639 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
5642 return 0;
5644 _ACEOF
5645 if ac_fn_cxx_try_link "$LINENO"; then :
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648 $as_echo "yes" >&6; }
5650 $as_echo "#define USE_CAIRO 1" >>confdefs.h
5652 CAIRO_CFLAGS="$CPPFLAGS"
5653 if test "$with_cairo" = "linked" ; then
5654 CAIRO_LDFLAGS="$LIBS"
5656 $as_echo "#define LINKED_CAIRO 1" >>confdefs.h
5660 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5672 CPPFLAGS="$SAVE_CPPFLAGS"
5673 LDFLAGS="$SAVE_LDFLAGS"
5674 LIBS="$SAVE_LIBS"
5679 #--------------------------------------------------------------------
5680 # Checks for Imlib2 library
5681 #--------------------------------------------------------------------
5684 # Check whether --with-imlib2 was given.
5685 if test "${with_imlib2+set}" = set; then :
5686 withval=$with_imlib2;
5690 SAVE_CPPFLAGS="$CPPFLAGS"
5691 SAVE_LDFLAGS="$LDFLAGS"
5692 SAVE_LIBS="$LIBS"
5693 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling imlib2 support" >&5
5695 $as_echo "disabling imlib2 support" >&6; }
5696 else
5697 CPPFLAGS=`imlib2-config --cflags`
5698 LIBS=`imlib2-config --libs`
5699 ac_fn_cxx_check_header_mongrel "$LINENO" "Imlib2.h" "ac_cv_header_Imlib2_h" "$ac_includes_default"
5700 if test "x$ac_cv_header_Imlib2_h" = x""yes; then :
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for imlib2" >&5
5702 $as_echo_n "checking for imlib2... " >&6; }
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 #include <X11/Xlib.h>
5707 #include <Imlib2.h>
5708 #include <stdio.h>
5709 #include <string.h>
5712 main ()
5715 Imlib_Image image= imlib_load_image("");
5718 return 0;
5720 _ACEOF
5721 if ac_fn_cxx_try_link "$LINENO"; then :
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724 $as_echo "yes" >&6; }
5726 $as_echo "#define USE_IMLIB2 1" >>confdefs.h
5728 IMLIB2_CFLAGS="$CPPFLAGS"
5729 if test "$with_imlib2" = "linked" ; then
5730 IMLIB2_LDFLAGS="$LIBS"
5732 $as_echo "#define LINKED_IMLIB2 1" >>confdefs.h
5736 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5741 rm -f core conftest.err conftest.$ac_objext \
5742 conftest$ac_exeext conftest.$ac_ext
5748 CPPFLAGS="$SAVE_CPPFLAGS"
5749 LDFLAGS="$SAVE_LDFLAGS"
5750 LIBS="$SAVE_LIBS"
5755 #--------------------------------------------------------------------
5756 # Checks for Axel library
5757 #--------------------------------------------------------------------
5760 # Check whether --with-axel was given.
5761 if test "${with_axel+set}" = set; then :
5762 withval=$with_axel;
5766 SAVE_CPPFLAGS="$CPPFLAGS"
5767 SAVE_LDFLAGS="$LDFLAGS"
5768 SAVE_LIBS="$LIBS"
5769 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling axel support" >&5
5771 $as_echo "disabling axel support" >&6; }
5772 else
5773 CPPFLAGS=`axel-config --cflags`
5774 LIBS=`axel-config --libs`
5775 ac_fn_cxx_check_header_mongrel "$LINENO" "QGui/Viewer.h" "ac_cv_header_QGui_Viewer_h" "$ac_includes_default"
5776 if test "x$ac_cv_header_QGui_Viewer_h" = x""yes; then :
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axel" >&5
5778 $as_echo_n "checking for axel... " >&6; }
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5782 #include <QGui/Viewer.h>
5785 main ()
5788 Viewer viewer(0);
5791 return 0;
5793 _ACEOF
5794 if ac_fn_cxx_try_link "$LINENO"; then :
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797 $as_echo "yes" >&6; }
5799 $as_echo "#define USE_AXEL 1" >>confdefs.h
5801 AXEL_CFLAGS="$CPPFLAGS"
5802 if test "$with_axel" = "linked" ; then
5803 AXEL_LDFLAGS="$LIBS"
5805 $as_echo "#define LINKED_AXEL 1" >>confdefs.h
5809 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5821 CPPFLAGS="$SAVE_CPPFLAGS"
5822 LDFLAGS="$SAVE_LDFLAGS"
5823 LIBS="$SAVE_LIBS"
5828 #--------------------------------------------------------------------
5829 # Checks for ghostscript library
5830 #--------------------------------------------------------------------
5833 # Check whether --with-gs was given.
5834 if test "${with_gs+set}" = set; then :
5835 withval=$with_gs;
5839 if test "$with_gs" = "no" ; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
5841 $as_echo "disabling ghostscript support" >&6; }
5842 else
5843 case "${host}" in
5844 *mingw*)
5845 GS_EXE="gswin32c.exe"
5846 GS_DLL="gsdll32.dll"
5847 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
5848 set dummy ${GS_EXE}; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$HAS_GS_EXE"; then
5855 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_HAS_GS_EXE="yes"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5872 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5875 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5876 if test -n "$HAS_GS_EXE"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5878 $as_echo "$HAS_GS_EXE" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5885 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
5886 set dummy ${GS_DLL}; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$HAS_GS_LIB"; then
5893 ac_cv_prog_HAS_GS_LIB="$HAS_GS_LIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_HAS_GS_LIB="yes"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5906 done
5907 done
5908 IFS=$as_save_IFS
5910 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB="no"
5913 HAS_GS_LIB=$ac_cv_prog_HAS_GS_LIB
5914 if test -n "$HAS_GS_LIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_LIB" >&5
5916 $as_echo "$HAS_GS_LIB" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5925 # Extract the first word of "gs", so it can be a program name with args.
5926 set dummy gs; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$HAS_GS_EXE"; then
5933 ac_cv_prog_HAS_GS_EXE="$HAS_GS_EXE" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_HAS_GS_EXE="yes"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5950 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE="no"
5953 HAS_GS_EXE=$ac_cv_prog_HAS_GS_EXE
5954 if test -n "$HAS_GS_EXE"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GS_EXE" >&5
5956 $as_echo "$HAS_GS_EXE" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5963 HAS_GS_LIB="yes"
5965 esac
5966 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
5968 $as_echo "#define USE_GS 1" >>confdefs.h
5970 CONFIG_GS="Ghostscript"
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling ghostscript support" >&5
5976 $as_echo "disabling ghostscript support" >&6; }
5980 #--------------------------------------------------------------------
5981 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5982 #--------------------------------------------------------------------
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ... arguments behave correctly" >&5
5985 $as_echo_n "checking whether ... arguments behave correctly... " >&6; }
5986 if test -z "$GUILE_CFLAGS"; then
5987 CXXFLAGS="`guile-config compile`"
5988 else
5989 CXXFLAGS="$GUILE_CFLAGS"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5994 #include <guile/gh.h>
5995 #include <libguile.h>
5996 typedef SCM (*FN)(...);
5997 static SCM identity (SCM x) { return x; }
5998 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
6001 main ()
6006 return 0;
6008 _ACEOF
6009 if ac_fn_cxx_try_compile "$LINENO"; then :
6012 $as_echo "#define DOTS_OK 1" >>confdefs.h
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015 $as_echo "yes" >&6; }
6017 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 CXXFLAGS=""
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the size_t of guile strings" >&5
6027 $as_echo_n "checking the size_t of guile strings... " >&6; }
6028 if test -z "$GUILE_CFLAGS"; then
6029 CXXFLAGS="`guile-config compile`"
6030 else
6031 CXXFLAGS="$GUILE_CFLAGS"
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 #include <guile/gh.h>
6037 #include <libguile.h>
6038 void print_string (SCM s) {
6039 int len_r;
6040 char* r= gh_scm2newstr (s, &len_r); }
6043 main ()
6048 return 0;
6050 _ACEOF
6051 if ac_fn_cxx_try_compile "$LINENO"; then :
6054 $as_echo "#define guile_str_size_t int" >>confdefs.h
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
6057 $as_echo "int" >&6; }
6059 else
6062 $as_echo "#define guile_str_size_t size_t" >>confdefs.h
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
6065 $as_echo "size_t" >&6; }
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 CXXFLAGS=""
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statically linking with guile works" >&5
6072 $as_echo_n "checking if statically linking with guile works... " >&6; }
6073 SAVE_CPPFLAGS="$CPPFLAGS"
6074 SAVE_LDFLAGS="$LDFLAGS"
6075 SAVE_LIBS="$LIBS"
6076 CPPFLAGS="$GUILE_CFLAGS"
6077 LDFLAGS="-static"
6078 LIBS="$GUILE_LDFLAGS"
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 #include <guile/gh.h>
6083 $CONFIG_DOTS
6086 main ()
6089 struct dummy {
6090 static void my_main (int argc, char** argv) {}
6091 static void install_guile () {
6092 #ifdef DOTS_OK
6093 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6094 #else
6095 gh_enter (0, NULL, my_main);
6096 #endif
6099 dummy::install_guile ();
6102 return 0;
6104 _ACEOF
6105 if ac_fn_cxx_try_link "$LINENO"; then :
6106 tm_link_guile_static="yes"
6107 else
6108 tm_link_guile_static="no"
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static\"" >&5
6114 $as_echo "\"$tm_link_guile_static\"" >&6; }
6115 if test "$tm_link_guile_static" = "no" ; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl" >&5
6117 $as_echo_n "checking if it works with -lltdl... " >&6; }
6118 LIBS="$GUILE_LDFLAGS -lltdl"
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6122 #include <guile/gh.h>
6123 $CONFIG_DOTS
6126 main ()
6129 struct dummy {
6130 static void my_main (int argc, char** argv) {}
6131 static void install_guile () {
6132 #ifdef DOTS_OK
6133 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6134 #else
6135 gh_enter (0, NULL, my_main);
6136 #endif
6139 dummy::install_guile ();
6142 return 0;
6144 _ACEOF
6145 if ac_fn_cxx_try_link "$LINENO"; then :
6146 tm_link_guile_static_ltdl="yes"
6147 else
6148 tm_link_guile_static_ltdl="no"
6150 rm -f core conftest.err conftest.$ac_objext \
6151 conftest$ac_exeext conftest.$ac_ext
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl\"" >&5
6154 $as_echo "\"$tm_link_guile_static_ltdl\"" >&6; }
6155 if test "$tm_link_guile_static_ltdl" = "yes" ; then
6156 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
6157 else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it works with -lltdl -ldl" >&5
6159 $as_echo_n "checking if it works with -lltdl -ldl... " >&6; }
6160 LIBS="$GUILE_LDFLAGS -lltdl -ldl"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 #include <guile/gh.h>
6165 $CONFIG_DOTS
6168 main ()
6171 struct dummy {
6172 static void my_main (int argc, char** argv) {}
6173 static void install_guile () {
6174 #ifdef DOTS_OK
6175 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6176 #else
6177 gh_enter (0, NULL, my_main);
6178 #endif
6181 dummy::install_guile ();
6184 return 0;
6186 _ACEOF
6187 if ac_fn_cxx_try_link "$LINENO"; then :
6188 tm_link_guile_static_ltdl_ldl="yes"
6189 else
6190 tm_link_guile_static_ltdl_ldl="no"
6192 rm -f core conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
6196 $as_echo "\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
6197 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
6198 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to link statically with guile" >&5
6201 $as_echo "$as_me: WARNING: unable to link statically with guile" >&2;}
6205 CPPFLAGS="$SAVE_CPPFLAGS"
6206 LDFLAGS="$SAVE_LDFLAGS"
6207 LIBS="$SAVE_LIBS"
6209 #--------------------------------------------------------------------
6210 # Handle different systems case by case
6211 #--------------------------------------------------------------------
6213 CONFIG_OS="GNU_LINUX"
6214 CONFIG_OS_SUFFIX="gnu-linux"
6215 CONFIG_OS_COMPAT="Unix"
6216 CONFIG_MACOS=""
6217 CONFIG_CXXFLAGS=""
6218 CONFIG_CXXTEMPLATE=""
6219 CONFIG_STD_SETENV="#define STD_SETENV"
6220 CONFIG_SO="so"
6221 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
6222 CONFIG_CHMOD="chmod -f"
6223 CONFIG_CXXOPTIMIZE="-O2"
6224 CONFIG_BSTATIC="-Wl,-Bstatic"
6225 CONFIG_BSHARED="-Wl,-Bdynamic"
6226 CONFIG_BFLAGS=""
6227 CONFIG_BPATH="-Wl,-rpath,"
6228 CONFIG_LDRT=""
6229 CONFIG_WORD_LENGTH="4"
6230 CONFIG_WORD_LENGTH_INC="3"
6231 CONFIG_WORD_MASK="0xfffffffc"
6232 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6233 # tweak for XCode project
6234 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
6236 X11_CFLAGS="$X_CFLAGS"
6237 X11_LDFLAGS="$X_LIBS -lXext -lX11"
6239 # The cast to long int works around a bug in the HP C Compiler
6240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6242 # This bug is HP SR number 8606223364.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6244 $as_echo_n "checking size of void *... " >&6; }
6245 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6250 else
6251 if test "$ac_cv_type_void_p" = yes; then
6252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6254 { as_fn_set_status 77
6255 as_fn_error "cannot compute sizeof (void *)
6256 See \`config.log' for more details." "$LINENO" 5; }; }
6257 else
6258 ac_cv_sizeof_void_p=0
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6264 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6268 cat >>confdefs.h <<_ACEOF
6269 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6270 _ACEOF
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on a 64-bits computer" >&5
6274 $as_echo_n "checking if we are on a 64-bits computer... " >&6; }
6275 if test "$ac_cv_sizeof_void_p" = "8"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6277 $as_echo "yes" >&6; }
6278 CONFIG_WORD_LENGTH="8"
6279 CONFIG_WORD_LENGTH_INC="7"
6280 CONFIG_WORD_MASK="0xfffffffffffffff8"
6281 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6282 else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6287 case "${host}" in
6288 i*86-*-linux* | x86_64-*-linux*)
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6290 $as_echo "final adjustments for an Intel or AMD GNU/Linux host" >&6; }
6291 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6293 i*86-*-freebsd* | x86_64-*-freebsd*)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6295 $as_echo "final adjustments for an Intel or AMD GNU/BSD host" >&6; }
6296 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6298 i*86-*-solaris*)
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Intel or AMS Solaris host" >&5
6300 $as_echo "final adjustments for an Intel or AMS Solaris host" >&6; }
6301 CONFIG_CXXOPTIMIZE="-O3"
6302 CONFIG_BPATH="-Wl,-R,"
6303 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6305 *mingw*)
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for mingw host" >&5
6307 $as_echo "final adjustments for mingw host" >&6; }
6308 CONFIG_OS_COMPAT="Windows"
6309 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
6311 *-*-cygwin)
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for cygwin host" >&5
6313 $as_echo "final adjustments for cygwin host" >&6; }
6314 CONFIG_OS="CYGWIN"
6315 CONFIG_BFLAGS="-Wl,-stack,8388608"
6316 # CXX="export CYGWIN=check_case:strict; $CXX"
6317 # AC_SUBST(CXX)
6319 *apple*darwin*)
6320 echo "$ac_t""final adjustments for a MacOS host" 1>&6
6321 CONFIG_OS="MACOS"
6322 CONFIG_CXXFLAGS="-I${prefix}/include"
6323 CONFIG_BSHARED=""
6324 CONFIG_BFLAGS="-framework Cocoa"
6325 CONFIG_BPATH=""
6326 CONFIG_SO="dylib"
6327 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6329 *darwin*)
6330 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
6331 CONFIG_CXXFLAGS="-I${prefix}/include"
6332 CONFIG_BSHARED=""
6333 CONFIG_BPATH=""
6334 CONFIG_SO="dylib"
6335 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
6337 powerpc-*-linux*)
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a PowerPC/GNU-linux host" >&5
6339 $as_echo "final adjustments for a PowerPC/GNU-linux host" >&6; }
6340 CONFIG_OS="POWERPC_GNU_LINUX"
6341 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6343 *sun*)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a SUN/solaris host" >&5
6345 $as_echo "final adjustments for a SUN/solaris host" >&6; }
6346 CONFIG_OS="SUN"
6347 CONFIG_OS_SUFFIX="sun"
6348 CONFIG_BSTATIC=""
6349 CONFIG_BSHARED=""
6350 CONFIG_BPATH="-Wl,-R,"
6351 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
6352 CONFIG_WORD_LENGTH="8"
6353 CONFIG_WORD_LENGTH_INC="7"
6354 CONFIG_WORD_MASK="0xfffffff8"
6355 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6356 CONFIG_STD_SETENV=""
6358 sparc*-*-linux*)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a Sparc host running GNU/Linux" >&5
6360 $as_echo "final adjustments for a Sparc host running GNU/Linux" >&6; }
6361 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
6362 CONFIG_WORD_LENGTH="8"
6363 CONFIG_WORD_LENGTH_INC="7"
6364 CONFIG_WORD_MASK="0xfffffff8"
6365 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6366 CONFIG_STD_SETENV=""
6368 *dec*)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a DEC/alpha host" >&5
6370 $as_echo "final adjustments for a DEC/alpha host" >&6; }
6371 CONFIG_BSTATIC=""
6372 CONFIG_BSHARED="-shared"
6373 CONFIG_STD_SETENV=""
6375 *alpha*-*-linux*)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Alpha GNU/Linux host" >&5
6377 $as_echo "final adjustments for an Alpha GNU/Linux host" >&6; }
6378 CONFIG_BSTATIC=""
6379 CONFIG_BSHARED="-shared"
6381 s390-*-linux*)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6383 $as_echo "final adjustments for an IBM S/390 GNU/Linux host" >&6; }
6384 CONFIG_STD_SETENV=""
6386 ia64-*-linux*)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an Itanium GNU/Linux host" >&5
6388 $as_echo "final adjustments for an Itanium GNU/Linux host" >&6; }
6389 CONFIG_BSTATIC=""
6390 CONFIG_BSHARED="-shared"
6392 hppa*-*-linux*)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6394 $as_echo "final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
6395 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6396 CONFIG_BSTATIC=""
6397 CONFIG_BSHARED="-shared"
6399 *sgi-irix*)
6400 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6401 CONFIG_OS="IRIX"
6402 CONFIG_CXXFLAGS=""
6403 X_LIBS=-L/usr/lib32
6404 CONFIG_BSTATIC=""
6405 CONFIG_BSHARED=""
6406 CONFIG_BPATH=""
6407 X11_LDFLAGS="$X_LIBS -lX11"
6408 CONFIG_WORD_MASK="0xfffffff8"
6409 CONFIG_STD_SETENV=""
6410 CONFIG_CHMOD="chmod"
6411 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6413 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a supported GNU/Linux host" >&5
6415 $as_echo "final adjustments for a supported GNU/Linux host" >&6; }
6417 *-linux*)
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic GNU/Linux host" >&5
6419 $as_echo "final adjustments for a generic GNU/Linux host" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: final adjustments for a generic host" >&5
6423 $as_echo "final adjustments for a generic host" >&6; }
6425 esac
6427 case "${host}" in
6428 *apple*darwin10*)
6429 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
6430 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
6432 esac
6434 #--------------------------------------------------------------------
6435 # Temporary fix for link problem
6436 #--------------------------------------------------------------------
6438 case "$GXX_VERSION" in
6439 3.* | 4.*)
6440 CONFIG_BSTATIC="-static"
6441 CONFIG_BSHARED="-dynamic"
6443 esac
6445 #--------------------------------------------------------------------
6446 # Memory allocation options
6447 #--------------------------------------------------------------------
6449 # Check whether --enable-fastalloc was given.
6450 if test "${enable_fastalloc+set}" = set; then :
6451 enableval=$enable_fastalloc;
6452 else
6453 enable_fastalloc="yes"
6456 case "$enable_fastalloc" in
6457 yes)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling fast allocator for small objects" >&5
6461 $as_echo "disabling fast allocator for small objects" >&6; }
6463 $as_echo "#define NO_FAST_ALLOC 1" >>confdefs.h
6467 as_fn_error "bad option --enable-fastalloc=$enable_fastalloc" "$LINENO" 5
6469 esac
6471 #--------------------------------------------------------------------
6472 # Experimental options
6473 #--------------------------------------------------------------------
6475 # Check whether --enable-experimental was given.
6476 if test "${enable_experimental+set}" = set; then :
6477 enableval=$enable_experimental;
6478 else
6479 enable_experimental="no"
6482 case "$enable_experimental" in
6483 yes)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental style rewriting code" >&5
6485 $as_echo "enabling experimental style rewriting code" >&6; }
6487 $as_echo "#define EXPERIMENTAL 1" >>confdefs.h
6489 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental style rewriting code" >&5
6493 $as_echo "disabling experimental style rewriting code" >&6; }
6494 CONFIG_EXPERIMENTAL=""
6497 as_fn_error "bad option --enable-experimental=$enable_experimental" "$LINENO" 5
6499 esac
6502 #--------------------------------------------------------------------
6503 # MacOS X extensions (spellchecker, image loading)
6504 #--------------------------------------------------------------------
6506 # Check whether --enable-macosx-extensions was given.
6507 if test "${enable_macosx_extensions+set}" = set; then :
6508 enableval=$enable_macosx_extensions;
6509 else
6510 enable_macosx_extensions="no"
6513 case "$enable_macosx_extensions" in
6514 yes)
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling Mac OSX extensions" >&5
6516 $as_echo "enabling Mac OSX extensions" >&6; }
6518 $as_echo "#define MACOSX_EXTENSIONS 1" >>confdefs.h
6520 CONFIG_MACOS="MacOS"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling Mac OSX extensions" >&5
6524 $as_echo "disabling Mac OSX extensions" >&6; }
6525 CONFIG_MACOS=""
6528 as_fn_error "bad option --enable-macosx-extensions=$enable_macosx_extensions" "$LINENO" 5
6530 esac
6533 #--------------------------------------------------------------------
6534 # Experimental PDF renderer
6535 #--------------------------------------------------------------------
6537 # Check whether --enable-pdf-renderer was given.
6538 if test "${enable_pdf_renderer+set}" = set; then :
6539 enableval=$enable_pdf_renderer;
6540 else
6541 enable_pdf_renderer="no"
6544 case "$enable_pdf_renderer" in
6545 yes)
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental PDF renderer" >&5
6547 $as_echo "enabling experimental PDF renderer" >&6; }
6549 $as_echo "#define PDF_RENDERER 1" >>confdefs.h
6551 CONFIG_PDF="Pdf Pdf/dvipdfmx"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental PDF renderer" >&5
6555 $as_echo "disabling experimental PDF renderer" >&6; }
6556 CONFIG_PDF=""
6559 as_fn_error "bad option --enable-pdf-renderer=$enable_pdf_renderer" "$LINENO" 5
6561 esac
6564 #--------------------------------------------------------------------
6565 # Gui selection
6566 #--------------------------------------------------------------------
6568 CONFIG_X11=""
6569 CONFIG_COCOA=""
6570 CONFIG_GUI="X11"
6572 # Check whether --enable-qt was given.
6573 if test "${enable_qt+set}" = set; then :
6574 enableval=$enable_qt;
6575 else
6576 enable_qt="no"
6580 case "$enable_qt" in
6581 yes)
6583 if test -r "/c/Qt"; then
6584 MOC="`which moc`"
6585 qt_bin="`dirname $MOC`"
6586 qt_home="`dirname $qt_bin`"
6587 qt_version="`basename $qt_home`"
6588 qt_parent="`dirname $qt_home`"
6589 QT_CPPFLAGS="-I$qt_home/mkspecs/macx-g++ -I$qt_home/include/QtCore -I$qt_home/include/QtGui -I$qt_home/include -I/$qt_home/include/ActiveQt -I."
6590 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
6591 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
6592 QT_LIBS="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
6593 if test "$qt_parent" != "/c/Qt"; then
6594 at_cv_qt_build="ko"
6596 else
6601 test x"$TROLL" != x && echo 'ViM rox emacs.'
6604 # Check whether --with-qt was given.
6605 if test "${with_qt+set}" = set; then :
6606 withval=$with_qt; QT_PATH=$withval
6607 else
6608 QT_PATH=
6612 # Find Qt.
6613 if test -d /usr/local/Trolltech; then
6614 # Try to find the latest version.
6615 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
6616 | xargs | sed 's/ */:/g'`
6619 # Find qmake.
6620 if test -z "$QMAKE"; then
6621 for ac_prog in qmake
6623 # Extract the first word of "$ac_prog", so it can be a program name with args.
6624 set dummy $ac_prog; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_path_QMAKE+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 case $QMAKE in
6631 [\\/]* | ?:[\\/]*)
6632 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
6637 for as_dir in $as_dummy
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6647 done
6648 done
6649 IFS=$as_save_IFS
6652 esac
6654 QMAKE=$ac_cv_path_QMAKE
6655 if test -n "$QMAKE"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6657 $as_echo "$QMAKE" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6664 test -n "$QMAKE" && break
6665 done
6666 test -n "$QMAKE" || QMAKE="missing"
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QMAKE to use with Qt" >&5
6670 $as_echo_n "checking for the QMAKE to use with Qt... " >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
6672 $as_echo "$QMAKE" >&6; }
6674 if test x"$QMAKE" = xmissing; then
6675 as_fn_error "Cannot find qmake in your PATH. Try using --with-qt." "$LINENO" 5
6678 # Find moc (Meta Object Compiler).
6679 if test -z "$MOC"; then
6680 for ac_prog in moc
6682 # Extract the first word of "$ac_prog", so it can be a program name with args.
6683 set dummy $ac_prog; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_path_MOC+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 case $MOC in
6690 [\\/]* | ?:[\\/]*)
6691 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6696 for as_dir in $as_dummy
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6706 done
6707 done
6708 IFS=$as_save_IFS
6711 esac
6713 MOC=$ac_cv_path_MOC
6714 if test -n "$MOC"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6716 $as_echo "$MOC" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6723 test -n "$MOC" && break
6724 done
6725 test -n "$MOC" || MOC="missing"
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MOC to use with Qt" >&5
6729 $as_echo_n "checking for the MOC to use with Qt... " >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
6731 $as_echo "$MOC" >&6; }
6733 if test x"$MOC" = xmissing; then
6734 as_fn_error "Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6737 # Find uic (User Interface Compiler).
6738 if test -z "$UIC"; then
6739 for ac_prog in uic
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if test "${ac_cv_path_UIC+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 case $UIC in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6755 for as_dir in $as_dummy
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6765 done
6766 done
6767 IFS=$as_save_IFS
6770 esac
6772 UIC=$ac_cv_path_UIC
6773 if test -n "$UIC"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6775 $as_echo "$UIC" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6782 test -n "$UIC" && break
6783 done
6784 test -n "$UIC" || UIC="missing"
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the UIC to use with Qt" >&5
6788 $as_echo_n "checking for the UIC to use with Qt... " >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
6790 $as_echo "$UIC" >&6; }
6792 if test x"$UIC" = xmissing; then
6793 as_fn_error "Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." "$LINENO" 5
6796 # Find rcc (Qt Resource Compiler).
6797 for ac_prog in rcc
6799 # Extract the first word of "$ac_prog", so it can be a program name with args.
6800 set dummy $ac_prog; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if test "${ac_cv_path_RCC+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 case $RCC in
6807 [\\/]* | ?:[\\/]*)
6808 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
6813 for as_dir in $as_dummy
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6823 done
6824 done
6825 IFS=$as_save_IFS
6828 esac
6830 RCC=$ac_cv_path_RCC
6831 if test -n "$RCC"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
6833 $as_echo "$RCC" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6840 test -n "$RCC" && break
6841 done
6842 test -n "$RCC" || RCC="false"
6844 if test x"$UIC" = xfalse; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
6846 $as_echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
6849 # If we don't know the path to Qt, guess it from the path to qmake.
6850 if test x"$QT_PATH" = x; then
6851 QT_PATH=`dirname "$QMAKE"`
6853 if test x"$QT_PATH" = x; then
6854 as_fn_error "Cannot find the path to your Qt install. Use --with-qt." "$LINENO" 5
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_PATH to use with Qt" >&5
6858 $as_echo_n "checking for the QT_PATH to use with Qt... " >&6; }
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_PATH" >&5
6860 $as_echo "$QT_PATH" >&6; }
6862 # Get ready to build a test-app with Qt.
6864 # Look for a writable temporary directory.
6866 if test x"$TMPDIR" = x || test ! -d "$TMPDIR" || test ! -w "$TMPDIR"; then
6867 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
6869 for i in /tmp /var/tmp; do
6870 if test -d "$i" && test -w "$i"; then
6871 TMPDIR=$i
6872 export TMPDIR
6873 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
6874 break
6876 done
6879 # Kludge!! QMake has a very strange behavior. For instance, if you
6880 # install Qt under your $HOME and run QMake somewhere else under your
6881 # $HOME, it will try to be clever and produce Makefiles with relative
6882 # include paths. In order to avoid this, we will test QMake from a
6883 # temporary directory (usually /tmp). Note that this problem was only
6884 # observed with Qt 4.
6885 my_configure_pwd=`pwd`
6886 my_tmpdir="$TMPDIR/conftest$$.dir"
6887 test -d "$my_tmpdir" || mkdir "$my_tmpdir"
6888 if test -w "$my_tmpdir" && cd "$my_tmpdir"
6889 then
6891 else
6892 as_fn_error "Cannot cd to or write in $my_tmpdir" "$LINENO" 5
6894 cat >conftest.h <<_ASEOF
6895 #include <QObject>
6897 class Foo: public QObject
6899 Q_OBJECT;
6900 public:
6901 Foo();
6902 ~Foo() {}
6903 public slots:
6904 void setValue(int value);
6905 signals:
6906 void valueChanged(int newValue);
6907 private:
6908 int value_;
6910 _ASEOF
6912 cat >conftest.cpp <<_ASEOF
6913 #include "conftest.h"
6914 Foo::Foo()
6915 : value_ (42)
6917 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
6920 void Foo::setValue(int value)
6922 value_ = value;
6925 int main()
6927 Foo f;
6929 _ASEOF
6930 if $QMAKE -project; then :; else
6931 as_fn_error "Calling $QMAKE -project failed." "$LINENO" 5
6934 # Find the .pro file generated by qmake.
6935 pro_file='conftest.dir.pro'
6936 test -f $pro_file || pro_file=`echo *.pro`
6937 if test -f "$pro_file"; then :; else
6938 as_fn_error "Can't find the .pro file generated by Qmake." "$LINENO" 5
6947 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
6948 sed 's/^/| /' "$pro_file" >&5
6950 additional_qmake_flags=""
6951 case $host_os in
6952 darwin*)
6953 additional_qmake_flags="-spec macx-g++"
6955 esac
6957 if $QMAKE ${additional_qmake_flags} ; then :; else
6958 as_fn_error "Calling $QMAKE failed." "$LINENO" 5
6960 # Try to compile a simple Qt app.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a simple Qt app" >&5
6962 $as_echo_n "checking whether we can build a simple Qt app... " >&6; }
6963 if test "${at_cv_qt_build+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 at_cv_qt_build=ko
6967 : ${MAKE=make}
6969 if $MAKE >&5 2>&1; then
6970 at_cv_qt_build='ok, looks like Qt 4'
6971 else
6972 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
6973 instead" >&5
6974 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
6975 if $MAKE >&5 2>&1; then
6976 at_cv_qt_build='ok, looks like Qt 3'
6977 else
6978 # Sometimes (such as on Debian) build will fail because Qt hasn't been
6979 # installed in debug mode and qmake tries (by default) to build apps in
6980 # debug mode => Try again in release mode.
6981 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
6984 # Tweak the value of CONFIG in the .pro file for +release.
6986 qt_conf=''
6987 for at_mod in +release; do
6988 at_mod=`echo "$at_mod" | sed 's/^-//; tough
6989 s/^+//; beef
6990 :ough
6991 s/^/CONFIG -= /;n
6992 :eef
6993 s/^/CONFIG += /'`
6994 qt_conf="$qt_conf
6995 $at_mod"
6996 done
6997 echo "$qt_conf" | sed 1d >>"$pro_file"
7000 sed 's/<qobject.h>/<QObject>/' conftest.h > tmp.h && mv tmp.h conftest.h
7001 if $MAKE >&5 2>&1; then
7002 at_cv_qt_build='ok, looks like Qt 4, release mode forced'
7003 else
7004 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
7005 instead" >&5
7006 sed 's/<QObject>/<qobject.h>/' conftest.h > tmp.h && mv tmp.h conftest.h
7007 if $MAKE >&5 2>&1; then
7008 at_cv_qt_build='ok, looks like Qt 3, release mode forced'
7009 else
7010 at_cv_qt_build=ko
7011 echo "$as_me:$LINENO: failed program was:" >&5
7012 sed 's/^/| /' conftest.h >&5
7013 echo "$as_me:$LINENO: failed program was:" >&5
7014 sed 's/^/| /' conftest.cpp >&5
7015 fi # if make with Qt3-style #include and release mode forced.
7016 fi # if make with Qt4-style #include and release mode forced.
7017 fi # if make with Qt3-style #include.
7018 fi # if make with Qt4-style #include.
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_qt_build" >&5
7022 $as_echo "$at_cv_qt_build" >&6; }
7023 if test x"$at_cv_qt_build" = xko; then
7024 as_fn_error "Cannot build a test Qt program" "$LINENO" 5
7026 QT_VERSION_MAJOR=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
7029 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
7030 # It starts by removing the beginning of the line, removing references to
7031 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
7032 # all variable uses by QT_.
7033 qt_sed_filter='s///;
7034 s/$(SUBLIBS)//g;
7035 s/^ *//;
7036 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
7038 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
7039 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
7040 # Makefile.Release. The reason is that the main difference is that release
7041 # uses -Os and debug -g. We can override -Os by passing another -O but we
7042 # usually don't override -g.
7043 if test -f Makefile.Release; then
7044 at_mfile='Makefile.Release'
7045 else
7046 at_mfile='Makefile'
7048 if test -f $at_mfile; then :; else
7049 cd "$my_configure_pwd"
7050 as_fn_error "Cannot find the Makefile generated by qmake." "$LINENO" 5
7053 # Find the DEFINES of Qt (should have been named CPPFLAGS).
7054 if test -z "$QT_DEFINES"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the DEFINES to use with Qt" >&5
7056 $as_echo_n "checking for the DEFINES to use with Qt... " >&6; }
7057 if test "${at_cv_env_QT_DEFINES+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 at_cv_env_QT_DEFINES=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_DEFINES" >&5
7063 $as_echo "$at_cv_env_QT_DEFINES" >&6; }
7064 QT_DEFINES="$at_cv_env_QT_DEFINES"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_DEFINES to use with Qt" >&5
7068 $as_echo_n "checking for the QT_DEFINES to use with Qt... " >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_DEFINES" >&5
7070 $as_echo "$QT_DEFINES" >&6; }
7072 # Find the CFLAGS of Qt (We can use Qt in C?!)
7073 if test -z "$QT_CFLAGS"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CFLAGS to use with Qt" >&5
7075 $as_echo_n "checking for the CFLAGS to use with Qt... " >&6; }
7076 if test "${at_cv_env_QT_CFLAGS+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 at_cv_env_QT_CFLAGS=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CFLAGS" >&5
7082 $as_echo "$at_cv_env_QT_CFLAGS" >&6; }
7083 QT_CFLAGS="$at_cv_env_QT_CFLAGS"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CFLAGS to use with Qt" >&5
7087 $as_echo_n "checking for the QT_CFLAGS to use with Qt... " >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
7089 $as_echo "$QT_CFLAGS" >&6; }
7091 # Find the CXXFLAGS of Qt.
7092 if test -z "$QT_CXXFLAGS"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the CXXFLAGS to use with Qt" >&5
7094 $as_echo_n "checking for the CXXFLAGS to use with Qt... " >&6; }
7095 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 at_cv_env_QT_CXXFLAGS=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_CXXFLAGS" >&5
7101 $as_echo "$at_cv_env_QT_CXXFLAGS" >&6; }
7102 QT_CXXFLAGS="$at_cv_env_QT_CXXFLAGS"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_CXXFLAGS to use with Qt" >&5
7106 $as_echo_n "checking for the QT_CXXFLAGS to use with Qt... " >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5
7108 $as_echo "$QT_CXXFLAGS" >&6; }
7110 # Find the INCPATH of Qt.
7111 if test -z "$QT_INCPATH"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the INCPATH to use with Qt" >&5
7113 $as_echo_n "checking for the INCPATH to use with Qt... " >&6; }
7114 if test "${at_cv_env_QT_INCPATH+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 at_cv_env_QT_INCPATH=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_INCPATH" >&5
7120 $as_echo "$at_cv_env_QT_INCPATH" >&6; }
7121 QT_INCPATH="$at_cv_env_QT_INCPATH"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_INCPATH to use with Qt" >&5
7125 $as_echo_n "checking for the QT_INCPATH to use with Qt... " >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_INCPATH" >&5
7127 $as_echo "$QT_INCPATH" >&6; }
7129 QT_CPPFLAGS="$QT_DEFINES $QT_INCPATH"
7132 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
7133 if test -z "$QT_LDFLAGS"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LDFLAGS to use with Qt" >&5
7135 $as_echo_n "checking for the LDFLAGS to use with Qt... " >&6; }
7136 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 at_cv_env_QT_LDFLAGS=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LDFLAGS" >&5
7142 $as_echo "$at_cv_env_QT_LDFLAGS" >&6; }
7143 QT_LDFLAGS="$at_cv_env_QT_LDFLAGS"
7146 QT_LFLAGS=$QT_LDFLAGS
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LDFLAGS to use with Qt" >&5
7149 $as_echo_n "checking for the QT_LDFLAGS to use with Qt... " >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDFLAGS" >&5
7151 $as_echo "$QT_LDFLAGS" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host operating system is Darwin" >&5
7154 $as_echo_n "checking whether host operating system is Darwin... " >&6; }
7155 at_darwin="no"
7156 case $host_os in
7157 darwin*)
7158 at_darwin="yes"
7160 esac
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_darwin" >&5
7162 $as_echo "$at_darwin" >&6; }
7164 # Find the LIBS of Qt.
7165 if test -z "$QT_LIBS"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the LIBS to use with Qt" >&5
7167 $as_echo_n "checking for the LIBS to use with Qt... " >&6; }
7168 if test "${at_cv_env_QT_LIBS+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 at_cv_env_QT_LIBS=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
7172 if test x$at_darwin = xyes; then
7173 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
7174 # -F properly. The "bug" has been fixed on 22 October 2006
7175 # by Peter O'Gorman but we provide backward compatibility here.
7176 at_cv_env_QT_LIBS=`echo "$at_cv_env_QT_LIBS" \
7177 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $at_cv_env_QT_LIBS" >&5
7182 $as_echo "$at_cv_env_QT_LIBS" >&6; }
7183 QT_LIBS="$at_cv_env_QT_LIBS"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QT_LIBS to use with Qt" >&5
7187 $as_echo_n "checking for the QT_LIBS to use with Qt... " >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
7189 $as_echo "$QT_LIBS" >&6; }
7191 cd "$my_configure_pwd" || echo 'WTF!'
7192 rm -rf "$my_tmpdir"
7196 if test x"$at_cv_qt_build" = xko; then
7197 as_fn_error "cannot find Qt!" "$LINENO" 5
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Qt port" >&5
7200 $as_echo "enabling experimental Qt port" >&6; }
7201 CONFIG_GUI="QT"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Qt port" >&5
7206 $as_echo "disabling experimental Qt port" >&6; }
7209 as_fn_error "bad option --enable-qt=$enable_qt" "$LINENO" 5
7211 esac
7213 # Check whether --enable-cocoa was given.
7214 if test "${enable_cocoa+set}" = set; then :
7215 enableval=$enable_cocoa;
7216 else
7217 enable_cocoa="no"
7220 case "$enable_cocoa" in
7221 yes)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling experimental Cocoa port" >&5
7223 $as_echo "enabling experimental Cocoa port" >&6; }
7224 COCOA_CFLAGS=""
7225 COCOA_LDFLAGS="-framework Cocoa"
7226 CONFIG_GUI="COCOA"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling experimental Cocoa port" >&5
7230 $as_echo "disabling experimental Cocoa port" >&6; }
7233 as_fn_error "bad option --enable-cocoa=$enable_cocoa" "$LINENO" 5
7235 esac
7237 case "$CONFIG_GUI" in
7238 X11)
7239 CONFIG_X11="X11 Widkit"
7240 if test "x${CONFIG_GS}" != "xGhostscript"; then
7241 CONFIG_X11="$CONFIG_X11 Ghostscript"
7243 CONFIG_GUI_DEFINE="X11TEXMACS"
7244 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
7246 COCOA)
7247 CONFIG_COCOA="Cocoa"
7248 CONFIG_GUI_DEFINE="AQUATEXMACS"
7249 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
7252 CONFIG_QT="Qt"
7253 CONFIG_GUI_DEFINE="QTTEXMACS"
7254 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
7256 esac
7271 #--------------------------------------------------------------------
7272 # Debugging options
7273 #--------------------------------------------------------------------
7275 STD_DEBUG_FLAGS="-fno-rtti -fno-exceptions"
7276 if test "$enable_cocoa" = "yes"; then
7277 STD_DEBUG_FLAGS="-fno-exceptions"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports $STD_DEBUG_FLAGS" >&5
7281 $as_echo_n "checking if compiler supports $STD_DEBUG_FLAGS... " >&6; }
7282 CXXFLAGS="$STD_DEBUG_FLAGS"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7286 int some_variable = 0;
7289 main ()
7294 return 0;
7296 _ACEOF
7297 if ac_fn_cxx_try_compile "$LINENO"; then :
7299 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7303 else
7305 CONFIG_CXXDIALECT=""
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 CXXFLAGS=""
7314 # Check whether --enable-debug was given.
7315 if test "${enable_debug+set}" = set; then :
7316 enableval=$enable_debug;
7317 else
7318 enable_debug="no"
7322 if test "$enable_debug" = "yes"; then
7323 if test "$GXX" = "yes"; then
7324 enable_debug="-ggdb"
7325 else
7326 enable_debug="-g3"
7330 if test "$enable_debug" = "no"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling debugging" >&5
7332 $as_echo "disabling debugging" >&6; }
7333 CONFIG_STRIP="strip"
7334 CONFIG_CXXDEBUG=""
7335 optimize_default="yes"
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debugging, $enable_debug" >&5
7338 $as_echo "enabling debugging, $enable_debug" >&6; }
7339 CONFIG_STRIP="true"
7340 CONFIG_CXXDEBUG="$enable_debug"
7341 optimize_default="no"
7344 # Check whether --enable-assert was given.
7345 if test "${enable_assert+set}" = set; then :
7346 enableval=$enable_assert;
7347 else
7348 enable_assert="yes"
7352 if test "$enable_assert" = "no"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling assertion checking" >&5
7354 $as_echo "disabling assertion checking" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling assertion checking" >&5
7357 $as_echo "enabling assertion checking" >&6; }
7359 $as_echo "#define DEBUG_ASSERT 1" >>confdefs.h
7363 #--------------------------------------------------------------------
7364 # Warning options
7365 #--------------------------------------------------------------------
7367 case "$GXX_VERSION" in
7368 none)
7369 CONFIG_CXXWARNING="";
7372 CONFIG_CXXWARNING="-Wall -Wno-return-type"
7374 esac
7376 # Check whether --enable-warnings was given.
7377 if test "${enable_warnings+set}" = set; then :
7378 enableval=$enable_warnings;
7379 else
7380 enable_warnings="yes"
7383 case "$enable_warnings" in
7384 yes)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7386 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7388 CONFIG_CXXWARNING=""
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling warning flags" >&5
7390 $as_echo "disabling warning flags" >&6; } ;;
7392 CONFIG_CXXWARNING="$enable_warnings"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling warning flags $CONFIG_CXXWARNING" >&5
7394 $as_echo "enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
7395 esac
7397 #--------------------------------------------------------------------
7398 # Optimization options
7399 #--------------------------------------------------------------------
7401 if test "$optimize_default" = "yes"; then
7402 case "$GXX_VERSION" in
7403 3.3.3 | 3.3.4 | 4.*)
7405 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
7406 case "${host}" in
7407 i*86-*-linux-gnu* | i*86-*-freebsd*)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7409 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7410 optimize_default="no-inline"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using g++ 3.*, optimize without inline by default" >&5
7414 $as_echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
7415 optimize_default="no-inline"
7417 esac
7419 esac
7422 # Check whether --enable-optimize was given.
7423 if test "${enable_optimize+set}" = set; then :
7424 enableval=$enable_optimize;
7425 else
7426 enable_optimize="$optimize_default"
7430 case "$enable_optimize" in
7431 yes)
7432 # keep optimization options
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7434 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7435 no-inline)
7436 optimize_no_inline="-fno-default-inline -fno-inline"
7437 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
7439 $as_echo "enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
7441 CONFIG_CXXOPTIMIZE=""
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabling optimizations" >&5
7443 $as_echo "disabling optimizations" >&6; } ;;
7445 CONFIG_CXXOPTIMIZE="$enable_optimize"
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: customizing optimizations, $enable_optimize" >&5
7447 $as_echo "customizing optimizations, $enable_optimize" >&6; } ;;
7448 esac
7450 #--------------------------------------------------------------------
7451 # Substitute TeXmacs specific configuration parameters
7452 #--------------------------------------------------------------------
7478 #--------------------------------------------------------------------
7479 # Default paths for installation
7480 #--------------------------------------------------------------------
7482 if test "$prefix" = ""; then
7483 prefix=/usr/local
7485 if test "$prefix" = "NONE"; then
7486 prefix=/usr/local
7488 if test "$exec_prefix" = ""; then
7489 exec_prefix='${prefix}'
7491 if test "$exec_prefix" = "NONE"; then
7492 exec_prefix='${prefix}'
7494 if test "$exec_prefix" = '${prefix}'; then
7495 exec_prefix='${prefix}'
7497 if test "$includedir" = ""; then
7498 includedir='${prefix}/include'
7500 if test "$includedir" = "NONE"; then
7501 includedir='${prefix}/include'
7503 if test "$includedir" = '${prefix}/include'; then
7504 includedir='${prefix}/include'
7506 if test "$libdir" = ""; then
7507 libdir='${exec_prefix}/lib'
7509 if test "$libdir" = "NONE"; then
7510 libdir='${exec_prefix}/lib'
7512 if test "$libdir" = '${exec_prefix}/lib'; then
7513 libdir='${exec_prefix}/lib'
7515 if test "$bindir" = ""; then
7516 bindir='${exec_prefix}/bin'
7518 if test "$bindir" = "NONE"; then
7519 bindir=${exec_prefix}/bin
7521 if test "$bindir" = '${exec_prefix}/bin'; then
7522 bindir='${exec_prefix}/bin'
7524 if test "$datarootdir" = ""; then
7525 datarootdir='${prefix}/share'
7527 if test "$datarootdir" = "NONE"; then
7528 datarootdir='${prefix}/share'
7530 if test "$datarootdir" = '${prefix}/share'; then
7531 datarootdir='${prefix}/share'
7533 if test "$datadir" = ""; then
7534 datadir='${prefix}/share'
7536 if test "$datadir" = "NONE"; then
7537 datadir='${prefix}/share'
7539 if test "$datadir" = '${prefix}/share'; then
7540 datadir='${prefix}/share'
7542 if test "$mandir" = ""; then
7543 mandir='${datarootdir}/man'
7545 if test "$mandir" = "NONE"; then
7546 mandir='${datarootdir}/man'
7548 if test "$mandir" = '${datarootdir}/man'; then
7549 mandir='${datarootdir}/man'
7551 if test "$libexecdir" = ""; then
7552 libexecdir='${exec_prefix}/libexec'
7554 if test "$libexecdir" = "NONE"; then
7555 libexecdir='${exec_prefix}/libexec'
7557 if test "$libexecdir" = '${exec_prefix}/libexec'; then
7558 libexecdir='${exec_prefix}/libexec'
7561 curdir="`pwd`"
7562 tmorig=${curdir}
7563 tmdir=${PACKAGE}
7564 tmsrc=${curdir}/${tmdir}
7565 tmbin=${libexecdir}/${tmdir}
7566 tmdata=${datadir}/${tmdir}
7573 if test "$DEVEL_RELEASE" = "1"; then
7574 tmtgz=${PACKAGE}-${DEVEL_VERSION}
7575 else
7576 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
7578 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
7579 if test "$STABLE_RELEASE" = "1"; then
7580 tmstgz=${PACKAGE}-${STABLE_VERSION}
7581 else
7582 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
7584 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
7585 if test "$WINDOWS_RELEASE" = "1"; then
7586 tmwin=wintexmacs-${WINDOWS_VERSION}
7587 else
7588 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
7596 #--------------------------------------------------------------------
7597 # Done
7598 #--------------------------------------------------------------------
7600 ac_config_files="$ac_config_files Makefile:Makefile.in src/makefile:src/makefile.in src/System/tm_configure.hpp:src/System/tm_configure.in misc/admin/admin.makefile:misc/admin/admin.makefile.in misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in misc/man/texmacs.1:misc/man/texmacs.1.in misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in misc/scripts/fig2ps:misc/scripts/fig2ps.in misc/scripts/texmacs:misc/scripts/texmacs.in TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in"
7602 cat >confcache <<\_ACEOF
7603 # This file is a shell script that caches the results of configure
7604 # tests run on this system so they can be shared between configure
7605 # scripts and configure runs, see configure's option --config-cache.
7606 # It is not useful on other systems. If it contains results you don't
7607 # want to keep, you may remove or edit it.
7609 # config.status only pays attention to the cache file if you give it
7610 # the --recheck option to rerun configure.
7612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7614 # following values.
7616 _ACEOF
7618 # The following way of writing the cache mishandles newlines in values,
7619 # but we know of no workaround that is simple, portable, and efficient.
7620 # So, we kill variables containing newlines.
7621 # Ultrix sh set writes to stderr and can't be redirected directly,
7622 # and sets the high bit in the cache file unless we assign to the vars.
7624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7625 eval ac_val=\$$ac_var
7626 case $ac_val in #(
7627 *${as_nl}*)
7628 case $ac_var in #(
7629 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7630 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7631 esac
7632 case $ac_var in #(
7633 _ | IFS | as_nl) ;; #(
7634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7635 *) { eval $ac_var=; unset $ac_var;} ;;
7636 esac ;;
7637 esac
7638 done
7640 (set) 2>&1 |
7641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7642 *${as_nl}ac_space=\ *)
7643 # `set' does not quote correctly, so add quotes: double-quote
7644 # substitution turns \\\\ into \\, and sed turns \\ into \.
7645 sed -n \
7646 "s/'/'\\\\''/g;
7647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7648 ;; #(
7650 # `set' quotes correctly as required by POSIX, so do not add quotes.
7651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7653 esac |
7654 sort
7656 sed '
7657 /^ac_cv_env_/b end
7658 t clear
7659 :clear
7660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7661 t end
7662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7663 :end' >>confcache
7664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7665 if test -w "$cache_file"; then
7666 test "x$cache_file" != "x/dev/null" &&
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7668 $as_echo "$as_me: updating cache $cache_file" >&6;}
7669 cat confcache >$cache_file
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7675 rm -f confcache
7677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7678 # Let make expand exec_prefix.
7679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7681 DEFS=-DHAVE_CONFIG_H
7683 ac_libobjs=
7684 ac_ltlibobjs=
7685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7686 # 1. Remove the extension, and $U if already installed.
7687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7688 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7690 # will be set to the directory where LIBOBJS objects are built.
7691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7693 done
7694 LIBOBJS=$ac_libobjs
7696 LTLIBOBJS=$ac_ltlibobjs
7700 : ${CONFIG_STATUS=./config.status}
7701 ac_write_fail=0
7702 ac_clean_files_save=$ac_clean_files
7703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7706 as_write_fail=0
7707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7708 #! $SHELL
7709 # Generated by $as_me.
7710 # Run this file to recreate the current configuration.
7711 # Compiler output produced by configure, useful for debugging
7712 # configure, is in config.log if it exists.
7714 debug=false
7715 ac_cs_recheck=false
7716 ac_cs_silent=false
7718 SHELL=\${CONFIG_SHELL-$SHELL}
7719 export SHELL
7720 _ASEOF
7721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7722 ## -------------------- ##
7723 ## M4sh Initialization. ##
7724 ## -------------------- ##
7726 # Be more Bourne compatible
7727 DUALCASE=1; export DUALCASE # for MKS sh
7728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7729 emulate sh
7730 NULLCMD=:
7731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7732 # is contrary to our usage. Disable this feature.
7733 alias -g '${1+"$@"}'='"$@"'
7734 setopt NO_GLOB_SUBST
7735 else
7736 case `(set -o) 2>/dev/null` in #(
7737 *posix*) :
7738 set -o posix ;; #(
7739 *) :
7741 esac
7745 as_nl='
7747 export as_nl
7748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7752 # Prefer a ksh shell builtin over an external printf program on Solaris,
7753 # but without wasting forks for bash or zsh.
7754 if test -z "$BASH_VERSION$ZSH_VERSION" \
7755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7756 as_echo='print -r --'
7757 as_echo_n='print -rn --'
7758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7759 as_echo='printf %s\n'
7760 as_echo_n='printf %s'
7761 else
7762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7764 as_echo_n='/usr/ucb/echo -n'
7765 else
7766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7767 as_echo_n_body='eval
7768 arg=$1;
7769 case $arg in #(
7770 *"$as_nl"*)
7771 expr "X$arg" : "X\\(.*\\)$as_nl";
7772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7773 esac;
7774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7776 export as_echo_n_body
7777 as_echo_n='sh -c $as_echo_n_body as_echo'
7779 export as_echo_body
7780 as_echo='sh -c $as_echo_body as_echo'
7783 # The user is always right.
7784 if test "${PATH_SEPARATOR+set}" != set; then
7785 PATH_SEPARATOR=:
7786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7788 PATH_SEPARATOR=';'
7793 # IFS
7794 # We need space, tab and new line, in precisely that order. Quoting is
7795 # there to prevent editors from complaining about space-tab.
7796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7797 # splitting by setting IFS to empty value.)
7798 IFS=" "" $as_nl"
7800 # Find who we are. Look in the path if we contain no directory separator.
7801 case $0 in #((
7802 *[\\/]* ) as_myself=$0 ;;
7803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7809 done
7810 IFS=$as_save_IFS
7813 esac
7814 # We did not find ourselves, most probably we were run as `sh COMMAND'
7815 # in which case we are not to be found in the path.
7816 if test "x$as_myself" = x; then
7817 as_myself=$0
7819 if test ! -f "$as_myself"; then
7820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7821 exit 1
7824 # Unset variables that we do not need and which cause bugs (e.g. in
7825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7826 # suppresses any "Segmentation fault" message there. '((' could
7827 # trigger a bug in pdksh 5.2.14.
7828 for as_var in BASH_ENV ENV MAIL MAILPATH
7829 do eval test x\${$as_var+set} = xset \
7830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7831 done
7832 PS1='$ '
7833 PS2='> '
7834 PS4='+ '
7836 # NLS nuisances.
7837 LC_ALL=C
7838 export LC_ALL
7839 LANGUAGE=C
7840 export LANGUAGE
7842 # CDPATH.
7843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7846 # as_fn_error ERROR [LINENO LOG_FD]
7847 # ---------------------------------
7848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7850 # script with status $?, using 1 if that was 0.
7851 as_fn_error ()
7853 as_status=$?; test $as_status -eq 0 && as_status=1
7854 if test "$3"; then
7855 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7858 $as_echo "$as_me: error: $1" >&2
7859 as_fn_exit $as_status
7860 } # as_fn_error
7863 # as_fn_set_status STATUS
7864 # -----------------------
7865 # Set $? to STATUS, without forking.
7866 as_fn_set_status ()
7868 return $1
7869 } # as_fn_set_status
7871 # as_fn_exit STATUS
7872 # -----------------
7873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7874 as_fn_exit ()
7876 set +e
7877 as_fn_set_status $1
7878 exit $1
7879 } # as_fn_exit
7881 # as_fn_unset VAR
7882 # ---------------
7883 # Portably unset VAR.
7884 as_fn_unset ()
7886 { eval $1=; unset $1;}
7888 as_unset=as_fn_unset
7889 # as_fn_append VAR VALUE
7890 # ----------------------
7891 # Append the text in VALUE to the end of the definition contained in VAR. Take
7892 # advantage of any shell optimizations that allow amortized linear growth over
7893 # repeated appends, instead of the typical quadratic growth present in naive
7894 # implementations.
7895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7896 eval 'as_fn_append ()
7898 eval $1+=\$2
7900 else
7901 as_fn_append ()
7903 eval $1=\$$1\$2
7905 fi # as_fn_append
7907 # as_fn_arith ARG...
7908 # ------------------
7909 # Perform arithmetic evaluation on the ARGs, and store the result in the
7910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7911 # must be portable across $(()) and expr.
7912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7913 eval 'as_fn_arith ()
7915 as_val=$(( $* ))
7917 else
7918 as_fn_arith ()
7920 as_val=`expr "$@" || test $? -eq 1`
7922 fi # as_fn_arith
7925 if expr a : '\(a\)' >/dev/null 2>&1 &&
7926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7927 as_expr=expr
7928 else
7929 as_expr=false
7932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7933 as_basename=basename
7934 else
7935 as_basename=false
7938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7939 as_dirname=dirname
7940 else
7941 as_dirname=false
7944 as_me=`$as_basename -- "$0" ||
7945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7946 X"$0" : 'X\(//\)$' \| \
7947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7948 $as_echo X/"$0" |
7949 sed '/^.*\/\([^/][^/]*\)\/*$/{
7950 s//\1/
7953 /^X\/\(\/\/\)$/{
7954 s//\1/
7957 /^X\/\(\/\).*/{
7958 s//\1/
7961 s/.*/./; q'`
7963 # Avoid depending upon Character Ranges.
7964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7967 as_cr_digits='0123456789'
7968 as_cr_alnum=$as_cr_Letters$as_cr_digits
7970 ECHO_C= ECHO_N= ECHO_T=
7971 case `echo -n x` in #(((((
7972 -n*)
7973 case `echo 'xy\c'` in
7974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7975 xy) ECHO_C='\c';;
7976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7977 ECHO_T=' ';;
7978 esac;;
7980 ECHO_N='-n';;
7981 esac
7983 rm -f conf$$ conf$$.exe conf$$.file
7984 if test -d conf$$.dir; then
7985 rm -f conf$$.dir/conf$$.file
7986 else
7987 rm -f conf$$.dir
7988 mkdir conf$$.dir 2>/dev/null
7990 if (echo >conf$$.file) 2>/dev/null; then
7991 if ln -s conf$$.file conf$$ 2>/dev/null; then
7992 as_ln_s='ln -s'
7993 # ... but there are two gotchas:
7994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7996 # In both cases, we have to default to `cp -p'.
7997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7998 as_ln_s='cp -p'
7999 elif ln conf$$.file conf$$ 2>/dev/null; then
8000 as_ln_s=ln
8001 else
8002 as_ln_s='cp -p'
8004 else
8005 as_ln_s='cp -p'
8007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8008 rmdir conf$$.dir 2>/dev/null
8011 # as_fn_mkdir_p
8012 # -------------
8013 # Create "$as_dir" as a directory, including parents if necessary.
8014 as_fn_mkdir_p ()
8017 case $as_dir in #(
8018 -*) as_dir=./$as_dir;;
8019 esac
8020 test -d "$as_dir" || eval $as_mkdir_p || {
8021 as_dirs=
8022 while :; do
8023 case $as_dir in #(
8024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8025 *) as_qdir=$as_dir;;
8026 esac
8027 as_dirs="'$as_qdir' $as_dirs"
8028 as_dir=`$as_dirname -- "$as_dir" ||
8029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8030 X"$as_dir" : 'X\(//\)[^/]' \| \
8031 X"$as_dir" : 'X\(//\)$' \| \
8032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8033 $as_echo X"$as_dir" |
8034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8035 s//\1/
8038 /^X\(\/\/\)[^/].*/{
8039 s//\1/
8042 /^X\(\/\/\)$/{
8043 s//\1/
8046 /^X\(\/\).*/{
8047 s//\1/
8050 s/.*/./; q'`
8051 test -d "$as_dir" && break
8052 done
8053 test -z "$as_dirs" || eval "mkdir $as_dirs"
8054 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8057 } # as_fn_mkdir_p
8058 if mkdir -p . 2>/dev/null; then
8059 as_mkdir_p='mkdir -p "$as_dir"'
8060 else
8061 test -d ./-p && rmdir ./-p
8062 as_mkdir_p=false
8065 if test -x / >/dev/null 2>&1; then
8066 as_test_x='test -x'
8067 else
8068 if ls -dL / >/dev/null 2>&1; then
8069 as_ls_L_option=L
8070 else
8071 as_ls_L_option=
8073 as_test_x='
8074 eval sh -c '\''
8075 if test -d "$1"; then
8076 test -d "$1/.";
8077 else
8078 case $1 in #(
8079 -*)set "./$1";;
8080 esac;
8081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8082 ???[sx]*):;;*)false;;esac;fi
8083 '\'' sh
8086 as_executable_p=$as_test_x
8088 # Sed expression to map a string onto a valid CPP name.
8089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8091 # Sed expression to map a string onto a valid variable name.
8092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8095 exec 6>&1
8096 ## ----------------------------------- ##
8097 ## Main body of $CONFIG_STATUS script. ##
8098 ## ----------------------------------- ##
8099 _ASEOF
8100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8103 # Save the log message, to keep $0 and so on meaningful, and to
8104 # report actual input values of CONFIG_FILES etc. instead of their
8105 # values after options handling.
8106 ac_log="
8107 This file was extended by $as_me, which was
8108 generated by GNU Autoconf 2.64. Invocation command line was
8110 CONFIG_FILES = $CONFIG_FILES
8111 CONFIG_HEADERS = $CONFIG_HEADERS
8112 CONFIG_LINKS = $CONFIG_LINKS
8113 CONFIG_COMMANDS = $CONFIG_COMMANDS
8114 $ $0 $@
8116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8119 _ACEOF
8121 case $ac_config_files in *"
8122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8123 esac
8125 case $ac_config_headers in *"
8126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8127 esac
8130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8131 # Files that config.status was made for.
8132 config_files="$ac_config_files"
8133 config_headers="$ac_config_headers"
8135 _ACEOF
8137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8138 ac_cs_usage="\
8139 \`$as_me' instantiates files and other configuration actions
8140 from templates according to the current configuration. Unless the files
8141 and actions are specified as TAGs, all are instantiated by default.
8143 Usage: $0 [OPTION]... [TAG]...
8145 -h, --help print this help, then exit
8146 -V, --version print version number and configuration settings, then exit
8147 -q, --quiet, --silent
8148 do not print progress messages
8149 -d, --debug don't remove temporary files
8150 --recheck update $as_me by reconfiguring in the same conditions
8151 --file=FILE[:TEMPLATE]
8152 instantiate the configuration file FILE
8153 --header=FILE[:TEMPLATE]
8154 instantiate the configuration header FILE
8156 Configuration files:
8157 $config_files
8159 Configuration headers:
8160 $config_headers
8162 Report bugs to the package provider."
8164 _ACEOF
8165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8166 ac_cs_version="\\
8167 config.status
8168 configured by $0, generated by GNU Autoconf 2.64,
8169 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8171 Copyright (C) 2009 Free Software Foundation, Inc.
8172 This config.status script is free software; the Free Software Foundation
8173 gives unlimited permission to copy, distribute and modify it."
8175 ac_pwd='$ac_pwd'
8176 srcdir='$srcdir'
8177 test -n "\$AWK" || AWK=awk
8178 _ACEOF
8180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8181 # The default lists apply if the user does not specify any file.
8182 ac_need_defaults=:
8183 while test $# != 0
8185 case $1 in
8186 --*=*)
8187 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8188 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8189 ac_shift=:
8192 ac_option=$1
8193 ac_optarg=$2
8194 ac_shift=shift
8196 esac
8198 case $ac_option in
8199 # Handling of the options.
8200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8201 ac_cs_recheck=: ;;
8202 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8203 $as_echo "$ac_cs_version"; exit ;;
8204 --debug | --debu | --deb | --de | --d | -d )
8205 debug=: ;;
8206 --file | --fil | --fi | --f )
8207 $ac_shift
8208 case $ac_optarg in
8209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8210 esac
8211 as_fn_append CONFIG_FILES " '$ac_optarg'"
8212 ac_need_defaults=false;;
8213 --header | --heade | --head | --hea )
8214 $ac_shift
8215 case $ac_optarg in
8216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8217 esac
8218 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8219 ac_need_defaults=false;;
8220 --he | --h)
8221 # Conflict between --help and --header
8222 as_fn_error "ambiguous option: \`$1'
8223 Try \`$0 --help' for more information.";;
8224 --help | --hel | -h )
8225 $as_echo "$ac_cs_usage"; exit ;;
8226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8228 ac_cs_silent=: ;;
8230 # This is an error.
8231 -*) as_fn_error "unrecognized option: \`$1'
8232 Try \`$0 --help' for more information." ;;
8234 *) as_fn_append ac_config_targets " $1"
8235 ac_need_defaults=false ;;
8237 esac
8238 shift
8239 done
8241 ac_configure_extra_args=
8243 if $ac_cs_silent; then
8244 exec 6>/dev/null
8245 ac_configure_extra_args="$ac_configure_extra_args --silent"
8248 _ACEOF
8249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8250 if \$ac_cs_recheck; then
8251 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8252 shift
8253 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8254 CONFIG_SHELL='$SHELL'
8255 export CONFIG_SHELL
8256 exec "\$@"
8259 _ACEOF
8260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8261 exec 5>>config.log
8263 echo
8264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8265 ## Running $as_me. ##
8266 _ASBOX
8267 $as_echo "$ac_log"
8268 } >&5
8270 _ACEOF
8271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8272 _ACEOF
8274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8276 # Handling of arguments.
8277 for ac_config_target in $ac_config_targets
8279 case $ac_config_target in
8280 "src/System/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
8281 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
8282 "src/makefile") CONFIG_FILES="$CONFIG_FILES src/makefile:src/makefile.in" ;;
8283 "src/System/tm_configure.hpp") CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
8284 "misc/admin/admin.makefile") CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
8285 "misc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
8286 "misc/man/texmacs.1") CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
8287 "misc/rpm/TeXmacs.spec") CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
8288 "misc/scripts/fig2ps") CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
8289 "misc/scripts/texmacs") CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
8290 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
8291 "misc/bundle/Base.xcconfig") CONFIG_FILES="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
8293 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8294 esac
8295 done
8298 # If the user did not use the arguments to specify the items to instantiate,
8299 # then the envvar interface is used. Set only those that are not.
8300 # We use the long form for the default assignment because of an extremely
8301 # bizarre bug on SunOS 4.1.3.
8302 if $ac_need_defaults; then
8303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8307 # Have a temporary directory for convenience. Make it in the build tree
8308 # simply because there is no reason against having it here, and in addition,
8309 # creating and moving files from /tmp can sometimes cause problems.
8310 # Hook for its removal unless debugging.
8311 # Note that there is a small window in which the directory will not be cleaned:
8312 # after its creation but before its name has been assigned to `$tmp'.
8313 $debug ||
8315 tmp=
8316 trap 'exit_status=$?
8317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8319 trap 'as_fn_exit 1' 1 2 13 15
8321 # Create a (secure) tmp directory for tmp files.
8324 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8325 test -n "$tmp" && test -d "$tmp"
8326 } ||
8328 tmp=./conf$$-$RANDOM
8329 (umask 077 && mkdir "$tmp")
8330 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8332 # Set up the scripts for CONFIG_FILES section.
8333 # No need to generate them if there are no CONFIG_FILES.
8334 # This happens for instance with `./config.status config.h'.
8335 if test -n "$CONFIG_FILES"; then
8338 ac_cr=`echo X | tr X '\015'`
8339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8340 # But we know of no other shell where ac_cr would be empty at this
8341 # point, so we can use a bashism as a fallback.
8342 if test "x$ac_cr" = x; then
8343 eval ac_cr=\$\'\\r\'
8345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8347 ac_cs_awk_cr='\r'
8348 else
8349 ac_cs_awk_cr=$ac_cr
8352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8353 _ACEOF
8357 echo "cat >conf$$subs.awk <<_ACEOF" &&
8358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8359 echo "_ACEOF"
8360 } >conf$$subs.sh ||
8361 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8363 ac_delim='%!_!# '
8364 for ac_last_try in false false false false false :; do
8365 . ./conf$$subs.sh ||
8366 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8369 if test $ac_delim_n = $ac_delim_num; then
8370 break
8371 elif $ac_last_try; then
8372 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8373 else
8374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8376 done
8377 rm -f conf$$subs.sh
8379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8380 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8381 _ACEOF
8382 sed -n '
8384 s/^/S["/; s/!.*/"]=/
8387 s/^[^!]*!//
8388 :repl
8389 t repl
8390 s/'"$ac_delim"'$//
8391 t delim
8394 s/\(.\{148\}\).*/\1/
8395 t more1
8396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8399 b repl
8400 :more1
8401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8404 s/.\{148\}//
8405 t nl
8406 :delim
8408 s/\(.\{148\}\).*/\1/
8409 t more2
8410 s/["\\]/\\&/g; s/^/"/; s/$/"/
8413 :more2
8414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8417 s/.\{148\}//
8418 t delim
8419 ' <conf$$subs.awk | sed '
8420 /^[^""]/{
8422 s/\n//
8424 ' >>$CONFIG_STATUS || ac_write_fail=1
8425 rm -f conf$$subs.awk
8426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8427 _ACAWK
8428 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8429 for (key in S) S_is_set[key] = 1
8430 FS = "\a"
8434 line = $ 0
8435 nfields = split(line, field, "@")
8436 substed = 0
8437 len = length(field[1])
8438 for (i = 2; i < nfields; i++) {
8439 key = field[i]
8440 keylen = length(key)
8441 if (S_is_set[key]) {
8442 value = S[key]
8443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8444 len += length(value) + length(field[++i])
8445 substed = 1
8446 } else
8447 len += 1 + keylen
8450 print line
8453 _ACAWK
8454 _ACEOF
8455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8458 else
8460 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8461 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8462 _ACEOF
8464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8466 # trailing colons and then remove the whole line if VPATH becomes empty
8467 # (actually we leave an empty line to preserve line numbers).
8468 if test "x$srcdir" = x.; then
8469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8470 s/:*\$(srcdir):*/:/
8471 s/:*\${srcdir}:*/:/
8472 s/:*@srcdir@:*/:/
8473 s/^\([^=]*=[ ]*\):*/\1/
8474 s/:*$//
8475 s/^[^=]*=[ ]*$//
8479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8480 fi # test -n "$CONFIG_FILES"
8482 # Set up the scripts for CONFIG_HEADERS section.
8483 # No need to generate them if there are no CONFIG_HEADERS.
8484 # This happens for instance with `./config.status Makefile'.
8485 if test -n "$CONFIG_HEADERS"; then
8486 cat >"$tmp/defines.awk" <<\_ACAWK ||
8487 BEGIN {
8488 _ACEOF
8490 # Transform confdefs.h into an awk script `defines.awk', embedded as
8491 # here-document in config.status, that substitutes the proper values into
8492 # config.h.in to produce config.h.
8494 # Create a delimiter string that does not exist in confdefs.h, to ease
8495 # handling of long lines.
8496 ac_delim='%!_!# '
8497 for ac_last_try in false false :; do
8498 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8499 if test -z "$ac_t"; then
8500 break
8501 elif $ac_last_try; then
8502 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8503 else
8504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8506 done
8508 # For the awk script, D is an array of macro values keyed by name,
8509 # likewise P contains macro parameters if any. Preserve backslash
8510 # newline sequences.
8512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8513 sed -n '
8514 s/.\{148\}/&'"$ac_delim"'/g
8515 t rset
8516 :rset
8517 s/^[ ]*#[ ]*define[ ][ ]*/ /
8518 t def
8520 :def
8521 s/\\$//
8522 t bsnl
8523 s/["\\]/\\&/g
8524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8525 D["\1"]=" \3"/p
8526 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8528 :bsnl
8529 s/["\\]/\\&/g
8530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8531 D["\1"]=" \3\\\\\\n"\\/p
8532 t cont
8533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8534 t cont
8536 :cont
8538 s/.\{148\}/&'"$ac_delim"'/g
8539 t clear
8540 :clear
8541 s/\\$//
8542 t bsnlc
8543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8545 :bsnlc
8546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8547 b cont
8548 ' <confdefs.h | sed '
8549 s/'"$ac_delim"'/"\\\
8550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8553 for (key in D) D_is_set[key] = 1
8554 FS = "\a"
8556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8557 line = \$ 0
8558 split(line, arg, " ")
8559 if (arg[1] == "#") {
8560 defundef = arg[2]
8561 mac1 = arg[3]
8562 } else {
8563 defundef = substr(arg[1], 2)
8564 mac1 = arg[2]
8566 split(mac1, mac2, "(") #)
8567 macro = mac2[1]
8568 prefix = substr(line, 1, index(line, defundef) - 1)
8569 if (D_is_set[macro]) {
8570 # Preserve the white space surrounding the "#".
8571 print prefix "define", macro P[macro] D[macro]
8572 next
8573 } else {
8574 # Replace #undef with comments. This is necessary, for example,
8575 # in the case of _POSIX_SOURCE, which is predefined and required
8576 # on some systems where configure will not decide to define it.
8577 if (defundef == "undef") {
8578 print "/*", prefix defundef, macro, "*/"
8579 next
8583 { print }
8584 _ACAWK
8585 _ACEOF
8586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8587 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8588 fi # test -n "$CONFIG_HEADERS"
8591 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8592 shift
8593 for ac_tag
8595 case $ac_tag in
8596 :[FHLC]) ac_mode=$ac_tag; continue;;
8597 esac
8598 case $ac_mode$ac_tag in
8599 :[FHL]*:*);;
8600 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8601 :[FH]-) ac_tag=-:-;;
8602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8603 esac
8604 ac_save_IFS=$IFS
8605 IFS=:
8606 set x $ac_tag
8607 IFS=$ac_save_IFS
8608 shift
8609 ac_file=$1
8610 shift
8612 case $ac_mode in
8613 :L) ac_source=$1;;
8614 :[FH])
8615 ac_file_inputs=
8616 for ac_f
8618 case $ac_f in
8619 -) ac_f="$tmp/stdin";;
8620 *) # Look for the file first in the build tree, then in the source tree
8621 # (if the path is not absolute). The absolute path cannot be DOS-style,
8622 # because $ac_f cannot contain `:'.
8623 test -f "$ac_f" ||
8624 case $ac_f in
8625 [\\/$]*) false;;
8626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8627 esac ||
8628 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8629 esac
8630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8631 as_fn_append ac_file_inputs " '$ac_f'"
8632 done
8634 # Let's still pretend it is `configure' which instantiates (i.e., don't
8635 # use $as_me), people would be surprised to read:
8636 # /* config.h. Generated by config.status. */
8637 configure_input='Generated from '`
8638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8639 `' by configure.'
8640 if test x"$ac_file" != x-; then
8641 configure_input="$ac_file. $configure_input"
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8643 $as_echo "$as_me: creating $ac_file" >&6;}
8645 # Neutralize special characters interpreted by sed in replacement strings.
8646 case $configure_input in #(
8647 *\&* | *\|* | *\\* )
8648 ac_sed_conf_input=`$as_echo "$configure_input" |
8649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8650 *) ac_sed_conf_input=$configure_input;;
8651 esac
8653 case $ac_tag in
8654 *:-:* | *:-) cat >"$tmp/stdin" \
8655 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8656 esac
8658 esac
8660 ac_dir=`$as_dirname -- "$ac_file" ||
8661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8662 X"$ac_file" : 'X\(//\)[^/]' \| \
8663 X"$ac_file" : 'X\(//\)$' \| \
8664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8665 $as_echo X"$ac_file" |
8666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8667 s//\1/
8670 /^X\(\/\/\)[^/].*/{
8671 s//\1/
8674 /^X\(\/\/\)$/{
8675 s//\1/
8678 /^X\(\/\).*/{
8679 s//\1/
8682 s/.*/./; q'`
8683 as_dir="$ac_dir"; as_fn_mkdir_p
8684 ac_builddir=.
8686 case "$ac_dir" in
8687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8690 # A ".." for each directory in $ac_dir_suffix.
8691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8692 case $ac_top_builddir_sub in
8693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8695 esac ;;
8696 esac
8697 ac_abs_top_builddir=$ac_pwd
8698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8699 # for backward compatibility:
8700 ac_top_builddir=$ac_top_build_prefix
8702 case $srcdir in
8703 .) # We are building in place.
8704 ac_srcdir=.
8705 ac_top_srcdir=$ac_top_builddir_sub
8706 ac_abs_top_srcdir=$ac_pwd ;;
8707 [\\/]* | ?:[\\/]* ) # Absolute name.
8708 ac_srcdir=$srcdir$ac_dir_suffix;
8709 ac_top_srcdir=$srcdir
8710 ac_abs_top_srcdir=$srcdir ;;
8711 *) # Relative name.
8712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8713 ac_top_srcdir=$ac_top_build_prefix$srcdir
8714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8715 esac
8716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8719 case $ac_mode in
8722 # CONFIG_FILE
8725 _ACEOF
8727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8728 # If the template does not know about datarootdir, expand it.
8729 # FIXME: This hack should be removed a few years after 2.60.
8730 ac_datarootdir_hack=; ac_datarootdir_seen=
8731 ac_sed_dataroot='
8732 /datarootdir/ {
8736 /@datadir@/p
8737 /@docdir@/p
8738 /@infodir@/p
8739 /@localedir@/p
8740 /@mandir@/p'
8741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8742 *datarootdir*) ac_datarootdir_seen=yes;;
8743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8746 _ACEOF
8747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8748 ac_datarootdir_hack='
8749 s&@datadir@&$datadir&g
8750 s&@docdir@&$docdir&g
8751 s&@infodir@&$infodir&g
8752 s&@localedir@&$localedir&g
8753 s&@mandir@&$mandir&g
8754 s&\\\${datarootdir}&$datarootdir&g' ;;
8755 esac
8756 _ACEOF
8758 # Neutralize VPATH when `$srcdir' = `.'.
8759 # Shell code in configure.ac might set extrasub.
8760 # FIXME: do we really want to maintain this feature?
8761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8762 ac_sed_extra="$ac_vpsub
8763 $extrasub
8764 _ACEOF
8765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8768 s|@configure_input@|$ac_sed_conf_input|;t t
8769 s&@top_builddir@&$ac_top_builddir_sub&;t t
8770 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8771 s&@srcdir@&$ac_srcdir&;t t
8772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8773 s&@top_srcdir@&$ac_top_srcdir&;t t
8774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8775 s&@builddir@&$ac_builddir&;t t
8776 s&@abs_builddir@&$ac_abs_builddir&;t t
8777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8778 $ac_datarootdir_hack
8780 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8781 || as_fn_error "could not create $ac_file" "$LINENO" 5
8783 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8784 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8785 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8787 which seems to be undefined. Please make sure it is defined." >&5
8788 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8789 which seems to be undefined. Please make sure it is defined." >&2;}
8791 rm -f "$tmp/stdin"
8792 case $ac_file in
8793 -) cat "$tmp/out" && rm -f "$tmp/out";;
8794 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8795 esac \
8796 || as_fn_error "could not create $ac_file" "$LINENO" 5
8800 # CONFIG_HEADER
8802 if test x"$ac_file" != x-; then
8804 $as_echo "/* $configure_input */" \
8805 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8806 } >"$tmp/config.h" \
8807 || as_fn_error "could not create $ac_file" "$LINENO" 5
8808 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8810 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8811 else
8812 rm -f "$ac_file"
8813 mv "$tmp/config.h" "$ac_file" \
8814 || as_fn_error "could not create $ac_file" "$LINENO" 5
8816 else
8817 $as_echo "/* $configure_input */" \
8818 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8819 || as_fn_error "could not create -" "$LINENO" 5
8824 esac
8826 done # for ac_tag
8829 as_fn_exit 0
8830 _ACEOF
8831 ac_clean_files=$ac_clean_files_save
8833 test $ac_write_fail = 0 ||
8834 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8837 # configure is writing to config.log, and then calls config.status.
8838 # config.status does its own redirection, appending to config.log.
8839 # Unfortunately, on DOS this fails, as config.log is still kept open
8840 # by configure, so config.status won't be able to write to it; its
8841 # output is simply discarded. So we exec the FD to /dev/null,
8842 # effectively closing config.log, so it can be properly (re)opened and
8843 # appended to by config.status. When coming back to configure, we
8844 # need to make the FD available again.
8845 if test "$no_create" != yes; then
8846 ac_cs_success=:
8847 ac_config_status_args=
8848 test "$silent" = yes &&
8849 ac_config_status_args="$ac_config_status_args --quiet"
8850 exec 5>/dev/null
8851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8852 exec 5>>config.log
8853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8854 # would make configure fail if this is the last instruction.
8855 $ac_cs_success || as_fn_exit $?
8857 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8859 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}