2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="lily/main.cc"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
717 build_package_datadir
753 ugh_ugh_autoconf250_builddir
781 program_transform_name
793 enable_option_checking
812 ac_precious_vars='build_alias
828 # Initialize some variables set by options.
830 ac_init_version=false
831 ac_unrecognized_opts=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
935 { (exit 1); exit 1; }; }
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
962 { (exit 1); exit 1; }; }
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
987 -help | --help | --hel | --he | -h)
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1136 -site=* | --site=* | --sit=*)
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1215 Try \`$0 --help' for more information." >&2
1216 { (exit 1); exit 1; }; }
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1224 { (exit 1); exit 1; }; }
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1242 { (exit 1); exit 1; }; }
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1248 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1249 { (exit 1); exit 1; }; } ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1267 # Be sure to have absolute directory names.
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 if test -n "$ac_init_help"; then
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1450 do `make conf=CONF' to get output in ./out-CONF
1451 --enable-documentation build Documentation. Default: on
1452 --enable-guile2 highly experimental GUILE 2 support. Default: off
1453 --enable-relocation compile with dynamic relocation. Default: off
1454 --enable-rpath hardcode runtime library path. Default: off
1455 --enable-static-gxx link libstdc++.a statically. Default: off
1456 --enable-debugging compile with debugging info. Default: on
1457 --enable-checking compile with expensive run-time checks. Default: off
1458 --enable-optimising compile with optimising. Default: on
1459 --enable-profiling compile with gprof support. Default: off
1460 --enable-pipe compile with -pipe. Default: on
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-texgyre-dir=DIR location of TeX Gyre fonts.
1466 --with-urwotf-dir=DIR location of URW++ OTF fonts.
1467 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1468 --with-lang=LANG use LANG as language to emit messages
1469 --with-python-include=DIR
1470 location of the python include dir
1471 --with-python-lib=NAME name of the python lib
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1483 CXXCPP C++ preprocessor
1484 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1485 the first program found out of: `bison -y', `byacc', `yacc'.
1486 YFLAGS The list of arguments that will be passed by default to $YACC.
1487 This script will default YFLAGS to the empty string to avoid a
1488 default value of `-d' given by some make applications.
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1556 generated by GNU Autoconf 2.63
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by $as_me, which was
1570 generated by GNU Autoconf 2.63. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 $as_echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1699 *) $as_unset $ac_var ;;
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 $as_echo "$ac_var='\''$ac_val'\''"
1734 if test -n "$ac_subst_files"; then
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1741 for ac_var in $ac_subst_files
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 $as_echo "$ac_var='\''$ac_val'\''"
1752 if test -s confdefs.h; then
1762 test "$ac_signal" != 0 &&
1763 $as_echo "$as_me: caught signal $ac_signal"
1764 $as_echo "$as_me: exit $exit_status"
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 for ac_signal in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1778 # Predefined preprocessor variables.
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer an explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 ac_site_file1=$CONFIG_SITE
1811 elif test "x$prefix" != xNONE; then
1812 ac_site_file1=$prefix/share/config.site
1813 ac_site_file2=$prefix/etc/config.site
1815 ac_site_file1=$ac_default_prefix/share/config.site
1816 ac_site_file2=$ac_default_prefix/etc/config.site
1818 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1820 test "x$ac_site_file" = xNONE && continue
1821 if test -r "$ac_site_file"; then
1822 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1824 sed 's/^/| /' "$ac_site_file" >&5
1829 if test -r "$cache_file"; then
1830 # Some versions of bash will fail to source /dev/null (special
1831 # files actually), so we avoid doing that.
1832 if test -f "$cache_file"; then
1833 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 $as_echo "$as_me: loading cache $cache_file" >&6;}
1836 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837 *) . "./$cache_file";;
1841 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 $as_echo "$as_me: creating cache $cache_file" >&6;}
1846 # Check that the precious variables saved in the cache have kept the same
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851 eval ac_new_set=\$ac_env_${ac_var}_set
1852 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853 eval ac_new_val=\$ac_env_${ac_var}_value
1854 case $ac_old_set,$ac_new_set in
1856 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1860 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1865 if test "x$ac_old_val" != "x$ac_new_val"; then
1866 # differences in whitespace do not lead to failure.
1867 ac_old_val_w=`echo x $ac_old_val`
1868 ac_new_val_w=`echo x $ac_new_val`
1869 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1870 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872 ac_cache_corrupted=:
1874 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1875 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1876 eval $ac_var=\$ac_old_val
1878 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1879 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1880 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1881 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1899 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # Bootstrap StepMake configure
1932 for ac_dir in config "$srcdir"/config; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1949 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963 # Make sure we can run config.sub.
1964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1965 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1966 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1967 { (exit 1); exit 1; }; }
1969 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1970 $as_echo_n "checking build system type... " >&6; }
1971 if test "${ac_cv_build+set}" = set; then
1972 $as_echo_n "(cached) " >&6
1974 ac_build_alias=$build_alias
1975 test "x$ac_build_alias" = x &&
1976 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1977 test "x$ac_build_alias" = x &&
1978 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1979 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1980 { (exit 1); exit 1; }; }
1981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1982 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1983 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1987 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1988 $as_echo "$ac_cv_build" >&6; }
1989 case $ac_cv_build in
1991 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1992 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1993 { (exit 1); exit 1; }; };;
1996 ac_save_IFS=$IFS; IFS='-'
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2006 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2012 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2013 MICRO_VERSION=$PATCH_LEVEL
2014 TOPLEVEL_VERSION=$FULL_VERSION
2015 if test x$MY_PATCH_LEVEL != x; then
2016 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2018 VERSION=$FULL_VERSION
2019 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2020 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2022 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2023 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2026 # No versioning on directory names of sub-packages
2028 stepmake=${datadir}/stepmake
2030 if test "$prefix" = "NONE"; then
2031 presome=${ac_default_prefix}
2033 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2035 # urg, how is this supposed to work?
2036 if test "$program_prefix" = "NONE"; then
2039 if test "$program_suffix" = "NONE"; then
2043 { $as_echo "$as_me:$LINENO: checking Package" >&5
2044 $as_echo_n "checking Package... " >&6; }
2045 if test "$PACKAGE" = "STEPMAKE"; then
2046 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2047 $as_echo "Stepmake package!" >&6; }
2049 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2050 $as_echo_n "checking builddir... " >&6; }
2052 ugh_ugh_autoconf250_builddir="`pwd`"
2054 if test "$srcdir" = "."; then
2058 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2059 package_srcdir="`dirname $srcdir`"
2061 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2062 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2064 (cd stepmake 2>/dev/null || mkdir stepmake)
2065 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2068 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2069 $as_echo "$PACKAGE" >&6; }
2071 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2072 $as_echo_n "checking builddir... " >&6; }
2073 ugh_ugh_autoconf250_builddir="`pwd`"
2075 here_dir=$(cd . && pwd)
2076 full_src_dir=$(cd $srcdir && pwd)
2078 if test "$full_src_dir" = "$here_dir"; then
2083 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2084 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2086 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2087 $as_echo_n "checking for stepmake... " >&6; }
2088 # Check for installed stepmake
2089 if test -d $stepmake; then
2090 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2091 $as_echo "$stepmake" >&6; }
2093 stepmake="`cd $srcdir/stepmake; pwd`"
2094 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2095 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2101 # Use absolute directory for non-srcdir builds, so that build
2103 if test "$srcdir_build" = "no" ; then
2104 srcdir="`cd $srcdir; pwd`"
2117 # stepmake nonstandard names
2121 # We don't need the upper case variant,
2122 # so stick to macros are uppercase convention.
2123 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2124 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE "${package}"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "${PACKAGE_NAME}"
2133 cat >>confdefs.h <<_ACEOF
2134 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2138 if test -z "$package_depth"; then
2141 package_depth="../$package_depth"
2143 export package_depth
2146 AUTOGENERATE="This file was automatically generated by configure"
2150 # Check whether --enable-config was given.
2151 if test "${enable_config+set}" = set; then
2152 enableval=$enable_config; CONFIGURATION=$enableval
2158 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2159 CONFIGFILE=config$CONFIGSUFFIX
2162 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2163 $as_echo_n "checking host system type... " >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 $as_echo_n "(cached) " >&6
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2177 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 $as_echo "$ac_cv_host" >&6; }
2181 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 for ac_prog in gmake make
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_MAKE+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2209 if test -n "$MAKE"; then
2210 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_MAKE="$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 MAKE=$ac_cv_prog_MAKE
2230 if test -n "$MAKE"; then
2231 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2232 $as_echo "$MAKE" >&6; }
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$MAKE" && break
2241 test -n "$MAKE" || MAKE="no"
2245 r="`eval echo '$'"MAKE"`"
2246 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2249 ##STEPMAKE_WARN(cannot find . )
2253 if test $? -ne 0; then
2255 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2257 if test "REQUIRED" = "REQUIRED"; then
2258 command="echo ERROR: gmake make not found"
2259 # abort configure process here?
2261 command="- echo gmake make not found"
2263 eval "MAKE"='$command'
2269 if test $? -eq 0 -a -n ""; then
2271 r="`eval echo '$'"MAKE"`"
2272 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2273 $as_echo_n "checking $r version... " >&6; }
2275 ## which doesn't work in ash, if /usr/bin/which isn't installed
2276 ## type -p doesn't work in ash
2277 ## command -v doesn't work in zsh
2278 ## command -v "$r" 2>&1
2279 ## this test should work in ash, bash, pdksh (ksh), zsh
2280 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2286 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2289 ## Workaround for broken Debian gcc version string:
2290 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2292 ## -V: Workaround for python
2296 ## Assume and hunt for dotted version multiplet.
2297 ## use eval trickery, because we cannot use multi-level $() instead of ``
2298 ## for compatibility reasons.
2300 ## grab the first version number in --version output.
2301 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2302 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2305 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2306 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2309 if test -z "$_ver"; then
2310 ## If empty, try date [fontforge]
2311 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2312 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2314 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2321 echo "$ver" | awk -F. '
2323 if ($3) {three = $3}
2326 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2331 if ($3) {three = $3}
2334 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2336 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2337 $as_echo "$ver" >&6; }
2338 if test "$num" -lt "$req"; then
2340 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2343 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2344 eval `echo $vervar=$num`
2345 ## AC_SUBST(`eval echo $vervar`)
2352 # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if test "${ac_cv_prog_FIND+set}" = set; then
2357 $as_echo_n "(cached) " >&6
2359 if test -n "$FIND"; then
2360 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_FIND="$ac_prog"
2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 FIND=$ac_cv_prog_FIND
2380 if test -n "$FIND"; then
2381 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2382 $as_echo "$FIND" >&6; }
2384 { $as_echo "$as_me:$LINENO: result: no" >&5
2385 $as_echo "no" >&6; }
2389 test -n "$FIND" && break
2391 test -n "$FIND" || FIND="no"
2395 r="`eval echo '$'"FIND"`"
2396 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2399 ##STEPMAKE_WARN(cannot find . )
2403 if test $? -ne 0; then
2405 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2407 if test "REQUIRED" = "REQUIRED"; then
2408 command="echo ERROR: find not found"
2409 # abort configure process here?
2411 command="- echo find not found"
2413 eval "FIND"='$command'
2419 if test $? -eq 0 -a -n ""; then
2421 r="`eval echo '$'"FIND"`"
2422 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2423 $as_echo_n "checking $r version... " >&6; }
2425 ## which doesn't work in ash, if /usr/bin/which isn't installed
2426 ## type -p doesn't work in ash
2427 ## command -v doesn't work in zsh
2428 ## command -v "$r" 2>&1
2429 ## this test should work in ash, bash, pdksh (ksh), zsh
2430 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2436 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2439 ## Workaround for broken Debian gcc version string:
2440 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2442 ## -V: Workaround for python
2446 ## Assume and hunt for dotted version multiplet.
2447 ## use eval trickery, because we cannot use multi-level $() instead of ``
2448 ## for compatibility reasons.
2450 ## grab the first version number in --version output.
2451 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2452 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2455 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2456 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2459 if test -z "$_ver"; then
2460 ## If empty, try date [fontforge]
2461 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2462 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2464 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2471 echo "$ver" | awk -F. '
2473 if ($3) {three = $3}
2476 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2481 if ($3) {three = $3}
2484 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2486 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2487 $as_echo "$ver" >&6; }
2488 if test "$num" -lt "$req"; then
2490 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2493 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2494 eval `echo $vervar=$num`
2495 ## AC_SUBST(`eval echo $vervar`)
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_TAR+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$TAR"; then
2511 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_TAR="$ac_prog"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$TAR"; then
2532 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2533 $as_echo "$TAR" >&6; }
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$TAR" && break
2542 test -n "$TAR" || TAR="no"
2546 r="`eval echo '$'"TAR"`"
2547 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2550 ##STEPMAKE_WARN(cannot find . )
2554 if test $? -ne 0; then
2556 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2558 if test "REQUIRED" = "REQUIRED"; then
2559 command="echo ERROR: tar not found"
2560 # abort configure process here?
2562 command="- echo tar not found"
2564 eval "TAR"='$command'
2570 if test $? -eq 0 -a -n ""; then
2572 r="`eval echo '$'"TAR"`"
2573 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2574 $as_echo_n "checking $r version... " >&6; }
2576 ## which doesn't work in ash, if /usr/bin/which isn't installed
2577 ## type -p doesn't work in ash
2578 ## command -v doesn't work in zsh
2579 ## command -v "$r" 2>&1
2580 ## this test should work in ash, bash, pdksh (ksh), zsh
2581 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2587 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2590 ## Workaround for broken Debian gcc version string:
2591 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2593 ## -V: Workaround for python
2597 ## Assume and hunt for dotted version multiplet.
2598 ## use eval trickery, because we cannot use multi-level $() instead of ``
2599 ## for compatibility reasons.
2601 ## grab the first version number in --version output.
2602 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2603 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2606 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2607 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2610 if test -z "$_ver"; then
2611 ## If empty, try date [fontforge]
2612 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2613 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2615 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2622 echo "$ver" | awk -F. '
2624 if ($3) {three = $3}
2627 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2632 if ($3) {three = $3}
2635 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2637 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2638 $as_echo "$ver" >&6; }
2639 if test "$num" -lt "$req"; then
2641 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2644 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2645 eval `echo $vervar=$num`
2646 ## AC_SUBST(`eval echo $vervar`)
2651 if test "$(echo 2)" != "2" ||
2652 test "x`uname`" = "xHP-UX"; then
2653 # Extract the first word of "ksh", so it can be a program name with args.
2654 set dummy ksh; ac_word=$2
2655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_path_KSH+set}" = set; then
2658 $as_echo_n "(cached) " >&6
2662 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2685 if test -n "$KSH"; then
2686 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2687 $as_echo "$KSH" >&6; }
2689 { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2694 # Extract the first word of "bash", so it can be a program name with args.
2695 set dummy bash; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_path_BASH+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2703 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2725 BASH=$ac_cv_path_BASH
2726 if test -n "$BASH"; then
2727 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2728 $as_echo "$BASH" >&6; }
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2736 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2737 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2740 # Extract the first word of "bash", so it can be a program name with args.
2741 set dummy bash; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_path_SHELL+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2749 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2771 SHELL=$ac_cv_path_SHELL
2772 if test -n "$SHELL"; then
2773 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2774 $as_echo "$SHELL" >&6; }
2776 { $as_echo "$as_me:$LINENO: result: no" >&5
2777 $as_echo "no" >&6; }
2783 # Extract the first word of "bash", so it can be a program name with args.
2784 set dummy bash; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_path_BASH+set}" = set; then
2788 $as_echo_n "(cached) " >&6
2792 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2814 BASH=$ac_cv_path_BASH
2815 if test -n "$BASH"; then
2816 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2817 $as_echo "$BASH" >&6; }
2819 { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2828 { $as_echo "$as_me:$LINENO: checking for python" >&5
2829 $as_echo_n "checking for python... " >&6; }
2832 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
2834 ## which doesn't work in ash, if /usr/bin/which isn't installed
2835 ## type -p doesn't work in ash
2836 ## command -v doesn't work in zsh
2837 ## command -v "$r" 2>&1
2838 ## this test should work in ash, bash, pdksh (ksh), zsh
2839 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2841 if ! $exe -V > /dev/null 2>&1 ; then
2845 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2848 ## Workaround for broken Debian gcc version string:
2849 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2851 ## -V: Workaround for python
2855 ## Assume and hunt for dotted version multiplet.
2856 ## use eval trickery, because we cannot use multi-level $() instead of ``
2857 ## for compatibility reasons.
2859 ## grab the first version number in --version output.
2860 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2861 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2864 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2865 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2868 if test -z "$_ver"; then
2869 ## If empty, try date [fontforge]
2870 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2871 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2873 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2879 echo "$ver" | awk -F. '
2881 if ($3) {three = $3}
2884 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2887 echo "1.5" | awk -F. '
2889 if ($3) {three = $3}
2892 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2895 echo "3.0" | awk -F. '
2897 if ($3) {three = $3}
2900 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2902 if test -n "1.5" && test "$num" -lt "$req"; then
2903 python="$r >= 1.5 (installed: $ver)"
2906 if test -n "3.0" && test "$num" -ge "$sup"; then
2907 python="$r < 3.0 (installed: $ver)"
2916 { $as_echo "$as_me:$LINENO: result: $found" >&5
2917 $as_echo "$found" >&6; }
2918 if test "$found" != "no"; then
2919 { $as_echo "$as_me:$LINENO: checking $python version" >&5
2920 $as_echo_n "checking $python version... " >&6; }
2921 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2922 $as_echo "$ver" >&6; }
2926 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2929 # Extract the first word of "$PYTHON", so it can be a program name with args.
2930 set dummy $PYTHON; ac_word=$2
2931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_path_PYTHON+set}" = set; then
2934 $as_echo_n "(cached) " >&6
2938 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 PYTHON=$ac_cv_path_PYTHON
2960 if test -n "$PYTHON"; then
2961 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2962 $as_echo "$PYTHON" >&6; }
2964 { $as_echo "$as_me:$LINENO: result: no" >&5
2965 $as_echo "no" >&6; }
2972 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2973 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2974 if test "$?" = 1; then
2975 warn='make (Please install *GNU* make)'
2976 # STEPMAKE_WARN($warn)
2978 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2995 cat >>confdefs.h <<_ACEOF
2996 #define DIRSEP '${DIRSEP}'
2999 cat >>confdefs.h <<_ACEOF
3000 #define PATHSEP '${PATHSEP}'
3009 if test "$prefix" = "NONE"; then
3010 presome=${ac_default_prefix}
3013 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3015 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3016 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3017 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3022 cat >>confdefs.h <<_ACEOF
3023 #define DATADIR "${DATADIR}"
3026 cat >>confdefs.h <<_ACEOF
3027 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3032 presome=${exec_prefix}
3033 if test "$presome" = "NONE"; then
3036 if test "$presome" = "NONE"; then
3037 presome=${ac_default_prefix}
3040 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3042 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3043 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3047 cat >>confdefs.h <<_ACEOF
3048 #define LIBDIR "${LIBDIR}"
3051 cat >>confdefs.h <<_ACEOF
3052 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3058 # List a file that identifies your package.
3061 # Move to aclocal.m4?
3062 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3065 # Uncomment the configuration options your package needs.
3068 # Check whether --enable-documentation was given.
3069 if test "${enable_documentation+set}" = set; then
3070 enableval=$enable_documentation; DOCUMENTATION=$enableval
3076 # Check whether --enable-guile2 was given.
3077 if test "${enable_guile2+set}" = set; then
3078 enableval=$enable_guile2; GUILEv2=$enableval
3083 # Check whether --with-texgyre-dir was given.
3084 if test "${with_texgyre_dir+set}" = set; then
3085 withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3092 # Check whether --with-urwotf-dir was given.
3093 if test "${with_urwotf_dir+set}" = set; then
3094 withval=$with_urwotf_dir; URWOTF_DIR=$withval
3101 # Check whether --enable-relocation was given.
3102 if test "${enable_relocation+set}" = set; then
3103 enableval=$enable_relocation; reloc_b=$enableval
3108 # Check whether --enable-rpath was given.
3109 if test "${enable_rpath+set}" = set; then
3110 enableval=$enable_rpath; rpath_b=$enableval
3114 LINK_GXX_STATICALLY=no
3115 # Check whether --enable-static-gxx was given.
3116 if test "${enable_static_gxx+set}" = set; then
3117 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3122 # must come before any header checks
3124 # -O is necessary to get inlining
3126 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3127 LDFLAGS=${LDFLAGS-""}
3134 # Check whether --enable-debugging was given.
3135 if test "${enable_debugging+set}" = set; then
3136 enableval=$enable_debugging; debug_b=$enableval
3140 # Check whether --enable-checking was given.
3141 if test "${enable_checking+set}" = set; then
3142 enableval=$enable_checking; checks_b=$enableval
3146 # Check whether --enable-optimising was given.
3147 if test "${enable_optimising+set}" = set; then
3148 enableval=$enable_optimising; optimise_b=$enableval
3152 # Check whether --enable-profiling was given.
3153 if test "${enable_profiling+set}" = set; then
3154 enableval=$enable_profiling; profile_b=$enableval
3158 # Check whether --enable-pipe was given.
3159 if test "${enable_pipe+set}" = set; then
3160 enableval=$enable_pipe; pipe_b=$enableval
3164 if test "$optimise_b" = yes; then
3165 OPTIMIZE=" -O2 -finline-functions"
3166 # following two lines are compatibility while Patchy has not
3167 # yet learnt about --enable-checking. But once it has, we
3168 # don't want -DDEBUG twice, so we omit it here if it is going
3169 # to get added anyway later.
3170 elif test "$checks_b" != yes; then
3171 DEFINES="$DEFINES -DDEBUG"
3174 if test "$checks_b" = yes; then
3175 DEFINES="$DEFINES -DDEBUG"
3178 if test $profile_b = yes; then
3180 OPTIMIZE="$OPTIMIZE -pg"
3183 if test $debug_b = yes; then
3184 OPTIMIZE="$OPTIMIZE -g"
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:$LINENO: result: no" >&5
3226 $as_echo "no" >&6; }
3231 if test -z "$ac_cv_prog_CC"; then
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_ac_ct_CC="gcc"
3251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 $as_echo "$ac_ct_CC" >&6; }
3265 { $as_echo "$as_me:$LINENO: result: no" >&5
3266 $as_echo "no" >&6; }
3269 if test "x$ac_ct_CC" = x; then
3272 case $cross_compiling:$ac_tool_warned in
3274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3284 if test -z "$CC"; then
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}cc; ac_word=$2
3288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then
3291 $as_echo_n "(cached) " >&6
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_prog_CC="${ac_tool_prefix}cc"
3304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 if test -n "$CC"; then
3315 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3318 { $as_echo "$as_me:$LINENO: result: no" >&5
3319 $as_echo "no" >&6; }
3325 if test -z "$CC"; then
3326 # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc; ac_word=$2
3328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_CC+set}" = set; then
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345 ac_prog_rejected=yes
3349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test $ac_prog_rejected = yes; then
3357 # We found a bogon in the path, so make sure we never use it.
3358 set dummy $ac_cv_prog_CC
3360 if test $# != 0; then
3361 # We chose a different compiler from the bogus one.
3362 # However, it has the same basename, so the bogon will be chosen
3363 # first if we set CC to just the basename; use the full file name.
3365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3375 { $as_echo "$as_me:$LINENO: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 for ac_prog in cl.exe
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3417 { $as_echo "$as_me:$LINENO: result: no" >&5
3418 $as_echo "no" >&6; }
3422 test -n "$CC" && break
3425 if test -z "$CC"; then
3427 for ac_prog in cl.exe
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3434 $as_echo_n "(cached) " >&6
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_ac_ct_CC="$ac_prog"
3447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3459 $as_echo "$ac_ct_CC" >&6; }
3461 { $as_echo "$as_me:$LINENO: result: no" >&5
3462 $as_echo "no" >&6; }
3466 test -n "$ac_ct_CC" && break
3469 if test "x$ac_ct_CC" = x; then
3472 case $cross_compiling:$ac_tool_warned in
3474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned=yes ;;
3485 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491 { (exit 1); exit 1; }; }; }
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3497 { (ac_try="$ac_compiler --version >&5"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compiler --version >&5") 2>&5
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 { (ac_try="$ac_compiler -v >&5"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_compiler -v >&5") 2>&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }
3519 { (ac_try="$ac_compiler -V >&5"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_compiler -V >&5") 2>&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3551 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3552 $as_echo_n "checking for C compiler default output file name... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559 for ac_file in $ac_files
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3568 if { (ac_try="$ac_link_default"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_link_default") 2>&5
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; then
3579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3584 for ac_file in $ac_files ''
3586 test -f "$ac_file" || continue
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3591 # We found the default executable, but exeext='' is most
3595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 # We set ac_cv_exeext here because the later test for it is not
3600 # safe: cross compilers may not add the suffix if given an `-o'
3601 # argument, so we may need to know it at that point already.
3602 # Even if this section looks crufty: it has the advantage of
3609 test "$ac_cv_exeext" = no && ac_cv_exeext=
3615 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3616 $as_echo "$ac_file" >&6; }
3617 if test -z "$ac_file"; then
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3624 See \`config.log' for more details." >&5
3625 $as_echo "$as_me: error: C compiler cannot create executables
3626 See \`config.log' for more details." >&2;}
3627 { (exit 77); exit 77; }; }; }
3630 ac_exeext=$ac_cv_exeext
3632 # Check that the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3635 $as_echo_n "checking whether the C compiler works... " >&6; }
3636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3637 # If not cross compiling, check that we can run a simple program.
3638 if test "$cross_compiling" != yes; then
3639 if { ac_try='./$ac_file'
3640 { (case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_try") 2>&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3652 if test "$cross_compiling" = maybe; then
3655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details." >&2;}
3663 { (exit 1); exit 1; }; }; }
3667 { $as_echo "$as_me:$LINENO: result: yes" >&5
3668 $as_echo "yes" >&6; }
3670 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3671 ac_clean_files=$ac_clean_files_save
3672 # Check that the compiler produces executables we can run. If not, either
3673 # the compiler is broken, or we cross compile.
3674 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3675 $as_echo_n "checking whether we are cross compiling... " >&6; }
3676 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3679 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3680 $as_echo_n "checking for suffix of executables... " >&6; }
3681 if { (ac_try="$ac_link"
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3687 $as_echo "$ac_try_echo") >&5
3688 (eval "$ac_link") 2>&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 for ac_file in conftest.exe conftest conftest.*; do
3697 test -f "$ac_file" || continue
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details." >&5
3710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details." >&2;}
3712 { (exit 1); exit 1; }; }; }
3715 rm -f conftest$ac_cv_exeext
3716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then
3725 $as_echo_n "(cached) " >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3742 rm -f conftest.o conftest.obj
3743 if { (ac_try="$ac_compile"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3749 $as_echo "$ac_try_echo") >&5
3750 (eval "$ac_compile") 2>&5
3752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; then
3754 for ac_file in conftest.o conftest.obj conftest.*; do
3755 test -f "$ac_file" || continue;
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3763 $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3769 See \`config.log' for more details." >&5
3770 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }; }
3775 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3777 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3778 $as_echo "$ac_cv_objext" >&6; }
3779 OBJEXT=$ac_cv_objext
3781 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3784 $as_echo_n "(cached) " >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if test "${ac_cv_prog_cc_g+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3848 ac_save_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3874 $as_echo "$ac_try_echo") >&5
3875 (eval "$ac_compile") 2>conftest.er1
3877 grep -v '^ *+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 } && test -s conftest.$ac_objext; then
3887 $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913 $as_echo "$ac_try_echo") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984 CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986 if test "$GCC" = yes; then
3992 if test "$GCC" = yes; then
3998 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if test "${ac_cv_prog_cc_c89+set}" = set; then
4001 $as_echo_n "(cached) " >&6
4003 ac_cv_prog_cc_c89=no
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4016 struct buf { int x; };
4017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4018 static char *e (p, i)
4024 static char *f (char * (*g) (char **, int), char **p, ...)
4029 s = g (p, va_arg (v,int));
4034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4035 function prototypes and stuff, but not '\xHH' hex character constants.
4036 These don't provoke an error unfortunately, instead are silently treated
4037 as 'x'. The following induces an error, until -std is added to get
4038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4039 array size at least. It's necessary to write '\x00'==0 to get something
4040 that's true only with -std. */
4041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4044 inside strings and character constants. */
4046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4065 CC="$ac_save_CC $ac_arg"
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 ac_cv_prog_cc_c89=$ac_arg
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f core conftest.err conftest.$ac_objext
4093 test "x$ac_cv_prog_cc_c89" != "xno" && break
4095 rm -f conftest.$ac_ext
4100 case "x$ac_cv_prog_cc_c89" in
4102 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4103 $as_echo "none needed" >&6; } ;;
4105 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4106 $as_echo "unsupported" >&6; } ;;
4108 CC="$CC $ac_cv_prog_cc_c89"
4109 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 r="`eval echo '$'"CC"`"
4128 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4131 ##STEPMAKE_WARN(cannot find . )
4135 if test $? -ne 0; then
4137 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4139 if test "" = "REQUIRED"; then
4140 command="echo ERROR: cc not found"
4141 # abort configure process here?
4143 command="- echo cc not found"
4145 eval "CC"='$command'
4154 # If -pipe requested, test if it works and add to CFLAGS.
4155 if test "$pipe_b" = yes; then
4156 save_cflags="$CFLAGS"
4157 CFLAGS=" -pipe $CFLAGS";
4158 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4159 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4160 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4161 $as_echo_n "(cached) " >&6
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 stepmake_cv_cflags_pipe=yes
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 stepmake_cv_cflags_pipe=no
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4208 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4210 if test $stepmake_cv_cflags_pipe = yes; then
4211 OPTIMIZE="$OPTIMIZE -pipe"
4215 CFLAGS="$CFLAGS $OPTIMIZE"
4216 CPPFLAGS=${CPPFLAGS-""}
4218 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4219 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4220 save_cflags="$CFLAGS"
4223 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4224 $as_echo "-mieee" >&6; }
4225 CFLAGS=" -mieee $CFLAGS"
4228 { $as_echo "$as_me:$LINENO: result: none" >&5
4229 $as_echo "none" >&6; }
4241 # Extract the first word of "fc-list", so it can be a program name with args.
4242 set dummy fc-list; ac_word=$2
4243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_FCLIST+set}" = set; then
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$FCLIST"; then
4249 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_FCLIST="fc-list"
4259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 FCLIST=$ac_cv_prog_FCLIST
4269 if test -n "$FCLIST"; then
4270 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4271 $as_echo "$FCLIST" >&6; }
4273 { $as_echo "$as_me:$LINENO: result: no" >&5
4274 $as_echo "no" >&6; }
4278 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4279 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4282 if test "$TEXGYRE_DIR" = ""; then
4283 if test "$FCLIST" != ""; then
4284 TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4285 if test "$TEXGYRE_FILE" != ""; then
4286 TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4287 TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4288 TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4289 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4290 X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4291 X$TEXGYRE_FILE : 'X\(//\)$' \| \
4292 X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4293 $as_echo X$TEXGYRE_FILE |
4294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4314 if test "$TEXGYRE_DIR" != "" ; then
4315 for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4316 texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4317 texgyreheros-regular.otf texgyreheros-italic.otf \
4318 texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4319 texgyrecursor-regular.otf texgyrecursor-italic.otf \
4320 texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4321 if test ! -f "$TEXGYRE_DIR/$f"; then
4322 MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4324 TEXGYRE_FILES="$TEXGYRE_FILES $f"
4328 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4329 { $as_echo "$as_me:$LINENO: result: no" >&5
4330 $as_echo "no" >&6; }
4332 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4334 if test "$TEXGYRE_DIR" = ""; then
4335 if test "$FCLIST" = ""; then
4337 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4341 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""(make sure the fc-list utility can see them, e.g. 'sudo apt-get install fonts-texgyre', or use --with-texgyre-dir)"\"`\"
4346 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4350 { $as_echo "$as_me:$LINENO: result: yes" >&5
4351 $as_echo "yes" >&6; }
4353 { $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
4354 $as_echo_n "checking for URW++ OTF files... " >&6; }
4357 if test "$URWOTF_DIR" = ""; then
4358 if test "$FCLIST" != ""; then
4359 URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
4360 if test "$URWOTF_FILE" != ""; then
4361 URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
4362 URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
4363 URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
4364 $as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4365 X$URWOTF_FILE : 'X\(//\)[^/]' \| \
4366 X$URWOTF_FILE : 'X\(//\)$' \| \
4367 X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
4368 $as_echo X$URWOTF_FILE |
4369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4389 if test "$URWOTF_DIR" != "" ; then
4390 for f in C059-BdIta.otf C059-Bold.otf \
4391 C059-Italic.otf C059-Roman.otf \
4392 NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
4393 NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
4394 NimbusSans-Bold.otf NimbusSans-BoldItalic.otf \
4395 NimbusSans-Italic.otf NimbusSans-Regular.otf; do
4396 if test ! -f "$URWOTF_DIR/$f"; then
4397 MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
4399 URWOTF_FILES="$URWOTF_FILES $f"
4403 if test "$MISSING_URWOTF_FILES"="NimbusSans-BoldItalic.otf NimbusSans-Italic.otf" && \
4404 test -f "$URWOTF_DIR/NimbusSans-BoldOblique.otf" && \
4405 test -f "$URWOTF_DIR/NimbusSans-Oblique.otf"; then
4406 MISSING_URWOTF_FILES=""
4407 URWOTF_FILES="$URWOTF_FILES NimbusSans-BoldOblique.otf NimbusSans-Oblique.otf"
4409 if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
4410 { $as_echo "$as_me:$LINENO: result: no" >&5
4411 $as_echo "no" >&6; }
4413 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
4415 if test "$URWOTF_DIR" = ""; then
4416 if test "$FCLIST" = ""; then
4418 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
4422 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=tree;hb=1f28a6fcd2176256a995db907d9ffe6e1b9b83e9' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
4427 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
4431 { $as_echo "$as_me:$LINENO: result: yes" >&5
4432 $as_echo "yes" >&6; }
4436 ac_cpp='$CXXCPP $CPPFLAGS'
4437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4443 { $as_echo "$as_me:$LINENO: checking for python" >&5
4444 $as_echo_n "checking for python... " >&6; }
4447 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
4449 ## which doesn't work in ash, if /usr/bin/which isn't installed
4450 ## type -p doesn't work in ash
4451 ## command -v doesn't work in zsh
4452 ## command -v "$r" 2>&1
4453 ## this test should work in ash, bash, pdksh (ksh), zsh
4454 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4456 if ! $exe -V > /dev/null 2>&1 ; then
4460 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4463 ## Workaround for broken Debian gcc version string:
4464 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4466 ## -V: Workaround for python
4470 ## Assume and hunt for dotted version multiplet.
4471 ## use eval trickery, because we cannot use multi-level $() instead of ``
4472 ## for compatibility reasons.
4474 ## grab the first version number in --version output.
4475 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4476 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4479 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4480 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4483 if test -z "$_ver"; then
4484 ## If empty, try date [fontforge]
4485 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4486 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4488 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4494 echo "$ver" | awk -F. '
4496 if ($3) {three = $3}
4499 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4502 echo "2.4" | awk -F. '
4504 if ($3) {three = $3}
4507 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4510 echo "3.0" | awk -F. '
4512 if ($3) {three = $3}
4515 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4517 if test -n "2.4" && test "$num" -lt "$req"; then
4518 python="$r >= 2.4 (installed: $ver)"
4521 if test -n "3.0" && test "$num" -ge "$sup"; then
4522 python="$r < 3.0 (installed: $ver)"
4531 { $as_echo "$as_me:$LINENO: result: $found" >&5
4532 $as_echo "$found" >&6; }
4533 if test "$found" != "no"; then
4534 { $as_echo "$as_me:$LINENO: checking $python version" >&5
4535 $as_echo_n "checking $python version... " >&6; }
4536 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4537 $as_echo "$ver" >&6; }
4541 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4544 # Extract the first word of "$PYTHON", so it can be a program name with args.
4545 set dummy $PYTHON; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_path_PYTHON+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4553 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 PYTHON=$ac_cv_path_PYTHON
4575 if test -n "$PYTHON"; then
4576 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4577 $as_echo "$PYTHON" >&6; }
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4586 # this checks if we have GNU C by compiling a program with
4587 # __GNUC__, but that macro now unofficially means "the compiler
4588 # supports the GNU C extensions" -- the intel C compiler and clang
4589 # both support __GNUC__!
4591 ac_cpp='$CXXCPP $CPPFLAGS'
4592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595 if test -z "$CXX"; then
4596 if test -n "$CCC"; then
4599 if test -n "$ac_tool_prefix"; then
4600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_CXX+set}" = set; then
4607 $as_echo_n "(cached) " >&6
4609 if test -n "$CXX"; then
4610 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 if test -n "$CXX"; then
4631 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4632 $as_echo "$CXX" >&6; }
4634 { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4639 test -n "$CXX" && break
4642 if test -z "$CXX"; then
4644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4651 $as_echo_n "(cached) " >&6
4653 if test -n "$ac_ct_CXX"; then
4654 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_ac_ct_CXX="$ac_prog"
4664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4674 if test -n "$ac_ct_CXX"; then
4675 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4676 $as_echo "$ac_ct_CXX" >&6; }
4678 { $as_echo "$as_me:$LINENO: result: no" >&5
4679 $as_echo "no" >&6; }
4683 test -n "$ac_ct_CXX" && break
4686 if test "x$ac_ct_CXX" = x; then
4689 case $cross_compiling:$ac_tool_warned in
4691 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4701 # Provide some information about the compiler.
4702 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4705 { (ac_try="$ac_compiler --version >&5"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compiler --version >&5") 2>&5
4714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }
4716 { (ac_try="$ac_compiler -v >&5"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723 (eval "$ac_compiler -v >&5") 2>&5
4725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }
4727 { (ac_try="$ac_compiler -V >&5"
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compiler -V >&5") 2>&5
4736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }
4739 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4742 $as_echo_n "(cached) " >&6
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770 (eval "$ac_compile") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } && {
4777 test -z "$ac_cxx_werror_flag" ||
4778 test ! -s conftest.err
4779 } && test -s conftest.$ac_objext; then
4782 $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4792 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4793 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4794 if test $ac_compiler_gnu = yes; then
4799 ac_test_CXXFLAGS=${CXXFLAGS+set}
4800 ac_save_CXXFLAGS=$CXXFLAGS
4801 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4802 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4803 if test "${ac_cv_prog_cxx_g+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4807 ac_cxx_werror_flag=yes
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832 $as_echo "$ac_try_echo") >&5
4833 (eval "$ac_compile") 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && {
4840 test -z "$ac_cxx_werror_flag" ||
4841 test ! -s conftest.err
4842 } && test -s conftest.$ac_objext; then
4843 ac_cv_prog_cxx_g=yes
4845 $as_echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4864 rm -f conftest.$ac_objext
4865 if { (ac_try="$ac_compile"
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_cxx_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4884 $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4889 cat >conftest.$ac_ext <<_ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_cxx_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4922 ac_cv_prog_cxx_g=yes
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4940 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4941 if test "$ac_test_CXXFLAGS" = set; then
4942 CXXFLAGS=$ac_save_CXXFLAGS
4943 elif test $ac_cv_prog_cxx_g = yes; then
4944 if test "$GXX" = yes; then
4950 if test "$GXX" = yes; then
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964 ac_cpp='$CXXCPP $CPPFLAGS'
4965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4969 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4970 if test -z "$CXXCPP"; then
4971 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4972 $as_echo_n "(cached) " >&6
4974 # Double quotes because CXXCPP needs to be expanded
4975 for CXXCPP in "$CXX -E" "/lib/cpp"
4978 for ac_cxx_preproc_warn_flag in '' yes
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983 # <limits.h> exists even on freestanding compilers.
4984 # On the NeXT, cc -E runs the code through the compiler's parser,
4985 # not just through cpp. "Syntax error" is here to catch this case.
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4993 # include <limits.h>
4995 # include <assert.h>
4999 if { (ac_try="$ac_cpp conftest.$ac_ext"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005 $as_echo "$ac_try_echo") >&5
5006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } >/dev/null && {
5013 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5014 test ! -s conftest.err
5018 $as_echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 # Broken: fails on valid input.
5025 rm -f conftest.err conftest.$ac_ext
5027 # OK, works on sane cases. Now check whether nonexistent headers
5028 # can be detected and how.
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #include <ac_nonexistent.h>
5037 if { (ac_try="$ac_cpp conftest.$ac_ext"
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5043 $as_echo "$ac_try_echo") >&5
5044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5046 grep -v '^ *+' conftest.er1 >conftest.err
5048 cat conftest.err >&5
5049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null && {
5051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5052 test ! -s conftest.err
5054 # Broken: success on invalid input.
5057 $as_echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 # Passes both tests.
5065 rm -f conftest.err conftest.$ac_ext
5068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069 rm -f conftest.err conftest.$ac_ext
5070 if $ac_preproc_ok; then
5075 ac_cv_prog_CXXCPP=$CXXCPP
5078 CXXCPP=$ac_cv_prog_CXXCPP
5080 ac_cv_prog_CXXCPP=$CXXCPP
5082 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5083 $as_echo "$CXXCPP" >&6; }
5085 for ac_cxx_preproc_warn_flag in '' yes
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 # include <limits.h>
5102 # include <assert.h>
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null && {
5120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5121 test ! -s conftest.err
5125 $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Broken: fails on valid input.
5132 rm -f conftest.err conftest.$ac_ext
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 #include <ac_nonexistent.h>
5144 if { (ac_try="$ac_cpp conftest.$ac_ext"
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null && {
5158 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5159 test ! -s conftest.err
5161 # Broken: success on invalid input.
5164 $as_echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5167 # Passes both tests.
5172 rm -f conftest.err conftest.$ac_ext
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5180 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5183 See \`config.log' for more details." >&5
5184 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&2;}
5186 { (exit 1); exit 1; }; }; }
5190 ac_cpp='$CXXCPP $CPPFLAGS'
5191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5197 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5198 if test "${ac_cv_path_GREP+set}" = set; then
5199 $as_echo_n "(cached) " >&6
5201 if test -z "$GREP"; then
5202 ac_path_GREP_found=false
5203 # Loop through the user's path and test for each of PROGNAME-LIST
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208 test -z "$as_dir" && as_dir=.
5209 for ac_prog in grep ggrep; do
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5212 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5213 # Check for GNU ac_path_GREP and select it if it is found.
5214 # Check for GNU $ac_path_GREP
5215 case `"$ac_path_GREP" --version 2>&1` in
5217 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5220 $as_echo_n 0123456789 >"conftest.in"
5223 cat "conftest.in" "conftest.in" >"conftest.tmp"
5224 mv "conftest.tmp" "conftest.in"
5225 cp "conftest.in" "conftest.nl"
5226 $as_echo 'GREP' >> "conftest.nl"
5227 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5229 ac_count=`expr $ac_count + 1`
5230 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5231 # Best one so far, save it but keep looking for a better one
5232 ac_cv_path_GREP="$ac_path_GREP"
5233 ac_path_GREP_max=$ac_count
5235 # 10*(2^10) chars as input seems more than enough
5236 test $ac_count -gt 10 && break
5238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 $ac_path_GREP_found && break 3
5246 if test -z "$ac_cv_path_GREP"; then
5247 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5248 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5249 { (exit 1); exit 1; }; }
5252 ac_cv_path_GREP=$GREP
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5257 $as_echo "$ac_cv_path_GREP" >&6; }
5258 GREP="$ac_cv_path_GREP"
5261 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5262 $as_echo_n "checking for egrep... " >&6; }
5263 if test "${ac_cv_path_EGREP+set}" = set; then
5264 $as_echo_n "(cached) " >&6
5266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5267 then ac_cv_path_EGREP="$GREP -E"
5269 if test -z "$EGREP"; then
5270 ac_path_EGREP_found=false
5271 # Loop through the user's path and test for each of PROGNAME-LIST
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 test -z "$as_dir" && as_dir=.
5277 for ac_prog in egrep; do
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5280 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5281 # Check for GNU ac_path_EGREP and select it if it is found.
5282 # Check for GNU $ac_path_EGREP
5283 case `"$ac_path_EGREP" --version 2>&1` in
5285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5288 $as_echo_n 0123456789 >"conftest.in"
5291 cat "conftest.in" "conftest.in" >"conftest.tmp"
5292 mv "conftest.tmp" "conftest.in"
5293 cp "conftest.in" "conftest.nl"
5294 $as_echo 'EGREP' >> "conftest.nl"
5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297 ac_count=`expr $ac_count + 1`
5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5299 # Best one so far, save it but keep looking for a better one
5300 ac_cv_path_EGREP="$ac_path_EGREP"
5301 ac_path_EGREP_max=$ac_count
5303 # 10*(2^10) chars as input seems more than enough
5304 test $ac_count -gt 10 && break
5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 $ac_path_EGREP_found && break 3
5314 if test -z "$ac_cv_path_EGREP"; then
5315 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5316 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5317 { (exit 1); exit 1; }; }
5320 ac_cv_path_EGREP=$EGREP
5325 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5326 $as_echo "$ac_cv_path_EGREP" >&6; }
5327 EGREP="$ac_cv_path_EGREP"
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344 $EGREP "yes" >/dev/null 2>&1; then
5352 if test "$HAS_CLANG" = "no"; then
5353 if test "$GCC" = "yes"; then
5355 r="`eval echo '$'"CC"`"
5356 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5357 $as_echo_n "checking $r version... " >&6; }
5359 ## which doesn't work in ash, if /usr/bin/which isn't installed
5360 ## type -p doesn't work in ash
5361 ## command -v doesn't work in zsh
5362 ## command -v "$r" 2>&1
5363 ## this test should work in ash, bash, pdksh (ksh), zsh
5364 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5370 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5373 ## Workaround for broken Debian gcc version string:
5374 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5376 ## -V: Workaround for python
5380 ## Assume and hunt for dotted version multiplet.
5381 ## use eval trickery, because we cannot use multi-level $() instead of ``
5382 ## for compatibility reasons.
5384 ## grab the first version number in --version output.
5385 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5386 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5389 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5390 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5393 if test -z "$_ver"; then
5394 ## If empty, try date [fontforge]
5395 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5396 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5398 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5405 echo "$ver" | awk -F. '
5407 if ($3) {three = $3}
5410 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5413 echo "3.4" | awk -F. '
5415 if ($3) {three = $3}
5418 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5420 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5421 $as_echo "$ver" >&6; }
5422 if test "$num" -lt "$req"; then
5424 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5427 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5428 eval `echo $vervar=$num`
5429 ## AC_SUBST(`eval echo $vervar`)
5432 warn="$CC (Please install *GNU* cc)"
5434 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5438 # no else, we're fine with any clang
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447 if test -z "$CXX"; then
5448 if test -n "$CCC"; then
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_CXX+set}" = set; then
5459 $as_echo_n "(cached) " >&6
5461 if test -n "$CXX"; then
5462 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 if test -n "$CXX"; then
5483 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5484 $as_echo "$CXX" >&6; }
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5491 test -n "$CXX" && break
5494 if test -z "$CXX"; then
5496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$ac_ct_CXX"; then
5506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_ac_ct_CXX="$ac_prog"
5516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5526 if test -n "$ac_ct_CXX"; then
5527 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5528 $as_echo "$ac_ct_CXX" >&6; }
5530 { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5535 test -n "$ac_ct_CXX" && break
5538 if test "x$ac_ct_CXX" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5553 # Provide some information about the compiler.
5554 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5557 { (ac_try="$ac_compiler --version >&5"
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5563 $as_echo "$ac_try_echo") >&5
5564 (eval "$ac_compiler --version >&5") 2>&5
5566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }
5568 { (ac_try="$ac_compiler -v >&5"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575 (eval "$ac_compiler -v >&5") 2>&5
5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }
5579 { (ac_try="$ac_compiler -V >&5"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585 $as_echo "$ac_try_echo") >&5
5586 (eval "$ac_compiler -V >&5") 2>&5
5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }
5591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5592 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5593 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5594 $as_echo_n "(cached) " >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5621 $as_echo "$ac_try_echo") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_cxx_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5634 $as_echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5644 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5645 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5646 if test $ac_compiler_gnu = yes; then
5651 ac_test_CXXFLAGS=${CXXFLAGS+set}
5652 ac_save_CXXFLAGS=$CXXFLAGS
5653 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5654 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5655 if test "${ac_cv_prog_cxx_g+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5658 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5659 ac_cxx_werror_flag=yes
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5684 $as_echo "$ac_try_echo") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_cxx_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_cv_prog_cxx_g=yes
5697 $as_echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5701 cat >conftest.$ac_ext <<_ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_cxx_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5736 $as_echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5741 cat >conftest.$ac_ext <<_ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_cxx_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest.$ac_objext; then
5774 ac_cv_prog_cxx_g=yes
5776 $as_echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5792 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5793 if test "$ac_test_CXXFLAGS" = set; then
5794 CXXFLAGS=$ac_save_CXXFLAGS
5795 elif test $ac_cv_prog_cxx_g = yes; then
5796 if test "$GXX" = yes; then
5802 if test "$GXX" = yes; then
5809 ac_cpp='$CXXCPP $CPPFLAGS'
5810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5816 r="`eval echo '$'"CXX"`"
5817 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5820 ##STEPMAKE_WARN(cannot find . )
5824 if test $? -ne 0; then
5826 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5828 if test "REQUIRED" = "REQUIRED"; then
5829 command="echo ERROR: c++ not found"
5830 # abort configure process here?
5832 command="- echo c++ not found"
5834 eval "CXX"='$command'
5841 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5860 $EGREP "yes" >/dev/null 2>&1; then
5868 if test "$HAS_CLANG" = "no"; then
5869 if test "$GXX" = "yes"; then
5871 r="`eval echo '$'"CXX"`"
5872 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5873 $as_echo_n "checking $r version... " >&6; }
5875 ## which doesn't work in ash, if /usr/bin/which isn't installed
5876 ## type -p doesn't work in ash
5877 ## command -v doesn't work in zsh
5878 ## command -v "$r" 2>&1
5879 ## this test should work in ash, bash, pdksh (ksh), zsh
5880 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5886 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5889 ## Workaround for broken Debian gcc version string:
5890 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5892 ## -V: Workaround for python
5896 ## Assume and hunt for dotted version multiplet.
5897 ## use eval trickery, because we cannot use multi-level $() instead of ``
5898 ## for compatibility reasons.
5900 ## grab the first version number in --version output.
5901 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5902 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5905 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5906 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5909 if test -z "$_ver"; then
5910 ## If empty, try date [fontforge]
5911 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5912 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5914 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5921 echo "$ver" | awk -F. '
5923 if ($3) {three = $3}
5926 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5929 echo "3.4" | awk -F. '
5931 if ($3) {three = $3}
5934 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5936 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5937 $as_echo "$ver" >&6; }
5938 if test "$num" -lt "$req"; then
5940 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5943 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5944 eval `echo $vervar=$num`
5945 ## AC_SUBST(`eval echo $vervar`)
5948 warn="$CXX (Please install *GNU* c++)"
5950 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5954 # no else, we're fine with any clang
5957 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5958 $as_echo_n "checking options for known g++ bugs... " >&6; }
5959 case "$GXX:$CXX_VERSION" in
5961 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5962 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5963 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5966 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5967 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5968 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5970 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5971 $as_echo "none" >&6; }
5976 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5977 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5978 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5979 $as_echo_n "(cached) " >&6
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5988 template <class T> struct foo { static int baz; };
5989 template <class T> int foo<T>::baz = 1;
5994 return foo<int>::baz;
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (ac_try="$ac_link"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_link") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_cxx_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest$ac_exeext && {
6017 test "$cross_compiling" = yes ||
6018 $as_test_x conftest$ac_exeext
6020 stepmake_cv_need_explicit_instantiation=no
6022 $as_echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 stepmake_cv_need_explicit_instantiation=yes
6028 rm -rf conftest.dSYM
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030 conftest$ac_exeext conftest.$ac_ext
6032 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
6033 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
6034 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
6035 cat >>confdefs.h <<\_ACEOF
6036 #define NEED_EXPLICIT_INSTANTIATION 1
6042 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
6043 $as_echo_n "checking for stl.data () method... " >&6; }
6044 if test "${stepmake_cv_stl_data_method+set}" = set; then
6045 $as_echo_n "(cached) " >&6
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6055 using namespace std;
6057 void *p = v.data ();
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074 $as_echo "$ac_try_echo") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_cxx_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085 stepmake_cv_stl_data_method=yes
6087 $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 stepmake_cv_stl_data_method=no
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
6096 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6097 if test $stepmake_cv_stl_data_method = yes; then
6099 cat >>confdefs.h <<\_ACEOF
6100 #define HAVE_STL_DATA_METHOD 1
6109 # Extract the first word of "$ac_prog", so it can be a program name with args.
6110 set dummy $ac_prog; ac_word=$2
6111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_AR+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_AR="$ac_prog"
6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 if test -n "$AR"; then
6138 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6139 $as_echo "$AR" >&6; }
6141 { $as_echo "$as_me:$LINENO: result: no" >&5
6142 $as_echo "no" >&6; }
6146 test -n "$AR" && break
6148 test -n "$AR" || AR="no"
6152 r="`eval echo '$'"AR"`"
6153 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6156 ##STEPMAKE_WARN(cannot find . )
6160 if test $? -ne 0; then
6162 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6164 if test "REQUIRED" = "REQUIRED"; then
6165 command="echo ERROR: ar not found"
6166 # abort configure process here?
6168 command="- echo ar not found"
6170 eval "AR"='$command'
6176 if test $? -eq 0 -a -n ""; then
6178 r="`eval echo '$'"AR"`"
6179 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6180 $as_echo_n "checking $r version... " >&6; }
6182 ## which doesn't work in ash, if /usr/bin/which isn't installed
6183 ## type -p doesn't work in ash
6184 ## command -v doesn't work in zsh
6185 ## command -v "$r" 2>&1
6186 ## this test should work in ash, bash, pdksh (ksh), zsh
6187 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6193 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6196 ## Workaround for broken Debian gcc version string:
6197 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6199 ## -V: Workaround for python
6203 ## Assume and hunt for dotted version multiplet.
6204 ## use eval trickery, because we cannot use multi-level $() instead of ``
6205 ## for compatibility reasons.
6207 ## grab the first version number in --version output.
6208 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6209 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6212 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6213 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6216 if test -z "$_ver"; then
6217 ## If empty, try date [fontforge]
6218 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6219 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6221 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6228 echo "$ver" | awk -F. '
6230 if ($3) {three = $3}
6233 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6238 if ($3) {three = $3}
6241 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6243 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6244 $as_echo "$ver" >&6; }
6245 if test "$num" -lt "$req"; then
6247 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6250 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6251 eval `echo $vervar=$num`
6252 ## AC_SUBST(`eval echo $vervar`)
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$RANLIB"; then
6265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6289 { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296 ac_ct_RANLIB=$RANLIB
6297 # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6304 if test -n "$ac_ct_RANLIB"; then
6305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_RANLIB="ranlib"
6315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6329 { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6333 if test "x$ac_ct_RANLIB" = x; then
6336 case $cross_compiling:$ac_tool_warned in
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6342 RANLIB=$ac_ct_RANLIB
6345 RANLIB="$ac_cv_prog_RANLIB"
6350 r="`eval echo '$'"RANLIB"`"
6351 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6354 ##STEPMAKE_WARN(cannot find . )
6358 if test $? -ne 0; then
6360 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6362 if test "REQUIRED" = "REQUIRED"; then
6363 command="echo ERROR: ranlib not found"
6364 # abort configure process here?
6366 command="- echo ranlib not found"
6368 eval "RANLIB"='$command'
6377 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6379 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6380 $as_echo_n "(cached) " >&6
6382 ac_check_lib_save_LIBS=$LIBS
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 /* Override any GCC internal prototype to avoid an error.
6392 Use char because int might match the return type of a GCC
6393 builtin and then its argument prototype would still apply. */
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (ac_try="$ac_link"
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6413 $as_echo "$ac_try_echo") >&5
6414 (eval "$ac_link") 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_cxx_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest$ac_exeext && {
6424 test "$cross_compiling" = yes ||
6425 $as_test_x conftest$ac_exeext
6427 ac_cv_lib_dl_dlopen=yes
6429 $as_echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_cv_lib_dl_dlopen=no
6435 rm -rf conftest.dSYM
6436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6441 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6442 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define HAVE_LIBDL 1
6452 for ac_func in dlopen
6454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 $as_echo_n "checking for $ac_func... " >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458 $as_echo_n "(cached) " >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468 #define $ac_func innocuous_$ac_func
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6476 # include <limits.h>
6478 # include <assert.h>
6483 /* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
6490 /* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6512 $as_echo "$ac_try_echo") >&5
6513 (eval "$ac_link") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_cxx_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest$ac_exeext && {
6523 test "$cross_compiling" = yes ||
6524 $as_test_x conftest$ac_exeext
6526 eval "$as_ac_var=yes"
6528 $as_echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 eval "$as_ac_var=no"
6534 rm -rf conftest.dSYM
6535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536 conftest$ac_exeext conftest.$ac_ext
6538 ac_res=`eval 'as_val=${'$as_ac_var'}
6539 $as_echo "$as_val"'`
6540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6541 $as_echo "$ac_res" >&6; }
6542 as_val=`eval 'as_val=${'$as_ac_var'}
6543 $as_echo "$as_val"'`
6544 if test "x$as_val" = x""yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6553 # Do not use bison 1.50 and 1.75.
6554 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6556 # ugh, automake: we want (and check for) bison
6557 for ac_prog in 'bison -y' byacc
6559 # Extract the first word of "$ac_prog", so it can be a program name with args.
6560 set dummy $ac_prog; ac_word=$2
6561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if test "${ac_cv_prog_YACC+set}" = set; then
6564 $as_echo_n "(cached) " >&6
6566 if test -n "$YACC"; then
6567 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_YACC="$ac_prog"
6577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 YACC=$ac_cv_prog_YACC
6587 if test -n "$YACC"; then
6588 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6589 $as_echo "$YACC" >&6; }
6591 { $as_echo "$as_me:$LINENO: result: no" >&5
6592 $as_echo "no" >&6; }
6596 test -n "$YACC" && break
6598 test -n "$YACC" || YACC="yacc"
6602 for ac_prog in bison
6604 # Extract the first word of "$ac_prog", so it can be a program name with args.
6605 set dummy $ac_prog; ac_word=$2
6606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_BISON+set}" = set; then
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$BISON"; then
6612 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_BISON="$ac_prog"
6622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 BISON=$ac_cv_prog_BISON
6632 if test -n "$BISON"; then
6633 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6634 $as_echo "$BISON" >&6; }
6636 { $as_echo "$as_me:$LINENO: result: no" >&5
6637 $as_echo "no" >&6; }
6641 test -n "$BISON" && break
6643 test -n "$BISON" || BISON="no"
6647 r="`eval echo '$'"BISON"`"
6648 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6651 ##STEPMAKE_WARN(cannot find . )
6655 if test $? -ne 0; then
6657 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6659 if test "REQUIRED" = "REQUIRED"; then
6660 command="echo ERROR: bison not found"
6661 # abort configure process here?
6663 command="- echo bison not found"
6665 eval "BISON"='$command'
6671 if test $? -eq 0 -a -n ""; then
6673 r="`eval echo '$'"BISON"`"
6674 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6675 $as_echo_n "checking $r version... " >&6; }
6677 ## which doesn't work in ash, if /usr/bin/which isn't installed
6678 ## type -p doesn't work in ash
6679 ## command -v doesn't work in zsh
6680 ## command -v "$r" 2>&1
6681 ## this test should work in ash, bash, pdksh (ksh), zsh
6682 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6688 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6691 ## Workaround for broken Debian gcc version string:
6692 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6694 ## -V: Workaround for python
6698 ## Assume and hunt for dotted version multiplet.
6699 ## use eval trickery, because we cannot use multi-level $() instead of ``
6700 ## for compatibility reasons.
6702 ## grab the first version number in --version output.
6703 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6704 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6707 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6708 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6711 if test -z "$_ver"; then
6712 ## If empty, try date [fontforge]
6713 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6714 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6716 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6723 echo "$ver" | awk -F. '
6725 if ($3) {three = $3}
6728 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6733 if ($3) {three = $3}
6736 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6738 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6739 $as_echo "$ver" >&6; }
6740 if test "$num" -lt "$req"; then
6742 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6745 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6746 eval `echo $vervar=$num`
6747 ## AC_SUBST(`eval echo $vervar`)
6752 # urg. should test functionality rather than version.
6753 if test "$BISON" = "bison" -a -n "1.29"; then
6755 r="`eval echo '$'"BISON"`"
6756 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6757 $as_echo_n "checking $r version... " >&6; }
6759 ## which doesn't work in ash, if /usr/bin/which isn't installed
6760 ## type -p doesn't work in ash
6761 ## command -v doesn't work in zsh
6762 ## command -v "$r" 2>&1
6763 ## this test should work in ash, bash, pdksh (ksh), zsh
6764 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6770 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6773 ## Workaround for broken Debian gcc version string:
6774 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6776 ## -V: Workaround for python
6780 ## Assume and hunt for dotted version multiplet.
6781 ## use eval trickery, because we cannot use multi-level $() instead of ``
6782 ## for compatibility reasons.
6784 ## grab the first version number in --version output.
6785 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6786 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6789 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6790 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6793 if test -z "$_ver"; then
6794 ## If empty, try date [fontforge]
6795 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6796 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6798 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6805 echo "$ver" | awk -F. '
6807 if ($3) {three = $3}
6810 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6813 echo "1.29" | awk -F. '
6815 if ($3) {three = $3}
6818 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6820 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6821 $as_echo "$ver" >&6; }
6822 if test "$num" -lt "$req"; then
6824 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6827 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6828 eval `echo $vervar=$num`
6829 ## AC_SUBST(`eval echo $vervar`)
6834 # ugh, automake: we want (and check for) flex
6836 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6840 ac_cv_prog_lex_root=lex.yy
6844 # Extract the first word of "$ac_prog", so it can be a program name with args.
6845 set dummy $ac_prog; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_FLEX+set}" = set; then
6849 $as_echo_n "(cached) " >&6
6851 if test -n "$FLEX"; then
6852 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_FLEX="$ac_prog"
6862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 FLEX=$ac_cv_prog_FLEX
6872 if test -n "$FLEX"; then
6873 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6874 $as_echo "$FLEX" >&6; }
6876 { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6881 test -n "$FLEX" && break
6883 test -n "$FLEX" || FLEX="no"
6887 r="`eval echo '$'"FLEX"`"
6888 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6891 ##STEPMAKE_WARN(cannot find . )
6895 if test $? -ne 0; then
6897 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6899 if test "REQUIRED" = "REQUIRED"; then
6900 command="echo ERROR: flex not found"
6901 # abort configure process here?
6903 command="- echo flex not found"
6905 eval "FLEX"='$command'
6911 if test $? -eq 0 -a -n ""; then
6913 r="`eval echo '$'"FLEX"`"
6914 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6915 $as_echo_n "checking $r version... " >&6; }
6917 ## which doesn't work in ash, if /usr/bin/which isn't installed
6918 ## type -p doesn't work in ash
6919 ## command -v doesn't work in zsh
6920 ## command -v "$r" 2>&1
6921 ## this test should work in ash, bash, pdksh (ksh), zsh
6922 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6928 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6931 ## Workaround for broken Debian gcc version string:
6932 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6934 ## -V: Workaround for python
6938 ## Assume and hunt for dotted version multiplet.
6939 ## use eval trickery, because we cannot use multi-level $() instead of ``
6940 ## for compatibility reasons.
6942 ## grab the first version number in --version output.
6943 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6944 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6947 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6948 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6951 if test -z "$_ver"; then
6952 ## If empty, try date [fontforge]
6953 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6954 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6956 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6963 echo "$ver" | awk -F. '
6965 if ($3) {three = $3}
6968 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6973 if ($3) {three = $3}
6976 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6978 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6979 $as_echo "$ver" >&6; }
6980 if test "$num" -lt "$req"; then
6982 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6985 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6986 eval `echo $vervar=$num`
6987 ## AC_SUBST(`eval echo $vervar`)
6992 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6993 $as_echo_n "checking for ANSI C header files... " >&6; }
6994 if test "${ac_cv_header_stdc+set}" = set; then
6995 $as_echo_n "(cached) " >&6
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7016 rm -f conftest.$ac_objext
7017 if { (ac_try="$ac_compile"
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7023 $as_echo "$ac_try_echo") >&5
7024 (eval "$ac_compile") 2>conftest.er1
7026 grep -v '^ *+' conftest.er1 >conftest.err
7028 cat conftest.err >&5
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && {
7031 test -z "$ac_cxx_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest.$ac_objext; then
7034 ac_cv_header_stdc=yes
7036 $as_echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_header_stdc=no
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 if test $ac_cv_header_stdc = yes; then
7045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056 $EGREP "memchr" >/dev/null 2>&1; then
7059 ac_cv_header_stdc=no
7065 if test $ac_cv_header_stdc = yes; then
7066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7067 cat >conftest.$ac_ext <<_ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077 $EGREP "free" >/dev/null 2>&1; then
7080 ac_cv_header_stdc=no
7086 if test $ac_cv_header_stdc = yes; then
7087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7088 if test "$cross_compiling" = yes; then
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7099 #if ((' ' & 0x0FF) == 0x020)
7100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7103 # define ISLOWER(c) \
7104 (('a' <= (c) && (c) <= 'i') \
7105 || ('j' <= (c) && (c) <= 'r') \
7106 || ('s' <= (c) && (c) <= 'z'))
7107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7115 for (i = 0; i < 256; i++)
7116 if (XOR (islower (i), ISLOWER (i))
7117 || toupper (i) != TOUPPER (i))
7122 rm -f conftest$ac_exeext
7123 if { (ac_try="$ac_link"
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129 $as_echo "$ac_try_echo") >&5
7130 (eval "$ac_link") 2>&5
7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7134 { (case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140 (eval "$ac_try") 2>&5
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7146 $as_echo "$as_me: program exited with status $ac_status" >&5
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_header_stdc=no
7153 rm -rf conftest.dSYM
7154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7161 $as_echo "$ac_cv_header_stdc" >&6; }
7162 if test $ac_cv_header_stdc = yes; then
7164 cat >>confdefs.h <<\_ACEOF
7165 #define STDC_HEADERS 1
7170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7181 inttypes.h stdint.h unistd.h
7183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7185 $as_echo_n "checking for $ac_header... " >&6; }
7186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7187 $as_echo_n "(cached) " >&6
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 $ac_includes_default
7197 #include <$ac_header>
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7206 $as_echo "$ac_try_echo") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7209 grep -v '^ *+' conftest.er1 >conftest.err
7211 cat conftest.err >&5
7212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_cxx_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 eval "$as_ac_Header=yes"
7219 $as_echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 eval "$as_ac_Header=no"
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 ac_res=`eval 'as_val=${'$as_ac_Header'}
7228 $as_echo "$as_val"'`
7229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7230 $as_echo "$ac_res" >&6; }
7231 as_val=`eval 'as_val=${'$as_ac_Header'}
7232 $as_echo "$as_val"'`
7233 if test "x$as_val" = x""yes; then
7234 cat >>confdefs.h <<_ACEOF
7235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245 for ac_header in FlexLexer.h
7247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7250 $as_echo_n "checking for $ac_header... " >&6; }
7251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7252 $as_echo_n "(cached) " >&6
7254 ac_res=`eval 'as_val=${'$as_ac_Header'}
7255 $as_echo "$as_val"'`
7256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7257 $as_echo "$ac_res" >&6; }
7259 # Is the header compilable?
7260 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7261 $as_echo_n "checking $ac_header usability... " >&6; }
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7269 #include <$ac_header>
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_cxx_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_header_compiler=yes
7291 $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ac_header_compiler=no
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7299 $as_echo "$ac_header_compiler" >&6; }
7301 # Is the header present?
7302 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7303 $as_echo_n "checking $ac_header presence... " >&6; }
7304 cat >conftest.$ac_ext <<_ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 #include <$ac_header>
7312 if { (ac_try="$ac_cpp conftest.$ac_ext"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7318 $as_echo "$ac_try_echo") >&5
7319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } >/dev/null && {
7326 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7327 test ! -s conftest.err
7329 ac_header_preproc=yes
7331 $as_echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_header_preproc=no
7337 rm -f conftest.err conftest.$ac_ext
7338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7339 $as_echo "$ac_header_preproc" >&6; }
7341 # So? What about this header?
7342 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7345 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7348 ac_header_preproc=yes
7351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7352 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7354 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7356 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7358 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7362 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7367 $as_echo_n "checking for $ac_header... " >&6; }
7368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7369 $as_echo_n "(cached) " >&6
7371 eval "$as_ac_Header=\$ac_header_preproc"
7373 ac_res=`eval 'as_val=${'$as_ac_Header'}
7374 $as_echo "$as_val"'`
7375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7376 $as_echo "$ac_res" >&6; }
7379 as_val=`eval 'as_val=${'$as_ac_Header'}
7380 $as_echo "$as_val"'`
7381 if test "x$as_val" = x""yes; then
7382 cat >>confdefs.h <<_ACEOF
7383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392 if test $? -ne 0; then
7393 warn='FlexLexer.h (flex package)'
7395 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7398 # check for yyFlexLexer.yy_current_buffer,
7399 # in 2.5.4 <= flex < 2.5.29
7400 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7401 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7402 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7412 using namespace std;
7413 #include <FlexLexer.h>
7414 class yy_flex_lexer: public yyFlexLexer
7419 yy_current_buffer = 0;
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7438 $as_echo "$ac_try_echo") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_cxx_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 stepmake_cv_flexlexer_yy_current_buffer=yes
7451 $as_echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 stepmake_cv_flexlexer_yy_current_buffer=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7460 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7461 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7463 cat >>confdefs.h <<\_ACEOF
7464 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7470 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7471 $as_echo_n "checking FlexLexer.h location... " >&6; }
7474 cat <<EOF > conftest.cc
7475 using namespace std;
7476 #include <FlexLexer.h>
7478 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7479 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7480 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7483 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7484 $as_echo "$FLEXLEXER_FILE" >&6; }
7492 # Check whether --with-localedir was given.
7493 if test "${with_localedir+set}" = set; then
7494 withval=$with_localedir; localedir=$with_localedir
7496 localedir='${prefix}/share/locale'
7501 # Check whether --with-lang was given.
7502 if test "${with_lang+set}" = set; then
7503 withval=$with_lang; language=$with_lang
7509 { $as_echo "$as_me:$LINENO: checking language" >&5
7510 $as_echo_n "checking language... " >&6; }
7512 En* | en* | Am* | am* | US* | us*)
7514 NL | nl | Du* | du* | Ned* | ned*)
7521 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7522 $as_echo "$lang" >&6; }
7524 if test "$lang" = "unknown" ; then
7526 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7527 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7535 if test "$prefix" = "NONE"; then
7536 presome=${ac_default_prefix}
7538 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7541 cat >>confdefs.h <<_ACEOF
7542 #define LOCALEDIR "${LOCALEDIR}"
7546 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7547 $as_echo_n "checking for gettext in -lintl... " >&6; }
7548 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7549 $as_echo_n "(cached) " >&6
7551 ac_check_lib_save_LIBS=$LIBS
7553 cat >conftest.$ac_ext <<_ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_link") 2>conftest.er1
7585 grep -v '^ *+' conftest.er1 >conftest.err
7587 cat conftest.err >&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_cxx_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest$ac_exeext && {
7593 test "$cross_compiling" = yes ||
7594 $as_test_x conftest$ac_exeext
7596 ac_cv_lib_intl_gettext=yes
7598 $as_echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7601 ac_cv_lib_intl_gettext=no
7604 rm -rf conftest.dSYM
7605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7610 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7611 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_LIBINTL 1
7621 for ac_func in gettext
7623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7624 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7625 $as_echo_n "checking for $ac_func... " >&6; }
7626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7627 $as_echo_n "(cached) " >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7637 #define $ac_func innocuous_$ac_func
7639 /* System header to define __stub macros and hopefully few prototypes,
7640 which can conflict with char $ac_func (); below.
7641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642 <limits.h> exists even on freestanding compilers. */
7645 # include <limits.h>
7647 # include <assert.h>
7652 /* Override any GCC internal prototype to avoid an error.
7653 Use char because int might match the return type of a GCC
7654 builtin and then its argument prototype would still apply. */
7659 /* The GNU C library defines this for functions which it implements
7660 to always fail with ENOSYS. Some functions are actually named
7661 something starting with __ and the normal name is an alias. */
7662 #if defined __stub_$ac_func || defined __stub___$ac_func
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (ac_try="$ac_link"
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7681 $as_echo "$ac_try_echo") >&5
7682 (eval "$ac_link") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_cxx_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest$ac_exeext && {
7692 test "$cross_compiling" = yes ||
7693 $as_test_x conftest$ac_exeext
7695 eval "$as_ac_var=yes"
7697 $as_echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 eval "$as_ac_var=no"
7703 rm -rf conftest.dSYM
7704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7705 conftest$ac_exeext conftest.$ac_ext
7707 ac_res=`eval 'as_val=${'$as_ac_var'}
7708 $as_echo "$as_val"'`
7709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7710 $as_echo "$ac_res" >&6; }
7711 as_val=`eval 'as_val=${'$as_ac_var'}
7712 $as_echo "$as_val"'`
7713 if test "x$as_val" = x""yes; then
7714 cat >>confdefs.h <<_ACEOF
7715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7724 for ac_prog in msgfmt
7726 # Extract the first word of "$ac_prog", so it can be a program name with args.
7727 set dummy $ac_prog; ac_word=$2
7728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$MSGFMT"; then
7734 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_prog_MSGFMT="$ac_prog"
7744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 MSGFMT=$ac_cv_prog_MSGFMT
7754 if test -n "$MSGFMT"; then
7755 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7756 $as_echo "$MSGFMT" >&6; }
7758 { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7763 test -n "$MSGFMT" && break
7765 test -n "$MSGFMT" || MSGFMT="no"
7769 r="`eval echo '$'"MSGFMT"`"
7770 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7773 ##STEPMAKE_WARN(cannot find . )
7777 if test $? -ne 0; then
7779 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7781 if test "REQUIRED" = "REQUIRED"; then
7782 command="echo ERROR: msgfmt not found"
7783 # abort configure process here?
7785 command="- echo msgfmt not found"
7787 eval "MSGFMT"='$command'
7793 if test $? -eq 0 -a -n ""; then
7795 r="`eval echo '$'"MSGFMT"`"
7796 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7797 $as_echo_n "checking $r version... " >&6; }
7799 ## which doesn't work in ash, if /usr/bin/which isn't installed
7800 ## type -p doesn't work in ash
7801 ## command -v doesn't work in zsh
7802 ## command -v "$r" 2>&1
7803 ## this test should work in ash, bash, pdksh (ksh), zsh
7804 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7810 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7813 ## Workaround for broken Debian gcc version string:
7814 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7816 ## -V: Workaround for python
7820 ## Assume and hunt for dotted version multiplet.
7821 ## use eval trickery, because we cannot use multi-level $() instead of ``
7822 ## for compatibility reasons.
7824 ## grab the first version number in --version output.
7825 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7826 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7829 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7830 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7833 if test -z "$_ver"; then
7834 ## If empty, try date [fontforge]
7835 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7836 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7838 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7845 echo "$ver" | awk -F. '
7847 if ($3) {three = $3}
7850 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7855 if ($3) {three = $3}
7858 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7860 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7861 $as_echo "$ver" >&6; }
7862 if test "$num" -lt "$req"; then
7864 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7867 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7868 eval `echo $vervar=$num`
7869 ## AC_SUBST(`eval echo $vervar`)
7876 for ac_prog in mf-nowin mf mfw mfont
7878 # Extract the first word of "$ac_prog", so it can be a program name with args.
7879 set dummy $ac_prog; ac_word=$2
7880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if test "${ac_cv_prog_METAFONT+set}" = set; then
7883 $as_echo_n "(cached) " >&6
7885 if test -n "$METAFONT"; then
7886 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_prog_METAFONT="$ac_prog"
7896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 METAFONT=$ac_cv_prog_METAFONT
7906 if test -n "$METAFONT"; then
7907 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7908 $as_echo "$METAFONT" >&6; }
7910 { $as_echo "$as_me:$LINENO: result: no" >&5
7911 $as_echo "no" >&6; }
7915 test -n "$METAFONT" && break
7917 test -n "$METAFONT" || METAFONT="no"
7921 r="`eval echo '$'"METAFONT"`"
7922 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7925 ##STEPMAKE_WARN(cannot find . )
7929 if test $? -ne 0; then
7931 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7933 if test "REQUIRED" = "REQUIRED"; then
7934 command="echo ERROR: mf-nowin mf mfw mfont not found"
7935 # abort configure process here?
7937 command="- echo mf-nowin mf mfw mfont not found"
7939 eval "METAFONT"='$command'
7945 if test $? -eq 0 -a -n ""; then
7947 r="`eval echo '$'"METAFONT"`"
7948 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7949 $as_echo_n "checking $r version... " >&6; }
7951 ## which doesn't work in ash, if /usr/bin/which isn't installed
7952 ## type -p doesn't work in ash
7953 ## command -v doesn't work in zsh
7954 ## command -v "$r" 2>&1
7955 ## this test should work in ash, bash, pdksh (ksh), zsh
7956 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7962 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7965 ## Workaround for broken Debian gcc version string:
7966 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7968 ## -V: Workaround for python
7972 ## Assume and hunt for dotted version multiplet.
7973 ## use eval trickery, because we cannot use multi-level $() instead of ``
7974 ## for compatibility reasons.
7976 ## grab the first version number in --version output.
7977 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7978 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7981 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7982 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7985 if test -z "$_ver"; then
7986 ## If empty, try date [fontforge]
7987 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7988 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7990 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7997 echo "$ver" | awk -F. '
7999 if ($3) {three = $3}
8002 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8007 if ($3) {three = $3}
8010 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8012 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8013 $as_echo "$ver" >&6; }
8014 if test "$num" -lt "$req"; then
8016 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8019 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
8020 eval `echo $vervar=$num`
8021 ## AC_SUBST(`eval echo $vervar`)
8026 for ac_prog in mpost
8028 # Extract the first word of "$ac_prog", so it can be a program name with args.
8029 set dummy $ac_prog; ac_word=$2
8030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_METAPOST+set}" = set; then
8033 $as_echo_n "(cached) " >&6
8035 if test -n "$METAPOST"; then
8036 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_METAPOST="$ac_prog"
8046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 METAPOST=$ac_cv_prog_METAPOST
8056 if test -n "$METAPOST"; then
8057 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
8058 $as_echo "$METAPOST" >&6; }
8060 { $as_echo "$as_me:$LINENO: result: no" >&5
8061 $as_echo "no" >&6; }
8065 test -n "$METAPOST" && break
8067 test -n "$METAPOST" || METAPOST="no"
8071 r="`eval echo '$'"METAPOST"`"
8072 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
8075 ##STEPMAKE_WARN(cannot find . )
8079 if test $? -ne 0; then
8081 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
8083 if test "REQUIRED" = "REQUIRED"; then
8084 command="echo ERROR: mpost not found"
8085 # abort configure process here?
8087 command="- echo mpost not found"
8089 eval "METAPOST"='$command'
8095 if test $? -eq 0 -a -n ""; then
8097 r="`eval echo '$'"METAPOST"`"
8098 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8099 $as_echo_n "checking $r version... " >&6; }
8101 ## which doesn't work in ash, if /usr/bin/which isn't installed
8102 ## type -p doesn't work in ash
8103 ## command -v doesn't work in zsh
8104 ## command -v "$r" 2>&1
8105 ## this test should work in ash, bash, pdksh (ksh), zsh
8106 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8112 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8115 ## Workaround for broken Debian gcc version string:
8116 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8118 ## -V: Workaround for python
8122 ## Assume and hunt for dotted version multiplet.
8123 ## use eval trickery, because we cannot use multi-level $() instead of ``
8124 ## for compatibility reasons.
8126 ## grab the first version number in --version output.
8127 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8128 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8131 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8132 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8135 if test -z "$_ver"; then
8136 ## If empty, try date [fontforge]
8137 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8138 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8140 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8147 echo "$ver" | awk -F. '
8149 if ($3) {three = $3}
8152 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8157 if ($3) {three = $3}
8160 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8162 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8163 $as_echo "$ver" >&6; }
8164 if test "$num" -lt "$req"; then
8166 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8169 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8170 eval `echo $vervar=$num`
8171 ## AC_SUBST(`eval echo $vervar`)
8175 if test "$METAPOST" != ""; then
8177 ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8180 ## Workaround for broken Debian gcc version string:
8181 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8183 ## -V: Workaround for python
8187 ## Assume and hunt for dotted version multiplet.
8188 ## use eval trickery, because we cannot use multi-level $() instead of ``
8189 ## for compatibility reasons.
8191 ## grab the first version number in --version output.
8192 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8193 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8196 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8197 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8200 if test -z "$_ver"; then
8201 ## If empty, try date [fontforge]
8202 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8203 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8205 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8211 echo "$ver" | awk -F. '
8213 if ($3) {three = $3}
8216 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8218 # Avoid buggy metapost versions: 1.600 <= x < 1.803
8219 if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8221 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8226 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8227 $as_echo_n "checking for working metafont mode... " >&6; }
8228 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8229 for MFMODE in $modelist; do
8230 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8231 if test -f mfput.tfm; then
8235 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8236 $as_echo "$MFMODE" >&6; }
8244 for ac_prog in kpsewhich
8246 # Extract the first word of "$ac_prog", so it can be a program name with args.
8247 set dummy $ac_prog; ac_word=$2
8248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8251 $as_echo_n "(cached) " >&6
8253 if test -n "$KPSEWHICH"; then
8254 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_KPSEWHICH="$ac_prog"
8264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8274 if test -n "$KPSEWHICH"; then
8275 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8276 $as_echo "$KPSEWHICH" >&6; }
8278 { $as_echo "$as_me:$LINENO: result: no" >&5
8279 $as_echo "no" >&6; }
8283 test -n "$KPSEWHICH" && break
8285 test -n "$KPSEWHICH" || KPSEWHICH="no"
8289 r="`eval echo '$'"KPSEWHICH"`"
8290 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8293 ##STEPMAKE_WARN(cannot find . )
8297 if test $? -ne 0; then
8299 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8301 if test "REQUIRED" = "REQUIRED"; then
8302 command="echo ERROR: kpsewhich not found"
8303 # abort configure process here?
8305 command="- echo kpsewhich not found"
8307 eval "KPSEWHICH"='$command'
8313 if test $? -eq 0 -a -n ""; then
8315 r="`eval echo '$'"KPSEWHICH"`"
8316 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8317 $as_echo_n "checking $r version... " >&6; }
8319 ## which doesn't work in ash, if /usr/bin/which isn't installed
8320 ## type -p doesn't work in ash
8321 ## command -v doesn't work in zsh
8322 ## command -v "$r" 2>&1
8323 ## this test should work in ash, bash, pdksh (ksh), zsh
8324 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8330 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8333 ## Workaround for broken Debian gcc version string:
8334 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8336 ## -V: Workaround for python
8340 ## Assume and hunt for dotted version multiplet.
8341 ## use eval trickery, because we cannot use multi-level $() instead of ``
8342 ## for compatibility reasons.
8344 ## grab the first version number in --version output.
8345 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8346 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8349 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8350 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8353 if test -z "$_ver"; then
8354 ## If empty, try date [fontforge]
8355 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8356 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8358 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8365 echo "$ver" | awk -F. '
8367 if ($3) {three = $3}
8370 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8375 if ($3) {three = $3}
8378 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8380 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8381 $as_echo "$ver" >&6; }
8382 if test "$num" -lt "$req"; then
8384 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8387 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8388 eval `echo $vervar=$num`
8389 ## AC_SUBST(`eval echo $vervar`)
8394 { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8395 $as_echo_n "checking for metapost required files... " >&6; }
8396 if test "$MFPLAIN_MP" = ""; then
8397 MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8399 if test "$MFPLAIN_MP" = ""; then
8400 { $as_echo "$as_me:$LINENO: result: no" >&5
8401 $as_echo "no" >&6; }
8403 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8406 { $as_echo "$as_me:$LINENO: result: yes" >&5
8407 $as_echo "yes" >&6; }
8410 if test "$GUILEv2" = "yes"
8413 ## First, let's just see if we can find Guile at all.
8414 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8415 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8416 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8417 $as_echo_n "checking for guile-config... " >&6; }
8418 guile_config="guile-config"
8420 for r in $GUILE_CONFIG \
8421 $target_guile_config $host_guile_config $build_guile_config \
8423 guile2-config guile-2-config guile-config-2 \
8424 guile2.2-config guile-2.2-config guile-config-2.2 \
8425 guile2.0-config guile-2.0-config guile-config-2.0 \
8426 guile1-config guile-1-config guile-config-1 \
8427 guile1.9-config guile-1.9-config guile-config-1.9 \
8428 guile1.8-config guile-1.8-config guile-config-1.8; \
8431 ## which doesn't work in ash, if /usr/bin/which isn't installed
8432 ## type -p doesn't work in ash
8433 ## command -v doesn't work in zsh
8434 ## command -v "$r" 2>&1
8435 ## this test should work in ash, bash, pdksh (ksh), zsh
8436 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8438 if ! $exe --version > /dev/null 2>&1 ; then
8442 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8445 ## Workaround for broken Debian gcc version string:
8446 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8448 ## -V: Workaround for python
8452 ## Assume and hunt for dotted version multiplet.
8453 ## use eval trickery, because we cannot use multi-level $() instead of ``
8454 ## for compatibility reasons.
8456 ## grab the first version number in --version output.
8457 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8458 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8461 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8462 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8465 if test -z "$_ver"; then
8466 ## If empty, try date [fontforge]
8467 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8468 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8470 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8476 echo "$ver" | awk -F. '
8478 if ($3) {three = $3}
8481 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8484 echo "2.0.7" | awk -F. '
8486 if ($3) {three = $3}
8489 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8492 echo "2.3.0" | awk -F. '
8494 if ($3) {three = $3}
8497 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8499 if test -n "2.0.7" -a "$num" -lt "$req"; then
8500 guile_config="$r >= 2.0.7 (installed: $ver)"
8503 if test -n "2.3.0" -a "$num" -ge "$sup"; then
8504 guile_config="$r < 2.3.0 (installed: $ver)"
8513 { $as_echo "$as_me:$LINENO: result: $found" >&5
8514 $as_echo "$found" >&6; }
8515 if test "$found" != "no"; then
8516 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8517 $as_echo_n "checking $guile_config version... " >&6; }
8518 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8519 $as_echo "$ver" >&6; }
8523 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8529 guile_version="$ver"
8531 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8532 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8533 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8537 ## which doesn't work in ash, if /usr/bin/which isn't installed
8538 ## type -p doesn't work in ash
8539 ## command -v doesn't work in zsh
8540 ## command -v "$guile_config" 2>&1
8541 ## this test should work in ash, bash, pdksh (ksh), zsh
8542 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8544 if test -x $exe; then
8545 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8546 $as_echo_n "checking guile compile flags... " >&6; }
8547 GUILE_CFLAGS="`$guile_config compile`"
8548 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8549 $as_echo "$GUILE_CFLAGS" >&6; }
8550 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8551 $as_echo_n "checking guile link flags... " >&6; }
8552 GUILE_LDFLAGS="`$guile_config link`"
8553 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8554 $as_echo "$GUILE_LDFLAGS" >&6; }
8559 save_CPPFLAGS="$CPPFLAGS"
8561 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8562 LIBS="$GUILE_LDFLAGS $LIBS"
8564 for ac_header in libguile.h
8566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 $as_echo_n "checking for $ac_header... " >&6; }
8570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8571 $as_echo_n "(cached) " >&6
8573 ac_res=`eval 'as_val=${'$as_ac_Header'}
8574 $as_echo "$as_val"'`
8575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8576 $as_echo "$ac_res" >&6; }
8578 # Is the header compilable?
8579 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8580 $as_echo_n "checking $ac_header usability... " >&6; }
8581 cat >conftest.$ac_ext <<_ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 $ac_includes_default
8588 #include <$ac_header>
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_cxx_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8608 ac_header_compiler=yes
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_header_compiler=no
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 $as_echo "$ac_header_compiler" >&6; }
8620 # Is the header present?
8621 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 $as_echo_n "checking $ac_header presence... " >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 #include <$ac_header>
8631 if { (ac_try="$ac_cpp conftest.$ac_ext"
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8637 $as_echo "$ac_try_echo") >&5
8638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null && {
8645 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8646 test ! -s conftest.err
8648 ac_header_preproc=yes
8650 $as_echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 ac_header_preproc=no
8656 rm -f conftest.err conftest.$ac_ext
8657 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 $as_echo "$ac_header_preproc" >&6; }
8660 # So? What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667 ac_header_preproc=yes
8670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8673 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8677 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8685 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8686 $as_echo_n "checking for $ac_header... " >&6; }
8687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8688 $as_echo_n "(cached) " >&6
8690 eval "$as_ac_Header=\$ac_header_preproc"
8692 ac_res=`eval 'as_val=${'$as_ac_Header'}
8693 $as_echo "$as_val"'`
8694 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8695 $as_echo "$ac_res" >&6; }
8698 as_val=`eval 'as_val=${'$as_ac_Header'}
8699 $as_echo "$as_val"'`
8700 if test "x$as_val" = x""yes; then
8701 cat >>confdefs.h <<_ACEOF
8702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8710 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8711 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8712 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8713 $as_echo_n "(cached) " >&6
8715 ac_check_lib_save_LIBS=$LIBS
8716 LIBS="-lguile $LIBS"
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8724 /* Override any GCC internal prototype to avoid an error.
8725 Use char because int might match the return type of a GCC
8726 builtin and then its argument prototype would still apply. */
8730 char scm_boot_guile ();
8734 return scm_boot_guile ();
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8746 $as_echo "$ac_try_echo") >&5
8747 (eval "$ac_link") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && {
8754 test -z "$ac_cxx_werror_flag" ||
8755 test ! -s conftest.err
8756 } && test -s conftest$ac_exeext && {
8757 test "$cross_compiling" = yes ||
8758 $as_test_x conftest$ac_exeext
8760 ac_cv_lib_guile_scm_boot_guile=yes
8762 $as_echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 ac_cv_lib_guile_scm_boot_guile=no
8768 rm -rf conftest.dSYM
8769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8770 conftest$ac_exeext conftest.$ac_ext
8771 LIBS=$ac_check_lib_save_LIBS
8773 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8774 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8775 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_LIBGUILE 1
8780 LIBS="-lguile $LIBS"
8785 for ac_func in scm_boot_guile
8787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8789 $as_echo_n "checking for $ac_func... " >&6; }
8790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8791 $as_echo_n "(cached) " >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8801 #define $ac_func innocuous_$ac_func
8803 /* System header to define __stub macros and hopefully few prototypes,
8804 which can conflict with char $ac_func (); below.
8805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8806 <limits.h> exists even on freestanding compilers. */
8809 # include <limits.h>
8811 # include <assert.h>
8816 /* Override any GCC internal prototype to avoid an error.
8817 Use char because int might match the return type of a GCC
8818 builtin and then its argument prototype would still apply. */
8823 /* The GNU C library defines this for functions which it implements
8824 to always fail with ENOSYS. Some functions are actually named
8825 something starting with __ and the normal name is an alias. */
8826 #if defined __stub_$ac_func || defined __stub___$ac_func
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_link") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1 >conftest.err
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_cxx_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest$ac_exeext && {
8856 test "$cross_compiling" = yes ||
8857 $as_test_x conftest$ac_exeext
8859 eval "$as_ac_var=yes"
8861 $as_echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 eval "$as_ac_var=no"
8867 rm -rf conftest.dSYM
8868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8869 conftest$ac_exeext conftest.$ac_ext
8871 ac_res=`eval 'as_val=${'$as_ac_var'}
8872 $as_echo "$as_val"'`
8873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8874 $as_echo "$ac_res" >&6; }
8875 as_val=`eval 'as_val=${'$as_ac_var'}
8876 $as_echo "$as_val"'`
8877 if test "x$as_val" = x""yes; then
8878 cat >>confdefs.h <<_ACEOF
8879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8887 if test "$libguile_b" = "no"; then
8888 warn='libguile (libguile-dev, guile-devel or guile-dev
8891 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8894 CPPFLAGS="$save_CPPFLAGS"
8896 cat >>confdefs.h <<_ACEOF
8897 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8900 cat >>confdefs.h <<_ACEOF
8901 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8904 cat >>confdefs.h <<_ACEOF
8905 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8911 ## First, let's just see if we can find Guile at all.
8912 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8913 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8914 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8915 $as_echo_n "checking for guile-config... " >&6; }
8916 guile_config="guile-config"
8918 for r in $GUILE_CONFIG \
8919 $target_guile_config $host_guile_config $build_guile_config \
8921 guile2-config guile-2-config guile-config-2 \
8922 guile2.2-config guile-2.2-config guile-config-2.2 \
8923 guile2.0-config guile-2.0-config guile-config-2.0 \
8924 guile1-config guile-1-config guile-config-1 \
8925 guile1.9-config guile-1.9-config guile-config-1.9 \
8926 guile1.8-config guile-1.8-config guile-config-1.8; \
8929 ## which doesn't work in ash, if /usr/bin/which isn't installed
8930 ## type -p doesn't work in ash
8931 ## command -v doesn't work in zsh
8932 ## command -v "$r" 2>&1
8933 ## this test should work in ash, bash, pdksh (ksh), zsh
8934 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8936 if ! $exe --version > /dev/null 2>&1 ; then
8940 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8943 ## Workaround for broken Debian gcc version string:
8944 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8946 ## -V: Workaround for python
8950 ## Assume and hunt for dotted version multiplet.
8951 ## use eval trickery, because we cannot use multi-level $() instead of ``
8952 ## for compatibility reasons.
8954 ## grab the first version number in --version output.
8955 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8956 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8959 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8960 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8963 if test -z "$_ver"; then
8964 ## If empty, try date [fontforge]
8965 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8966 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8968 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8974 echo "$ver" | awk -F. '
8976 if ($3) {three = $3}
8979 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8982 echo "1.8.2" | awk -F. '
8984 if ($3) {three = $3}
8987 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8990 echo "1.9.0" | awk -F. '
8992 if ($3) {three = $3}
8995 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8997 if test -n "1.8.2" -a "$num" -lt "$req"; then
8998 guile_config="$r >= 1.8.2 (installed: $ver)"
9001 if test -n "1.9.0" -a "$num" -ge "$sup"; then
9002 guile_config="$r < 1.9.0 (installed: $ver)"
9011 { $as_echo "$as_me:$LINENO: result: $found" >&5
9012 $as_echo "$found" >&6; }
9013 if test "$found" != "no"; then
9014 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
9015 $as_echo_n "checking $guile_config version... " >&6; }
9016 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9017 $as_echo "$ver" >&6; }
9021 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
9027 guile_version="$ver"
9029 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
9030 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
9031 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9035 ## which doesn't work in ash, if /usr/bin/which isn't installed
9036 ## type -p doesn't work in ash
9037 ## command -v doesn't work in zsh
9038 ## command -v "$guile_config" 2>&1
9039 ## this test should work in ash, bash, pdksh (ksh), zsh
9040 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
9042 if test -x $exe; then
9043 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
9044 $as_echo_n "checking guile compile flags... " >&6; }
9045 GUILE_CFLAGS="`$guile_config compile`"
9046 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
9047 $as_echo "$GUILE_CFLAGS" >&6; }
9048 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
9049 $as_echo_n "checking guile link flags... " >&6; }
9050 GUILE_LDFLAGS="`$guile_config link`"
9051 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
9052 $as_echo "$GUILE_LDFLAGS" >&6; }
9057 save_CPPFLAGS="$CPPFLAGS"
9059 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9060 LIBS="$GUILE_LDFLAGS $LIBS"
9062 for ac_header in libguile.h
9064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 $as_echo_n "checking for $ac_header... " >&6; }
9068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9069 $as_echo_n "(cached) " >&6
9071 ac_res=`eval 'as_val=${'$as_ac_Header'}
9072 $as_echo "$as_val"'`
9073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9074 $as_echo "$ac_res" >&6; }
9076 # Is the header compilable?
9077 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078 $as_echo_n "checking $ac_header usability... " >&6; }
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 $ac_includes_default
9086 #include <$ac_header>
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9095 $as_echo "$ac_try_echo") >&5
9096 (eval "$ac_compile") 2>conftest.er1
9098 grep -v '^ *+' conftest.er1 >conftest.err
9100 cat conftest.err >&5
9101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } && {
9103 test -z "$ac_cxx_werror_flag" ||
9104 test ! -s conftest.err
9105 } && test -s conftest.$ac_objext; then
9106 ac_header_compiler=yes
9108 $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_header_compiler=no
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9116 $as_echo "$ac_header_compiler" >&6; }
9118 # Is the header present?
9119 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9120 $as_echo_n "checking $ac_header presence... " >&6; }
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 #include <$ac_header>
9129 if { (ac_try="$ac_cpp conftest.$ac_ext"
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9135 $as_echo "$ac_try_echo") >&5
9136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } >/dev/null && {
9143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9144 test ! -s conftest.err
9146 ac_header_preproc=yes
9148 $as_echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_header_preproc=no
9154 rm -f conftest.err conftest.$ac_ext
9155 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9156 $as_echo "$ac_header_preproc" >&6; }
9158 # So? What about this header?
9159 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9162 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9165 ac_header_preproc=yes
9168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9169 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9171 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9173 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9175 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9179 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 $as_echo_n "checking for $ac_header... " >&6; }
9185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9186 $as_echo_n "(cached) " >&6
9188 eval "$as_ac_Header=\$ac_header_preproc"
9190 ac_res=`eval 'as_val=${'$as_ac_Header'}
9191 $as_echo "$as_val"'`
9192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9193 $as_echo "$ac_res" >&6; }
9196 as_val=`eval 'as_val=${'$as_ac_Header'}
9197 $as_echo "$as_val"'`
9198 if test "x$as_val" = x""yes; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9208 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9209 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9210 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9211 $as_echo_n "(cached) " >&6
9213 ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lguile $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9228 char scm_boot_guile ();
9232 return scm_boot_guile ();
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (ac_try="$ac_link"
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9244 $as_echo "$ac_try_echo") >&5
9245 (eval "$ac_link") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && {
9252 test -z "$ac_cxx_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest$ac_exeext && {
9255 test "$cross_compiling" = yes ||
9256 $as_test_x conftest$ac_exeext
9258 ac_cv_lib_guile_scm_boot_guile=yes
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 ac_cv_lib_guile_scm_boot_guile=no
9266 rm -rf conftest.dSYM
9267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9268 conftest$ac_exeext conftest.$ac_ext
9269 LIBS=$ac_check_lib_save_LIBS
9271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9272 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9273 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_LIBGUILE 1
9278 LIBS="-lguile $LIBS"
9283 for ac_func in scm_boot_guile
9285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9286 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9287 $as_echo_n "checking for $ac_func... " >&6; }
9288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9289 $as_echo_n "(cached) " >&6
9291 cat >conftest.$ac_ext <<_ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9299 #define $ac_func innocuous_$ac_func
9301 /* System header to define __stub macros and hopefully few prototypes,
9302 which can conflict with char $ac_func (); below.
9303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9304 <limits.h> exists even on freestanding compilers. */
9307 # include <limits.h>
9309 # include <assert.h>
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9321 /* The GNU C library defines this for functions which it implements
9322 to always fail with ENOSYS. Some functions are actually named
9323 something starting with __ and the normal name is an alias. */
9324 #if defined __stub_$ac_func || defined __stub___$ac_func
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343 $as_echo "$ac_try_echo") >&5
9344 (eval "$ac_link") 2>conftest.er1
9346 grep -v '^ *+' conftest.er1 >conftest.err
9348 cat conftest.err >&5
9349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } && {
9351 test -z "$ac_cxx_werror_flag" ||
9352 test ! -s conftest.err
9353 } && test -s conftest$ac_exeext && {
9354 test "$cross_compiling" = yes ||
9355 $as_test_x conftest$ac_exeext
9357 eval "$as_ac_var=yes"
9359 $as_echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 eval "$as_ac_var=no"
9365 rm -rf conftest.dSYM
9366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9367 conftest$ac_exeext conftest.$ac_ext
9369 ac_res=`eval 'as_val=${'$as_ac_var'}
9370 $as_echo "$as_val"'`
9371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9372 $as_echo "$ac_res" >&6; }
9373 as_val=`eval 'as_val=${'$as_ac_var'}
9374 $as_echo "$as_val"'`
9375 if test "x$as_val" = x""yes; then
9376 cat >>confdefs.h <<_ACEOF
9377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9385 if test "$libguile_b" = "no"; then
9386 warn='libguile (libguile-dev, guile-devel or guile-dev
9389 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9392 CPPFLAGS="$save_CPPFLAGS"
9394 cat >>confdefs.h <<_ACEOF
9395 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9398 cat >>confdefs.h <<_ACEOF
9399 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9402 cat >>confdefs.h <<_ACEOF
9403 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9409 # check for 3 typedefs added in Guile 1.9
9410 save_CXXFLAGS="$CXXFLAGS"
9411 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9412 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9413 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9414 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9415 $as_echo_n "(cached) " >&6
9417 ac_cv_type_scm_t_hash_fold_fn=no
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 #include <libguile.h>
9429 if (sizeof (scm_t_hash_fold_fn))
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_cxx_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 cat >conftest.$ac_ext <<_ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 #include <libguile.h>
9464 if (sizeof ((scm_t_hash_fold_fn)))
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9477 $as_echo "$ac_try_echo") >&5
9478 (eval "$ac_compile") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_cxx_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest.$ac_objext; then
9490 $as_echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_cv_type_scm_t_hash_fold_fn=yes
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 $as_echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9507 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9508 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_SCM_T_HASH_FOLD_FN 1
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_GUILE_HASH_FUNC 1
9519 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9520 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9521 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9522 $as_echo_n "(cached) " >&6
9524 ac_cv_type_scm_t_hash_handle_fn=no
9525 cat >conftest.$ac_ext <<_ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9531 #include <libguile.h>
9536 if (sizeof (scm_t_hash_handle_fn))
9542 rm -f conftest.$ac_objext
9543 if { (ac_try="$ac_compile"
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9549 $as_echo "$ac_try_echo") >&5
9550 (eval "$ac_compile") 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_cxx_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest.$ac_objext; then
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 #include <libguile.h>
9571 if (sizeof ((scm_t_hash_handle_fn)))
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_cxx_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9597 $as_echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_type_scm_t_hash_handle_fn=yes
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 $as_echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9614 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9615 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9617 cat >>confdefs.h <<_ACEOF
9618 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_GUILE_HASH_FUNC 1
9627 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9628 $as_echo_n "checking for scm_t_subr... " >&6; }
9629 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9630 $as_echo_n "(cached) " >&6
9632 ac_cv_type_scm_t_subr=no
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 #include <libguile.h>
9644 if (sizeof (scm_t_subr))
9650 rm -f conftest.$ac_objext
9651 if { (ac_try="$ac_compile"
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9657 $as_echo "$ac_try_echo") >&5
9658 (eval "$ac_compile") 2>conftest.er1
9660 grep -v '^ *+' conftest.er1 >conftest.err
9662 cat conftest.err >&5
9663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && {
9665 test -z "$ac_cxx_werror_flag" ||
9666 test ! -s conftest.err
9667 } && test -s conftest.$ac_objext; then
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 #include <libguile.h>
9679 if (sizeof ((scm_t_subr)))
9685 rm -f conftest.$ac_objext
9686 if { (ac_try="$ac_compile"
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9692 $as_echo "$ac_try_echo") >&5
9693 (eval "$ac_compile") 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && {
9700 test -z "$ac_cxx_werror_flag" ||
9701 test ! -s conftest.err
9702 } && test -s conftest.$ac_objext; then
9705 $as_echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_cv_type_scm_t_subr=yes
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 $as_echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9722 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9723 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_SCM_T_SUBR 1
9729 cat >>confdefs.h <<\_ACEOF
9730 #define HAVE_GUILE_SUBR_TYPE 1
9735 CXXFLAGS="$save_CXXFLAGS"
9737 ## Check for usable cxxabi
9739 LIBS="$LIBS $CXXABI_LIBS"
9740 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9741 $as_echo_n "checking for usable C++ demangler... " >&6; }
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9752 abi::__cxa_demangle ("", 0, 0, 0)
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765 (eval "$ac_link") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_cxx_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest$ac_exeext && {
9775 test "$cross_compiling" = yes ||
9776 $as_test_x conftest$ac_exeext
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_CXA_DEMANGLE 1
9782 { $as_echo "$as_me:$LINENO: result: yes" >&5
9783 $as_echo "yes" >&6; }
9785 $as_echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9789 LIBS="$LIBS -lsupc++"
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9800 abi::__cxa_demangle ("", 0, 0, 0)
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9812 $as_echo "$ac_try_echo") >&5
9813 (eval "$ac_link") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_cxx_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext && {
9823 test "$cross_compiling" = yes ||
9824 $as_test_x conftest$ac_exeext
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_CXA_DEMANGLE 1
9830 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9831 $as_echo "yes, using -lsupc++" >&6; }
9832 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9834 $as_echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9838 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9841 rm -rf conftest.dSYM
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843 conftest$ac_exeext conftest.$ac_ext
9846 rm -rf conftest.dSYM
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848 conftest$ac_exeext conftest.$ac_ext
9852 ## check rational bugfix.
9853 save_CPPFLAGS="$CPPFLAGS"
9854 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9855 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9856 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <libguile.h>
9864 #ifdef SCM_FRACTION_REDUCED_BIT
9869 if { (ac_try="$ac_cpp conftest.$ac_ext"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9875 $as_echo "$ac_try_echo") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1 >conftest.err
9880 cat conftest.err >&5
9881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null && {
9883 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9884 test ! -s conftest.err
9886 { $as_echo "$as_me:$LINENO: result: ok" >&5
9887 $as_echo "ok" >&6; }
9889 $as_echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9893 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9894 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9897 rm -f conftest.err conftest.$ac_ext
9898 CPPFLAGS="$save_CPPFLAGS"
9903 # Check whether --with-python-include was given.
9904 if test "${with_python_include+set}" = set; then
9905 withval=$with_python_include;
9906 if test "$withval" = "yes" -o "$withval" = "no"; then
9907 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9908 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9910 PYTHON_CFLAGS="-I${withval}"
9917 # Check whether --with-python-lib was given.
9918 if test "${with_python_lib+set}" = set; then
9919 withval=$with_python_lib;
9920 if test "$withval" = "yes" -o "$withval" = "no"; then
9921 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9922 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9924 LDFLAGS="$LDFLAGS -l${withval}"
9931 { $as_echo "$as_me:$LINENO: checking for python" >&5
9932 $as_echo_n "checking for python... " >&6; }
9935 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
9937 ## which doesn't work in ash, if /usr/bin/which isn't installed
9938 ## type -p doesn't work in ash
9939 ## command -v doesn't work in zsh
9940 ## command -v "$r" 2>&1
9941 ## this test should work in ash, bash, pdksh (ksh), zsh
9942 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9944 if ! $exe -V > /dev/null 2>&1 ; then
9948 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9951 ## Workaround for broken Debian gcc version string:
9952 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9954 ## -V: Workaround for python
9958 ## Assume and hunt for dotted version multiplet.
9959 ## use eval trickery, because we cannot use multi-level $() instead of ``
9960 ## for compatibility reasons.
9962 ## grab the first version number in --version output.
9963 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9964 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9967 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9968 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9971 if test -z "$_ver"; then
9972 ## If empty, try date [fontforge]
9973 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9974 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9976 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9982 echo "$ver" | awk -F. '
9984 if ($3) {three = $3}
9987 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9990 echo "2.4" | awk -F. '
9992 if ($3) {three = $3}
9995 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9998 echo "3.0" | awk -F. '
10000 if ($3) {three = $3}
10003 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10005 if test -n "2.4" && test "$num" -lt "$req"; then
10006 python="$r >= 2.4 (installed: $ver)"
10009 if test -n "3.0" && test "$num" -ge "$sup"; then
10010 python="$r < 3.0 (installed: $ver)"
10019 { $as_echo "$as_me:$LINENO: result: $found" >&5
10020 $as_echo "$found" >&6; }
10021 if test "$found" != "no"; then
10022 { $as_echo "$as_me:$LINENO: checking $python version" >&5
10023 $as_echo_n "checking $python version... " >&6; }
10024 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10025 $as_echo "$ver" >&6; }
10029 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
10032 # Extract the first word of "$PYTHON", so it can be a program name with args.
10033 set dummy $PYTHON; ac_word=$2
10034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if test "${ac_cv_path_PYTHON+set}" = set; then
10037 $as_echo_n "(cached) " >&6
10041 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 PYTHON=$ac_cv_path_PYTHON
10063 if test -n "$PYTHON"; then
10064 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
10065 $as_echo "$PYTHON" >&6; }
10067 { $as_echo "$as_me:$LINENO: result: no" >&5
10068 $as_echo "no" >&6; }
10074 for ac_prog in `basename $PYTHON`-config
10076 # Extract the first word of "$ac_prog", so it can be a program name with args.
10077 set dummy $ac_prog; ac_word=$2
10078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
10081 $as_echo_n "(cached) " >&6
10083 if test -n "$PYTHON_CONFIG"; then
10084 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
10094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
10104 if test -n "$PYTHON_CONFIG"; then
10105 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
10106 $as_echo "$PYTHON_CONFIG" >&6; }
10108 { $as_echo "$as_me:$LINENO: result: no" >&5
10109 $as_echo "no" >&6; }
10113 test -n "$PYTHON_CONFIG" && break
10115 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10118 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10119 # Clean out junk: http://bugs.python.org/issue3290
10120 # Python headers may need some -f* flags, leave them in.
10121 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10122 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10123 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10124 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10125 # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
10126 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10127 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10130 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10132 # alternatively, for python >= 2.0
10133 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10134 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10135 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10139 if test -z "$PYTHON_HEADER"; then
10140 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10142 for ac_header in Python.h
10144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 $as_echo_n "checking for $ac_header... " >&6; }
10148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149 $as_echo_n "(cached) " >&6
10151 ac_res=`eval 'as_val=${'$as_ac_Header'}
10152 $as_echo "$as_val"'`
10153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10156 # Is the header compilable?
10157 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 $as_echo_n "checking $ac_header usability... " >&6; }
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 #include <$ac_header>
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_cxx_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_header_compiler=yes
10188 $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_header_compiler=no
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10196 $as_echo "$ac_header_compiler" >&6; }
10198 # Is the header present?
10199 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10200 $as_echo_n "checking $ac_header presence... " >&6; }
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 #include <$ac_header>
10209 if { (ac_try="$ac_cpp conftest.$ac_ext"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } >/dev/null && {
10223 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10224 test ! -s conftest.err
10226 ac_header_preproc=yes
10228 $as_echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10231 ac_header_preproc=no
10234 rm -f conftest.err conftest.$ac_ext
10235 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10236 $as_echo "$ac_header_preproc" >&6; }
10238 # So? What about this header?
10239 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10242 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10245 ac_header_preproc=yes
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10249 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10251 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10253 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10255 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10259 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10264 $as_echo_n "checking for $ac_header... " >&6; }
10265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10266 $as_echo_n "(cached) " >&6
10268 eval "$as_ac_Header=\$ac_header_preproc"
10270 ac_res=`eval 'as_val=${'$as_ac_Header'}
10271 $as_echo "$as_val"'`
10272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10273 $as_echo "$ac_res" >&6; }
10276 as_val=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 if test "x$as_val" = x""yes; then
10279 cat >>confdefs.h <<_ACEOF
10280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10289 if test -z "$PYTHON_HEADER"; then
10290 warn="Python.h (python-devel, python-dev or libpython-dev package)"
10292 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10300 for ac_prog in fontforge
10302 # Extract the first word of "$ac_prog", so it can be a program name with args.
10303 set dummy $ac_prog; ac_word=$2
10304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10307 $as_echo_n "(cached) " >&6
10309 if test -n "$FONTFORGE"; then
10310 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_prog_FONTFORGE="$ac_prog"
10320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 FONTFORGE=$ac_cv_prog_FONTFORGE
10330 if test -n "$FONTFORGE"; then
10331 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10332 $as_echo "$FONTFORGE" >&6; }
10334 { $as_echo "$as_me:$LINENO: result: no" >&5
10335 $as_echo "no" >&6; }
10339 test -n "$FONTFORGE" && break
10341 test -n "$FONTFORGE" || FONTFORGE="no"
10345 r="`eval echo '$'"FONTFORGE"`"
10346 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10349 ##STEPMAKE_WARN(cannot find . )
10353 if test $? -ne 0; then
10355 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10357 if test "REQUIRED" = "REQUIRED"; then
10358 command="echo ERROR: fontforge not found"
10359 # abort configure process here?
10361 command="- echo fontforge not found"
10363 eval "FONTFORGE"='$command'
10369 if test $? -eq 0; then
10370 for ac_prog in fontforge
10372 # Extract the first word of "$ac_prog", so it can be a program name with args.
10373 set dummy $ac_prog; ac_word=$2
10374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10377 $as_echo_n "(cached) " >&6
10381 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 FONTFORGE=$ac_cv_path_FONTFORGE
10403 if test -n "$FONTFORGE"; then
10404 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10405 $as_echo "$FONTFORGE" >&6; }
10407 { $as_echo "$as_me:$LINENO: result: no" >&5
10408 $as_echo "no" >&6; }
10412 test -n "$FONTFORGE" && break
10415 if test -n "20110222"; then
10417 r="`eval echo '$'"FONTFORGE"`"
10418 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10419 $as_echo_n "checking $r version... " >&6; }
10421 ## which doesn't work in ash, if /usr/bin/which isn't installed
10422 ## type -p doesn't work in ash
10423 ## command -v doesn't work in zsh
10424 ## command -v "$r" 2>&1
10425 ## this test should work in ash, bash, pdksh (ksh), zsh
10426 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10428 if test -n ""; then
10432 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10435 ## Workaround for broken Debian gcc version string:
10436 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10438 ## -V: Workaround for python
10442 ## Assume and hunt for dotted version multiplet.
10443 ## use eval trickery, because we cannot use multi-level $() instead of ``
10444 ## for compatibility reasons.
10446 ## grab the first version number in --version output.
10447 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10448 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10451 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10452 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10455 if test -z "$_ver"; then
10456 ## If empty, try date [fontforge]
10457 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10458 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10460 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10467 echo "$ver" | awk -F. '
10469 if ($3) {three = $3}
10472 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10475 echo "20110222" | awk -F. '
10477 if ($3) {three = $3}
10480 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10482 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10483 $as_echo "$ver" >&6; }
10484 if test "$num" -lt "$req"; then
10486 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10489 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10490 eval `echo $vervar=$num`
10491 ## AC_SUBST(`eval echo $vervar`)
10498 for ac_prog in t1asm
10500 # Extract the first word of "$ac_prog", so it can be a program name with args.
10501 set dummy $ac_prog; ac_word=$2
10502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10503 $as_echo_n "checking for $ac_word... " >&6; }
10504 if test "${ac_cv_prog_T1ASM+set}" = set; then
10505 $as_echo_n "(cached) " >&6
10507 if test -n "$T1ASM"; then
10508 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_prog_T1ASM="$ac_prog"
10518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10527 T1ASM=$ac_cv_prog_T1ASM
10528 if test -n "$T1ASM"; then
10529 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10530 $as_echo "$T1ASM" >&6; }
10532 { $as_echo "$as_me:$LINENO: result: no" >&5
10533 $as_echo "no" >&6; }
10537 test -n "$T1ASM" && break
10539 test -n "$T1ASM" || T1ASM="no"
10543 r="`eval echo '$'"T1ASM"`"
10544 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10547 ##STEPMAKE_WARN(cannot find . )
10551 if test $? -ne 0; then
10553 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10555 if test "REQUIRED" = "REQUIRED"; then
10556 command="echo ERROR: t1asm not found"
10557 # abort configure process here?
10559 command="- echo t1asm not found"
10561 eval "T1ASM"='$command'
10567 if test $? -eq 0; then
10568 for ac_prog in t1asm
10570 # Extract the first word of "$ac_prog", so it can be a program name with args.
10571 set dummy $ac_prog; ac_word=$2
10572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if test "${ac_cv_path_T1ASM+set}" = set; then
10575 $as_echo_n "(cached) " >&6
10579 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 T1ASM=$ac_cv_path_T1ASM
10601 if test -n "$T1ASM"; then
10602 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10603 $as_echo "$T1ASM" >&6; }
10605 { $as_echo "$as_me:$LINENO: result: no" >&5
10606 $as_echo "no" >&6; }
10610 test -n "$T1ASM" && break
10613 if test -n ""; then
10615 r="`eval echo '$'"T1ASM"`"
10616 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10617 $as_echo_n "checking $r version... " >&6; }
10619 ## which doesn't work in ash, if /usr/bin/which isn't installed
10620 ## type -p doesn't work in ash
10621 ## command -v doesn't work in zsh
10622 ## command -v "$r" 2>&1
10623 ## this test should work in ash, bash, pdksh (ksh), zsh
10624 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10626 if test -n ""; then
10630 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10633 ## Workaround for broken Debian gcc version string:
10634 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10636 ## -V: Workaround for python
10640 ## Assume and hunt for dotted version multiplet.
10641 ## use eval trickery, because we cannot use multi-level $() instead of ``
10642 ## for compatibility reasons.
10644 ## grab the first version number in --version output.
10645 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10646 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10649 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10650 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10653 if test -z "$_ver"; then
10654 ## If empty, try date [fontforge]
10655 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10656 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10658 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10665 echo "$ver" | awk -F. '
10667 if ($3) {three = $3}
10670 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10673 echo "" | awk -F. '
10675 if ($3) {three = $3}
10678 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10680 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10681 $as_echo "$ver" >&6; }
10682 if test "$num" -lt "$req"; then
10684 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10687 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10688 eval `echo $vervar=$num`
10689 ## AC_SUBST(`eval echo $vervar`)
10702 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 $as_echo_n "checking for $ac_header... " >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709 $as_echo_n "(cached) " >&6
10711 ac_res=`eval 'as_val=${'$as_ac_Header'}
10712 $as_echo "$as_val"'`
10713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10714 $as_echo "$ac_res" >&6; }
10716 # Is the header compilable?
10717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 $as_echo_n "checking $ac_header usability... " >&6; }
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 #include <$ac_header>
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_cxx_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
10746 ac_header_compiler=yes
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_header_compiler=no
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10756 $as_echo "$ac_header_compiler" >&6; }
10758 # Is the header present?
10759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10760 $as_echo_n "checking $ac_header presence... " >&6; }
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 #include <$ac_header>
10769 if { (ac_try="$ac_cpp conftest.$ac_ext"
10770 case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10775 $as_echo "$ac_try_echo") >&5
10776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null && {
10783 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10784 test ! -s conftest.err
10786 ac_header_preproc=yes
10788 $as_echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_header_preproc=no
10794 rm -f conftest.err conftest.$ac_ext
10795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 $as_echo "$ac_header_preproc" >&6; }
10798 # So? What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805 ac_header_preproc=yes
10808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 $as_echo_n "checking for $ac_header... " >&6; }
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 $as_echo_n "(cached) " >&6
10828 eval "$as_ac_Header=\$ac_header_preproc"
10830 ac_res=`eval 'as_val=${'$as_ac_Header'}
10831 $as_echo "$as_val"'`
10832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10833 $as_echo "$ac_res" >&6; }
10836 as_val=`eval 'as_val=${'$as_ac_Header'}
10837 $as_echo "$as_val"'`
10838 if test "x$as_val" = x""yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10848 for ac_header in sstream
10850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10853 $as_echo_n "checking for $ac_header... " >&6; }
10854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10855 $as_echo_n "(cached) " >&6
10857 ac_res=`eval 'as_val=${'$as_ac_Header'}
10858 $as_echo "$as_val"'`
10859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10860 $as_echo "$ac_res" >&6; }
10862 # Is the header compilable?
10863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864 $as_echo_n "checking $ac_header usability... " >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 $ac_includes_default
10872 #include <$ac_header>
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882 (eval "$ac_compile") 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } && {
10889 test -z "$ac_cxx_werror_flag" ||
10890 test ! -s conftest.err
10891 } && test -s conftest.$ac_objext; then
10892 ac_header_compiler=yes
10894 $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_header_compiler=no
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 $as_echo "$ac_header_compiler" >&6; }
10904 # Is the header present?
10905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 $as_echo_n "checking $ac_header presence... " >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <$ac_header>
10915 if { (ac_try="$ac_cpp conftest.$ac_ext"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10921 $as_echo "$ac_try_echo") >&5
10922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } >/dev/null && {
10929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10930 test ! -s conftest.err
10932 ac_header_preproc=yes
10934 $as_echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_header_preproc=no
10940 rm -f conftest.err conftest.$ac_ext
10941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 $as_echo "$ac_header_preproc" >&6; }
10944 # So? What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10970 $as_echo_n "checking for $ac_header... " >&6; }
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972 $as_echo_n "(cached) " >&6
10974 eval "$as_ac_Header=\$ac_header_preproc"
10976 ac_res=`eval 'as_val=${'$as_ac_Header'}
10977 $as_echo "$as_val"'`
10978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10979 $as_echo "$ac_res" >&6; }
10982 as_val=`eval 'as_val=${'$as_ac_Header'}
10983 $as_echo "$as_val"'`
10984 if test "x$as_val" = x""yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10994 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10995 if test "${ac_cv_header_stat_broken+set}" = set; then
10996 $as_echo_n "(cached) " >&6
10998 cat >conftest.$ac_ext <<_ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 #include <sys/types.h>
11005 #include <sys/stat.h>
11007 #if defined S_ISBLK && defined S_IFDIR
11008 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11011 #if defined S_ISBLK && defined S_IFCHR
11012 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11015 #if defined S_ISLNK && defined S_IFREG
11016 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11019 #if defined S_ISSOCK && defined S_IFREG
11020 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11024 rm -f conftest.$ac_objext
11025 if { (ac_try="$ac_compile"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11031 $as_echo "$ac_try_echo") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_cxx_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest.$ac_objext; then
11042 ac_cv_header_stat_broken=no
11044 $as_echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_cv_header_stat_broken=yes
11050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11052 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11053 $as_echo "$ac_cv_header_stat_broken" >&6; }
11054 if test $ac_cv_header_stat_broken = yes; then
11056 cat >>confdefs.h <<\_ACEOF
11057 #define STAT_MACROS_BROKEN 1
11062 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11063 $as_echo_n "checking for working memcmp... " >&6; }
11064 if test "${ac_cv_func_memcmp_working+set}" = set; then
11065 $as_echo_n "(cached) " >&6
11067 if test "$cross_compiling" = yes; then
11068 ac_cv_func_memcmp_working=no
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11081 /* Some versions of memcmp are not 8-bit clean. */
11082 char c0 = '\100', c1 = '\200', c2 = '\201';
11083 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11086 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11087 or more and with at least one buffer not starting on a 4-byte boundary.
11088 William Lewis provided this test program. */
11093 for (i = 0; i < 4; i++)
11097 strcpy (a, "--------01111111");
11098 strcpy (b, "--------10000000");
11099 if (memcmp (a, b, 16) >= 0)
11109 rm -f conftest$ac_exeext
11110 if { (ac_try="$ac_link"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11116 $as_echo "$ac_try_echo") >&5
11117 (eval "$ac_link") 2>&5
11119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127 (eval "$ac_try") 2>&5
11129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func_memcmp_working=yes
11133 $as_echo "$as_me: program exited with status $ac_status" >&5
11134 $as_echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11137 ( exit $ac_status )
11138 ac_cv_func_memcmp_working=no
11140 rm -rf conftest.dSYM
11141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11147 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11148 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11149 *" memcmp.$ac_objext "* ) ;;
11150 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11156 for ac_func in vprintf
11158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11160 $as_echo_n "checking for $ac_func... " >&6; }
11161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11162 $as_echo_n "(cached) " >&6
11164 cat >conftest.$ac_ext <<_ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11172 #define $ac_func innocuous_$ac_func
11174 /* System header to define __stub macros and hopefully few prototypes,
11175 which can conflict with char $ac_func (); below.
11176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11177 <limits.h> exists even on freestanding compilers. */
11180 # include <limits.h>
11182 # include <assert.h>
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11194 /* The GNU C library defines this for functions which it implements
11195 to always fail with ENOSYS. Some functions are actually named
11196 something starting with __ and the normal name is an alias. */
11197 #if defined __stub_$ac_func || defined __stub___$ac_func
11204 return $ac_func ();
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (ac_try="$ac_link"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11216 $as_echo "$ac_try_echo") >&5
11217 (eval "$ac_link") 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_cxx_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest$ac_exeext && {
11227 test "$cross_compiling" = yes ||
11228 $as_test_x conftest$ac_exeext
11230 eval "$as_ac_var=yes"
11232 $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 eval "$as_ac_var=no"
11238 rm -rf conftest.dSYM
11239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11240 conftest$ac_exeext conftest.$ac_ext
11242 ac_res=`eval 'as_val=${'$as_ac_var'}
11243 $as_echo "$as_val"'`
11244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11246 as_val=`eval 'as_val=${'$as_ac_var'}
11247 $as_echo "$as_val"'`
11248 if test "x$as_val" = x""yes; then
11249 cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11253 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11254 $as_echo_n "checking for _doprnt... " >&6; }
11255 if test "${ac_cv_func__doprnt+set}" = set; then
11256 $as_echo_n "(cached) " >&6
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11266 #define _doprnt innocuous__doprnt
11268 /* System header to define __stub macros and hopefully few prototypes,
11269 which can conflict with char _doprnt (); below.
11270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11271 <limits.h> exists even on freestanding compilers. */
11274 # include <limits.h>
11276 # include <assert.h>
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11288 /* The GNU C library defines this for functions which it implements
11289 to always fail with ENOSYS. Some functions are actually named
11290 something starting with __ and the normal name is an alias. */
11291 #if defined __stub__doprnt || defined __stub____doprnt
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (ac_try="$ac_link"
11305 case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11310 $as_echo "$ac_try_echo") >&5
11311 (eval "$ac_link") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } && {
11318 test -z "$ac_cxx_werror_flag" ||
11319 test ! -s conftest.err
11320 } && test -s conftest$ac_exeext && {
11321 test "$cross_compiling" = yes ||
11322 $as_test_x conftest$ac_exeext
11324 ac_cv_func__doprnt=yes
11326 $as_echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_cv_func__doprnt=no
11332 rm -rf conftest.dSYM
11333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11334 conftest$ac_exeext conftest.$ac_ext
11336 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11337 $as_echo "$ac_cv_func__doprnt" >&6; }
11338 if test "x$ac_cv_func__doprnt" = x""yes; then
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_DOPRNT 1
11357 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 $as_echo_n "checking for $ac_func... " >&6; }
11362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11363 $as_echo_n "(cached) " >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11373 #define $ac_func innocuous_$ac_func
11375 /* System header to define __stub macros and hopefully few prototypes,
11376 which can conflict with char $ac_func (); below.
11377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378 <limits.h> exists even on freestanding compilers. */
11381 # include <limits.h>
11383 # include <assert.h>
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined __stub_$ac_func || defined __stub___$ac_func
11405 return $ac_func ();
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_link") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_cxx_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext && {
11428 test "$cross_compiling" = yes ||
11429 $as_test_x conftest$ac_exeext
11431 eval "$as_ac_var=yes"
11433 $as_echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11439 rm -rf conftest.dSYM
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441 conftest$ac_exeext conftest.$ac_ext
11443 ac_res=`eval 'as_val=${'$as_ac_var'}
11444 $as_echo "$as_val"'`
11445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11446 $as_echo "$ac_res" >&6; }
11447 as_val=`eval 'as_val=${'$as_ac_var'}
11448 $as_echo "$as_val"'`
11449 if test "x$as_val" = x""yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 for ac_prog in pkg-config
11461 # Extract the first word of "$ac_prog", so it can be a program name with args.
11462 set dummy $ac_prog; ac_word=$2
11463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11466 $as_echo_n "(cached) " >&6
11468 if test -n "$PKG_CONFIG"; then
11469 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11478 ac_cv_prog_PKG_CONFIG="$ac_prog"
11479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11489 if test -n "$PKG_CONFIG"; then
11490 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11491 $as_echo "$PKG_CONFIG" >&6; }
11493 { $as_echo "$as_me:$LINENO: result: no" >&5
11494 $as_echo "no" >&6; }
11498 test -n "$PKG_CONFIG" && break
11500 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11504 r="`eval echo '$'"PKG_CONFIG"`"
11505 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11508 ##STEPMAKE_WARN(cannot find . )
11512 if test $? -ne 0; then
11514 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11516 if test "REQUIRED" = "REQUIRED"; then
11517 command="echo ERROR: pkg-config not found"
11518 # abort configure process here?
11520 command="- echo pkg-config not found"
11522 eval "PKG_CONFIG"='$command'
11528 if test $? -eq 0 -a -n "0.9.0"; then
11530 r="`eval echo '$'"PKG_CONFIG"`"
11531 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11532 $as_echo_n "checking $r version... " >&6; }
11534 ## which doesn't work in ash, if /usr/bin/which isn't installed
11535 ## type -p doesn't work in ash
11536 ## command -v doesn't work in zsh
11537 ## command -v "$r" 2>&1
11538 ## this test should work in ash, bash, pdksh (ksh), zsh
11539 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11541 if test -n ""; then
11545 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11548 ## Workaround for broken Debian gcc version string:
11549 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11551 ## -V: Workaround for python
11555 ## Assume and hunt for dotted version multiplet.
11556 ## use eval trickery, because we cannot use multi-level $() instead of ``
11557 ## for compatibility reasons.
11559 ## grab the first version number in --version output.
11560 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11561 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11564 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11565 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11568 if test -z "$_ver"; then
11569 ## If empty, try date [fontforge]
11570 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11571 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11573 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11580 echo "$ver" | awk -F. '
11582 if ($3) {three = $3}
11585 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11588 echo "0.9.0" | awk -F. '
11590 if ($3) {three = $3}
11593 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11595 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11596 $as_echo "$ver" >&6; }
11597 if test "$num" -lt "$req"; then
11599 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11602 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11603 eval `echo $vervar=$num`
11604 ## AC_SUBST(`eval echo $vervar`)
11609 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11610 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11611 if test "$reloc_b" = "yes"; then
11612 cat >>confdefs.h <<\_ACEOF
11613 #define ARGV0_RELOCATION 1
11617 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11618 $as_echo "$reloc_b" >&6; }
11620 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11621 $as_echo_n "checking for rpath linkage... " >&6; }
11622 if test "$rpath_b" = "yes"; then
11623 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11624 elif test "$rpath_b" != "no"; then
11625 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11627 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11628 $as_echo "$rpath_b" >&6; }
11630 HOST_ARCH=`$CC -dumpmachine`
11637 if test -z "$PKG_CONFIG"; then
11638 # Extract the first word of "pkg-config", so it can be a program name with args.
11639 set dummy pkg-config; ac_word=$2
11640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11643 $as_echo_n "(cached) " >&6
11645 case $PKG_CONFIG in
11647 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11670 if test -n "$PKG_CONFIG"; then
11671 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11672 $as_echo "$PKG_CONFIG" >&6; }
11674 { $as_echo "$as_me:$LINENO: result: no" >&5
11675 $as_echo "no" >&6; }
11681 if test "$PKG_CONFIG" = "no" ; then
11682 echo "*** The pkg-config script could not be found. Make sure it is"
11683 echo "*** in your path, or set the PKG_CONFIG environment variable"
11684 echo "*** to the full path to pkg-config."
11685 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11687 PKG_CONFIG_MIN_VERSION=0.9.0
11688 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11689 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.38.0" >&5
11690 $as_echo_n "checking for pangoft2 >= 1.38.0... " >&6; }
11692 if $PKG_CONFIG --exists "pangoft2 >= 1.38.0" ; then
11693 { $as_echo "$as_me:$LINENO: result: yes" >&5
11694 $as_echo "yes" >&6; }
11697 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11698 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11699 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.38.0"`
11700 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11701 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11703 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11704 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11705 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.38.0"`
11706 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11707 $as_echo "$PANGO_FT2_LIBS" >&6; }
11709 PANGO_FT2_CFLAGS=""
11711 ## If we have a custom action on failure, don't print errors, but
11712 ## do set a variable so people can do so.
11713 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.38.0"`
11722 if test $succeeded = yes; then
11723 have_pangoft2_with_otf_feature=yes
11728 if test "$have_pangoft2_with_otf_feature" = yes ; then
11729 cat >>confdefs.h <<\_ACEOF
11730 #define HAVE_PANGO16 1
11733 cat >>confdefs.h <<\_ACEOF
11734 #define HAVE_PANGO_FT2 1
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_PANGO_FT2_WITH_OTF_FEATURE 1
11741 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11742 save_CPPFLAGS="$CPPFLAGS"
11744 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11745 LIBS="$PANGO_FT2_LIBS $LIBS"
11747 for ac_header in pango/pangoft2.h
11749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 $as_echo_n "checking for $ac_header... " >&6; }
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 $as_echo_n "(cached) " >&6
11756 ac_res=`eval 'as_val=${'$as_ac_Header'}
11757 $as_echo "$as_val"'`
11758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11759 $as_echo "$ac_res" >&6; }
11761 # Is the header compilable?
11762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11763 $as_echo_n "checking $ac_header usability... " >&6; }
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 $ac_includes_default
11771 #include <$ac_header>
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_cxx_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest.$ac_objext; then
11791 ac_header_compiler=yes
11793 $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_compiler=no
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 $as_echo "$ac_header_compiler" >&6; }
11803 # Is the header present?
11804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11805 $as_echo_n "checking $ac_header presence... " >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 #include <$ac_header>
11814 if { (ac_try="$ac_cpp conftest.$ac_ext"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11820 $as_echo "$ac_try_echo") >&5
11821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } >/dev/null && {
11828 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11829 test ! -s conftest.err
11831 ac_header_preproc=yes
11833 $as_echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_header_preproc=no
11839 rm -f conftest.err conftest.$ac_ext
11840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 $as_echo "$ac_header_preproc" >&6; }
11843 # So? What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc=yes
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 $as_echo_n "checking for $ac_header... " >&6; }
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871 $as_echo_n "(cached) " >&6
11873 eval "$as_ac_Header=\$ac_header_preproc"
11875 ac_res=`eval 'as_val=${'$as_ac_Header'}
11876 $as_echo "$as_val"'`
11877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11878 $as_echo "$ac_res" >&6; }
11881 as_val=`eval 'as_val=${'$as_ac_Header'}
11882 $as_echo "$as_val"'`
11883 if test "x$as_val" = x""yes; then
11884 cat >>confdefs.h <<_ACEOF
11885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11893 for ac_func in pango_ft2_font_map_create_context
11895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 $as_echo_n "checking for $ac_func... " >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached) " >&6
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11917 # include <limits.h>
11919 # include <assert.h>
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 return $ac_func ();
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_cxx_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11967 eval "$as_ac_var=yes"
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 eval "$as_ac_var=no"
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 as_val=`eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'`
11985 if test "x$as_val" = x""yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995 CPPFLAGS="$save_CPPFLAGS"
11999 #r="libpangoft2-dev or pangoft2-devel"e
12000 r="libpango1.0-dev or pango?-devel"
12001 ver="`pkg-config --modversion pangoft2`"
12003 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.38.0 (It is required if you'd like "\"`\"
12006 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""to use OpenType font feature. "\"`\"
12009 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""installed: $ver)"\"`\"
12013 if test "$have_pangoft2_with_otf_feature" != yes ; then
12018 if test -z "$PKG_CONFIG"; then
12019 # Extract the first word of "pkg-config", so it can be a program name with args.
12020 set dummy pkg-config; ac_word=$2
12021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12026 case $PKG_CONFIG in
12028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12051 if test -n "$PKG_CONFIG"; then
12052 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12053 $as_echo "$PKG_CONFIG" >&6; }
12055 { $as_echo "$as_me:$LINENO: result: no" >&5
12056 $as_echo "no" >&6; }
12062 if test "$PKG_CONFIG" = "no" ; then
12063 echo "*** The pkg-config script could not be found. Make sure it is"
12064 echo "*** in your path, or set the PKG_CONFIG environment variable"
12065 echo "*** to the full path to pkg-config."
12066 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12068 PKG_CONFIG_MIN_VERSION=0.9.0
12069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12070 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
12071 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
12073 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
12074 { $as_echo "$as_me:$LINENO: result: yes" >&5
12075 $as_echo "yes" >&6; }
12078 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
12079 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
12080 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
12081 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
12082 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
12084 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
12085 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
12086 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
12087 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
12088 $as_echo "$PANGO_FT2_LIBS" >&6; }
12090 PANGO_FT2_CFLAGS=""
12092 ## If we have a custom action on failure, don't print errors, but
12093 ## do set a variable so people can do so.
12094 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
12103 if test $succeeded = yes; then
12109 if test "$have_pangoft2" = yes ; then
12110 cat >>confdefs.h <<\_ACEOF
12111 #define HAVE_PANGO16 1
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_PANGO_FT2 1
12118 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12119 save_CPPFLAGS="$CPPFLAGS"
12121 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
12122 LIBS="$PANGO_FT2_LIBS $LIBS"
12124 for ac_header in pango/pangoft2.h
12126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 $as_echo_n "checking for $ac_header... " >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131 $as_echo_n "(cached) " >&6
12133 ac_res=`eval 'as_val=${'$as_ac_Header'}
12134 $as_echo "$as_val"'`
12135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12136 $as_echo "$ac_res" >&6; }
12138 # Is the header compilable?
12139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12140 $as_echo_n "checking $ac_header usability... " >&6; }
12141 cat >conftest.$ac_ext <<_ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 #include <$ac_header>
12150 rm -f conftest.$ac_objext
12151 if { (ac_try="$ac_compile"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12157 $as_echo "$ac_try_echo") >&5
12158 (eval "$ac_compile") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_cxx_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest.$ac_objext; then
12168 ac_header_compiler=yes
12170 $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_header_compiler=no
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12178 $as_echo "$ac_header_compiler" >&6; }
12180 # Is the header present?
12181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12182 $as_echo_n "checking $ac_header presence... " >&6; }
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #include <$ac_header>
12191 if { (ac_try="$ac_cpp conftest.$ac_ext"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12197 $as_echo "$ac_try_echo") >&5
12198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1 >conftest.err
12202 cat conftest.err >&5
12203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } >/dev/null && {
12205 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12206 test ! -s conftest.err
12208 ac_header_preproc=yes
12210 $as_echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 ac_header_preproc=no
12216 rm -f conftest.err conftest.$ac_ext
12217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12218 $as_echo "$ac_header_preproc" >&6; }
12220 # So? What about this header?
12221 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12227 ac_header_preproc=yes
12230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12246 $as_echo_n "checking for $ac_header... " >&6; }
12247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12248 $as_echo_n "(cached) " >&6
12250 eval "$as_ac_Header=\$ac_header_preproc"
12252 ac_res=`eval 'as_val=${'$as_ac_Header'}
12253 $as_echo "$as_val"'`
12254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12255 $as_echo "$ac_res" >&6; }
12258 as_val=`eval 'as_val=${'$as_ac_Header'}
12259 $as_echo "$as_val"'`
12260 if test "x$as_val" = x""yes; then
12261 cat >>confdefs.h <<_ACEOF
12262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12270 for ac_func in pango_ft2_font_map_create_context
12272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 $as_echo_n "checking for $ac_func... " >&6; }
12275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276 $as_echo_n "(cached) " >&6
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286 #define $ac_func innocuous_$ac_func
12288 /* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12294 # include <limits.h>
12296 # include <assert.h>
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined __stub_$ac_func || defined __stub___$ac_func
12318 return $ac_func ();
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330 $as_echo "$ac_try_echo") >&5
12331 (eval "$ac_link") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_cxx_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest$ac_exeext && {
12341 test "$cross_compiling" = yes ||
12342 $as_test_x conftest$ac_exeext
12344 eval "$as_ac_var=yes"
12346 $as_echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 eval "$as_ac_var=no"
12352 rm -rf conftest.dSYM
12353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12354 conftest$ac_exeext conftest.$ac_ext
12356 ac_res=`eval 'as_val=${'$as_ac_var'}
12357 $as_echo "$as_val"'`
12358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12359 $as_echo "$ac_res" >&6; }
12360 as_val=`eval 'as_val=${'$as_ac_var'}
12361 $as_echo "$as_val"'`
12362 if test "x$as_val" = x""yes; then
12363 cat >>confdefs.h <<_ACEOF
12364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12372 CPPFLAGS="$save_CPPFLAGS"
12376 #r="libpangoft2-dev or pangoft2-devel"e
12377 r="libpango1.0-dev or pango?-devel"
12378 ver="`pkg-config --modversion pangoft2`"
12380 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
12389 if test -z "$PKG_CONFIG"; then
12390 # Extract the first word of "pkg-config", so it can be a program name with args.
12391 set dummy pkg-config; ac_word=$2
12392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12395 $as_echo_n "(cached) " >&6
12397 case $PKG_CONFIG in
12399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12422 if test -n "$PKG_CONFIG"; then
12423 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12424 $as_echo "$PKG_CONFIG" >&6; }
12426 { $as_echo "$as_me:$LINENO: result: no" >&5
12427 $as_echo "no" >&6; }
12433 if test "$PKG_CONFIG" = "no" ; then
12434 echo "*** The pkg-config script could not be found. Make sure it is"
12435 echo "*** in your path, or set the PKG_CONFIG environment variable"
12436 echo "*** to the full path to pkg-config."
12437 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12439 PKG_CONFIG_MIN_VERSION=0.9.0
12440 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12441 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
12442 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
12444 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
12445 { $as_echo "$as_me:$LINENO: result: yes" >&5
12446 $as_echo "yes" >&6; }
12449 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12450 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12451 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
12452 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12453 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12455 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12456 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12457 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
12458 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12459 $as_echo "$FONTCONFIG_LIBS" >&6; }
12461 FONTCONFIG_CFLAGS=""
12463 ## If we have a custom action on failure, don't print errors, but
12464 ## do set a variable so people can do so.
12465 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
12474 if test $succeeded = yes; then
12475 have_fontconfig=yes
12480 if test "$have_fontconfig" = yes ; then
12481 cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_FONTCONFIG 1
12485 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12486 save_CPPFLAGS="$CPPFLAGS"
12488 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
12489 LIBS="$FONTCONFIG_LIBS $LIBS"
12492 CPPFLAGS="$save_CPPFLAGS"
12495 r="libfontconfig-dev or fontconfig-devel"
12496 ver="`pkg-config --modversion fontconfig`"
12498 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12506 if test -z "$PKG_CONFIG"; then
12507 # Extract the first word of "pkg-config", so it can be a program name with args.
12508 set dummy pkg-config; ac_word=$2
12509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12512 $as_echo_n "(cached) " >&6
12514 case $PKG_CONFIG in
12516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12539 if test -n "$PKG_CONFIG"; then
12540 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12541 $as_echo "$PKG_CONFIG" >&6; }
12543 { $as_echo "$as_me:$LINENO: result: no" >&5
12544 $as_echo "no" >&6; }
12550 if test "$PKG_CONFIG" = "no" ; then
12551 echo "*** The pkg-config script could not be found. Make sure it is"
12552 echo "*** in your path, or set the PKG_CONFIG environment variable"
12553 echo "*** to the full path to pkg-config."
12554 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12556 PKG_CONFIG_MIN_VERSION=0.9.0
12557 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12558 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12559 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12561 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12562 { $as_echo "$as_me:$LINENO: result: yes" >&5
12563 $as_echo "yes" >&6; }
12566 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12567 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12568 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12569 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12570 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12572 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12573 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12574 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12575 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12576 $as_echo "$FREETYPE2_LIBS" >&6; }
12578 FREETYPE2_CFLAGS=""
12580 ## If we have a custom action on failure, don't print errors, but
12581 ## do set a variable so people can do so.
12582 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12591 if test $succeeded = yes; then
12597 if test "$have_freetype2" = yes; then
12598 cat >>confdefs.h <<\_ACEOF
12599 #define HAVE_FREETYPE2 1
12602 save_CPPFLAGS="$CPPFLAGS"
12604 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12605 LIBS="$FREETYPE2_LIBS $LIBS"
12608 CPPFLAGS="$save_CPPFLAGS"
12612 #r="libfreetype2-dev or freetype2-devel"
12613 r="libfreetype6-dev or freetype?-devel"
12614 ver="`pkg-config --modversion freetype2`"
12616 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12622 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12623 $as_echo_n "checking host system type... " >&6; }
12624 if test "${ac_cv_host+set}" = set; then
12625 $as_echo_n "(cached) " >&6
12627 if test "x$host_alias" = x; then
12628 ac_cv_host=$ac_cv_build
12630 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12631 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12632 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12633 { (exit 1); exit 1; }; }
12637 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12638 $as_echo "$ac_cv_host" >&6; }
12639 case $ac_cv_host in
12641 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12642 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12643 { (exit 1); exit 1; }; };;
12646 ac_save_IFS=$IFS; IFS='-'
12652 # Remember, the first character of IFS is used to create $*,
12653 # except with old shells:
12656 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12660 *cygwin* ) CYGWIN=yes;;
12664 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12665 $as_echo_n "checking host system type... " >&6; }
12666 if test "${ac_cv_host+set}" = set; then
12667 $as_echo_n "(cached) " >&6
12669 if test "x$host_alias" = x; then
12670 ac_cv_host=$ac_cv_build
12672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12673 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12674 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12675 { (exit 1); exit 1; }; }
12679 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12680 $as_echo "$ac_cv_host" >&6; }
12681 case $ac_cv_host in
12683 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12684 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12685 { (exit 1); exit 1; }; };;
12688 ac_save_IFS=$IFS; IFS='-'
12694 # Remember, the first character of IFS is used to create $*,
12695 # except with old shells:
12698 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12702 *mingw32* ) MINGW32=yes;;
12707 if test "$CYGWIN" = "yes"; then
12708 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12709 program_suffix=.exe
12710 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12711 elif test "$MINGW32" = "yes"; then
12714 program_suffix=.exe
12715 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12721 cat >>confdefs.h <<_ACEOF
12722 #define DIRSEP '${DIRSEP}'
12725 cat >>confdefs.h <<_ACEOF
12726 #define PATHSEP '${PATHSEP}'
12733 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12734 $as_echo_n "checking for some flavor of Windows... " >&6; }
12735 if test "$CYGWIN$MINGW32" = "nono"; then
12736 PLATFORM_WINDOWS=no
12738 PLATFORM_WINDOWS=yes
12740 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12741 $as_echo "$PLATFORM_WINDOWS" >&6; }
12744 for ac_prog in $target-windres windres
12746 # Extract the first word of "$ac_prog", so it can be a program name with args.
12747 set dummy $ac_prog; ac_word=$2
12748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if test "${ac_cv_prog_WINDRES+set}" = set; then
12751 $as_echo_n "(cached) " >&6
12753 if test -n "$WINDRES"; then
12754 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12763 ac_cv_prog_WINDRES="$ac_prog"
12764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 WINDRES=$ac_cv_prog_WINDRES
12774 if test -n "$WINDRES"; then
12775 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12776 $as_echo "$WINDRES" >&6; }
12778 { $as_echo "$as_me:$LINENO: result: no" >&5
12779 $as_echo "no" >&6; }
12783 test -n "$WINDRES" && break
12785 test -n "$WINDRES" || WINDRES="no"
12789 r="`eval echo '$'"WINDRES"`"
12790 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12793 ##STEPMAKE_WARN(cannot find . )
12797 if test $? -ne 0; then
12799 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12801 if test "x" = "REQUIRED"; then
12802 command="echo ERROR: $target-windres windres not found"
12803 # abort configure process here?
12805 command="- echo $target-windres windres not found"
12807 eval "WINDRES"='$command'
12813 if test $? -eq 0 -a -n ""; then
12815 r="`eval echo '$'"WINDRES"`"
12816 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12817 $as_echo_n "checking $r version... " >&6; }
12819 ## which doesn't work in ash, if /usr/bin/which isn't installed
12820 ## type -p doesn't work in ash
12821 ## command -v doesn't work in zsh
12822 ## command -v "$r" 2>&1
12823 ## this test should work in ash, bash, pdksh (ksh), zsh
12824 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12826 if test -n ""; then
12830 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12833 ## Workaround for broken Debian gcc version string:
12834 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12836 ## -V: Workaround for python
12840 ## Assume and hunt for dotted version multiplet.
12841 ## use eval trickery, because we cannot use multi-level $() instead of ``
12842 ## for compatibility reasons.
12844 ## grab the first version number in --version output.
12845 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12846 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12849 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12850 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12853 if test -z "$_ver"; then
12854 ## If empty, try date [fontforge]
12855 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12856 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12858 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12865 echo "$ver" | awk -F. '
12867 if ($3) {three = $3}
12870 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12873 echo "" | awk -F. '
12875 if ($3) {three = $3}
12878 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12880 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12881 $as_echo "$ver" >&6; }
12882 if test "$num" -lt "$req"; then
12884 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
12887 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12888 eval `echo $vervar=$num`
12889 ## AC_SUBST(`eval echo $vervar`)
12896 # guile executable for some scripts
12897 if test "$GUILEv2" = "yes"
12900 { $as_echo "$as_me:$LINENO: checking for guile" >&5
12901 $as_echo_n "checking for guile... " >&6; }
12904 for r in $GUILE guile guile2 guile2.0 guile-2.0 guile1 guile1.9 guile1.8 guile-1 guile-1.9 guile-1.8; do
12906 ## which doesn't work in ash, if /usr/bin/which isn't installed
12907 ## type -p doesn't work in ash
12908 ## command -v doesn't work in zsh
12909 ## command -v "$r" 2>&1
12910 ## this test should work in ash, bash, pdksh (ksh), zsh
12911 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12913 if ! $exe --version > /dev/null 2>&1 ; then
12917 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12920 ## Workaround for broken Debian gcc version string:
12921 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12923 ## -V: Workaround for python
12927 ## Assume and hunt for dotted version multiplet.
12928 ## use eval trickery, because we cannot use multi-level $() instead of ``
12929 ## for compatibility reasons.
12931 ## grab the first version number in --version output.
12932 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12933 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12936 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12937 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12940 if test -z "$_ver"; then
12941 ## If empty, try date [fontforge]
12942 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12943 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12945 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12951 echo "$ver" | awk -F. '
12953 if ($3) {three = $3}
12956 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12959 echo "2.0.7" | awk -F. '
12961 if ($3) {three = $3}
12964 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12967 echo "2.3.0" | awk -F. '
12969 if ($3) {three = $3}
12972 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12974 if test -n "2.0.7" && test "$num" -lt "$req"; then
12975 guile="$r >= 2.0.7 (installed: $ver)"
12978 if test -n "2.3.0" && test "$num" -ge "$sup"; then
12979 guile="$r < 2.3.0 (installed: $ver)"
12988 { $as_echo "$as_me:$LINENO: result: $found" >&5
12989 $as_echo "$found" >&6; }
12990 if test "$found" != "no"; then
12991 { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12992 $as_echo_n "checking $guile version... " >&6; }
12993 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12994 $as_echo "$ver" >&6; }
12998 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
13002 for ac_prog in $GUILE
13004 # Extract the first word of "$ac_prog", so it can be a program name with args.
13005 set dummy $ac_prog; ac_word=$2
13006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_GUILE+set}" = set; then
13009 $as_echo_n "(cached) " >&6
13011 if test -n "$GUILE"; then
13012 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_GUILE="$ac_prog"
13022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13031 GUILE=$ac_cv_prog_GUILE
13032 if test -n "$GUILE"; then
13033 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13034 $as_echo "$GUILE" >&6; }
13036 { $as_echo "$as_me:$LINENO: result: no" >&5
13037 $as_echo "no" >&6; }
13041 test -n "$GUILE" && break
13043 test -n "$GUILE" || GUILE="no"
13047 r="`eval echo '$'"GUILE"`"
13048 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
13051 ##STEPMAKE_WARN(cannot find . )
13055 if test $? -ne 0; then
13057 eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
13059 if test "" = "REQUIRED"; then
13060 command="echo ERROR: $GUILE not found"
13061 # abort configure process here?
13063 command="- echo $GUILE not found"
13065 eval "GUILE"='$command'
13071 if test $? -eq 0; then
13072 for ac_prog in $GUILE
13074 # Extract the first word of "$ac_prog", so it can be a program name with args.
13075 set dummy $ac_prog; ac_word=$2
13076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if test "${ac_cv_path_GUILE+set}" = set; then
13079 $as_echo_n "(cached) " >&6
13083 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
13094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 GUILE=$ac_cv_path_GUILE
13105 if test -n "$GUILE"; then
13106 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13107 $as_echo "$GUILE" >&6; }
13109 { $as_echo "$as_me:$LINENO: result: no" >&5
13110 $as_echo "no" >&6; }
13114 test -n "$GUILE" && break
13117 if test -n ""; then
13119 r="`eval echo '$'"GUILE"`"
13120 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13121 $as_echo_n "checking $r version... " >&6; }
13123 ## which doesn't work in ash, if /usr/bin/which isn't installed
13124 ## type -p doesn't work in ash
13125 ## command -v doesn't work in zsh
13126 ## command -v "$r" 2>&1
13127 ## this test should work in ash, bash, pdksh (ksh), zsh
13128 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13130 if test -n ""; then
13134 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13137 ## Workaround for broken Debian gcc version string:
13138 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13140 ## -V: Workaround for python
13144 ## Assume and hunt for dotted version multiplet.
13145 ## use eval trickery, because we cannot use multi-level $() instead of ``
13146 ## for compatibility reasons.
13148 ## grab the first version number in --version output.
13149 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13150 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13153 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13154 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13157 if test -z "$_ver"; then
13158 ## If empty, try date [fontforge]
13159 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13160 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13162 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13169 echo "$ver" | awk -F. '
13171 if ($3) {three = $3}
13174 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13177 echo "" | awk -F. '
13179 if ($3) {three = $3}
13182 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13184 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13185 $as_echo "$ver" >&6; }
13186 if test "$num" -lt "$req"; then
13188 eval ""=\"`eval echo \"'$'\" \""$r >= (installed: $ver)"\"`\"
13191 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
13192 eval `echo $vervar=$num`
13193 ## AC_SUBST(`eval echo $vervar`)
13201 { $as_echo "$as_me:$LINENO: checking for guile" >&5
13202 $as_echo_n "checking for guile... " >&6; }
13205 for r in $GUILE guile guile2 guile2.0 guile-2.0 guile1 guile1.9 guile1.8 guile-1 guile-1.9 guile-1.8; do
13207 ## which doesn't work in ash, if /usr/bin/which isn't installed
13208 ## type -p doesn't work in ash
13209 ## command -v doesn't work in zsh
13210 ## command -v "$r" 2>&1
13211 ## this test should work in ash, bash, pdksh (ksh), zsh
13212 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13214 if ! $exe --version > /dev/null 2>&1 ; then
13218 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13221 ## Workaround for broken Debian gcc version string:
13222 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13224 ## -V: Workaround for python
13228 ## Assume and hunt for dotted version multiplet.
13229 ## use eval trickery, because we cannot use multi-level $() instead of ``
13230 ## for compatibility reasons.
13232 ## grab the first version number in --version output.
13233 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13234 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13237 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13238 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13241 if test -z "$_ver"; then
13242 ## If empty, try date [fontforge]
13243 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13244 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13246 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13252 echo "$ver" | awk -F. '
13254 if ($3) {three = $3}
13257 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13260 echo "1.8.2" | awk -F. '
13262 if ($3) {three = $3}
13265 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13268 echo "1.9.0" | awk -F. '
13270 if ($3) {three = $3}
13273 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13275 if test -n "1.8.2" && test "$num" -lt "$req"; then
13276 guile="$r >= 1.8.2 (installed: $ver)"
13279 if test -n "1.9.0" && test "$num" -ge "$sup"; then
13280 guile="$r < 1.9.0 (installed: $ver)"
13289 { $as_echo "$as_me:$LINENO: result: $found" >&5
13290 $as_echo "$found" >&6; }
13291 if test "$found" != "no"; then
13292 { $as_echo "$as_me:$LINENO: checking $guile version" >&5
13293 $as_echo_n "checking $guile version... " >&6; }
13294 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13295 $as_echo "$ver" >&6; }
13299 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
13303 for ac_prog in $GUILE
13305 # Extract the first word of "$ac_prog", so it can be a program name with args.
13306 set dummy $ac_prog; ac_word=$2
13307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_GUILE+set}" = set; then
13310 $as_echo_n "(cached) " >&6
13312 if test -n "$GUILE"; then
13313 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322 ac_cv_prog_GUILE="$ac_prog"
13323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 GUILE=$ac_cv_prog_GUILE
13333 if test -n "$GUILE"; then
13334 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13335 $as_echo "$GUILE" >&6; }
13337 { $as_echo "$as_me:$LINENO: result: no" >&5
13338 $as_echo "no" >&6; }
13342 test -n "$GUILE" && break
13344 test -n "$GUILE" || GUILE="no"
13348 r="`eval echo '$'"GUILE"`"
13349 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
13352 ##STEPMAKE_WARN(cannot find . )
13356 if test $? -ne 0; then
13358 eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
13360 if test "" = "REQUIRED"; then
13361 command="echo ERROR: $GUILE not found"
13362 # abort configure process here?
13364 command="- echo $GUILE not found"
13366 eval "GUILE"='$command'
13372 if test $? -eq 0; then
13373 for ac_prog in $GUILE
13375 # Extract the first word of "$ac_prog", so it can be a program name with args.
13376 set dummy $ac_prog; ac_word=$2
13377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if test "${ac_cv_path_GUILE+set}" = set; then
13380 $as_echo_n "(cached) " >&6
13384 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
13395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 GUILE=$ac_cv_path_GUILE
13406 if test -n "$GUILE"; then
13407 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13408 $as_echo "$GUILE" >&6; }
13410 { $as_echo "$as_me:$LINENO: result: no" >&5
13411 $as_echo "no" >&6; }
13415 test -n "$GUILE" && break
13418 if test -n ""; then
13420 r="`eval echo '$'"GUILE"`"
13421 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13422 $as_echo_n "checking $r version... " >&6; }
13424 ## which doesn't work in ash, if /usr/bin/which isn't installed
13425 ## type -p doesn't work in ash
13426 ## command -v doesn't work in zsh
13427 ## command -v "$r" 2>&1
13428 ## this test should work in ash, bash, pdksh (ksh), zsh
13429 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13431 if test -n ""; then
13435 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13438 ## Workaround for broken Debian gcc version string:
13439 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13441 ## -V: Workaround for python
13445 ## Assume and hunt for dotted version multiplet.
13446 ## use eval trickery, because we cannot use multi-level $() instead of ``
13447 ## for compatibility reasons.
13449 ## grab the first version number in --version output.
13450 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13451 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13454 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13455 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13458 if test -z "$_ver"; then
13459 ## If empty, try date [fontforge]
13460 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13461 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13463 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13470 echo "$ver" | awk -F. '
13472 if ($3) {three = $3}
13475 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13478 echo "" | awk -F. '
13480 if ($3) {three = $3}
13483 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13485 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13486 $as_echo "$ver" >&6; }
13487 if test "$num" -lt "$req"; then
13489 eval ""=\"`eval echo \"'$'\" \""$r >= (installed: $ver)"\"`\"
13492 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
13493 eval `echo $vervar=$num`
13494 ## AC_SUBST(`eval echo $vervar`)
13502 # perl for help2man and for mf2pt1.pl
13505 for ac_prog in perl
13507 # Extract the first word of "$ac_prog", so it can be a program name with args.
13508 set dummy $ac_prog; ac_word=$2
13509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13510 $as_echo_n "checking for $ac_word... " >&6; }
13511 if test "${ac_cv_prog_PERL+set}" = set; then
13512 $as_echo_n "(cached) " >&6
13514 if test -n "$PERL"; then
13515 ac_cv_prog_PERL="$PERL" # Let the user override the test.
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524 ac_cv_prog_PERL="$ac_prog"
13525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 PERL=$ac_cv_prog_PERL
13535 if test -n "$PERL"; then
13536 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
13537 $as_echo "$PERL" >&6; }
13539 { $as_echo "$as_me:$LINENO: result: no" >&5
13540 $as_echo "no" >&6; }
13544 test -n "$PERL" && break
13546 test -n "$PERL" || PERL="no"
13550 r="`eval echo '$'"PERL"`"
13551 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
13554 ##STEPMAKE_WARN(cannot find . )
13558 if test $? -ne 0; then
13560 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
13562 if test "REQUIRED" = "REQUIRED"; then
13563 command="echo ERROR: perl not found"
13564 # abort configure process here?
13566 command="- echo perl not found"
13568 eval "PERL"='$command'
13574 if test $? -eq 0; then
13575 for ac_prog in perl
13577 # Extract the first word of "$ac_prog", so it can be a program name with args.
13578 set dummy $ac_prog; ac_word=$2
13579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if test "${ac_cv_path_PERL+set}" = set; then
13582 $as_echo_n "(cached) " >&6
13586 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13596 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13607 PERL=$ac_cv_path_PERL
13608 if test -n "$PERL"; then
13609 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
13610 $as_echo "$PERL" >&6; }
13612 { $as_echo "$as_me:$LINENO: result: no" >&5
13613 $as_echo "no" >&6; }
13617 test -n "$PERL" && break
13620 if test -n ""; then
13622 r="`eval echo '$'"PERL"`"
13623 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13624 $as_echo_n "checking $r version... " >&6; }
13626 ## which doesn't work in ash, if /usr/bin/which isn't installed
13627 ## type -p doesn't work in ash
13628 ## command -v doesn't work in zsh
13629 ## command -v "$r" 2>&1
13630 ## this test should work in ash, bash, pdksh (ksh), zsh
13631 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13633 if test -n ""; then
13637 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13640 ## Workaround for broken Debian gcc version string:
13641 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13643 ## -V: Workaround for python
13647 ## Assume and hunt for dotted version multiplet.
13648 ## use eval trickery, because we cannot use multi-level $() instead of ``
13649 ## for compatibility reasons.
13651 ## grab the first version number in --version output.
13652 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13653 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13656 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13657 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13660 if test -z "$_ver"; then
13661 ## If empty, try date [fontforge]
13662 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13663 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13665 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13672 echo "$ver" | awk -F. '
13674 if ($3) {three = $3}
13677 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13680 echo "" | awk -F. '
13682 if ($3) {three = $3}
13685 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13687 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13688 $as_echo "$ver" >&6; }
13689 if test "$num" -lt "$req"; then
13691 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13694 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
13695 eval `echo $vervar=$num`
13696 ## AC_SUBST(`eval echo $vervar`)
13703 ## Optional tools for building documentation, website, extra fonts.
13704 if test "$DOCUMENTATION" = "yes"; then
13705 DOCUMENTATION_REQUIRED=REQUIRED
13707 DOCUMENTATION_REQUIRED=OPTIONAL
13713 # Extract the first word of "$ac_prog", so it can be a program name with args.
13714 set dummy $ac_prog; ac_word=$2
13715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
13718 $as_echo_n "(cached) " >&6
13720 if test -n "$GHOSTSCRIPT"; then
13721 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13730 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
13731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
13741 if test -n "$GHOSTSCRIPT"; then
13742 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13743 $as_echo "$GHOSTSCRIPT" >&6; }
13745 { $as_echo "$as_me:$LINENO: result: no" >&5
13746 $as_echo "no" >&6; }
13750 test -n "$GHOSTSCRIPT" && break
13752 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
13756 r="`eval echo '$'"GHOSTSCRIPT"`"
13757 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
13760 ##STEPMAKE_WARN(cannot find . )
13764 if test $? -ne 0; then
13766 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
13768 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13769 command="echo ERROR: gs not found"
13770 # abort configure process here?
13772 command="- echo gs not found"
13774 eval "GHOSTSCRIPT"='$command'
13780 if test $? -eq 0; then
13783 # Extract the first word of "$ac_prog", so it can be a program name with args.
13784 set dummy $ac_prog; ac_word=$2
13785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13786 $as_echo_n "checking for $ac_word... " >&6; }
13787 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
13788 $as_echo_n "(cached) " >&6
13790 case $GHOSTSCRIPT in
13792 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
13795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
13801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13802 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13813 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13814 if test -n "$GHOSTSCRIPT"; then
13815 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13816 $as_echo "$GHOSTSCRIPT" >&6; }
13818 { $as_echo "$as_me:$LINENO: result: no" >&5
13819 $as_echo "no" >&6; }
13823 test -n "$GHOSTSCRIPT" && break
13826 if test -n "8.60"; then
13828 r="`eval echo '$'"GHOSTSCRIPT"`"
13829 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13830 $as_echo_n "checking $r version... " >&6; }
13832 ## which doesn't work in ash, if /usr/bin/which isn't installed
13833 ## type -p doesn't work in ash
13834 ## command -v doesn't work in zsh
13835 ## command -v "$r" 2>&1
13836 ## this test should work in ash, bash, pdksh (ksh), zsh
13837 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13839 if test -n ""; then
13843 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13846 ## Workaround for broken Debian gcc version string:
13847 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13849 ## -V: Workaround for python
13853 ## Assume and hunt for dotted version multiplet.
13854 ## use eval trickery, because we cannot use multi-level $() instead of ``
13855 ## for compatibility reasons.
13857 ## grab the first version number in --version output.
13858 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13859 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13862 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13863 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13866 if test -z "$_ver"; then
13867 ## If empty, try date [fontforge]
13868 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13869 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13871 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13878 echo "$ver" | awk -F. '
13880 if ($3) {three = $3}
13883 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13886 echo "8.60" | awk -F. '
13888 if ($3) {three = $3}
13891 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13893 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13894 $as_echo "$ver" >&6; }
13895 if test "$num" -lt "$req"; then
13897 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13900 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13901 eval `echo $vervar=$num`
13902 ## AC_SUBST(`eval echo $vervar`)
13914 # Extract the first word of "$ac_prog", so it can be a program name with args.
13915 set dummy $ac_prog; ac_word=$2
13916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if test "${ac_cv_prog_GS920+set}" = set; then
13919 $as_echo_n "(cached) " >&6
13921 if test -n "$GS920"; then
13922 ac_cv_prog_GS920="$GS920" # Let the user override the test.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_GS920="$ac_prog"
13932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 GS920=$ac_cv_prog_GS920
13942 if test -n "$GS920"; then
13943 { $as_echo "$as_me:$LINENO: result: $GS920" >&5
13944 $as_echo "$GS920" >&6; }
13946 { $as_echo "$as_me:$LINENO: result: no" >&5
13947 $as_echo "no" >&6; }
13951 test -n "$GS920" && break
13953 test -n "$GS920" || GS920="no"
13957 r="`eval echo '$'"GS920"`"
13958 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GS920"`' : '.*\(echo\)' > /dev/null; then
13961 ##STEPMAKE_WARN(cannot find . )
13965 if test $? -ne 0; then
13967 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
13969 if test "OPTIONAL" = "REQUIRED"; then
13970 command="echo ERROR: gs not found"
13971 # abort configure process here?
13973 command="- echo gs not found"
13975 eval "GS920"='$command'
13981 if test $? -eq 0 -a -n "9.20"; then
13983 r="`eval echo '$'"GS920"`"
13984 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13985 $as_echo_n "checking $r version... " >&6; }
13987 ## which doesn't work in ash, if /usr/bin/which isn't installed
13988 ## type -p doesn't work in ash
13989 ## command -v doesn't work in zsh
13990 ## command -v "$r" 2>&1
13991 ## this test should work in ash, bash, pdksh (ksh), zsh
13992 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13994 if test -n ""; then
13998 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14001 ## Workaround for broken Debian gcc version string:
14002 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14004 ## -V: Workaround for python
14008 ## Assume and hunt for dotted version multiplet.
14009 ## use eval trickery, because we cannot use multi-level $() instead of ``
14010 ## for compatibility reasons.
14012 ## grab the first version number in --version output.
14013 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14014 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14017 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14018 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14021 if test -z "$_ver"; then
14022 ## If empty, try date [fontforge]
14023 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14024 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14026 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14033 echo "$ver" | awk -F. '
14035 if ($3) {three = $3}
14038 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14041 echo "9.20" | awk -F. '
14043 if ($3) {three = $3}
14046 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14048 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14049 $as_echo "$ver" >&6; }
14050 if test "$num" -lt "$req"; then
14052 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 9.20 (installed: $ver)"\"`\"
14055 vervar="`echo GS920 | tr 'a-z' 'A-Z'`_VERSION"
14056 eval `echo $vervar=$num`
14057 ## AC_SUBST(`eval echo $vervar`)
14062 for ac_prog in extractpdfmark
14064 # Extract the first word of "$ac_prog", so it can be a program name with args.
14065 set dummy $ac_prog; ac_word=$2
14066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14067 $as_echo_n "checking for $ac_word... " >&6; }
14068 if test "${ac_cv_prog_EXTRACTPDFMARK+set}" = set; then
14069 $as_echo_n "(cached) " >&6
14071 if test -n "$EXTRACTPDFMARK"; then
14072 ac_cv_prog_EXTRACTPDFMARK="$EXTRACTPDFMARK" # Let the user override the test.
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14081 ac_cv_prog_EXTRACTPDFMARK="$ac_prog"
14082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14091 EXTRACTPDFMARK=$ac_cv_prog_EXTRACTPDFMARK
14092 if test -n "$EXTRACTPDFMARK"; then
14093 { $as_echo "$as_me:$LINENO: result: $EXTRACTPDFMARK" >&5
14094 $as_echo "$EXTRACTPDFMARK" >&6; }
14096 { $as_echo "$as_me:$LINENO: result: no" >&5
14097 $as_echo "no" >&6; }
14101 test -n "$EXTRACTPDFMARK" && break
14103 test -n "$EXTRACTPDFMARK" || EXTRACTPDFMARK="no"
14107 r="`eval echo '$'"EXTRACTPDFMARK"`"
14108 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"EXTRACTPDFMARK"`' : '.*\(echo\)' > /dev/null; then
14111 ##STEPMAKE_WARN(cannot find . )
14115 if test $? -ne 0; then
14117 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"extractpdfmark\"`\"
14119 if test "OPTIONAL" = "REQUIRED"; then
14120 command="echo ERROR: extractpdfmark not found"
14121 # abort configure process here?
14123 command="- echo extractpdfmark not found"
14125 eval "EXTRACTPDFMARK"='$command'
14131 if test $? -eq 0 -a -n ""; then
14133 r="`eval echo '$'"EXTRACTPDFMARK"`"
14134 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14135 $as_echo_n "checking $r version... " >&6; }
14137 ## which doesn't work in ash, if /usr/bin/which isn't installed
14138 ## type -p doesn't work in ash
14139 ## command -v doesn't work in zsh
14140 ## command -v "$r" 2>&1
14141 ## this test should work in ash, bash, pdksh (ksh), zsh
14142 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14144 if test -n ""; then
14148 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14151 ## Workaround for broken Debian gcc version string:
14152 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14154 ## -V: Workaround for python
14158 ## Assume and hunt for dotted version multiplet.
14159 ## use eval trickery, because we cannot use multi-level $() instead of ``
14160 ## for compatibility reasons.
14162 ## grab the first version number in --version output.
14163 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14164 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14167 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14168 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14171 if test -z "$_ver"; then
14172 ## If empty, try date [fontforge]
14173 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14174 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14176 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14183 echo "$ver" | awk -F. '
14185 if ($3) {three = $3}
14188 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14191 echo "" | awk -F. '
14193 if ($3) {three = $3}
14196 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14198 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14199 $as_echo "$ver" >&6; }
14200 if test "$num" -lt "$req"; then
14202 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
14205 vervar="`echo EXTRACTPDFMARK | tr 'a-z' 'A-Z'`_VERSION"
14206 eval `echo $vervar=$num`
14207 ## AC_SUBST(`eval echo $vervar`)
14212 echo "9.20" | awk -F. '
14214 if ($3) {three = $3}
14217 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14219 USE_EXTRACTPDFMARK=yes
14220 if test "$GS920_VERSION" -lt "$req"; then
14222 USE_EXTRACTPDFMARK=no
14224 if test "$EXTRACTPDFMARK" != "extractpdfmark"; then
14226 USE_EXTRACTPDFMARK=no
14228 if test "$USE_EXTRACTPDFMARK" != "yes"; then
14230 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(Optionally using Ghostscript >= 9.20 together with"\"`\"
14233 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" Extract PDFmark can significantly reduce the disk space required"\"`\"
14236 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" for building the documentation and the final PDF files.)"\"`\"
14241 for ac_prog in makeinfo
14243 # Extract the first word of "$ac_prog", so it can be a program name with args.
14244 set dummy $ac_prog; ac_word=$2
14245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
14248 $as_echo_n "(cached) " >&6
14250 if test -n "$MAKEINFO"; then
14251 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260 ac_cv_prog_MAKEINFO="$ac_prog"
14261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 MAKEINFO=$ac_cv_prog_MAKEINFO
14271 if test -n "$MAKEINFO"; then
14272 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
14273 $as_echo "$MAKEINFO" >&6; }
14275 { $as_echo "$as_me:$LINENO: result: no" >&5
14276 $as_echo "no" >&6; }
14280 test -n "$MAKEINFO" && break
14282 test -n "$MAKEINFO" || MAKEINFO="no"
14286 r="`eval echo '$'"MAKEINFO"`"
14287 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
14290 ##STEPMAKE_WARN(cannot find . )
14294 if test $? -ne 0; then
14296 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
14298 if test "REQUIRED" = "REQUIRED"; then
14299 command="echo ERROR: makeinfo not found"
14300 # abort configure process here?
14302 command="- echo makeinfo not found"
14304 eval "MAKEINFO"='$command'
14310 if test $? -eq 0 -a -n "4.11"; then
14312 r="`eval echo '$'"MAKEINFO"`"
14313 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14314 $as_echo_n "checking $r version... " >&6; }
14316 ## which doesn't work in ash, if /usr/bin/which isn't installed
14317 ## type -p doesn't work in ash
14318 ## command -v doesn't work in zsh
14319 ## command -v "$r" 2>&1
14320 ## this test should work in ash, bash, pdksh (ksh), zsh
14321 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14323 if test -n ""; then
14327 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14330 ## Workaround for broken Debian gcc version string:
14331 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14333 ## -V: Workaround for python
14337 ## Assume and hunt for dotted version multiplet.
14338 ## use eval trickery, because we cannot use multi-level $() instead of ``
14339 ## for compatibility reasons.
14341 ## grab the first version number in --version output.
14342 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14343 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14346 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14347 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14350 if test -z "$_ver"; then
14351 ## If empty, try date [fontforge]
14352 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14353 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14355 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14362 echo "$ver" | awk -F. '
14364 if ($3) {three = $3}
14367 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14370 echo "4.11" | awk -F. '
14372 if ($3) {three = $3}
14375 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14377 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14378 $as_echo "$ver" >&6; }
14379 if test "$num" -lt "$req"; then
14381 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
14384 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
14385 eval `echo $vervar=$num`
14386 ## AC_SUBST(`eval echo $vervar`)
14391 for ac_prog in texi2html
14393 # Extract the first word of "$ac_prog", so it can be a program name with args.
14394 set dummy $ac_prog; ac_word=$2
14395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14396 $as_echo_n "checking for $ac_word... " >&6; }
14397 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
14398 $as_echo_n "(cached) " >&6
14400 if test -n "$TEXI2HTML"; then
14401 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404 for as_dir in $PATH
14407 test -z "$as_dir" && as_dir=.
14408 for ac_exec_ext in '' $ac_executable_extensions; do
14409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14410 ac_cv_prog_TEXI2HTML="$ac_prog"
14411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14420 TEXI2HTML=$ac_cv_prog_TEXI2HTML
14421 if test -n "$TEXI2HTML"; then
14422 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
14423 $as_echo "$TEXI2HTML" >&6; }
14425 { $as_echo "$as_me:$LINENO: result: no" >&5
14426 $as_echo "no" >&6; }
14430 test -n "$TEXI2HTML" && break
14432 test -n "$TEXI2HTML" || TEXI2HTML="no"
14436 r="`eval echo '$'"TEXI2HTML"`"
14437 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
14440 ##STEPMAKE_WARN(cannot find . )
14444 if test $? -ne 0; then
14446 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
14448 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14449 command="echo ERROR: texi2html not found"
14450 # abort configure process here?
14452 command="- echo texi2html not found"
14454 eval "TEXI2HTML"='$command'
14460 if test $? -eq 0 -a -n "1.82"; then
14462 r="`eval echo '$'"TEXI2HTML"`"
14463 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14464 $as_echo_n "checking $r version... " >&6; }
14466 ## which doesn't work in ash, if /usr/bin/which isn't installed
14467 ## type -p doesn't work in ash
14468 ## command -v doesn't work in zsh
14469 ## command -v "$r" 2>&1
14470 ## this test should work in ash, bash, pdksh (ksh), zsh
14471 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14473 if test -n ""; then
14477 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14480 ## Workaround for broken Debian gcc version string:
14481 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14483 ## -V: Workaround for python
14487 ## Assume and hunt for dotted version multiplet.
14488 ## use eval trickery, because we cannot use multi-level $() instead of ``
14489 ## for compatibility reasons.
14491 ## grab the first version number in --version output.
14492 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14493 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14496 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14497 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14500 if test -z "$_ver"; then
14501 ## If empty, try date [fontforge]
14502 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14503 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14505 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14512 echo "$ver" | awk -F. '
14514 if ($3) {three = $3}
14517 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14520 echo "1.82" | awk -F. '
14522 if ($3) {three = $3}
14525 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14527 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14528 $as_echo "$ver" >&6; }
14529 if test "$num" -lt "$req"; then
14531 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
14534 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
14535 eval `echo $vervar=$num`
14536 ## AC_SUBST(`eval echo $vervar`)
14541 for ac_prog in dblatex
14543 # Extract the first word of "$ac_prog", so it can be a program name with args.
14544 set dummy $ac_prog; ac_word=$2
14545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14546 $as_echo_n "checking for $ac_word... " >&6; }
14547 if test "${ac_cv_prog_DBLATEX+set}" = set; then
14548 $as_echo_n "(cached) " >&6
14550 if test -n "$DBLATEX"; then
14551 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
14553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14557 test -z "$as_dir" && as_dir=.
14558 for ac_exec_ext in '' $ac_executable_extensions; do
14559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14560 ac_cv_prog_DBLATEX="$ac_prog"
14561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14570 DBLATEX=$ac_cv_prog_DBLATEX
14571 if test -n "$DBLATEX"; then
14572 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
14573 $as_echo "$DBLATEX" >&6; }
14575 { $as_echo "$as_me:$LINENO: result: no" >&5
14576 $as_echo "no" >&6; }
14580 test -n "$DBLATEX" && break
14582 test -n "$DBLATEX" || DBLATEX="no"
14586 r="`eval echo '$'"DBLATEX"`"
14587 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
14590 ##STEPMAKE_WARN(cannot find . )
14594 if test $? -ne 0; then
14596 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
14598 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14599 command="echo ERROR: dblatex not found"
14600 # abort configure process here?
14602 command="- echo dblatex not found"
14604 eval "DBLATEX"='$command'
14610 if test $? -eq 0 -a -n "0.1.4"; then
14612 r="`eval echo '$'"DBLATEX"`"
14613 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14614 $as_echo_n "checking $r version... " >&6; }
14616 ## which doesn't work in ash, if /usr/bin/which isn't installed
14617 ## type -p doesn't work in ash
14618 ## command -v doesn't work in zsh
14619 ## command -v "$r" 2>&1
14620 ## this test should work in ash, bash, pdksh (ksh), zsh
14621 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14623 if test -n ""; then
14627 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14630 ## Workaround for broken Debian gcc version string:
14631 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14633 ## -V: Workaround for python
14637 ## Assume and hunt for dotted version multiplet.
14638 ## use eval trickery, because we cannot use multi-level $() instead of ``
14639 ## for compatibility reasons.
14641 ## grab the first version number in --version output.
14642 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14643 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14646 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14647 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14650 if test -z "$_ver"; then
14651 ## If empty, try date [fontforge]
14652 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14653 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14655 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14662 echo "$ver" | awk -F. '
14664 if ($3) {three = $3}
14667 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14670 echo "0.1.4" | awk -F. '
14672 if ($3) {three = $3}
14675 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14677 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14678 $as_echo "$ver" >&6; }
14679 if test "$num" -lt "$req"; then
14681 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
14684 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
14685 eval `echo $vervar=$num`
14686 ## AC_SUBST(`eval echo $vervar`)
14691 for ac_prog in bibtex
14693 # Extract the first word of "$ac_prog", so it can be a program name with args.
14694 set dummy $ac_prog; ac_word=$2
14695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if test "${ac_cv_prog_BIBTEX+set}" = set; then
14698 $as_echo_n "(cached) " >&6
14700 if test -n "$BIBTEX"; then
14701 ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14704 for as_dir in $PATH
14707 test -z "$as_dir" && as_dir=.
14708 for ac_exec_ext in '' $ac_executable_extensions; do
14709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14710 ac_cv_prog_BIBTEX="$ac_prog"
14711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14720 BIBTEX=$ac_cv_prog_BIBTEX
14721 if test -n "$BIBTEX"; then
14722 { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
14723 $as_echo "$BIBTEX" >&6; }
14725 { $as_echo "$as_me:$LINENO: result: no" >&5
14726 $as_echo "no" >&6; }
14730 test -n "$BIBTEX" && break
14732 test -n "$BIBTEX" || BIBTEX="no"
14736 r="`eval echo '$'"BIBTEX"`"
14737 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
14740 ##STEPMAKE_WARN(cannot find . )
14744 if test $? -ne 0; then
14746 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
14748 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14749 command="echo ERROR: bibtex not found"
14750 # abort configure process here?
14752 command="- echo bibtex not found"
14754 eval "BIBTEX"='$command'
14760 if test $? -eq 0 -a -n ""; then
14762 r="`eval echo '$'"BIBTEX"`"
14763 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14764 $as_echo_n "checking $r version... " >&6; }
14766 ## which doesn't work in ash, if /usr/bin/which isn't installed
14767 ## type -p doesn't work in ash
14768 ## command -v doesn't work in zsh
14769 ## command -v "$r" 2>&1
14770 ## this test should work in ash, bash, pdksh (ksh), zsh
14771 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14773 if test -n ""; then
14777 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14780 ## Workaround for broken Debian gcc version string:
14781 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14783 ## -V: Workaround for python
14787 ## Assume and hunt for dotted version multiplet.
14788 ## use eval trickery, because we cannot use multi-level $() instead of ``
14789 ## for compatibility reasons.
14791 ## grab the first version number in --version output.
14792 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14793 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14796 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14797 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14800 if test -z "$_ver"; then
14801 ## If empty, try date [fontforge]
14802 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14803 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14805 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14812 echo "$ver" | awk -F. '
14814 if ($3) {three = $3}
14817 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14820 echo "" | awk -F. '
14822 if ($3) {three = $3}
14825 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14827 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14828 $as_echo "$ver" >&6; }
14829 if test "$num" -lt "$req"; then
14831 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14834 vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
14835 eval `echo $vervar=$num`
14836 ## AC_SUBST(`eval echo $vervar`)
14841 for ac_prog in xelatex pdflatex
14843 # Extract the first word of "$ac_prog", so it can be a program name with args.
14844 set dummy $ac_prog; ac_word=$2
14845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14846 $as_echo_n "checking for $ac_word... " >&6; }
14847 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14850 if test -n "$PDFLATEX"; then
14851 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 for as_dir in $PATH
14857 test -z "$as_dir" && as_dir=.
14858 for ac_exec_ext in '' $ac_executable_extensions; do
14859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14860 ac_cv_prog_PDFLATEX="$ac_prog"
14861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14870 PDFLATEX=$ac_cv_prog_PDFLATEX
14871 if test -n "$PDFLATEX"; then
14872 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
14873 $as_echo "$PDFLATEX" >&6; }
14875 { $as_echo "$as_me:$LINENO: result: no" >&5
14876 $as_echo "no" >&6; }
14880 test -n "$PDFLATEX" && break
14882 test -n "$PDFLATEX" || PDFLATEX="no"
14886 r="`eval echo '$'"PDFLATEX"`"
14887 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
14890 ##STEPMAKE_WARN(cannot find . )
14894 if test $? -ne 0; then
14896 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
14898 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14899 command="echo ERROR: xelatex pdflatex not found"
14900 # abort configure process here?
14902 command="- echo xelatex pdflatex not found"
14904 eval "PDFLATEX"='$command'
14910 if test $? -eq 0 -a -n ""; then
14912 r="`eval echo '$'"PDFLATEX"`"
14913 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14914 $as_echo_n "checking $r version... " >&6; }
14916 ## which doesn't work in ash, if /usr/bin/which isn't installed
14917 ## type -p doesn't work in ash
14918 ## command -v doesn't work in zsh
14919 ## command -v "$r" 2>&1
14920 ## this test should work in ash, bash, pdksh (ksh), zsh
14921 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14923 if test -n ""; then
14927 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14930 ## Workaround for broken Debian gcc version string:
14931 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14933 ## -V: Workaround for python
14937 ## Assume and hunt for dotted version multiplet.
14938 ## use eval trickery, because we cannot use multi-level $() instead of ``
14939 ## for compatibility reasons.
14941 ## grab the first version number in --version output.
14942 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14943 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14946 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14947 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14950 if test -z "$_ver"; then
14951 ## If empty, try date [fontforge]
14952 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14953 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14955 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14962 echo "$ver" | awk -F. '
14964 if ($3) {three = $3}
14967 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14970 echo "" | awk -F. '
14972 if ($3) {three = $3}
14975 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14977 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14978 $as_echo "$ver" >&6; }
14979 if test "$num" -lt "$req"; then
14981 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14984 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
14985 eval `echo $vervar=$num`
14986 ## AC_SUBST(`eval echo $vervar`)
14990 if test "$PDFLATEX" = "xelatex"; then
14992 for ac_prog in xetex
14994 # Extract the first word of "$ac_prog", so it can be a program name with args.
14995 set dummy $ac_prog; ac_word=$2
14996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14997 $as_echo_n "checking for $ac_word... " >&6; }
14998 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14999 $as_echo_n "(cached) " >&6
15001 if test -n "$PDFTEX"; then
15002 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005 for as_dir in $PATH
15008 test -z "$as_dir" && as_dir=.
15009 for ac_exec_ext in '' $ac_executable_extensions; do
15010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15011 ac_cv_prog_PDFTEX="$ac_prog"
15012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15021 PDFTEX=$ac_cv_prog_PDFTEX
15022 if test -n "$PDFTEX"; then
15023 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
15024 $as_echo "$PDFTEX" >&6; }
15026 { $as_echo "$as_me:$LINENO: result: no" >&5
15027 $as_echo "no" >&6; }
15031 test -n "$PDFTEX" && break
15033 test -n "$PDFTEX" || PDFTEX="no"
15037 r="`eval echo '$'"PDFTEX"`"
15038 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
15041 ##STEPMAKE_WARN(cannot find . )
15045 if test $? -ne 0; then
15047 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
15049 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15050 command="echo ERROR: xetex not found"
15051 # abort configure process here?
15053 command="- echo xetex not found"
15055 eval "PDFTEX"='$command'
15061 if test $? -eq 0 -a -n ""; then
15063 r="`eval echo '$'"PDFTEX"`"
15064 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15065 $as_echo_n "checking $r version... " >&6; }
15067 ## which doesn't work in ash, if /usr/bin/which isn't installed
15068 ## type -p doesn't work in ash
15069 ## command -v doesn't work in zsh
15070 ## command -v "$r" 2>&1
15071 ## this test should work in ash, bash, pdksh (ksh), zsh
15072 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15074 if test -n ""; then
15078 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15081 ## Workaround for broken Debian gcc version string:
15082 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15084 ## -V: Workaround for python
15088 ## Assume and hunt for dotted version multiplet.
15089 ## use eval trickery, because we cannot use multi-level $() instead of ``
15090 ## for compatibility reasons.
15092 ## grab the first version number in --version output.
15093 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15094 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15097 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15098 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15101 if test -z "$_ver"; then
15102 ## If empty, try date [fontforge]
15103 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15104 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15106 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15113 echo "$ver" | awk -F. '
15115 if ($3) {three = $3}
15118 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15121 echo "" | awk -F. '
15123 if ($3) {three = $3}
15126 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15128 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15129 $as_echo "$ver" >&6; }
15130 if test "$num" -lt "$req"; then
15132 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15135 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
15136 eval `echo $vervar=$num`
15137 ## AC_SUBST(`eval echo $vervar`)
15141 if test "$PDFTEX" = "xetex"; then
15142 # For avoiding PDF destination name replacement.
15143 PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
15144 PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
15148 for ac_prog in pdfetex pdftex etex
15150 # Extract the first word of "$ac_prog", so it can be a program name with args.
15151 set dummy $ac_prog; ac_word=$2
15152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15153 $as_echo_n "checking for $ac_word... " >&6; }
15154 if test "${ac_cv_prog_PDFTEX+set}" = set; then
15155 $as_echo_n "(cached) " >&6
15157 if test -n "$PDFTEX"; then
15158 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
15160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15164 test -z "$as_dir" && as_dir=.
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15167 ac_cv_prog_PDFTEX="$ac_prog"
15168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15177 PDFTEX=$ac_cv_prog_PDFTEX
15178 if test -n "$PDFTEX"; then
15179 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
15180 $as_echo "$PDFTEX" >&6; }
15182 { $as_echo "$as_me:$LINENO: result: no" >&5
15183 $as_echo "no" >&6; }
15187 test -n "$PDFTEX" && break
15189 test -n "$PDFTEX" || PDFTEX="no"
15193 r="`eval echo '$'"PDFTEX"`"
15194 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
15197 ##STEPMAKE_WARN(cannot find . )
15201 if test $? -ne 0; then
15203 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
15205 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15206 command="echo ERROR: pdfetex pdftex etex not found"
15207 # abort configure process here?
15209 command="- echo pdfetex pdftex etex not found"
15211 eval "PDFTEX"='$command'
15217 if test $? -eq 0 -a -n ""; then
15219 r="`eval echo '$'"PDFTEX"`"
15220 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15221 $as_echo_n "checking $r version... " >&6; }
15223 ## which doesn't work in ash, if /usr/bin/which isn't installed
15224 ## type -p doesn't work in ash
15225 ## command -v doesn't work in zsh
15226 ## command -v "$r" 2>&1
15227 ## this test should work in ash, bash, pdksh (ksh), zsh
15228 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15230 if test -n ""; then
15234 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15237 ## Workaround for broken Debian gcc version string:
15238 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15240 ## -V: Workaround for python
15244 ## Assume and hunt for dotted version multiplet.
15245 ## use eval trickery, because we cannot use multi-level $() instead of ``
15246 ## for compatibility reasons.
15248 ## grab the first version number in --version output.
15249 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15250 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15253 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15254 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15257 if test -z "$_ver"; then
15258 ## If empty, try date [fontforge]
15259 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15260 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15262 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15269 echo "$ver" | awk -F. '
15271 if ($3) {three = $3}
15274 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15277 echo "" | awk -F. '
15279 if ($3) {three = $3}
15282 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15284 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15285 $as_echo "$ver" >&6; }
15286 if test "$num" -lt "$req"; then
15288 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15291 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
15292 eval `echo $vervar=$num`
15293 ## AC_SUBST(`eval echo $vervar`)
15299 for ac_prog in texi2pdf
15301 # Extract the first word of "$ac_prog", so it can be a program name with args.
15302 set dummy $ac_prog; ac_word=$2
15303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15304 $as_echo_n "checking for $ac_word... " >&6; }
15305 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
15306 $as_echo_n "(cached) " >&6
15308 if test -n "$TEXI2PDF"; then
15309 ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
15317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15318 ac_cv_prog_TEXI2PDF="$ac_prog"
15319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15328 TEXI2PDF=$ac_cv_prog_TEXI2PDF
15329 if test -n "$TEXI2PDF"; then
15330 { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
15331 $as_echo "$TEXI2PDF" >&6; }
15333 { $as_echo "$as_me:$LINENO: result: no" >&5
15334 $as_echo "no" >&6; }
15338 test -n "$TEXI2PDF" && break
15340 test -n "$TEXI2PDF" || TEXI2PDF="no"
15344 r="`eval echo '$'"TEXI2PDF"`"
15345 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
15348 ##STEPMAKE_WARN(cannot find . )
15352 if test $? -ne 0; then
15354 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
15356 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15357 command="echo ERROR: texi2pdf not found"
15358 # abort configure process here?
15360 command="- echo texi2pdf not found"
15362 eval "TEXI2PDF"='$command'
15368 if test $? -eq 0 -a -n ""; then
15370 r="`eval echo '$'"TEXI2PDF"`"
15371 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15372 $as_echo_n "checking $r version... " >&6; }
15374 ## which doesn't work in ash, if /usr/bin/which isn't installed
15375 ## type -p doesn't work in ash
15376 ## command -v doesn't work in zsh
15377 ## command -v "$r" 2>&1
15378 ## this test should work in ash, bash, pdksh (ksh), zsh
15379 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15381 if test -n ""; then
15385 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15388 ## Workaround for broken Debian gcc version string:
15389 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15391 ## -V: Workaround for python
15395 ## Assume and hunt for dotted version multiplet.
15396 ## use eval trickery, because we cannot use multi-level $() instead of ``
15397 ## for compatibility reasons.
15399 ## grab the first version number in --version output.
15400 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15401 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15404 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15405 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15408 if test -z "$_ver"; then
15409 ## If empty, try date [fontforge]
15410 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15411 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15413 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15420 echo "$ver" | awk -F. '
15422 if ($3) {three = $3}
15425 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15428 echo "" | awk -F. '
15430 if ($3) {three = $3}
15433 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15435 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15436 $as_echo "$ver" >&6; }
15437 if test "$num" -lt "$req"; then
15439 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15442 vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
15443 eval `echo $vervar=$num`
15444 ## AC_SUBST(`eval echo $vervar`)
15449 for ac_prog in texindex
15451 # Extract the first word of "$ac_prog", so it can be a program name with args.
15452 set dummy $ac_prog; ac_word=$2
15453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15454 $as_echo_n "checking for $ac_word... " >&6; }
15455 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
15456 $as_echo_n "(cached) " >&6
15458 if test -n "$TEXINDEX"; then
15459 ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15465 test -z "$as_dir" && as_dir=.
15466 for ac_exec_ext in '' $ac_executable_extensions; do
15467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15468 ac_cv_prog_TEXINDEX="$ac_prog"
15469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15478 TEXINDEX=$ac_cv_prog_TEXINDEX
15479 if test -n "$TEXINDEX"; then
15480 { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
15481 $as_echo "$TEXINDEX" >&6; }
15483 { $as_echo "$as_me:$LINENO: result: no" >&5
15484 $as_echo "no" >&6; }
15488 test -n "$TEXINDEX" && break
15490 test -n "$TEXINDEX" || TEXINDEX="no"
15494 r="`eval echo '$'"TEXINDEX"`"
15495 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
15498 ##STEPMAKE_WARN(cannot find . )
15502 if test $? -ne 0; then
15504 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
15506 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15507 command="echo ERROR: texindex not found"
15508 # abort configure process here?
15510 command="- echo texindex not found"
15512 eval "TEXINDEX"='$command'
15518 if test $? -eq 0 -a -n ""; then
15520 r="`eval echo '$'"TEXINDEX"`"
15521 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15522 $as_echo_n "checking $r version... " >&6; }
15524 ## which doesn't work in ash, if /usr/bin/which isn't installed
15525 ## type -p doesn't work in ash
15526 ## command -v doesn't work in zsh
15527 ## command -v "$r" 2>&1
15528 ## this test should work in ash, bash, pdksh (ksh), zsh
15529 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15531 if test -n ""; then
15535 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15538 ## Workaround for broken Debian gcc version string:
15539 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15541 ## -V: Workaround for python
15545 ## Assume and hunt for dotted version multiplet.
15546 ## use eval trickery, because we cannot use multi-level $() instead of ``
15547 ## for compatibility reasons.
15549 ## grab the first version number in --version output.
15550 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15551 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15554 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15555 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15558 if test -z "$_ver"; then
15559 ## If empty, try date [fontforge]
15560 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15561 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15563 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15570 echo "$ver" | awk -F. '
15572 if ($3) {three = $3}
15575 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15578 echo "" | awk -F. '
15580 if ($3) {three = $3}
15583 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15585 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15586 $as_echo "$ver" >&6; }
15587 if test "$num" -lt "$req"; then
15589 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15592 vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
15593 eval `echo $vervar=$num`
15594 ## AC_SUBST(`eval echo $vervar`)
15598 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
15599 $as_echo_n "checking for epsf.tex... " >&6; }
15600 TEX_EPSF=`kpsewhich tex epsf`
15601 if test "$TEX_EPSF" = ""; then
15602 { $as_echo "$as_me:$LINENO: result: not found" >&5
15603 $as_echo "not found" >&6; }
15605 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
15608 { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
15609 $as_echo "$TEX_EPSF" >&6; }
15611 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
15612 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
15613 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
15614 if test "$TEX_FIKPARM" = ""; then
15615 { $as_echo "$as_me:$LINENO: result: not found" >&5
15616 $as_echo "not found" >&6; }
15618 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
15621 { $as_echo "$as_me:$LINENO: result: yes" >&5
15622 $as_echo "yes" >&6; }
15625 for ac_prog in pngtopnm
15627 # Extract the first word of "$ac_prog", so it can be a program name with args.
15628 set dummy $ac_prog; ac_word=$2
15629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15630 $as_echo_n "checking for $ac_word... " >&6; }
15631 if test "${ac_cv_prog_NETPBM+set}" = set; then
15632 $as_echo_n "(cached) " >&6
15634 if test -n "$NETPBM"; then
15635 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
15637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15641 test -z "$as_dir" && as_dir=.
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15644 ac_cv_prog_NETPBM="$ac_prog"
15645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15654 NETPBM=$ac_cv_prog_NETPBM
15655 if test -n "$NETPBM"; then
15656 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
15657 $as_echo "$NETPBM" >&6; }
15659 { $as_echo "$as_me:$LINENO: result: no" >&5
15660 $as_echo "no" >&6; }
15664 test -n "$NETPBM" && break
15666 test -n "$NETPBM" || NETPBM="no"
15670 r="`eval echo '$'"NETPBM"`"
15671 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
15674 ##STEPMAKE_WARN(cannot find . )
15678 if test $? -ne 0; then
15680 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
15682 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15683 command="echo ERROR: pngtopnm not found"
15684 # abort configure process here?
15686 command="- echo pngtopnm not found"
15688 eval "NETPBM"='$command'
15694 if test $? -eq 0 -a -n ""; then
15696 r="`eval echo '$'"NETPBM"`"
15697 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15698 $as_echo_n "checking $r version... " >&6; }
15700 ## which doesn't work in ash, if /usr/bin/which isn't installed
15701 ## type -p doesn't work in ash
15702 ## command -v doesn't work in zsh
15703 ## command -v "$r" 2>&1
15704 ## this test should work in ash, bash, pdksh (ksh), zsh
15705 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15707 if test -n ""; then
15711 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15714 ## Workaround for broken Debian gcc version string:
15715 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15717 ## -V: Workaround for python
15721 ## Assume and hunt for dotted version multiplet.
15722 ## use eval trickery, because we cannot use multi-level $() instead of ``
15723 ## for compatibility reasons.
15725 ## grab the first version number in --version output.
15726 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15727 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15730 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15731 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15734 if test -z "$_ver"; then
15735 ## If empty, try date [fontforge]
15736 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15737 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15739 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15746 echo "$ver" | awk -F. '
15748 if ($3) {three = $3}
15751 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15754 echo "" | awk -F. '
15756 if ($3) {three = $3}
15759 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15761 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15762 $as_echo "$ver" >&6; }
15763 if test "$num" -lt "$req"; then
15765 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15768 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
15769 eval `echo $vervar=$num`
15770 ## AC_SUBST(`eval echo $vervar`)
15775 for ac_prog in convert
15777 # Extract the first word of "$ac_prog", so it can be a program name with args.
15778 set dummy $ac_prog; ac_word=$2
15779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15780 $as_echo_n "checking for $ac_word... " >&6; }
15781 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
15782 $as_echo_n "(cached) " >&6
15784 if test -n "$IMAGEMAGICK"; then
15785 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
15787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 for as_dir in $PATH
15791 test -z "$as_dir" && as_dir=.
15792 for ac_exec_ext in '' $ac_executable_extensions; do
15793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15794 ac_cv_prog_IMAGEMAGICK="$ac_prog"
15795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15804 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
15805 if test -n "$IMAGEMAGICK"; then
15806 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
15807 $as_echo "$IMAGEMAGICK" >&6; }
15809 { $as_echo "$as_me:$LINENO: result: no" >&5
15810 $as_echo "no" >&6; }
15814 test -n "$IMAGEMAGICK" && break
15816 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
15820 r="`eval echo '$'"IMAGEMAGICK"`"
15821 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
15824 ##STEPMAKE_WARN(cannot find . )
15828 if test $? -ne 0; then
15830 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
15832 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15833 command="echo ERROR: convert not found"
15834 # abort configure process here?
15836 command="- echo convert not found"
15838 eval "IMAGEMAGICK"='$command'
15844 if test $? -eq 0 -a -n ""; then
15846 r="`eval echo '$'"IMAGEMAGICK"`"
15847 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15848 $as_echo_n "checking $r version... " >&6; }
15850 ## which doesn't work in ash, if /usr/bin/which isn't installed
15851 ## type -p doesn't work in ash
15852 ## command -v doesn't work in zsh
15853 ## command -v "$r" 2>&1
15854 ## this test should work in ash, bash, pdksh (ksh), zsh
15855 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15857 if test -n ""; then
15861 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15864 ## Workaround for broken Debian gcc version string:
15865 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15867 ## -V: Workaround for python
15871 ## Assume and hunt for dotted version multiplet.
15872 ## use eval trickery, because we cannot use multi-level $() instead of ``
15873 ## for compatibility reasons.
15875 ## grab the first version number in --version output.
15876 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15877 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15880 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15881 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15884 if test -z "$_ver"; then
15885 ## If empty, try date [fontforge]
15886 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15887 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15889 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15896 echo "$ver" | awk -F. '
15898 if ($3) {three = $3}
15901 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15904 echo "" | awk -F. '
15906 if ($3) {three = $3}
15909 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15911 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15912 $as_echo "$ver" >&6; }
15913 if test "$num" -lt "$req"; then
15915 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15918 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
15919 eval `echo $vervar=$num`
15920 ## AC_SUBST(`eval echo $vervar`)
15924 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
15928 # Extract the first word of "$ac_prog", so it can be a program name with args.
15929 set dummy $ac_prog; ac_word=$2
15930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15931 $as_echo_n "checking for $ac_word... " >&6; }
15932 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
15933 $as_echo_n "(cached) " >&6
15935 if test -n "$ZIPDOC"; then
15936 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15945 ac_cv_prog_ZIPDOC="$ac_prog"
15946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 ZIPDOC=$ac_cv_prog_ZIPDOC
15956 if test -n "$ZIPDOC"; then
15957 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
15958 $as_echo "$ZIPDOC" >&6; }
15960 { $as_echo "$as_me:$LINENO: result: no" >&5
15961 $as_echo "no" >&6; }
15965 test -n "$ZIPDOC" && break
15967 test -n "$ZIPDOC" || ZIPDOC="no"
15971 r="`eval echo '$'"ZIPDOC"`"
15972 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
15975 ##STEPMAKE_WARN(cannot find . )
15979 if test $? -ne 0; then
15981 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
15983 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15984 command="echo ERROR: zip not found"
15985 # abort configure process here?
15987 command="- echo zip not found"
15989 eval "ZIPDOC"='$command'
15995 if test $? -eq 0 -a -n ""; then
15997 r="`eval echo '$'"ZIPDOC"`"
15998 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15999 $as_echo_n "checking $r version... " >&6; }
16001 ## which doesn't work in ash, if /usr/bin/which isn't installed
16002 ## type -p doesn't work in ash
16003 ## command -v doesn't work in zsh
16004 ## command -v "$r" 2>&1
16005 ## this test should work in ash, bash, pdksh (ksh), zsh
16006 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
16008 if test -n ""; then
16012 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
16015 ## Workaround for broken Debian gcc version string:
16016 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
16018 ## -V: Workaround for python
16022 ## Assume and hunt for dotted version multiplet.
16023 ## use eval trickery, because we cannot use multi-level $() instead of ``
16024 ## for compatibility reasons.
16026 ## grab the first version number in --version output.
16027 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
16028 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16031 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
16032 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16035 if test -z "$_ver"; then
16036 ## If empty, try date [fontforge]
16037 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
16038 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
16040 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
16047 echo "$ver" | awk -F. '
16049 if ($3) {three = $3}
16052 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16055 echo "" | awk -F. '
16057 if ($3) {three = $3}
16060 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16062 { $as_echo "$as_me:$LINENO: result: $ver" >&5
16063 $as_echo "$ver" >&6; }
16064 if test "$num" -lt "$req"; then
16066 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
16069 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
16070 eval `echo $vervar=$num`
16071 ## AC_SUBST(`eval echo $vervar`)
16076 for ac_prog in rsync
16078 # Extract the first word of "$ac_prog", so it can be a program name with args.
16079 set dummy $ac_prog; ac_word=$2
16080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16081 $as_echo_n "checking for $ac_word... " >&6; }
16082 if test "${ac_cv_prog_RSYNC+set}" = set; then
16083 $as_echo_n "(cached) " >&6
16085 if test -n "$RSYNC"; then
16086 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
16088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089 for as_dir in $PATH
16092 test -z "$as_dir" && as_dir=.
16093 for ac_exec_ext in '' $ac_executable_extensions; do
16094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16095 ac_cv_prog_RSYNC="$ac_prog"
16096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16105 RSYNC=$ac_cv_prog_RSYNC
16106 if test -n "$RSYNC"; then
16107 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
16108 $as_echo "$RSYNC" >&6; }
16110 { $as_echo "$as_me:$LINENO: result: no" >&5
16111 $as_echo "no" >&6; }
16115 test -n "$RSYNC" && break
16117 test -n "$RSYNC" || RSYNC="no"
16121 r="`eval echo '$'"RSYNC"`"
16122 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
16125 ##STEPMAKE_WARN(cannot find . )
16129 if test $? -ne 0; then
16131 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
16133 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
16134 command="echo ERROR: rsync not found"
16135 # abort configure process here?
16137 command="- echo rsync not found"
16139 eval "RSYNC"='$command'
16145 if test $? -eq 0 -a -n ""; then
16147 r="`eval echo '$'"RSYNC"`"
16148 { $as_echo "$as_me:$LINENO: checking $r version" >&5
16149 $as_echo_n "checking $r version... " >&6; }
16151 ## which doesn't work in ash, if /usr/bin/which isn't installed
16152 ## type -p doesn't work in ash
16153 ## command -v doesn't work in zsh
16154 ## command -v "$r" 2>&1
16155 ## this test should work in ash, bash, pdksh (ksh), zsh
16156 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
16158 if test -n ""; then
16162 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
16165 ## Workaround for broken Debian gcc version string:
16166 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
16168 ## -V: Workaround for python
16172 ## Assume and hunt for dotted version multiplet.
16173 ## use eval trickery, because we cannot use multi-level $() instead of ``
16174 ## for compatibility reasons.
16176 ## grab the first version number in --version output.
16177 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
16178 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16181 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
16182 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16185 if test -z "$_ver"; then
16186 ## If empty, try date [fontforge]
16187 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
16188 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
16190 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
16197 echo "$ver" | awk -F. '
16199 if ($3) {three = $3}
16202 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16205 echo "" | awk -F. '
16207 if ($3) {three = $3}
16210 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16212 { $as_echo "$as_me:$LINENO: result: $ver" >&5
16213 $as_echo "$ver" >&6; }
16214 if test "$num" -lt "$req"; then
16216 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
16219 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
16220 eval `echo $vervar=$num`
16221 ## AC_SUBST(`eval echo $vervar`)
16226 cat >>confdefs.h <<_ACEOF
16227 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
16231 # must also have local.make if configure fails.
16234 if test "$reloc_b$rpath_b" = "yesno"; then
16236 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
16237 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
16242 # Gather requirements and generate output.
16245 # undo expanding of explicit --infodir=/usr/share
16246 # to ease install-time override with prefix=...
16247 strip=`echo $includedir | eval sed s@^$prefix@@`
16248 if test "$includedir" = "`eval echo $prefix$strip`"; then
16249 includedir='${prefix}'$strip''
16251 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
16252 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
16253 libdir='${exec_prefix}'$strip''
16255 strip=`echo $infodir | eval sed s@^$datarootdir@@`
16256 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
16257 infodir='${datarootdir}'$strip''
16259 strip=`echo $mandir | eval sed s@^$datarootdir@@`
16260 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
16261 mandir='${datarootdir}'$strip''
16268 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
16270 cat >confcache <<\_ACEOF
16271 # This file is a shell script that caches the results of configure
16272 # tests run on this system so they can be shared between configure
16273 # scripts and configure runs, see configure's option --config-cache.
16274 # It is not useful on other systems. If it contains results you don't
16275 # want to keep, you may remove or edit it.
16277 # config.status only pays attention to the cache file if you give it
16278 # the --recheck option to rerun configure.
16280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16282 # following values.
16286 # The following way of writing the cache mishandles newlines in values,
16287 # but we know of no workaround that is simple, portable, and efficient.
16288 # So, we kill variables containing newlines.
16289 # Ultrix sh set writes to stderr and can't be redirected directly,
16290 # and sets the high bit in the cache file unless we assign to the vars.
16292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16293 eval ac_val=\$$ac_var
16297 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16301 _ | IFS | as_nl) ;; #(
16302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16303 *) $as_unset $ac_var ;;
16309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16310 *${as_nl}ac_space=\ *)
16311 # `set' does not quote correctly, so add quotes (double-quote
16312 # substitution turns \\\\ into \\, and sed turns \\ into \).
16315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16318 # `set' quotes correctly as required by POSIX, so do not add quotes.
16319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16332 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16333 if test -w "$cache_file"; then
16334 test "x$cache_file" != "x/dev/null" &&
16335 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16336 $as_echo "$as_me: updating cache $cache_file" >&6;}
16337 cat confcache >$cache_file
16339 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16340 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16346 # Let make expand exec_prefix.
16347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16349 DEFS=-DHAVE_CONFIG_H
16353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16354 # 1. Remove the extension, and $U if already installed.
16355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16358 # will be set to the directory where LIBOBJS objects are built.
16359 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16360 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16362 LIBOBJS=$ac_libobjs
16364 LTLIBOBJS=$ac_ltlibobjs
16368 : ${CONFIG_STATUS=./config.status}
16370 ac_clean_files_save=$ac_clean_files
16371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16372 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16373 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16374 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16376 # Generated by $as_me.
16377 # Run this file to recreate the current configuration.
16378 # Compiler output produced by configure, useful for debugging
16379 # configure, is in config.log if it exists.
16382 ac_cs_recheck=false
16384 SHELL=\${CONFIG_SHELL-$SHELL}
16387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16388 ## --------------------- ##
16389 ## M4sh Initialization. ##
16390 ## --------------------- ##
16392 # Be more Bourne compatible
16393 DUALCASE=1; export DUALCASE # for MKS sh
16394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16398 # is contrary to our usage. Disable this feature.
16399 alias -g '${1+"$@"}'='"$@"'
16400 setopt NO_GLOB_SUBST
16402 case `(set -o) 2>/dev/null` in
16403 *posix*) set -o posix ;;
16412 # Avoid depending upon Character Ranges.
16413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16416 as_cr_digits='0123456789'
16417 as_cr_alnum=$as_cr_Letters$as_cr_digits
16422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16426 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16427 as_echo='printf %s\n'
16428 as_echo_n='printf %s'
16430 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16431 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16432 as_echo_n='/usr/ucb/echo -n'
16434 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16435 as_echo_n_body='eval
16439 expr "X$arg" : "X\\(.*\\)$as_nl";
16440 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16442 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16444 export as_echo_n_body
16445 as_echo_n='sh -c $as_echo_n_body as_echo'
16447 export as_echo_body
16448 as_echo='sh -c $as_echo_body as_echo'
16451 # The user is always right.
16452 if test "${PATH_SEPARATOR+set}" != set; then
16454 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16455 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16460 # Support unset when possible.
16461 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16469 # We need space, tab and new line, in precisely that order. Quoting is
16470 # there to prevent editors from complaining about space-tab.
16471 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16472 # splitting by setting IFS to empty value.)
16475 # Find who we are. Look in the path if we contain no directory separator.
16477 *[\\/]* ) as_myself=$0 ;;
16478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16479 for as_dir in $PATH
16482 test -z "$as_dir" && as_dir=.
16483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16489 # We did not find ourselves, most probably we were run as `sh COMMAND'
16490 # in which case we are not to be found in the path.
16491 if test "x$as_myself" = x; then
16494 if test ! -f "$as_myself"; then
16495 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16496 { (exit 1); exit 1; }
16499 # Work around bugs in pre-3.0 UWIN ksh.
16500 for as_var in ENV MAIL MAILPATH
16501 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16513 # Required to use basename.
16514 if expr a : '\(a\)' >/dev/null 2>&1 &&
16515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16521 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16522 as_basename=basename
16528 # Name of the executable.
16529 as_me=`$as_basename -- "$0" ||
16530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16531 X"$0" : 'X\(//\)$' \| \
16532 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16534 sed '/^.*\/\([^/][^/]*\)\/*$/{
16553 as_lineno_1=$LINENO
16554 as_lineno_2=$LINENO
16555 test "x$as_lineno_1" != "x$as_lineno_2" &&
16556 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16558 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16559 # uniformly replaced by the line number. The first 'sed' inserts a
16560 # line-number line after each line using $LINENO; the second 'sed'
16561 # does the real work. The second script uses 'N' to pair each
16562 # line-number line with the line containing $LINENO, and appends
16563 # trailing '-' during substitution so that $LINENO is not a special
16564 # case at line end.
16565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16566 # scripts with optimization help from Paolo Bonzini. Blame Lee
16567 # E. McMahon (1931-1989) for sed's syntax. :-)
16579 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16582 ' >$as_me.lineno &&
16583 chmod +x "$as_me.lineno" ||
16584 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16585 { (exit 1); exit 1; }; }
16587 # Don't try to exec as it changes $[0], causing all sort of problems
16588 # (the dirname of $[0] is not the place where we might find the
16589 # original and so on. Autoconf is especially sensitive to this).
16590 . "./$as_me.lineno"
16591 # Exit status is that of the last command.
16596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16602 ECHO_C= ECHO_N= ECHO_T=
16603 case `echo -n x` in
16605 case `echo 'x\c'` in
16606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16612 if expr a : '\(a\)' >/dev/null 2>&1 &&
16613 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16619 rm -f conf$$ conf$$.exe conf$$.file
16620 if test -d conf$$.dir; then
16621 rm -f conf$$.dir/conf$$.file
16624 mkdir conf$$.dir 2>/dev/null
16626 if (echo >conf$$.file) 2>/dev/null; then
16627 if ln -s conf$$.file conf$$ 2>/dev/null; then
16629 # ... but there are two gotchas:
16630 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16631 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16632 # In both cases, we have to default to `cp -p'.
16633 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16635 elif ln conf$$.file conf$$ 2>/dev/null; then
16643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16644 rmdir conf$$.dir 2>/dev/null
16646 if mkdir -p . 2>/dev/null; then
16649 test -d ./-p && rmdir ./-p
16653 if test -x / >/dev/null 2>&1; then
16654 as_test_x='test -x'
16656 if ls -dL / >/dev/null 2>&1; then
16663 if test -d "$1"; then
16669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16670 ???[sx]*):;;*)false;;esac;fi
16674 as_executable_p=$as_test_x
16676 # Sed expression to map a string onto a valid CPP name.
16677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16679 # Sed expression to map a string onto a valid variable name.
16680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16685 # Save the log message, to keep $[0] and so on meaningful, and to
16686 # report actual input values of CONFIG_FILES etc. instead of their
16687 # values after options handling.
16689 This file was extended by $as_me, which was
16690 generated by GNU Autoconf 2.63. Invocation command line was
16692 CONFIG_FILES = $CONFIG_FILES
16693 CONFIG_HEADERS = $CONFIG_HEADERS
16694 CONFIG_LINKS = $CONFIG_LINKS
16695 CONFIG_COMMANDS = $CONFIG_COMMANDS
16698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16703 case $ac_config_files in *"
16704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16707 case $ac_config_headers in *"
16708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16713 # Files that config.status was made for.
16714 config_files="$ac_config_files"
16715 config_headers="$ac_config_headers"
16719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721 \`$as_me' instantiates files from templates according to the
16722 current configuration.
16724 Usage: $0 [OPTION]... [FILE]...
16726 -h, --help print this help, then exit
16727 -V, --version print version number and configuration settings, then exit
16728 -q, --quiet, --silent
16729 do not print progress messages
16730 -d, --debug don't remove temporary files
16731 --recheck update $as_me by reconfiguring in the same conditions
16732 --file=FILE[:TEMPLATE]
16733 instantiate the configuration file FILE
16734 --header=FILE[:TEMPLATE]
16735 instantiate the configuration header FILE
16737 Configuration files:
16740 Configuration headers:
16743 Report bugs to <bug-autoconf@gnu.org>."
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 configured by $0, generated by GNU Autoconf 2.63,
16750 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16752 Copyright (C) 2008 Free Software Foundation, Inc.
16753 This config.status script is free software; the Free Software Foundation
16754 gives unlimited permission to copy, distribute and modify it."
16758 test -n "\$AWK" || AWK=awk
16761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16762 # The default lists apply if the user does not specify any file.
16768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16780 # Handling of the options.
16781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16784 $as_echo "$ac_cs_version"; exit ;;
16785 --debug | --debu | --deb | --de | --d | -d )
16787 --file | --fil | --fi | --f )
16790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16792 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16793 ac_need_defaults=false;;
16794 --header | --heade | --head | --hea )
16797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16799 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16800 ac_need_defaults=false;;
16802 # Conflict between --help and --header
16803 { $as_echo "$as_me: error: ambiguous option: $1
16804 Try \`$0 --help' for more information." >&2
16805 { (exit 1); exit 1; }; };;
16806 --help | --hel | -h )
16807 $as_echo "$ac_cs_usage"; exit ;;
16808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16809 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16812 # This is an error.
16813 -*) { $as_echo "$as_me: error: unrecognized option: $1
16814 Try \`$0 --help' for more information." >&2
16815 { (exit 1); exit 1; }; } ;;
16817 *) ac_config_targets="$ac_config_targets $1"
16818 ac_need_defaults=false ;;
16824 ac_configure_extra_args=
16826 if $ac_cs_silent; then
16828 ac_configure_extra_args="$ac_configure_extra_args --silent"
16832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16833 if \$ac_cs_recheck; then
16834 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16836 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16837 CONFIG_SHELL='$SHELL'
16838 export CONFIG_SHELL
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16848 ## Running $as_me. ##
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859 # Handling of arguments.
16860 for ac_config_target in $ac_config_targets
16862 case $ac_config_target in
16863 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
16864 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
16866 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16867 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16868 { (exit 1); exit 1; }; };;
16873 # If the user did not use the arguments to specify the items to instantiate,
16874 # then the envvar interface is used. Set only those that are not.
16875 # We use the long form for the default assignment because of an extremely
16876 # bizarre bug on SunOS 4.1.3.
16877 if $ac_need_defaults; then
16878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16882 # Have a temporary directory for convenience. Make it in the build tree
16883 # simply because there is no reason against having it here, and in addition,
16884 # creating and moving files from /tmp can sometimes cause problems.
16885 # Hook for its removal unless debugging.
16886 # Note that there is a small window in which the directory will not be cleaned:
16887 # after its creation but before its name has been assigned to `$tmp'.
16891 trap 'exit_status=$?
16892 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16894 trap '{ (exit 1); exit 1; }' 1 2 13 15
16896 # Create a (secure) tmp directory for tmp files.
16899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16900 test -n "$tmp" && test -d "$tmp"
16903 tmp=./conf$$-$RANDOM
16904 (umask 077 && mkdir "$tmp")
16907 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16908 { (exit 1); exit 1; }
16911 # Set up the scripts for CONFIG_FILES section.
16912 # No need to generate them if there are no CONFIG_FILES.
16913 # This happens for instance with `./config.status config.h'.
16914 if test -n "$CONFIG_FILES"; then
16918 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16922 ac_cs_awk_cr=$ac_cr
16925 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16930 echo "cat >conf$$subs.awk <<_ACEOF" &&
16931 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16933 } >conf$$subs.sh ||
16934 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16935 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16936 { (exit 1); exit 1; }; }
16937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16939 for ac_last_try in false false false false false :; do
16940 . ./conf$$subs.sh ||
16941 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16942 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16943 { (exit 1); exit 1; }; }
16945 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16946 if test $ac_delim_n = $ac_delim_num; then
16948 elif $ac_last_try; then
16949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16950 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16951 { (exit 1); exit 1; }; }
16953 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16956 rm -f conf$$subs.sh
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16963 s/^/S["/; s/!.*/"]=/
16973 s/\(.\{148\}\).*/\1/
16975 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16980 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16987 s/\(.\{148\}\).*/\1/
16989 s/["\\]/\\&/g; s/^/"/; s/$/"/
16993 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16998 ' <conf$$subs.awk | sed '
17003 ' >>$CONFIG_STATUS || ac_write_fail=1
17004 rm -f conf$$subs.awk
17005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17007 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17008 for (key in S) S_is_set[key] = 1
17014 nfields = split(line, field, "@")
17016 len = length(field[1])
17017 for (i = 2; i < nfields; i++) {
17019 keylen = length(key)
17020 if (S_is_set[key]) {
17022 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17023 len += length(value) + length(field[++i])
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17036 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17039 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17040 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17041 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17042 { (exit 1); exit 1; }; }
17045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17047 # trailing colons and then remove the whole line if VPATH becomes empty
17048 # (actually we leave an empty line to preserve line numbers).
17049 if test "x$srcdir" = x.; then
17050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17051 s/:*\$(srcdir):*/:/
17052 s/:*\${srcdir}:*/:/
17054 s/^\([^=]*=[ ]*\):*/\1/
17060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17061 fi # test -n "$CONFIG_FILES"
17063 # Set up the scripts for CONFIG_HEADERS section.
17064 # No need to generate them if there are no CONFIG_HEADERS.
17065 # This happens for instance with `./config.status Makefile'.
17066 if test -n "$CONFIG_HEADERS"; then
17067 cat >"$tmp/defines.awk" <<\_ACAWK ||
17071 # Transform confdefs.h into an awk script `defines.awk', embedded as
17072 # here-document in config.status, that substitutes the proper values into
17073 # config.h.in to produce config.h.
17075 # Create a delimiter string that does not exist in confdefs.h, to ease
17076 # handling of long lines.
17078 for ac_last_try in false false :; do
17079 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17080 if test -z "$ac_t"; then
17082 elif $ac_last_try; then
17083 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17084 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17085 { (exit 1); exit 1; }; }
17087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17091 # For the awk script, D is an array of macro values keyed by name,
17092 # likewise P contains macro parameters if any. Preserve backslash
17093 # newline sequences.
17095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17097 s/.\{148\}/&'"$ac_delim"'/g
17100 s/^[ ]*#[ ]*define[ ][ ]*/ /
17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17114 D["\1"]=" \3\\\\\\n"\\/p
17116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17121 s/.\{148\}/&'"$ac_delim"'/g
17126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17131 ' <confdefs.h | sed '
17132 s/'"$ac_delim"'/"\\\
17133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17136 for (key in D) D_is_set[key] = 1
17139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17141 split(line, arg, " ")
17142 if (arg[1] == "#") {
17146 defundef = substr(arg[1], 2)
17149 split(mac1, mac2, "(") #)
17151 prefix = substr(line, 1, index(line, defundef) - 1)
17152 if (D_is_set[macro]) {
17153 # Preserve the white space surrounding the "#".
17154 print prefix "define", macro P[macro] D[macro]
17157 # Replace #undef with comments. This is necessary, for example,
17158 # in the case of _POSIX_SOURCE, which is predefined and required
17159 # on some systems where configure will not decide to define it.
17160 if (defundef == "undef") {
17161 print "/*", prefix defundef, macro, "*/"
17169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17170 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17171 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17172 { (exit 1); exit 1; }; }
17173 fi # test -n "$CONFIG_HEADERS"
17176 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17181 :[FHLC]) ac_mode=$ac_tag; continue;;
17183 case $ac_mode$ac_tag in
17185 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17186 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17187 { (exit 1); exit 1; }; };;
17188 :[FH]-) ac_tag=-:-;;
17189 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17206 -) ac_f="$tmp/stdin";;
17207 *) # Look for the file first in the build tree, then in the source tree
17208 # (if the path is not absolute). The absolute path cannot be DOS-style,
17209 # because $ac_f cannot contain `:'.
17213 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17215 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17216 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17217 { (exit 1); exit 1; }; };;
17219 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17220 ac_file_inputs="$ac_file_inputs '$ac_f'"
17223 # Let's still pretend it is `configure' which instantiates (i.e., don't
17224 # use $as_me), people would be surprised to read:
17225 # /* config.h. Generated by config.status. */
17226 configure_input='Generated from '`
17227 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17229 if test x"$ac_file" != x-; then
17230 configure_input="$ac_file. $configure_input"
17231 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17232 $as_echo "$as_me: creating $ac_file" >&6;}
17234 # Neutralize special characters interpreted by sed in replacement strings.
17235 case $configure_input in #(
17236 *\&* | *\|* | *\\* )
17237 ac_sed_conf_input=`$as_echo "$configure_input" |
17238 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17239 *) ac_sed_conf_input=$configure_input;;
17243 *:-:* | *:-) cat >"$tmp/stdin" \
17244 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17245 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17246 { (exit 1); exit 1; }; } ;;
17251 ac_dir=`$as_dirname -- "$ac_file" ||
17252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17253 X"$ac_file" : 'X\(//\)[^/]' \| \
17254 X"$ac_file" : 'X\(//\)$' \| \
17255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17256 $as_echo X"$ac_file" |
17257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17261 /^X\(\/\/\)[^/].*/{
17276 -*) as_dir=./$as_dir;;
17278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17283 *) as_qdir=$as_dir;;
17285 as_dirs="'$as_qdir' $as_dirs"
17286 as_dir=`$as_dirname -- "$as_dir" ||
17287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288 X"$as_dir" : 'X\(//\)[^/]' \| \
17289 X"$as_dir" : 'X\(//\)$' \| \
17290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17291 $as_echo X"$as_dir" |
17292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17296 /^X\(\/\/\)[^/].*/{
17309 test -d "$as_dir" && break
17311 test -z "$as_dirs" || eval "mkdir $as_dirs"
17312 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17313 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17314 { (exit 1); exit 1; }; }; }
17318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17321 # A ".." for each directory in $ac_dir_suffix.
17322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17323 case $ac_top_builddir_sub in
17324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17328 ac_abs_top_builddir=$ac_pwd
17329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17330 # for backward compatibility:
17331 ac_top_builddir=$ac_top_build_prefix
17334 .) # We are building in place.
17336 ac_top_srcdir=$ac_top_builddir_sub
17337 ac_abs_top_srcdir=$ac_pwd ;;
17338 [\\/]* | ?:[\\/]* ) # Absolute name.
17339 ac_srcdir=$srcdir$ac_dir_suffix;
17340 ac_top_srcdir=$srcdir
17341 ac_abs_top_srcdir=$srcdir ;;
17342 *) # Relative name.
17343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17344 ac_top_srcdir=$ac_top_build_prefix$srcdir
17345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17359 # If the template does not know about datarootdir, expand it.
17360 # FIXME: This hack should be removed a few years after 2.60.
17361 ac_datarootdir_hack=; ac_datarootdir_seen=
17374 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17375 *datarootdir*) ac_datarootdir_seen=yes;;
17376 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17377 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17378 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17381 ac_datarootdir_hack='
17382 s&@datadir@&$datadir&g
17383 s&@docdir@&$docdir&g
17384 s&@infodir@&$infodir&g
17385 s&@localedir@&$localedir&g
17386 s&@mandir@&$mandir&g
17387 s&\\\${datarootdir}&$datarootdir&g' ;;
17391 # Neutralize VPATH when `$srcdir' = `.'.
17392 # Shell code in configure.ac might set extrasub.
17393 # FIXME: do we really want to maintain this feature?
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 ac_sed_extra="$ac_vpsub
17398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17401 s|@configure_input@|$ac_sed_conf_input|;t t
17402 s&@top_builddir@&$ac_top_builddir_sub&;t t
17403 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17404 s&@srcdir@&$ac_srcdir&;t t
17405 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17406 s&@top_srcdir@&$ac_top_srcdir&;t t
17407 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17408 s&@builddir@&$ac_builddir&;t t
17409 s&@abs_builddir@&$ac_abs_builddir&;t t
17410 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17411 $ac_datarootdir_hack
17413 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17414 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17415 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17416 { (exit 1); exit 1; }; }
17418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17421 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17422 which seems to be undefined. Please make sure it is defined." >&5
17423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17424 which seems to be undefined. Please make sure it is defined." >&2;}
17428 -) cat "$tmp/out" && rm -f "$tmp/out";;
17429 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17431 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17432 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17433 { (exit 1); exit 1; }; }
17439 if test x"$ac_file" != x-; then
17441 $as_echo "/* $configure_input */" \
17442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17443 } >"$tmp/config.h" \
17444 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17445 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17446 { (exit 1); exit 1; }; }
17447 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17448 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17449 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17452 mv "$tmp/config.h" "$ac_file" \
17453 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17454 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17455 { (exit 1); exit 1; }; }
17458 $as_echo "/* $configure_input */" \
17459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17460 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17461 $as_echo "$as_me: error: could not create -" >&2;}
17462 { (exit 1); exit 1; }; }
17472 { (exit 0); exit 0; }
17474 chmod +x $CONFIG_STATUS
17475 ac_clean_files=$ac_clean_files_save
17477 test $ac_write_fail = 0 ||
17478 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17479 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17480 { (exit 1); exit 1; }; }
17483 # configure is writing to config.log, and then calls config.status.
17484 # config.status does its own redirection, appending to config.log.
17485 # Unfortunately, on DOS this fails, as config.log is still kept open
17486 # by configure, so config.status won't be able to write to it; its
17487 # output is simply discarded. So we exec the FD to /dev/null,
17488 # effectively closing config.log, so it can be properly (re)opened and
17489 # appended to by config.status. When coming back to configure, we
17490 # need to make the FD available again.
17491 if test "$no_create" != yes; then
17493 ac_config_status_args=
17494 test "$silent" = yes &&
17495 ac_config_status_args="$ac_config_status_args --quiet"
17497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17500 # would make configure fail if this is the last instruction.
17501 $ac_cs_success || { (exit 1); exit 1; }
17503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17504 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17509 if test -n "$OPTIONAL"; then
17511 echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
17514 if test -n "$REQUIRED"; then
17516 echo "ERROR: Please install required programs: $REQUIRED"
17519 if test -n "$UNSUPPORTED"; then
17521 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
17524 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
17526 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
17527 if test -f config.cache ; then
17528 echo "Remove config.cache before rerunning ./configure"
17532 if test -n "$REQUIRED$UNSUPPORTED"; then
17533 rm -f $srcdir/GNUmakefile
17537 # regular in-place build
17538 # test for srcdir_build = yes ?
17539 if test "$srcdir_build" = "yes"; then
17540 rm -f $srcdir/GNUmakefile
17541 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
17542 chmod 444 $srcdir/GNUmakefile
17544 if test -f $srcdir/GNUmakefile; then
17546 Source directory already configured. Please clean the source directory
17548 make -C $srcdir distclean
17550 and rerun configure.
17555 abssrcdir="`cd $srcdir; pwd`"
17556 absbuilddir="`pwd`"
17557 for d in 2 3 4 5 ; do
17558 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
17559 case "$abssrcdir" in
17561 # source is below build directory, always copy
17564 case "$abssrcdir/${mf#./}" in
17566 # find descended into build directory, don't copy
17571 cat <<EOF | $PYTHON - > $mf
17572 print 'depth=' + ('../' * ( $d-1 ) )
17573 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
17574 print 'include \$(configure-srcdir)/$mf'
17575 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
17578 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
17579 case "$abssrcdir" in
17581 # source is below build directory, always copy
17584 case "$abssrcdir/${mf#./}" in
17586 # find descended into build directory, don't copy
17591 cat <<EOF | $PYTHON - > $mf
17592 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
17593 print 'include \$(configure-srcdir)/$mf'
17599 cat <<EOF > GNUmakefile
17601 include config\$(if \$(conf),-\$(conf),).make
17602 include \$(configure-srcdir)/GNUmakefile.in
17604 chmod 444 GNUmakefile
17609 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
17611 if make top-doc 1>/dev/null 2>&1; then
17612 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
17613 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
17619 make$mc all to build LilyPond
17620 make$mc install to install LilyPond
17621 make$mc help to see all possible targets
17623 Edit local.make for local Makefile overrides.