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>
714 build_package_datadir
750 ugh_ugh_autoconf250_builddir
778 program_transform_name
790 enable_option_checking
809 ac_precious_vars='build_alias
825 # Initialize some variables set by options.
827 ac_init_version=false
828 ac_unrecognized_opts=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 # Accept the important Cygnus configure options, so we can diagnose typos.
891 case $ac_dashdash$ac_option in
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
913 cache_file=config.cache ;;
915 -datadir | --datadir | --datadi | --datad)
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
932 { (exit 1); exit 1; }; }
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
959 { (exit 1); exit 1; }; }
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
969 eval enable_$ac_useropt=\$ac_optarg ;;
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
984 -help | --help | --hel | --he | -h)
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 htmldir=$ac_optarg ;;
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1014 -libdir | --libdir | --libdi | --libd)
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1105 -psdir | --psdir | --psdi | --psd | --ps)
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 sbindir=$ac_optarg ;;
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 sharedstatedir=$ac_optarg ;;
1131 -site | --site | --sit)
1133 -site=* | --site=* | --sit=*)
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1174 eval with_$ac_useropt=\$ac_optarg ;;
1176 -without-* | --without-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=no ;;
1194 # Obsolete; use --with-x.
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213 { (exit 1); exit 1; }; }
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221 { (exit 1); exit 1; }; }
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1239 { (exit 1); exit 1; }; }
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1245 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1246 { (exit 1); exit 1; }; } ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1264 # Be sure to have absolute directory names.
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1270 { (exit 1); exit 1; }; }
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1301 { (exit 1); exit 1; }; }
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1304 { (exit 1); exit 1; }; }
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1344 { (exit 1); exit 1; }; }
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1349 { (exit 1); exit 1; }; }
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures this package to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 if test -n "$ac_init_help"; then
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1447 do `make conf=CONF' to get output in ./out-CONF
1448 --enable-documentation build Documentation. Default: on
1449 --enable-guile2 highly experimental GUILE 2 support. Default: off
1450 --enable-relocation compile with dynamic relocation. Default: off
1451 --enable-rpath hardcode runtime library path. Default: off
1452 --enable-static-gxx link libstdc++.a statically. Default: off
1453 --enable-debugging compile with debugging info. Default: on
1454 --enable-checking compile with expensive run-time checks. Default: off
1455 --enable-optimising compile with optimising. Default: on
1456 --enable-profiling compile with gprof support. Default: off
1457 --enable-pipe compile with -pipe. Default: on
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-texgyre-dir=DIR location of TeX Gyre fonts.
1463 --with-urwotf-dir=DIR location of URW++ OTF fonts.
1464 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1465 --with-lang=LANG use LANG as language to emit messages
1466 --with-python-include=DIR
1467 location of the python include dir
1468 --with-python-lib=NAME name of the python lib
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1480 CXXCPP C++ preprocessor
1481 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1482 the first program found out of: `bison -y', `byacc', `yacc'.
1483 YFLAGS The list of arguments that will be passed by default to $YACC.
1484 This script will default YFLAGS to the empty string to avoid a
1485 default value of `-d' given by some make applications.
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1519 .) # We are building in place.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1553 generated by GNU Autoconf 2.63
1555 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1556 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1562 cat >config.log <<_ACEOF
1563 This file contains any messages produced by compilers while
1564 running configure, to aid debugging if configure makes a mistake.
1566 It was created by $as_me, which was
1567 generated by GNU Autoconf 2.63. Invocation command line was
1579 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1580 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1581 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1582 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1583 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1586 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1588 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1589 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1590 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1591 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1592 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1593 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1594 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 $as_echo "PATH: $as_dir"
1619 # Keep a trace of the command line.
1620 # Strip out --no-create and --no-recursion so they do not pile up.
1621 # Strip out --silent because we don't want to record it for future runs.
1622 # Also quote any args containing shell meta-characters.
1623 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_must_keep_next=false
1633 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1635 | -silent | --silent | --silen | --sile | --sil)
1638 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1641 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1643 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1644 if test $ac_must_keep_next = true; then
1645 ac_must_keep_next=false # Got value, back to normal.
1648 *=* | --config-cache | -C | -disable-* | --disable-* \
1649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1651 | -with-* | --with-* | -without-* | --without-* | --x)
1652 case "$ac_configure_args0 " in
1653 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1656 -* ) ac_must_keep_next=true ;;
1659 ac_configure_args="$ac_configure_args '$ac_arg'"
1664 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667 # When interrupted or exit'd, cleanup temporary files, and complete
1668 # config.log. We remove comments because anyway the quotes in there
1669 # would cause problems or look ugly.
1670 # WARNING: Use '\'' to represent an apostrophe within the trap.
1671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1672 trap 'exit_status=$?
1673 # Save into config.log some information that might help in debugging.
1678 ## ---------------- ##
1679 ## Cache variables. ##
1680 ## ---------------- ##
1683 # The following way of writing the cache mishandles newlines in values,
1685 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686 eval ac_val=\$$ac_var
1690 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1691 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1694 _ | IFS | as_nl) ;; #(
1695 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1696 *) $as_unset $ac_var ;;
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
1704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1721 for ac_var in $ac_subst_vars
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 $as_echo "$ac_var='\''$ac_val'\''"
1731 if test -n "$ac_subst_files"; then
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1738 for ac_var in $ac_subst_files
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 $as_echo "$ac_var='\''$ac_val'\''"
1749 if test -s confdefs.h; then
1759 test "$ac_signal" != 0 &&
1760 $as_echo "$as_me: caught signal $ac_signal"
1761 $as_echo "$as_me: exit $exit_status"
1763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767 for ac_signal in 1 2 13 15; do
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1775 # Predefined preprocessor variables.
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer an explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807 ac_site_file1=$CONFIG_SITE
1808 elif test "x$prefix" != xNONE; then
1809 ac_site_file1=$prefix/share/config.site
1810 ac_site_file2=$prefix/etc/config.site
1812 ac_site_file1=$ac_default_prefix/share/config.site
1813 ac_site_file2=$ac_default_prefix/etc/config.site
1815 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1817 test "x$ac_site_file" = xNONE && continue
1818 if test -r "$ac_site_file"; then
1819 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1821 sed 's/^/| /' "$ac_site_file" >&5
1826 if test -r "$cache_file"; then
1827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 $as_echo "$as_me: loading cache $cache_file" >&6;}
1833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834 *) . "./$cache_file";;
1838 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 $as_echo "$as_me: creating cache $cache_file" >&6;}
1843 # Check that the precious variables saved in the cache have kept the same
1845 ac_cache_corrupted=false
1846 for ac_var in $ac_precious_vars; do
1847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848 eval ac_new_set=\$ac_env_${ac_var}_set
1849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850 eval ac_new_val=\$ac_env_${ac_var}_value
1851 case $ac_old_set,$ac_new_set in
1853 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1857 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
1863 # differences in whitespace do not lead to failure.
1864 ac_old_val_w=`echo x $ac_old_val`
1865 ac_new_val_w=`echo x $ac_new_val`
1866 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1867 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 ac_cache_corrupted=:
1871 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1872 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1873 eval $ac_var=\$ac_old_val
1875 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1876 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1877 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1878 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1896 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900 { (exit 1); exit 1; }; }
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927 # Bootstrap StepMake configure
1929 for ac_dir in config "$srcdir"/config; do
1930 if test -f "$ac_dir/install-sh"; then
1932 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 elif test -f "$ac_dir/install.sh"; then
1936 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 elif test -f "$ac_dir/shtool"; then
1940 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 if test -z "$ac_aux_dir"; then
1945 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1946 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1947 { (exit 1); exit 1; }; }
1950 # These three variables are undocumented and unsupported,
1951 # and are intended to be withdrawn in a future Autoconf release.
1952 # They can cause serious problems if a builder's source tree is in a directory
1953 # whose full name contains unusual characters.
1954 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1955 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1956 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1960 # Make sure we can run config.sub.
1961 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1962 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1963 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1964 { (exit 1); exit 1; }; }
1966 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1967 $as_echo_n "checking build system type... " >&6; }
1968 if test "${ac_cv_build+set}" = set; then
1969 $as_echo_n "(cached) " >&6
1971 ac_build_alias=$build_alias
1972 test "x$ac_build_alias" = x &&
1973 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1974 test "x$ac_build_alias" = x &&
1975 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1976 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1977 { (exit 1); exit 1; }; }
1978 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1979 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1980 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1984 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1985 $as_echo "$ac_cv_build" >&6; }
1986 case $ac_cv_build in
1988 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1989 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2009 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2010 MICRO_VERSION=$PATCH_LEVEL
2011 TOPLEVEL_VERSION=$FULL_VERSION
2012 if test x$MY_PATCH_LEVEL != x; then
2013 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2015 VERSION=$FULL_VERSION
2016 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2017 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2019 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2020 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2023 # No versioning on directory names of sub-packages
2025 stepmake=${datadir}/stepmake
2027 if test "$prefix" = "NONE"; then
2028 presome=${ac_default_prefix}
2030 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2032 # urg, how is this supposed to work?
2033 if test "$program_prefix" = "NONE"; then
2036 if test "$program_suffix" = "NONE"; then
2040 { $as_echo "$as_me:$LINENO: checking Package" >&5
2041 $as_echo_n "checking Package... " >&6; }
2042 if test "$PACKAGE" = "STEPMAKE"; then
2043 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2044 $as_echo "Stepmake package!" >&6; }
2046 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2047 $as_echo_n "checking builddir... " >&6; }
2049 ugh_ugh_autoconf250_builddir="`pwd`"
2051 if test "$srcdir" = "."; then
2055 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2056 package_srcdir="`dirname $srcdir`"
2058 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2059 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2061 (cd stepmake 2>/dev/null || mkdir stepmake)
2062 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2065 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2066 $as_echo "$PACKAGE" >&6; }
2068 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2069 $as_echo_n "checking builddir... " >&6; }
2070 ugh_ugh_autoconf250_builddir="`pwd`"
2072 here_dir=$(cd . && pwd)
2073 full_src_dir=$(cd $srcdir && pwd)
2075 if test "$full_src_dir" = "$here_dir"; then
2080 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2081 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2083 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2084 $as_echo_n "checking for stepmake... " >&6; }
2085 # Check for installed stepmake
2086 if test -d $stepmake; then
2087 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2088 $as_echo "$stepmake" >&6; }
2090 stepmake="`cd $srcdir/stepmake; pwd`"
2091 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2092 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2098 # Use absolute directory for non-srcdir builds, so that build
2100 if test "$srcdir_build" = "no" ; then
2101 srcdir="`cd $srcdir; pwd`"
2114 # stepmake nonstandard names
2118 # We don't need the upper case variant,
2119 # so stick to macros are uppercase convention.
2120 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2121 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE "${package}"
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "${PACKAGE_NAME}"
2130 cat >>confdefs.h <<_ACEOF
2131 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2135 if test -z "$package_depth"; then
2138 package_depth="../$package_depth"
2140 export package_depth
2143 AUTOGENERATE="This file was automatically generated by configure"
2147 # Check whether --enable-config was given.
2148 if test "${enable_config+set}" = set; then
2149 enableval=$enable_config; CONFIGURATION=$enableval
2155 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2156 CONFIGFILE=config$CONFIGSUFFIX
2159 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2160 $as_echo_n "checking host system type... " >&6; }
2161 if test "${ac_cv_host+set}" = set; then
2162 $as_echo_n "(cached) " >&6
2164 if test "x$host_alias" = x; then
2165 ac_cv_host=$ac_cv_build
2167 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2168 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2169 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2170 { (exit 1); exit 1; }; }
2174 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2175 $as_echo "$ac_cv_host" >&6; }
2178 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2179 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2180 { (exit 1); exit 1; }; };;
2183 ac_save_IFS=$IFS; IFS='-'
2189 # Remember, the first character of IFS is used to create $*,
2190 # except with old shells:
2193 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197 for ac_prog in gmake make
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 $as_echo_n "checking for $ac_word... " >&6; }
2203 if test "${ac_cv_prog_MAKE+set}" = set; then
2204 $as_echo_n "(cached) " >&6
2206 if test -n "$MAKE"; then
2207 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216 ac_cv_prog_MAKE="$ac_prog"
2217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 MAKE=$ac_cv_prog_MAKE
2227 if test -n "$MAKE"; then
2228 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2229 $as_echo "$MAKE" >&6; }
2231 { $as_echo "$as_me:$LINENO: result: no" >&5
2232 $as_echo "no" >&6; }
2236 test -n "$MAKE" && break
2238 test -n "$MAKE" || MAKE="no"
2242 r="`eval echo '$'"MAKE"`"
2243 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2246 ##STEPMAKE_WARN(cannot find . )
2250 if test $? -ne 0; then
2252 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2254 if test "REQUIRED" = "REQUIRED"; then
2255 command="echo ERROR: gmake make not found"
2256 # abort configure process here?
2258 command="- echo gmake make not found"
2260 eval "MAKE"='$command'
2266 if test $? -eq 0 -a -n ""; then
2268 r="`eval echo '$'"MAKE"`"
2269 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2270 $as_echo_n "checking $r version... " >&6; }
2272 ## which doesn't work in ash, if /usr/bin/which isn't installed
2273 ## type -p doesn't work in ash
2274 ## command -v doesn't work in zsh
2275 ## command -v "$r" 2>&1
2276 ## this test should work in ash, bash, pdksh (ksh), zsh
2277 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2283 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2286 ## Workaround for broken Debian gcc version string:
2287 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2289 ## -V: Workaround for python
2293 ## Assume and hunt for dotted version multiplet.
2294 ## use eval trickery, because we cannot use multi-level $() instead of ``
2295 ## for compatibility reasons.
2297 ## grab the first version number in --version output.
2298 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2299 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2302 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2303 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2306 if test -z "$_ver"; then
2307 ## If empty, try date [fontforge]
2308 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2309 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2311 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2318 echo "$ver" | awk -F. '
2320 if ($3) {three = $3}
2323 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2328 if ($3) {three = $3}
2331 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2333 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2334 $as_echo "$ver" >&6; }
2335 if test "$num" -lt "$req"; then
2337 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2340 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2341 eval `echo $vervar=$num`
2342 ## AC_SUBST(`eval echo $vervar`)
2349 # Extract the first word of "$ac_prog", so it can be a program name with args.
2350 set dummy $ac_prog; ac_word=$2
2351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if test "${ac_cv_prog_FIND+set}" = set; then
2354 $as_echo_n "(cached) " >&6
2356 if test -n "$FIND"; then
2357 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_FIND="$ac_prog"
2367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 FIND=$ac_cv_prog_FIND
2377 if test -n "$FIND"; then
2378 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2379 $as_echo "$FIND" >&6; }
2381 { $as_echo "$as_me:$LINENO: result: no" >&5
2382 $as_echo "no" >&6; }
2386 test -n "$FIND" && break
2388 test -n "$FIND" || FIND="no"
2392 r="`eval echo '$'"FIND"`"
2393 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2396 ##STEPMAKE_WARN(cannot find . )
2400 if test $? -ne 0; then
2402 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2404 if test "REQUIRED" = "REQUIRED"; then
2405 command="echo ERROR: find not found"
2406 # abort configure process here?
2408 command="- echo find not found"
2410 eval "FIND"='$command'
2416 if test $? -eq 0 -a -n ""; then
2418 r="`eval echo '$'"FIND"`"
2419 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2420 $as_echo_n "checking $r version... " >&6; }
2422 ## which doesn't work in ash, if /usr/bin/which isn't installed
2423 ## type -p doesn't work in ash
2424 ## command -v doesn't work in zsh
2425 ## command -v "$r" 2>&1
2426 ## this test should work in ash, bash, pdksh (ksh), zsh
2427 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2433 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2436 ## Workaround for broken Debian gcc version string:
2437 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2439 ## -V: Workaround for python
2443 ## Assume and hunt for dotted version multiplet.
2444 ## use eval trickery, because we cannot use multi-level $() instead of ``
2445 ## for compatibility reasons.
2447 ## grab the first version number in --version output.
2448 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2449 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2452 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2453 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2456 if test -z "$_ver"; then
2457 ## If empty, try date [fontforge]
2458 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2459 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2461 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2468 echo "$ver" | awk -F. '
2470 if ($3) {three = $3}
2473 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2478 if ($3) {three = $3}
2481 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2483 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2484 $as_echo "$ver" >&6; }
2485 if test "$num" -lt "$req"; then
2487 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2490 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2491 eval `echo $vervar=$num`
2492 ## AC_SUBST(`eval echo $vervar`)
2500 # Extract the first word of "$ac_prog", so it can be a program name with args.
2501 set dummy $ac_prog; ac_word=$2
2502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if test "${ac_cv_prog_TAR+set}" = set; then
2505 $as_echo_n "(cached) " >&6
2507 if test -n "$TAR"; then
2508 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_TAR="$ac_prog"
2518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 if test -n "$TAR"; then
2529 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2530 $as_echo "$TAR" >&6; }
2532 { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2537 test -n "$TAR" && break
2539 test -n "$TAR" || TAR="no"
2543 r="`eval echo '$'"TAR"`"
2544 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2547 ##STEPMAKE_WARN(cannot find . )
2551 if test $? -ne 0; then
2553 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2555 if test "REQUIRED" = "REQUIRED"; then
2556 command="echo ERROR: tar not found"
2557 # abort configure process here?
2559 command="- echo tar not found"
2561 eval "TAR"='$command'
2567 if test $? -eq 0 -a -n ""; then
2569 r="`eval echo '$'"TAR"`"
2570 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2571 $as_echo_n "checking $r version... " >&6; }
2573 ## which doesn't work in ash, if /usr/bin/which isn't installed
2574 ## type -p doesn't work in ash
2575 ## command -v doesn't work in zsh
2576 ## command -v "$r" 2>&1
2577 ## this test should work in ash, bash, pdksh (ksh), zsh
2578 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2584 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2587 ## Workaround for broken Debian gcc version string:
2588 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2590 ## -V: Workaround for python
2594 ## Assume and hunt for dotted version multiplet.
2595 ## use eval trickery, because we cannot use multi-level $() instead of ``
2596 ## for compatibility reasons.
2598 ## grab the first version number in --version output.
2599 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2600 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2603 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2604 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2607 if test -z "$_ver"; then
2608 ## If empty, try date [fontforge]
2609 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2610 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2612 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2619 echo "$ver" | awk -F. '
2621 if ($3) {three = $3}
2624 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2629 if ($3) {three = $3}
2632 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2634 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2635 $as_echo "$ver" >&6; }
2636 if test "$num" -lt "$req"; then
2638 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2641 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2642 eval `echo $vervar=$num`
2643 ## AC_SUBST(`eval echo $vervar`)
2648 if test "$(echo 2)" != "2" ||
2649 test "x`uname`" = "xHP-UX"; then
2650 # Extract the first word of "ksh", so it can be a program name with args.
2651 set dummy ksh; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_path_KSH+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2659 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2682 if test -n "$KSH"; then
2683 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2684 $as_echo "$KSH" >&6; }
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2691 # Extract the first word of "bash", so it can be a program name with args.
2692 set dummy bash; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_path_BASH+set}" = set; then
2696 $as_echo_n "(cached) " >&6
2700 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2722 BASH=$ac_cv_path_BASH
2723 if test -n "$BASH"; then
2724 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2725 $as_echo "$BASH" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2733 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2734 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2737 # Extract the first word of "bash", so it can be a program name with args.
2738 set dummy bash; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_path_SHELL+set}" = set; then
2742 $as_echo_n "(cached) " >&6
2746 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2768 SHELL=$ac_cv_path_SHELL
2769 if test -n "$SHELL"; then
2770 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2771 $as_echo "$SHELL" >&6; }
2773 { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2780 # Extract the first word of "bash", so it can be a program name with args.
2781 set dummy bash; ac_word=$2
2782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_path_BASH+set}" = set; then
2785 $as_echo_n "(cached) " >&6
2789 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2811 BASH=$ac_cv_path_BASH
2812 if test -n "$BASH"; then
2813 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2814 $as_echo "$BASH" >&6; }
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2825 { $as_echo "$as_me:$LINENO: checking for python" >&5
2826 $as_echo_n "checking for python... " >&6; }
2829 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
2831 ## which doesn't work in ash, if /usr/bin/which isn't installed
2832 ## type -p doesn't work in ash
2833 ## command -v doesn't work in zsh
2834 ## command -v "$r" 2>&1
2835 ## this test should work in ash, bash, pdksh (ksh), zsh
2836 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2838 if ! $exe -V > /dev/null 2>&1 ; then
2842 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2845 ## Workaround for broken Debian gcc version string:
2846 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2848 ## -V: Workaround for python
2852 ## Assume and hunt for dotted version multiplet.
2853 ## use eval trickery, because we cannot use multi-level $() instead of ``
2854 ## for compatibility reasons.
2856 ## grab the first version number in --version output.
2857 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2858 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2861 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2862 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2865 if test -z "$_ver"; then
2866 ## If empty, try date [fontforge]
2867 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2868 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2870 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2876 echo "$ver" | awk -F. '
2878 if ($3) {three = $3}
2881 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2884 echo "1.5" | awk -F. '
2886 if ($3) {three = $3}
2889 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2892 echo "3.0" | awk -F. '
2894 if ($3) {three = $3}
2897 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2899 if test -n "1.5" && test "$num" -lt "$req"; then
2900 python="$r >= 1.5 (installed: $ver)"
2903 if test -n "3.0" && test "$num" -ge "$sup"; then
2904 python="$r < 3.0 (installed: $ver)"
2913 { $as_echo "$as_me:$LINENO: result: $found" >&5
2914 $as_echo "$found" >&6; }
2915 if test "$found" != "no"; then
2916 { $as_echo "$as_me:$LINENO: checking $python version" >&5
2917 $as_echo_n "checking $python version... " >&6; }
2918 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2919 $as_echo "$ver" >&6; }
2923 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2926 # Extract the first word of "$PYTHON", so it can be a program name with args.
2927 set dummy $PYTHON; ac_word=$2
2928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_path_PYTHON+set}" = set; then
2931 $as_echo_n "(cached) " >&6
2935 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 PYTHON=$ac_cv_path_PYTHON
2957 if test -n "$PYTHON"; then
2958 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2959 $as_echo "$PYTHON" >&6; }
2961 { $as_echo "$as_me:$LINENO: result: no" >&5
2962 $as_echo "no" >&6; }
2969 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2970 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2971 if test "$?" = 1; then
2972 warn='make (Please install *GNU* make)'
2973 # STEPMAKE_WARN($warn)
2975 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2992 cat >>confdefs.h <<_ACEOF
2993 #define DIRSEP '${DIRSEP}'
2996 cat >>confdefs.h <<_ACEOF
2997 #define PATHSEP '${PATHSEP}'
3006 if test "$prefix" = "NONE"; then
3007 presome=${ac_default_prefix}
3010 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3012 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3013 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3014 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3019 cat >>confdefs.h <<_ACEOF
3020 #define DATADIR "${DATADIR}"
3023 cat >>confdefs.h <<_ACEOF
3024 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3029 presome=${exec_prefix}
3030 if test "$presome" = "NONE"; then
3033 if test "$presome" = "NONE"; then
3034 presome=${ac_default_prefix}
3037 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3039 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3040 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3044 cat >>confdefs.h <<_ACEOF
3045 #define LIBDIR "${LIBDIR}"
3048 cat >>confdefs.h <<_ACEOF
3049 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3055 # List a file that identifies your package.
3058 # Move to aclocal.m4?
3059 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3062 # Uncomment the configuration options your package needs.
3065 # Check whether --enable-documentation was given.
3066 if test "${enable_documentation+set}" = set; then
3067 enableval=$enable_documentation; DOCUMENTATION=$enableval
3073 # Check whether --enable-guile2 was given.
3074 if test "${enable_guile2+set}" = set; then
3075 enableval=$enable_guile2; GUILEv2=$enableval
3080 # Check whether --with-texgyre-dir was given.
3081 if test "${with_texgyre_dir+set}" = set; then
3082 withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3089 # Check whether --with-urwotf-dir was given.
3090 if test "${with_urwotf_dir+set}" = set; then
3091 withval=$with_urwotf_dir; URWOTF_DIR=$withval
3098 # Check whether --enable-relocation was given.
3099 if test "${enable_relocation+set}" = set; then
3100 enableval=$enable_relocation; reloc_b=$enableval
3105 # Check whether --enable-rpath was given.
3106 if test "${enable_rpath+set}" = set; then
3107 enableval=$enable_rpath; rpath_b=$enableval
3111 LINK_GXX_STATICALLY=no
3112 # Check whether --enable-static-gxx was given.
3113 if test "${enable_static_gxx+set}" = set; then
3114 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3119 # must come before any header checks
3121 # -O is necessary to get inlining
3123 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3124 LDFLAGS=${LDFLAGS-""}
3131 # Check whether --enable-debugging was given.
3132 if test "${enable_debugging+set}" = set; then
3133 enableval=$enable_debugging; debug_b=$enableval
3137 # Check whether --enable-checking was given.
3138 if test "${enable_checking+set}" = set; then
3139 enableval=$enable_checking; checks_b=$enableval
3143 # Check whether --enable-optimising was given.
3144 if test "${enable_optimising+set}" = set; then
3145 enableval=$enable_optimising; optimise_b=$enableval
3149 # Check whether --enable-profiling was given.
3150 if test "${enable_profiling+set}" = set; then
3151 enableval=$enable_profiling; profile_b=$enableval
3155 # Check whether --enable-pipe was given.
3156 if test "${enable_pipe+set}" = set; then
3157 enableval=$enable_pipe; pipe_b=$enableval
3161 if test "$optimise_b" = yes; then
3162 OPTIMIZE=" -O2 -finline-functions"
3163 # following two lines are compatibility while Patchy has not
3164 # yet learnt about --enable-checking. But once it has, we
3165 # don't want -DDEBUG twice, so we omit it here if it is going
3166 # to get added anyway later.
3167 elif test "$checks_b" != yes; then
3168 DEFINES="$DEFINES -DDEBUG"
3171 if test "$checks_b" = yes; then
3172 DEFINES="$DEFINES -DDEBUG"
3175 if test $profile_b = yes; then
3177 OPTIMIZE="$OPTIMIZE -pg"
3180 if test $debug_b = yes; then
3181 OPTIMIZE="$OPTIMIZE -g"
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3228 if test -z "$ac_cv_prog_CC"; then
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3260 $as_echo "$ac_ct_CC" >&6; }
3262 { $as_echo "$as_me:$LINENO: result: no" >&5
3263 $as_echo "no" >&6; }
3266 if test "x$ac_ct_CC" = x; then
3269 case $cross_compiling:$ac_tool_warned in
3271 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:$LINENO: result: no" >&5
3316 $as_echo "no" >&6; }
3322 if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3372 { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then
3387 $as_echo_n "(cached) " >&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$CC"; then
3411 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3414 { $as_echo "$as_me:$LINENO: result: no" >&5
3415 $as_echo "no" >&6; }
3419 test -n "$CC" && break
3422 if test -z "$CC"; then
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC="$ac_prog"
3444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3458 { $as_echo "$as_me:$LINENO: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$ac_ct_CC" && break
3466 if test "x$ac_ct_CC" = x; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3482 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&5
3486 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }; }
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3494 { (ac_try="$ac_compiler --version >&5"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501 (eval "$ac_compiler --version >&5") 2>&5
3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }
3505 { (ac_try="$ac_compiler -v >&5"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512 (eval "$ac_compiler -v >&5") 2>&5
3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3516 { (ac_try="$ac_compiler -V >&5"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compiler -V >&5") 2>&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3548 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3549 $as_echo_n "checking for C compiler default output file name... " >&6; }
3550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3552 # The possible output files:
3553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3556 for ac_file in $ac_files
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3565 if { (ac_try="$ac_link_default"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3571 $as_echo "$ac_try_echo") >&5
3572 (eval "$ac_link_default") 2>&5
3574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; then
3576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3578 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3579 # so that the user can short-circuit this test for compilers unknown to
3581 for ac_file in $ac_files ''
3583 test -f "$ac_file" || continue
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3588 # We found the default executable, but exeext='' is most
3592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 # We set ac_cv_exeext here because the later test for it is not
3597 # safe: cross compilers may not add the suffix if given an `-o'
3598 # argument, so we may need to know it at that point already.
3599 # Even if this section looks crufty: it has the advantage of
3606 test "$ac_cv_exeext" = no && ac_cv_exeext=
3612 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3613 $as_echo "$ac_file" >&6; }
3614 if test -z "$ac_file"; then
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3621 See \`config.log' for more details." >&5
3622 $as_echo "$as_me: error: C compiler cannot create executables
3623 See \`config.log' for more details." >&2;}
3624 { (exit 77); exit 77; }; }; }
3627 ac_exeext=$ac_cv_exeext
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3632 $as_echo_n "checking whether the C compiler works... " >&6; }
3633 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3634 # If not cross compiling, check that we can run a simple program.
3635 if test "$cross_compiling" != yes; then
3636 if { ac_try='./$ac_file'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_try") 2>&5
3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3649 if test "$cross_compiling" = maybe; then
3652 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details." >&5
3657 $as_echo "$as_me: error: cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details." >&2;}
3660 { (exit 1); exit 1; }; }; }
3664 { $as_echo "$as_me:$LINENO: result: yes" >&5
3665 $as_echo "yes" >&6; }
3667 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3668 ac_clean_files=$ac_clean_files_save
3669 # Check that the compiler produces executables we can run. If not, either
3670 # the compiler is broken, or we cross compile.
3671 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3672 $as_echo_n "checking whether we are cross compiling... " >&6; }
3673 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3674 $as_echo "$cross_compiling" >&6; }
3676 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3677 $as_echo_n "checking for suffix of executables... " >&6; }
3678 if { (ac_try="$ac_link"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_link") 2>&5
3687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; then
3689 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3690 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3691 # work properly (i.e., refer to `conftest.exe'), while it won't with
3693 for ac_file in conftest.exe conftest conftest.*; do
3694 test -f "$ac_file" || continue
3696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3697 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3706 See \`config.log' for more details." >&5
3707 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3708 See \`config.log' for more details." >&2;}
3709 { (exit 1); exit 1; }; }; }
3712 rm -f conftest$ac_cv_exeext
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3719 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3720 $as_echo_n "checking for suffix of object files... " >&6; }
3721 if test "${ac_cv_objext+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3739 rm -f conftest.o conftest.obj
3740 if { (ac_try="$ac_compile"
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746 $as_echo "$ac_try_echo") >&5
3747 (eval "$ac_compile") 2>&5
3749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; then
3751 for ac_file in conftest.o conftest.obj conftest.*; do
3752 test -f "$ac_file" || continue;
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3760 $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3766 See \`config.log' for more details." >&5
3767 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3768 See \`config.log' for more details." >&2;}
3769 { (exit 1); exit 1; }; }; }
3772 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3774 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3775 $as_echo "$ac_cv_objext" >&6; }
3776 OBJEXT=$ac_cv_objext
3778 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3779 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3780 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3781 $as_echo_n "(cached) " >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.$ac_objext; then
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3831 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3833 if test $ac_compiler_gnu = yes; then
3838 ac_test_CFLAGS=${CFLAGS+set}
3839 ac_save_CFLAGS=$CFLAGS
3840 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3842 if test "${ac_cv_prog_cc_g+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3845 ac_save_c_werror_flag=$ac_c_werror_flag
3846 ac_c_werror_flag=yes
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3864 rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3871 $as_echo "$ac_try_echo") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3884 $as_echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_c_werror_flag=$ac_save_c_werror_flag
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3943 rm -f conftest.$ac_objext
3944 if { (ac_try="$ac_compile"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3950 $as_echo "$ac_try_echo") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_c_werror_flag=$ac_save_c_werror_flag
3978 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3979 $as_echo "$ac_cv_prog_cc_g" >&6; }
3980 if test "$ac_test_CFLAGS" = set; then
3981 CFLAGS=$ac_save_CFLAGS
3982 elif test $ac_cv_prog_cc_g = yes; then
3983 if test "$GCC" = yes; then
3989 if test "$GCC" = yes; then
3995 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3997 if test "${ac_cv_prog_cc_c89+set}" = set; then
3998 $as_echo_n "(cached) " >&6
4000 ac_cv_prog_cc_c89=no
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4010 #include <sys/types.h>
4011 #include <sys/stat.h>
4012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4013 struct buf { int x; };
4014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4015 static char *e (p, i)
4021 static char *f (char * (*g) (char **, int), char **p, ...)
4026 s = g (p, va_arg (v,int));
4031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4032 function prototypes and stuff, but not '\xHH' hex character constants.
4033 These don't provoke an error unfortunately, instead are silently treated
4034 as 'x'. The following induces an error, until -std is added to get
4035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4036 array size at least. It's necessary to write '\x00'==0 to get something
4037 that's true only with -std. */
4038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4041 inside strings and character constants. */
4043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4045 int test (int i, double x);
4046 struct s1 {int (*f) (int a);};
4047 struct s2 {int (*f) (double a);};
4048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4062 CC="$ac_save_CC $ac_arg"
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4070 $as_echo "$ac_try_echo") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 ac_cv_prog_cc_c89=$ac_arg
4083 $as_echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4089 rm -f core conftest.err conftest.$ac_objext
4090 test "x$ac_cv_prog_cc_c89" != "xno" && break
4092 rm -f conftest.$ac_ext
4097 case "x$ac_cv_prog_cc_c89" in
4099 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;;
4102 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;;
4105 CC="$CC $ac_cv_prog_cc_c89"
4106 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124 r="`eval echo '$'"CC"`"
4125 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4128 ##STEPMAKE_WARN(cannot find . )
4132 if test $? -ne 0; then
4134 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4136 if test "" = "REQUIRED"; then
4137 command="echo ERROR: cc not found"
4138 # abort configure process here?
4140 command="- echo cc not found"
4142 eval "CC"='$command'
4151 # If -pipe requested, test if it works and add to CFLAGS.
4152 if test "$pipe_b" = yes; then
4153 save_cflags="$CFLAGS"
4154 CFLAGS=" -pipe $CFLAGS";
4155 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4156 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4157 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4158 $as_echo_n "(cached) " >&6
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4176 rm -f conftest.$ac_objext
4177 if { (ac_try="$ac_compile"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4183 $as_echo "$ac_try_echo") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 stepmake_cv_cflags_pipe=yes
4196 $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 stepmake_cv_cflags_pipe=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4205 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4207 if test $stepmake_cv_cflags_pipe = yes; then
4208 OPTIMIZE="$OPTIMIZE -pipe"
4212 CFLAGS="$CFLAGS $OPTIMIZE"
4213 CPPFLAGS=${CPPFLAGS-""}
4215 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4216 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4217 save_cflags="$CFLAGS"
4220 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4221 $as_echo "-mieee" >&6; }
4222 CFLAGS=" -mieee $CFLAGS"
4225 { $as_echo "$as_me:$LINENO: result: none" >&5
4226 $as_echo "none" >&6; }
4238 # Extract the first word of "fc-list", so it can be a program name with args.
4239 set dummy fc-list; ac_word=$2
4240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_FCLIST+set}" = set; then
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$FCLIST"; then
4246 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_FCLIST="fc-list"
4256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 FCLIST=$ac_cv_prog_FCLIST
4266 if test -n "$FCLIST"; then
4267 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4268 $as_echo "$FCLIST" >&6; }
4270 { $as_echo "$as_me:$LINENO: result: no" >&5
4271 $as_echo "no" >&6; }
4275 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4276 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4279 if test "$TEXGYRE_DIR" = ""; then
4280 if test "$FCLIST" != ""; then
4281 TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4282 if test "$TEXGYRE_FILE" != ""; then
4283 TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4284 TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4285 TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4286 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4287 X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4288 X$TEXGYRE_FILE : 'X\(//\)$' \| \
4289 X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4290 $as_echo X$TEXGYRE_FILE |
4291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4311 if test "$TEXGYRE_DIR" != "" ; then
4312 for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4313 texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4314 texgyreheros-regular.otf texgyreheros-italic.otf \
4315 texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4316 texgyrecursor-regular.otf texgyrecursor-italic.otf \
4317 texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4318 if test ! -f "$TEXGYRE_DIR/$f"; then
4319 MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4321 TEXGYRE_FILES="$TEXGYRE_FILES $f"
4325 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4326 { $as_echo "$as_me:$LINENO: result: no" >&5
4327 $as_echo "no" >&6; }
4329 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4331 if test "$TEXGYRE_DIR" = ""; then
4332 if test "$FCLIST" = ""; then
4334 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4338 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)"\"`\"
4343 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4347 { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4350 { $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
4351 $as_echo_n "checking for URW++ OTF files... " >&6; }
4354 if test "$URWOTF_DIR" = ""; then
4355 if test "$FCLIST" != ""; then
4356 URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
4357 if test "$URWOTF_FILE" != ""; then
4358 URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
4359 URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
4360 URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
4361 $as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4362 X$URWOTF_FILE : 'X\(//\)[^/]' \| \
4363 X$URWOTF_FILE : 'X\(//\)$' \| \
4364 X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
4365 $as_echo X$URWOTF_FILE |
4366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4386 if test "$URWOTF_DIR" != "" ; then
4387 for f in C059-BdIta.otf C059-Bold.otf \
4388 C059-Italic.otf C059-Roman.otf \
4389 NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
4390 NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
4391 NimbusSans-Bold.otf NimbusSans-BoldOblique.otf \
4392 NimbusSans-Oblique.otf NimbusSans-Regular.otf; do
4393 if test ! -f "$URWOTF_DIR/$f"; then
4394 MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
4396 URWOTF_FILES="$URWOTF_FILES $f"
4400 if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
4401 { $as_echo "$as_me:$LINENO: result: no" >&5
4402 $as_echo "no" >&6; }
4404 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
4406 if test "$URWOTF_DIR" = ""; then
4407 if test "$FCLIST" = ""; then
4409 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
4413 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=commit;h=79bcdfb34fbce12b592cce389fa7a19da6b5b018' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
4418 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
4422 { $as_echo "$as_me:$LINENO: result: yes" >&5
4423 $as_echo "yes" >&6; }
4427 ac_cpp='$CXXCPP $CPPFLAGS'
4428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4434 { $as_echo "$as_me:$LINENO: checking for python" >&5
4435 $as_echo_n "checking for python... " >&6; }
4438 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
4440 ## which doesn't work in ash, if /usr/bin/which isn't installed
4441 ## type -p doesn't work in ash
4442 ## command -v doesn't work in zsh
4443 ## command -v "$r" 2>&1
4444 ## this test should work in ash, bash, pdksh (ksh), zsh
4445 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4447 if ! $exe -V > /dev/null 2>&1 ; then
4451 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4454 ## Workaround for broken Debian gcc version string:
4455 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4457 ## -V: Workaround for python
4461 ## Assume and hunt for dotted version multiplet.
4462 ## use eval trickery, because we cannot use multi-level $() instead of ``
4463 ## for compatibility reasons.
4465 ## grab the first version number in --version output.
4466 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4467 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4470 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4471 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4474 if test -z "$_ver"; then
4475 ## If empty, try date [fontforge]
4476 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4477 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4479 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4485 echo "$ver" | awk -F. '
4487 if ($3) {three = $3}
4490 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4493 echo "2.4" | awk -F. '
4495 if ($3) {three = $3}
4498 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4501 echo "3.0" | awk -F. '
4503 if ($3) {three = $3}
4506 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4508 if test -n "2.4" && test "$num" -lt "$req"; then
4509 python="$r >= 2.4 (installed: $ver)"
4512 if test -n "3.0" && test "$num" -ge "$sup"; then
4513 python="$r < 3.0 (installed: $ver)"
4522 { $as_echo "$as_me:$LINENO: result: $found" >&5
4523 $as_echo "$found" >&6; }
4524 if test "$found" != "no"; then
4525 { $as_echo "$as_me:$LINENO: checking $python version" >&5
4526 $as_echo_n "checking $python version... " >&6; }
4527 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4528 $as_echo "$ver" >&6; }
4532 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4535 # Extract the first word of "$PYTHON", so it can be a program name with args.
4536 set dummy $PYTHON; ac_word=$2
4537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_path_PYTHON+set}" = set; then
4540 $as_echo_n "(cached) " >&6
4544 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 PYTHON=$ac_cv_path_PYTHON
4566 if test -n "$PYTHON"; then
4567 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4568 $as_echo "$PYTHON" >&6; }
4570 { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4577 # this checks if we have GNU C by compiling a program with
4578 # __GNUC__, but that macro now unofficially means "the compiler
4579 # supports the GNU C extensions" -- the intel C compiler and clang
4580 # both support __GNUC__!
4582 ac_cpp='$CXXCPP $CPPFLAGS'
4583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4586 if test -z "$CXX"; then
4587 if test -n "$CCC"; then
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_CXX+set}" = set; then
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$CXX"; then
4601 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 if test -n "$CXX"; then
4622 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4623 $as_echo "$CXX" >&6; }
4625 { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$CXX" && break
4633 if test -z "$CXX"; then
4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$ac_ct_CXX"; then
4645 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_ac_ct_CXX="$ac_prog"
4655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4665 if test -n "$ac_ct_CXX"; then
4666 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4667 $as_echo "$ac_ct_CXX" >&6; }
4669 { $as_echo "$as_me:$LINENO: result: no" >&5
4670 $as_echo "no" >&6; }
4674 test -n "$ac_ct_CXX" && break
4677 if test "x$ac_ct_CXX" = x; then
4680 case $cross_compiling:$ac_tool_warned in
4682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4692 # Provide some information about the compiler.
4693 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4696 { (ac_try="$ac_compiler --version >&5"
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702 $as_echo "$ac_try_echo") >&5
4703 (eval "$ac_compiler --version >&5") 2>&5
4705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }
4707 { (ac_try="$ac_compiler -v >&5"
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_compiler -v >&5") 2>&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }
4718 { (ac_try="$ac_compiler -V >&5"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725 (eval "$ac_compiler -V >&5") 2>&5
4727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }
4730 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4731 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4732 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4735 cat >conftest.$ac_ext <<_ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4753 rm -f conftest.$ac_objext
4754 if { (ac_try="$ac_compile"
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_compile") 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && {
4768 test -z "$ac_cxx_werror_flag" ||
4769 test ! -s conftest.err
4770 } && test -s conftest.$ac_objext; then
4773 $as_echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4783 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4784 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4785 if test $ac_compiler_gnu = yes; then
4790 ac_test_CXXFLAGS=${CXXFLAGS+set}
4791 ac_save_CXXFLAGS=$CXXFLAGS
4792 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4793 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4794 if test "${ac_cv_prog_cxx_g+set}" = set; then
4795 $as_echo_n "(cached) " >&6
4797 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4798 ac_cxx_werror_flag=yes
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4816 rm -f conftest.$ac_objext
4817 if { (ac_try="$ac_compile"
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823 $as_echo "$ac_try_echo") >&5
4824 (eval "$ac_compile") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_cxx_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest.$ac_objext; then
4834 ac_cv_prog_cxx_g=yes
4836 $as_echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compile") 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_cxx_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest.$ac_objext; then
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_cxx_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4913 ac_cv_prog_cxx_g=yes
4915 $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4931 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4932 if test "$ac_test_CXXFLAGS" = set; then
4933 CXXFLAGS=$ac_save_CXXFLAGS
4934 elif test $ac_cv_prog_cxx_g = yes; then
4935 if test "$GXX" = yes; then
4941 if test "$GXX" = yes; then
4948 ac_cpp='$CXXCPP $CPPFLAGS'
4949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955 ac_cpp='$CXXCPP $CPPFLAGS'
4956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4959 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4961 if test -z "$CXXCPP"; then
4962 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4963 $as_echo_n "(cached) " >&6
4965 # Double quotes because CXXCPP needs to be expanded
4966 for CXXCPP in "$CXX -E" "/lib/cpp"
4969 for ac_cxx_preproc_warn_flag in '' yes
4971 # Use a header file that comes with gcc, so configuring glibc
4972 # with a fresh cross-compiler works.
4973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4974 # <limits.h> exists even on freestanding compilers.
4975 # On the NeXT, cc -E runs the code through the compiler's parser,
4976 # not just through cpp. "Syntax error" is here to catch this case.
4977 cat >conftest.$ac_ext <<_ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4984 # include <limits.h>
4986 # include <assert.h>
4990 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev/null && {
5004 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5005 test ! -s conftest.err
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Broken: fails on valid input.
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <ac_nonexistent.h>
5028 if { (ac_try="$ac_cpp conftest.$ac_ext"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5034 $as_echo "$ac_try_echo") >&5
5035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } >/dev/null && {
5042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5043 test ! -s conftest.err
5045 # Broken: success on invalid input.
5048 $as_echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 # Passes both tests.
5056 rm -f conftest.err conftest.$ac_ext
5059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5060 rm -f conftest.err conftest.$ac_ext
5061 if $ac_preproc_ok; then
5066 ac_cv_prog_CXXCPP=$CXXCPP
5069 CXXCPP=$ac_cv_prog_CXXCPP
5071 ac_cv_prog_CXXCPP=$CXXCPP
5073 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5074 $as_echo "$CXXCPP" >&6; }
5076 for ac_cxx_preproc_warn_flag in '' yes
5078 # Use a header file that comes with gcc, so configuring glibc
5079 # with a fresh cross-compiler works.
5080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081 # <limits.h> exists even on freestanding compilers.
5082 # On the NeXT, cc -E runs the code through the compiler's parser,
5083 # not just through cpp. "Syntax error" is here to catch this case.
5084 cat >conftest.$ac_ext <<_ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5091 # include <limits.h>
5093 # include <assert.h>
5097 if { (ac_try="$ac_cpp conftest.$ac_ext"
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5103 $as_echo "$ac_try_echo") >&5
5104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } >/dev/null && {
5111 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5112 test ! -s conftest.err
5116 $as_echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 # Broken: fails on valid input.
5123 rm -f conftest.err conftest.$ac_ext
5125 # OK, works on sane cases. Now check whether nonexistent headers
5126 # can be detected and how.
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 #include <ac_nonexistent.h>
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5141 $as_echo "$ac_try_echo") >&5
5142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } >/dev/null && {
5149 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5150 test ! -s conftest.err
5152 # Broken: success on invalid input.
5155 $as_echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Passes both tests.
5163 rm -f conftest.err conftest.$ac_ext
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then
5171 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5174 See \`config.log' for more details." >&5
5175 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5176 See \`config.log' for more details." >&2;}
5177 { (exit 1); exit 1; }; }; }
5181 ac_cpp='$CXXCPP $CPPFLAGS'
5182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5187 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5188 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5189 if test "${ac_cv_path_GREP+set}" = set; then
5190 $as_echo_n "(cached) " >&6
5192 if test -z "$GREP"; then
5193 ac_path_GREP_found=false
5194 # Loop through the user's path and test for each of PROGNAME-LIST
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5199 test -z "$as_dir" && as_dir=.
5200 for ac_prog in grep ggrep; do
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5203 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5204 # Check for GNU ac_path_GREP and select it if it is found.
5205 # Check for GNU $ac_path_GREP
5206 case `"$ac_path_GREP" --version 2>&1` in
5208 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5211 $as_echo_n 0123456789 >"conftest.in"
5214 cat "conftest.in" "conftest.in" >"conftest.tmp"
5215 mv "conftest.tmp" "conftest.in"
5216 cp "conftest.in" "conftest.nl"
5217 $as_echo 'GREP' >> "conftest.nl"
5218 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220 ac_count=`expr $ac_count + 1`
5221 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5222 # Best one so far, save it but keep looking for a better one
5223 ac_cv_path_GREP="$ac_path_GREP"
5224 ac_path_GREP_max=$ac_count
5226 # 10*(2^10) chars as input seems more than enough
5227 test $ac_count -gt 10 && break
5229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5232 $ac_path_GREP_found && break 3
5237 if test -z "$ac_cv_path_GREP"; then
5238 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5239 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5240 { (exit 1); exit 1; }; }
5243 ac_cv_path_GREP=$GREP
5247 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5248 $as_echo "$ac_cv_path_GREP" >&6; }
5249 GREP="$ac_cv_path_GREP"
5252 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5253 $as_echo_n "checking for egrep... " >&6; }
5254 if test "${ac_cv_path_EGREP+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5258 then ac_cv_path_EGREP="$GREP -E"
5260 if test -z "$EGREP"; then
5261 ac_path_EGREP_found=false
5262 # Loop through the user's path and test for each of PROGNAME-LIST
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5267 test -z "$as_dir" && as_dir=.
5268 for ac_prog in egrep; do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5271 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5272 # Check for GNU ac_path_EGREP and select it if it is found.
5273 # Check for GNU $ac_path_EGREP
5274 case `"$ac_path_EGREP" --version 2>&1` in
5276 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5279 $as_echo_n 0123456789 >"conftest.in"
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 $as_echo 'EGREP' >> "conftest.nl"
5286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 ac_count=`expr $ac_count + 1`
5289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_EGREP="$ac_path_EGREP"
5292 ac_path_EGREP_max=$ac_count
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5300 $ac_path_EGREP_found && break 3
5305 if test -z "$ac_cv_path_EGREP"; then
5306 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5307 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5308 { (exit 1); exit 1; }; }
5311 ac_cv_path_EGREP=$EGREP
5316 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5317 $as_echo "$ac_cv_path_EGREP" >&6; }
5318 EGREP="$ac_cv_path_EGREP"
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 $EGREP "yes" >/dev/null 2>&1; then
5343 if test "$HAS_CLANG" = "no"; then
5344 if test "$GCC" = "yes"; then
5346 r="`eval echo '$'"CC"`"
5347 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5348 $as_echo_n "checking $r version... " >&6; }
5350 ## which doesn't work in ash, if /usr/bin/which isn't installed
5351 ## type -p doesn't work in ash
5352 ## command -v doesn't work in zsh
5353 ## command -v "$r" 2>&1
5354 ## this test should work in ash, bash, pdksh (ksh), zsh
5355 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5361 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5364 ## Workaround for broken Debian gcc version string:
5365 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5367 ## -V: Workaround for python
5371 ## Assume and hunt for dotted version multiplet.
5372 ## use eval trickery, because we cannot use multi-level $() instead of ``
5373 ## for compatibility reasons.
5375 ## grab the first version number in --version output.
5376 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5377 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5380 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5381 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5384 if test -z "$_ver"; then
5385 ## If empty, try date [fontforge]
5386 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5387 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5389 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5396 echo "$ver" | awk -F. '
5398 if ($3) {three = $3}
5401 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5404 echo "3.4" | awk -F. '
5406 if ($3) {three = $3}
5409 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5411 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5412 $as_echo "$ver" >&6; }
5413 if test "$num" -lt "$req"; then
5415 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5418 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5419 eval `echo $vervar=$num`
5420 ## AC_SUBST(`eval echo $vervar`)
5423 warn="$CC (Please install *GNU* cc)"
5425 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5429 # no else, we're fine with any clang
5434 ac_cpp='$CXXCPP $CPPFLAGS'
5435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5438 if test -z "$CXX"; then
5439 if test -n "$CCC"; then
5442 if test -n "$ac_tool_prefix"; then
5443 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_CXX+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5452 if test -n "$CXX"; then
5453 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 if test -n "$CXX"; then
5474 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5475 $as_echo "$CXX" >&6; }
5477 { $as_echo "$as_me:$LINENO: result: no" >&5
5478 $as_echo "no" >&6; }
5482 test -n "$CXX" && break
5485 if test -z "$CXX"; then
5487 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5489 # Extract the first word of "$ac_prog", so it can be a program name with args.
5490 set dummy $ac_prog; ac_word=$2
5491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5494 $as_echo_n "(cached) " >&6
5496 if test -n "$ac_ct_CXX"; then
5497 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506 ac_cv_prog_ac_ct_CXX="$ac_prog"
5507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5517 if test -n "$ac_ct_CXX"; then
5518 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5519 $as_echo "$ac_ct_CXX" >&6; }
5521 { $as_echo "$as_me:$LINENO: result: no" >&5
5522 $as_echo "no" >&6; }
5526 test -n "$ac_ct_CXX" && break
5529 if test "x$ac_ct_CXX" = x; then
5532 case $cross_compiling:$ac_tool_warned in
5534 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5544 # Provide some information about the compiler.
5545 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5548 { (ac_try="$ac_compiler --version >&5"
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555 (eval "$ac_compiler --version >&5") 2>&5
5557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }
5559 { (ac_try="$ac_compiler -v >&5"
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5565 $as_echo "$ac_try_echo") >&5
5566 (eval "$ac_compiler -v >&5") 2>&5
5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570 { (ac_try="$ac_compiler -V >&5"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576 $as_echo "$ac_try_echo") >&5
5577 (eval "$ac_compiler -V >&5") 2>&5
5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }
5582 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5583 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5584 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5585 $as_echo_n "(cached) " >&6
5587 cat >conftest.$ac_ext <<_ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612 $as_echo "$ac_try_echo") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1 >conftest.err
5617 cat conftest.err >&5
5618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_cxx_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5625 $as_echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5635 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5636 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5637 if test $ac_compiler_gnu = yes; then
5642 ac_test_CXXFLAGS=${CXXFLAGS+set}
5643 ac_save_CXXFLAGS=$CXXFLAGS
5644 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5645 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5646 if test "${ac_cv_prog_cxx_g+set}" = set; then
5647 $as_echo_n "(cached) " >&6
5649 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5650 ac_cxx_werror_flag=yes
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5675 $as_echo "$ac_try_echo") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_cxx_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5686 ac_cv_prog_cxx_g=yes
5688 $as_echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5707 rm -f conftest.$ac_objext
5708 if { (ac_try="$ac_compile"
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5714 $as_echo "$ac_try_echo") >&5
5715 (eval "$ac_compile") 2>conftest.er1
5717 grep -v '^ *+' conftest.er1 >conftest.err
5719 cat conftest.err >&5
5720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && {
5722 test -z "$ac_cxx_werror_flag" ||
5723 test ! -s conftest.err
5724 } && test -s conftest.$ac_objext; then
5727 $as_echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5730 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5754 $as_echo "$ac_try_echo") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 ac_cv_prog_cxx_g=yes
5767 $as_echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5782 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5783 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5784 if test "$ac_test_CXXFLAGS" = set; then
5785 CXXFLAGS=$ac_save_CXXFLAGS
5786 elif test $ac_cv_prog_cxx_g = yes; then
5787 if test "$GXX" = yes; then
5793 if test "$GXX" = yes; then
5800 ac_cpp='$CXXCPP $CPPFLAGS'
5801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807 r="`eval echo '$'"CXX"`"
5808 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5811 ##STEPMAKE_WARN(cannot find . )
5815 if test $? -ne 0; then
5817 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5819 if test "REQUIRED" = "REQUIRED"; then
5820 command="echo ERROR: c++ not found"
5821 # abort configure process here?
5823 command="- echo c++ not found"
5825 eval "CXX"='$command'
5832 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "yes" >/dev/null 2>&1; then
5859 if test "$HAS_CLANG" = "no"; then
5860 if test "$GXX" = "yes"; then
5862 r="`eval echo '$'"CXX"`"
5863 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5864 $as_echo_n "checking $r version... " >&6; }
5866 ## which doesn't work in ash, if /usr/bin/which isn't installed
5867 ## type -p doesn't work in ash
5868 ## command -v doesn't work in zsh
5869 ## command -v "$r" 2>&1
5870 ## this test should work in ash, bash, pdksh (ksh), zsh
5871 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5877 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5880 ## Workaround for broken Debian gcc version string:
5881 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5883 ## -V: Workaround for python
5887 ## Assume and hunt for dotted version multiplet.
5888 ## use eval trickery, because we cannot use multi-level $() instead of ``
5889 ## for compatibility reasons.
5891 ## grab the first version number in --version output.
5892 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5893 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5896 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5897 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5900 if test -z "$_ver"; then
5901 ## If empty, try date [fontforge]
5902 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5903 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5905 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5912 echo "$ver" | awk -F. '
5914 if ($3) {three = $3}
5917 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5920 echo "3.4" | awk -F. '
5922 if ($3) {three = $3}
5925 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5927 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5928 $as_echo "$ver" >&6; }
5929 if test "$num" -lt "$req"; then
5931 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5934 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5935 eval `echo $vervar=$num`
5936 ## AC_SUBST(`eval echo $vervar`)
5939 warn="$CXX (Please install *GNU* c++)"
5941 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5945 # no else, we're fine with any clang
5948 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5949 $as_echo_n "checking options for known g++ bugs... " >&6; }
5950 case "$GXX:$CXX_VERSION" in
5952 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5953 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5954 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5957 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5958 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5959 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5961 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5962 $as_echo "none" >&6; }
5967 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5968 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5969 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5970 $as_echo_n "(cached) " >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5979 template <class T> struct foo { static int baz; };
5980 template <class T> int foo<T>::baz = 1;
5985 return foo<int>::baz;
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5997 $as_echo "$ac_try_echo") >&5
5998 (eval "$ac_link") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_cxx_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest$ac_exeext && {
6008 test "$cross_compiling" = yes ||
6009 $as_test_x conftest$ac_exeext
6011 stepmake_cv_need_explicit_instantiation=no
6013 $as_echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 stepmake_cv_need_explicit_instantiation=yes
6019 rm -rf conftest.dSYM
6020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6021 conftest$ac_exeext conftest.$ac_ext
6023 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
6024 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
6025 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
6026 cat >>confdefs.h <<\_ACEOF
6027 #define NEED_EXPLICIT_INSTANTIATION 1
6033 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
6034 $as_echo_n "checking for stl.data () method... " >&6; }
6035 if test "${stepmake_cv_stl_data_method+set}" = set; then
6036 $as_echo_n "(cached) " >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6046 using namespace std;
6048 void *p = v.data ();
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065 $as_echo "$ac_try_echo") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6068 grep -v '^ *+' conftest.er1 >conftest.err
6070 cat conftest.err >&5
6071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_cxx_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
6076 stepmake_cv_stl_data_method=yes
6078 $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6081 stepmake_cv_stl_data_method=no
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
6087 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6088 if test $stepmake_cv_stl_data_method = yes; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_STL_DATA_METHOD 1
6100 # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if test "${ac_cv_prog_AR+set}" = set; then
6105 $as_echo_n "(cached) " >&6
6107 if test -n "$AR"; then
6108 ac_cv_prog_AR="$AR" # Let the user override the test.
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_AR="$ac_prog"
6118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 if test -n "$AR"; then
6129 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6130 $as_echo "$AR" >&6; }
6132 { $as_echo "$as_me:$LINENO: result: no" >&5
6133 $as_echo "no" >&6; }
6137 test -n "$AR" && break
6139 test -n "$AR" || AR="no"
6143 r="`eval echo '$'"AR"`"
6144 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6147 ##STEPMAKE_WARN(cannot find . )
6151 if test $? -ne 0; then
6153 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6155 if test "REQUIRED" = "REQUIRED"; then
6156 command="echo ERROR: ar not found"
6157 # abort configure process here?
6159 command="- echo ar not found"
6161 eval "AR"='$command'
6167 if test $? -eq 0 -a -n ""; then
6169 r="`eval echo '$'"AR"`"
6170 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6171 $as_echo_n "checking $r version... " >&6; }
6173 ## which doesn't work in ash, if /usr/bin/which isn't installed
6174 ## type -p doesn't work in ash
6175 ## command -v doesn't work in zsh
6176 ## command -v "$r" 2>&1
6177 ## this test should work in ash, bash, pdksh (ksh), zsh
6178 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6184 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6187 ## Workaround for broken Debian gcc version string:
6188 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6190 ## -V: Workaround for python
6194 ## Assume and hunt for dotted version multiplet.
6195 ## use eval trickery, because we cannot use multi-level $() instead of ``
6196 ## for compatibility reasons.
6198 ## grab the first version number in --version output.
6199 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6200 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6203 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6204 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6207 if test -z "$_ver"; then
6208 ## If empty, try date [fontforge]
6209 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6210 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6212 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6219 echo "$ver" | awk -F. '
6221 if ($3) {three = $3}
6224 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6229 if ($3) {three = $3}
6232 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6234 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6235 $as_echo "$ver" >&6; }
6236 if test "$num" -lt "$req"; then
6238 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6241 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6242 eval `echo $vervar=$num`
6243 ## AC_SUBST(`eval echo $vervar`)
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_RANLIB+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6255 if test -n "$RANLIB"; then
6256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 RANLIB=$ac_cv_prog_RANLIB
6276 if test -n "$RANLIB"; then
6277 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6278 $as_echo "$RANLIB" >&6; }
6280 { $as_echo "$as_me:$LINENO: result: no" >&5
6281 $as_echo "no" >&6; }
6286 if test -z "$ac_cv_prog_RANLIB"; then
6287 ac_ct_RANLIB=$RANLIB
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$ac_ct_RANLIB"; then
6296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_RANLIB="ranlib"
6306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6316 if test -n "$ac_ct_RANLIB"; then
6317 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6318 $as_echo "$ac_ct_RANLIB" >&6; }
6320 { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6324 if test "x$ac_ct_RANLIB" = x; then
6327 case $cross_compiling:$ac_tool_warned in
6329 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6333 RANLIB=$ac_ct_RANLIB
6336 RANLIB="$ac_cv_prog_RANLIB"
6341 r="`eval echo '$'"RANLIB"`"
6342 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6345 ##STEPMAKE_WARN(cannot find . )
6349 if test $? -ne 0; then
6351 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6353 if test "REQUIRED" = "REQUIRED"; then
6354 command="echo ERROR: ranlib not found"
6355 # abort configure process here?
6357 command="- echo ranlib not found"
6359 eval "RANLIB"='$command'
6368 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6371 $as_echo_n "(cached) " >&6
6373 ac_check_lib_save_LIBS=$LIBS
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6382 /* Override any GCC internal prototype to avoid an error.
6383 Use char because int might match the return type of a GCC
6384 builtin and then its argument prototype would still apply. */
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (ac_try="$ac_link"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6404 $as_echo "$ac_try_echo") >&5
6405 (eval "$ac_link") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_cxx_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest$ac_exeext && {
6415 test "$cross_compiling" = yes ||
6416 $as_test_x conftest$ac_exeext
6418 ac_cv_lib_dl_dlopen=yes
6420 $as_echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 ac_cv_lib_dl_dlopen=no
6426 rm -rf conftest.dSYM
6427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6428 conftest$ac_exeext conftest.$ac_ext
6429 LIBS=$ac_check_lib_save_LIBS
6431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6433 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_LIBDL 1
6443 for ac_func in dlopen
6445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6447 $as_echo_n "checking for $ac_func... " >&6; }
6448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6449 $as_echo_n "(cached) " >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6459 #define $ac_func innocuous_$ac_func
6461 /* System header to define __stub macros and hopefully few prototypes,
6462 which can conflict with char $ac_func (); below.
6463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6464 <limits.h> exists even on freestanding compilers. */
6467 # include <limits.h>
6469 # include <assert.h>
6474 /* Override any GCC internal prototype to avoid an error.
6475 Use char because int might match the return type of a GCC
6476 builtin and then its argument prototype would still apply. */
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined __stub_$ac_func || defined __stub___$ac_func
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (ac_try="$ac_link"
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6503 $as_echo "$ac_try_echo") >&5
6504 (eval "$ac_link") 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_cxx_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest$ac_exeext && {
6514 test "$cross_compiling" = yes ||
6515 $as_test_x conftest$ac_exeext
6517 eval "$as_ac_var=yes"
6519 $as_echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 eval "$as_ac_var=no"
6525 rm -rf conftest.dSYM
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527 conftest$ac_exeext conftest.$ac_ext
6529 ac_res=`eval 'as_val=${'$as_ac_var'}
6530 $as_echo "$as_val"'`
6531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6532 $as_echo "$ac_res" >&6; }
6533 as_val=`eval 'as_val=${'$as_ac_var'}
6534 $as_echo "$as_val"'`
6535 if test "x$as_val" = x""yes; then
6536 cat >>confdefs.h <<_ACEOF
6537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6544 # Do not use bison 1.50 and 1.75.
6545 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6547 # ugh, automake: we want (and check for) bison
6548 for ac_prog in 'bison -y' byacc
6550 # Extract the first word of "$ac_prog", so it can be a program name with args.
6551 set dummy $ac_prog; ac_word=$2
6552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if test "${ac_cv_prog_YACC+set}" = set; then
6555 $as_echo_n "(cached) " >&6
6557 if test -n "$YACC"; then
6558 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_YACC="$ac_prog"
6568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 YACC=$ac_cv_prog_YACC
6578 if test -n "$YACC"; then
6579 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6580 $as_echo "$YACC" >&6; }
6582 { $as_echo "$as_me:$LINENO: result: no" >&5
6583 $as_echo "no" >&6; }
6587 test -n "$YACC" && break
6589 test -n "$YACC" || YACC="yacc"
6593 for ac_prog in bison
6595 # Extract the first word of "$ac_prog", so it can be a program name with args.
6596 set dummy $ac_prog; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_BISON+set}" = set; then
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$BISON"; then
6603 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_BISON="$ac_prog"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 BISON=$ac_cv_prog_BISON
6623 if test -n "$BISON"; then
6624 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6625 $as_echo "$BISON" >&6; }
6627 { $as_echo "$as_me:$LINENO: result: no" >&5
6628 $as_echo "no" >&6; }
6632 test -n "$BISON" && break
6634 test -n "$BISON" || BISON="no"
6638 r="`eval echo '$'"BISON"`"
6639 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6642 ##STEPMAKE_WARN(cannot find . )
6646 if test $? -ne 0; then
6648 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6650 if test "REQUIRED" = "REQUIRED"; then
6651 command="echo ERROR: bison not found"
6652 # abort configure process here?
6654 command="- echo bison not found"
6656 eval "BISON"='$command'
6662 if test $? -eq 0 -a -n ""; then
6664 r="`eval echo '$'"BISON"`"
6665 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6666 $as_echo_n "checking $r version... " >&6; }
6668 ## which doesn't work in ash, if /usr/bin/which isn't installed
6669 ## type -p doesn't work in ash
6670 ## command -v doesn't work in zsh
6671 ## command -v "$r" 2>&1
6672 ## this test should work in ash, bash, pdksh (ksh), zsh
6673 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6679 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6682 ## Workaround for broken Debian gcc version string:
6683 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6685 ## -V: Workaround for python
6689 ## Assume and hunt for dotted version multiplet.
6690 ## use eval trickery, because we cannot use multi-level $() instead of ``
6691 ## for compatibility reasons.
6693 ## grab the first version number in --version output.
6694 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6695 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6698 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6699 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6702 if test -z "$_ver"; then
6703 ## If empty, try date [fontforge]
6704 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6705 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6707 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6714 echo "$ver" | awk -F. '
6716 if ($3) {three = $3}
6719 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6724 if ($3) {three = $3}
6727 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6729 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6730 $as_echo "$ver" >&6; }
6731 if test "$num" -lt "$req"; then
6733 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6736 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6737 eval `echo $vervar=$num`
6738 ## AC_SUBST(`eval echo $vervar`)
6743 # urg. should test functionality rather than version.
6744 if test "$BISON" = "bison" -a -n "1.29"; then
6746 r="`eval echo '$'"BISON"`"
6747 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6748 $as_echo_n "checking $r version... " >&6; }
6750 ## which doesn't work in ash, if /usr/bin/which isn't installed
6751 ## type -p doesn't work in ash
6752 ## command -v doesn't work in zsh
6753 ## command -v "$r" 2>&1
6754 ## this test should work in ash, bash, pdksh (ksh), zsh
6755 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6761 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6764 ## Workaround for broken Debian gcc version string:
6765 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6767 ## -V: Workaround for python
6771 ## Assume and hunt for dotted version multiplet.
6772 ## use eval trickery, because we cannot use multi-level $() instead of ``
6773 ## for compatibility reasons.
6775 ## grab the first version number in --version output.
6776 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6777 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6780 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6781 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6784 if test -z "$_ver"; then
6785 ## If empty, try date [fontforge]
6786 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6787 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6789 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6796 echo "$ver" | awk -F. '
6798 if ($3) {three = $3}
6801 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6804 echo "1.29" | awk -F. '
6806 if ($3) {three = $3}
6809 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6811 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6812 $as_echo "$ver" >&6; }
6813 if test "$num" -lt "$req"; then
6815 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6818 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6819 eval `echo $vervar=$num`
6820 ## AC_SUBST(`eval echo $vervar`)
6825 # ugh, automake: we want (and check for) flex
6827 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6831 ac_cv_prog_lex_root=lex.yy
6835 # Extract the first word of "$ac_prog", so it can be a program name with args.
6836 set dummy $ac_prog; ac_word=$2
6837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_FLEX+set}" = set; then
6840 $as_echo_n "(cached) " >&6
6842 if test -n "$FLEX"; then
6843 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_FLEX="$ac_prog"
6853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 FLEX=$ac_cv_prog_FLEX
6863 if test -n "$FLEX"; then
6864 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6865 $as_echo "$FLEX" >&6; }
6867 { $as_echo "$as_me:$LINENO: result: no" >&5
6868 $as_echo "no" >&6; }
6872 test -n "$FLEX" && break
6874 test -n "$FLEX" || FLEX="no"
6878 r="`eval echo '$'"FLEX"`"
6879 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6882 ##STEPMAKE_WARN(cannot find . )
6886 if test $? -ne 0; then
6888 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6890 if test "REQUIRED" = "REQUIRED"; then
6891 command="echo ERROR: flex not found"
6892 # abort configure process here?
6894 command="- echo flex not found"
6896 eval "FLEX"='$command'
6902 if test $? -eq 0 -a -n ""; then
6904 r="`eval echo '$'"FLEX"`"
6905 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6906 $as_echo_n "checking $r version... " >&6; }
6908 ## which doesn't work in ash, if /usr/bin/which isn't installed
6909 ## type -p doesn't work in ash
6910 ## command -v doesn't work in zsh
6911 ## command -v "$r" 2>&1
6912 ## this test should work in ash, bash, pdksh (ksh), zsh
6913 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6919 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6922 ## Workaround for broken Debian gcc version string:
6923 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6925 ## -V: Workaround for python
6929 ## Assume and hunt for dotted version multiplet.
6930 ## use eval trickery, because we cannot use multi-level $() instead of ``
6931 ## for compatibility reasons.
6933 ## grab the first version number in --version output.
6934 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6935 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6938 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6939 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6942 if test -z "$_ver"; then
6943 ## If empty, try date [fontforge]
6944 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6945 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6947 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6954 echo "$ver" | awk -F. '
6956 if ($3) {three = $3}
6959 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6964 if ($3) {three = $3}
6967 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6969 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6970 $as_echo "$ver" >&6; }
6971 if test "$num" -lt "$req"; then
6973 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6976 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6977 eval `echo $vervar=$num`
6978 ## AC_SUBST(`eval echo $vervar`)
6983 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6984 $as_echo_n "checking for ANSI C header files... " >&6; }
6985 if test "${ac_cv_header_stdc+set}" = set; then
6986 $as_echo_n "(cached) " >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_cxx_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_header_stdc=yes
7027 $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_header_stdc=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 if test $ac_cv_header_stdc = yes; then
7036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 $EGREP "memchr" >/dev/null 2>&1; then
7050 ac_cv_header_stdc=no
7056 if test $ac_cv_header_stdc = yes; then
7057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068 $EGREP "free" >/dev/null 2>&1; then
7071 ac_cv_header_stdc=no
7077 if test $ac_cv_header_stdc = yes; then
7078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7079 if test "$cross_compiling" = yes; then
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7094 # define ISLOWER(c) \
7095 (('a' <= (c) && (c) <= 'i') \
7096 || ('j' <= (c) && (c) <= 'r') \
7097 || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106 for (i = 0; i < 256; i++)
7107 if (XOR (islower (i), ISLOWER (i))
7108 || toupper (i) != TOUPPER (i))
7113 rm -f conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_link") 2>&5
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125 { (case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$ac_try_echo") >&5
7131 (eval "$ac_try") 2>&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7137 $as_echo "$as_me: program exited with status $ac_status" >&5
7138 $as_echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_cv_header_stdc=no
7144 rm -rf conftest.dSYM
7145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7151 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7152 $as_echo "$ac_cv_header_stdc" >&6; }
7153 if test $ac_cv_header_stdc = yes; then
7155 cat >>confdefs.h <<\_ACEOF
7156 #define STDC_HEADERS 1
7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7172 inttypes.h stdint.h unistd.h
7174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 $as_echo_n "checking for $ac_header... " >&6; }
7177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7178 $as_echo_n "(cached) " >&6
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7188 #include <$ac_header>
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7197 $as_echo "$ac_try_echo") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_cxx_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 eval "$as_ac_Header=yes"
7210 $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 eval "$as_ac_Header=no"
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 ac_res=`eval 'as_val=${'$as_ac_Header'}
7219 $as_echo "$as_val"'`
7220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7221 $as_echo "$ac_res" >&6; }
7222 as_val=`eval 'as_val=${'$as_ac_Header'}
7223 $as_echo "$as_val"'`
7224 if test "x$as_val" = x""yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 for ac_header in FlexLexer.h
7238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 $as_echo_n "checking for $ac_header... " >&6; }
7242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7243 $as_echo_n "(cached) " >&6
7245 ac_res=`eval 'as_val=${'$as_ac_Header'}
7246 $as_echo "$as_val"'`
7247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7248 $as_echo "$ac_res" >&6; }
7250 # Is the header compilable?
7251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 $as_echo_n "checking $ac_header usability... " >&6; }
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7260 #include <$ac_header>
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_cxx_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 ac_header_compiler=yes
7282 $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_header_compiler=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7290 $as_echo "$ac_header_compiler" >&6; }
7292 # Is the header present?
7293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7294 $as_echo_n "checking $ac_header presence... " >&6; }
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 #include <$ac_header>
7303 if { (ac_try="$ac_cpp conftest.$ac_ext"
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7309 $as_echo "$ac_try_echo") >&5
7310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7312 grep -v '^ *+' conftest.er1 >conftest.err
7314 cat conftest.err >&5
7315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } >/dev/null && {
7317 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7318 test ! -s conftest.err
7320 ac_header_preproc=yes
7322 $as_echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_header_preproc=no
7328 rm -f conftest.err conftest.$ac_ext
7329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7330 $as_echo "$ac_header_preproc" >&6; }
7332 # So? What about this header?
7333 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7339 ac_header_preproc=yes
7342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 $as_echo_n "checking for $ac_header... " >&6; }
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 $as_echo_n "(cached) " >&6
7362 eval "$as_ac_Header=\$ac_header_preproc"
7364 ac_res=`eval 'as_val=${'$as_ac_Header'}
7365 $as_echo "$as_val"'`
7366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7367 $as_echo "$ac_res" >&6; }
7370 as_val=`eval 'as_val=${'$as_ac_Header'}
7371 $as_echo "$as_val"'`
7372 if test "x$as_val" = x""yes; then
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 if test $? -ne 0; then
7384 warn='FlexLexer.h (flex package)'
7386 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7389 # check for yyFlexLexer.yy_current_buffer,
7390 # in 2.5.4 <= flex < 2.5.29
7391 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7392 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7393 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7394 $as_echo_n "(cached) " >&6
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7403 using namespace std;
7404 #include <FlexLexer.h>
7405 class yy_flex_lexer: public yyFlexLexer
7410 yy_current_buffer = 0;
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7429 $as_echo "$ac_try_echo") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7432 grep -v '^ *+' conftest.er1 >conftest.err
7434 cat conftest.err >&5
7435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_cxx_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.$ac_objext; then
7440 stepmake_cv_flexlexer_yy_current_buffer=yes
7442 $as_echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 stepmake_cv_flexlexer_yy_current_buffer=no
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7451 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7452 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7461 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7462 $as_echo_n "checking FlexLexer.h location... " >&6; }
7465 cat <<EOF > conftest.cc
7466 using namespace std;
7467 #include <FlexLexer.h>
7469 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7470 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7471 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7474 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7475 $as_echo "$FLEXLEXER_FILE" >&6; }
7483 # Check whether --with-localedir was given.
7484 if test "${with_localedir+set}" = set; then
7485 withval=$with_localedir; localedir=$with_localedir
7487 localedir='${prefix}/share/locale'
7492 # Check whether --with-lang was given.
7493 if test "${with_lang+set}" = set; then
7494 withval=$with_lang; language=$with_lang
7500 { $as_echo "$as_me:$LINENO: checking language" >&5
7501 $as_echo_n "checking language... " >&6; }
7503 En* | en* | Am* | am* | US* | us*)
7505 NL | nl | Du* | du* | Ned* | ned*)
7512 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7513 $as_echo "$lang" >&6; }
7515 if test "$lang" = "unknown" ; then
7517 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7518 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7526 if test "$prefix" = "NONE"; then
7527 presome=${ac_default_prefix}
7529 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7532 cat >>confdefs.h <<_ACEOF
7533 #define LOCALEDIR "${LOCALEDIR}"
7537 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7538 $as_echo_n "checking for gettext in -lintl... " >&6; }
7539 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7540 $as_echo_n "(cached) " >&6
7542 ac_check_lib_save_LIBS=$LIBS
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (ac_try="$ac_link"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7573 $as_echo "$ac_try_echo") >&5
7574 (eval "$ac_link") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_cxx_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest$ac_exeext && {
7584 test "$cross_compiling" = yes ||
7585 $as_test_x conftest$ac_exeext
7587 ac_cv_lib_intl_gettext=yes
7589 $as_echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_cv_lib_intl_gettext=no
7595 rm -rf conftest.dSYM
7596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7597 conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7601 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7602 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7603 cat >>confdefs.h <<_ACEOF
7604 #define HAVE_LIBINTL 1
7612 for ac_func in gettext
7614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7615 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7616 $as_echo_n "checking for $ac_func... " >&6; }
7617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7618 $as_echo_n "(cached) " >&6
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7628 #define $ac_func innocuous_$ac_func
7630 /* System header to define __stub macros and hopefully few prototypes,
7631 which can conflict with char $ac_func (); below.
7632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633 <limits.h> exists even on freestanding compilers. */
7636 # include <limits.h>
7638 # include <assert.h>
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7650 /* The GNU C library defines this for functions which it implements
7651 to always fail with ENOSYS. Some functions are actually named
7652 something starting with __ and the normal name is an alias. */
7653 #if defined __stub_$ac_func || defined __stub___$ac_func
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (ac_try="$ac_link"
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672 $as_echo "$ac_try_echo") >&5
7673 (eval "$ac_link") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_cxx_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest$ac_exeext && {
7683 test "$cross_compiling" = yes ||
7684 $as_test_x conftest$ac_exeext
7686 eval "$as_ac_var=yes"
7688 $as_echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 eval "$as_ac_var=no"
7694 rm -rf conftest.dSYM
7695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7696 conftest$ac_exeext conftest.$ac_ext
7698 ac_res=`eval 'as_val=${'$as_ac_var'}
7699 $as_echo "$as_val"'`
7700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7701 $as_echo "$ac_res" >&6; }
7702 as_val=`eval 'as_val=${'$as_ac_var'}
7703 $as_echo "$as_val"'`
7704 if test "x$as_val" = x""yes; then
7705 cat >>confdefs.h <<_ACEOF
7706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7715 for ac_prog in msgfmt
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$MSGFMT"; then
7725 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_MSGFMT="$ac_prog"
7735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 MSGFMT=$ac_cv_prog_MSGFMT
7745 if test -n "$MSGFMT"; then
7746 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7747 $as_echo "$MSGFMT" >&6; }
7749 { $as_echo "$as_me:$LINENO: result: no" >&5
7750 $as_echo "no" >&6; }
7754 test -n "$MSGFMT" && break
7756 test -n "$MSGFMT" || MSGFMT="no"
7760 r="`eval echo '$'"MSGFMT"`"
7761 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7764 ##STEPMAKE_WARN(cannot find . )
7768 if test $? -ne 0; then
7770 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7772 if test "REQUIRED" = "REQUIRED"; then
7773 command="echo ERROR: msgfmt not found"
7774 # abort configure process here?
7776 command="- echo msgfmt not found"
7778 eval "MSGFMT"='$command'
7784 if test $? -eq 0 -a -n ""; then
7786 r="`eval echo '$'"MSGFMT"`"
7787 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7788 $as_echo_n "checking $r version... " >&6; }
7790 ## which doesn't work in ash, if /usr/bin/which isn't installed
7791 ## type -p doesn't work in ash
7792 ## command -v doesn't work in zsh
7793 ## command -v "$r" 2>&1
7794 ## this test should work in ash, bash, pdksh (ksh), zsh
7795 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7801 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7804 ## Workaround for broken Debian gcc version string:
7805 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7807 ## -V: Workaround for python
7811 ## Assume and hunt for dotted version multiplet.
7812 ## use eval trickery, because we cannot use multi-level $() instead of ``
7813 ## for compatibility reasons.
7815 ## grab the first version number in --version output.
7816 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7817 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7820 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7821 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7824 if test -z "$_ver"; then
7825 ## If empty, try date [fontforge]
7826 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7827 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7829 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7836 echo "$ver" | awk -F. '
7838 if ($3) {three = $3}
7841 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7846 if ($3) {three = $3}
7849 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7851 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7852 $as_echo "$ver" >&6; }
7853 if test "$num" -lt "$req"; then
7855 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7858 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7859 eval `echo $vervar=$num`
7860 ## AC_SUBST(`eval echo $vervar`)
7867 for ac_prog in mf-nowin mf mfw mfont
7869 # Extract the first word of "$ac_prog", so it can be a program name with args.
7870 set dummy $ac_prog; ac_word=$2
7871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if test "${ac_cv_prog_METAFONT+set}" = set; then
7874 $as_echo_n "(cached) " >&6
7876 if test -n "$METAFONT"; then
7877 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_prog_METAFONT="$ac_prog"
7887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 METAFONT=$ac_cv_prog_METAFONT
7897 if test -n "$METAFONT"; then
7898 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7899 $as_echo "$METAFONT" >&6; }
7901 { $as_echo "$as_me:$LINENO: result: no" >&5
7902 $as_echo "no" >&6; }
7906 test -n "$METAFONT" && break
7908 test -n "$METAFONT" || METAFONT="no"
7912 r="`eval echo '$'"METAFONT"`"
7913 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7916 ##STEPMAKE_WARN(cannot find . )
7920 if test $? -ne 0; then
7922 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7924 if test "REQUIRED" = "REQUIRED"; then
7925 command="echo ERROR: mf-nowin mf mfw mfont not found"
7926 # abort configure process here?
7928 command="- echo mf-nowin mf mfw mfont not found"
7930 eval "METAFONT"='$command'
7936 if test $? -eq 0 -a -n ""; then
7938 r="`eval echo '$'"METAFONT"`"
7939 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7940 $as_echo_n "checking $r version... " >&6; }
7942 ## which doesn't work in ash, if /usr/bin/which isn't installed
7943 ## type -p doesn't work in ash
7944 ## command -v doesn't work in zsh
7945 ## command -v "$r" 2>&1
7946 ## this test should work in ash, bash, pdksh (ksh), zsh
7947 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7953 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7956 ## Workaround for broken Debian gcc version string:
7957 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7959 ## -V: Workaround for python
7963 ## Assume and hunt for dotted version multiplet.
7964 ## use eval trickery, because we cannot use multi-level $() instead of ``
7965 ## for compatibility reasons.
7967 ## grab the first version number in --version output.
7968 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7969 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7972 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7973 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7976 if test -z "$_ver"; then
7977 ## If empty, try date [fontforge]
7978 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7979 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7981 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7988 echo "$ver" | awk -F. '
7990 if ($3) {three = $3}
7993 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7998 if ($3) {three = $3}
8001 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8003 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8004 $as_echo "$ver" >&6; }
8005 if test "$num" -lt "$req"; then
8007 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8010 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
8011 eval `echo $vervar=$num`
8012 ## AC_SUBST(`eval echo $vervar`)
8017 for ac_prog in mpost
8019 # Extract the first word of "$ac_prog", so it can be a program name with args.
8020 set dummy $ac_prog; ac_word=$2
8021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if test "${ac_cv_prog_METAPOST+set}" = set; then
8024 $as_echo_n "(cached) " >&6
8026 if test -n "$METAPOST"; then
8027 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_prog_METAPOST="$ac_prog"
8037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 METAPOST=$ac_cv_prog_METAPOST
8047 if test -n "$METAPOST"; then
8048 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
8049 $as_echo "$METAPOST" >&6; }
8051 { $as_echo "$as_me:$LINENO: result: no" >&5
8052 $as_echo "no" >&6; }
8056 test -n "$METAPOST" && break
8058 test -n "$METAPOST" || METAPOST="no"
8062 r="`eval echo '$'"METAPOST"`"
8063 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
8066 ##STEPMAKE_WARN(cannot find . )
8070 if test $? -ne 0; then
8072 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
8074 if test "REQUIRED" = "REQUIRED"; then
8075 command="echo ERROR: mpost not found"
8076 # abort configure process here?
8078 command="- echo mpost not found"
8080 eval "METAPOST"='$command'
8086 if test $? -eq 0 -a -n ""; then
8088 r="`eval echo '$'"METAPOST"`"
8089 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8090 $as_echo_n "checking $r version... " >&6; }
8092 ## which doesn't work in ash, if /usr/bin/which isn't installed
8093 ## type -p doesn't work in ash
8094 ## command -v doesn't work in zsh
8095 ## command -v "$r" 2>&1
8096 ## this test should work in ash, bash, pdksh (ksh), zsh
8097 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8103 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8106 ## Workaround for broken Debian gcc version string:
8107 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8109 ## -V: Workaround for python
8113 ## Assume and hunt for dotted version multiplet.
8114 ## use eval trickery, because we cannot use multi-level $() instead of ``
8115 ## for compatibility reasons.
8117 ## grab the first version number in --version output.
8118 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8119 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8122 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8123 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8126 if test -z "$_ver"; then
8127 ## If empty, try date [fontforge]
8128 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8129 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8131 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8138 echo "$ver" | awk -F. '
8140 if ($3) {three = $3}
8143 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8148 if ($3) {three = $3}
8151 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8153 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8154 $as_echo "$ver" >&6; }
8155 if test "$num" -lt "$req"; then
8157 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8160 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8161 eval `echo $vervar=$num`
8162 ## AC_SUBST(`eval echo $vervar`)
8166 if test "$METAPOST" != ""; then
8168 ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8171 ## Workaround for broken Debian gcc version string:
8172 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8174 ## -V: Workaround for python
8178 ## Assume and hunt for dotted version multiplet.
8179 ## use eval trickery, because we cannot use multi-level $() instead of ``
8180 ## for compatibility reasons.
8182 ## grab the first version number in --version output.
8183 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8184 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8187 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8188 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8191 if test -z "$_ver"; then
8192 ## If empty, try date [fontforge]
8193 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8194 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8196 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8202 echo "$ver" | awk -F. '
8204 if ($3) {three = $3}
8207 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8209 # Avoid buggy metapost versions: 1.600 <= x < 1.803
8210 if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8212 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8217 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8218 $as_echo_n "checking for working metafont mode... " >&6; }
8219 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8220 for MFMODE in $modelist; do
8221 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8222 if test -f mfput.tfm; then
8226 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8227 $as_echo "$MFMODE" >&6; }
8235 for ac_prog in kpsewhich
8237 # Extract the first word of "$ac_prog", so it can be a program name with args.
8238 set dummy $ac_prog; ac_word=$2
8239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$KPSEWHICH"; then
8245 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_KPSEWHICH="$ac_prog"
8255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8265 if test -n "$KPSEWHICH"; then
8266 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8267 $as_echo "$KPSEWHICH" >&6; }
8269 { $as_echo "$as_me:$LINENO: result: no" >&5
8270 $as_echo "no" >&6; }
8274 test -n "$KPSEWHICH" && break
8276 test -n "$KPSEWHICH" || KPSEWHICH="no"
8280 r="`eval echo '$'"KPSEWHICH"`"
8281 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8284 ##STEPMAKE_WARN(cannot find . )
8288 if test $? -ne 0; then
8290 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8292 if test "REQUIRED" = "REQUIRED"; then
8293 command="echo ERROR: kpsewhich not found"
8294 # abort configure process here?
8296 command="- echo kpsewhich not found"
8298 eval "KPSEWHICH"='$command'
8304 if test $? -eq 0 -a -n ""; then
8306 r="`eval echo '$'"KPSEWHICH"`"
8307 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8308 $as_echo_n "checking $r version... " >&6; }
8310 ## which doesn't work in ash, if /usr/bin/which isn't installed
8311 ## type -p doesn't work in ash
8312 ## command -v doesn't work in zsh
8313 ## command -v "$r" 2>&1
8314 ## this test should work in ash, bash, pdksh (ksh), zsh
8315 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8321 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8324 ## Workaround for broken Debian gcc version string:
8325 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8327 ## -V: Workaround for python
8331 ## Assume and hunt for dotted version multiplet.
8332 ## use eval trickery, because we cannot use multi-level $() instead of ``
8333 ## for compatibility reasons.
8335 ## grab the first version number in --version output.
8336 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8337 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8340 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8341 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8344 if test -z "$_ver"; then
8345 ## If empty, try date [fontforge]
8346 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8347 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8349 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8356 echo "$ver" | awk -F. '
8358 if ($3) {three = $3}
8361 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8366 if ($3) {three = $3}
8369 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8371 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8372 $as_echo "$ver" >&6; }
8373 if test "$num" -lt "$req"; then
8375 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8378 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8379 eval `echo $vervar=$num`
8380 ## AC_SUBST(`eval echo $vervar`)
8385 { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8386 $as_echo_n "checking for metapost required files... " >&6; }
8387 if test "$MFPLAIN_MP" = ""; then
8388 MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8390 if test "$MFPLAIN_MP" = ""; then
8391 { $as_echo "$as_me:$LINENO: result: no" >&5
8392 $as_echo "no" >&6; }
8394 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8397 { $as_echo "$as_me:$LINENO: result: yes" >&5
8398 $as_echo "yes" >&6; }
8401 if test "$GUILEv2" = "yes"
8404 ## First, let's just see if we can find Guile at all.
8405 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8406 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8407 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8408 $as_echo_n "checking for guile-config... " >&6; }
8409 guile_config="guile-config"
8411 for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8413 ## which doesn't work in ash, if /usr/bin/which isn't installed
8414 ## type -p doesn't work in ash
8415 ## command -v doesn't work in zsh
8416 ## command -v "$r" 2>&1
8417 ## this test should work in ash, bash, pdksh (ksh), zsh
8418 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8420 if ! $exe --version > /dev/null 2>&1 ; then
8424 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8427 ## Workaround for broken Debian gcc version string:
8428 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8430 ## -V: Workaround for python
8434 ## Assume and hunt for dotted version multiplet.
8435 ## use eval trickery, because we cannot use multi-level $() instead of ``
8436 ## for compatibility reasons.
8438 ## grab the first version number in --version output.
8439 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8440 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8443 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8444 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8447 if test -z "$_ver"; then
8448 ## If empty, try date [fontforge]
8449 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8450 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8452 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8458 echo "$ver" | awk -F. '
8460 if ($3) {three = $3}
8463 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8466 echo "2.0.7" | awk -F. '
8468 if ($3) {three = $3}
8471 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8474 echo "2.2.0" | awk -F. '
8476 if ($3) {three = $3}
8479 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8481 if test -n "2.0.7" -a "$num" -lt "$req"; then
8482 guile_config="$r >= 2.0.7 (installed: $ver)"
8485 if test -n "2.2.0" -a "$num" -ge "$sup"; then
8486 guile_config="$r < 2.2.0 (installed: $ver)"
8495 { $as_echo "$as_me:$LINENO: result: $found" >&5
8496 $as_echo "$found" >&6; }
8497 if test "$found" != "no"; then
8498 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8499 $as_echo_n "checking $guile_config version... " >&6; }
8500 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8501 $as_echo "$ver" >&6; }
8505 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8511 guile_version="$ver"
8513 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8514 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8515 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8519 ## which doesn't work in ash, if /usr/bin/which isn't installed
8520 ## type -p doesn't work in ash
8521 ## command -v doesn't work in zsh
8522 ## command -v "$guile_config" 2>&1
8523 ## this test should work in ash, bash, pdksh (ksh), zsh
8524 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8526 if test -x $exe; then
8527 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8528 $as_echo_n "checking guile compile flags... " >&6; }
8529 GUILE_CFLAGS="`$guile_config compile`"
8530 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8531 $as_echo "$GUILE_CFLAGS" >&6; }
8532 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8533 $as_echo_n "checking guile link flags... " >&6; }
8534 GUILE_LDFLAGS="`$guile_config link`"
8535 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8536 $as_echo "$GUILE_LDFLAGS" >&6; }
8541 save_CPPFLAGS="$CPPFLAGS"
8543 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8544 LIBS="$GUILE_LDFLAGS $LIBS"
8546 for ac_header in libguile.h
8548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 $as_echo_n "checking for $ac_header... " >&6; }
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 $as_echo_n "(cached) " >&6
8555 ac_res=`eval 'as_val=${'$as_ac_Header'}
8556 $as_echo "$as_val"'`
8557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8558 $as_echo "$ac_res" >&6; }
8560 # Is the header compilable?
8561 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 $as_echo_n "checking $ac_header usability... " >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8579 $as_echo "$ac_try_echo") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_cxx_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8590 ac_header_compiler=yes
8592 $as_echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 ac_header_compiler=no
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8600 $as_echo "$ac_header_compiler" >&6; }
8602 # Is the header present?
8603 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8604 $as_echo_n "checking $ac_header presence... " >&6; }
8605 cat >conftest.$ac_ext <<_ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8611 #include <$ac_header>
8613 if { (ac_try="$ac_cpp conftest.$ac_ext"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619 $as_echo "$ac_try_echo") >&5
8620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } >/dev/null && {
8627 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8628 test ! -s conftest.err
8630 ac_header_preproc=yes
8632 $as_echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_header_preproc=no
8638 rm -f conftest.err conftest.$ac_ext
8639 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8640 $as_echo "$ac_header_preproc" >&6; }
8642 # So? What about this header?
8643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8646 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8649 ac_header_preproc=yes
8652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8653 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8655 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8657 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8659 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8663 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8668 $as_echo_n "checking for $ac_header... " >&6; }
8669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8670 $as_echo_n "(cached) " >&6
8672 eval "$as_ac_Header=\$ac_header_preproc"
8674 ac_res=`eval 'as_val=${'$as_ac_Header'}
8675 $as_echo "$as_val"'`
8676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8677 $as_echo "$ac_res" >&6; }
8680 as_val=`eval 'as_val=${'$as_ac_Header'}
8681 $as_echo "$as_val"'`
8682 if test "x$as_val" = x""yes; then
8683 cat >>confdefs.h <<_ACEOF
8684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8692 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8693 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8694 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8695 $as_echo_n "(cached) " >&6
8697 ac_check_lib_save_LIBS=$LIBS
8698 LIBS="-lguile $LIBS"
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8706 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */
8712 char scm_boot_guile ();
8716 return scm_boot_guile ();
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (ac_try="$ac_link"
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8728 $as_echo "$ac_try_echo") >&5
8729 (eval "$ac_link") 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_cxx_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest$ac_exeext && {
8739 test "$cross_compiling" = yes ||
8740 $as_test_x conftest$ac_exeext
8742 ac_cv_lib_guile_scm_boot_guile=yes
8744 $as_echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_cv_lib_guile_scm_boot_guile=no
8750 rm -rf conftest.dSYM
8751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8756 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8757 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8758 cat >>confdefs.h <<_ACEOF
8759 #define HAVE_LIBGUILE 1
8762 LIBS="-lguile $LIBS"
8767 for ac_func in scm_boot_guile
8769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8771 $as_echo_n "checking for $ac_func... " >&6; }
8772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8773 $as_echo_n "(cached) " >&6
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8783 #define $ac_func innocuous_$ac_func
8785 /* System header to define __stub macros and hopefully few prototypes,
8786 which can conflict with char $ac_func (); below.
8787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8788 <limits.h> exists even on freestanding compilers. */
8791 # include <limits.h>
8793 # include <assert.h>
8798 /* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined __stub_$ac_func || defined __stub___$ac_func
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8827 $as_echo "$ac_try_echo") >&5
8828 (eval "$ac_link") 2>conftest.er1
8830 grep -v '^ *+' conftest.er1 >conftest.err
8832 cat conftest.err >&5
8833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_cxx_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext && {
8838 test "$cross_compiling" = yes ||
8839 $as_test_x conftest$ac_exeext
8841 eval "$as_ac_var=yes"
8843 $as_echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 eval "$as_ac_var=no"
8849 rm -rf conftest.dSYM
8850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8851 conftest$ac_exeext conftest.$ac_ext
8853 ac_res=`eval 'as_val=${'$as_ac_var'}
8854 $as_echo "$as_val"'`
8855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8856 $as_echo "$ac_res" >&6; }
8857 as_val=`eval 'as_val=${'$as_ac_var'}
8858 $as_echo "$as_val"'`
8859 if test "x$as_val" = x""yes; then
8860 cat >>confdefs.h <<_ACEOF
8861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8869 if test "$libguile_b" = "no"; then
8870 warn='libguile (libguile-dev, guile-devel or guile-dev
8873 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8876 CPPFLAGS="$save_CPPFLAGS"
8878 cat >>confdefs.h <<_ACEOF
8879 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8882 cat >>confdefs.h <<_ACEOF
8883 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8886 cat >>confdefs.h <<_ACEOF
8887 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8893 ## First, let's just see if we can find Guile at all.
8894 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8895 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8896 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8897 $as_echo_n "checking for guile-config... " >&6; }
8898 guile_config="guile-config"
8900 for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8902 ## which doesn't work in ash, if /usr/bin/which isn't installed
8903 ## type -p doesn't work in ash
8904 ## command -v doesn't work in zsh
8905 ## command -v "$r" 2>&1
8906 ## this test should work in ash, bash, pdksh (ksh), zsh
8907 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8909 if ! $exe --version > /dev/null 2>&1 ; then
8913 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8916 ## Workaround for broken Debian gcc version string:
8917 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8919 ## -V: Workaround for python
8923 ## Assume and hunt for dotted version multiplet.
8924 ## use eval trickery, because we cannot use multi-level $() instead of ``
8925 ## for compatibility reasons.
8927 ## grab the first version number in --version output.
8928 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8929 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8932 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8933 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8936 if test -z "$_ver"; then
8937 ## If empty, try date [fontforge]
8938 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8939 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8941 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8947 echo "$ver" | awk -F. '
8949 if ($3) {three = $3}
8952 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8955 echo "1.8.2" | awk -F. '
8957 if ($3) {three = $3}
8960 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8963 echo "1.9.0" | awk -F. '
8965 if ($3) {three = $3}
8968 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8970 if test -n "1.8.2" -a "$num" -lt "$req"; then
8971 guile_config="$r >= 1.8.2 (installed: $ver)"
8974 if test -n "1.9.0" -a "$num" -ge "$sup"; then
8975 guile_config="$r < 1.9.0 (installed: $ver)"
8984 { $as_echo "$as_me:$LINENO: result: $found" >&5
8985 $as_echo "$found" >&6; }
8986 if test "$found" != "no"; then
8987 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8988 $as_echo_n "checking $guile_config version... " >&6; }
8989 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8990 $as_echo "$ver" >&6; }
8994 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
9000 guile_version="$ver"
9002 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
9003 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
9004 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9008 ## which doesn't work in ash, if /usr/bin/which isn't installed
9009 ## type -p doesn't work in ash
9010 ## command -v doesn't work in zsh
9011 ## command -v "$guile_config" 2>&1
9012 ## this test should work in ash, bash, pdksh (ksh), zsh
9013 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
9015 if test -x $exe; then
9016 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
9017 $as_echo_n "checking guile compile flags... " >&6; }
9018 GUILE_CFLAGS="`$guile_config compile`"
9019 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
9020 $as_echo "$GUILE_CFLAGS" >&6; }
9021 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
9022 $as_echo_n "checking guile link flags... " >&6; }
9023 GUILE_LDFLAGS="`$guile_config link`"
9024 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
9025 $as_echo "$GUILE_LDFLAGS" >&6; }
9030 save_CPPFLAGS="$CPPFLAGS"
9032 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9033 LIBS="$GUILE_LDFLAGS $LIBS"
9035 for ac_header in libguile.h
9037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9040 $as_echo_n "checking for $ac_header... " >&6; }
9041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042 $as_echo_n "(cached) " >&6
9044 ac_res=`eval 'as_val=${'$as_ac_Header'}
9045 $as_echo "$as_val"'`
9046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9047 $as_echo "$ac_res" >&6; }
9049 # Is the header compilable?
9050 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9051 $as_echo_n "checking $ac_header usability... " >&6; }
9052 cat >conftest.$ac_ext <<_ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 $ac_includes_default
9059 #include <$ac_header>
9061 rm -f conftest.$ac_objext
9062 if { (ac_try="$ac_compile"
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9068 $as_echo "$ac_try_echo") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_cxx_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
9079 ac_header_compiler=yes
9081 $as_echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_header_compiler=no
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9089 $as_echo "$ac_header_compiler" >&6; }
9091 # Is the header present?
9092 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9093 $as_echo_n "checking $ac_header presence... " >&6; }
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 #include <$ac_header>
9102 if { (ac_try="$ac_cpp conftest.$ac_ext"
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9108 $as_echo "$ac_try_echo") >&5
9109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9111 grep -v '^ *+' conftest.er1 >conftest.err
9113 cat conftest.err >&5
9114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev/null && {
9116 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9117 test ! -s conftest.err
9119 ac_header_preproc=yes
9121 $as_echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_preproc=no
9127 rm -f conftest.err conftest.$ac_ext
9128 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9129 $as_echo "$ac_header_preproc" >&6; }
9131 # So? What about this header?
9132 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9135 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9138 ac_header_preproc=yes
9141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9142 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9144 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9146 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9148 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9152 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 $as_echo_n "checking for $ac_header... " >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 $as_echo_n "(cached) " >&6
9161 eval "$as_ac_Header=\$ac_header_preproc"
9163 ac_res=`eval 'as_val=${'$as_ac_Header'}
9164 $as_echo "$as_val"'`
9165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9166 $as_echo "$ac_res" >&6; }
9169 as_val=`eval 'as_val=${'$as_ac_Header'}
9170 $as_echo "$as_val"'`
9171 if test "x$as_val" = x""yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9182 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9183 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9184 $as_echo_n "(cached) " >&6
9186 ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lguile $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9201 char scm_boot_guile ();
9205 return scm_boot_guile ();
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9217 $as_echo "$ac_try_echo") >&5
9218 (eval "$ac_link") 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_cxx_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest$ac_exeext && {
9228 test "$cross_compiling" = yes ||
9229 $as_test_x conftest$ac_exeext
9231 ac_cv_lib_guile_scm_boot_guile=yes
9233 $as_echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_cv_lib_guile_scm_boot_guile=no
9239 rm -rf conftest.dSYM
9240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9244 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9245 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9246 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_LIBGUILE 1
9251 LIBS="-lguile $LIBS"
9256 for ac_func in scm_boot_guile
9258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9260 $as_echo_n "checking for $ac_func... " >&6; }
9261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262 $as_echo_n "(cached) " >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9272 #define $ac_func innocuous_$ac_func
9274 /* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func (); below.
9276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277 <limits.h> exists even on freestanding compilers. */
9280 # include <limits.h>
9282 # include <assert.h>
9287 /* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9294 /* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
9297 #if defined __stub_$ac_func || defined __stub___$ac_func
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316 $as_echo "$ac_try_echo") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_cxx_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext && {
9327 test "$cross_compiling" = yes ||
9328 $as_test_x conftest$ac_exeext
9330 eval "$as_ac_var=yes"
9332 $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 eval "$as_ac_var=no"
9338 rm -rf conftest.dSYM
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9342 ac_res=`eval 'as_val=${'$as_ac_var'}
9343 $as_echo "$as_val"'`
9344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9345 $as_echo "$ac_res" >&6; }
9346 as_val=`eval 'as_val=${'$as_ac_var'}
9347 $as_echo "$as_val"'`
9348 if test "x$as_val" = x""yes; then
9349 cat >>confdefs.h <<_ACEOF
9350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9358 if test "$libguile_b" = "no"; then
9359 warn='libguile (libguile-dev, guile-devel or guile-dev
9362 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9365 CPPFLAGS="$save_CPPFLAGS"
9367 cat >>confdefs.h <<_ACEOF
9368 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9371 cat >>confdefs.h <<_ACEOF
9372 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9375 cat >>confdefs.h <<_ACEOF
9376 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9382 # check for 3 typedefs added in Guile 1.9
9383 save_CXXFLAGS="$CXXFLAGS"
9384 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9385 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9386 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9387 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9388 $as_echo_n "(cached) " >&6
9390 ac_cv_type_scm_t_hash_fold_fn=no
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9397 #include <libguile.h>
9402 if (sizeof (scm_t_hash_fold_fn))
9408 rm -f conftest.$ac_objext
9409 if { (ac_try="$ac_compile"
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9415 $as_echo "$ac_try_echo") >&5
9416 (eval "$ac_compile") 2>conftest.er1
9418 grep -v '^ *+' conftest.er1 >conftest.err
9420 cat conftest.err >&5
9421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && {
9423 test -z "$ac_cxx_werror_flag" ||
9424 test ! -s conftest.err
9425 } && test -s conftest.$ac_objext; then
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 #include <libguile.h>
9437 if (sizeof ((scm_t_hash_fold_fn)))
9443 rm -f conftest.$ac_objext
9444 if { (ac_try="$ac_compile"
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450 $as_echo "$ac_try_echo") >&5
9451 (eval "$ac_compile") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_cxx_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest.$ac_objext; then
9463 $as_echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 ac_cv_type_scm_t_hash_fold_fn=yes
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 $as_echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9480 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9481 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_SCM_T_HASH_FOLD_FN 1
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_GUILE_HASH_FUNC 1
9492 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9493 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9494 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9495 $as_echo_n "(cached) " >&6
9497 ac_cv_type_scm_t_hash_handle_fn=no
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 #include <libguile.h>
9509 if (sizeof (scm_t_hash_handle_fn))
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9522 $as_echo "$ac_try_echo") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9525 grep -v '^ *+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_cxx_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 #include <libguile.h>
9544 if (sizeof ((scm_t_hash_handle_fn)))
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558 (eval "$ac_compile") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_cxx_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest.$ac_objext; then
9570 $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9573 ac_cv_type_scm_t_hash_handle_fn=yes
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 $as_echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9586 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9587 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9588 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9590 cat >>confdefs.h <<_ACEOF
9591 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9594 cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_GUILE_HASH_FUNC 1
9600 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9601 $as_echo_n "checking for scm_t_subr... " >&6; }
9602 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9605 ac_cv_type_scm_t_subr=no
9606 cat >conftest.$ac_ext <<_ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 #include <libguile.h>
9617 if (sizeof (scm_t_subr))
9623 rm -f conftest.$ac_objext
9624 if { (ac_try="$ac_compile"
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9630 $as_echo "$ac_try_echo") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_cxx_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest.$ac_objext; then
9641 cat >conftest.$ac_ext <<_ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 #include <libguile.h>
9652 if (sizeof ((scm_t_subr)))
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9665 $as_echo "$ac_try_echo") >&5
9666 (eval "$ac_compile") 2>conftest.er1
9668 grep -v '^ *+' conftest.er1 >conftest.err
9670 cat conftest.err >&5
9671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_cxx_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest.$ac_objext; then
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_type_scm_t_subr=yes
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 $as_echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9695 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9696 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9698 cat >>confdefs.h <<_ACEOF
9699 #define HAVE_SCM_T_SUBR 1
9702 cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_GUILE_SUBR_TYPE 1
9708 CXXFLAGS="$save_CXXFLAGS"
9710 ## Check for usable cxxabi
9712 LIBS="$LIBS $CXXABI_LIBS"
9713 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9714 $as_echo_n "checking for usable C++ demangler... " >&6; }
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9725 abi::__cxa_demangle ("", 0, 0, 0)
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737 $as_echo "$ac_try_echo") >&5
9738 (eval "$ac_link") 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_cxx_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext && {
9748 test "$cross_compiling" = yes ||
9749 $as_test_x conftest$ac_exeext
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_CXA_DEMANGLE 1
9755 { $as_echo "$as_me:$LINENO: result: yes" >&5
9756 $as_echo "yes" >&6; }
9758 $as_echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9762 LIBS="$LIBS -lsupc++"
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9773 abi::__cxa_demangle ("", 0, 0, 0)
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9785 $as_echo "$ac_try_echo") >&5
9786 (eval "$ac_link") 2>conftest.er1
9788 grep -v '^ *+' conftest.er1 >conftest.err
9790 cat conftest.err >&5
9791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_cxx_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext && {
9796 test "$cross_compiling" = yes ||
9797 $as_test_x conftest$ac_exeext
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_CXA_DEMANGLE 1
9803 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9804 $as_echo "yes, using -lsupc++" >&6; }
9805 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9811 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9814 rm -rf conftest.dSYM
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816 conftest$ac_exeext conftest.$ac_ext
9819 rm -rf conftest.dSYM
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9825 ## check rational bugfix.
9826 save_CPPFLAGS="$CPPFLAGS"
9827 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9828 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9829 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <libguile.h>
9837 #ifdef SCM_FRACTION_REDUCED_BIT
9842 if { (ac_try="$ac_cpp conftest.$ac_ext"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9848 $as_echo "$ac_try_echo") >&5
9849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } >/dev/null && {
9856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9857 test ! -s conftest.err
9859 { $as_echo "$as_me:$LINENO: result: ok" >&5
9860 $as_echo "ok" >&6; }
9862 $as_echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9866 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9867 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9870 rm -f conftest.err conftest.$ac_ext
9871 CPPFLAGS="$save_CPPFLAGS"
9876 # Check whether --with-python-include was given.
9877 if test "${with_python_include+set}" = set; then
9878 withval=$with_python_include;
9879 if test "$withval" = "yes" -o "$withval" = "no"; then
9880 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9881 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9883 PYTHON_CFLAGS="-I${withval}"
9890 # Check whether --with-python-lib was given.
9891 if test "${with_python_lib+set}" = set; then
9892 withval=$with_python_lib;
9893 if test "$withval" = "yes" -o "$withval" = "no"; then
9894 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9895 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9897 LDFLAGS="$LDFLAGS -l${withval}"
9904 { $as_echo "$as_me:$LINENO: checking for python" >&5
9905 $as_echo_n "checking for python... " >&6; }
9908 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
9910 ## which doesn't work in ash, if /usr/bin/which isn't installed
9911 ## type -p doesn't work in ash
9912 ## command -v doesn't work in zsh
9913 ## command -v "$r" 2>&1
9914 ## this test should work in ash, bash, pdksh (ksh), zsh
9915 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9917 if ! $exe -V > /dev/null 2>&1 ; then
9921 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9924 ## Workaround for broken Debian gcc version string:
9925 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9927 ## -V: Workaround for python
9931 ## Assume and hunt for dotted version multiplet.
9932 ## use eval trickery, because we cannot use multi-level $() instead of ``
9933 ## for compatibility reasons.
9935 ## grab the first version number in --version output.
9936 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9937 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9940 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9941 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9944 if test -z "$_ver"; then
9945 ## If empty, try date [fontforge]
9946 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9947 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9949 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9955 echo "$ver" | awk -F. '
9957 if ($3) {three = $3}
9960 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9963 echo "2.4" | awk -F. '
9965 if ($3) {three = $3}
9968 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9971 echo "3.0" | awk -F. '
9973 if ($3) {three = $3}
9976 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9978 if test -n "2.4" && test "$num" -lt "$req"; then
9979 python="$r >= 2.4 (installed: $ver)"
9982 if test -n "3.0" && test "$num" -ge "$sup"; then
9983 python="$r < 3.0 (installed: $ver)"
9992 { $as_echo "$as_me:$LINENO: result: $found" >&5
9993 $as_echo "$found" >&6; }
9994 if test "$found" != "no"; then
9995 { $as_echo "$as_me:$LINENO: checking $python version" >&5
9996 $as_echo_n "checking $python version... " >&6; }
9997 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9998 $as_echo "$ver" >&6; }
10002 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
10005 # Extract the first word of "$PYTHON", so it can be a program name with args.
10006 set dummy $PYTHON; ac_word=$2
10007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if test "${ac_cv_path_PYTHON+set}" = set; then
10010 $as_echo_n "(cached) " >&6
10014 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 PYTHON=$ac_cv_path_PYTHON
10036 if test -n "$PYTHON"; then
10037 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
10038 $as_echo "$PYTHON" >&6; }
10040 { $as_echo "$as_me:$LINENO: result: no" >&5
10041 $as_echo "no" >&6; }
10047 for ac_prog in `basename $PYTHON`-config
10049 # Extract the first word of "$ac_prog", so it can be a program name with args.
10050 set dummy $ac_prog; ac_word=$2
10051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
10054 $as_echo_n "(cached) " >&6
10056 if test -n "$PYTHON_CONFIG"; then
10057 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
10067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
10077 if test -n "$PYTHON_CONFIG"; then
10078 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
10079 $as_echo "$PYTHON_CONFIG" >&6; }
10081 { $as_echo "$as_me:$LINENO: result: no" >&5
10082 $as_echo "no" >&6; }
10086 test -n "$PYTHON_CONFIG" && break
10088 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10091 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10092 # Clean out junk: http://bugs.python.org/issue3290
10093 # Python headers may need some -f* flags, leave them in.
10094 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10095 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10096 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10097 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10098 # 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.
10099 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10100 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10103 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10105 # alternatively, for python >= 2.0
10106 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10107 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10108 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10112 if test -z "$PYTHON_HEADER"; then
10113 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10115 for ac_header in Python.h
10117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 $as_echo_n "checking for $ac_header... " >&6; }
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122 $as_echo_n "(cached) " >&6
10124 ac_res=`eval 'as_val=${'$as_ac_Header'}
10125 $as_echo "$as_val"'`
10126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10127 $as_echo "$ac_res" >&6; }
10129 # Is the header compilable?
10130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10131 $as_echo_n "checking $ac_header usability... " >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 $ac_includes_default
10139 #include <$ac_header>
10141 rm -f conftest.$ac_objext
10142 if { (ac_try="$ac_compile"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10148 $as_echo "$ac_try_echo") >&5
10149 (eval "$ac_compile") 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && {
10156 test -z "$ac_cxx_werror_flag" ||
10157 test ! -s conftest.err
10158 } && test -s conftest.$ac_objext; then
10159 ac_header_compiler=yes
10161 $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_header_compiler=no
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10169 $as_echo "$ac_header_compiler" >&6; }
10171 # Is the header present?
10172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10173 $as_echo_n "checking $ac_header presence... " >&6; }
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <$ac_header>
10182 if { (ac_try="$ac_cpp conftest.$ac_ext"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188 $as_echo "$ac_try_echo") >&5
10189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } >/dev/null && {
10196 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10197 test ! -s conftest.err
10199 ac_header_preproc=yes
10201 $as_echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_header_preproc=no
10207 rm -f conftest.err conftest.$ac_ext
10208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10209 $as_echo "$ac_header_preproc" >&6; }
10211 # So? What about this header?
10212 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10218 ac_header_preproc=yes
10221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10228 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 $as_echo_n "checking for $ac_header... " >&6; }
10238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10239 $as_echo_n "(cached) " >&6
10241 eval "$as_ac_Header=\$ac_header_preproc"
10243 ac_res=`eval 'as_val=${'$as_ac_Header'}
10244 $as_echo "$as_val"'`
10245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10246 $as_echo "$ac_res" >&6; }
10249 as_val=`eval 'as_val=${'$as_ac_Header'}
10250 $as_echo "$as_val"'`
10251 if test "x$as_val" = x""yes; then
10252 cat >>confdefs.h <<_ACEOF
10253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10262 if test -z "$PYTHON_HEADER"; then
10263 warn="Python.h (python-devel, python-dev or libpython-dev package)"
10265 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10273 for ac_prog in fontforge
10275 # Extract the first word of "$ac_prog", so it can be a program name with args.
10276 set dummy $ac_prog; ac_word=$2
10277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10280 $as_echo_n "(cached) " >&6
10282 if test -n "$FONTFORGE"; then
10283 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292 ac_cv_prog_FONTFORGE="$ac_prog"
10293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 FONTFORGE=$ac_cv_prog_FONTFORGE
10303 if test -n "$FONTFORGE"; then
10304 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10305 $as_echo "$FONTFORGE" >&6; }
10307 { $as_echo "$as_me:$LINENO: result: no" >&5
10308 $as_echo "no" >&6; }
10312 test -n "$FONTFORGE" && break
10314 test -n "$FONTFORGE" || FONTFORGE="no"
10318 r="`eval echo '$'"FONTFORGE"`"
10319 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10322 ##STEPMAKE_WARN(cannot find . )
10326 if test $? -ne 0; then
10328 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10330 if test "REQUIRED" = "REQUIRED"; then
10331 command="echo ERROR: fontforge not found"
10332 # abort configure process here?
10334 command="- echo fontforge not found"
10336 eval "FONTFORGE"='$command'
10342 if test $? -eq 0; then
10343 for ac_prog in fontforge
10345 # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10350 $as_echo_n "(cached) " >&6
10354 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10364 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 FONTFORGE=$ac_cv_path_FONTFORGE
10376 if test -n "$FONTFORGE"; then
10377 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10378 $as_echo "$FONTFORGE" >&6; }
10380 { $as_echo "$as_me:$LINENO: result: no" >&5
10381 $as_echo "no" >&6; }
10385 test -n "$FONTFORGE" && break
10388 if test -n "20110222"; then
10390 r="`eval echo '$'"FONTFORGE"`"
10391 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10392 $as_echo_n "checking $r version... " >&6; }
10394 ## which doesn't work in ash, if /usr/bin/which isn't installed
10395 ## type -p doesn't work in ash
10396 ## command -v doesn't work in zsh
10397 ## command -v "$r" 2>&1
10398 ## this test should work in ash, bash, pdksh (ksh), zsh
10399 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10401 if test -n ""; then
10405 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10408 ## Workaround for broken Debian gcc version string:
10409 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10411 ## -V: Workaround for python
10415 ## Assume and hunt for dotted version multiplet.
10416 ## use eval trickery, because we cannot use multi-level $() instead of ``
10417 ## for compatibility reasons.
10419 ## grab the first version number in --version output.
10420 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10421 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10424 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10425 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10428 if test -z "$_ver"; then
10429 ## If empty, try date [fontforge]
10430 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10431 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10433 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10440 echo "$ver" | awk -F. '
10442 if ($3) {three = $3}
10445 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10448 echo "20110222" | awk -F. '
10450 if ($3) {three = $3}
10453 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10455 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10456 $as_echo "$ver" >&6; }
10457 if test "$num" -lt "$req"; then
10459 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10462 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10463 eval `echo $vervar=$num`
10464 ## AC_SUBST(`eval echo $vervar`)
10471 for ac_prog in t1asm
10473 # Extract the first word of "$ac_prog", so it can be a program name with args.
10474 set dummy $ac_prog; ac_word=$2
10475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if test "${ac_cv_prog_T1ASM+set}" = set; then
10478 $as_echo_n "(cached) " >&6
10480 if test -n "$T1ASM"; then
10481 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490 ac_cv_prog_T1ASM="$ac_prog"
10491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 T1ASM=$ac_cv_prog_T1ASM
10501 if test -n "$T1ASM"; then
10502 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10503 $as_echo "$T1ASM" >&6; }
10505 { $as_echo "$as_me:$LINENO: result: no" >&5
10506 $as_echo "no" >&6; }
10510 test -n "$T1ASM" && break
10512 test -n "$T1ASM" || T1ASM="no"
10516 r="`eval echo '$'"T1ASM"`"
10517 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10520 ##STEPMAKE_WARN(cannot find . )
10524 if test $? -ne 0; then
10526 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10528 if test "REQUIRED" = "REQUIRED"; then
10529 command="echo ERROR: t1asm not found"
10530 # abort configure process here?
10532 command="- echo t1asm not found"
10534 eval "T1ASM"='$command'
10540 if test $? -eq 0; then
10541 for ac_prog in t1asm
10543 # Extract the first word of "$ac_prog", so it can be a program name with args.
10544 set dummy $ac_prog; ac_word=$2
10545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10546 $as_echo_n "checking for $ac_word... " >&6; }
10547 if test "${ac_cv_path_T1ASM+set}" = set; then
10548 $as_echo_n "(cached) " >&6
10552 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10562 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 T1ASM=$ac_cv_path_T1ASM
10574 if test -n "$T1ASM"; then
10575 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10576 $as_echo "$T1ASM" >&6; }
10578 { $as_echo "$as_me:$LINENO: result: no" >&5
10579 $as_echo "no" >&6; }
10583 test -n "$T1ASM" && break
10586 if test -n ""; then
10588 r="`eval echo '$'"T1ASM"`"
10589 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10590 $as_echo_n "checking $r version... " >&6; }
10592 ## which doesn't work in ash, if /usr/bin/which isn't installed
10593 ## type -p doesn't work in ash
10594 ## command -v doesn't work in zsh
10595 ## command -v "$r" 2>&1
10596 ## this test should work in ash, bash, pdksh (ksh), zsh
10597 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10599 if test -n ""; then
10603 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10606 ## Workaround for broken Debian gcc version string:
10607 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10609 ## -V: Workaround for python
10613 ## Assume and hunt for dotted version multiplet.
10614 ## use eval trickery, because we cannot use multi-level $() instead of ``
10615 ## for compatibility reasons.
10617 ## grab the first version number in --version output.
10618 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10619 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10622 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10623 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10626 if test -z "$_ver"; then
10627 ## If empty, try date [fontforge]
10628 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10629 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10631 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10638 echo "$ver" | awk -F. '
10640 if ($3) {three = $3}
10643 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10646 echo "" | awk -F. '
10648 if ($3) {three = $3}
10651 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10653 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10654 $as_echo "$ver" >&6; }
10655 if test "$num" -lt "$req"; then
10657 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10660 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10661 eval `echo $vervar=$num`
10662 ## AC_SUBST(`eval echo $vervar`)
10675 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 $as_echo_n "checking for $ac_header... " >&6; }
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 $as_echo_n "(cached) " >&6
10684 ac_res=`eval 'as_val=${'$as_ac_Header'}
10685 $as_echo "$as_val"'`
10686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10687 $as_echo "$ac_res" >&6; }
10689 # Is the header compilable?
10690 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10691 $as_echo_n "checking $ac_header usability... " >&6; }
10692 cat >conftest.$ac_ext <<_ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 $ac_includes_default
10699 #include <$ac_header>
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709 (eval "$ac_compile") 2>conftest.er1
10711 grep -v '^ *+' conftest.er1 >conftest.err
10713 cat conftest.err >&5
10714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_cxx_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest.$ac_objext; then
10719 ac_header_compiler=yes
10721 $as_echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_header_compiler=no
10727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 $as_echo "$ac_header_compiler" >&6; }
10731 # Is the header present?
10732 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733 $as_echo_n "checking $ac_header presence... " >&6; }
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <$ac_header>
10742 if { (ac_try="$ac_cpp conftest.$ac_ext"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10748 $as_echo "$ac_try_echo") >&5
10749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10751 grep -v '^ *+' conftest.er1 >conftest.err
10753 cat conftest.err >&5
10754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } >/dev/null && {
10756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10757 test ! -s conftest.err
10759 ac_header_preproc=yes
10761 $as_echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_header_preproc=no
10767 rm -f conftest.err conftest.$ac_ext
10768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 $as_echo "$ac_header_preproc" >&6; }
10771 # So? What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10784 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10788 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 $as_echo_n "checking for $ac_header... " >&6; }
10798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799 $as_echo_n "(cached) " >&6
10801 eval "$as_ac_Header=\$ac_header_preproc"
10803 ac_res=`eval 'as_val=${'$as_ac_Header'}
10804 $as_echo "$as_val"'`
10805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10806 $as_echo "$ac_res" >&6; }
10809 as_val=`eval 'as_val=${'$as_ac_Header'}
10810 $as_echo "$as_val"'`
10811 if test "x$as_val" = x""yes; then
10812 cat >>confdefs.h <<_ACEOF
10813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10821 for ac_header in sstream
10823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10826 $as_echo_n "checking for $ac_header... " >&6; }
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828 $as_echo_n "(cached) " >&6
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; }
10835 # Is the header compilable?
10836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 $as_echo_n "checking $ac_header usability... " >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 #include <$ac_header>
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_cxx_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest.$ac_objext; then
10865 ac_header_compiler=yes
10867 $as_echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_header_compiler=no
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10875 $as_echo "$ac_header_compiler" >&6; }
10877 # Is the header present?
10878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10879 $as_echo_n "checking $ac_header presence... " >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <$ac_header>
10888 if { (ac_try="$ac_cpp conftest.$ac_ext"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10894 $as_echo "$ac_try_echo") >&5
10895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } >/dev/null && {
10902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10903 test ! -s conftest.err
10905 ac_header_preproc=yes
10907 $as_echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_header_preproc=no
10913 rm -f conftest.err conftest.$ac_ext
10914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915 $as_echo "$ac_header_preproc" >&6; }
10917 # So? What about this header?
10918 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10924 ac_header_preproc=yes
10927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10930 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10934 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10943 $as_echo_n "checking for $ac_header... " >&6; }
10944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945 $as_echo_n "(cached) " >&6
10947 eval "$as_ac_Header=\$ac_header_preproc"
10949 ac_res=`eval 'as_val=${'$as_ac_Header'}
10950 $as_echo "$as_val"'`
10951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10952 $as_echo "$ac_res" >&6; }
10955 as_val=`eval 'as_val=${'$as_ac_Header'}
10956 $as_echo "$as_val"'`
10957 if test "x$as_val" = x""yes; then
10958 cat >>confdefs.h <<_ACEOF
10959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10966 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10967 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10968 if test "${ac_cv_header_stat_broken+set}" = set; then
10969 $as_echo_n "(cached) " >&6
10971 cat >conftest.$ac_ext <<_ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 #include <sys/types.h>
10978 #include <sys/stat.h>
10980 #if defined S_ISBLK && defined S_IFDIR
10981 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10984 #if defined S_ISBLK && defined S_IFCHR
10985 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10988 #if defined S_ISLNK && defined S_IFREG
10989 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10992 #if defined S_ISSOCK && defined S_IFREG
10993 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11004 $as_echo "$ac_try_echo") >&5
11005 (eval "$ac_compile") 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_cxx_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest.$ac_objext; then
11015 ac_cv_header_stat_broken=no
11017 $as_echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_cv_header_stat_broken=yes
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11026 $as_echo "$ac_cv_header_stat_broken" >&6; }
11027 if test $ac_cv_header_stat_broken = yes; then
11029 cat >>confdefs.h <<\_ACEOF
11030 #define STAT_MACROS_BROKEN 1
11035 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11036 $as_echo_n "checking for working memcmp... " >&6; }
11037 if test "${ac_cv_func_memcmp_working+set}" = set; then
11038 $as_echo_n "(cached) " >&6
11040 if test "$cross_compiling" = yes; then
11041 ac_cv_func_memcmp_working=no
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 $ac_includes_default
11054 /* Some versions of memcmp are not 8-bit clean. */
11055 char c0 = '\100', c1 = '\200', c2 = '\201';
11056 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11059 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11060 or more and with at least one buffer not starting on a 4-byte boundary.
11061 William Lewis provided this test program. */
11066 for (i = 0; i < 4; i++)
11070 strcpy (a, "--------01111111");
11071 strcpy (b, "--------10000000");
11072 if (memcmp (a, b, 16) >= 0)
11082 rm -f conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089 $as_echo "$ac_try_echo") >&5
11090 (eval "$ac_link") 2>&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11099 $as_echo "$ac_try_echo") >&5
11100 (eval "$ac_try") 2>&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 ac_cv_func_memcmp_working=yes
11106 $as_echo "$as_me: program exited with status $ac_status" >&5
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ( exit $ac_status )
11111 ac_cv_func_memcmp_working=no
11113 rm -rf conftest.dSYM
11114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11119 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11120 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11121 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11122 *" memcmp.$ac_objext "* ) ;;
11123 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11129 for ac_func in vprintf
11131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11133 $as_echo_n "checking for $ac_func... " >&6; }
11134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11135 $as_echo_n "(cached) " >&6
11137 cat >conftest.$ac_ext <<_ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11145 #define $ac_func innocuous_$ac_func
11147 /* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char $ac_func (); below.
11149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150 <limits.h> exists even on freestanding compilers. */
11153 # include <limits.h>
11155 # include <assert.h>
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11167 /* The GNU C library defines this for functions which it implements
11168 to always fail with ENOSYS. Some functions are actually named
11169 something starting with __ and the normal name is an alias. */
11170 #if defined __stub_$ac_func || defined __stub___$ac_func
11177 return $ac_func ();
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (ac_try="$ac_link"
11184 case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11189 $as_echo "$ac_try_echo") >&5
11190 (eval "$ac_link") 2>conftest.er1
11192 grep -v '^ *+' conftest.er1 >conftest.err
11194 cat conftest.err >&5
11195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && {
11197 test -z "$ac_cxx_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext && {
11200 test "$cross_compiling" = yes ||
11201 $as_test_x conftest$ac_exeext
11203 eval "$as_ac_var=yes"
11205 $as_echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 eval "$as_ac_var=no"
11211 rm -rf conftest.dSYM
11212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11213 conftest$ac_exeext conftest.$ac_ext
11215 ac_res=`eval 'as_val=${'$as_ac_var'}
11216 $as_echo "$as_val"'`
11217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11218 $as_echo "$ac_res" >&6; }
11219 as_val=`eval 'as_val=${'$as_ac_var'}
11220 $as_echo "$as_val"'`
11221 if test "x$as_val" = x""yes; then
11222 cat >>confdefs.h <<_ACEOF
11223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11227 $as_echo_n "checking for _doprnt... " >&6; }
11228 if test "${ac_cv_func__doprnt+set}" = set; then
11229 $as_echo_n "(cached) " >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11239 #define _doprnt innocuous__doprnt
11241 /* System header to define __stub macros and hopefully few prototypes,
11242 which can conflict with char _doprnt (); below.
11243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244 <limits.h> exists even on freestanding compilers. */
11247 # include <limits.h>
11249 # include <assert.h>
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11261 /* The GNU C library defines this for functions which it implements
11262 to always fail with ENOSYS. Some functions are actually named
11263 something starting with __ and the normal name is an alias. */
11264 #if defined __stub__doprnt || defined __stub____doprnt
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11283 $as_echo "$ac_try_echo") >&5
11284 (eval "$ac_link") 2>conftest.er1
11286 grep -v '^ *+' conftest.er1 >conftest.err
11288 cat conftest.err >&5
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && {
11291 test -z "$ac_cxx_werror_flag" ||
11292 test ! -s conftest.err
11293 } && test -s conftest$ac_exeext && {
11294 test "$cross_compiling" = yes ||
11295 $as_test_x conftest$ac_exeext
11297 ac_cv_func__doprnt=yes
11299 $as_echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 ac_cv_func__doprnt=no
11305 rm -rf conftest.dSYM
11306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11307 conftest$ac_exeext conftest.$ac_ext
11309 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11310 $as_echo "$ac_cv_func__doprnt" >&6; }
11311 if test "x$ac_cv_func__doprnt" = x""yes; then
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_DOPRNT 1
11330 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11334 $as_echo_n "checking for $ac_func... " >&6; }
11335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11336 $as_echo_n "(cached) " >&6
11338 cat >conftest.$ac_ext <<_ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11346 #define $ac_func innocuous_$ac_func
11348 /* System header to define __stub macros and hopefully few prototypes,
11349 which can conflict with char $ac_func (); below.
11350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11351 <limits.h> exists even on freestanding compilers. */
11354 # include <limits.h>
11356 # include <assert.h>
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11368 /* The GNU C library defines this for functions which it implements
11369 to always fail with ENOSYS. Some functions are actually named
11370 something starting with __ and the normal name is an alias. */
11371 #if defined __stub_$ac_func || defined __stub___$ac_func
11378 return $ac_func ();
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (ac_try="$ac_link"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11390 $as_echo "$ac_try_echo") >&5
11391 (eval "$ac_link") 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } && {
11398 test -z "$ac_cxx_werror_flag" ||
11399 test ! -s conftest.err
11400 } && test -s conftest$ac_exeext && {
11401 test "$cross_compiling" = yes ||
11402 $as_test_x conftest$ac_exeext
11404 eval "$as_ac_var=yes"
11406 $as_echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 eval "$as_ac_var=no"
11412 rm -rf conftest.dSYM
11413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11414 conftest$ac_exeext conftest.$ac_ext
11416 ac_res=`eval 'as_val=${'$as_ac_var'}
11417 $as_echo "$as_val"'`
11418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11419 $as_echo "$ac_res" >&6; }
11420 as_val=`eval 'as_val=${'$as_ac_var'}
11421 $as_echo "$as_val"'`
11422 if test "x$as_val" = x""yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11432 for ac_prog in pkg-config
11434 # Extract the first word of "$ac_prog", so it can be a program name with args.
11435 set dummy $ac_prog; ac_word=$2
11436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11439 $as_echo_n "(cached) " >&6
11441 if test -n "$PKG_CONFIG"; then
11442 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11451 ac_cv_prog_PKG_CONFIG="$ac_prog"
11452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11462 if test -n "$PKG_CONFIG"; then
11463 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11464 $as_echo "$PKG_CONFIG" >&6; }
11466 { $as_echo "$as_me:$LINENO: result: no" >&5
11467 $as_echo "no" >&6; }
11471 test -n "$PKG_CONFIG" && break
11473 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11477 r="`eval echo '$'"PKG_CONFIG"`"
11478 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11481 ##STEPMAKE_WARN(cannot find . )
11485 if test $? -ne 0; then
11487 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11489 if test "REQUIRED" = "REQUIRED"; then
11490 command="echo ERROR: pkg-config not found"
11491 # abort configure process here?
11493 command="- echo pkg-config not found"
11495 eval "PKG_CONFIG"='$command'
11501 if test $? -eq 0 -a -n "0.9.0"; then
11503 r="`eval echo '$'"PKG_CONFIG"`"
11504 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11505 $as_echo_n "checking $r version... " >&6; }
11507 ## which doesn't work in ash, if /usr/bin/which isn't installed
11508 ## type -p doesn't work in ash
11509 ## command -v doesn't work in zsh
11510 ## command -v "$r" 2>&1
11511 ## this test should work in ash, bash, pdksh (ksh), zsh
11512 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11514 if test -n ""; then
11518 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11521 ## Workaround for broken Debian gcc version string:
11522 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11524 ## -V: Workaround for python
11528 ## Assume and hunt for dotted version multiplet.
11529 ## use eval trickery, because we cannot use multi-level $() instead of ``
11530 ## for compatibility reasons.
11532 ## grab the first version number in --version output.
11533 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11534 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11537 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11538 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11541 if test -z "$_ver"; then
11542 ## If empty, try date [fontforge]
11543 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11544 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11546 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11553 echo "$ver" | awk -F. '
11555 if ($3) {three = $3}
11558 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11561 echo "0.9.0" | awk -F. '
11563 if ($3) {three = $3}
11566 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11568 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11569 $as_echo "$ver" >&6; }
11570 if test "$num" -lt "$req"; then
11572 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11575 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11576 eval `echo $vervar=$num`
11577 ## AC_SUBST(`eval echo $vervar`)
11582 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11583 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11584 if test "$reloc_b" = "yes"; then
11585 cat >>confdefs.h <<\_ACEOF
11586 #define ARGV0_RELOCATION 1
11590 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11591 $as_echo "$reloc_b" >&6; }
11593 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11594 $as_echo_n "checking for rpath linkage... " >&6; }
11595 if test "$rpath_b" = "yes"; then
11596 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11597 elif test "$rpath_b" != "no"; then
11598 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11600 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11601 $as_echo "$rpath_b" >&6; }
11603 HOST_ARCH=`$CC -dumpmachine`
11610 if test -z "$PKG_CONFIG"; then
11611 # Extract the first word of "pkg-config", so it can be a program name with args.
11612 set dummy pkg-config; ac_word=$2
11613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11618 case $PKG_CONFIG in
11620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11643 if test -n "$PKG_CONFIG"; then
11644 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11645 $as_echo "$PKG_CONFIG" >&6; }
11647 { $as_echo "$as_me:$LINENO: result: no" >&5
11648 $as_echo "no" >&6; }
11654 if test "$PKG_CONFIG" = "no" ; then
11655 echo "*** The pkg-config script could not be found. Make sure it is"
11656 echo "*** in your path, or set the PKG_CONFIG environment variable"
11657 echo "*** to the full path to pkg-config."
11658 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11660 PKG_CONFIG_MIN_VERSION=0.9.0
11661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11662 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11663 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11665 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11666 { $as_echo "$as_me:$LINENO: result: yes" >&5
11667 $as_echo "yes" >&6; }
11670 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11671 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11672 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11673 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11674 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11676 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11677 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11678 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11679 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11680 $as_echo "$PANGO_FT2_LIBS" >&6; }
11682 PANGO_FT2_CFLAGS=""
11684 ## If we have a custom action on failure, don't print errors, but
11685 ## do set a variable so people can do so.
11686 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11695 if test $succeeded = yes; then
11701 if test "$have_pangoft2" = yes ; then
11702 cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_PANGO16 1
11706 cat >>confdefs.h <<\_ACEOF
11707 #define HAVE_PANGO_FT2 1
11710 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11711 save_CPPFLAGS="$CPPFLAGS"
11713 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11714 LIBS="$PANGO_FT2_LIBS $LIBS"
11716 for ac_header in pango/pangoft2.h
11718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 $as_echo_n "checking for $ac_header... " >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 $as_echo_n "(cached) " >&6
11725 ac_res=`eval 'as_val=${'$as_ac_Header'}
11726 $as_echo "$as_val"'`
11727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11728 $as_echo "$ac_res" >&6; }
11730 # Is the header compilable?
11731 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11732 $as_echo_n "checking $ac_header usability... " >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 $ac_includes_default
11740 #include <$ac_header>
11742 rm -f conftest.$ac_objext
11743 if { (ac_try="$ac_compile"
11744 case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11749 $as_echo "$ac_try_echo") >&5
11750 (eval "$ac_compile") 2>conftest.er1
11752 grep -v '^ *+' conftest.er1 >conftest.err
11754 cat conftest.err >&5
11755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } && {
11757 test -z "$ac_cxx_werror_flag" ||
11758 test ! -s conftest.err
11759 } && test -s conftest.$ac_objext; then
11760 ac_header_compiler=yes
11762 $as_echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11765 ac_header_compiler=no
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11770 $as_echo "$ac_header_compiler" >&6; }
11772 # Is the header present?
11773 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11774 $as_echo_n "checking $ac_header presence... " >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 #include <$ac_header>
11783 if { (ac_try="$ac_cpp conftest.$ac_ext"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11789 $as_echo "$ac_try_echo") >&5
11790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11792 grep -v '^ *+' conftest.er1 >conftest.err
11794 cat conftest.err >&5
11795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } >/dev/null && {
11797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11798 test ! -s conftest.err
11800 ac_header_preproc=yes
11802 $as_echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_header_preproc=no
11808 rm -f conftest.err conftest.$ac_ext
11809 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810 $as_echo "$ac_header_preproc" >&6; }
11812 # So? What about this header?
11813 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819 ac_header_preproc=yes
11822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11825 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11829 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 $as_echo_n "(cached) " >&6
11842 eval "$as_ac_Header=\$ac_header_preproc"
11844 ac_res=`eval 'as_val=${'$as_ac_Header'}
11845 $as_echo "$as_val"'`
11846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11847 $as_echo "$ac_res" >&6; }
11850 as_val=`eval 'as_val=${'$as_ac_Header'}
11851 $as_echo "$as_val"'`
11852 if test "x$as_val" = x""yes; then
11853 cat >>confdefs.h <<_ACEOF
11854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11862 for ac_func in pango_ft2_font_map_create_context
11864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11866 $as_echo_n "checking for $ac_func... " >&6; }
11867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868 $as_echo_n "(cached) " >&6
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11878 #define $ac_func innocuous_$ac_func
11880 /* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char $ac_func (); below.
11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 <limits.h> exists even on freestanding compilers. */
11886 # include <limits.h>
11888 # include <assert.h>
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11900 /* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903 #if defined __stub_$ac_func || defined __stub___$ac_func
11910 return $ac_func ();
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922 $as_echo "$ac_try_echo") >&5
11923 (eval "$ac_link") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_cxx_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest$ac_exeext && {
11933 test "$cross_compiling" = yes ||
11934 $as_test_x conftest$ac_exeext
11936 eval "$as_ac_var=yes"
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946 conftest$ac_exeext conftest.$ac_ext
11948 ac_res=`eval 'as_val=${'$as_ac_var'}
11949 $as_echo "$as_val"'`
11950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11951 $as_echo "$ac_res" >&6; }
11952 as_val=`eval 'as_val=${'$as_ac_var'}
11953 $as_echo "$as_val"'`
11954 if test "x$as_val" = x""yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964 CPPFLAGS="$save_CPPFLAGS"
11968 #r="libpangoft2-dev or pangoft2-devel"e
11969 r="libpango1.0-dev or pango?-devel"
11970 ver="`pkg-config --modversion pangoft2`"
11972 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11980 if test -z "$PKG_CONFIG"; then
11981 # Extract the first word of "pkg-config", so it can be a program name with args.
11982 set dummy pkg-config; ac_word=$2
11983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11988 case $PKG_CONFIG in
11990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12012 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12013 if test -n "$PKG_CONFIG"; then
12014 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12015 $as_echo "$PKG_CONFIG" >&6; }
12017 { $as_echo "$as_me:$LINENO: result: no" >&5
12018 $as_echo "no" >&6; }
12024 if test "$PKG_CONFIG" = "no" ; then
12025 echo "*** The pkg-config script could not be found. Make sure it is"
12026 echo "*** in your path, or set the PKG_CONFIG environment variable"
12027 echo "*** to the full path to pkg-config."
12028 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12030 PKG_CONFIG_MIN_VERSION=0.9.0
12031 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12032 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
12033 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
12035 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
12036 { $as_echo "$as_me:$LINENO: result: yes" >&5
12037 $as_echo "yes" >&6; }
12040 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12041 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12042 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
12043 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12044 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12046 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12047 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12048 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
12049 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12050 $as_echo "$FONTCONFIG_LIBS" >&6; }
12052 FONTCONFIG_CFLAGS=""
12054 ## If we have a custom action on failure, don't print errors, but
12055 ## do set a variable so people can do so.
12056 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
12065 if test $succeeded = yes; then
12066 have_fontconfig=yes
12071 if test "$have_fontconfig" = yes ; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_FONTCONFIG 1
12076 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12077 save_CPPFLAGS="$CPPFLAGS"
12079 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
12080 LIBS="$FONTCONFIG_LIBS $LIBS"
12083 CPPFLAGS="$save_CPPFLAGS"
12086 r="libfontconfig-dev or fontconfig-devel"
12087 ver="`pkg-config --modversion fontconfig`"
12089 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12097 if test -z "$PKG_CONFIG"; then
12098 # Extract the first word of "pkg-config", so it can be a program name with args.
12099 set dummy pkg-config; ac_word=$2
12100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12103 $as_echo_n "(cached) " >&6
12105 case $PKG_CONFIG in
12107 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12130 if test -n "$PKG_CONFIG"; then
12131 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12132 $as_echo "$PKG_CONFIG" >&6; }
12134 { $as_echo "$as_me:$LINENO: result: no" >&5
12135 $as_echo "no" >&6; }
12141 if test "$PKG_CONFIG" = "no" ; then
12142 echo "*** The pkg-config script could not be found. Make sure it is"
12143 echo "*** in your path, or set the PKG_CONFIG environment variable"
12144 echo "*** to the full path to pkg-config."
12145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12147 PKG_CONFIG_MIN_VERSION=0.9.0
12148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12149 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12150 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12152 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12153 { $as_echo "$as_me:$LINENO: result: yes" >&5
12154 $as_echo "yes" >&6; }
12157 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12158 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12159 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12160 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12161 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12163 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12164 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12165 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12166 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12167 $as_echo "$FREETYPE2_LIBS" >&6; }
12169 FREETYPE2_CFLAGS=""
12171 ## If we have a custom action on failure, don't print errors, but
12172 ## do set a variable so people can do so.
12173 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12182 if test $succeeded = yes; then
12188 if test "$have_freetype2" = yes; then
12189 cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_FREETYPE2 1
12193 save_CPPFLAGS="$CPPFLAGS"
12195 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12196 LIBS="$FREETYPE2_LIBS $LIBS"
12199 CPPFLAGS="$save_CPPFLAGS"
12203 #r="libfreetype2-dev or freetype2-devel"
12204 r="libfreetype6-dev or freetype?-devel"
12205 ver="`pkg-config --modversion freetype2`"
12207 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12213 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12214 $as_echo_n "checking host system type... " >&6; }
12215 if test "${ac_cv_host+set}" = set; then
12216 $as_echo_n "(cached) " >&6
12218 if test "x$host_alias" = x; then
12219 ac_cv_host=$ac_cv_build
12221 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12222 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12223 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12224 { (exit 1); exit 1; }; }
12228 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12229 $as_echo "$ac_cv_host" >&6; }
12230 case $ac_cv_host in
12232 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12233 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12234 { (exit 1); exit 1; }; };;
12237 ac_save_IFS=$IFS; IFS='-'
12243 # Remember, the first character of IFS is used to create $*,
12244 # except with old shells:
12247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12251 *cygwin* ) CYGWIN=yes;;
12255 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12256 $as_echo_n "checking host system type... " >&6; }
12257 if test "${ac_cv_host+set}" = set; then
12258 $as_echo_n "(cached) " >&6
12260 if test "x$host_alias" = x; then
12261 ac_cv_host=$ac_cv_build
12263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12264 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12265 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12266 { (exit 1); exit 1; }; }
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12271 $as_echo "$ac_cv_host" >&6; }
12272 case $ac_cv_host in
12274 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12275 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12276 { (exit 1); exit 1; }; };;
12279 ac_save_IFS=$IFS; IFS='-'
12285 # Remember, the first character of IFS is used to create $*,
12286 # except with old shells:
12289 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12293 *mingw32* ) MINGW32=yes;;
12298 if test "$CYGWIN" = "yes"; then
12299 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12300 program_suffix=.exe
12301 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12302 elif test "$MINGW32" = "yes"; then
12305 program_suffix=.exe
12306 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12312 cat >>confdefs.h <<_ACEOF
12313 #define DIRSEP '${DIRSEP}'
12316 cat >>confdefs.h <<_ACEOF
12317 #define PATHSEP '${PATHSEP}'
12324 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12325 $as_echo_n "checking for some flavor of Windows... " >&6; }
12326 if test "$CYGWIN$MINGW32" = "nono"; then
12327 PLATFORM_WINDOWS=no
12329 PLATFORM_WINDOWS=yes
12331 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12332 $as_echo "$PLATFORM_WINDOWS" >&6; }
12335 for ac_prog in $target-windres windres
12337 # Extract the first word of "$ac_prog", so it can be a program name with args.
12338 set dummy $ac_prog; ac_word=$2
12339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_WINDRES+set}" = set; then
12342 $as_echo_n "(cached) " >&6
12344 if test -n "$WINDRES"; then
12345 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_WINDRES="$ac_prog"
12355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 WINDRES=$ac_cv_prog_WINDRES
12365 if test -n "$WINDRES"; then
12366 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12367 $as_echo "$WINDRES" >&6; }
12369 { $as_echo "$as_me:$LINENO: result: no" >&5
12370 $as_echo "no" >&6; }
12374 test -n "$WINDRES" && break
12376 test -n "$WINDRES" || WINDRES="no"
12380 r="`eval echo '$'"WINDRES"`"
12381 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12384 ##STEPMAKE_WARN(cannot find . )
12388 if test $? -ne 0; then
12390 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12392 if test "x" = "REQUIRED"; then
12393 command="echo ERROR: $target-windres windres not found"
12394 # abort configure process here?
12396 command="- echo $target-windres windres not found"
12398 eval "WINDRES"='$command'
12404 if test $? -eq 0 -a -n ""; then
12406 r="`eval echo '$'"WINDRES"`"
12407 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12408 $as_echo_n "checking $r version... " >&6; }
12410 ## which doesn't work in ash, if /usr/bin/which isn't installed
12411 ## type -p doesn't work in ash
12412 ## command -v doesn't work in zsh
12413 ## command -v "$r" 2>&1
12414 ## this test should work in ash, bash, pdksh (ksh), zsh
12415 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12417 if test -n ""; then
12421 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12424 ## Workaround for broken Debian gcc version string:
12425 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12427 ## -V: Workaround for python
12431 ## Assume and hunt for dotted version multiplet.
12432 ## use eval trickery, because we cannot use multi-level $() instead of ``
12433 ## for compatibility reasons.
12435 ## grab the first version number in --version output.
12436 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12437 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12440 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12441 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12444 if test -z "$_ver"; then
12445 ## If empty, try date [fontforge]
12446 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12447 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12449 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12456 echo "$ver" | awk -F. '
12458 if ($3) {three = $3}
12461 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12464 echo "" | awk -F. '
12466 if ($3) {three = $3}
12469 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12471 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12472 $as_echo "$ver" >&6; }
12473 if test "$num" -lt "$req"; then
12475 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
12478 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12479 eval `echo $vervar=$num`
12480 ## AC_SUBST(`eval echo $vervar`)
12487 # guile executable for some scripts
12489 { $as_echo "$as_me:$LINENO: checking for guile" >&5
12490 $as_echo_n "checking for guile... " >&6; }
12493 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
12495 ## which doesn't work in ash, if /usr/bin/which isn't installed
12496 ## type -p doesn't work in ash
12497 ## command -v doesn't work in zsh
12498 ## command -v "$r" 2>&1
12499 ## this test should work in ash, bash, pdksh (ksh), zsh
12500 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12502 if ! $exe --version > /dev/null 2>&1 ; then
12506 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12509 ## Workaround for broken Debian gcc version string:
12510 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12512 ## -V: Workaround for python
12516 ## Assume and hunt for dotted version multiplet.
12517 ## use eval trickery, because we cannot use multi-level $() instead of ``
12518 ## for compatibility reasons.
12520 ## grab the first version number in --version output.
12521 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12522 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12525 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12526 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12529 if test -z "$_ver"; then
12530 ## If empty, try date [fontforge]
12531 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12532 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12534 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12540 echo "$ver" | awk -F. '
12542 if ($3) {three = $3}
12545 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12548 echo "1.8.2" | awk -F. '
12550 if ($3) {three = $3}
12553 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12556 echo "1.9.0" | awk -F. '
12558 if ($3) {three = $3}
12561 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12563 if test -n "1.8.2" && test "$num" -lt "$req"; then
12564 guile="$r >= 1.8.2 (installed: $ver)"
12567 if test -n "1.9.0" && test "$num" -ge "$sup"; then
12568 guile="$r < 1.9.0 (installed: $ver)"
12577 { $as_echo "$as_me:$LINENO: result: $found" >&5
12578 $as_echo "$found" >&6; }
12579 if test "$found" != "no"; then
12580 { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12581 $as_echo_n "checking $guile version... " >&6; }
12582 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12583 $as_echo "$ver" >&6; }
12587 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12591 for ac_prog in $GUILE
12593 # Extract the first word of "$ac_prog", so it can be a program name with args.
12594 set dummy $ac_prog; ac_word=$2
12595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if test "${ac_cv_prog_GUILE+set}" = set; then
12598 $as_echo_n "(cached) " >&6
12600 if test -n "$GUILE"; then
12601 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12610 ac_cv_prog_GUILE="$ac_prog"
12611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 GUILE=$ac_cv_prog_GUILE
12621 if test -n "$GUILE"; then
12622 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12623 $as_echo "$GUILE" >&6; }
12625 { $as_echo "$as_me:$LINENO: result: no" >&5
12626 $as_echo "no" >&6; }
12630 test -n "$GUILE" && break
12632 test -n "$GUILE" || GUILE="no"
12636 r="`eval echo '$'"GUILE"`"
12637 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12640 ##STEPMAKE_WARN(cannot find . )
12644 if test $? -ne 0; then
12646 eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12648 if test "" = "REQUIRED"; then
12649 command="echo ERROR: $GUILE not found"
12650 # abort configure process here?
12652 command="- echo $GUILE not found"
12654 eval "GUILE"='$command'
12660 if test $? -eq 0; then
12661 for ac_prog in $GUILE
12663 # Extract the first word of "$ac_prog", so it can be a program name with args.
12664 set dummy $ac_prog; ac_word=$2
12665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_path_GUILE+set}" = set; then
12668 $as_echo_n "(cached) " >&6
12672 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $PATH
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 GUILE=$ac_cv_path_GUILE
12694 if test -n "$GUILE"; then
12695 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12696 $as_echo "$GUILE" >&6; }
12698 { $as_echo "$as_me:$LINENO: result: no" >&5
12699 $as_echo "no" >&6; }
12703 test -n "$GUILE" && break
12706 if test -n ""; then
12708 r="`eval echo '$'"GUILE"`"
12709 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12710 $as_echo_n "checking $r version... " >&6; }
12712 ## which doesn't work in ash, if /usr/bin/which isn't installed
12713 ## type -p doesn't work in ash
12714 ## command -v doesn't work in zsh
12715 ## command -v "$r" 2>&1
12716 ## this test should work in ash, bash, pdksh (ksh), zsh
12717 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12719 if test -n ""; then
12723 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12726 ## Workaround for broken Debian gcc version string:
12727 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12729 ## -V: Workaround for python
12733 ## Assume and hunt for dotted version multiplet.
12734 ## use eval trickery, because we cannot use multi-level $() instead of ``
12735 ## for compatibility reasons.
12737 ## grab the first version number in --version output.
12738 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12739 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12742 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12743 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12746 if test -z "$_ver"; then
12747 ## If empty, try date [fontforge]
12748 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12749 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12751 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12758 echo "$ver" | awk -F. '
12760 if ($3) {three = $3}
12763 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12766 echo "" | awk -F. '
12768 if ($3) {three = $3}
12771 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12773 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12774 $as_echo "$ver" >&6; }
12775 if test "$num" -lt "$req"; then
12777 eval ""=\"`eval echo \"'$'\" \""$r >= (installed: $ver)"\"`\"
12780 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12781 eval `echo $vervar=$num`
12782 ## AC_SUBST(`eval echo $vervar`)
12789 # perl for help2man and for mf2pt1.pl
12792 for ac_prog in perl
12794 # Extract the first word of "$ac_prog", so it can be a program name with args.
12795 set dummy $ac_prog; ac_word=$2
12796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_PERL+set}" = set; then
12799 $as_echo_n "(cached) " >&6
12801 if test -n "$PERL"; then
12802 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_prog_PERL="$ac_prog"
12812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 PERL=$ac_cv_prog_PERL
12822 if test -n "$PERL"; then
12823 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12824 $as_echo "$PERL" >&6; }
12826 { $as_echo "$as_me:$LINENO: result: no" >&5
12827 $as_echo "no" >&6; }
12831 test -n "$PERL" && break
12833 test -n "$PERL" || PERL="no"
12837 r="`eval echo '$'"PERL"`"
12838 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12841 ##STEPMAKE_WARN(cannot find . )
12845 if test $? -ne 0; then
12847 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12849 if test "REQUIRED" = "REQUIRED"; then
12850 command="echo ERROR: perl not found"
12851 # abort configure process here?
12853 command="- echo perl not found"
12855 eval "PERL"='$command'
12861 if test $? -eq 0; then
12862 for ac_prog in perl
12864 # Extract the first word of "$ac_prog", so it can be a program name with args.
12865 set dummy $ac_prog; ac_word=$2
12866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if test "${ac_cv_path_PERL+set}" = set; then
12869 $as_echo_n "(cached) " >&6
12873 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 PERL=$ac_cv_path_PERL
12895 if test -n "$PERL"; then
12896 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12897 $as_echo "$PERL" >&6; }
12899 { $as_echo "$as_me:$LINENO: result: no" >&5
12900 $as_echo "no" >&6; }
12904 test -n "$PERL" && break
12907 if test -n ""; then
12909 r="`eval echo '$'"PERL"`"
12910 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12911 $as_echo_n "checking $r version... " >&6; }
12913 ## which doesn't work in ash, if /usr/bin/which isn't installed
12914 ## type -p doesn't work in ash
12915 ## command -v doesn't work in zsh
12916 ## command -v "$r" 2>&1
12917 ## this test should work in ash, bash, pdksh (ksh), zsh
12918 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12920 if test -n ""; then
12924 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12927 ## Workaround for broken Debian gcc version string:
12928 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12930 ## -V: Workaround for python
12934 ## Assume and hunt for dotted version multiplet.
12935 ## use eval trickery, because we cannot use multi-level $() instead of ``
12936 ## for compatibility reasons.
12938 ## grab the first version number in --version output.
12939 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12940 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12943 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12944 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12947 if test -z "$_ver"; then
12948 ## If empty, try date [fontforge]
12949 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12950 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12952 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12959 echo "$ver" | awk -F. '
12961 if ($3) {three = $3}
12964 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12967 echo "" | awk -F. '
12969 if ($3) {three = $3}
12972 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12974 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12975 $as_echo "$ver" >&6; }
12976 if test "$num" -lt "$req"; then
12978 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
12981 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12982 eval `echo $vervar=$num`
12983 ## AC_SUBST(`eval echo $vervar`)
12990 ## Optional tools for building documentation, website, extra fonts.
12991 if test "$DOCUMENTATION" = "yes"; then
12992 DOCUMENTATION_REQUIRED=REQUIRED
12994 DOCUMENTATION_REQUIRED=OPTIONAL
13000 # Extract the first word of "$ac_prog", so it can be a program name with args.
13001 set dummy $ac_prog; ac_word=$2
13002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
13005 $as_echo_n "(cached) " >&6
13007 if test -n "$GHOSTSCRIPT"; then
13008 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
13018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
13028 if test -n "$GHOSTSCRIPT"; then
13029 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13030 $as_echo "$GHOSTSCRIPT" >&6; }
13032 { $as_echo "$as_me:$LINENO: result: no" >&5
13033 $as_echo "no" >&6; }
13037 test -n "$GHOSTSCRIPT" && break
13039 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
13043 r="`eval echo '$'"GHOSTSCRIPT"`"
13044 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
13047 ##STEPMAKE_WARN(cannot find . )
13051 if test $? -ne 0; then
13053 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
13055 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13056 command="echo ERROR: gs not found"
13057 # abort configure process here?
13059 command="- echo gs not found"
13061 eval "GHOSTSCRIPT"='$command'
13067 if test $? -eq 0; then
13070 # Extract the first word of "$ac_prog", so it can be a program name with args.
13071 set dummy $ac_prog; ac_word=$2
13072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
13075 $as_echo_n "(cached) " >&6
13077 case $GHOSTSCRIPT in
13079 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13101 if test -n "$GHOSTSCRIPT"; then
13102 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13103 $as_echo "$GHOSTSCRIPT" >&6; }
13105 { $as_echo "$as_me:$LINENO: result: no" >&5
13106 $as_echo "no" >&6; }
13110 test -n "$GHOSTSCRIPT" && break
13113 if test -n "8.60"; then
13115 r="`eval echo '$'"GHOSTSCRIPT"`"
13116 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13117 $as_echo_n "checking $r version... " >&6; }
13119 ## which doesn't work in ash, if /usr/bin/which isn't installed
13120 ## type -p doesn't work in ash
13121 ## command -v doesn't work in zsh
13122 ## command -v "$r" 2>&1
13123 ## this test should work in ash, bash, pdksh (ksh), zsh
13124 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13126 if test -n ""; then
13130 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13133 ## Workaround for broken Debian gcc version string:
13134 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13136 ## -V: Workaround for python
13140 ## Assume and hunt for dotted version multiplet.
13141 ## use eval trickery, because we cannot use multi-level $() instead of ``
13142 ## for compatibility reasons.
13144 ## grab the first version number in --version output.
13145 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13146 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13149 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13150 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13153 if test -z "$_ver"; then
13154 ## If empty, try date [fontforge]
13155 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13156 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13158 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13165 echo "$ver" | awk -F. '
13167 if ($3) {three = $3}
13170 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13173 echo "8.60" | awk -F. '
13175 if ($3) {three = $3}
13178 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13180 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13181 $as_echo "$ver" >&6; }
13182 if test "$num" -lt "$req"; then
13184 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13187 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13188 eval `echo $vervar=$num`
13189 ## AC_SUBST(`eval echo $vervar`)
13196 for ac_prog in makeinfo
13198 # Extract the first word of "$ac_prog", so it can be a program name with args.
13199 set dummy $ac_prog; ac_word=$2
13200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
13203 $as_echo_n "(cached) " >&6
13205 if test -n "$MAKEINFO"; then
13206 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_MAKEINFO="$ac_prog"
13216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13225 MAKEINFO=$ac_cv_prog_MAKEINFO
13226 if test -n "$MAKEINFO"; then
13227 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
13228 $as_echo "$MAKEINFO" >&6; }
13230 { $as_echo "$as_me:$LINENO: result: no" >&5
13231 $as_echo "no" >&6; }
13235 test -n "$MAKEINFO" && break
13237 test -n "$MAKEINFO" || MAKEINFO="no"
13241 r="`eval echo '$'"MAKEINFO"`"
13242 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
13245 ##STEPMAKE_WARN(cannot find . )
13249 if test $? -ne 0; then
13251 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
13253 if test "REQUIRED" = "REQUIRED"; then
13254 command="echo ERROR: makeinfo not found"
13255 # abort configure process here?
13257 command="- echo makeinfo not found"
13259 eval "MAKEINFO"='$command'
13265 if test $? -eq 0 -a -n "4.11"; then
13267 r="`eval echo '$'"MAKEINFO"`"
13268 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13269 $as_echo_n "checking $r version... " >&6; }
13271 ## which doesn't work in ash, if /usr/bin/which isn't installed
13272 ## type -p doesn't work in ash
13273 ## command -v doesn't work in zsh
13274 ## command -v "$r" 2>&1
13275 ## this test should work in ash, bash, pdksh (ksh), zsh
13276 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13278 if test -n ""; then
13282 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13285 ## Workaround for broken Debian gcc version string:
13286 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13288 ## -V: Workaround for python
13292 ## Assume and hunt for dotted version multiplet.
13293 ## use eval trickery, because we cannot use multi-level $() instead of ``
13294 ## for compatibility reasons.
13296 ## grab the first version number in --version output.
13297 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13298 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13301 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13302 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13305 if test -z "$_ver"; then
13306 ## If empty, try date [fontforge]
13307 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13308 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13310 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13317 echo "$ver" | awk -F. '
13319 if ($3) {three = $3}
13322 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13325 echo "4.11" | awk -F. '
13327 if ($3) {three = $3}
13330 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13332 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13333 $as_echo "$ver" >&6; }
13334 if test "$num" -lt "$req"; then
13336 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
13339 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
13340 eval `echo $vervar=$num`
13341 ## AC_SUBST(`eval echo $vervar`)
13346 for ac_prog in texi2html
13348 # Extract the first word of "$ac_prog", so it can be a program name with args.
13349 set dummy $ac_prog; ac_word=$2
13350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
13353 $as_echo_n "(cached) " >&6
13355 if test -n "$TEXI2HTML"; then
13356 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365 ac_cv_prog_TEXI2HTML="$ac_prog"
13366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 TEXI2HTML=$ac_cv_prog_TEXI2HTML
13376 if test -n "$TEXI2HTML"; then
13377 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
13378 $as_echo "$TEXI2HTML" >&6; }
13380 { $as_echo "$as_me:$LINENO: result: no" >&5
13381 $as_echo "no" >&6; }
13385 test -n "$TEXI2HTML" && break
13387 test -n "$TEXI2HTML" || TEXI2HTML="no"
13391 r="`eval echo '$'"TEXI2HTML"`"
13392 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
13395 ##STEPMAKE_WARN(cannot find . )
13399 if test $? -ne 0; then
13401 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
13403 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13404 command="echo ERROR: texi2html not found"
13405 # abort configure process here?
13407 command="- echo texi2html not found"
13409 eval "TEXI2HTML"='$command'
13415 if test $? -eq 0 -a -n "1.82"; then
13417 r="`eval echo '$'"TEXI2HTML"`"
13418 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13419 $as_echo_n "checking $r version... " >&6; }
13421 ## which doesn't work in ash, if /usr/bin/which isn't installed
13422 ## type -p doesn't work in ash
13423 ## command -v doesn't work in zsh
13424 ## command -v "$r" 2>&1
13425 ## this test should work in ash, bash, pdksh (ksh), zsh
13426 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13428 if test -n ""; then
13432 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13435 ## Workaround for broken Debian gcc version string:
13436 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13438 ## -V: Workaround for python
13442 ## Assume and hunt for dotted version multiplet.
13443 ## use eval trickery, because we cannot use multi-level $() instead of ``
13444 ## for compatibility reasons.
13446 ## grab the first version number in --version output.
13447 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13448 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13451 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13452 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13455 if test -z "$_ver"; then
13456 ## If empty, try date [fontforge]
13457 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13458 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13460 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13467 echo "$ver" | awk -F. '
13469 if ($3) {three = $3}
13472 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13475 echo "1.82" | awk -F. '
13477 if ($3) {three = $3}
13480 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13482 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13483 $as_echo "$ver" >&6; }
13484 if test "$num" -lt "$req"; then
13486 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
13489 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
13490 eval `echo $vervar=$num`
13491 ## AC_SUBST(`eval echo $vervar`)
13496 for ac_prog in dblatex
13498 # Extract the first word of "$ac_prog", so it can be a program name with args.
13499 set dummy $ac_prog; ac_word=$2
13500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if test "${ac_cv_prog_DBLATEX+set}" = set; then
13503 $as_echo_n "(cached) " >&6
13505 if test -n "$DBLATEX"; then
13506 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13515 ac_cv_prog_DBLATEX="$ac_prog"
13516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13525 DBLATEX=$ac_cv_prog_DBLATEX
13526 if test -n "$DBLATEX"; then
13527 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
13528 $as_echo "$DBLATEX" >&6; }
13530 { $as_echo "$as_me:$LINENO: result: no" >&5
13531 $as_echo "no" >&6; }
13535 test -n "$DBLATEX" && break
13537 test -n "$DBLATEX" || DBLATEX="no"
13541 r="`eval echo '$'"DBLATEX"`"
13542 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
13545 ##STEPMAKE_WARN(cannot find . )
13549 if test $? -ne 0; then
13551 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
13553 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13554 command="echo ERROR: dblatex not found"
13555 # abort configure process here?
13557 command="- echo dblatex not found"
13559 eval "DBLATEX"='$command'
13565 if test $? -eq 0 -a -n "0.1.4"; then
13567 r="`eval echo '$'"DBLATEX"`"
13568 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13569 $as_echo_n "checking $r version... " >&6; }
13571 ## which doesn't work in ash, if /usr/bin/which isn't installed
13572 ## type -p doesn't work in ash
13573 ## command -v doesn't work in zsh
13574 ## command -v "$r" 2>&1
13575 ## this test should work in ash, bash, pdksh (ksh), zsh
13576 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13578 if test -n ""; then
13582 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13585 ## Workaround for broken Debian gcc version string:
13586 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13588 ## -V: Workaround for python
13592 ## Assume and hunt for dotted version multiplet.
13593 ## use eval trickery, because we cannot use multi-level $() instead of ``
13594 ## for compatibility reasons.
13596 ## grab the first version number in --version output.
13597 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13598 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13601 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13602 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13605 if test -z "$_ver"; then
13606 ## If empty, try date [fontforge]
13607 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13608 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13610 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13617 echo "$ver" | awk -F. '
13619 if ($3) {three = $3}
13622 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13625 echo "0.1.4" | awk -F. '
13627 if ($3) {three = $3}
13630 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13632 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13633 $as_echo "$ver" >&6; }
13634 if test "$num" -lt "$req"; then
13636 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13639 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13640 eval `echo $vervar=$num`
13641 ## AC_SUBST(`eval echo $vervar`)
13646 for ac_prog in bibtex
13648 # Extract the first word of "$ac_prog", so it can be a program name with args.
13649 set dummy $ac_prog; ac_word=$2
13650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13653 $as_echo_n "(cached) " >&6
13655 if test -n "$BIBTEX"; then
13656 ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13665 ac_cv_prog_BIBTEX="$ac_prog"
13666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 BIBTEX=$ac_cv_prog_BIBTEX
13676 if test -n "$BIBTEX"; then
13677 { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
13678 $as_echo "$BIBTEX" >&6; }
13680 { $as_echo "$as_me:$LINENO: result: no" >&5
13681 $as_echo "no" >&6; }
13685 test -n "$BIBTEX" && break
13687 test -n "$BIBTEX" || BIBTEX="no"
13691 r="`eval echo '$'"BIBTEX"`"
13692 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
13695 ##STEPMAKE_WARN(cannot find . )
13699 if test $? -ne 0; then
13701 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
13703 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13704 command="echo ERROR: bibtex not found"
13705 # abort configure process here?
13707 command="- echo bibtex not found"
13709 eval "BIBTEX"='$command'
13715 if test $? -eq 0 -a -n ""; then
13717 r="`eval echo '$'"BIBTEX"`"
13718 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13719 $as_echo_n "checking $r version... " >&6; }
13721 ## which doesn't work in ash, if /usr/bin/which isn't installed
13722 ## type -p doesn't work in ash
13723 ## command -v doesn't work in zsh
13724 ## command -v "$r" 2>&1
13725 ## this test should work in ash, bash, pdksh (ksh), zsh
13726 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13728 if test -n ""; then
13732 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13735 ## Workaround for broken Debian gcc version string:
13736 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13738 ## -V: Workaround for python
13742 ## Assume and hunt for dotted version multiplet.
13743 ## use eval trickery, because we cannot use multi-level $() instead of ``
13744 ## for compatibility reasons.
13746 ## grab the first version number in --version output.
13747 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13748 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13751 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13752 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13755 if test -z "$_ver"; then
13756 ## If empty, try date [fontforge]
13757 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13758 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13760 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13767 echo "$ver" | awk -F. '
13769 if ($3) {three = $3}
13772 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13775 echo "" | awk -F. '
13777 if ($3) {three = $3}
13780 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13782 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13783 $as_echo "$ver" >&6; }
13784 if test "$num" -lt "$req"; then
13786 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13789 vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
13790 eval `echo $vervar=$num`
13791 ## AC_SUBST(`eval echo $vervar`)
13796 for ac_prog in xelatex pdflatex
13798 # Extract the first word of "$ac_prog", so it can be a program name with args.
13799 set dummy $ac_prog; ac_word=$2
13800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
13803 $as_echo_n "(cached) " >&6
13805 if test -n "$PDFLATEX"; then
13806 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13815 ac_cv_prog_PDFLATEX="$ac_prog"
13816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13825 PDFLATEX=$ac_cv_prog_PDFLATEX
13826 if test -n "$PDFLATEX"; then
13827 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
13828 $as_echo "$PDFLATEX" >&6; }
13830 { $as_echo "$as_me:$LINENO: result: no" >&5
13831 $as_echo "no" >&6; }
13835 test -n "$PDFLATEX" && break
13837 test -n "$PDFLATEX" || PDFLATEX="no"
13841 r="`eval echo '$'"PDFLATEX"`"
13842 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
13845 ##STEPMAKE_WARN(cannot find . )
13849 if test $? -ne 0; then
13851 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
13853 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13854 command="echo ERROR: xelatex pdflatex not found"
13855 # abort configure process here?
13857 command="- echo xelatex pdflatex not found"
13859 eval "PDFLATEX"='$command'
13865 if test $? -eq 0 -a -n ""; then
13867 r="`eval echo '$'"PDFLATEX"`"
13868 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13869 $as_echo_n "checking $r version... " >&6; }
13871 ## which doesn't work in ash, if /usr/bin/which isn't installed
13872 ## type -p doesn't work in ash
13873 ## command -v doesn't work in zsh
13874 ## command -v "$r" 2>&1
13875 ## this test should work in ash, bash, pdksh (ksh), zsh
13876 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13878 if test -n ""; then
13882 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13885 ## Workaround for broken Debian gcc version string:
13886 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13888 ## -V: Workaround for python
13892 ## Assume and hunt for dotted version multiplet.
13893 ## use eval trickery, because we cannot use multi-level $() instead of ``
13894 ## for compatibility reasons.
13896 ## grab the first version number in --version output.
13897 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13898 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13901 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13902 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13905 if test -z "$_ver"; then
13906 ## If empty, try date [fontforge]
13907 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13908 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13910 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13917 echo "$ver" | awk -F. '
13919 if ($3) {three = $3}
13922 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13925 echo "" | awk -F. '
13927 if ($3) {three = $3}
13930 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13932 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13933 $as_echo "$ver" >&6; }
13934 if test "$num" -lt "$req"; then
13936 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13939 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13940 eval `echo $vervar=$num`
13941 ## AC_SUBST(`eval echo $vervar`)
13945 if test "$PDFLATEX" = "xelatex"; then
13947 for ac_prog in xetex
13949 # Extract the first word of "$ac_prog", so it can be a program name with args.
13950 set dummy $ac_prog; ac_word=$2
13951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_PDFTEX+set}" = set; then
13954 $as_echo_n "(cached) " >&6
13956 if test -n "$PDFTEX"; then
13957 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_PDFTEX="$ac_prog"
13967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 PDFTEX=$ac_cv_prog_PDFTEX
13977 if test -n "$PDFTEX"; then
13978 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
13979 $as_echo "$PDFTEX" >&6; }
13981 { $as_echo "$as_me:$LINENO: result: no" >&5
13982 $as_echo "no" >&6; }
13986 test -n "$PDFTEX" && break
13988 test -n "$PDFTEX" || PDFTEX="no"
13992 r="`eval echo '$'"PDFTEX"`"
13993 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
13996 ##STEPMAKE_WARN(cannot find . )
14000 if test $? -ne 0; then
14002 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
14004 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14005 command="echo ERROR: xetex not found"
14006 # abort configure process here?
14008 command="- echo xetex not found"
14010 eval "PDFTEX"='$command'
14016 if test $? -eq 0 -a -n ""; then
14018 r="`eval echo '$'"PDFTEX"`"
14019 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14020 $as_echo_n "checking $r version... " >&6; }
14022 ## which doesn't work in ash, if /usr/bin/which isn't installed
14023 ## type -p doesn't work in ash
14024 ## command -v doesn't work in zsh
14025 ## command -v "$r" 2>&1
14026 ## this test should work in ash, bash, pdksh (ksh), zsh
14027 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14029 if test -n ""; then
14033 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14036 ## Workaround for broken Debian gcc version string:
14037 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14039 ## -V: Workaround for python
14043 ## Assume and hunt for dotted version multiplet.
14044 ## use eval trickery, because we cannot use multi-level $() instead of ``
14045 ## for compatibility reasons.
14047 ## grab the first version number in --version output.
14048 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14049 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14052 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14053 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14056 if test -z "$_ver"; then
14057 ## If empty, try date [fontforge]
14058 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14059 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14061 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14068 echo "$ver" | awk -F. '
14070 if ($3) {three = $3}
14073 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14076 echo "" | awk -F. '
14078 if ($3) {three = $3}
14081 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14083 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14084 $as_echo "$ver" >&6; }
14085 if test "$num" -lt "$req"; then
14087 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14090 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14091 eval `echo $vervar=$num`
14092 ## AC_SUBST(`eval echo $vervar`)
14096 if test "$PDFTEX" = "xetex"; then
14097 # For avoiding PDF destination name replacement.
14098 PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
14099 PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
14103 for ac_prog in pdfetex pdftex etex
14105 # Extract the first word of "$ac_prog", so it can be a program name with args.
14106 set dummy $ac_prog; ac_word=$2
14107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14110 $as_echo_n "(cached) " >&6
14112 if test -n "$PDFTEX"; then
14113 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122 ac_cv_prog_PDFTEX="$ac_prog"
14123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14132 PDFTEX=$ac_cv_prog_PDFTEX
14133 if test -n "$PDFTEX"; then
14134 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14135 $as_echo "$PDFTEX" >&6; }
14137 { $as_echo "$as_me:$LINENO: result: no" >&5
14138 $as_echo "no" >&6; }
14142 test -n "$PDFTEX" && break
14144 test -n "$PDFTEX" || PDFTEX="no"
14148 r="`eval echo '$'"PDFTEX"`"
14149 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14152 ##STEPMAKE_WARN(cannot find . )
14156 if test $? -ne 0; then
14158 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
14160 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14161 command="echo ERROR: pdfetex pdftex etex not found"
14162 # abort configure process here?
14164 command="- echo pdfetex pdftex etex not found"
14166 eval "PDFTEX"='$command'
14172 if test $? -eq 0 -a -n ""; then
14174 r="`eval echo '$'"PDFTEX"`"
14175 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14176 $as_echo_n "checking $r version... " >&6; }
14178 ## which doesn't work in ash, if /usr/bin/which isn't installed
14179 ## type -p doesn't work in ash
14180 ## command -v doesn't work in zsh
14181 ## command -v "$r" 2>&1
14182 ## this test should work in ash, bash, pdksh (ksh), zsh
14183 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14185 if test -n ""; then
14189 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14192 ## Workaround for broken Debian gcc version string:
14193 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14195 ## -V: Workaround for python
14199 ## Assume and hunt for dotted version multiplet.
14200 ## use eval trickery, because we cannot use multi-level $() instead of ``
14201 ## for compatibility reasons.
14203 ## grab the first version number in --version output.
14204 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14205 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14208 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14209 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14212 if test -z "$_ver"; then
14213 ## If empty, try date [fontforge]
14214 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14215 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14217 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14224 echo "$ver" | awk -F. '
14226 if ($3) {three = $3}
14229 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14232 echo "" | awk -F. '
14234 if ($3) {three = $3}
14237 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14239 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14240 $as_echo "$ver" >&6; }
14241 if test "$num" -lt "$req"; then
14243 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14246 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14247 eval `echo $vervar=$num`
14248 ## AC_SUBST(`eval echo $vervar`)
14254 for ac_prog in texi2pdf
14256 # Extract the first word of "$ac_prog", so it can be a program name with args.
14257 set dummy $ac_prog; ac_word=$2
14258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
14261 $as_echo_n "(cached) " >&6
14263 if test -n "$TEXI2PDF"; then
14264 ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273 ac_cv_prog_TEXI2PDF="$ac_prog"
14274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 TEXI2PDF=$ac_cv_prog_TEXI2PDF
14284 if test -n "$TEXI2PDF"; then
14285 { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
14286 $as_echo "$TEXI2PDF" >&6; }
14288 { $as_echo "$as_me:$LINENO: result: no" >&5
14289 $as_echo "no" >&6; }
14293 test -n "$TEXI2PDF" && break
14295 test -n "$TEXI2PDF" || TEXI2PDF="no"
14299 r="`eval echo '$'"TEXI2PDF"`"
14300 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
14303 ##STEPMAKE_WARN(cannot find . )
14307 if test $? -ne 0; then
14309 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
14311 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14312 command="echo ERROR: texi2pdf not found"
14313 # abort configure process here?
14315 command="- echo texi2pdf not found"
14317 eval "TEXI2PDF"='$command'
14323 if test $? -eq 0 -a -n ""; then
14325 r="`eval echo '$'"TEXI2PDF"`"
14326 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14327 $as_echo_n "checking $r version... " >&6; }
14329 ## which doesn't work in ash, if /usr/bin/which isn't installed
14330 ## type -p doesn't work in ash
14331 ## command -v doesn't work in zsh
14332 ## command -v "$r" 2>&1
14333 ## this test should work in ash, bash, pdksh (ksh), zsh
14334 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14336 if test -n ""; then
14340 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14343 ## Workaround for broken Debian gcc version string:
14344 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14346 ## -V: Workaround for python
14350 ## Assume and hunt for dotted version multiplet.
14351 ## use eval trickery, because we cannot use multi-level $() instead of ``
14352 ## for compatibility reasons.
14354 ## grab the first version number in --version output.
14355 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14356 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14359 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14360 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14363 if test -z "$_ver"; then
14364 ## If empty, try date [fontforge]
14365 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14366 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14368 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14375 echo "$ver" | awk -F. '
14377 if ($3) {three = $3}
14380 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14383 echo "" | awk -F. '
14385 if ($3) {three = $3}
14388 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14390 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14391 $as_echo "$ver" >&6; }
14392 if test "$num" -lt "$req"; then
14394 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14397 vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
14398 eval `echo $vervar=$num`
14399 ## AC_SUBST(`eval echo $vervar`)
14404 for ac_prog in texindex
14406 # Extract the first word of "$ac_prog", so it can be a program name with args.
14407 set dummy $ac_prog; ac_word=$2
14408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14409 $as_echo_n "checking for $ac_word... " >&6; }
14410 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
14411 $as_echo_n "(cached) " >&6
14413 if test -n "$TEXINDEX"; then
14414 ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417 for as_dir in $PATH
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14423 ac_cv_prog_TEXINDEX="$ac_prog"
14424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14433 TEXINDEX=$ac_cv_prog_TEXINDEX
14434 if test -n "$TEXINDEX"; then
14435 { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
14436 $as_echo "$TEXINDEX" >&6; }
14438 { $as_echo "$as_me:$LINENO: result: no" >&5
14439 $as_echo "no" >&6; }
14443 test -n "$TEXINDEX" && break
14445 test -n "$TEXINDEX" || TEXINDEX="no"
14449 r="`eval echo '$'"TEXINDEX"`"
14450 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
14453 ##STEPMAKE_WARN(cannot find . )
14457 if test $? -ne 0; then
14459 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
14461 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14462 command="echo ERROR: texindex not found"
14463 # abort configure process here?
14465 command="- echo texindex not found"
14467 eval "TEXINDEX"='$command'
14473 if test $? -eq 0 -a -n ""; then
14475 r="`eval echo '$'"TEXINDEX"`"
14476 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14477 $as_echo_n "checking $r version... " >&6; }
14479 ## which doesn't work in ash, if /usr/bin/which isn't installed
14480 ## type -p doesn't work in ash
14481 ## command -v doesn't work in zsh
14482 ## command -v "$r" 2>&1
14483 ## this test should work in ash, bash, pdksh (ksh), zsh
14484 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14486 if test -n ""; then
14490 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14493 ## Workaround for broken Debian gcc version string:
14494 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14496 ## -V: Workaround for python
14500 ## Assume and hunt for dotted version multiplet.
14501 ## use eval trickery, because we cannot use multi-level $() instead of ``
14502 ## for compatibility reasons.
14504 ## grab the first version number in --version output.
14505 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14506 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14509 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14510 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14513 if test -z "$_ver"; then
14514 ## If empty, try date [fontforge]
14515 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14516 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14518 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14525 echo "$ver" | awk -F. '
14527 if ($3) {three = $3}
14530 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14533 echo "" | awk -F. '
14535 if ($3) {three = $3}
14538 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14540 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14541 $as_echo "$ver" >&6; }
14542 if test "$num" -lt "$req"; then
14544 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14547 vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
14548 eval `echo $vervar=$num`
14549 ## AC_SUBST(`eval echo $vervar`)
14553 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
14554 $as_echo_n "checking for epsf.tex... " >&6; }
14555 TEX_EPSF=`kpsewhich tex epsf`
14556 if test "$TEX_EPSF" = ""; then
14557 { $as_echo "$as_me:$LINENO: result: not found" >&5
14558 $as_echo "not found" >&6; }
14560 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
14563 { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
14564 $as_echo "$TEX_EPSF" >&6; }
14566 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
14567 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
14568 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
14569 if test "$TEX_FIKPARM" = ""; then
14570 { $as_echo "$as_me:$LINENO: result: not found" >&5
14571 $as_echo "not found" >&6; }
14573 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
14576 { $as_echo "$as_me:$LINENO: result: yes" >&5
14577 $as_echo "yes" >&6; }
14580 for ac_prog in pngtopnm
14582 # Extract the first word of "$ac_prog", so it can be a program name with args.
14583 set dummy $ac_prog; ac_word=$2
14584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14585 $as_echo_n "checking for $ac_word... " >&6; }
14586 if test "${ac_cv_prog_NETPBM+set}" = set; then
14587 $as_echo_n "(cached) " >&6
14589 if test -n "$NETPBM"; then
14590 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
14592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14593 for as_dir in $PATH
14596 test -z "$as_dir" && as_dir=.
14597 for ac_exec_ext in '' $ac_executable_extensions; do
14598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14599 ac_cv_prog_NETPBM="$ac_prog"
14600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14609 NETPBM=$ac_cv_prog_NETPBM
14610 if test -n "$NETPBM"; then
14611 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
14612 $as_echo "$NETPBM" >&6; }
14614 { $as_echo "$as_me:$LINENO: result: no" >&5
14615 $as_echo "no" >&6; }
14619 test -n "$NETPBM" && break
14621 test -n "$NETPBM" || NETPBM="no"
14625 r="`eval echo '$'"NETPBM"`"
14626 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
14629 ##STEPMAKE_WARN(cannot find . )
14633 if test $? -ne 0; then
14635 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
14637 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14638 command="echo ERROR: pngtopnm not found"
14639 # abort configure process here?
14641 command="- echo pngtopnm not found"
14643 eval "NETPBM"='$command'
14649 if test $? -eq 0 -a -n ""; then
14651 r="`eval echo '$'"NETPBM"`"
14652 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14653 $as_echo_n "checking $r version... " >&6; }
14655 ## which doesn't work in ash, if /usr/bin/which isn't installed
14656 ## type -p doesn't work in ash
14657 ## command -v doesn't work in zsh
14658 ## command -v "$r" 2>&1
14659 ## this test should work in ash, bash, pdksh (ksh), zsh
14660 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14662 if test -n ""; then
14666 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14669 ## Workaround for broken Debian gcc version string:
14670 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14672 ## -V: Workaround for python
14676 ## Assume and hunt for dotted version multiplet.
14677 ## use eval trickery, because we cannot use multi-level $() instead of ``
14678 ## for compatibility reasons.
14680 ## grab the first version number in --version output.
14681 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14682 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14685 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14686 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14689 if test -z "$_ver"; then
14690 ## If empty, try date [fontforge]
14691 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14692 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14694 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14701 echo "$ver" | awk -F. '
14703 if ($3) {three = $3}
14706 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14709 echo "" | awk -F. '
14711 if ($3) {three = $3}
14714 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14716 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14717 $as_echo "$ver" >&6; }
14718 if test "$num" -lt "$req"; then
14720 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14723 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
14724 eval `echo $vervar=$num`
14725 ## AC_SUBST(`eval echo $vervar`)
14730 for ac_prog in convert
14732 # Extract the first word of "$ac_prog", so it can be a program name with args.
14733 set dummy $ac_prog; ac_word=$2
14734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14735 $as_echo_n "checking for $ac_word... " >&6; }
14736 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
14737 $as_echo_n "(cached) " >&6
14739 if test -n "$IMAGEMAGICK"; then
14740 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14749 ac_cv_prog_IMAGEMAGICK="$ac_prog"
14750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14759 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
14760 if test -n "$IMAGEMAGICK"; then
14761 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
14762 $as_echo "$IMAGEMAGICK" >&6; }
14764 { $as_echo "$as_me:$LINENO: result: no" >&5
14765 $as_echo "no" >&6; }
14769 test -n "$IMAGEMAGICK" && break
14771 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
14775 r="`eval echo '$'"IMAGEMAGICK"`"
14776 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
14779 ##STEPMAKE_WARN(cannot find . )
14783 if test $? -ne 0; then
14785 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
14787 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14788 command="echo ERROR: convert not found"
14789 # abort configure process here?
14791 command="- echo convert not found"
14793 eval "IMAGEMAGICK"='$command'
14799 if test $? -eq 0 -a -n ""; then
14801 r="`eval echo '$'"IMAGEMAGICK"`"
14802 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14803 $as_echo_n "checking $r version... " >&6; }
14805 ## which doesn't work in ash, if /usr/bin/which isn't installed
14806 ## type -p doesn't work in ash
14807 ## command -v doesn't work in zsh
14808 ## command -v "$r" 2>&1
14809 ## this test should work in ash, bash, pdksh (ksh), zsh
14810 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14812 if test -n ""; then
14816 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14819 ## Workaround for broken Debian gcc version string:
14820 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14822 ## -V: Workaround for python
14826 ## Assume and hunt for dotted version multiplet.
14827 ## use eval trickery, because we cannot use multi-level $() instead of ``
14828 ## for compatibility reasons.
14830 ## grab the first version number in --version output.
14831 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14832 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14835 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14836 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14839 if test -z "$_ver"; then
14840 ## If empty, try date [fontforge]
14841 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14842 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14844 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14851 echo "$ver" | awk -F. '
14853 if ($3) {three = $3}
14856 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14859 echo "" | awk -F. '
14861 if ($3) {three = $3}
14864 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14866 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14867 $as_echo "$ver" >&6; }
14868 if test "$num" -lt "$req"; then
14870 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14873 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
14874 eval `echo $vervar=$num`
14875 ## AC_SUBST(`eval echo $vervar`)
14879 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
14883 # Extract the first word of "$ac_prog", so it can be a program name with args.
14884 set dummy $ac_prog; ac_word=$2
14885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14886 $as_echo_n "checking for $ac_word... " >&6; }
14887 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
14888 $as_echo_n "(cached) " >&6
14890 if test -n "$ZIPDOC"; then
14891 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
14893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894 for as_dir in $PATH
14897 test -z "$as_dir" && as_dir=.
14898 for ac_exec_ext in '' $ac_executable_extensions; do
14899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14900 ac_cv_prog_ZIPDOC="$ac_prog"
14901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14910 ZIPDOC=$ac_cv_prog_ZIPDOC
14911 if test -n "$ZIPDOC"; then
14912 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
14913 $as_echo "$ZIPDOC" >&6; }
14915 { $as_echo "$as_me:$LINENO: result: no" >&5
14916 $as_echo "no" >&6; }
14920 test -n "$ZIPDOC" && break
14922 test -n "$ZIPDOC" || ZIPDOC="no"
14926 r="`eval echo '$'"ZIPDOC"`"
14927 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
14930 ##STEPMAKE_WARN(cannot find . )
14934 if test $? -ne 0; then
14936 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
14938 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14939 command="echo ERROR: zip not found"
14940 # abort configure process here?
14942 command="- echo zip not found"
14944 eval "ZIPDOC"='$command'
14950 if test $? -eq 0 -a -n ""; then
14952 r="`eval echo '$'"ZIPDOC"`"
14953 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14954 $as_echo_n "checking $r version... " >&6; }
14956 ## which doesn't work in ash, if /usr/bin/which isn't installed
14957 ## type -p doesn't work in ash
14958 ## command -v doesn't work in zsh
14959 ## command -v "$r" 2>&1
14960 ## this test should work in ash, bash, pdksh (ksh), zsh
14961 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14963 if test -n ""; then
14967 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14970 ## Workaround for broken Debian gcc version string:
14971 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14973 ## -V: Workaround for python
14977 ## Assume and hunt for dotted version multiplet.
14978 ## use eval trickery, because we cannot use multi-level $() instead of ``
14979 ## for compatibility reasons.
14981 ## grab the first version number in --version output.
14982 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14983 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14986 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14987 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14990 if test -z "$_ver"; then
14991 ## If empty, try date [fontforge]
14992 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14993 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14995 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15002 echo "$ver" | awk -F. '
15004 if ($3) {three = $3}
15007 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15010 echo "" | awk -F. '
15012 if ($3) {three = $3}
15015 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15017 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15018 $as_echo "$ver" >&6; }
15019 if test "$num" -lt "$req"; then
15021 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15024 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
15025 eval `echo $vervar=$num`
15026 ## AC_SUBST(`eval echo $vervar`)
15031 for ac_prog in rsync
15033 # Extract the first word of "$ac_prog", so it can be a program name with args.
15034 set dummy $ac_prog; ac_word=$2
15035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15036 $as_echo_n "checking for $ac_word... " >&6; }
15037 if test "${ac_cv_prog_RSYNC+set}" = set; then
15038 $as_echo_n "(cached) " >&6
15040 if test -n "$RSYNC"; then
15041 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
15043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044 for as_dir in $PATH
15047 test -z "$as_dir" && as_dir=.
15048 for ac_exec_ext in '' $ac_executable_extensions; do
15049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15050 ac_cv_prog_RSYNC="$ac_prog"
15051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15060 RSYNC=$ac_cv_prog_RSYNC
15061 if test -n "$RSYNC"; then
15062 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
15063 $as_echo "$RSYNC" >&6; }
15065 { $as_echo "$as_me:$LINENO: result: no" >&5
15066 $as_echo "no" >&6; }
15070 test -n "$RSYNC" && break
15072 test -n "$RSYNC" || RSYNC="no"
15076 r="`eval echo '$'"RSYNC"`"
15077 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
15080 ##STEPMAKE_WARN(cannot find . )
15084 if test $? -ne 0; then
15086 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
15088 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15089 command="echo ERROR: rsync not found"
15090 # abort configure process here?
15092 command="- echo rsync not found"
15094 eval "RSYNC"='$command'
15100 if test $? -eq 0 -a -n ""; then
15102 r="`eval echo '$'"RSYNC"`"
15103 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15104 $as_echo_n "checking $r version... " >&6; }
15106 ## which doesn't work in ash, if /usr/bin/which isn't installed
15107 ## type -p doesn't work in ash
15108 ## command -v doesn't work in zsh
15109 ## command -v "$r" 2>&1
15110 ## this test should work in ash, bash, pdksh (ksh), zsh
15111 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15113 if test -n ""; then
15117 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15120 ## Workaround for broken Debian gcc version string:
15121 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15123 ## -V: Workaround for python
15127 ## Assume and hunt for dotted version multiplet.
15128 ## use eval trickery, because we cannot use multi-level $() instead of ``
15129 ## for compatibility reasons.
15131 ## grab the first version number in --version output.
15132 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15133 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15136 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15137 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15140 if test -z "$_ver"; then
15141 ## If empty, try date [fontforge]
15142 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15143 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15145 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15152 echo "$ver" | awk -F. '
15154 if ($3) {three = $3}
15157 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15160 echo "" | awk -F. '
15162 if ($3) {three = $3}
15165 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15167 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15168 $as_echo "$ver" >&6; }
15169 if test "$num" -lt "$req"; then
15171 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15174 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
15175 eval `echo $vervar=$num`
15176 ## AC_SUBST(`eval echo $vervar`)
15181 cat >>confdefs.h <<_ACEOF
15182 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
15186 # must also have local.make if configure fails.
15189 if test "$reloc_b$rpath_b" = "yesno"; then
15191 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
15192 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
15197 # Gather requirements and generate output.
15200 # undo expanding of explicit --infodir=/usr/share
15201 # to ease install-time override with prefix=...
15202 strip=`echo $includedir | eval sed s@^$prefix@@`
15203 if test "$includedir" = "`eval echo $prefix$strip`"; then
15204 includedir='${prefix}'$strip''
15206 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
15207 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
15208 libdir='${exec_prefix}'$strip''
15210 strip=`echo $infodir | eval sed s@^$datarootdir@@`
15211 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
15212 infodir='${datarootdir}'$strip''
15214 strip=`echo $mandir | eval sed s@^$datarootdir@@`
15215 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
15216 mandir='${datarootdir}'$strip''
15223 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
15225 cat >confcache <<\_ACEOF
15226 # This file is a shell script that caches the results of configure
15227 # tests run on this system so they can be shared between configure
15228 # scripts and configure runs, see configure's option --config-cache.
15229 # It is not useful on other systems. If it contains results you don't
15230 # want to keep, you may remove or edit it.
15232 # config.status only pays attention to the cache file if you give it
15233 # the --recheck option to rerun configure.
15235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15237 # following values.
15241 # The following way of writing the cache mishandles newlines in values,
15242 # but we know of no workaround that is simple, portable, and efficient.
15243 # So, we kill variables containing newlines.
15244 # Ultrix sh set writes to stderr and can't be redirected directly,
15245 # and sets the high bit in the cache file unless we assign to the vars.
15247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15248 eval ac_val=\$$ac_var
15252 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15256 _ | IFS | as_nl) ;; #(
15257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15258 *) $as_unset $ac_var ;;
15264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15265 *${as_nl}ac_space=\ *)
15266 # `set' does not quote correctly, so add quotes (double-quote
15267 # substitution turns \\\\ into \\, and sed turns \\ into \).
15270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15273 # `set' quotes correctly as required by POSIX, so do not add quotes.
15274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15288 if test -w "$cache_file"; then
15289 test "x$cache_file" != "x/dev/null" &&
15290 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15291 $as_echo "$as_me: updating cache $cache_file" >&6;}
15292 cat confcache >$cache_file
15294 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15301 # Let make expand exec_prefix.
15302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15304 DEFS=-DHAVE_CONFIG_H
15308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15309 # 1. Remove the extension, and $U if already installed.
15310 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15311 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15312 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15313 # will be set to the directory where LIBOBJS objects are built.
15314 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15315 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15317 LIBOBJS=$ac_libobjs
15319 LTLIBOBJS=$ac_ltlibobjs
15323 : ${CONFIG_STATUS=./config.status}
15325 ac_clean_files_save=$ac_clean_files
15326 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15327 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15328 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15329 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331 # Generated by $as_me.
15332 # Run this file to recreate the current configuration.
15333 # Compiler output produced by configure, useful for debugging
15334 # configure, is in config.log if it exists.
15337 ac_cs_recheck=false
15339 SHELL=\${CONFIG_SHELL-$SHELL}
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 ## --------------------- ##
15344 ## M4sh Initialization. ##
15345 ## --------------------- ##
15347 # Be more Bourne compatible
15348 DUALCASE=1; export DUALCASE # for MKS sh
15349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15353 # is contrary to our usage. Disable this feature.
15354 alias -g '${1+"$@"}'='"$@"'
15355 setopt NO_GLOB_SUBST
15357 case `(set -o) 2>/dev/null` in
15358 *posix*) set -o posix ;;
15367 # Avoid depending upon Character Ranges.
15368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15371 as_cr_digits='0123456789'
15372 as_cr_alnum=$as_cr_Letters$as_cr_digits
15377 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15378 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15380 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15381 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15382 as_echo='printf %s\n'
15383 as_echo_n='printf %s'
15385 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15386 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15387 as_echo_n='/usr/ucb/echo -n'
15389 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15390 as_echo_n_body='eval
15394 expr "X$arg" : "X\\(.*\\)$as_nl";
15395 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15397 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15399 export as_echo_n_body
15400 as_echo_n='sh -c $as_echo_n_body as_echo'
15402 export as_echo_body
15403 as_echo='sh -c $as_echo_body as_echo'
15406 # The user is always right.
15407 if test "${PATH_SEPARATOR+set}" != set; then
15409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15415 # Support unset when possible.
15416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15424 # We need space, tab and new line, in precisely that order. Quoting is
15425 # there to prevent editors from complaining about space-tab.
15426 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15427 # splitting by setting IFS to empty value.)
15430 # Find who we are. Look in the path if we contain no directory separator.
15432 *[\\/]* ) as_myself=$0 ;;
15433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15434 for as_dir in $PATH
15437 test -z "$as_dir" && as_dir=.
15438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15444 # We did not find ourselves, most probably we were run as `sh COMMAND'
15445 # in which case we are not to be found in the path.
15446 if test "x$as_myself" = x; then
15449 if test ! -f "$as_myself"; then
15450 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15451 { (exit 1); exit 1; }
15454 # Work around bugs in pre-3.0 UWIN ksh.
15455 for as_var in ENV MAIL MAILPATH
15456 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15468 # Required to use basename.
15469 if expr a : '\(a\)' >/dev/null 2>&1 &&
15470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15477 as_basename=basename
15483 # Name of the executable.
15484 as_me=`$as_basename -- "$0" ||
15485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15486 X"$0" : 'X\(//\)$' \| \
15487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15489 sed '/^.*\/\([^/][^/]*\)\/*$/{
15508 as_lineno_1=$LINENO
15509 as_lineno_2=$LINENO
15510 test "x$as_lineno_1" != "x$as_lineno_2" &&
15511 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15513 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15514 # uniformly replaced by the line number. The first 'sed' inserts a
15515 # line-number line after each line using $LINENO; the second 'sed'
15516 # does the real work. The second script uses 'N' to pair each
15517 # line-number line with the line containing $LINENO, and appends
15518 # trailing '-' during substitution so that $LINENO is not a special
15519 # case at line end.
15520 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15521 # scripts with optimization help from Paolo Bonzini. Blame Lee
15522 # E. McMahon (1931-1989) for sed's syntax. :-)
15534 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15537 ' >$as_me.lineno &&
15538 chmod +x "$as_me.lineno" ||
15539 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15540 { (exit 1); exit 1; }; }
15542 # Don't try to exec as it changes $[0], causing all sort of problems
15543 # (the dirname of $[0] is not the place where we might find the
15544 # original and so on. Autoconf is especially sensitive to this).
15545 . "./$as_me.lineno"
15546 # Exit status is that of the last command.
15551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15557 ECHO_C= ECHO_N= ECHO_T=
15558 case `echo -n x` in
15560 case `echo 'x\c'` in
15561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15567 if expr a : '\(a\)' >/dev/null 2>&1 &&
15568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15574 rm -f conf$$ conf$$.exe conf$$.file
15575 if test -d conf$$.dir; then
15576 rm -f conf$$.dir/conf$$.file
15579 mkdir conf$$.dir 2>/dev/null
15581 if (echo >conf$$.file) 2>/dev/null; then
15582 if ln -s conf$$.file conf$$ 2>/dev/null; then
15584 # ... but there are two gotchas:
15585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15587 # In both cases, we have to default to `cp -p'.
15588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15590 elif ln conf$$.file conf$$ 2>/dev/null; then
15598 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15599 rmdir conf$$.dir 2>/dev/null
15601 if mkdir -p . 2>/dev/null; then
15604 test -d ./-p && rmdir ./-p
15608 if test -x / >/dev/null 2>&1; then
15609 as_test_x='test -x'
15611 if ls -dL / >/dev/null 2>&1; then
15618 if test -d "$1"; then
15624 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15625 ???[sx]*):;;*)false;;esac;fi
15629 as_executable_p=$as_test_x
15631 # Sed expression to map a string onto a valid CPP name.
15632 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15634 # Sed expression to map a string onto a valid variable name.
15635 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15640 # Save the log message, to keep $[0] and so on meaningful, and to
15641 # report actual input values of CONFIG_FILES etc. instead of their
15642 # values after options handling.
15644 This file was extended by $as_me, which was
15645 generated by GNU Autoconf 2.63. Invocation command line was
15647 CONFIG_FILES = $CONFIG_FILES
15648 CONFIG_HEADERS = $CONFIG_HEADERS
15649 CONFIG_LINKS = $CONFIG_LINKS
15650 CONFIG_COMMANDS = $CONFIG_COMMANDS
15653 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15658 case $ac_config_files in *"
15659 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15662 case $ac_config_headers in *"
15663 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15668 # Files that config.status was made for.
15669 config_files="$ac_config_files"
15670 config_headers="$ac_config_headers"
15674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15676 \`$as_me' instantiates files from templates according to the
15677 current configuration.
15679 Usage: $0 [OPTION]... [FILE]...
15681 -h, --help print this help, then exit
15682 -V, --version print version number and configuration settings, then exit
15683 -q, --quiet, --silent
15684 do not print progress messages
15685 -d, --debug don't remove temporary files
15686 --recheck update $as_me by reconfiguring in the same conditions
15687 --file=FILE[:TEMPLATE]
15688 instantiate the configuration file FILE
15689 --header=FILE[:TEMPLATE]
15690 instantiate the configuration header FILE
15692 Configuration files:
15695 Configuration headers:
15698 Report bugs to <bug-autoconf@gnu.org>."
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15704 configured by $0, generated by GNU Autoconf 2.63,
15705 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15707 Copyright (C) 2008 Free Software Foundation, Inc.
15708 This config.status script is free software; the Free Software Foundation
15709 gives unlimited permission to copy, distribute and modify it."
15713 test -n "\$AWK" || AWK=awk
15716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15717 # The default lists apply if the user does not specify any file.
15723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15735 # Handling of the options.
15736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15739 $as_echo "$ac_cs_version"; exit ;;
15740 --debug | --debu | --deb | --de | --d | -d )
15742 --file | --fil | --fi | --f )
15745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15747 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15748 ac_need_defaults=false;;
15749 --header | --heade | --head | --hea )
15752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15754 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15755 ac_need_defaults=false;;
15757 # Conflict between --help and --header
15758 { $as_echo "$as_me: error: ambiguous option: $1
15759 Try \`$0 --help' for more information." >&2
15760 { (exit 1); exit 1; }; };;
15761 --help | --hel | -h )
15762 $as_echo "$ac_cs_usage"; exit ;;
15763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15767 # This is an error.
15768 -*) { $as_echo "$as_me: error: unrecognized option: $1
15769 Try \`$0 --help' for more information." >&2
15770 { (exit 1); exit 1; }; } ;;
15772 *) ac_config_targets="$ac_config_targets $1"
15773 ac_need_defaults=false ;;
15779 ac_configure_extra_args=
15781 if $ac_cs_silent; then
15783 ac_configure_extra_args="$ac_configure_extra_args --silent"
15787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15788 if \$ac_cs_recheck; then
15789 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15791 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15792 CONFIG_SHELL='$SHELL'
15793 export CONFIG_SHELL
15798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15802 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15803 ## Running $as_me. ##
15809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15814 # Handling of arguments.
15815 for ac_config_target in $ac_config_targets
15817 case $ac_config_target in
15818 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
15819 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
15821 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15822 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15823 { (exit 1); exit 1; }; };;
15828 # If the user did not use the arguments to specify the items to instantiate,
15829 # then the envvar interface is used. Set only those that are not.
15830 # We use the long form for the default assignment because of an extremely
15831 # bizarre bug on SunOS 4.1.3.
15832 if $ac_need_defaults; then
15833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15837 # Have a temporary directory for convenience. Make it in the build tree
15838 # simply because there is no reason against having it here, and in addition,
15839 # creating and moving files from /tmp can sometimes cause problems.
15840 # Hook for its removal unless debugging.
15841 # Note that there is a small window in which the directory will not be cleaned:
15842 # after its creation but before its name has been assigned to `$tmp'.
15846 trap 'exit_status=$?
15847 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15849 trap '{ (exit 1); exit 1; }' 1 2 13 15
15851 # Create a (secure) tmp directory for tmp files.
15854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15855 test -n "$tmp" && test -d "$tmp"
15858 tmp=./conf$$-$RANDOM
15859 (umask 077 && mkdir "$tmp")
15862 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15863 { (exit 1); exit 1; }
15866 # Set up the scripts for CONFIG_FILES section.
15867 # No need to generate them if there are no CONFIG_FILES.
15868 # This happens for instance with `./config.status config.h'.
15869 if test -n "$CONFIG_FILES"; then
15873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15877 ac_cs_awk_cr=$ac_cr
15880 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15885 echo "cat >conf$$subs.awk <<_ACEOF" &&
15886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15888 } >conf$$subs.sh ||
15889 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15890 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15891 { (exit 1); exit 1; }; }
15892 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15894 for ac_last_try in false false false false false :; do
15895 . ./conf$$subs.sh ||
15896 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15897 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15898 { (exit 1); exit 1; }; }
15900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15901 if test $ac_delim_n = $ac_delim_num; then
15903 elif $ac_last_try; then
15904 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15905 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15906 { (exit 1); exit 1; }; }
15908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15911 rm -f conf$$subs.sh
15913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15914 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15918 s/^/S["/; s/!.*/"]=/
15928 s/\(.\{148\}\).*/\1/
15930 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15942 s/\(.\{148\}\).*/\1/
15944 s/["\\]/\\&/g; s/^/"/; s/$/"/
15948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15953 ' <conf$$subs.awk | sed '
15958 ' >>$CONFIG_STATUS || ac_write_fail=1
15959 rm -f conf$$subs.awk
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15963 for (key in S) S_is_set[key] = 1
15969 nfields = split(line, field, "@")
15971 len = length(field[1])
15972 for (i = 2; i < nfields; i++) {
15974 keylen = length(key)
15975 if (S_is_set[key]) {
15977 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15978 len += length(value) + length(field[++i])
15989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15990 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15991 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15994 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15995 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15996 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15997 { (exit 1); exit 1; }; }
16000 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16001 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16002 # trailing colons and then remove the whole line if VPATH becomes empty
16003 # (actually we leave an empty line to preserve line numbers).
16004 if test "x$srcdir" = x.; then
16005 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16006 s/:*\$(srcdir):*/:/
16007 s/:*\${srcdir}:*/:/
16009 s/^\([^=]*=[ ]*\):*/\1/
16015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16016 fi # test -n "$CONFIG_FILES"
16018 # Set up the scripts for CONFIG_HEADERS section.
16019 # No need to generate them if there are no CONFIG_HEADERS.
16020 # This happens for instance with `./config.status Makefile'.
16021 if test -n "$CONFIG_HEADERS"; then
16022 cat >"$tmp/defines.awk" <<\_ACAWK ||
16026 # Transform confdefs.h into an awk script `defines.awk', embedded as
16027 # here-document in config.status, that substitutes the proper values into
16028 # config.h.in to produce config.h.
16030 # Create a delimiter string that does not exist in confdefs.h, to ease
16031 # handling of long lines.
16033 for ac_last_try in false false :; do
16034 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16035 if test -z "$ac_t"; then
16037 elif $ac_last_try; then
16038 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16039 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16040 { (exit 1); exit 1; }; }
16042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16046 # For the awk script, D is an array of macro values keyed by name,
16047 # likewise P contains macro parameters if any. Preserve backslash
16048 # newline sequences.
16050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16052 s/.\{148\}/&'"$ac_delim"'/g
16055 s/^[ ]*#[ ]*define[ ][ ]*/ /
16062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16069 D["\1"]=" \3\\\\\\n"\\/p
16071 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16076 s/.\{148\}/&'"$ac_delim"'/g
16081 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16084 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16086 ' <confdefs.h | sed '
16087 s/'"$ac_delim"'/"\\\
16088 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16091 for (key in D) D_is_set[key] = 1
16094 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16096 split(line, arg, " ")
16097 if (arg[1] == "#") {
16101 defundef = substr(arg[1], 2)
16104 split(mac1, mac2, "(") #)
16106 prefix = substr(line, 1, index(line, defundef) - 1)
16107 if (D_is_set[macro]) {
16108 # Preserve the white space surrounding the "#".
16109 print prefix "define", macro P[macro] D[macro]
16112 # Replace #undef with comments. This is necessary, for example,
16113 # in the case of _POSIX_SOURCE, which is predefined and required
16114 # on some systems where configure will not decide to define it.
16115 if (defundef == "undef") {
16116 print "/*", prefix defundef, macro, "*/"
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16126 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16127 { (exit 1); exit 1; }; }
16128 fi # test -n "$CONFIG_HEADERS"
16131 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16136 :[FHLC]) ac_mode=$ac_tag; continue;;
16138 case $ac_mode$ac_tag in
16140 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16141 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16142 { (exit 1); exit 1; }; };;
16143 :[FH]-) ac_tag=-:-;;
16144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16161 -) ac_f="$tmp/stdin";;
16162 *) # Look for the file first in the build tree, then in the source tree
16163 # (if the path is not absolute). The absolute path cannot be DOS-style,
16164 # because $ac_f cannot contain `:'.
16168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16170 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16171 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16172 { (exit 1); exit 1; }; };;
16174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16175 ac_file_inputs="$ac_file_inputs '$ac_f'"
16178 # Let's still pretend it is `configure' which instantiates (i.e., don't
16179 # use $as_me), people would be surprised to read:
16180 # /* config.h. Generated by config.status. */
16181 configure_input='Generated from '`
16182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16184 if test x"$ac_file" != x-; then
16185 configure_input="$ac_file. $configure_input"
16186 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16187 $as_echo "$as_me: creating $ac_file" >&6;}
16189 # Neutralize special characters interpreted by sed in replacement strings.
16190 case $configure_input in #(
16191 *\&* | *\|* | *\\* )
16192 ac_sed_conf_input=`$as_echo "$configure_input" |
16193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16194 *) ac_sed_conf_input=$configure_input;;
16198 *:-:* | *:-) cat >"$tmp/stdin" \
16199 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16200 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16201 { (exit 1); exit 1; }; } ;;
16206 ac_dir=`$as_dirname -- "$ac_file" ||
16207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208 X"$ac_file" : 'X\(//\)[^/]' \| \
16209 X"$ac_file" : 'X\(//\)$' \| \
16210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16211 $as_echo X"$ac_file" |
16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16216 /^X\(\/\/\)[^/].*/{
16231 -*) as_dir=./$as_dir;;
16233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16237 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16238 *) as_qdir=$as_dir;;
16240 as_dirs="'$as_qdir' $as_dirs"
16241 as_dir=`$as_dirname -- "$as_dir" ||
16242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16243 X"$as_dir" : 'X\(//\)[^/]' \| \
16244 X"$as_dir" : 'X\(//\)$' \| \
16245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16246 $as_echo X"$as_dir" |
16247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16251 /^X\(\/\/\)[^/].*/{
16264 test -d "$as_dir" && break
16266 test -z "$as_dirs" || eval "mkdir $as_dirs"
16267 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16268 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16269 { (exit 1); exit 1; }; }; }
16273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16275 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16276 # A ".." for each directory in $ac_dir_suffix.
16277 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16278 case $ac_top_builddir_sub in
16279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16283 ac_abs_top_builddir=$ac_pwd
16284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16285 # for backward compatibility:
16286 ac_top_builddir=$ac_top_build_prefix
16289 .) # We are building in place.
16291 ac_top_srcdir=$ac_top_builddir_sub
16292 ac_abs_top_srcdir=$ac_pwd ;;
16293 [\\/]* | ?:[\\/]* ) # Absolute name.
16294 ac_srcdir=$srcdir$ac_dir_suffix;
16295 ac_top_srcdir=$srcdir
16296 ac_abs_top_srcdir=$srcdir ;;
16297 *) # Relative name.
16298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16299 ac_top_srcdir=$ac_top_build_prefix$srcdir
16300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16314 # If the template does not know about datarootdir, expand it.
16315 # FIXME: This hack should be removed a few years after 2.60.
16316 ac_datarootdir_hack=; ac_datarootdir_seen=
16329 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16330 *datarootdir*) ac_datarootdir_seen=yes;;
16331 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16332 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16333 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336 ac_datarootdir_hack='
16337 s&@datadir@&$datadir&g
16338 s&@docdir@&$docdir&g
16339 s&@infodir@&$infodir&g
16340 s&@localedir@&$localedir&g
16341 s&@mandir@&$mandir&g
16342 s&\\\${datarootdir}&$datarootdir&g' ;;
16346 # Neutralize VPATH when `$srcdir' = `.'.
16347 # Shell code in configure.ac might set extrasub.
16348 # FIXME: do we really want to maintain this feature?
16349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16350 ac_sed_extra="$ac_vpsub
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16356 s|@configure_input@|$ac_sed_conf_input|;t t
16357 s&@top_builddir@&$ac_top_builddir_sub&;t t
16358 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16359 s&@srcdir@&$ac_srcdir&;t t
16360 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16361 s&@top_srcdir@&$ac_top_srcdir&;t t
16362 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16363 s&@builddir@&$ac_builddir&;t t
16364 s&@abs_builddir@&$ac_abs_builddir&;t t
16365 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16366 $ac_datarootdir_hack
16368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16369 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16370 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16371 { (exit 1); exit 1; }; }
16373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16374 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16377 which seems to be undefined. Please make sure it is defined." >&5
16378 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16379 which seems to be undefined. Please make sure it is defined." >&2;}
16383 -) cat "$tmp/out" && rm -f "$tmp/out";;
16384 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16386 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16387 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16388 { (exit 1); exit 1; }; }
16394 if test x"$ac_file" != x-; then
16396 $as_echo "/* $configure_input */" \
16397 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16398 } >"$tmp/config.h" \
16399 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16400 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16401 { (exit 1); exit 1; }; }
16402 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16403 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16407 mv "$tmp/config.h" "$ac_file" \
16408 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16409 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16410 { (exit 1); exit 1; }; }
16413 $as_echo "/* $configure_input */" \
16414 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16415 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16416 $as_echo "$as_me: error: could not create -" >&2;}
16417 { (exit 1); exit 1; }; }
16427 { (exit 0); exit 0; }
16429 chmod +x $CONFIG_STATUS
16430 ac_clean_files=$ac_clean_files_save
16432 test $ac_write_fail = 0 ||
16433 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16434 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16435 { (exit 1); exit 1; }; }
16438 # configure is writing to config.log, and then calls config.status.
16439 # config.status does its own redirection, appending to config.log.
16440 # Unfortunately, on DOS this fails, as config.log is still kept open
16441 # by configure, so config.status won't be able to write to it; its
16442 # output is simply discarded. So we exec the FD to /dev/null,
16443 # effectively closing config.log, so it can be properly (re)opened and
16444 # appended to by config.status. When coming back to configure, we
16445 # need to make the FD available again.
16446 if test "$no_create" != yes; then
16448 ac_config_status_args=
16449 test "$silent" = yes &&
16450 ac_config_status_args="$ac_config_status_args --quiet"
16452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16455 # would make configure fail if this is the last instruction.
16456 $ac_cs_success || { (exit 1); exit 1; }
16458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16459 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16464 if test -n "$OPTIONAL"; then
16466 echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
16469 if test -n "$REQUIRED"; then
16471 echo "ERROR: Please install required programs: $REQUIRED"
16474 if test -n "$UNSUPPORTED"; then
16476 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
16479 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
16481 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
16482 if test -f config.cache ; then
16483 echo "Remove config.cache before rerunning ./configure"
16487 if test -n "$REQUIRED$UNSUPPORTED"; then
16488 rm -f $srcdir/GNUmakefile
16492 # regular in-place build
16493 # test for srcdir_build = yes ?
16494 if test "$srcdir_build" = "yes"; then
16495 rm -f $srcdir/GNUmakefile
16496 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
16497 chmod 444 $srcdir/GNUmakefile
16499 if test -f $srcdir/GNUmakefile; then
16501 Source directory already configured. Please clean the source directory
16503 make -C $srcdir distclean
16505 and rerun configure.
16510 abssrcdir="`cd $srcdir; pwd`"
16511 absbuilddir="`pwd`"
16512 for d in 2 3 4 5 ; do
16513 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
16514 case "$abssrcdir" in
16516 # source is below build directory, always copy
16519 case "$abssrcdir/${mf#./}" in
16521 # find descended into build directory, don't copy
16526 cat <<EOF | $PYTHON - > $mf
16527 print 'depth=' + ('../' * ( $d-1 ) )
16528 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16529 print 'include \$(configure-srcdir)/$mf'
16530 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
16533 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
16534 case "$abssrcdir" in
16536 # source is below build directory, always copy
16539 case "$abssrcdir/${mf#./}" in
16541 # find descended into build directory, don't copy
16546 cat <<EOF | $PYTHON - > $mf
16547 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16548 print 'include \$(configure-srcdir)/$mf'
16554 cat <<EOF > GNUmakefile
16556 include config\$(if \$(conf),-\$(conf),).make
16557 include \$(configure-srcdir)/GNUmakefile.in
16559 chmod 444 GNUmakefile
16564 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
16566 if make top-doc 1>/dev/null 2>&1; then
16567 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
16568 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
16574 make$mc all to build LilyPond
16575 make$mc install to install LilyPond
16576 make$mc help to see all possible targets
16578 Edit local.make for local Makefile overrides.