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>
712 build_package_datadir
748 ugh_ugh_autoconf250_builddir
776 program_transform_name
788 enable_option_checking
806 ac_precious_vars='build_alias
822 # Initialize some variables set by options.
824 ac_init_version=false
825 ac_unrecognized_opts=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
929 { (exit 1); exit 1; }; }
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
956 { (exit 1); exit 1; }; }
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
981 -help | --help | --hel | --he | -h)
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1130 -site=* | --site=* | --sit=*)
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1171 eval with_$ac_useropt=\$ac_optarg ;;
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1209 Try \`$0 --help' for more information." >&2
1210 { (exit 1); exit 1; }; }
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1217 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1218 { (exit 1); exit 1; }; }
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1236 { (exit 1); exit 1; }; }
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1242 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1243 { (exit 1); exit 1; }; } ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 # Check all directory arguments for consistency.
1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1254 eval ac_val=\$$ac_var
1255 # Remove trailing slashes.
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1261 # Be sure to have absolute directory names.
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 if test -n "$ac_init_help"; then
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1444 do `make conf=CONF' to get output in ./out-CONF
1445 --enable-documentation build Documentation. Default: on
1446 --enable-guile2 highly experimental GUILE 2 support. Default: off
1447 --enable-relocation compile with dynamic relocation. Default: off
1448 --enable-rpath hardcode runtime library path. Default: off
1449 --enable-static-gxx link libstdc++.a statically. Default: off
1450 --enable-debugging compile with debugging info. Default: on
1451 --enable-checking compile with expensive run-time checks. Default: off
1452 --enable-optimising compile with optimising. Default: on
1453 --enable-profiling compile with gprof support. Default: off
1454 --enable-pipe compile with -pipe. Default: on
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-texgyre-dir=DIR location of TeX Gyre fonts.
1460 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1461 --with-lang=LANG use LANG as language to emit messages
1462 --with-python-include=DIR
1463 location of the python include dir
1464 --with-python-lib=NAME name of the python lib
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1476 CXXCPP C++ preprocessor
1477 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1478 the first program found out of: `bison -y', `byacc', `yacc'.
1479 YFLAGS The list of arguments that will be passed by default to $YACC.
1480 This script will default YFLAGS to the empty string to avoid a
1481 default value of `-d' given by some make applications.
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1549 generated by GNU Autoconf 2.63
1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1552 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.63. Invocation command line was
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 $as_echo "PATH: $as_dir"
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_must_keep_next=false
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1634 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640 if test $ac_must_keep_next = true; then
1641 ac_must_keep_next=false # Got value, back to normal.
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 -* ) ac_must_keep_next=true ;;
1655 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log. We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1679 # The following way of writing the cache mishandles newlines in values,
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1686 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1687 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1690 _ | IFS | as_nl) ;; #(
1691 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1692 *) $as_unset $ac_var ;;
1697 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698 *${as_nl}ac_space=\ *)
1700 "s/'\''/'\''\\\\'\'''\''/g;
1701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1717 for ac_var in $ac_subst_vars
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 $as_echo "$ac_var='\''$ac_val'\''"
1727 if test -n "$ac_subst_files"; then
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1734 for ac_var in $ac_subst_files
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 $as_echo "$ac_var='\''$ac_val'\''"
1745 if test -s confdefs.h; then
1755 test "$ac_signal" != 0 &&
1756 $as_echo "$as_me: caught signal $ac_signal"
1757 $as_echo "$as_me: exit $exit_status"
1759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1763 for ac_signal in 1 2 13 15; do
1764 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1771 # Predefined preprocessor variables.
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer an explicitly selected file to automatically selected ones.
1802 if test -n "$CONFIG_SITE"; then
1803 ac_site_file1=$CONFIG_SITE
1804 elif test "x$prefix" != xNONE; then
1805 ac_site_file1=$prefix/share/config.site
1806 ac_site_file2=$prefix/etc/config.site
1808 ac_site_file1=$ac_default_prefix/share/config.site
1809 ac_site_file2=$ac_default_prefix/etc/config.site
1811 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1813 test "x$ac_site_file" = xNONE && continue
1814 if test -r "$ac_site_file"; then
1815 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1816 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1817 sed 's/^/| /' "$ac_site_file" >&5
1822 if test -r "$cache_file"; then
1823 # Some versions of bash will fail to source /dev/null (special
1824 # files actually), so we avoid doing that.
1825 if test -f "$cache_file"; then
1826 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1827 $as_echo "$as_me: loading cache $cache_file" >&6;}
1829 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1830 *) . "./$cache_file";;
1834 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1835 $as_echo "$as_me: creating cache $cache_file" >&6;}
1839 # Check that the precious variables saved in the cache have kept the same
1841 ac_cache_corrupted=false
1842 for ac_var in $ac_precious_vars; do
1843 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1844 eval ac_new_set=\$ac_env_${ac_var}_set
1845 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1846 eval ac_new_val=\$ac_env_${ac_var}_value
1847 case $ac_old_set,$ac_new_set in
1849 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1850 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1853 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1854 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1858 if test "x$ac_old_val" != "x$ac_new_val"; then
1859 # differences in whitespace do not lead to failure.
1860 ac_old_val_w=`echo x $ac_old_val`
1861 ac_new_val_w=`echo x $ac_new_val`
1862 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1863 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 ac_cache_corrupted=:
1867 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1868 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1869 eval $ac_var=\$ac_old_val
1871 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1872 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1873 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1874 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1877 # Pass precious variables to config.status.
1878 if test "$ac_new_set" = set; then
1880 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 *) ac_arg=$ac_var=$ac_new_val ;;
1883 case " $ac_configure_args " in
1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889 if $ac_cache_corrupted; then
1890 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1892 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1893 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1894 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1895 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1896 { (exit 1); exit 1; }; }
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 # Bootstrap StepMake configure
1925 for ac_dir in config "$srcdir"/config; do
1926 if test -f "$ac_dir/install-sh"; then
1928 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 elif test -f "$ac_dir/install.sh"; then
1932 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 elif test -f "$ac_dir/shtool"; then
1936 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 if test -z "$ac_aux_dir"; then
1941 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1942 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1943 { (exit 1); exit 1; }; }
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956 # Make sure we can run config.sub.
1957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1958 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1959 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1960 { (exit 1); exit 1; }; }
1962 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1963 $as_echo_n "checking build system type... " >&6; }
1964 if test "${ac_cv_build+set}" = set; then
1965 $as_echo_n "(cached) " >&6
1967 ac_build_alias=$build_alias
1968 test "x$ac_build_alias" = x &&
1969 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1970 test "x$ac_build_alias" = x &&
1971 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1972 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1973 { (exit 1); exit 1; }; }
1974 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1975 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1976 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1977 { (exit 1); exit 1; }; }
1980 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1981 $as_echo "$ac_cv_build" >&6; }
1982 case $ac_cv_build in
1984 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1985 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1986 { (exit 1); exit 1; }; };;
1989 ac_save_IFS=$IFS; IFS='-'
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1999 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2005 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2006 MICRO_VERSION=$PATCH_LEVEL
2007 TOPLEVEL_VERSION=$FULL_VERSION
2008 if test x$MY_PATCH_LEVEL != x; then
2009 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2011 VERSION=$FULL_VERSION
2012 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2013 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2015 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2016 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2019 # No versioning on directory names of sub-packages
2021 stepmake=${datadir}/stepmake
2023 if test "$prefix" = "NONE"; then
2024 presome=${ac_default_prefix}
2026 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2028 # urg, how is this supposed to work?
2029 if test "$program_prefix" = "NONE"; then
2032 if test "$program_suffix" = "NONE"; then
2036 { $as_echo "$as_me:$LINENO: checking Package" >&5
2037 $as_echo_n "checking Package... " >&6; }
2038 if test "$PACKAGE" = "STEPMAKE"; then
2039 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2040 $as_echo "Stepmake package!" >&6; }
2042 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2043 $as_echo_n "checking builddir... " >&6; }
2045 ugh_ugh_autoconf250_builddir="`pwd`"
2047 if test "$srcdir" = "."; then
2051 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2052 package_srcdir="`dirname $srcdir`"
2054 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2055 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2057 (cd stepmake 2>/dev/null || mkdir stepmake)
2058 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2061 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2062 $as_echo "$PACKAGE" >&6; }
2064 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2065 $as_echo_n "checking builddir... " >&6; }
2066 ugh_ugh_autoconf250_builddir="`pwd`"
2068 here_dir=$(cd . && pwd)
2069 full_src_dir=$(cd $srcdir && pwd)
2071 if test "$full_src_dir" = "$here_dir"; then
2076 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2077 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2079 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2080 $as_echo_n "checking for stepmake... " >&6; }
2081 # Check for installed stepmake
2082 if test -d $stepmake; then
2083 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2084 $as_echo "$stepmake" >&6; }
2086 stepmake="`cd $srcdir/stepmake; pwd`"
2087 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2088 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2094 # Use absolute directory for non-srcdir builds, so that build
2096 if test "$srcdir_build" = "no" ; then
2097 srcdir="`cd $srcdir; pwd`"
2110 # stepmake nonstandard names
2114 # We don't need the upper case variant,
2115 # so stick to macros are uppercase convention.
2116 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2117 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE "${package}"
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_NAME "${PACKAGE_NAME}"
2126 cat >>confdefs.h <<_ACEOF
2127 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2131 if test -z "$package_depth"; then
2134 package_depth="../$package_depth"
2136 export package_depth
2139 AUTOGENERATE="This file was automatically generated by configure"
2143 # Check whether --enable-config was given.
2144 if test "${enable_config+set}" = set; then
2145 enableval=$enable_config; CONFIGURATION=$enableval
2151 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2152 CONFIGFILE=config$CONFIGSUFFIX
2155 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2156 $as_echo_n "checking host system type... " >&6; }
2157 if test "${ac_cv_host+set}" = set; then
2158 $as_echo_n "(cached) " >&6
2160 if test "x$host_alias" = x; then
2161 ac_cv_host=$ac_cv_build
2163 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2164 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2165 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2166 { (exit 1); exit 1; }; }
2170 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2171 $as_echo "$ac_cv_host" >&6; }
2174 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2175 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2176 { (exit 1); exit 1; }; };;
2179 ac_save_IFS=$IFS; IFS='-'
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2193 for ac_prog in gmake make
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 $as_echo_n "checking for $ac_word... " >&6; }
2199 if test "${ac_cv_prog_MAKE+set}" = set; then
2200 $as_echo_n "(cached) " >&6
2202 if test -n "$MAKE"; then
2203 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_prog_MAKE="$ac_prog"
2213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 MAKE=$ac_cv_prog_MAKE
2223 if test -n "$MAKE"; then
2224 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2225 $as_echo "$MAKE" >&6; }
2227 { $as_echo "$as_me:$LINENO: result: no" >&5
2228 $as_echo "no" >&6; }
2232 test -n "$MAKE" && break
2234 test -n "$MAKE" || MAKE="no"
2238 r="`eval echo '$'"MAKE"`"
2239 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2242 ##STEPMAKE_WARN(cannot find . )
2246 if test $? -ne 0; then
2248 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2250 if test "REQUIRED" = "REQUIRED"; then
2251 command="echo ERROR: gmake make not found"
2252 # abort configure process here?
2254 command="- echo gmake make not found"
2256 eval "MAKE"='$command'
2262 if test $? -eq 0 -a -n ""; then
2264 r="`eval echo '$'"MAKE"`"
2265 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2266 $as_echo_n "checking $r version... " >&6; }
2268 ## which doesn't work in ash, if /usr/bin/which isn't installed
2269 ## type -p doesn't work in ash
2270 ## command -v doesn't work in zsh
2271 ## command -v "$r" 2>&1
2272 ## this test should work in ash, bash, pdksh (ksh), zsh
2273 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2279 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2282 ## Workaround for broken Debian gcc version string:
2283 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2285 ## -V: Workaround for python
2289 ## Assume and hunt for dotted version multiplet.
2290 ## use eval trickery, because we cannot use multi-level $() instead of ``
2291 ## for compatibility reasons.
2293 ## grab the first version number in --version output.
2294 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2295 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2298 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2299 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2302 if test -z "$_ver"; then
2303 ## If empty, try date [fontforge]
2304 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2305 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2307 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2314 echo "$ver" | awk -F. '
2316 if ($3) {three = $3}
2319 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2324 if ($3) {three = $3}
2327 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2329 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2330 $as_echo "$ver" >&6; }
2331 if test "$num" -lt "$req"; then
2333 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2336 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2337 eval `echo $vervar=$num`
2338 ## AC_SUBST(`eval echo $vervar`)
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if test "${ac_cv_prog_FIND+set}" = set; then
2350 $as_echo_n "(cached) " >&6
2352 if test -n "$FIND"; then
2353 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_FIND="$ac_prog"
2363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 FIND=$ac_cv_prog_FIND
2373 if test -n "$FIND"; then
2374 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2375 $as_echo "$FIND" >&6; }
2377 { $as_echo "$as_me:$LINENO: result: no" >&5
2378 $as_echo "no" >&6; }
2382 test -n "$FIND" && break
2384 test -n "$FIND" || FIND="no"
2388 r="`eval echo '$'"FIND"`"
2389 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2392 ##STEPMAKE_WARN(cannot find . )
2396 if test $? -ne 0; then
2398 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2400 if test "REQUIRED" = "REQUIRED"; then
2401 command="echo ERROR: find not found"
2402 # abort configure process here?
2404 command="- echo find not found"
2406 eval "FIND"='$command'
2412 if test $? -eq 0 -a -n ""; then
2414 r="`eval echo '$'"FIND"`"
2415 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2416 $as_echo_n "checking $r version... " >&6; }
2418 ## which doesn't work in ash, if /usr/bin/which isn't installed
2419 ## type -p doesn't work in ash
2420 ## command -v doesn't work in zsh
2421 ## command -v "$r" 2>&1
2422 ## this test should work in ash, bash, pdksh (ksh), zsh
2423 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2429 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2432 ## Workaround for broken Debian gcc version string:
2433 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2435 ## -V: Workaround for python
2439 ## Assume and hunt for dotted version multiplet.
2440 ## use eval trickery, because we cannot use multi-level $() instead of ``
2441 ## for compatibility reasons.
2443 ## grab the first version number in --version output.
2444 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2445 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2448 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2449 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2452 if test -z "$_ver"; then
2453 ## If empty, try date [fontforge]
2454 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2455 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2457 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2464 echo "$ver" | awk -F. '
2466 if ($3) {three = $3}
2469 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2474 if ($3) {three = $3}
2477 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2479 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2480 $as_echo "$ver" >&6; }
2481 if test "$num" -lt "$req"; then
2483 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2486 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2487 eval `echo $vervar=$num`
2488 ## AC_SUBST(`eval echo $vervar`)
2496 # Extract the first word of "$ac_prog", so it can be a program name with args.
2497 set dummy $ac_prog; ac_word=$2
2498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if test "${ac_cv_prog_TAR+set}" = set; then
2501 $as_echo_n "(cached) " >&6
2503 if test -n "$TAR"; then
2504 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_TAR="$ac_prog"
2514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test -n "$TAR"; then
2525 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2526 $as_echo "$TAR" >&6; }
2528 { $as_echo "$as_me:$LINENO: result: no" >&5
2529 $as_echo "no" >&6; }
2533 test -n "$TAR" && break
2535 test -n "$TAR" || TAR="no"
2539 r="`eval echo '$'"TAR"`"
2540 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2543 ##STEPMAKE_WARN(cannot find . )
2547 if test $? -ne 0; then
2549 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2551 if test "REQUIRED" = "REQUIRED"; then
2552 command="echo ERROR: tar not found"
2553 # abort configure process here?
2555 command="- echo tar not found"
2557 eval "TAR"='$command'
2563 if test $? -eq 0 -a -n ""; then
2565 r="`eval echo '$'"TAR"`"
2566 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2567 $as_echo_n "checking $r version... " >&6; }
2569 ## which doesn't work in ash, if /usr/bin/which isn't installed
2570 ## type -p doesn't work in ash
2571 ## command -v doesn't work in zsh
2572 ## command -v "$r" 2>&1
2573 ## this test should work in ash, bash, pdksh (ksh), zsh
2574 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2580 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2583 ## Workaround for broken Debian gcc version string:
2584 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2586 ## -V: Workaround for python
2590 ## Assume and hunt for dotted version multiplet.
2591 ## use eval trickery, because we cannot use multi-level $() instead of ``
2592 ## for compatibility reasons.
2594 ## grab the first version number in --version output.
2595 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2596 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2599 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2600 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2603 if test -z "$_ver"; then
2604 ## If empty, try date [fontforge]
2605 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2606 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2608 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2615 echo "$ver" | awk -F. '
2617 if ($3) {three = $3}
2620 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2625 if ($3) {three = $3}
2628 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2630 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2631 $as_echo "$ver" >&6; }
2632 if test "$num" -lt "$req"; then
2634 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2637 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2638 eval `echo $vervar=$num`
2639 ## AC_SUBST(`eval echo $vervar`)
2644 if test "$(echo 2)" != "2" ||
2645 test "x`uname`" = "xHP-UX"; then
2646 # Extract the first word of "ksh", so it can be a program name with args.
2647 set dummy ksh; ac_word=$2
2648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_path_KSH+set}" = set; then
2651 $as_echo_n "(cached) " >&6
2655 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2678 if test -n "$KSH"; then
2679 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2680 $as_echo "$KSH" >&6; }
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2687 # Extract the first word of "bash", so it can be a program name with args.
2688 set dummy bash; ac_word=$2
2689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_path_BASH+set}" = set; then
2692 $as_echo_n "(cached) " >&6
2696 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2718 BASH=$ac_cv_path_BASH
2719 if test -n "$BASH"; then
2720 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2721 $as_echo "$BASH" >&6; }
2723 { $as_echo "$as_me:$LINENO: result: no" >&5
2724 $as_echo "no" >&6; }
2729 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2730 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2733 # Extract the first word of "bash", so it can be a program name with args.
2734 set dummy bash; ac_word=$2
2735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_path_SHELL+set}" = set; then
2738 $as_echo_n "(cached) " >&6
2742 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2764 SHELL=$ac_cv_path_SHELL
2765 if test -n "$SHELL"; then
2766 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2767 $as_echo "$SHELL" >&6; }
2769 { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2776 # Extract the first word of "bash", so it can be a program name with args.
2777 set dummy bash; ac_word=$2
2778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_path_BASH+set}" = set; then
2781 $as_echo_n "(cached) " >&6
2785 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2807 BASH=$ac_cv_path_BASH
2808 if test -n "$BASH"; then
2809 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2810 $as_echo "$BASH" >&6; }
2812 { $as_echo "$as_me:$LINENO: result: no" >&5
2813 $as_echo "no" >&6; }
2821 { $as_echo "$as_me:$LINENO: checking for python" >&5
2822 $as_echo_n "checking for python... " >&6; }
2825 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
2827 ## which doesn't work in ash, if /usr/bin/which isn't installed
2828 ## type -p doesn't work in ash
2829 ## command -v doesn't work in zsh
2830 ## command -v "$r" 2>&1
2831 ## this test should work in ash, bash, pdksh (ksh), zsh
2832 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2834 if ! $exe -V > /dev/null 2>&1 ; then
2838 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2841 ## Workaround for broken Debian gcc version string:
2842 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2844 ## -V: Workaround for python
2848 ## Assume and hunt for dotted version multiplet.
2849 ## use eval trickery, because we cannot use multi-level $() instead of ``
2850 ## for compatibility reasons.
2852 ## grab the first version number in --version output.
2853 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2854 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2857 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2858 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2861 if test -z "$_ver"; then
2862 ## If empty, try date [fontforge]
2863 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2864 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2866 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2872 echo "$ver" | awk -F. '
2874 if ($3) {three = $3}
2877 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2880 echo "1.5" | awk -F. '
2882 if ($3) {three = $3}
2885 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2888 echo "3.0" | awk -F. '
2890 if ($3) {three = $3}
2893 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2895 if test -n "1.5" && test "$num" -lt "$req"; then
2896 python="$r >= 1.5 (installed: $ver)"
2899 if test -n "3.0" && test "$num" -ge "$sup"; then
2900 python="$r < 3.0 (installed: $ver)"
2909 { $as_echo "$as_me:$LINENO: result: $found" >&5
2910 $as_echo "$found" >&6; }
2911 if test "$found" != "no"; then
2912 { $as_echo "$as_me:$LINENO: checking $python version" >&5
2913 $as_echo_n "checking $python version... " >&6; }
2914 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2915 $as_echo "$ver" >&6; }
2919 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2922 # Extract the first word of "$PYTHON", so it can be a program name with args.
2923 set dummy $PYTHON; ac_word=$2
2924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_path_PYTHON+set}" = set; then
2927 $as_echo_n "(cached) " >&6
2931 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 PYTHON=$ac_cv_path_PYTHON
2953 if test -n "$PYTHON"; then
2954 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2955 $as_echo "$PYTHON" >&6; }
2957 { $as_echo "$as_me:$LINENO: result: no" >&5
2958 $as_echo "no" >&6; }
2965 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2966 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2967 if test "$?" = 1; then
2968 warn='make (Please install *GNU* make)'
2969 # STEPMAKE_WARN($warn)
2971 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2988 cat >>confdefs.h <<_ACEOF
2989 #define DIRSEP '${DIRSEP}'
2992 cat >>confdefs.h <<_ACEOF
2993 #define PATHSEP '${PATHSEP}'
3002 if test "$prefix" = "NONE"; then
3003 presome=${ac_default_prefix}
3006 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3008 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3009 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3010 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3015 cat >>confdefs.h <<_ACEOF
3016 #define DATADIR "${DATADIR}"
3019 cat >>confdefs.h <<_ACEOF
3020 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3025 presome=${exec_prefix}
3026 if test "$presome" = "NONE"; then
3029 if test "$presome" = "NONE"; then
3030 presome=${ac_default_prefix}
3033 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3035 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3036 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3040 cat >>confdefs.h <<_ACEOF
3041 #define LIBDIR "${LIBDIR}"
3044 cat >>confdefs.h <<_ACEOF
3045 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3051 # List a file that identifies your package.
3054 # Move to aclocal.m4?
3055 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3058 # Uncomment the configuration options your package needs.
3061 # Check whether --enable-documentation was given.
3062 if test "${enable_documentation+set}" = set; then
3063 enableval=$enable_documentation; DOCUMENTATION=$enableval
3069 # Check whether --enable-guile2 was given.
3070 if test "${enable_guile2+set}" = set; then
3071 enableval=$enable_guile2; GUILEv2=$enableval
3076 # Check whether --with-texgyre-dir was given.
3077 if test "${with_texgyre_dir+set}" = set; then
3078 withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3085 # Check whether --enable-relocation was given.
3086 if test "${enable_relocation+set}" = set; then
3087 enableval=$enable_relocation; reloc_b=$enableval
3092 # Check whether --enable-rpath was given.
3093 if test "${enable_rpath+set}" = set; then
3094 enableval=$enable_rpath; rpath_b=$enableval
3098 LINK_GXX_STATICALLY=no
3099 # Check whether --enable-static-gxx was given.
3100 if test "${enable_static_gxx+set}" = set; then
3101 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3106 # must come before any header checks
3108 # -O is necessary to get inlining
3110 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3111 LDFLAGS=${LDFLAGS-""}
3118 # Check whether --enable-debugging was given.
3119 if test "${enable_debugging+set}" = set; then
3120 enableval=$enable_debugging; debug_b=$enableval
3124 # Check whether --enable-checking was given.
3125 if test "${enable_checking+set}" = set; then
3126 enableval=$enable_checking; checks_b=$enableval
3130 # Check whether --enable-optimising was given.
3131 if test "${enable_optimising+set}" = set; then
3132 enableval=$enable_optimising; optimise_b=$enableval
3136 # Check whether --enable-profiling was given.
3137 if test "${enable_profiling+set}" = set; then
3138 enableval=$enable_profiling; profile_b=$enableval
3142 # Check whether --enable-pipe was given.
3143 if test "${enable_pipe+set}" = set; then
3144 enableval=$enable_pipe; pipe_b=$enableval
3148 if test "$optimise_b" = yes; then
3149 OPTIMIZE=" -O2 -finline-functions"
3150 # following two lines are compatibility while Patchy has not
3151 # yet learnt about --enable-checking. But once it has, we
3152 # don't want -DDEBUG twice, so we omit it here if it is going
3153 # to get added anyway later.
3154 elif test "$checks_b" != yes; then
3155 DEFINES="$DEFINES -DDEBUG"
3158 if test "$checks_b" = yes; then
3159 DEFINES="$DEFINES -DDEBUG"
3162 if test $profile_b = yes; then
3164 OPTIMIZE="$OPTIMIZE -pg"
3167 if test $debug_b = yes; then
3168 OPTIMIZE="$OPTIMIZE -g"
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3215 if test -z "$ac_cv_prog_CC"; then
3217 # Extract the first word of "gcc", so it can be a program name with args.
3218 set dummy gcc; ac_word=$2
3219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC="gcc"
3235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3249 { $as_echo "$as_me:$LINENO: result: no" >&5
3250 $as_echo "no" >&6; }
3253 if test "x$ac_ct_CC" = x; then
3256 case $cross_compiling:$ac_tool_warned in
3258 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3260 ac_tool_warned=yes ;;
3268 if test -z "$CC"; then
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}cc; ac_word=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CC="${ac_tool_prefix}cc"
3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3309 if test -z "$CC"; then
3310 # Extract the first word of "cc", so it can be a program name with args.
3311 set dummy cc; ac_word=$2
3312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if test "${ac_cv_prog_CC+set}" = set; then
3315 $as_echo_n "(cached) " >&6
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3329 ac_prog_rejected=yes
3333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 if test $ac_prog_rejected = yes; then
3341 # We found a bogon in the path, so make sure we never use it.
3342 set dummy $ac_cv_prog_CC
3344 if test $# != 0; then
3345 # We chose a different compiler from the bogus one.
3346 # However, it has the same basename, so the bogon will be chosen
3347 # first if we set CC to just the basename; use the full file name.
3349 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3359 { $as_echo "$as_me:$LINENO: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 for ac_prog in cl.exe
3369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_CC+set}" = set; then
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3401 { $as_echo "$as_me:$LINENO: result: no" >&5
3402 $as_echo "no" >&6; }
3406 test -n "$CC" && break
3409 if test -z "$CC"; then
3411 for ac_prog in cl.exe
3413 # Extract the first word of "$ac_prog", so it can be a program name with args.
3414 set dummy $ac_prog; ac_word=$2
3415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$ac_ct_CC"; then
3421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_ac_ct_CC="$ac_prog"
3431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3441 if test -n "$ac_ct_CC"; then
3442 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3443 $as_echo "$ac_ct_CC" >&6; }
3445 { $as_echo "$as_me:$LINENO: result: no" >&5
3446 $as_echo "no" >&6; }
3450 test -n "$ac_ct_CC" && break
3453 if test "x$ac_ct_CC" = x; then
3456 case $cross_compiling:$ac_tool_warned in
3458 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned=yes ;;
3469 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3472 See \`config.log' for more details." >&5
3473 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3474 See \`config.log' for more details." >&2;}
3475 { (exit 1); exit 1; }; }; }
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3481 { (ac_try="$ac_compiler --version >&5"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488 (eval "$ac_compiler --version >&5") 2>&5
3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }
3492 { (ac_try="$ac_compiler -v >&5"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499 (eval "$ac_compiler -v >&5") 2>&5
3501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }
3503 { (ac_try="$ac_compiler -V >&5"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509 $as_echo "$ac_try_echo") >&5
3510 (eval "$ac_compiler -V >&5") 2>&5
3512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3530 ac_clean_files_save=$ac_clean_files
3531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3532 # Try to create an executable without -o first, disregard a.out.
3533 # It will help us diagnose broken compilers, and finding out an intuition
3535 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3536 $as_echo_n "checking for C compiler default output file name... " >&6; }
3537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3539 # The possible output files:
3540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3543 for ac_file in $ac_files
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3552 if { (ac_try="$ac_link_default"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_link_default") 2>&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; then
3563 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3565 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3566 # so that the user can short-circuit this test for compilers unknown to
3568 for ac_file in $ac_files ''
3570 test -f "$ac_file" || continue
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3575 # We found the default executable, but exeext='' is most
3579 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3581 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 # We set ac_cv_exeext here because the later test for it is not
3584 # safe: cross compilers may not add the suffix if given an `-o'
3585 # argument, so we may need to know it at that point already.
3586 # Even if this section looks crufty: it has the advantage of
3593 test "$ac_cv_exeext" = no && ac_cv_exeext=
3599 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3600 $as_echo "$ac_file" >&6; }
3601 if test -z "$ac_file"; then
3602 $as_echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3608 See \`config.log' for more details." >&5
3609 $as_echo "$as_me: error: C compiler cannot create executables
3610 See \`config.log' for more details." >&2;}
3611 { (exit 77); exit 77; }; }; }
3614 ac_exeext=$ac_cv_exeext
3616 # Check that the compiler produces executables we can run. If not, either
3617 # the compiler is broken, or we cross compile.
3618 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3619 $as_echo_n "checking whether the C compiler works... " >&6; }
3620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3621 # If not cross compiling, check that we can run a simple program.
3622 if test "$cross_compiling" != yes; then
3623 if { ac_try='./$ac_file'
3624 { (case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_try") 2>&5
3632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3636 if test "$cross_compiling" = maybe; then
3639 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3642 If you meant to cross compile, use \`--host'.
3643 See \`config.log' for more details." >&5
3644 $as_echo "$as_me: error: cannot run C compiled programs.
3645 If you meant to cross compile, use \`--host'.
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }; }
3651 { $as_echo "$as_me:$LINENO: result: yes" >&5
3652 $as_echo "yes" >&6; }
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 # Check that the compiler produces executables we can run. If not, either
3657 # the compiler is broken, or we cross compile.
3658 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3659 $as_echo_n "checking whether we are cross compiling... " >&6; }
3660 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3661 $as_echo "$cross_compiling" >&6; }
3663 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3664 $as_echo_n "checking for suffix of executables... " >&6; }
3665 if { (ac_try="$ac_link"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671 $as_echo "$ac_try_echo") >&5
3672 (eval "$ac_link") 2>&5
3674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; then
3676 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 for ac_file in conftest.exe conftest conftest.*; do
3681 test -f "$ac_file" || continue
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&5
3694 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3695 See \`config.log' for more details." >&2;}
3696 { (exit 1); exit 1; }; }; }
3699 rm -f conftest$ac_cv_exeext
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3701 $as_echo "$ac_cv_exeext" >&6; }
3703 rm -f conftest.$ac_ext
3704 EXEEXT=$ac_cv_exeext
3706 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3707 $as_echo_n "checking for suffix of object files... " >&6; }
3708 if test "${ac_cv_objext+set}" = set; then
3709 $as_echo_n "(cached) " >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3726 rm -f conftest.o conftest.obj
3727 if { (ac_try="$ac_compile"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3733 $as_echo "$ac_try_echo") >&5
3734 (eval "$ac_compile") 2>&5
3736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; then
3738 for ac_file in conftest.o conftest.obj conftest.*; do
3739 test -f "$ac_file" || continue;
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3747 $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3753 See \`config.log' for more details." >&5
3754 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }; }
3759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3761 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3762 $as_echo "$ac_cv_objext" >&6; }
3763 OBJEXT=$ac_cv_objext
3765 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3766 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3768 $as_echo_n "(cached) " >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3795 $as_echo "$ac_try_echo") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest.$ac_objext; then
3808 $as_echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3818 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3819 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3820 if test $ac_compiler_gnu = yes; then
3825 ac_test_CFLAGS=${CFLAGS+set}
3826 ac_save_CFLAGS=$CFLAGS
3827 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3828 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3829 if test "${ac_cv_prog_cc_g+set}" = set; then
3830 $as_echo_n "(cached) " >&6
3832 ac_save_c_werror_flag=$ac_c_werror_flag
3833 ac_c_werror_flag=yes
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3858 $as_echo "$ac_try_echo") >&5
3859 (eval "$ac_compile") 2>conftest.er1
3861 grep -v '^ *+' conftest.er1 >conftest.err
3863 cat conftest.err >&5
3864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && {
3866 test -z "$ac_c_werror_flag" ||
3867 test ! -s conftest.err
3868 } && test -s conftest.$ac_objext; then
3871 $as_echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_c_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest.$ac_objext; then
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3930 rm -f conftest.$ac_objext
3931 if { (ac_try="$ac_compile"
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3937 $as_echo "$ac_try_echo") >&5
3938 (eval "$ac_compile") 2>conftest.er1
3940 grep -v '^ *+' conftest.er1 >conftest.err
3942 cat conftest.err >&5
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } && {
3945 test -z "$ac_c_werror_flag" ||
3946 test ! -s conftest.err
3947 } && test -s conftest.$ac_objext; then
3950 $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_c_werror_flag=$ac_save_c_werror_flag
3965 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
3967 if test "$ac_test_CFLAGS" = set; then
3968 CFLAGS=$ac_save_CFLAGS
3969 elif test $ac_cv_prog_cc_g = yes; then
3970 if test "$GCC" = yes; then
3976 if test "$GCC" = yes; then
3982 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984 if test "${ac_cv_prog_cc_c89+set}" = set; then
3985 $as_echo_n "(cached) " >&6
3987 ac_cv_prog_cc_c89=no
3989 cat >conftest.$ac_ext <<_ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4013 s = g (p, va_arg (v,int));
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 CC="$ac_save_CC $ac_arg"
4050 rm -f conftest.$ac_objext
4051 if { (ac_try="$ac_compile"
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4057 $as_echo "$ac_try_echo") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } && {
4065 test -z "$ac_c_werror_flag" ||
4066 test ! -s conftest.err
4067 } && test -s conftest.$ac_objext; then
4068 ac_cv_prog_cc_c89=$ac_arg
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4076 rm -f core conftest.err conftest.$ac_objext
4077 test "x$ac_cv_prog_cc_c89" != "xno" && break
4079 rm -f conftest.$ac_ext
4084 case "x$ac_cv_prog_cc_c89" in
4086 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4087 $as_echo "none needed" >&6; } ;;
4089 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4090 $as_echo "unsupported" >&6; } ;;
4092 CC="$CC $ac_cv_prog_cc_c89"
4093 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4094 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 r="`eval echo '$'"CC"`"
4112 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4115 ##STEPMAKE_WARN(cannot find . )
4119 if test $? -ne 0; then
4121 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4123 if test "" = "REQUIRED"; then
4124 command="echo ERROR: cc not found"
4125 # abort configure process here?
4127 command="- echo cc not found"
4129 eval "CC"='$command'
4138 # If -pipe requested, test if it works and add to CFLAGS.
4139 if test "$pipe_b" = yes; then
4140 save_cflags="$CFLAGS"
4141 CFLAGS=" -pipe $CFLAGS";
4142 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4143 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4144 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4145 $as_echo_n "(cached) " >&6
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4170 $as_echo "$ac_try_echo") >&5
4171 (eval "$ac_compile") 2>conftest.er1
4173 grep -v '^ *+' conftest.er1 >conftest.err
4175 cat conftest.err >&5
4176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } && {
4178 test -z "$ac_c_werror_flag" ||
4179 test ! -s conftest.err
4180 } && test -s conftest.$ac_objext; then
4181 stepmake_cv_cflags_pipe=yes
4183 $as_echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 stepmake_cv_cflags_pipe=no
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4192 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4194 if test $stepmake_cv_cflags_pipe = yes; then
4195 OPTIMIZE="$OPTIMIZE -pipe"
4199 CFLAGS="$CFLAGS $OPTIMIZE"
4200 CPPFLAGS=${CPPFLAGS-""}
4202 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4203 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4204 save_cflags="$CFLAGS"
4207 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4208 $as_echo "-mieee" >&6; }
4209 CFLAGS=" -mieee $CFLAGS"
4212 { $as_echo "$as_me:$LINENO: result: none" >&5
4213 $as_echo "none" >&6; }
4225 # Extract the first word of "fc-list", so it can be a program name with args.
4226 set dummy fc-list; ac_word=$2
4227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_FCLIST+set}" = set; then
4230 $as_echo_n "(cached) " >&6
4232 if test -n "$FCLIST"; then
4233 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_FCLIST="fc-list"
4243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 FCLIST=$ac_cv_prog_FCLIST
4253 if test -n "$FCLIST"; then
4254 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4255 $as_echo "$FCLIST" >&6; }
4257 { $as_echo "$as_me:$LINENO: result: no" >&5
4258 $as_echo "no" >&6; }
4262 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4263 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4266 if test "$TEXGYRE_DIR" = ""; then
4267 if test "$FCLIST" != ""; then
4268 TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4269 if test "$TEXGYRE_FILE" != ""; then
4270 TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4271 TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4272 TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4273 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4274 X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4275 X$TEXGYRE_FILE : 'X\(//\)$' \| \
4276 X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4277 $as_echo X$TEXGYRE_FILE |
4278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4298 if test "$TEXGYRE_DIR" != "" ; then
4299 for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4300 texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4301 texgyreheros-regular.otf texgyreheros-italic.otf \
4302 texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4303 texgyrecursor-regular.otf texgyrecursor-italic.otf \
4304 texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4305 if test ! -f "$TEXGYRE_DIR/$f"; then
4306 MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4308 TEXGYRE_FILES="$TEXGYRE_FILES $f"
4312 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4313 { $as_echo "$as_me:$LINENO: result: no" >&5
4314 $as_echo "no" >&6; }
4316 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4318 if test "$TEXGYRE_DIR" = ""; then
4319 if test "$FCLIST" = ""; then
4321 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4325 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)"\"`\"
4330 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4334 { $as_echo "$as_me:$LINENO: result: yes" >&5
4335 $as_echo "yes" >&6; }
4339 ac_cpp='$CXXCPP $CPPFLAGS'
4340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4346 { $as_echo "$as_me:$LINENO: checking for python" >&5
4347 $as_echo_n "checking for python... " >&6; }
4350 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
4352 ## which doesn't work in ash, if /usr/bin/which isn't installed
4353 ## type -p doesn't work in ash
4354 ## command -v doesn't work in zsh
4355 ## command -v "$r" 2>&1
4356 ## this test should work in ash, bash, pdksh (ksh), zsh
4357 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4359 if ! $exe -V > /dev/null 2>&1 ; then
4363 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4366 ## Workaround for broken Debian gcc version string:
4367 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4369 ## -V: Workaround for python
4373 ## Assume and hunt for dotted version multiplet.
4374 ## use eval trickery, because we cannot use multi-level $() instead of ``
4375 ## for compatibility reasons.
4377 ## grab the first version number in --version output.
4378 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4379 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4382 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4383 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4386 if test -z "$_ver"; then
4387 ## If empty, try date [fontforge]
4388 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4389 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4391 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4397 echo "$ver" | awk -F. '
4399 if ($3) {three = $3}
4402 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4405 echo "2.4" | awk -F. '
4407 if ($3) {three = $3}
4410 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4413 echo "3.0" | awk -F. '
4415 if ($3) {three = $3}
4418 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4420 if test -n "2.4" && test "$num" -lt "$req"; then
4421 python="$r >= 2.4 (installed: $ver)"
4424 if test -n "3.0" && test "$num" -ge "$sup"; then
4425 python="$r < 3.0 (installed: $ver)"
4434 { $as_echo "$as_me:$LINENO: result: $found" >&5
4435 $as_echo "$found" >&6; }
4436 if test "$found" != "no"; then
4437 { $as_echo "$as_me:$LINENO: checking $python version" >&5
4438 $as_echo_n "checking $python version... " >&6; }
4439 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4440 $as_echo "$ver" >&6; }
4444 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4447 # Extract the first word of "$PYTHON", so it can be a program name with args.
4448 set dummy $PYTHON; ac_word=$2
4449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_path_PYTHON+set}" = set; then
4452 $as_echo_n "(cached) " >&6
4456 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 PYTHON=$ac_cv_path_PYTHON
4478 if test -n "$PYTHON"; then
4479 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4480 $as_echo "$PYTHON" >&6; }
4482 { $as_echo "$as_me:$LINENO: result: no" >&5
4483 $as_echo "no" >&6; }
4489 # this checks if we have GNU C by compiling a program with
4490 # __GNUC__, but that macro now unofficially means "the compiler
4491 # supports the GNU C extensions" -- the intel C compiler and clang
4492 # both support __GNUC__!
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498 if test -z "$CXX"; then
4499 if test -n "$CCC"; then
4502 if test -n "$ac_tool_prefix"; then
4503 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_CXX+set}" = set; then
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$CXX"; then
4513 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test -n "$CXX"; then
4534 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4535 $as_echo "$CXX" >&6; }
4537 { $as_echo "$as_me:$LINENO: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$CXX" && break
4545 if test -z "$CXX"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$ac_ct_CXX"; then
4557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_ac_ct_CXX="$ac_prog"
4567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4577 if test -n "$ac_ct_CXX"; then
4578 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4579 $as_echo "$ac_ct_CXX" >&6; }
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$ac_ct_CXX" && break
4589 if test "x$ac_ct_CXX" = x; then
4592 case $cross_compiling:$ac_tool_warned in
4594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4604 # Provide some information about the compiler.
4605 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4608 { (ac_try="$ac_compiler --version >&5"
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615 (eval "$ac_compiler --version >&5") 2>&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }
4619 { (ac_try="$ac_compiler -v >&5"
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compiler -v >&5") 2>&5
4628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }
4630 { (ac_try="$ac_compiler -V >&5"
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compiler -V >&5") 2>&5
4639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }
4642 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4645 $as_echo_n "(cached) " >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4665 rm -f conftest.$ac_objext
4666 if { (ac_try="$ac_compile"
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_compile") 2>conftest.er1
4675 grep -v '^ *+' conftest.er1 >conftest.err
4677 cat conftest.err >&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && {
4680 test -z "$ac_cxx_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4695 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4697 if test $ac_compiler_gnu = yes; then
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4709 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4710 ac_cxx_werror_flag=yes
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736 (eval "$ac_compile") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_cxx_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
4746 ac_cv_prog_cxx_g=yes
4748 $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_cxx_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4787 $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815 (eval "$ac_compile") 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && {
4822 test -z "$ac_cxx_werror_flag" ||
4823 test ! -s conftest.err
4824 } && test -s conftest.$ac_objext; then
4825 ac_cv_prog_cxx_g=yes
4827 $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4842 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4843 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4844 if test "$ac_test_CXXFLAGS" = set; then
4845 CXXFLAGS=$ac_save_CXXFLAGS
4846 elif test $ac_cv_prog_cxx_g = yes; then
4847 if test "$GXX" = yes; then
4853 if test "$GXX" = yes; then
4860 ac_cpp='$CXXCPP $CPPFLAGS'
4861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4867 ac_cpp='$CXXCPP $CPPFLAGS'
4868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4871 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4872 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4873 if test -z "$CXXCPP"; then
4874 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4875 $as_echo_n "(cached) " >&6
4877 # Double quotes because CXXCPP needs to be expanded
4878 for CXXCPP in "$CXX -E" "/lib/cpp"
4881 for ac_cxx_preproc_warn_flag in '' yes
4883 # Use a header file that comes with gcc, so configuring glibc
4884 # with a fresh cross-compiler works.
4885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 # <limits.h> exists even on freestanding compilers.
4887 # On the NeXT, cc -E runs the code through the compiler's parser,
4888 # not just through cpp. "Syntax error" is here to catch this case.
4889 cat >conftest.$ac_ext <<_ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4896 # include <limits.h>
4898 # include <assert.h>
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } >/dev/null && {
4916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4917 test ! -s conftest.err
4921 $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 # Broken: fails on valid input.
4928 rm -f conftest.err conftest.$ac_ext
4930 # OK, works on sane cases. Now check whether nonexistent headers
4931 # can be detected and how.
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 #include <ac_nonexistent.h>
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946 $as_echo "$ac_try_echo") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4955 test ! -s conftest.err
4957 # Broken: success on invalid input.
4960 $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 # Passes both tests.
4968 rm -f conftest.err conftest.$ac_ext
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.err conftest.$ac_ext
4973 if $ac_preproc_ok; then
4978 ac_cv_prog_CXXCPP=$CXXCPP
4981 CXXCPP=$ac_cv_prog_CXXCPP
4983 ac_cv_prog_CXXCPP=$CXXCPP
4985 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4986 $as_echo "$CXXCPP" >&6; }
4988 for ac_cxx_preproc_warn_flag in '' yes
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 # include <limits.h>
5005 # include <assert.h>
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015 $as_echo "$ac_try_echo") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null && {
5023 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5024 test ! -s conftest.err
5028 $as_echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 # Broken: fails on valid input.
5035 rm -f conftest.err conftest.$ac_ext
5037 # OK, works on sane cases. Now check whether nonexistent headers
5038 # can be detected and how.
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #include <ac_nonexistent.h>
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5062 test ! -s conftest.err
5064 # Broken: success on invalid input.
5067 $as_echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 # Passes both tests.
5075 rm -f conftest.err conftest.$ac_ext
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then
5083 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5085 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5086 See \`config.log' for more details." >&5
5087 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; }; }
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if test "${ac_cv_path_GREP+set}" = set; then
5102 $as_echo_n "(cached) " >&6
5104 if test -z "$GREP"; then
5105 ac_path_GREP_found=false
5106 # Loop through the user's path and test for each of PROGNAME-LIST
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 test -z "$as_dir" && as_dir=.
5112 for ac_prog in grep ggrep; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 $as_echo_n 0123456789 >"conftest.in"
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 $as_echo 'GREP' >> "conftest.nl"
5130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 ac_count=`expr $ac_count + 1`
5133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_GREP="$ac_path_GREP"
5136 ac_path_GREP_max=$ac_count
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 $ac_path_GREP_found && break 3
5149 if test -z "$ac_cv_path_GREP"; then
5150 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5151 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5152 { (exit 1); exit 1; }; }
5155 ac_cv_path_GREP=$GREP
5159 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP="$ac_cv_path_GREP"
5164 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then
5167 $as_echo_n "(cached) " >&6
5169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170 then ac_cv_path_EGREP="$GREP -E"
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in egrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5191 $as_echo_n 0123456789 >"conftest.in"
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 ac_count=`expr $ac_count + 1`
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP="$ac_path_EGREP"
5204 ac_path_EGREP_max=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 $ac_path_EGREP_found && break 3
5217 if test -z "$ac_cv_path_EGREP"; then
5218 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5219 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5220 { (exit 1); exit 1; }; }
5223 ac_cv_path_EGREP=$EGREP
5228 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5229 $as_echo "$ac_cv_path_EGREP" >&6; }
5230 EGREP="$ac_cv_path_EGREP"
5235 cat >conftest.$ac_ext <<_ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "yes" >/dev/null 2>&1; then
5255 if test "$HAS_CLANG" = "no"; then
5256 if test "$GCC" = "yes"; then
5258 r="`eval echo '$'"CC"`"
5259 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5260 $as_echo_n "checking $r version... " >&6; }
5262 ## which doesn't work in ash, if /usr/bin/which isn't installed
5263 ## type -p doesn't work in ash
5264 ## command -v doesn't work in zsh
5265 ## command -v "$r" 2>&1
5266 ## this test should work in ash, bash, pdksh (ksh), zsh
5267 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5273 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5276 ## Workaround for broken Debian gcc version string:
5277 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5279 ## -V: Workaround for python
5283 ## Assume and hunt for dotted version multiplet.
5284 ## use eval trickery, because we cannot use multi-level $() instead of ``
5285 ## for compatibility reasons.
5287 ## grab the first version number in --version output.
5288 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5289 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5292 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5293 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5296 if test -z "$_ver"; then
5297 ## If empty, try date [fontforge]
5298 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5299 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5301 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5308 echo "$ver" | awk -F. '
5310 if ($3) {three = $3}
5313 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5316 echo "3.4" | awk -F. '
5318 if ($3) {three = $3}
5321 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5323 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5324 $as_echo "$ver" >&6; }
5325 if test "$num" -lt "$req"; then
5327 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5330 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5331 eval `echo $vervar=$num`
5332 ## AC_SUBST(`eval echo $vervar`)
5335 warn="$CC (Please install *GNU* cc)"
5337 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5341 # no else, we're fine with any clang
5346 ac_cpp='$CXXCPP $CPPFLAGS'
5347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5350 if test -z "$CXX"; then
5351 if test -n "$CCC"; then
5354 if test -n "$ac_tool_prefix"; then
5355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_CXX+set}" = set; then
5362 $as_echo_n "(cached) " >&6
5364 if test -n "$CXX"; then
5365 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 if test -n "$CXX"; then
5386 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5387 $as_echo "$CXX" >&6; }
5389 { $as_echo "$as_me:$LINENO: result: no" >&5
5390 $as_echo "no" >&6; }
5394 test -n "$CXX" && break
5397 if test -z "$CXX"; then
5399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5401 # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$ac_ct_CXX"; then
5409 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_CXX="$ac_prog"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5429 if test -n "$ac_ct_CXX"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5431 $as_echo "$ac_ct_CXX" >&6; }
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5438 test -n "$ac_ct_CXX" && break
5441 if test "x$ac_ct_CXX" = x; then
5444 case $cross_compiling:$ac_tool_warned in
5446 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5448 ac_tool_warned=yes ;;
5456 # Provide some information about the compiler.
5457 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5460 { (ac_try="$ac_compiler --version >&5"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5466 $as_echo "$ac_try_echo") >&5
5467 (eval "$ac_compiler --version >&5") 2>&5
5469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }
5471 { (ac_try="$ac_compiler -v >&5"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_compiler -v >&5") 2>&5
5480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }
5482 { (ac_try="$ac_compiler -V >&5"
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489 (eval "$ac_compiler -V >&5") 2>&5
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }
5494 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5495 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5496 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5497 $as_echo_n "(cached) " >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_cxx_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5537 $as_echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5547 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5549 if test $ac_compiler_gnu = yes; then
5554 ac_test_CXXFLAGS=${CXXFLAGS+set}
5555 ac_save_CXXFLAGS=$CXXFLAGS
5556 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5558 if test "${ac_cv_prog_cxx_g+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5562 ac_cxx_werror_flag=yes
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587 $as_echo "$ac_try_echo") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_cxx_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
5598 ac_cv_prog_cxx_g=yes
5600 $as_echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626 $as_echo "$ac_try_echo") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5629 grep -v '^ *+' conftest.er1 >conftest.err
5631 cat conftest.err >&5
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_cxx_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
5639 $as_echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5666 $as_echo "$ac_try_echo") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_cxx_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 ac_cv_prog_cxx_g=yes
5679 $as_echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5694 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5695 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5696 if test "$ac_test_CXXFLAGS" = set; then
5697 CXXFLAGS=$ac_save_CXXFLAGS
5698 elif test $ac_cv_prog_cxx_g = yes; then
5699 if test "$GXX" = yes; then
5705 if test "$GXX" = yes; then
5712 ac_cpp='$CXXCPP $CPPFLAGS'
5713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5719 r="`eval echo '$'"CXX"`"
5720 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5723 ##STEPMAKE_WARN(cannot find . )
5727 if test $? -ne 0; then
5729 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5731 if test "REQUIRED" = "REQUIRED"; then
5732 command="echo ERROR: c++ not found"
5733 # abort configure process here?
5735 command="- echo c++ not found"
5737 eval "CXX"='$command'
5744 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5751 cat >conftest.$ac_ext <<_ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "yes" >/dev/null 2>&1; then
5771 if test "$HAS_CLANG" = "no"; then
5772 if test "$GXX" = "yes"; then
5774 r="`eval echo '$'"CXX"`"
5775 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5776 $as_echo_n "checking $r version... " >&6; }
5778 ## which doesn't work in ash, if /usr/bin/which isn't installed
5779 ## type -p doesn't work in ash
5780 ## command -v doesn't work in zsh
5781 ## command -v "$r" 2>&1
5782 ## this test should work in ash, bash, pdksh (ksh), zsh
5783 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5789 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5792 ## Workaround for broken Debian gcc version string:
5793 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5795 ## -V: Workaround for python
5799 ## Assume and hunt for dotted version multiplet.
5800 ## use eval trickery, because we cannot use multi-level $() instead of ``
5801 ## for compatibility reasons.
5803 ## grab the first version number in --version output.
5804 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5805 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5808 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5809 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5812 if test -z "$_ver"; then
5813 ## If empty, try date [fontforge]
5814 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5815 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5817 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5824 echo "$ver" | awk -F. '
5826 if ($3) {three = $3}
5829 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5832 echo "3.4" | awk -F. '
5834 if ($3) {three = $3}
5837 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5839 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5840 $as_echo "$ver" >&6; }
5841 if test "$num" -lt "$req"; then
5843 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5846 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5847 eval `echo $vervar=$num`
5848 ## AC_SUBST(`eval echo $vervar`)
5851 warn="$CXX (Please install *GNU* c++)"
5853 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5857 # no else, we're fine with any clang
5860 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5861 $as_echo_n "checking options for known g++ bugs... " >&6; }
5862 case "$GXX:$CXX_VERSION" in
5864 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5865 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5866 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5869 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5870 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5871 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5873 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5874 $as_echo "none" >&6; }
5879 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5880 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5881 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5882 $as_echo_n "(cached) " >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5891 template <class T> struct foo { static int baz; };
5892 template <class T> int foo<T>::baz = 1;
5897 return foo<int>::baz;
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (ac_try="$ac_link"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_link") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_cxx_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest$ac_exeext && {
5920 test "$cross_compiling" = yes ||
5921 $as_test_x conftest$ac_exeext
5923 stepmake_cv_need_explicit_instantiation=no
5925 $as_echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 stepmake_cv_need_explicit_instantiation=yes
5931 rm -rf conftest.dSYM
5932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5933 conftest$ac_exeext conftest.$ac_ext
5935 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5936 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5937 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5938 cat >>confdefs.h <<\_ACEOF
5939 #define NEED_EXPLICIT_INSTANTIATION 1
5945 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5946 $as_echo_n "checking for stl.data () method... " >&6; }
5947 if test "${stepmake_cv_stl_data_method+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5950 cat >conftest.$ac_ext <<_ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5958 using namespace std;
5960 void *p = v.data ();
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_cxx_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 stepmake_cv_stl_data_method=yes
5990 $as_echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 stepmake_cv_stl_data_method=no
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5999 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6000 if test $stepmake_cv_stl_data_method = yes; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define HAVE_STL_DATA_METHOD 1
6012 # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_AR+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6019 if test -n "$AR"; then
6020 ac_cv_prog_AR="$AR" # Let the user override the test.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_AR="$ac_prog"
6030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 if test -n "$AR"; then
6041 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }
6049 test -n "$AR" && break
6051 test -n "$AR" || AR="no"
6055 r="`eval echo '$'"AR"`"
6056 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6059 ##STEPMAKE_WARN(cannot find . )
6063 if test $? -ne 0; then
6065 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6067 if test "REQUIRED" = "REQUIRED"; then
6068 command="echo ERROR: ar not found"
6069 # abort configure process here?
6071 command="- echo ar not found"
6073 eval "AR"='$command'
6079 if test $? -eq 0 -a -n ""; then
6081 r="`eval echo '$'"AR"`"
6082 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6083 $as_echo_n "checking $r version... " >&6; }
6085 ## which doesn't work in ash, if /usr/bin/which isn't installed
6086 ## type -p doesn't work in ash
6087 ## command -v doesn't work in zsh
6088 ## command -v "$r" 2>&1
6089 ## this test should work in ash, bash, pdksh (ksh), zsh
6090 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6096 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6099 ## Workaround for broken Debian gcc version string:
6100 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6102 ## -V: Workaround for python
6106 ## Assume and hunt for dotted version multiplet.
6107 ## use eval trickery, because we cannot use multi-level $() instead of ``
6108 ## for compatibility reasons.
6110 ## grab the first version number in --version output.
6111 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6112 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6115 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6116 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6119 if test -z "$_ver"; then
6120 ## If empty, try date [fontforge]
6121 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6122 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6124 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6131 echo "$ver" | awk -F. '
6133 if ($3) {three = $3}
6136 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6141 if ($3) {three = $3}
6144 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6146 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6147 $as_echo "$ver" >&6; }
6148 if test "$num" -lt "$req"; then
6150 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6153 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6154 eval `echo $vervar=$num`
6155 ## AC_SUBST(`eval echo $vervar`)
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_RANLIB+set}" = set; then
6165 $as_echo_n "(cached) " >&6
6167 if test -n "$RANLIB"; then
6168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 RANLIB=$ac_cv_prog_RANLIB
6188 if test -n "$RANLIB"; then
6189 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6190 $as_echo "$RANLIB" >&6; }
6192 { $as_echo "$as_me:$LINENO: result: no" >&5
6193 $as_echo "no" >&6; }
6198 if test -z "$ac_cv_prog_RANLIB"; then
6199 ac_ct_RANLIB=$RANLIB
6200 # Extract the first word of "ranlib", so it can be a program name with args.
6201 set dummy ranlib; ac_word=$2
6202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6205 $as_echo_n "(cached) " >&6
6207 if test -n "$ac_ct_RANLIB"; then
6208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_RANLIB="ranlib"
6218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228 if test -n "$ac_ct_RANLIB"; then
6229 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6230 $as_echo "$ac_ct_RANLIB" >&6; }
6232 { $as_echo "$as_me:$LINENO: result: no" >&5
6233 $as_echo "no" >&6; }
6236 if test "x$ac_ct_RANLIB" = x; then
6239 case $cross_compiling:$ac_tool_warned in
6241 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6245 RANLIB=$ac_ct_RANLIB
6248 RANLIB="$ac_cv_prog_RANLIB"
6253 r="`eval echo '$'"RANLIB"`"
6254 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6257 ##STEPMAKE_WARN(cannot find . )
6261 if test $? -ne 0; then
6263 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6265 if test "REQUIRED" = "REQUIRED"; then
6266 command="echo ERROR: ranlib not found"
6267 # abort configure process here?
6269 command="- echo ranlib not found"
6271 eval "RANLIB"='$command'
6280 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6281 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6283 $as_echo_n "(cached) " >&6
6285 ac_check_lib_save_LIBS=$LIBS
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (ac_try="$ac_link"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316 $as_echo "$ac_try_echo") >&5
6317 (eval "$ac_link") 2>conftest.er1
6319 grep -v '^ *+' conftest.er1 >conftest.err
6321 cat conftest.err >&5
6322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_cxx_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest$ac_exeext && {
6327 test "$cross_compiling" = yes ||
6328 $as_test_x conftest$ac_exeext
6330 ac_cv_lib_dl_dlopen=yes
6332 $as_echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_cv_lib_dl_dlopen=no
6338 rm -rf conftest.dSYM
6339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6340 conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6345 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6346 cat >>confdefs.h <<_ACEOF
6347 #define HAVE_LIBDL 1
6355 for ac_func in dlopen
6357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6359 $as_echo_n "checking for $ac_func... " >&6; }
6360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6361 $as_echo_n "(cached) " >&6
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6371 #define $ac_func innocuous_$ac_func
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func (); below.
6375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6376 <limits.h> exists even on freestanding compilers. */
6379 # include <limits.h>
6381 # include <assert.h>
6386 /* Override any GCC internal prototype to avoid an error.
6387 Use char because int might match the return type of a GCC
6388 builtin and then its argument prototype would still apply. */
6393 /* The GNU C library defines this for functions which it implements
6394 to always fail with ENOSYS. Some functions are actually named
6395 something starting with __ and the normal name is an alias. */
6396 #if defined __stub_$ac_func || defined __stub___$ac_func
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (ac_try="$ac_link"
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6415 $as_echo "$ac_try_echo") >&5
6416 (eval "$ac_link") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_cxx_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest$ac_exeext && {
6426 test "$cross_compiling" = yes ||
6427 $as_test_x conftest$ac_exeext
6429 eval "$as_ac_var=yes"
6431 $as_echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 eval "$as_ac_var=no"
6437 rm -rf conftest.dSYM
6438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6439 conftest$ac_exeext conftest.$ac_ext
6441 ac_res=`eval 'as_val=${'$as_ac_var'}
6442 $as_echo "$as_val"'`
6443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 as_val=`eval 'as_val=${'$as_ac_var'}
6446 $as_echo "$as_val"'`
6447 if test "x$as_val" = x""yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6456 # Do not use bison 1.50 and 1.75.
6457 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6459 # ugh, automake: we want (and check for) bison
6460 for ac_prog in 'bison -y' byacc
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if test "${ac_cv_prog_YACC+set}" = set; then
6467 $as_echo_n "(cached) " >&6
6469 if test -n "$YACC"; then
6470 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_YACC="$ac_prog"
6480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 YACC=$ac_cv_prog_YACC
6490 if test -n "$YACC"; then
6491 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6492 $as_echo "$YACC" >&6; }
6494 { $as_echo "$as_me:$LINENO: result: no" >&5
6495 $as_echo "no" >&6; }
6499 test -n "$YACC" && break
6501 test -n "$YACC" || YACC="yacc"
6505 for ac_prog in bison
6507 # Extract the first word of "$ac_prog", so it can be a program name with args.
6508 set dummy $ac_prog; ac_word=$2
6509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if test "${ac_cv_prog_BISON+set}" = set; then
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$BISON"; then
6515 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_BISON="$ac_prog"
6525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 BISON=$ac_cv_prog_BISON
6535 if test -n "$BISON"; then
6536 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6537 $as_echo "$BISON" >&6; }
6539 { $as_echo "$as_me:$LINENO: result: no" >&5
6540 $as_echo "no" >&6; }
6544 test -n "$BISON" && break
6546 test -n "$BISON" || BISON="no"
6550 r="`eval echo '$'"BISON"`"
6551 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6554 ##STEPMAKE_WARN(cannot find . )
6558 if test $? -ne 0; then
6560 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6562 if test "REQUIRED" = "REQUIRED"; then
6563 command="echo ERROR: bison not found"
6564 # abort configure process here?
6566 command="- echo bison not found"
6568 eval "BISON"='$command'
6574 if test $? -eq 0 -a -n ""; then
6576 r="`eval echo '$'"BISON"`"
6577 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6578 $as_echo_n "checking $r version... " >&6; }
6580 ## which doesn't work in ash, if /usr/bin/which isn't installed
6581 ## type -p doesn't work in ash
6582 ## command -v doesn't work in zsh
6583 ## command -v "$r" 2>&1
6584 ## this test should work in ash, bash, pdksh (ksh), zsh
6585 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6591 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6594 ## Workaround for broken Debian gcc version string:
6595 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6597 ## -V: Workaround for python
6601 ## Assume and hunt for dotted version multiplet.
6602 ## use eval trickery, because we cannot use multi-level $() instead of ``
6603 ## for compatibility reasons.
6605 ## grab the first version number in --version output.
6606 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6607 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6610 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6611 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6614 if test -z "$_ver"; then
6615 ## If empty, try date [fontforge]
6616 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6617 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6619 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6626 echo "$ver" | awk -F. '
6628 if ($3) {three = $3}
6631 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6636 if ($3) {three = $3}
6639 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6641 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6642 $as_echo "$ver" >&6; }
6643 if test "$num" -lt "$req"; then
6645 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6648 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6649 eval `echo $vervar=$num`
6650 ## AC_SUBST(`eval echo $vervar`)
6655 # urg. should test functionality rather than version.
6656 if test "$BISON" = "bison" -a -n "1.29"; then
6658 r="`eval echo '$'"BISON"`"
6659 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6660 $as_echo_n "checking $r version... " >&6; }
6662 ## which doesn't work in ash, if /usr/bin/which isn't installed
6663 ## type -p doesn't work in ash
6664 ## command -v doesn't work in zsh
6665 ## command -v "$r" 2>&1
6666 ## this test should work in ash, bash, pdksh (ksh), zsh
6667 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6673 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6676 ## Workaround for broken Debian gcc version string:
6677 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6679 ## -V: Workaround for python
6683 ## Assume and hunt for dotted version multiplet.
6684 ## use eval trickery, because we cannot use multi-level $() instead of ``
6685 ## for compatibility reasons.
6687 ## grab the first version number in --version output.
6688 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6689 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6692 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6693 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6696 if test -z "$_ver"; then
6697 ## If empty, try date [fontforge]
6698 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6699 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6701 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6708 echo "$ver" | awk -F. '
6710 if ($3) {three = $3}
6713 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6716 echo "1.29" | awk -F. '
6718 if ($3) {three = $3}
6721 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6723 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6724 $as_echo "$ver" >&6; }
6725 if test "$num" -lt "$req"; then
6727 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6730 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6731 eval `echo $vervar=$num`
6732 ## AC_SUBST(`eval echo $vervar`)
6737 # ugh, automake: we want (and check for) flex
6739 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6743 ac_cv_prog_lex_root=lex.yy
6747 # Extract the first word of "$ac_prog", so it can be a program name with args.
6748 set dummy $ac_prog; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_FLEX+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$FLEX"; then
6755 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_FLEX="$ac_prog"
6765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 FLEX=$ac_cv_prog_FLEX
6775 if test -n "$FLEX"; then
6776 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6777 $as_echo "$FLEX" >&6; }
6779 { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6784 test -n "$FLEX" && break
6786 test -n "$FLEX" || FLEX="no"
6790 r="`eval echo '$'"FLEX"`"
6791 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6794 ##STEPMAKE_WARN(cannot find . )
6798 if test $? -ne 0; then
6800 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6802 if test "REQUIRED" = "REQUIRED"; then
6803 command="echo ERROR: flex not found"
6804 # abort configure process here?
6806 command="- echo flex not found"
6808 eval "FLEX"='$command'
6814 if test $? -eq 0 -a -n ""; then
6816 r="`eval echo '$'"FLEX"`"
6817 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6818 $as_echo_n "checking $r version... " >&6; }
6820 ## which doesn't work in ash, if /usr/bin/which isn't installed
6821 ## type -p doesn't work in ash
6822 ## command -v doesn't work in zsh
6823 ## command -v "$r" 2>&1
6824 ## this test should work in ash, bash, pdksh (ksh), zsh
6825 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6831 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6834 ## Workaround for broken Debian gcc version string:
6835 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6837 ## -V: Workaround for python
6841 ## Assume and hunt for dotted version multiplet.
6842 ## use eval trickery, because we cannot use multi-level $() instead of ``
6843 ## for compatibility reasons.
6845 ## grab the first version number in --version output.
6846 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6847 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6850 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6851 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6854 if test -z "$_ver"; then
6855 ## If empty, try date [fontforge]
6856 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6857 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6859 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6866 echo "$ver" | awk -F. '
6868 if ($3) {three = $3}
6871 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6876 if ($3) {three = $3}
6879 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6881 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6882 $as_echo "$ver" >&6; }
6883 if test "$num" -lt "$req"; then
6885 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6888 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6889 eval `echo $vervar=$num`
6890 ## AC_SUBST(`eval echo $vervar`)
6895 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6896 $as_echo_n "checking for ANSI C header files... " >&6; }
6897 if test "${ac_cv_header_stdc+set}" = set; then
6898 $as_echo_n "(cached) " >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923 *) ac_try_echo=$ac_try;;
6925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6926 $as_echo "$ac_try_echo") >&5
6927 (eval "$ac_compile") 2>conftest.er1
6929 grep -v '^ *+' conftest.er1 >conftest.err
6931 cat conftest.err >&5
6932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && {
6934 test -z "$ac_cxx_werror_flag" ||
6935 test ! -s conftest.err
6936 } && test -s conftest.$ac_objext; then
6937 ac_cv_header_stdc=yes
6939 $as_echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_cv_header_stdc=no
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 if test $ac_cv_header_stdc = yes; then
6948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959 $EGREP "memchr" >/dev/null 2>&1; then
6962 ac_cv_header_stdc=no
6968 if test $ac_cv_header_stdc = yes; then
6969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980 $EGREP "free" >/dev/null 2>&1; then
6983 ac_cv_header_stdc=no
6989 if test $ac_cv_header_stdc = yes; then
6990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6991 if test "$cross_compiling" = yes; then
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7002 #if ((' ' & 0x0FF) == 0x020)
7003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7006 # define ISLOWER(c) \
7007 (('a' <= (c) && (c) <= 'i') \
7008 || ('j' <= (c) && (c) <= 'r') \
7009 || ('s' <= (c) && (c) <= 'z'))
7010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7018 for (i = 0; i < 256; i++)
7019 if (XOR (islower (i), ISLOWER (i))
7020 || toupper (i) != TOUPPER (i))
7025 rm -f conftest$ac_exeext
7026 if { (ac_try="$ac_link"
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_link") 2>&5
7035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7037 { (case "(($ac_try" in
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7042 $as_echo "$ac_try_echo") >&5
7043 (eval "$ac_try") 2>&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7049 $as_echo "$as_me: program exited with status $ac_status" >&5
7050 $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_cv_header_stdc=no
7056 rm -rf conftest.dSYM
7057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7064 $as_echo "$ac_cv_header_stdc" >&6; }
7065 if test $ac_cv_header_stdc = yes; then
7067 cat >>confdefs.h <<\_ACEOF
7068 #define STDC_HEADERS 1
7073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7084 inttypes.h stdint.h unistd.h
7086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7088 $as_echo_n "checking for $ac_header... " >&6; }
7089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7090 $as_echo_n "(cached) " >&6
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7100 #include <$ac_header>
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7112 grep -v '^ *+' conftest.er1 >conftest.err
7114 cat conftest.err >&5
7115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_cxx_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
7120 eval "$as_ac_Header=yes"
7122 $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 eval "$as_ac_Header=no"
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 ac_res=`eval 'as_val=${'$as_ac_Header'}
7131 $as_echo "$as_val"'`
7132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7133 $as_echo "$ac_res" >&6; }
7134 as_val=`eval 'as_val=${'$as_ac_Header'}
7135 $as_echo "$as_val"'`
7136 if test "x$as_val" = x""yes; then
7137 cat >>confdefs.h <<_ACEOF
7138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7148 for ac_header in FlexLexer.h
7150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7153 $as_echo_n "checking for $ac_header... " >&6; }
7154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7155 $as_echo_n "(cached) " >&6
7157 ac_res=`eval 'as_val=${'$as_ac_Header'}
7158 $as_echo "$as_val"'`
7159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7160 $as_echo "$ac_res" >&6; }
7162 # Is the header compilable?
7163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7164 $as_echo_n "checking $ac_header usability... " >&6; }
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7172 #include <$ac_header>
7174 rm -f conftest.$ac_objext
7175 if { (ac_try="$ac_compile"
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7181 $as_echo "$ac_try_echo") >&5
7182 (eval "$ac_compile") 2>conftest.er1
7184 grep -v '^ *+' conftest.er1 >conftest.err
7186 cat conftest.err >&5
7187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && {
7189 test -z "$ac_cxx_werror_flag" ||
7190 test ! -s conftest.err
7191 } && test -s conftest.$ac_objext; then
7192 ac_header_compiler=yes
7194 $as_echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 ac_header_compiler=no
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7202 $as_echo "$ac_header_compiler" >&6; }
7204 # Is the header present?
7205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7206 $as_echo_n "checking $ac_header presence... " >&6; }
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <$ac_header>
7215 if { (ac_try="$ac_cpp conftest.$ac_ext"
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7221 $as_echo "$ac_try_echo") >&5
7222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } >/dev/null && {
7229 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7230 test ! -s conftest.err
7232 ac_header_preproc=yes
7234 $as_echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_header_preproc=no
7240 rm -f conftest.err conftest.$ac_ext
7241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242 $as_echo "$ac_header_preproc" >&6; }
7244 # So? What about this header?
7245 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7261 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 $as_echo_n "checking for $ac_header... " >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 $as_echo_n "(cached) " >&6
7274 eval "$as_ac_Header=\$ac_header_preproc"
7276 ac_res=`eval 'as_val=${'$as_ac_Header'}
7277 $as_echo "$as_val"'`
7278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7279 $as_echo "$ac_res" >&6; }
7282 as_val=`eval 'as_val=${'$as_ac_Header'}
7283 $as_echo "$as_val"'`
7284 if test "x$as_val" = x""yes; then
7285 cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 if test $? -ne 0; then
7296 warn='FlexLexer.h (flex package)'
7298 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7301 # check for yyFlexLexer.yy_current_buffer,
7302 # in 2.5.4 <= flex < 2.5.29
7303 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7304 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7305 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7306 $as_echo_n "(cached) " >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7315 using namespace std;
7316 #include <FlexLexer.h>
7317 class yy_flex_lexer: public yyFlexLexer
7322 yy_current_buffer = 0;
7334 rm -f conftest.$ac_objext
7335 if { (ac_try="$ac_compile"
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7341 $as_echo "$ac_try_echo") >&5
7342 (eval "$ac_compile") 2>conftest.er1
7344 grep -v '^ *+' conftest.er1 >conftest.err
7346 cat conftest.err >&5
7347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && {
7349 test -z "$ac_cxx_werror_flag" ||
7350 test ! -s conftest.err
7351 } && test -s conftest.$ac_objext; then
7352 stepmake_cv_flexlexer_yy_current_buffer=yes
7354 $as_echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 stepmake_cv_flexlexer_yy_current_buffer=no
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7363 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7364 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7373 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7374 $as_echo_n "checking FlexLexer.h location... " >&6; }
7377 cat <<EOF > conftest.cc
7378 using namespace std;
7379 #include <FlexLexer.h>
7381 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7382 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7383 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7386 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7387 $as_echo "$FLEXLEXER_FILE" >&6; }
7395 # Check whether --with-localedir was given.
7396 if test "${with_localedir+set}" = set; then
7397 withval=$with_localedir; localedir=$with_localedir
7399 localedir='${prefix}/share/locale'
7404 # Check whether --with-lang was given.
7405 if test "${with_lang+set}" = set; then
7406 withval=$with_lang; language=$with_lang
7412 { $as_echo "$as_me:$LINENO: checking language" >&5
7413 $as_echo_n "checking language... " >&6; }
7415 En* | en* | Am* | am* | US* | us*)
7417 NL | nl | Du* | du* | Ned* | ned*)
7424 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7425 $as_echo "$lang" >&6; }
7427 if test "$lang" = "unknown" ; then
7429 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7430 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7438 if test "$prefix" = "NONE"; then
7439 presome=${ac_default_prefix}
7441 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7444 cat >>confdefs.h <<_ACEOF
7445 #define LOCALEDIR "${LOCALEDIR}"
7449 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7450 $as_echo_n "checking for gettext in -lintl... " >&6; }
7451 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7454 ac_check_lib_save_LIBS=$LIBS
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7463 /* Override any GCC internal prototype to avoid an error.
7464 Use char because int might match the return type of a GCC
7465 builtin and then its argument prototype would still apply. */
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486 (eval "$ac_link") 2>conftest.er1
7488 grep -v '^ *+' conftest.er1 >conftest.err
7490 cat conftest.err >&5
7491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_cxx_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest$ac_exeext && {
7496 test "$cross_compiling" = yes ||
7497 $as_test_x conftest$ac_exeext
7499 ac_cv_lib_intl_gettext=yes
7501 $as_echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_cv_lib_intl_gettext=no
7507 rm -rf conftest.dSYM
7508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7509 conftest$ac_exeext conftest.$ac_ext
7510 LIBS=$ac_check_lib_save_LIBS
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7513 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7514 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_LIBINTL 1
7524 for ac_func in gettext
7526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7528 $as_echo_n "checking for $ac_func... " >&6; }
7529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7530 $as_echo_n "(cached) " >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7540 #define $ac_func innocuous_$ac_func
7542 /* System header to define __stub macros and hopefully few prototypes,
7543 which can conflict with char $ac_func (); below.
7544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7545 <limits.h> exists even on freestanding compilers. */
7548 # include <limits.h>
7550 # include <assert.h>
7555 /* Override any GCC internal prototype to avoid an error.
7556 Use char because int might match the return type of a GCC
7557 builtin and then its argument prototype would still apply. */
7562 /* The GNU C library defines this for functions which it implements
7563 to always fail with ENOSYS. Some functions are actually named
7564 something starting with __ and the normal name is an alias. */
7565 #if defined __stub_$ac_func || defined __stub___$ac_func
7577 rm -f conftest.$ac_objext conftest$ac_exeext
7578 if { (ac_try="$ac_link"
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7584 $as_echo "$ac_try_echo") >&5
7585 (eval "$ac_link") 2>conftest.er1
7587 grep -v '^ *+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } && {
7592 test -z "$ac_cxx_werror_flag" ||
7593 test ! -s conftest.err
7594 } && test -s conftest$ac_exeext && {
7595 test "$cross_compiling" = yes ||
7596 $as_test_x conftest$ac_exeext
7598 eval "$as_ac_var=yes"
7600 $as_echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 eval "$as_ac_var=no"
7606 rm -rf conftest.dSYM
7607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7608 conftest$ac_exeext conftest.$ac_ext
7610 ac_res=`eval 'as_val=${'$as_ac_var'}
7611 $as_echo "$as_val"'`
7612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7613 $as_echo "$ac_res" >&6; }
7614 as_val=`eval 'as_val=${'$as_ac_var'}
7615 $as_echo "$as_val"'`
7616 if test "x$as_val" = x""yes; then
7617 cat >>confdefs.h <<_ACEOF
7618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7627 for ac_prog in msgfmt
7629 # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$MSGFMT"; then
7637 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_prog_MSGFMT="$ac_prog"
7647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 MSGFMT=$ac_cv_prog_MSGFMT
7657 if test -n "$MSGFMT"; then
7658 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7659 $as_echo "$MSGFMT" >&6; }
7661 { $as_echo "$as_me:$LINENO: result: no" >&5
7662 $as_echo "no" >&6; }
7666 test -n "$MSGFMT" && break
7668 test -n "$MSGFMT" || MSGFMT="no"
7672 r="`eval echo '$'"MSGFMT"`"
7673 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7676 ##STEPMAKE_WARN(cannot find . )
7680 if test $? -ne 0; then
7682 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7684 if test "REQUIRED" = "REQUIRED"; then
7685 command="echo ERROR: msgfmt not found"
7686 # abort configure process here?
7688 command="- echo msgfmt not found"
7690 eval "MSGFMT"='$command'
7696 if test $? -eq 0 -a -n ""; then
7698 r="`eval echo '$'"MSGFMT"`"
7699 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7700 $as_echo_n "checking $r version... " >&6; }
7702 ## which doesn't work in ash, if /usr/bin/which isn't installed
7703 ## type -p doesn't work in ash
7704 ## command -v doesn't work in zsh
7705 ## command -v "$r" 2>&1
7706 ## this test should work in ash, bash, pdksh (ksh), zsh
7707 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7713 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7716 ## Workaround for broken Debian gcc version string:
7717 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7719 ## -V: Workaround for python
7723 ## Assume and hunt for dotted version multiplet.
7724 ## use eval trickery, because we cannot use multi-level $() instead of ``
7725 ## for compatibility reasons.
7727 ## grab the first version number in --version output.
7728 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7729 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7732 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7733 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7736 if test -z "$_ver"; then
7737 ## If empty, try date [fontforge]
7738 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7739 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7741 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7748 echo "$ver" | awk -F. '
7750 if ($3) {three = $3}
7753 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7758 if ($3) {three = $3}
7761 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7763 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7764 $as_echo "$ver" >&6; }
7765 if test "$num" -lt "$req"; then
7767 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7770 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7771 eval `echo $vervar=$num`
7772 ## AC_SUBST(`eval echo $vervar`)
7779 for ac_prog in mf-nowin mf mfw mfont
7781 # Extract the first word of "$ac_prog", so it can be a program name with args.
7782 set dummy $ac_prog; ac_word=$2
7783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_prog_METAFONT+set}" = set; then
7786 $as_echo_n "(cached) " >&6
7788 if test -n "$METAFONT"; then
7789 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798 ac_cv_prog_METAFONT="$ac_prog"
7799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 METAFONT=$ac_cv_prog_METAFONT
7809 if test -n "$METAFONT"; then
7810 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7811 $as_echo "$METAFONT" >&6; }
7813 { $as_echo "$as_me:$LINENO: result: no" >&5
7814 $as_echo "no" >&6; }
7818 test -n "$METAFONT" && break
7820 test -n "$METAFONT" || METAFONT="no"
7824 r="`eval echo '$'"METAFONT"`"
7825 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7828 ##STEPMAKE_WARN(cannot find . )
7832 if test $? -ne 0; then
7834 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7836 if test "REQUIRED" = "REQUIRED"; then
7837 command="echo ERROR: mf-nowin mf mfw mfont not found"
7838 # abort configure process here?
7840 command="- echo mf-nowin mf mfw mfont not found"
7842 eval "METAFONT"='$command'
7848 if test $? -eq 0 -a -n ""; then
7850 r="`eval echo '$'"METAFONT"`"
7851 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7852 $as_echo_n "checking $r version... " >&6; }
7854 ## which doesn't work in ash, if /usr/bin/which isn't installed
7855 ## type -p doesn't work in ash
7856 ## command -v doesn't work in zsh
7857 ## command -v "$r" 2>&1
7858 ## this test should work in ash, bash, pdksh (ksh), zsh
7859 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7865 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7868 ## Workaround for broken Debian gcc version string:
7869 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7871 ## -V: Workaround for python
7875 ## Assume and hunt for dotted version multiplet.
7876 ## use eval trickery, because we cannot use multi-level $() instead of ``
7877 ## for compatibility reasons.
7879 ## grab the first version number in --version output.
7880 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7881 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7884 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7885 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7888 if test -z "$_ver"; then
7889 ## If empty, try date [fontforge]
7890 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7891 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7893 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7900 echo "$ver" | awk -F. '
7902 if ($3) {three = $3}
7905 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7910 if ($3) {three = $3}
7913 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7915 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7916 $as_echo "$ver" >&6; }
7917 if test "$num" -lt "$req"; then
7919 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7922 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7923 eval `echo $vervar=$num`
7924 ## AC_SUBST(`eval echo $vervar`)
7929 for ac_prog in mpost
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_METAPOST+set}" = set; then
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$METAPOST"; then
7939 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_METAPOST="$ac_prog"
7949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 METAPOST=$ac_cv_prog_METAPOST
7959 if test -n "$METAPOST"; then
7960 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7961 $as_echo "$METAPOST" >&6; }
7963 { $as_echo "$as_me:$LINENO: result: no" >&5
7964 $as_echo "no" >&6; }
7968 test -n "$METAPOST" && break
7970 test -n "$METAPOST" || METAPOST="no"
7974 r="`eval echo '$'"METAPOST"`"
7975 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7978 ##STEPMAKE_WARN(cannot find . )
7982 if test $? -ne 0; then
7984 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7986 if test "REQUIRED" = "REQUIRED"; then
7987 command="echo ERROR: mpost not found"
7988 # abort configure process here?
7990 command="- echo mpost not found"
7992 eval "METAPOST"='$command'
7998 if test $? -eq 0 -a -n ""; then
8000 r="`eval echo '$'"METAPOST"`"
8001 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8002 $as_echo_n "checking $r version... " >&6; }
8004 ## which doesn't work in ash, if /usr/bin/which isn't installed
8005 ## type -p doesn't work in ash
8006 ## command -v doesn't work in zsh
8007 ## command -v "$r" 2>&1
8008 ## this test should work in ash, bash, pdksh (ksh), zsh
8009 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8015 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8018 ## Workaround for broken Debian gcc version string:
8019 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8021 ## -V: Workaround for python
8025 ## Assume and hunt for dotted version multiplet.
8026 ## use eval trickery, because we cannot use multi-level $() instead of ``
8027 ## for compatibility reasons.
8029 ## grab the first version number in --version output.
8030 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8031 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8034 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8035 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8038 if test -z "$_ver"; then
8039 ## If empty, try date [fontforge]
8040 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8041 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8043 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8050 echo "$ver" | awk -F. '
8052 if ($3) {three = $3}
8055 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8060 if ($3) {three = $3}
8063 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8065 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8066 $as_echo "$ver" >&6; }
8067 if test "$num" -lt "$req"; then
8069 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8072 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8073 eval `echo $vervar=$num`
8074 ## AC_SUBST(`eval echo $vervar`)
8078 if test "$METAPOST" != ""; then
8080 ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8083 ## Workaround for broken Debian gcc version string:
8084 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8086 ## -V: Workaround for python
8090 ## Assume and hunt for dotted version multiplet.
8091 ## use eval trickery, because we cannot use multi-level $() instead of ``
8092 ## for compatibility reasons.
8094 ## grab the first version number in --version output.
8095 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8096 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8099 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8100 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8103 if test -z "$_ver"; then
8104 ## If empty, try date [fontforge]
8105 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8106 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8108 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8114 echo "$ver" | awk -F. '
8116 if ($3) {three = $3}
8119 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8121 # Avoid buggy metapost versions: 1.600 <= x < 1.803
8122 if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8124 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8129 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8130 $as_echo_n "checking for working metafont mode... " >&6; }
8131 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8132 for MFMODE in $modelist; do
8133 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8134 if test -f mfput.tfm; then
8138 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8139 $as_echo "$MFMODE" >&6; }
8147 for ac_prog in kpsewhich
8149 # Extract the first word of "$ac_prog", so it can be a program name with args.
8150 set dummy $ac_prog; ac_word=$2
8151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8154 $as_echo_n "(cached) " >&6
8156 if test -n "$KPSEWHICH"; then
8157 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_prog_KPSEWHICH="$ac_prog"
8167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8177 if test -n "$KPSEWHICH"; then
8178 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8179 $as_echo "$KPSEWHICH" >&6; }
8181 { $as_echo "$as_me:$LINENO: result: no" >&5
8182 $as_echo "no" >&6; }
8186 test -n "$KPSEWHICH" && break
8188 test -n "$KPSEWHICH" || KPSEWHICH="no"
8192 r="`eval echo '$'"KPSEWHICH"`"
8193 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8196 ##STEPMAKE_WARN(cannot find . )
8200 if test $? -ne 0; then
8202 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8204 if test "REQUIRED" = "REQUIRED"; then
8205 command="echo ERROR: kpsewhich not found"
8206 # abort configure process here?
8208 command="- echo kpsewhich not found"
8210 eval "KPSEWHICH"='$command'
8216 if test $? -eq 0 -a -n ""; then
8218 r="`eval echo '$'"KPSEWHICH"`"
8219 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8220 $as_echo_n "checking $r version... " >&6; }
8222 ## which doesn't work in ash, if /usr/bin/which isn't installed
8223 ## type -p doesn't work in ash
8224 ## command -v doesn't work in zsh
8225 ## command -v "$r" 2>&1
8226 ## this test should work in ash, bash, pdksh (ksh), zsh
8227 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8233 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8236 ## Workaround for broken Debian gcc version string:
8237 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8239 ## -V: Workaround for python
8243 ## Assume and hunt for dotted version multiplet.
8244 ## use eval trickery, because we cannot use multi-level $() instead of ``
8245 ## for compatibility reasons.
8247 ## grab the first version number in --version output.
8248 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8249 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8252 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8253 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8256 if test -z "$_ver"; then
8257 ## If empty, try date [fontforge]
8258 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8259 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8261 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8268 echo "$ver" | awk -F. '
8270 if ($3) {three = $3}
8273 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8278 if ($3) {three = $3}
8281 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8283 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8284 $as_echo "$ver" >&6; }
8285 if test "$num" -lt "$req"; then
8287 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8290 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8291 eval `echo $vervar=$num`
8292 ## AC_SUBST(`eval echo $vervar`)
8297 { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8298 $as_echo_n "checking for metapost required files... " >&6; }
8299 if test "$MFPLAIN_MP" = ""; then
8300 MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8302 if test "$MFPLAIN_MP" = ""; then
8303 { $as_echo "$as_me:$LINENO: result: no" >&5
8304 $as_echo "no" >&6; }
8306 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8309 { $as_echo "$as_me:$LINENO: result: yes" >&5
8310 $as_echo "yes" >&6; }
8313 if test "$GUILEv2" = "yes"
8316 ## First, let's just see if we can find Guile at all.
8317 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8318 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8319 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8320 $as_echo_n "checking for guile-config... " >&6; }
8321 guile_config="guile-config"
8323 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
8325 ## which doesn't work in ash, if /usr/bin/which isn't installed
8326 ## type -p doesn't work in ash
8327 ## command -v doesn't work in zsh
8328 ## command -v "$r" 2>&1
8329 ## this test should work in ash, bash, pdksh (ksh), zsh
8330 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8332 if ! $exe --version > /dev/null 2>&1 ; then
8336 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8339 ## Workaround for broken Debian gcc version string:
8340 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8342 ## -V: Workaround for python
8346 ## Assume and hunt for dotted version multiplet.
8347 ## use eval trickery, because we cannot use multi-level $() instead of ``
8348 ## for compatibility reasons.
8350 ## grab the first version number in --version output.
8351 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8352 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8355 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8356 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8359 if test -z "$_ver"; then
8360 ## If empty, try date [fontforge]
8361 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8362 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8364 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8370 echo "$ver" | awk -F. '
8372 if ($3) {three = $3}
8375 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8378 echo "2.0.7" | awk -F. '
8380 if ($3) {three = $3}
8383 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8386 echo "2.2.0" | awk -F. '
8388 if ($3) {three = $3}
8391 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8393 if test -n "2.0.7" -a "$num" -lt "$req"; then
8394 guile_config="$r >= 2.0.7 (installed: $ver)"
8397 if test -n "2.2.0" -a "$num" -ge "$sup"; then
8398 guile_config="$r < 2.2.0 (installed: $ver)"
8407 { $as_echo "$as_me:$LINENO: result: $found" >&5
8408 $as_echo "$found" >&6; }
8409 if test "$found" != "no"; then
8410 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8411 $as_echo_n "checking $guile_config version... " >&6; }
8412 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8413 $as_echo "$ver" >&6; }
8417 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8423 guile_version="$ver"
8425 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8426 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8427 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8431 ## which doesn't work in ash, if /usr/bin/which isn't installed
8432 ## type -p doesn't work in ash
8433 ## command -v doesn't work in zsh
8434 ## command -v "$guile_config" 2>&1
8435 ## this test should work in ash, bash, pdksh (ksh), zsh
8436 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8438 if test -x $exe; then
8439 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8440 $as_echo_n "checking guile compile flags... " >&6; }
8441 GUILE_CFLAGS="`$guile_config compile`"
8442 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8443 $as_echo "$GUILE_CFLAGS" >&6; }
8444 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8445 $as_echo_n "checking guile link flags... " >&6; }
8446 GUILE_LDFLAGS="`$guile_config link`"
8447 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8448 $as_echo "$GUILE_LDFLAGS" >&6; }
8453 save_CPPFLAGS="$CPPFLAGS"
8455 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8456 LIBS="$GUILE_LDFLAGS $LIBS"
8458 for ac_header in libguile.h
8460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 $as_echo_n "checking for $ac_header... " >&6; }
8464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8465 $as_echo_n "(cached) " >&6
8467 ac_res=`eval 'as_val=${'$as_ac_Header'}
8468 $as_echo "$as_val"'`
8469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8470 $as_echo "$ac_res" >&6; }
8472 # Is the header compilable?
8473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474 $as_echo_n "checking $ac_header usability... " >&6; }
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 $ac_includes_default
8482 #include <$ac_header>
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1 >conftest.err
8496 cat conftest.err >&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_cxx_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_header_compiler=yes
8504 $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_header_compiler=no
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 $as_echo "$ac_header_compiler" >&6; }
8514 # Is the header present?
8515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 $as_echo_n "checking $ac_header presence... " >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 #include <$ac_header>
8525 if { (ac_try="$ac_cpp conftest.$ac_ext"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531 $as_echo "$ac_try_echo") >&5
8532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } >/dev/null && {
8539 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8540 test ! -s conftest.err
8542 ac_header_preproc=yes
8544 $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_header_preproc=no
8550 rm -f conftest.err conftest.$ac_ext
8551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 $as_echo "$ac_header_preproc" >&6; }
8554 # So? What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8561 ac_header_preproc=yes
8564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8580 $as_echo_n "checking for $ac_header... " >&6; }
8581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8582 $as_echo_n "(cached) " >&6
8584 eval "$as_ac_Header=\$ac_header_preproc"
8586 ac_res=`eval 'as_val=${'$as_ac_Header'}
8587 $as_echo "$as_val"'`
8588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8589 $as_echo "$ac_res" >&6; }
8592 as_val=`eval 'as_val=${'$as_ac_Header'}
8593 $as_echo "$as_val"'`
8594 if test "x$as_val" = x""yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8605 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8606 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8607 $as_echo_n "(cached) " >&6
8609 ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-lguile $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 /* Override any GCC internal prototype to avoid an error.
8619 Use char because int might match the return type of a GCC
8620 builtin and then its argument prototype would still apply. */
8624 char scm_boot_guile ();
8628 return scm_boot_guile ();
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_link") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_cxx_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest$ac_exeext && {
8651 test "$cross_compiling" = yes ||
8652 $as_test_x conftest$ac_exeext
8654 ac_cv_lib_guile_scm_boot_guile=yes
8656 $as_echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_lib_guile_scm_boot_guile=no
8662 rm -rf conftest.dSYM
8663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664 conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8668 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8669 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8670 cat >>confdefs.h <<_ACEOF
8671 #define HAVE_LIBGUILE 1
8674 LIBS="-lguile $LIBS"
8679 for ac_func in scm_boot_guile
8681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8682 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8683 $as_echo_n "checking for $ac_func... " >&6; }
8684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8685 $as_echo_n "(cached) " >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8695 #define $ac_func innocuous_$ac_func
8697 /* System header to define __stub macros and hopefully few prototypes,
8698 which can conflict with char $ac_func (); below.
8699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8700 <limits.h> exists even on freestanding compilers. */
8703 # include <limits.h>
8705 # include <assert.h>
8710 /* Override any GCC internal prototype to avoid an error.
8711 Use char because int might match the return type of a GCC
8712 builtin and then its argument prototype would still apply. */
8717 /* The GNU C library defines this for functions which it implements
8718 to always fail with ENOSYS. Some functions are actually named
8719 something starting with __ and the normal name is an alias. */
8720 #if defined __stub_$ac_func || defined __stub___$ac_func
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (ac_try="$ac_link"
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8739 $as_echo "$ac_try_echo") >&5
8740 (eval "$ac_link") 2>conftest.er1
8742 grep -v '^ *+' conftest.er1 >conftest.err
8744 cat conftest.err >&5
8745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && {
8747 test -z "$ac_cxx_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest$ac_exeext && {
8750 test "$cross_compiling" = yes ||
8751 $as_test_x conftest$ac_exeext
8753 eval "$as_ac_var=yes"
8755 $as_echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 eval "$as_ac_var=no"
8761 rm -rf conftest.dSYM
8762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8763 conftest$ac_exeext conftest.$ac_ext
8765 ac_res=`eval 'as_val=${'$as_ac_var'}
8766 $as_echo "$as_val"'`
8767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8768 $as_echo "$ac_res" >&6; }
8769 as_val=`eval 'as_val=${'$as_ac_var'}
8770 $as_echo "$as_val"'`
8771 if test "x$as_val" = x""yes; then
8772 cat >>confdefs.h <<_ACEOF
8773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8781 if test "$libguile_b" = "no"; then
8782 warn='libguile (libguile-dev, guile-devel or guile-dev
8785 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8788 CPPFLAGS="$save_CPPFLAGS"
8790 cat >>confdefs.h <<_ACEOF
8791 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8794 cat >>confdefs.h <<_ACEOF
8795 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8798 cat >>confdefs.h <<_ACEOF
8799 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8805 ## First, let's just see if we can find Guile at all.
8806 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8807 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8808 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8809 $as_echo_n "checking for guile-config... " >&6; }
8810 guile_config="guile-config"
8812 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
8814 ## which doesn't work in ash, if /usr/bin/which isn't installed
8815 ## type -p doesn't work in ash
8816 ## command -v doesn't work in zsh
8817 ## command -v "$r" 2>&1
8818 ## this test should work in ash, bash, pdksh (ksh), zsh
8819 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8821 if ! $exe --version > /dev/null 2>&1 ; then
8825 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8828 ## Workaround for broken Debian gcc version string:
8829 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8831 ## -V: Workaround for python
8835 ## Assume and hunt for dotted version multiplet.
8836 ## use eval trickery, because we cannot use multi-level $() instead of ``
8837 ## for compatibility reasons.
8839 ## grab the first version number in --version output.
8840 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8841 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8844 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8845 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8848 if test -z "$_ver"; then
8849 ## If empty, try date [fontforge]
8850 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8851 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8853 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8859 echo "$ver" | awk -F. '
8861 if ($3) {three = $3}
8864 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8867 echo "1.8.2" | awk -F. '
8869 if ($3) {three = $3}
8872 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8875 echo "1.9.0" | awk -F. '
8877 if ($3) {three = $3}
8880 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8882 if test -n "1.8.2" -a "$num" -lt "$req"; then
8883 guile_config="$r >= 1.8.2 (installed: $ver)"
8886 if test -n "1.9.0" -a "$num" -ge "$sup"; then
8887 guile_config="$r < 1.9.0 (installed: $ver)"
8896 { $as_echo "$as_me:$LINENO: result: $found" >&5
8897 $as_echo "$found" >&6; }
8898 if test "$found" != "no"; then
8899 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8900 $as_echo_n "checking $guile_config version... " >&6; }
8901 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8902 $as_echo "$ver" >&6; }
8906 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8912 guile_version="$ver"
8914 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8915 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8916 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8920 ## which doesn't work in ash, if /usr/bin/which isn't installed
8921 ## type -p doesn't work in ash
8922 ## command -v doesn't work in zsh
8923 ## command -v "$guile_config" 2>&1
8924 ## this test should work in ash, bash, pdksh (ksh), zsh
8925 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8927 if test -x $exe; then
8928 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8929 $as_echo_n "checking guile compile flags... " >&6; }
8930 GUILE_CFLAGS="`$guile_config compile`"
8931 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8932 $as_echo "$GUILE_CFLAGS" >&6; }
8933 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8934 $as_echo_n "checking guile link flags... " >&6; }
8935 GUILE_LDFLAGS="`$guile_config link`"
8936 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8937 $as_echo "$GUILE_LDFLAGS" >&6; }
8942 save_CPPFLAGS="$CPPFLAGS"
8944 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8945 LIBS="$GUILE_LDFLAGS $LIBS"
8947 for ac_header in libguile.h
8949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8952 $as_echo_n "checking for $ac_header... " >&6; }
8953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8954 $as_echo_n "(cached) " >&6
8956 ac_res=`eval 'as_val=${'$as_ac_Header'}
8957 $as_echo "$as_val"'`
8958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8959 $as_echo "$ac_res" >&6; }
8961 # Is the header compilable?
8962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8963 $as_echo_n "checking $ac_header usability... " >&6; }
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 $ac_includes_default
8971 #include <$ac_header>
8973 rm -f conftest.$ac_objext
8974 if { (ac_try="$ac_compile"
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981 (eval "$ac_compile") 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && {
8988 test -z "$ac_cxx_werror_flag" ||
8989 test ! -s conftest.err
8990 } && test -s conftest.$ac_objext; then
8991 ac_header_compiler=yes
8993 $as_echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_header_compiler=no
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9001 $as_echo "$ac_header_compiler" >&6; }
9003 # Is the header present?
9004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9005 $as_echo_n "checking $ac_header presence... " >&6; }
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 #include <$ac_header>
9014 if { (ac_try="$ac_cpp conftest.$ac_ext"
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9020 $as_echo "$ac_try_echo") >&5
9021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } >/dev/null && {
9028 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9029 test ! -s conftest.err
9031 ac_header_preproc=yes
9033 $as_echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_header_preproc=no
9039 rm -f conftest.err conftest.$ac_ext
9040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 $as_echo "$ac_header_preproc" >&6; }
9043 # So? What about this header?
9044 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9050 ac_header_preproc=yes
9053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9069 $as_echo_n "checking for $ac_header... " >&6; }
9070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9071 $as_echo_n "(cached) " >&6
9073 eval "$as_ac_Header=\$ac_header_preproc"
9075 ac_res=`eval 'as_val=${'$as_ac_Header'}
9076 $as_echo "$as_val"'`
9077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9078 $as_echo "$ac_res" >&6; }
9081 as_val=`eval 'as_val=${'$as_ac_Header'}
9082 $as_echo "$as_val"'`
9083 if test "x$as_val" = x""yes; then
9084 cat >>confdefs.h <<_ACEOF
9085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9094 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9095 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9096 $as_echo_n "(cached) " >&6
9098 ac_check_lib_save_LIBS=$LIBS
9099 LIBS="-lguile $LIBS"
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9107 /* Override any GCC internal prototype to avoid an error.
9108 Use char because int might match the return type of a GCC
9109 builtin and then its argument prototype would still apply. */
9113 char scm_boot_guile ();
9117 return scm_boot_guile ();
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (ac_try="$ac_link"
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9129 $as_echo "$ac_try_echo") >&5
9130 (eval "$ac_link") 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && {
9137 test -z "$ac_cxx_werror_flag" ||
9138 test ! -s conftest.err
9139 } && test -s conftest$ac_exeext && {
9140 test "$cross_compiling" = yes ||
9141 $as_test_x conftest$ac_exeext
9143 ac_cv_lib_guile_scm_boot_guile=yes
9145 $as_echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_cv_lib_guile_scm_boot_guile=no
9151 rm -rf conftest.dSYM
9152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9157 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9158 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_LIBGUILE 1
9163 LIBS="-lguile $LIBS"
9168 for ac_func in scm_boot_guile
9170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9172 $as_echo_n "checking for $ac_func... " >&6; }
9173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9174 $as_echo_n "(cached) " >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9184 #define $ac_func innocuous_$ac_func
9186 /* System header to define __stub macros and hopefully few prototypes,
9187 which can conflict with char $ac_func (); below.
9188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9189 <limits.h> exists even on freestanding compilers. */
9192 # include <limits.h>
9194 # include <assert.h>
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9206 /* The GNU C library defines this for functions which it implements
9207 to always fail with ENOSYS. Some functions are actually named
9208 something starting with __ and the normal name is an alias. */
9209 #if defined __stub_$ac_func || defined __stub___$ac_func
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (ac_try="$ac_link"
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9228 $as_echo "$ac_try_echo") >&5
9229 (eval "$ac_link") 2>conftest.er1
9231 grep -v '^ *+' conftest.er1 >conftest.err
9233 cat conftest.err >&5
9234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && {
9236 test -z "$ac_cxx_werror_flag" ||
9237 test ! -s conftest.err
9238 } && test -s conftest$ac_exeext && {
9239 test "$cross_compiling" = yes ||
9240 $as_test_x conftest$ac_exeext
9242 eval "$as_ac_var=yes"
9244 $as_echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 eval "$as_ac_var=no"
9250 rm -rf conftest.dSYM
9251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9252 conftest$ac_exeext conftest.$ac_ext
9254 ac_res=`eval 'as_val=${'$as_ac_var'}
9255 $as_echo "$as_val"'`
9256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9257 $as_echo "$ac_res" >&6; }
9258 as_val=`eval 'as_val=${'$as_ac_var'}
9259 $as_echo "$as_val"'`
9260 if test "x$as_val" = x""yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9270 if test "$libguile_b" = "no"; then
9271 warn='libguile (libguile-dev, guile-devel or guile-dev
9274 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9277 CPPFLAGS="$save_CPPFLAGS"
9279 cat >>confdefs.h <<_ACEOF
9280 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9283 cat >>confdefs.h <<_ACEOF
9284 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9287 cat >>confdefs.h <<_ACEOF
9288 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9294 # check for 3 typedefs added in Guile 1.9
9295 save_CXXFLAGS="$CXXFLAGS"
9296 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9297 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9298 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9299 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9300 $as_echo_n "(cached) " >&6
9302 ac_cv_type_scm_t_hash_fold_fn=no
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 #include <libguile.h>
9314 if (sizeof (scm_t_hash_fold_fn))
9320 rm -f conftest.$ac_objext
9321 if { (ac_try="$ac_compile"
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9327 $as_echo "$ac_try_echo") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9330 grep -v '^ *+' conftest.er1 >conftest.err
9332 cat conftest.err >&5
9333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_cxx_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 #include <libguile.h>
9349 if (sizeof ((scm_t_hash_fold_fn)))
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9362 $as_echo "$ac_try_echo") >&5
9363 (eval "$ac_compile") 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && {
9370 test -z "$ac_cxx_werror_flag" ||
9371 test ! -s conftest.err
9372 } && test -s conftest.$ac_objext; then
9375 $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9378 ac_cv_type_scm_t_hash_fold_fn=yes
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 $as_echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9392 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9393 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9395 cat >>confdefs.h <<_ACEOF
9396 #define HAVE_SCM_T_HASH_FOLD_FN 1
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_GUILE_HASH_FUNC 1
9404 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9405 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9406 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9407 $as_echo_n "(cached) " >&6
9409 ac_cv_type_scm_t_hash_handle_fn=no
9410 cat >conftest.$ac_ext <<_ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <libguile.h>
9421 if (sizeof (scm_t_hash_handle_fn))
9427 rm -f conftest.$ac_objext
9428 if { (ac_try="$ac_compile"
9430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431 *) ac_try_echo=$ac_try;;
9433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9434 $as_echo "$ac_try_echo") >&5
9435 (eval "$ac_compile") 2>conftest.er1
9437 grep -v '^ *+' conftest.er1 >conftest.err
9439 cat conftest.err >&5
9440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && {
9442 test -z "$ac_cxx_werror_flag" ||
9443 test ! -s conftest.err
9444 } && test -s conftest.$ac_objext; then
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 #include <libguile.h>
9456 if (sizeof ((scm_t_hash_handle_fn)))
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9469 $as_echo "$ac_try_echo") >&5
9470 (eval "$ac_compile") 2>conftest.er1
9472 grep -v '^ *+' conftest.er1 >conftest.err
9474 cat conftest.err >&5
9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && {
9477 test -z "$ac_cxx_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest.$ac_objext; then
9482 $as_echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_cv_type_scm_t_hash_handle_fn=yes
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 $as_echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9499 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9500 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9502 cat >>confdefs.h <<_ACEOF
9503 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9506 cat >>confdefs.h <<\_ACEOF
9507 #define HAVE_GUILE_HASH_FUNC 1
9512 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9513 $as_echo_n "checking for scm_t_subr... " >&6; }
9514 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9515 $as_echo_n "(cached) " >&6
9517 ac_cv_type_scm_t_subr=no
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <libguile.h>
9529 if (sizeof (scm_t_subr))
9535 rm -f conftest.$ac_objext
9536 if { (ac_try="$ac_compile"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543 (eval "$ac_compile") 2>conftest.er1
9545 grep -v '^ *+' conftest.er1 >conftest.err
9547 cat conftest.err >&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_cxx_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest.$ac_objext; then
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 #include <libguile.h>
9564 if (sizeof ((scm_t_subr)))
9570 rm -f conftest.$ac_objext
9571 if { (ac_try="$ac_compile"
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9577 $as_echo "$ac_try_echo") >&5
9578 (eval "$ac_compile") 2>conftest.er1
9580 grep -v '^ *+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && {
9585 test -z "$ac_cxx_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest.$ac_objext; then
9590 $as_echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_type_scm_t_subr=yes
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 $as_echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9607 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9608 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_SCM_T_SUBR 1
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_GUILE_SUBR_TYPE 1
9620 CXXFLAGS="$save_CXXFLAGS"
9622 ## Check for usable cxxabi
9624 LIBS="$LIBS $CXXABI_LIBS"
9625 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9626 $as_echo_n "checking for usable C++ demangler... " >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9637 abi::__cxa_demangle ("", 0, 0, 0)
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9649 $as_echo "$ac_try_echo") >&5
9650 (eval "$ac_link") 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && {
9657 test -z "$ac_cxx_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest$ac_exeext && {
9660 test "$cross_compiling" = yes ||
9661 $as_test_x conftest$ac_exeext
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_CXA_DEMANGLE 1
9667 { $as_echo "$as_me:$LINENO: result: yes" >&5
9668 $as_echo "yes" >&6; }
9670 $as_echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9674 LIBS="$LIBS -lsupc++"
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9685 abi::__cxa_demangle ("", 0, 0, 0)
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9697 $as_echo "$ac_try_echo") >&5
9698 (eval "$ac_link") 2>conftest.er1
9700 grep -v '^ *+' conftest.er1 >conftest.err
9702 cat conftest.err >&5
9703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_cxx_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest$ac_exeext && {
9708 test "$cross_compiling" = yes ||
9709 $as_test_x conftest$ac_exeext
9711 cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_CXA_DEMANGLE 1
9715 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9716 $as_echo "yes, using -lsupc++" >&6; }
9717 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9719 $as_echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9723 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9726 rm -rf conftest.dSYM
9727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9728 conftest$ac_exeext conftest.$ac_ext
9731 rm -rf conftest.dSYM
9732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9733 conftest$ac_exeext conftest.$ac_ext
9737 ## check rational bugfix.
9738 save_CPPFLAGS="$CPPFLAGS"
9739 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9740 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9741 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <libguile.h>
9749 #ifdef SCM_FRACTION_REDUCED_BIT
9754 if { (ac_try="$ac_cpp conftest.$ac_ext"
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } >/dev/null && {
9768 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9769 test ! -s conftest.err
9771 { $as_echo "$as_me:$LINENO: result: ok" >&5
9772 $as_echo "ok" >&6; }
9774 $as_echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9778 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9779 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9782 rm -f conftest.err conftest.$ac_ext
9783 CPPFLAGS="$save_CPPFLAGS"
9788 # Check whether --with-python-include was given.
9789 if test "${with_python_include+set}" = set; then
9790 withval=$with_python_include;
9791 if test "$withval" = "yes" -o "$withval" = "no"; then
9792 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9793 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9795 PYTHON_CFLAGS="-I${withval}"
9802 # Check whether --with-python-lib was given.
9803 if test "${with_python_lib+set}" = set; then
9804 withval=$with_python_lib;
9805 if test "$withval" = "yes" -o "$withval" = "no"; then
9806 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9807 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9809 LDFLAGS="$LDFLAGS -l${withval}"
9816 { $as_echo "$as_me:$LINENO: checking for python" >&5
9817 $as_echo_n "checking for python... " >&6; }
9820 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
9822 ## which doesn't work in ash, if /usr/bin/which isn't installed
9823 ## type -p doesn't work in ash
9824 ## command -v doesn't work in zsh
9825 ## command -v "$r" 2>&1
9826 ## this test should work in ash, bash, pdksh (ksh), zsh
9827 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9829 if ! $exe -V > /dev/null 2>&1 ; then
9833 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9836 ## Workaround for broken Debian gcc version string:
9837 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9839 ## -V: Workaround for python
9843 ## Assume and hunt for dotted version multiplet.
9844 ## use eval trickery, because we cannot use multi-level $() instead of ``
9845 ## for compatibility reasons.
9847 ## grab the first version number in --version output.
9848 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9849 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9852 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9853 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9856 if test -z "$_ver"; then
9857 ## If empty, try date [fontforge]
9858 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9859 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9861 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9867 echo "$ver" | awk -F. '
9869 if ($3) {three = $3}
9872 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9875 echo "2.4" | awk -F. '
9877 if ($3) {three = $3}
9880 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9883 echo "3.0" | awk -F. '
9885 if ($3) {three = $3}
9888 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9890 if test -n "2.4" && test "$num" -lt "$req"; then
9891 python="$r >= 2.4 (installed: $ver)"
9894 if test -n "3.0" && test "$num" -ge "$sup"; then
9895 python="$r < 3.0 (installed: $ver)"
9904 { $as_echo "$as_me:$LINENO: result: $found" >&5
9905 $as_echo "$found" >&6; }
9906 if test "$found" != "no"; then
9907 { $as_echo "$as_me:$LINENO: checking $python version" >&5
9908 $as_echo_n "checking $python version... " >&6; }
9909 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9910 $as_echo "$ver" >&6; }
9914 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
9917 # Extract the first word of "$PYTHON", so it can be a program name with args.
9918 set dummy $PYTHON; ac_word=$2
9919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if test "${ac_cv_path_PYTHON+set}" = set; then
9922 $as_echo_n "(cached) " >&6
9926 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 test -z "$as_dir" && as_dir=.
9934 for ac_exec_ext in '' $ac_executable_extensions; do
9935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 PYTHON=$ac_cv_path_PYTHON
9948 if test -n "$PYTHON"; then
9949 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
9950 $as_echo "$PYTHON" >&6; }
9952 { $as_echo "$as_me:$LINENO: result: no" >&5
9953 $as_echo "no" >&6; }
9959 for ac_prog in `basename $PYTHON`-config
9961 # Extract the first word of "$ac_prog", so it can be a program name with args.
9962 set dummy $ac_prog; ac_word=$2
9963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9966 $as_echo_n "(cached) " >&6
9968 if test -n "$PYTHON_CONFIG"; then
9969 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9989 if test -n "$PYTHON_CONFIG"; then
9990 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9991 $as_echo "$PYTHON_CONFIG" >&6; }
9993 { $as_echo "$as_me:$LINENO: result: no" >&5
9994 $as_echo "no" >&6; }
9998 test -n "$PYTHON_CONFIG" && break
10000 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10003 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10004 # Clean out junk: http://bugs.python.org/issue3290
10005 # Python headers may need some -f* flags, leave them in.
10006 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10007 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10008 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10009 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10010 # 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.
10011 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10012 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10015 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10017 # alternatively, for python >= 2.0
10018 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10019 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10020 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10024 if test -z "$PYTHON_HEADER"; then
10025 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10027 for ac_header in Python.h
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034 $as_echo_n "(cached) " >&6
10036 ac_res=`eval 'as_val=${'$as_ac_Header'}
10037 $as_echo "$as_val"'`
10038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10039 $as_echo "$ac_res" >&6; }
10041 # Is the header compilable?
10042 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10043 $as_echo_n "checking $ac_header usability... " >&6; }
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 #include <$ac_header>
10053 rm -f conftest.$ac_objext
10054 if { (ac_try="$ac_compile"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10060 $as_echo "$ac_try_echo") >&5
10061 (eval "$ac_compile") 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } && {
10068 test -z "$ac_cxx_werror_flag" ||
10069 test ! -s conftest.err
10070 } && test -s conftest.$ac_objext; then
10071 ac_header_compiler=yes
10073 $as_echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_header_compiler=no
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10081 $as_echo "$ac_header_compiler" >&6; }
10083 # Is the header present?
10084 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10085 $as_echo_n "checking $ac_header presence... " >&6; }
10086 cat >conftest.$ac_ext <<_ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 #include <$ac_header>
10094 if { (ac_try="$ac_cpp conftest.$ac_ext"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } >/dev/null && {
10108 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10109 test ! -s conftest.err
10111 ac_header_preproc=yes
10113 $as_echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_header_preproc=no
10119 rm -f conftest.err conftest.$ac_ext
10120 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10121 $as_echo "$ac_header_preproc" >&6; }
10123 # So? What about this header?
10124 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10127 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10130 ac_header_preproc=yes
10133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10134 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10136 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10138 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10140 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10142 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10144 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10149 $as_echo_n "checking for $ac_header... " >&6; }
10150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10151 $as_echo_n "(cached) " >&6
10153 eval "$as_ac_Header=\$ac_header_preproc"
10155 ac_res=`eval 'as_val=${'$as_ac_Header'}
10156 $as_echo "$as_val"'`
10157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10158 $as_echo "$ac_res" >&6; }
10161 as_val=`eval 'as_val=${'$as_ac_Header'}
10162 $as_echo "$as_val"'`
10163 if test "x$as_val" = x""yes; then
10164 cat >>confdefs.h <<_ACEOF
10165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10174 if test -z "$PYTHON_HEADER"; then
10175 warn="Python.h (python-devel, python-dev or libpython-dev package)"
10177 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10185 for ac_prog in fontforge
10187 # Extract the first word of "$ac_prog", so it can be a program name with args.
10188 set dummy $ac_prog; ac_word=$2
10189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10192 $as_echo_n "(cached) " >&6
10194 if test -n "$FONTFORGE"; then
10195 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10204 ac_cv_prog_FONTFORGE="$ac_prog"
10205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 FONTFORGE=$ac_cv_prog_FONTFORGE
10215 if test -n "$FONTFORGE"; then
10216 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10217 $as_echo "$FONTFORGE" >&6; }
10219 { $as_echo "$as_me:$LINENO: result: no" >&5
10220 $as_echo "no" >&6; }
10224 test -n "$FONTFORGE" && break
10226 test -n "$FONTFORGE" || FONTFORGE="no"
10230 r="`eval echo '$'"FONTFORGE"`"
10231 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10234 ##STEPMAKE_WARN(cannot find . )
10238 if test $? -ne 0; then
10240 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10242 if test "REQUIRED" = "REQUIRED"; then
10243 command="echo ERROR: fontforge not found"
10244 # abort configure process here?
10246 command="- echo fontforge not found"
10248 eval "FONTFORGE"='$command'
10254 if test $? -eq 0; then
10255 for ac_prog in fontforge
10257 # Extract the first word of "$ac_prog", so it can be a program name with args.
10258 set dummy $ac_prog; ac_word=$2
10259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10262 $as_echo_n "(cached) " >&6
10266 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 FONTFORGE=$ac_cv_path_FONTFORGE
10288 if test -n "$FONTFORGE"; then
10289 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10290 $as_echo "$FONTFORGE" >&6; }
10292 { $as_echo "$as_me:$LINENO: result: no" >&5
10293 $as_echo "no" >&6; }
10297 test -n "$FONTFORGE" && break
10300 if test -n "20110222"; then
10302 r="`eval echo '$'"FONTFORGE"`"
10303 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10304 $as_echo_n "checking $r version... " >&6; }
10306 ## which doesn't work in ash, if /usr/bin/which isn't installed
10307 ## type -p doesn't work in ash
10308 ## command -v doesn't work in zsh
10309 ## command -v "$r" 2>&1
10310 ## this test should work in ash, bash, pdksh (ksh), zsh
10311 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10313 if test -n ""; then
10317 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10320 ## Workaround for broken Debian gcc version string:
10321 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10323 ## -V: Workaround for python
10327 ## Assume and hunt for dotted version multiplet.
10328 ## use eval trickery, because we cannot use multi-level $() instead of ``
10329 ## for compatibility reasons.
10331 ## grab the first version number in --version output.
10332 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10333 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10336 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10337 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10340 if test -z "$_ver"; then
10341 ## If empty, try date [fontforge]
10342 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10343 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10345 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10352 echo "$ver" | awk -F. '
10354 if ($3) {three = $3}
10357 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10360 echo "20110222" | awk -F. '
10362 if ($3) {three = $3}
10365 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10367 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10368 $as_echo "$ver" >&6; }
10369 if test "$num" -lt "$req"; then
10371 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10374 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10375 eval `echo $vervar=$num`
10376 ## AC_SUBST(`eval echo $vervar`)
10383 for ac_prog in t1asm
10385 # Extract the first word of "$ac_prog", so it can be a program name with args.
10386 set dummy $ac_prog; ac_word=$2
10387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 $as_echo_n "checking for $ac_word... " >&6; }
10389 if test "${ac_cv_prog_T1ASM+set}" = set; then
10390 $as_echo_n "(cached) " >&6
10392 if test -n "$T1ASM"; then
10393 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_prog_T1ASM="$ac_prog"
10403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 T1ASM=$ac_cv_prog_T1ASM
10413 if test -n "$T1ASM"; then
10414 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10415 $as_echo "$T1ASM" >&6; }
10417 { $as_echo "$as_me:$LINENO: result: no" >&5
10418 $as_echo "no" >&6; }
10422 test -n "$T1ASM" && break
10424 test -n "$T1ASM" || T1ASM="no"
10428 r="`eval echo '$'"T1ASM"`"
10429 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10432 ##STEPMAKE_WARN(cannot find . )
10436 if test $? -ne 0; then
10438 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10440 if test "REQUIRED" = "REQUIRED"; then
10441 command="echo ERROR: t1asm not found"
10442 # abort configure process here?
10444 command="- echo t1asm not found"
10446 eval "T1ASM"='$command'
10452 if test $? -eq 0; then
10453 for ac_prog in t1asm
10455 # Extract the first word of "$ac_prog", so it can be a program name with args.
10456 set dummy $ac_prog; ac_word=$2
10457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if test "${ac_cv_path_T1ASM+set}" = set; then
10460 $as_echo_n "(cached) " >&6
10464 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10474 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 T1ASM=$ac_cv_path_T1ASM
10486 if test -n "$T1ASM"; then
10487 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10488 $as_echo "$T1ASM" >&6; }
10490 { $as_echo "$as_me:$LINENO: result: no" >&5
10491 $as_echo "no" >&6; }
10495 test -n "$T1ASM" && break
10498 if test -n ""; then
10500 r="`eval echo '$'"T1ASM"`"
10501 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10502 $as_echo_n "checking $r version... " >&6; }
10504 ## which doesn't work in ash, if /usr/bin/which isn't installed
10505 ## type -p doesn't work in ash
10506 ## command -v doesn't work in zsh
10507 ## command -v "$r" 2>&1
10508 ## this test should work in ash, bash, pdksh (ksh), zsh
10509 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10511 if test -n ""; then
10515 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10518 ## Workaround for broken Debian gcc version string:
10519 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10521 ## -V: Workaround for python
10525 ## Assume and hunt for dotted version multiplet.
10526 ## use eval trickery, because we cannot use multi-level $() instead of ``
10527 ## for compatibility reasons.
10529 ## grab the first version number in --version output.
10530 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10531 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10534 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10535 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10538 if test -z "$_ver"; then
10539 ## If empty, try date [fontforge]
10540 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10541 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10543 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10550 echo "$ver" | awk -F. '
10552 if ($3) {three = $3}
10555 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10558 echo "" | awk -F. '
10560 if ($3) {three = $3}
10563 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10565 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10566 $as_echo "$ver" >&6; }
10567 if test "$num" -lt "$req"; then
10569 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10572 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10573 eval `echo $vervar=$num`
10574 ## AC_SUBST(`eval echo $vervar`)
10587 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10592 $as_echo_n "checking for $ac_header... " >&6; }
10593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594 $as_echo_n "(cached) " >&6
10596 ac_res=`eval 'as_val=${'$as_ac_Header'}
10597 $as_echo "$as_val"'`
10598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10599 $as_echo "$ac_res" >&6; }
10601 # Is the header compilable?
10602 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10603 $as_echo_n "checking $ac_header usability... " >&6; }
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 $ac_includes_default
10611 #include <$ac_header>
10613 rm -f conftest.$ac_objext
10614 if { (ac_try="$ac_compile"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621 (eval "$ac_compile") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_cxx_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest.$ac_objext; then
10631 ac_header_compiler=yes
10633 $as_echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_header_compiler=no
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10641 $as_echo "$ac_header_compiler" >&6; }
10643 # Is the header present?
10644 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10645 $as_echo_n "checking $ac_header presence... " >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 #include <$ac_header>
10654 if { (ac_try="$ac_cpp conftest.$ac_ext"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660 $as_echo "$ac_try_echo") >&5
10661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null && {
10668 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10669 test ! -s conftest.err
10671 ac_header_preproc=yes
10673 $as_echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_header_preproc=no
10679 rm -f conftest.err conftest.$ac_ext
10680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 $as_echo "$ac_header_preproc" >&6; }
10683 # So? What about this header?
10684 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10690 ac_header_preproc=yes
10693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10704 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 $as_echo_n "checking for $ac_header... " >&6; }
10710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10711 $as_echo_n "(cached) " >&6
10713 eval "$as_ac_Header=\$ac_header_preproc"
10715 ac_res=`eval 'as_val=${'$as_ac_Header'}
10716 $as_echo "$as_val"'`
10717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10718 $as_echo "$ac_res" >&6; }
10721 as_val=`eval 'as_val=${'$as_ac_Header'}
10722 $as_echo "$as_val"'`
10723 if test "x$as_val" = x""yes; then
10724 cat >>confdefs.h <<_ACEOF
10725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10733 for ac_header in sstream
10735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10738 $as_echo_n "checking for $ac_header... " >&6; }
10739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10740 $as_echo_n "(cached) " >&6
10742 ac_res=`eval 'as_val=${'$as_ac_Header'}
10743 $as_echo "$as_val"'`
10744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10745 $as_echo "$ac_res" >&6; }
10747 # Is the header compilable?
10748 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10749 $as_echo_n "checking $ac_header usability... " >&6; }
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 $ac_includes_default
10757 #include <$ac_header>
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10766 $as_echo "$ac_try_echo") >&5
10767 (eval "$ac_compile") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_cxx_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest.$ac_objext; then
10777 ac_header_compiler=yes
10779 $as_echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_header_compiler=no
10785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10787 $as_echo "$ac_header_compiler" >&6; }
10789 # Is the header present?
10790 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10791 $as_echo_n "checking $ac_header presence... " >&6; }
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <$ac_header>
10800 if { (ac_try="$ac_cpp conftest.$ac_ext"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806 $as_echo "$ac_try_echo") >&5
10807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } >/dev/null && {
10814 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10815 test ! -s conftest.err
10817 ac_header_preproc=yes
10819 $as_echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 ac_header_preproc=no
10825 rm -f conftest.err conftest.$ac_ext
10826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10827 $as_echo "$ac_header_preproc" >&6; }
10829 # So? What about this header?
10830 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10833 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10836 ac_header_preproc=yes
10839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10840 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10842 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10844 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10846 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10850 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10855 $as_echo_n "checking for $ac_header... " >&6; }
10856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10857 $as_echo_n "(cached) " >&6
10859 eval "$as_ac_Header=\$ac_header_preproc"
10861 ac_res=`eval 'as_val=${'$as_ac_Header'}
10862 $as_echo "$as_val"'`
10863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10864 $as_echo "$ac_res" >&6; }
10867 as_val=`eval 'as_val=${'$as_ac_Header'}
10868 $as_echo "$as_val"'`
10869 if test "x$as_val" = x""yes; then
10870 cat >>confdefs.h <<_ACEOF
10871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10878 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10879 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10880 if test "${ac_cv_header_stat_broken+set}" = set; then
10881 $as_echo_n "(cached) " >&6
10883 cat >conftest.$ac_ext <<_ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <sys/types.h>
10890 #include <sys/stat.h>
10892 #if defined S_ISBLK && defined S_IFDIR
10893 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10896 #if defined S_ISBLK && defined S_IFCHR
10897 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10900 #if defined S_ISLNK && defined S_IFREG
10901 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10904 #if defined S_ISSOCK && defined S_IFREG
10905 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10916 $as_echo "$ac_try_echo") >&5
10917 (eval "$ac_compile") 2>conftest.er1
10919 grep -v '^ *+' conftest.er1 >conftest.err
10921 cat conftest.err >&5
10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_cxx_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
10927 ac_cv_header_stat_broken=no
10929 $as_echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 ac_cv_header_stat_broken=yes
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10938 $as_echo "$ac_cv_header_stat_broken" >&6; }
10939 if test $ac_cv_header_stat_broken = yes; then
10941 cat >>confdefs.h <<\_ACEOF
10942 #define STAT_MACROS_BROKEN 1
10947 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10948 $as_echo_n "checking for working memcmp... " >&6; }
10949 if test "${ac_cv_func_memcmp_working+set}" = set; then
10950 $as_echo_n "(cached) " >&6
10952 if test "$cross_compiling" = yes; then
10953 ac_cv_func_memcmp_working=no
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 $ac_includes_default
10966 /* Some versions of memcmp are not 8-bit clean. */
10967 char c0 = '\100', c1 = '\200', c2 = '\201';
10968 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10971 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10972 or more and with at least one buffer not starting on a 4-byte boundary.
10973 William Lewis provided this test program. */
10978 for (i = 0; i < 4; i++)
10982 strcpy (a, "--------01111111");
10983 strcpy (b, "--------10000000");
10984 if (memcmp (a, b, 16) >= 0)
10994 rm -f conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11001 $as_echo "$ac_try_echo") >&5
11002 (eval "$ac_link") 2>&5
11004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11011 $as_echo "$ac_try_echo") >&5
11012 (eval "$ac_try") 2>&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_func_memcmp_working=yes
11018 $as_echo "$as_me: program exited with status $ac_status" >&5
11019 $as_echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11022 ( exit $ac_status )
11023 ac_cv_func_memcmp_working=no
11025 rm -rf conftest.dSYM
11026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11032 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11033 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11034 *" memcmp.$ac_objext "* ) ;;
11035 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11041 for ac_func in vprintf
11043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11045 $as_echo_n "checking for $ac_func... " >&6; }
11046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11047 $as_echo_n "(cached) " >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11057 #define $ac_func innocuous_$ac_func
11059 /* System header to define __stub macros and hopefully few prototypes,
11060 which can conflict with char $ac_func (); below.
11061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062 <limits.h> exists even on freestanding compilers. */
11065 # include <limits.h>
11067 # include <assert.h>
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11079 /* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
11082 #if defined __stub_$ac_func || defined __stub___$ac_func
11089 return $ac_func ();
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102 (eval "$ac_link") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && {
11109 test -z "$ac_cxx_werror_flag" ||
11110 test ! -s conftest.err
11111 } && test -s conftest$ac_exeext && {
11112 test "$cross_compiling" = yes ||
11113 $as_test_x conftest$ac_exeext
11115 eval "$as_ac_var=yes"
11117 $as_echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 eval "$as_ac_var=no"
11123 rm -rf conftest.dSYM
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11127 ac_res=`eval 'as_val=${'$as_ac_var'}
11128 $as_echo "$as_val"'`
11129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11130 $as_echo "$ac_res" >&6; }
11131 as_val=`eval 'as_val=${'$as_ac_var'}
11132 $as_echo "$as_val"'`
11133 if test "x$as_val" = x""yes; then
11134 cat >>confdefs.h <<_ACEOF
11135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11138 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11139 $as_echo_n "checking for _doprnt... " >&6; }
11140 if test "${ac_cv_func__doprnt+set}" = set; then
11141 $as_echo_n "(cached) " >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define _doprnt innocuous__doprnt
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char _doprnt (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11159 # include <limits.h>
11161 # include <assert.h>
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11173 /* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
11176 #if defined __stub__doprnt || defined __stub____doprnt
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11195 $as_echo "$ac_try_echo") >&5
11196 (eval "$ac_link") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_cxx_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest$ac_exeext && {
11206 test "$cross_compiling" = yes ||
11207 $as_test_x conftest$ac_exeext
11209 ac_cv_func__doprnt=yes
11211 $as_echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ac_cv_func__doprnt=no
11217 rm -rf conftest.dSYM
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219 conftest$ac_exeext conftest.$ac_ext
11221 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11222 $as_echo "$ac_cv_func__doprnt" >&6; }
11223 if test "x$ac_cv_func__doprnt" = x""yes; then
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_DOPRNT 1
11242 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11246 $as_echo_n "checking for $ac_func... " >&6; }
11247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11248 $as_echo_n "(cached) " >&6
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11258 #define $ac_func innocuous_$ac_func
11260 /* System header to define __stub macros and hopefully few prototypes,
11261 which can conflict with char $ac_func (); below.
11262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263 <limits.h> exists even on freestanding compilers. */
11266 # include <limits.h>
11268 # include <assert.h>
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11280 /* The GNU C library defines this for functions which it implements
11281 to always fail with ENOSYS. Some functions are actually named
11282 something starting with __ and the normal name is an alias. */
11283 #if defined __stub_$ac_func || defined __stub___$ac_func
11290 return $ac_func ();
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303 (eval "$ac_link") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_cxx_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest$ac_exeext && {
11313 test "$cross_compiling" = yes ||
11314 $as_test_x conftest$ac_exeext
11316 eval "$as_ac_var=yes"
11318 $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 eval "$as_ac_var=no"
11324 rm -rf conftest.dSYM
11325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326 conftest$ac_exeext conftest.$ac_ext
11328 ac_res=`eval 'as_val=${'$as_ac_var'}
11329 $as_echo "$as_val"'`
11330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332 as_val=`eval 'as_val=${'$as_ac_var'}
11333 $as_echo "$as_val"'`
11334 if test "x$as_val" = x""yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 for ac_prog in pkg-config
11346 # Extract the first word of "$ac_prog", so it can be a program name with args.
11347 set dummy $ac_prog; ac_word=$2
11348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11351 $as_echo_n "(cached) " >&6
11353 if test -n "$PKG_CONFIG"; then
11354 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_prog_PKG_CONFIG="$ac_prog"
11364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11374 if test -n "$PKG_CONFIG"; then
11375 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11376 $as_echo "$PKG_CONFIG" >&6; }
11378 { $as_echo "$as_me:$LINENO: result: no" >&5
11379 $as_echo "no" >&6; }
11383 test -n "$PKG_CONFIG" && break
11385 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11389 r="`eval echo '$'"PKG_CONFIG"`"
11390 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11393 ##STEPMAKE_WARN(cannot find . )
11397 if test $? -ne 0; then
11399 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11401 if test "REQUIRED" = "REQUIRED"; then
11402 command="echo ERROR: pkg-config not found"
11403 # abort configure process here?
11405 command="- echo pkg-config not found"
11407 eval "PKG_CONFIG"='$command'
11413 if test $? -eq 0 -a -n "0.9.0"; then
11415 r="`eval echo '$'"PKG_CONFIG"`"
11416 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11417 $as_echo_n "checking $r version... " >&6; }
11419 ## which doesn't work in ash, if /usr/bin/which isn't installed
11420 ## type -p doesn't work in ash
11421 ## command -v doesn't work in zsh
11422 ## command -v "$r" 2>&1
11423 ## this test should work in ash, bash, pdksh (ksh), zsh
11424 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11426 if test -n ""; then
11430 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11433 ## Workaround for broken Debian gcc version string:
11434 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11436 ## -V: Workaround for python
11440 ## Assume and hunt for dotted version multiplet.
11441 ## use eval trickery, because we cannot use multi-level $() instead of ``
11442 ## for compatibility reasons.
11444 ## grab the first version number in --version output.
11445 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11446 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11449 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11450 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11453 if test -z "$_ver"; then
11454 ## If empty, try date [fontforge]
11455 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11456 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11458 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11465 echo "$ver" | awk -F. '
11467 if ($3) {three = $3}
11470 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11473 echo "0.9.0" | awk -F. '
11475 if ($3) {three = $3}
11478 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11480 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11481 $as_echo "$ver" >&6; }
11482 if test "$num" -lt "$req"; then
11484 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11487 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11488 eval `echo $vervar=$num`
11489 ## AC_SUBST(`eval echo $vervar`)
11494 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11495 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11496 if test "$reloc_b" = "yes"; then
11497 cat >>confdefs.h <<\_ACEOF
11498 #define ARGV0_RELOCATION 1
11502 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11503 $as_echo "$reloc_b" >&6; }
11505 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11506 $as_echo_n "checking for rpath linkage... " >&6; }
11507 if test "$rpath_b" = "yes"; then
11508 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11509 elif test "$rpath_b" != "no"; then
11510 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11512 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11513 $as_echo "$rpath_b" >&6; }
11515 HOST_ARCH=`$CC -dumpmachine`
11522 if test -z "$PKG_CONFIG"; then
11523 # Extract the first word of "pkg-config", so it can be a program name with args.
11524 set dummy pkg-config; ac_word=$2
11525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11528 $as_echo_n "(cached) " >&6
11530 case $PKG_CONFIG in
11532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11555 if test -n "$PKG_CONFIG"; then
11556 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11557 $as_echo "$PKG_CONFIG" >&6; }
11559 { $as_echo "$as_me:$LINENO: result: no" >&5
11560 $as_echo "no" >&6; }
11566 if test "$PKG_CONFIG" = "no" ; then
11567 echo "*** The pkg-config script could not be found. Make sure it is"
11568 echo "*** in your path, or set the PKG_CONFIG environment variable"
11569 echo "*** to the full path to pkg-config."
11570 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11572 PKG_CONFIG_MIN_VERSION=0.9.0
11573 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11574 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11575 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11577 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11578 { $as_echo "$as_me:$LINENO: result: yes" >&5
11579 $as_echo "yes" >&6; }
11582 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11583 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11584 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11585 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11586 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11588 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11589 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11590 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11591 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11592 $as_echo "$PANGO_FT2_LIBS" >&6; }
11594 PANGO_FT2_CFLAGS=""
11596 ## If we have a custom action on failure, don't print errors, but
11597 ## do set a variable so people can do so.
11598 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11607 if test $succeeded = yes; then
11613 if test "$have_pangoft2" = yes ; then
11614 cat >>confdefs.h <<\_ACEOF
11615 #define HAVE_PANGO16 1
11618 cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_PANGO_FT2 1
11622 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11623 save_CPPFLAGS="$CPPFLAGS"
11625 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11626 LIBS="$PANGO_FT2_LIBS $LIBS"
11628 for ac_header in pango/pangoft2.h
11630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 $as_echo_n "checking for $ac_header... " >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 $as_echo_n "(cached) " >&6
11637 ac_res=`eval 'as_val=${'$as_ac_Header'}
11638 $as_echo "$as_val"'`
11639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11640 $as_echo "$ac_res" >&6; }
11642 # Is the header compilable?
11643 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644 $as_echo_n "checking $ac_header usability... " >&6; }
11645 cat >conftest.$ac_ext <<_ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11652 #include <$ac_header>
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11661 $as_echo "$ac_try_echo") >&5
11662 (eval "$ac_compile") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1 >conftest.err
11666 cat conftest.err >&5
11667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_cxx_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest.$ac_objext; then
11672 ac_header_compiler=yes
11674 $as_echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 ac_header_compiler=no
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11682 $as_echo "$ac_header_compiler" >&6; }
11684 # Is the header present?
11685 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11686 $as_echo_n "checking $ac_header presence... " >&6; }
11687 cat >conftest.$ac_ext <<_ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 #include <$ac_header>
11695 if { (ac_try="$ac_cpp conftest.$ac_ext"
11696 case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701 $as_echo "$ac_try_echo") >&5
11702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } >/dev/null && {
11709 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11710 test ! -s conftest.err
11712 ac_header_preproc=yes
11714 $as_echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 ac_header_preproc=no
11720 rm -f conftest.err conftest.$ac_ext
11721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 $as_echo "$ac_header_preproc" >&6; }
11724 # So? What about this header?
11725 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731 ac_header_preproc=yes
11734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11741 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 $as_echo_n "checking for $ac_header... " >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 $as_echo_n "(cached) " >&6
11754 eval "$as_ac_Header=\$ac_header_preproc"
11756 ac_res=`eval 'as_val=${'$as_ac_Header'}
11757 $as_echo "$as_val"'`
11758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11759 $as_echo "$ac_res" >&6; }
11762 as_val=`eval 'as_val=${'$as_ac_Header'}
11763 $as_echo "$as_val"'`
11764 if test "x$as_val" = x""yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774 for ac_func in pango_ft2_font_map_create_context
11776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11778 $as_echo_n "checking for $ac_func... " >&6; }
11779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11780 $as_echo_n "(cached) " >&6
11782 cat >conftest.$ac_ext <<_ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11790 #define $ac_func innocuous_$ac_func
11792 /* System header to define __stub macros and hopefully few prototypes,
11793 which can conflict with char $ac_func (); below.
11794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11795 <limits.h> exists even on freestanding compilers. */
11798 # include <limits.h>
11800 # include <assert.h>
11805 /* Override any GCC internal prototype to avoid an error.
11806 Use char because int might match the return type of a GCC
11807 builtin and then its argument prototype would still apply. */
11812 /* The GNU C library defines this for functions which it implements
11813 to always fail with ENOSYS. Some functions are actually named
11814 something starting with __ and the normal name is an alias. */
11815 #if defined __stub_$ac_func || defined __stub___$ac_func
11822 return $ac_func ();
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (ac_try="$ac_link"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11834 $as_echo "$ac_try_echo") >&5
11835 (eval "$ac_link") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_cxx_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext && {
11845 test "$cross_compiling" = yes ||
11846 $as_test_x conftest$ac_exeext
11848 eval "$as_ac_var=yes"
11850 $as_echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 eval "$as_ac_var=no"
11856 rm -rf conftest.dSYM
11857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11858 conftest$ac_exeext conftest.$ac_ext
11860 ac_res=`eval 'as_val=${'$as_ac_var'}
11861 $as_echo "$as_val"'`
11862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11863 $as_echo "$ac_res" >&6; }
11864 as_val=`eval 'as_val=${'$as_ac_var'}
11865 $as_echo "$as_val"'`
11866 if test "x$as_val" = x""yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11876 CPPFLAGS="$save_CPPFLAGS"
11880 #r="libpangoft2-dev or pangoft2-devel"e
11881 r="libpango1.0-dev or pango?-devel"
11882 ver="`pkg-config --modversion pangoft2`"
11884 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11892 if test -z "$PKG_CONFIG"; then
11893 # Extract the first word of "pkg-config", so it can be a program name with args.
11894 set dummy pkg-config; ac_word=$2
11895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11898 $as_echo_n "(cached) " >&6
11900 case $PKG_CONFIG in
11902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11925 if test -n "$PKG_CONFIG"; then
11926 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11927 $as_echo "$PKG_CONFIG" >&6; }
11929 { $as_echo "$as_me:$LINENO: result: no" >&5
11930 $as_echo "no" >&6; }
11936 if test "$PKG_CONFIG" = "no" ; then
11937 echo "*** The pkg-config script could not be found. Make sure it is"
11938 echo "*** in your path, or set the PKG_CONFIG environment variable"
11939 echo "*** to the full path to pkg-config."
11940 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11942 PKG_CONFIG_MIN_VERSION=0.9.0
11943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11944 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11945 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11947 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11948 { $as_echo "$as_me:$LINENO: result: yes" >&5
11949 $as_echo "yes" >&6; }
11952 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11953 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11954 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11955 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11956 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11958 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11959 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11960 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11961 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11962 $as_echo "$FONTCONFIG_LIBS" >&6; }
11964 FONTCONFIG_CFLAGS=""
11966 ## If we have a custom action on failure, don't print errors, but
11967 ## do set a variable so people can do so.
11968 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11977 if test $succeeded = yes; then
11978 have_fontconfig=yes
11983 if test "$have_fontconfig" = yes ; then
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_FONTCONFIG 1
11988 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11989 save_CPPFLAGS="$CPPFLAGS"
11991 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11992 LIBS="$FONTCONFIG_LIBS $LIBS"
11995 CPPFLAGS="$save_CPPFLAGS"
11998 r="libfontconfig-dev or fontconfig-devel"
11999 ver="`pkg-config --modversion fontconfig`"
12001 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12009 if test -z "$PKG_CONFIG"; then
12010 # Extract the first word of "pkg-config", so it can be a program name with args.
12011 set dummy pkg-config; ac_word=$2
12012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12015 $as_echo_n "(cached) " >&6
12017 case $PKG_CONFIG in
12019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12042 if test -n "$PKG_CONFIG"; then
12043 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12044 $as_echo "$PKG_CONFIG" >&6; }
12046 { $as_echo "$as_me:$LINENO: result: no" >&5
12047 $as_echo "no" >&6; }
12053 if test "$PKG_CONFIG" = "no" ; then
12054 echo "*** The pkg-config script could not be found. Make sure it is"
12055 echo "*** in your path, or set the PKG_CONFIG environment variable"
12056 echo "*** to the full path to pkg-config."
12057 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12059 PKG_CONFIG_MIN_VERSION=0.9.0
12060 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12061 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12062 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12064 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12065 { $as_echo "$as_me:$LINENO: result: yes" >&5
12066 $as_echo "yes" >&6; }
12069 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12070 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12071 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12072 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12073 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12075 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12076 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12077 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12078 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12079 $as_echo "$FREETYPE2_LIBS" >&6; }
12081 FREETYPE2_CFLAGS=""
12083 ## If we have a custom action on failure, don't print errors, but
12084 ## do set a variable so people can do so.
12085 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12094 if test $succeeded = yes; then
12100 if test "$have_freetype2" = yes; then
12101 cat >>confdefs.h <<\_ACEOF
12102 #define HAVE_FREETYPE2 1
12105 save_CPPFLAGS="$CPPFLAGS"
12107 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12108 LIBS="$FREETYPE2_LIBS $LIBS"
12111 CPPFLAGS="$save_CPPFLAGS"
12115 #r="libfreetype2-dev or freetype2-devel"
12116 r="libfreetype6-dev or freetype?-devel"
12117 ver="`pkg-config --modversion freetype2`"
12119 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12125 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12126 $as_echo_n "checking host system type... " >&6; }
12127 if test "${ac_cv_host+set}" = set; then
12128 $as_echo_n "(cached) " >&6
12130 if test "x$host_alias" = x; then
12131 ac_cv_host=$ac_cv_build
12133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12134 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12135 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12136 { (exit 1); exit 1; }; }
12140 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12141 $as_echo "$ac_cv_host" >&6; }
12142 case $ac_cv_host in
12144 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12145 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12146 { (exit 1); exit 1; }; };;
12149 ac_save_IFS=$IFS; IFS='-'
12155 # Remember, the first character of IFS is used to create $*,
12156 # except with old shells:
12159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12163 *cygwin* ) CYGWIN=yes;;
12167 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12168 $as_echo_n "checking host system type... " >&6; }
12169 if test "${ac_cv_host+set}" = set; then
12170 $as_echo_n "(cached) " >&6
12172 if test "x$host_alias" = x; then
12173 ac_cv_host=$ac_cv_build
12175 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12176 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12177 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12178 { (exit 1); exit 1; }; }
12182 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12183 $as_echo "$ac_cv_host" >&6; }
12184 case $ac_cv_host in
12186 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12187 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12188 { (exit 1); exit 1; }; };;
12191 ac_save_IFS=$IFS; IFS='-'
12197 # Remember, the first character of IFS is used to create $*,
12198 # except with old shells:
12201 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12205 *mingw32* ) MINGW32=yes;;
12210 if test "$CYGWIN" = "yes"; then
12211 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12212 program_suffix=.exe
12213 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12214 elif test "$MINGW32" = "yes"; then
12217 program_suffix=.exe
12218 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12224 cat >>confdefs.h <<_ACEOF
12225 #define DIRSEP '${DIRSEP}'
12228 cat >>confdefs.h <<_ACEOF
12229 #define PATHSEP '${PATHSEP}'
12236 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12237 $as_echo_n "checking for some flavor of Windows... " >&6; }
12238 if test "$CYGWIN$MINGW32" = "nono"; then
12239 PLATFORM_WINDOWS=no
12241 PLATFORM_WINDOWS=yes
12243 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12244 $as_echo "$PLATFORM_WINDOWS" >&6; }
12247 for ac_prog in $target-windres windres
12249 # Extract the first word of "$ac_prog", so it can be a program name with args.
12250 set dummy $ac_prog; ac_word=$2
12251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_prog_WINDRES+set}" = set; then
12254 $as_echo_n "(cached) " >&6
12256 if test -n "$WINDRES"; then
12257 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266 ac_cv_prog_WINDRES="$ac_prog"
12267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 WINDRES=$ac_cv_prog_WINDRES
12277 if test -n "$WINDRES"; then
12278 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12279 $as_echo "$WINDRES" >&6; }
12281 { $as_echo "$as_me:$LINENO: result: no" >&5
12282 $as_echo "no" >&6; }
12286 test -n "$WINDRES" && break
12288 test -n "$WINDRES" || WINDRES="no"
12292 r="`eval echo '$'"WINDRES"`"
12293 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12296 ##STEPMAKE_WARN(cannot find . )
12300 if test $? -ne 0; then
12302 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12304 if test "x" = "REQUIRED"; then
12305 command="echo ERROR: $target-windres windres not found"
12306 # abort configure process here?
12308 command="- echo $target-windres windres not found"
12310 eval "WINDRES"='$command'
12316 if test $? -eq 0 -a -n ""; then
12318 r="`eval echo '$'"WINDRES"`"
12319 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12320 $as_echo_n "checking $r version... " >&6; }
12322 ## which doesn't work in ash, if /usr/bin/which isn't installed
12323 ## type -p doesn't work in ash
12324 ## command -v doesn't work in zsh
12325 ## command -v "$r" 2>&1
12326 ## this test should work in ash, bash, pdksh (ksh), zsh
12327 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12329 if test -n ""; then
12333 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12336 ## Workaround for broken Debian gcc version string:
12337 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12339 ## -V: Workaround for python
12343 ## Assume and hunt for dotted version multiplet.
12344 ## use eval trickery, because we cannot use multi-level $() instead of ``
12345 ## for compatibility reasons.
12347 ## grab the first version number in --version output.
12348 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12349 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12352 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12353 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12356 if test -z "$_ver"; then
12357 ## If empty, try date [fontforge]
12358 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12359 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12361 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12368 echo "$ver" | awk -F. '
12370 if ($3) {three = $3}
12373 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12376 echo "" | awk -F. '
12378 if ($3) {three = $3}
12381 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12383 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12384 $as_echo "$ver" >&6; }
12385 if test "$num" -lt "$req"; then
12387 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
12390 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12391 eval `echo $vervar=$num`
12392 ## AC_SUBST(`eval echo $vervar`)
12399 # guile executable for some scripts
12401 { $as_echo "$as_me:$LINENO: checking for guile" >&5
12402 $as_echo_n "checking for guile... " >&6; }
12405 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
12407 ## which doesn't work in ash, if /usr/bin/which isn't installed
12408 ## type -p doesn't work in ash
12409 ## command -v doesn't work in zsh
12410 ## command -v "$r" 2>&1
12411 ## this test should work in ash, bash, pdksh (ksh), zsh
12412 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12414 if ! $exe --version > /dev/null 2>&1 ; then
12418 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12421 ## Workaround for broken Debian gcc version string:
12422 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12424 ## -V: Workaround for python
12428 ## Assume and hunt for dotted version multiplet.
12429 ## use eval trickery, because we cannot use multi-level $() instead of ``
12430 ## for compatibility reasons.
12432 ## grab the first version number in --version output.
12433 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12434 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12437 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12438 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12441 if test -z "$_ver"; then
12442 ## If empty, try date [fontforge]
12443 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12444 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12446 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12452 echo "$ver" | awk -F. '
12454 if ($3) {three = $3}
12457 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12460 echo "1.8.2" | awk -F. '
12462 if ($3) {three = $3}
12465 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12468 echo "1.9.0" | awk -F. '
12470 if ($3) {three = $3}
12473 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12475 if test -n "1.8.2" && test "$num" -lt "$req"; then
12476 guile="$r >= 1.8.2 (installed: $ver)"
12479 if test -n "1.9.0" && test "$num" -ge "$sup"; then
12480 guile="$r < 1.9.0 (installed: $ver)"
12489 { $as_echo "$as_me:$LINENO: result: $found" >&5
12490 $as_echo "$found" >&6; }
12491 if test "$found" != "no"; then
12492 { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12493 $as_echo_n "checking $guile version... " >&6; }
12494 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12495 $as_echo "$ver" >&6; }
12499 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12503 for ac_prog in $GUILE
12505 # Extract the first word of "$ac_prog", so it can be a program name with args.
12506 set dummy $ac_prog; ac_word=$2
12507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if test "${ac_cv_prog_GUILE+set}" = set; then
12510 $as_echo_n "(cached) " >&6
12512 if test -n "$GUILE"; then
12513 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12522 ac_cv_prog_GUILE="$ac_prog"
12523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 GUILE=$ac_cv_prog_GUILE
12533 if test -n "$GUILE"; then
12534 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12535 $as_echo "$GUILE" >&6; }
12537 { $as_echo "$as_me:$LINENO: result: no" >&5
12538 $as_echo "no" >&6; }
12542 test -n "$GUILE" && break
12544 test -n "$GUILE" || GUILE="no"
12548 r="`eval echo '$'"GUILE"`"
12549 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12552 ##STEPMAKE_WARN(cannot find . )
12556 if test $? -ne 0; then
12558 eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12560 if test "" = "REQUIRED"; then
12561 command="echo ERROR: $GUILE not found"
12562 # abort configure process here?
12564 command="- echo $GUILE not found"
12566 eval "GUILE"='$command'
12572 if test $? -eq 0; then
12573 for ac_prog in $GUILE
12575 # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy $ac_prog; ac_word=$2
12577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if test "${ac_cv_path_GUILE+set}" = set; then
12580 $as_echo_n "(cached) " >&6
12584 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12594 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 GUILE=$ac_cv_path_GUILE
12606 if test -n "$GUILE"; then
12607 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12608 $as_echo "$GUILE" >&6; }
12610 { $as_echo "$as_me:$LINENO: result: no" >&5
12611 $as_echo "no" >&6; }
12615 test -n "$GUILE" && break
12618 if test -n ""; then
12620 r="`eval echo '$'"GUILE"`"
12621 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12622 $as_echo_n "checking $r version... " >&6; }
12624 ## which doesn't work in ash, if /usr/bin/which isn't installed
12625 ## type -p doesn't work in ash
12626 ## command -v doesn't work in zsh
12627 ## command -v "$r" 2>&1
12628 ## this test should work in ash, bash, pdksh (ksh), zsh
12629 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12631 if test -n ""; then
12635 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12638 ## Workaround for broken Debian gcc version string:
12639 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12641 ## -V: Workaround for python
12645 ## Assume and hunt for dotted version multiplet.
12646 ## use eval trickery, because we cannot use multi-level $() instead of ``
12647 ## for compatibility reasons.
12649 ## grab the first version number in --version output.
12650 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12651 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12654 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12655 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12658 if test -z "$_ver"; then
12659 ## If empty, try date [fontforge]
12660 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12661 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12663 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12670 echo "$ver" | awk -F. '
12672 if ($3) {three = $3}
12675 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12678 echo "" | awk -F. '
12680 if ($3) {three = $3}
12683 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12685 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12686 $as_echo "$ver" >&6; }
12687 if test "$num" -lt "$req"; then
12689 eval ""=\"`eval echo \"'$'\" \""$r >= (installed: $ver)"\"`\"
12692 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12693 eval `echo $vervar=$num`
12694 ## AC_SUBST(`eval echo $vervar`)
12701 # perl for help2man and for mf2pt1.pl
12704 for ac_prog in perl
12706 # Extract the first word of "$ac_prog", so it can be a program name with args.
12707 set dummy $ac_prog; ac_word=$2
12708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_PERL+set}" = set; then
12711 $as_echo_n "(cached) " >&6
12713 if test -n "$PERL"; then
12714 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_prog_PERL="$ac_prog"
12724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 PERL=$ac_cv_prog_PERL
12734 if test -n "$PERL"; then
12735 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12736 $as_echo "$PERL" >&6; }
12738 { $as_echo "$as_me:$LINENO: result: no" >&5
12739 $as_echo "no" >&6; }
12743 test -n "$PERL" && break
12745 test -n "$PERL" || PERL="no"
12749 r="`eval echo '$'"PERL"`"
12750 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12753 ##STEPMAKE_WARN(cannot find . )
12757 if test $? -ne 0; then
12759 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12761 if test "REQUIRED" = "REQUIRED"; then
12762 command="echo ERROR: perl not found"
12763 # abort configure process here?
12765 command="- echo perl not found"
12767 eval "PERL"='$command'
12773 if test $? -eq 0; then
12774 for ac_prog in perl
12776 # Extract the first word of "$ac_prog", so it can be a program name with args.
12777 set dummy $ac_prog; ac_word=$2
12778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12779 $as_echo_n "checking for $ac_word... " >&6; }
12780 if test "${ac_cv_path_PERL+set}" = set; then
12781 $as_echo_n "(cached) " >&6
12785 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12792 test -z "$as_dir" && as_dir=.
12793 for ac_exec_ext in '' $ac_executable_extensions; do
12794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 PERL=$ac_cv_path_PERL
12807 if test -n "$PERL"; then
12808 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12809 $as_echo "$PERL" >&6; }
12811 { $as_echo "$as_me:$LINENO: result: no" >&5
12812 $as_echo "no" >&6; }
12816 test -n "$PERL" && break
12819 if test -n ""; then
12821 r="`eval echo '$'"PERL"`"
12822 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12823 $as_echo_n "checking $r version... " >&6; }
12825 ## which doesn't work in ash, if /usr/bin/which isn't installed
12826 ## type -p doesn't work in ash
12827 ## command -v doesn't work in zsh
12828 ## command -v "$r" 2>&1
12829 ## this test should work in ash, bash, pdksh (ksh), zsh
12830 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12832 if test -n ""; then
12836 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12839 ## Workaround for broken Debian gcc version string:
12840 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12842 ## -V: Workaround for python
12846 ## Assume and hunt for dotted version multiplet.
12847 ## use eval trickery, because we cannot use multi-level $() instead of ``
12848 ## for compatibility reasons.
12850 ## grab the first version number in --version output.
12851 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12852 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12855 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12856 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12859 if test -z "$_ver"; then
12860 ## If empty, try date [fontforge]
12861 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12862 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12864 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12871 echo "$ver" | awk -F. '
12873 if ($3) {three = $3}
12876 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12879 echo "" | awk -F. '
12881 if ($3) {three = $3}
12884 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12886 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12887 $as_echo "$ver" >&6; }
12888 if test "$num" -lt "$req"; then
12890 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
12893 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12894 eval `echo $vervar=$num`
12895 ## AC_SUBST(`eval echo $vervar`)
12902 ## Optional tools for building documentation, website, extra fonts.
12903 if test "$DOCUMENTATION" = "yes"; then
12904 DOCUMENTATION_REQUIRED=REQUIRED
12906 DOCUMENTATION_REQUIRED=OPTIONAL
12912 # Extract the first word of "$ac_prog", so it can be a program name with args.
12913 set dummy $ac_prog; ac_word=$2
12914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
12917 $as_echo_n "(cached) " >&6
12919 if test -n "$GHOSTSCRIPT"; then
12920 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
12930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
12940 if test -n "$GHOSTSCRIPT"; then
12941 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
12942 $as_echo "$GHOSTSCRIPT" >&6; }
12944 { $as_echo "$as_me:$LINENO: result: no" >&5
12945 $as_echo "no" >&6; }
12949 test -n "$GHOSTSCRIPT" && break
12951 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
12955 r="`eval echo '$'"GHOSTSCRIPT"`"
12956 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
12959 ##STEPMAKE_WARN(cannot find . )
12963 if test $? -ne 0; then
12965 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
12967 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12968 command="echo ERROR: gs not found"
12969 # abort configure process here?
12971 command="- echo gs not found"
12973 eval "GHOSTSCRIPT"='$command'
12979 if test $? -eq 0; then
12982 # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
12987 $as_echo_n "(cached) " >&6
12989 case $GHOSTSCRIPT in
12991 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13001 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13013 if test -n "$GHOSTSCRIPT"; then
13014 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13015 $as_echo "$GHOSTSCRIPT" >&6; }
13017 { $as_echo "$as_me:$LINENO: result: no" >&5
13018 $as_echo "no" >&6; }
13022 test -n "$GHOSTSCRIPT" && break
13025 if test -n "8.60"; then
13027 r="`eval echo '$'"GHOSTSCRIPT"`"
13028 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13029 $as_echo_n "checking $r version... " >&6; }
13031 ## which doesn't work in ash, if /usr/bin/which isn't installed
13032 ## type -p doesn't work in ash
13033 ## command -v doesn't work in zsh
13034 ## command -v "$r" 2>&1
13035 ## this test should work in ash, bash, pdksh (ksh), zsh
13036 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13038 if test -n ""; then
13042 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13045 ## Workaround for broken Debian gcc version string:
13046 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13048 ## -V: Workaround for python
13052 ## Assume and hunt for dotted version multiplet.
13053 ## use eval trickery, because we cannot use multi-level $() instead of ``
13054 ## for compatibility reasons.
13056 ## grab the first version number in --version output.
13057 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13058 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13061 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13062 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13065 if test -z "$_ver"; then
13066 ## If empty, try date [fontforge]
13067 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13068 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13070 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13077 echo "$ver" | awk -F. '
13079 if ($3) {three = $3}
13082 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13085 echo "8.60" | awk -F. '
13087 if ($3) {three = $3}
13090 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13092 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13093 $as_echo "$ver" >&6; }
13094 if test "$num" -lt "$req"; then
13096 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13099 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13100 eval `echo $vervar=$num`
13101 ## AC_SUBST(`eval echo $vervar`)
13108 for ac_prog in makeinfo
13110 # Extract the first word of "$ac_prog", so it can be a program name with args.
13111 set dummy $ac_prog; ac_word=$2
13112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
13115 $as_echo_n "(cached) " >&6
13117 if test -n "$MAKEINFO"; then
13118 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_MAKEINFO="$ac_prog"
13128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 MAKEINFO=$ac_cv_prog_MAKEINFO
13138 if test -n "$MAKEINFO"; then
13139 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
13140 $as_echo "$MAKEINFO" >&6; }
13142 { $as_echo "$as_me:$LINENO: result: no" >&5
13143 $as_echo "no" >&6; }
13147 test -n "$MAKEINFO" && break
13149 test -n "$MAKEINFO" || MAKEINFO="no"
13153 r="`eval echo '$'"MAKEINFO"`"
13154 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
13157 ##STEPMAKE_WARN(cannot find . )
13161 if test $? -ne 0; then
13163 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
13165 if test "REQUIRED" = "REQUIRED"; then
13166 command="echo ERROR: makeinfo not found"
13167 # abort configure process here?
13169 command="- echo makeinfo not found"
13171 eval "MAKEINFO"='$command'
13177 if test $? -eq 0 -a -n "4.11"; then
13179 r="`eval echo '$'"MAKEINFO"`"
13180 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13181 $as_echo_n "checking $r version... " >&6; }
13183 ## which doesn't work in ash, if /usr/bin/which isn't installed
13184 ## type -p doesn't work in ash
13185 ## command -v doesn't work in zsh
13186 ## command -v "$r" 2>&1
13187 ## this test should work in ash, bash, pdksh (ksh), zsh
13188 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13190 if test -n ""; then
13194 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13197 ## Workaround for broken Debian gcc version string:
13198 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13200 ## -V: Workaround for python
13204 ## Assume and hunt for dotted version multiplet.
13205 ## use eval trickery, because we cannot use multi-level $() instead of ``
13206 ## for compatibility reasons.
13208 ## grab the first version number in --version output.
13209 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13210 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13213 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13214 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13217 if test -z "$_ver"; then
13218 ## If empty, try date [fontforge]
13219 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13220 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13222 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13229 echo "$ver" | awk -F. '
13231 if ($3) {three = $3}
13234 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13237 echo "4.11" | awk -F. '
13239 if ($3) {three = $3}
13242 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13244 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13245 $as_echo "$ver" >&6; }
13246 if test "$num" -lt "$req"; then
13248 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
13251 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
13252 eval `echo $vervar=$num`
13253 ## AC_SUBST(`eval echo $vervar`)
13258 for ac_prog in texi2html
13260 # Extract the first word of "$ac_prog", so it can be a program name with args.
13261 set dummy $ac_prog; ac_word=$2
13262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
13265 $as_echo_n "(cached) " >&6
13267 if test -n "$TEXI2HTML"; then
13268 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271 for as_dir in $PATH
13274 test -z "$as_dir" && as_dir=.
13275 for ac_exec_ext in '' $ac_executable_extensions; do
13276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277 ac_cv_prog_TEXI2HTML="$ac_prog"
13278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 TEXI2HTML=$ac_cv_prog_TEXI2HTML
13288 if test -n "$TEXI2HTML"; then
13289 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
13290 $as_echo "$TEXI2HTML" >&6; }
13292 { $as_echo "$as_me:$LINENO: result: no" >&5
13293 $as_echo "no" >&6; }
13297 test -n "$TEXI2HTML" && break
13299 test -n "$TEXI2HTML" || TEXI2HTML="no"
13303 r="`eval echo '$'"TEXI2HTML"`"
13304 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
13307 ##STEPMAKE_WARN(cannot find . )
13311 if test $? -ne 0; then
13313 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
13315 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13316 command="echo ERROR: texi2html not found"
13317 # abort configure process here?
13319 command="- echo texi2html not found"
13321 eval "TEXI2HTML"='$command'
13327 if test $? -eq 0 -a -n "1.82"; then
13329 r="`eval echo '$'"TEXI2HTML"`"
13330 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13331 $as_echo_n "checking $r version... " >&6; }
13333 ## which doesn't work in ash, if /usr/bin/which isn't installed
13334 ## type -p doesn't work in ash
13335 ## command -v doesn't work in zsh
13336 ## command -v "$r" 2>&1
13337 ## this test should work in ash, bash, pdksh (ksh), zsh
13338 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13340 if test -n ""; then
13344 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13347 ## Workaround for broken Debian gcc version string:
13348 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13350 ## -V: Workaround for python
13354 ## Assume and hunt for dotted version multiplet.
13355 ## use eval trickery, because we cannot use multi-level $() instead of ``
13356 ## for compatibility reasons.
13358 ## grab the first version number in --version output.
13359 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13360 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13363 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13364 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13367 if test -z "$_ver"; then
13368 ## If empty, try date [fontforge]
13369 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13370 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13372 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13379 echo "$ver" | awk -F. '
13381 if ($3) {three = $3}
13384 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13387 echo "1.82" | awk -F. '
13389 if ($3) {three = $3}
13392 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13394 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13395 $as_echo "$ver" >&6; }
13396 if test "$num" -lt "$req"; then
13398 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
13401 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
13402 eval `echo $vervar=$num`
13403 ## AC_SUBST(`eval echo $vervar`)
13408 for ac_prog in dblatex
13410 # Extract the first word of "$ac_prog", so it can be a program name with args.
13411 set dummy $ac_prog; ac_word=$2
13412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_DBLATEX+set}" = set; then
13415 $as_echo_n "(cached) " >&6
13417 if test -n "$DBLATEX"; then
13418 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_DBLATEX="$ac_prog"
13428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 DBLATEX=$ac_cv_prog_DBLATEX
13438 if test -n "$DBLATEX"; then
13439 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
13440 $as_echo "$DBLATEX" >&6; }
13442 { $as_echo "$as_me:$LINENO: result: no" >&5
13443 $as_echo "no" >&6; }
13447 test -n "$DBLATEX" && break
13449 test -n "$DBLATEX" || DBLATEX="no"
13453 r="`eval echo '$'"DBLATEX"`"
13454 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
13457 ##STEPMAKE_WARN(cannot find . )
13461 if test $? -ne 0; then
13463 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
13465 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13466 command="echo ERROR: dblatex not found"
13467 # abort configure process here?
13469 command="- echo dblatex not found"
13471 eval "DBLATEX"='$command'
13477 if test $? -eq 0 -a -n "0.1.4"; then
13479 r="`eval echo '$'"DBLATEX"`"
13480 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13481 $as_echo_n "checking $r version... " >&6; }
13483 ## which doesn't work in ash, if /usr/bin/which isn't installed
13484 ## type -p doesn't work in ash
13485 ## command -v doesn't work in zsh
13486 ## command -v "$r" 2>&1
13487 ## this test should work in ash, bash, pdksh (ksh), zsh
13488 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13490 if test -n ""; then
13494 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13497 ## Workaround for broken Debian gcc version string:
13498 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13500 ## -V: Workaround for python
13504 ## Assume and hunt for dotted version multiplet.
13505 ## use eval trickery, because we cannot use multi-level $() instead of ``
13506 ## for compatibility reasons.
13508 ## grab the first version number in --version output.
13509 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13510 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13513 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13514 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13517 if test -z "$_ver"; then
13518 ## If empty, try date [fontforge]
13519 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13520 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13522 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13529 echo "$ver" | awk -F. '
13531 if ($3) {three = $3}
13534 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13537 echo "0.1.4" | awk -F. '
13539 if ($3) {three = $3}
13542 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13544 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13545 $as_echo "$ver" >&6; }
13546 if test "$num" -lt "$req"; then
13548 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13551 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13552 eval `echo $vervar=$num`
13553 ## AC_SUBST(`eval echo $vervar`)
13558 for ac_prog in bibtex
13560 # Extract the first word of "$ac_prog", so it can be a program name with args.
13561 set dummy $ac_prog; ac_word=$2
13562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13565 $as_echo_n "(cached) " >&6
13567 if test -n "$BIBTEX"; then
13568 ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_BIBTEX="$ac_prog"
13578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 BIBTEX=$ac_cv_prog_BIBTEX
13588 if test -n "$BIBTEX"; then
13589 { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
13590 $as_echo "$BIBTEX" >&6; }
13592 { $as_echo "$as_me:$LINENO: result: no" >&5
13593 $as_echo "no" >&6; }
13597 test -n "$BIBTEX" && break
13599 test -n "$BIBTEX" || BIBTEX="no"
13603 r="`eval echo '$'"BIBTEX"`"
13604 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
13607 ##STEPMAKE_WARN(cannot find . )
13611 if test $? -ne 0; then
13613 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
13615 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13616 command="echo ERROR: bibtex not found"
13617 # abort configure process here?
13619 command="- echo bibtex not found"
13621 eval "BIBTEX"='$command'
13627 if test $? -eq 0 -a -n ""; then
13629 r="`eval echo '$'"BIBTEX"`"
13630 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13631 $as_echo_n "checking $r version... " >&6; }
13633 ## which doesn't work in ash, if /usr/bin/which isn't installed
13634 ## type -p doesn't work in ash
13635 ## command -v doesn't work in zsh
13636 ## command -v "$r" 2>&1
13637 ## this test should work in ash, bash, pdksh (ksh), zsh
13638 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13640 if test -n ""; then
13644 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13647 ## Workaround for broken Debian gcc version string:
13648 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13650 ## -V: Workaround for python
13654 ## Assume and hunt for dotted version multiplet.
13655 ## use eval trickery, because we cannot use multi-level $() instead of ``
13656 ## for compatibility reasons.
13658 ## grab the first version number in --version output.
13659 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13660 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13663 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13664 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13667 if test -z "$_ver"; then
13668 ## If empty, try date [fontforge]
13669 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13670 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13672 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13679 echo "$ver" | awk -F. '
13681 if ($3) {three = $3}
13684 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13687 echo "" | awk -F. '
13689 if ($3) {three = $3}
13692 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13694 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13695 $as_echo "$ver" >&6; }
13696 if test "$num" -lt "$req"; then
13698 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13701 vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
13702 eval `echo $vervar=$num`
13703 ## AC_SUBST(`eval echo $vervar`)
13708 for ac_prog in xelatex pdflatex
13710 # Extract the first word of "$ac_prog", so it can be a program name with args.
13711 set dummy $ac_prog; ac_word=$2
13712 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
13715 $as_echo_n "(cached) " >&6
13717 if test -n "$PDFLATEX"; then
13718 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13727 ac_cv_prog_PDFLATEX="$ac_prog"
13728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13737 PDFLATEX=$ac_cv_prog_PDFLATEX
13738 if test -n "$PDFLATEX"; then
13739 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
13740 $as_echo "$PDFLATEX" >&6; }
13742 { $as_echo "$as_me:$LINENO: result: no" >&5
13743 $as_echo "no" >&6; }
13747 test -n "$PDFLATEX" && break
13749 test -n "$PDFLATEX" || PDFLATEX="no"
13753 r="`eval echo '$'"PDFLATEX"`"
13754 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
13757 ##STEPMAKE_WARN(cannot find . )
13761 if test $? -ne 0; then
13763 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
13765 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13766 command="echo ERROR: xelatex pdflatex not found"
13767 # abort configure process here?
13769 command="- echo xelatex pdflatex not found"
13771 eval "PDFLATEX"='$command'
13777 if test $? -eq 0 -a -n ""; then
13779 r="`eval echo '$'"PDFLATEX"`"
13780 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13781 $as_echo_n "checking $r version... " >&6; }
13783 ## which doesn't work in ash, if /usr/bin/which isn't installed
13784 ## type -p doesn't work in ash
13785 ## command -v doesn't work in zsh
13786 ## command -v "$r" 2>&1
13787 ## this test should work in ash, bash, pdksh (ksh), zsh
13788 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13790 if test -n ""; then
13794 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13797 ## Workaround for broken Debian gcc version string:
13798 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13800 ## -V: Workaround for python
13804 ## Assume and hunt for dotted version multiplet.
13805 ## use eval trickery, because we cannot use multi-level $() instead of ``
13806 ## for compatibility reasons.
13808 ## grab the first version number in --version output.
13809 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13810 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13813 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13814 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13817 if test -z "$_ver"; then
13818 ## If empty, try date [fontforge]
13819 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13820 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13822 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13829 echo "$ver" | awk -F. '
13831 if ($3) {three = $3}
13834 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13837 echo "" | awk -F. '
13839 if ($3) {three = $3}
13842 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13844 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13845 $as_echo "$ver" >&6; }
13846 if test "$num" -lt "$req"; then
13848 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13851 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13852 eval `echo $vervar=$num`
13853 ## AC_SUBST(`eval echo $vervar`)
13857 if test "$PDFLATEX" = "xelatex"; then
13859 for ac_prog in xetex
13861 # Extract the first word of "$ac_prog", so it can be a program name with args.
13862 set dummy $ac_prog; ac_word=$2
13863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13864 $as_echo_n "checking for $ac_word... " >&6; }
13865 if test "${ac_cv_prog_PDFTEX+set}" = set; then
13866 $as_echo_n "(cached) " >&6
13868 if test -n "$PDFTEX"; then
13869 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
13877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13878 ac_cv_prog_PDFTEX="$ac_prog"
13879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 PDFTEX=$ac_cv_prog_PDFTEX
13889 if test -n "$PDFTEX"; then
13890 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
13891 $as_echo "$PDFTEX" >&6; }
13893 { $as_echo "$as_me:$LINENO: result: no" >&5
13894 $as_echo "no" >&6; }
13898 test -n "$PDFTEX" && break
13900 test -n "$PDFTEX" || PDFTEX="no"
13904 r="`eval echo '$'"PDFTEX"`"
13905 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
13908 ##STEPMAKE_WARN(cannot find . )
13912 if test $? -ne 0; then
13914 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
13916 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13917 command="echo ERROR: xetex not found"
13918 # abort configure process here?
13920 command="- echo xetex not found"
13922 eval "PDFTEX"='$command'
13928 if test $? -eq 0 -a -n ""; then
13930 r="`eval echo '$'"PDFTEX"`"
13931 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13932 $as_echo_n "checking $r version... " >&6; }
13934 ## which doesn't work in ash, if /usr/bin/which isn't installed
13935 ## type -p doesn't work in ash
13936 ## command -v doesn't work in zsh
13937 ## command -v "$r" 2>&1
13938 ## this test should work in ash, bash, pdksh (ksh), zsh
13939 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13941 if test -n ""; then
13945 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13948 ## Workaround for broken Debian gcc version string:
13949 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13951 ## -V: Workaround for python
13955 ## Assume and hunt for dotted version multiplet.
13956 ## use eval trickery, because we cannot use multi-level $() instead of ``
13957 ## for compatibility reasons.
13959 ## grab the first version number in --version output.
13960 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13961 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13964 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13965 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13968 if test -z "$_ver"; then
13969 ## If empty, try date [fontforge]
13970 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13971 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13973 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13980 echo "$ver" | awk -F. '
13982 if ($3) {three = $3}
13985 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13988 echo "" | awk -F. '
13990 if ($3) {three = $3}
13993 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13995 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13996 $as_echo "$ver" >&6; }
13997 if test "$num" -lt "$req"; then
13999 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14002 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14003 eval `echo $vervar=$num`
14004 ## AC_SUBST(`eval echo $vervar`)
14008 if test "$PDFTEX" = "xetex"; then
14009 # For avoiding PDF destination name replacement.
14010 PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
14014 for ac_prog in pdfetex pdftex etex
14016 # Extract the first word of "$ac_prog", so it can be a program name with args.
14017 set dummy $ac_prog; ac_word=$2
14018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14019 $as_echo_n "checking for $ac_word... " >&6; }
14020 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14021 $as_echo_n "(cached) " >&6
14023 if test -n "$PDFTEX"; then
14024 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14027 for as_dir in $PATH
14030 test -z "$as_dir" && as_dir=.
14031 for ac_exec_ext in '' $ac_executable_extensions; do
14032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14033 ac_cv_prog_PDFTEX="$ac_prog"
14034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 PDFTEX=$ac_cv_prog_PDFTEX
14044 if test -n "$PDFTEX"; then
14045 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14046 $as_echo "$PDFTEX" >&6; }
14048 { $as_echo "$as_me:$LINENO: result: no" >&5
14049 $as_echo "no" >&6; }
14053 test -n "$PDFTEX" && break
14055 test -n "$PDFTEX" || PDFTEX="no"
14059 r="`eval echo '$'"PDFTEX"`"
14060 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14063 ##STEPMAKE_WARN(cannot find . )
14067 if test $? -ne 0; then
14069 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
14071 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14072 command="echo ERROR: pdfetex pdftex etex not found"
14073 # abort configure process here?
14075 command="- echo pdfetex pdftex etex not found"
14077 eval "PDFTEX"='$command'
14083 if test $? -eq 0 -a -n ""; then
14085 r="`eval echo '$'"PDFTEX"`"
14086 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14087 $as_echo_n "checking $r version... " >&6; }
14089 ## which doesn't work in ash, if /usr/bin/which isn't installed
14090 ## type -p doesn't work in ash
14091 ## command -v doesn't work in zsh
14092 ## command -v "$r" 2>&1
14093 ## this test should work in ash, bash, pdksh (ksh), zsh
14094 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14096 if test -n ""; then
14100 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14103 ## Workaround for broken Debian gcc version string:
14104 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14106 ## -V: Workaround for python
14110 ## Assume and hunt for dotted version multiplet.
14111 ## use eval trickery, because we cannot use multi-level $() instead of ``
14112 ## for compatibility reasons.
14114 ## grab the first version number in --version output.
14115 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14116 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14119 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14120 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14123 if test -z "$_ver"; then
14124 ## If empty, try date [fontforge]
14125 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14126 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14128 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14135 echo "$ver" | awk -F. '
14137 if ($3) {three = $3}
14140 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14143 echo "" | awk -F. '
14145 if ($3) {three = $3}
14148 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14150 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14151 $as_echo "$ver" >&6; }
14152 if test "$num" -lt "$req"; then
14154 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14157 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14158 eval `echo $vervar=$num`
14159 ## AC_SUBST(`eval echo $vervar`)
14165 for ac_prog in texi2pdf
14167 # Extract the first word of "$ac_prog", so it can be a program name with args.
14168 set dummy $ac_prog; ac_word=$2
14169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
14172 $as_echo_n "(cached) " >&6
14174 if test -n "$TEXI2PDF"; then
14175 ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_TEXI2PDF="$ac_prog"
14185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 TEXI2PDF=$ac_cv_prog_TEXI2PDF
14195 if test -n "$TEXI2PDF"; then
14196 { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
14197 $as_echo "$TEXI2PDF" >&6; }
14199 { $as_echo "$as_me:$LINENO: result: no" >&5
14200 $as_echo "no" >&6; }
14204 test -n "$TEXI2PDF" && break
14206 test -n "$TEXI2PDF" || TEXI2PDF="no"
14210 r="`eval echo '$'"TEXI2PDF"`"
14211 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
14214 ##STEPMAKE_WARN(cannot find . )
14218 if test $? -ne 0; then
14220 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
14222 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14223 command="echo ERROR: texi2pdf not found"
14224 # abort configure process here?
14226 command="- echo texi2pdf not found"
14228 eval "TEXI2PDF"='$command'
14234 if test $? -eq 0 -a -n ""; then
14236 r="`eval echo '$'"TEXI2PDF"`"
14237 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14238 $as_echo_n "checking $r version... " >&6; }
14240 ## which doesn't work in ash, if /usr/bin/which isn't installed
14241 ## type -p doesn't work in ash
14242 ## command -v doesn't work in zsh
14243 ## command -v "$r" 2>&1
14244 ## this test should work in ash, bash, pdksh (ksh), zsh
14245 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14247 if test -n ""; then
14251 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14254 ## Workaround for broken Debian gcc version string:
14255 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14257 ## -V: Workaround for python
14261 ## Assume and hunt for dotted version multiplet.
14262 ## use eval trickery, because we cannot use multi-level $() instead of ``
14263 ## for compatibility reasons.
14265 ## grab the first version number in --version output.
14266 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14267 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14270 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14271 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14274 if test -z "$_ver"; then
14275 ## If empty, try date [fontforge]
14276 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14277 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14279 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14286 echo "$ver" | awk -F. '
14288 if ($3) {three = $3}
14291 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14294 echo "" | awk -F. '
14296 if ($3) {three = $3}
14299 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14301 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14302 $as_echo "$ver" >&6; }
14303 if test "$num" -lt "$req"; then
14305 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14308 vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
14309 eval `echo $vervar=$num`
14310 ## AC_SUBST(`eval echo $vervar`)
14315 for ac_prog in texindex
14317 # Extract the first word of "$ac_prog", so it can be a program name with args.
14318 set dummy $ac_prog; ac_word=$2
14319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
14322 $as_echo_n "(cached) " >&6
14324 if test -n "$TEXINDEX"; then
14325 ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14334 ac_cv_prog_TEXINDEX="$ac_prog"
14335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 TEXINDEX=$ac_cv_prog_TEXINDEX
14345 if test -n "$TEXINDEX"; then
14346 { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
14347 $as_echo "$TEXINDEX" >&6; }
14349 { $as_echo "$as_me:$LINENO: result: no" >&5
14350 $as_echo "no" >&6; }
14354 test -n "$TEXINDEX" && break
14356 test -n "$TEXINDEX" || TEXINDEX="no"
14360 r="`eval echo '$'"TEXINDEX"`"
14361 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
14364 ##STEPMAKE_WARN(cannot find . )
14368 if test $? -ne 0; then
14370 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
14372 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14373 command="echo ERROR: texindex not found"
14374 # abort configure process here?
14376 command="- echo texindex not found"
14378 eval "TEXINDEX"='$command'
14384 if test $? -eq 0 -a -n ""; then
14386 r="`eval echo '$'"TEXINDEX"`"
14387 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14388 $as_echo_n "checking $r version... " >&6; }
14390 ## which doesn't work in ash, if /usr/bin/which isn't installed
14391 ## type -p doesn't work in ash
14392 ## command -v doesn't work in zsh
14393 ## command -v "$r" 2>&1
14394 ## this test should work in ash, bash, pdksh (ksh), zsh
14395 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14397 if test -n ""; then
14401 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14404 ## Workaround for broken Debian gcc version string:
14405 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14407 ## -V: Workaround for python
14411 ## Assume and hunt for dotted version multiplet.
14412 ## use eval trickery, because we cannot use multi-level $() instead of ``
14413 ## for compatibility reasons.
14415 ## grab the first version number in --version output.
14416 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14417 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14420 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14421 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14424 if test -z "$_ver"; then
14425 ## If empty, try date [fontforge]
14426 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14427 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14429 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14436 echo "$ver" | awk -F. '
14438 if ($3) {three = $3}
14441 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14444 echo "" | awk -F. '
14446 if ($3) {three = $3}
14449 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14451 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14452 $as_echo "$ver" >&6; }
14453 if test "$num" -lt "$req"; then
14455 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14458 vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
14459 eval `echo $vervar=$num`
14460 ## AC_SUBST(`eval echo $vervar`)
14464 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
14465 $as_echo_n "checking for epsf.tex... " >&6; }
14466 TEX_EPSF=`kpsewhich tex epsf`
14467 if test "$TEX_EPSF" = ""; then
14468 { $as_echo "$as_me:$LINENO: result: not found" >&5
14469 $as_echo "not found" >&6; }
14471 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
14474 { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
14475 $as_echo "$TEX_EPSF" >&6; }
14477 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
14478 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
14479 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
14480 if test "$TEX_FIKPARM" = ""; then
14481 { $as_echo "$as_me:$LINENO: result: not found" >&5
14482 $as_echo "not found" >&6; }
14484 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
14487 { $as_echo "$as_me:$LINENO: result: yes" >&5
14488 $as_echo "yes" >&6; }
14491 for ac_prog in pngtopnm
14493 # Extract the first word of "$ac_prog", so it can be a program name with args.
14494 set dummy $ac_prog; ac_word=$2
14495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if test "${ac_cv_prog_NETPBM+set}" = set; then
14498 $as_echo_n "(cached) " >&6
14500 if test -n "$NETPBM"; then
14501 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14510 ac_cv_prog_NETPBM="$ac_prog"
14511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14520 NETPBM=$ac_cv_prog_NETPBM
14521 if test -n "$NETPBM"; then
14522 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
14523 $as_echo "$NETPBM" >&6; }
14525 { $as_echo "$as_me:$LINENO: result: no" >&5
14526 $as_echo "no" >&6; }
14530 test -n "$NETPBM" && break
14532 test -n "$NETPBM" || NETPBM="no"
14536 r="`eval echo '$'"NETPBM"`"
14537 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
14540 ##STEPMAKE_WARN(cannot find . )
14544 if test $? -ne 0; then
14546 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
14548 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14549 command="echo ERROR: pngtopnm not found"
14550 # abort configure process here?
14552 command="- echo pngtopnm not found"
14554 eval "NETPBM"='$command'
14560 if test $? -eq 0 -a -n ""; then
14562 r="`eval echo '$'"NETPBM"`"
14563 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14564 $as_echo_n "checking $r version... " >&6; }
14566 ## which doesn't work in ash, if /usr/bin/which isn't installed
14567 ## type -p doesn't work in ash
14568 ## command -v doesn't work in zsh
14569 ## command -v "$r" 2>&1
14570 ## this test should work in ash, bash, pdksh (ksh), zsh
14571 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14573 if test -n ""; then
14577 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14580 ## Workaround for broken Debian gcc version string:
14581 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14583 ## -V: Workaround for python
14587 ## Assume and hunt for dotted version multiplet.
14588 ## use eval trickery, because we cannot use multi-level $() instead of ``
14589 ## for compatibility reasons.
14591 ## grab the first version number in --version output.
14592 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14593 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14596 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14597 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14600 if test -z "$_ver"; then
14601 ## If empty, try date [fontforge]
14602 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14603 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14605 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14612 echo "$ver" | awk -F. '
14614 if ($3) {three = $3}
14617 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14620 echo "" | awk -F. '
14622 if ($3) {three = $3}
14625 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14627 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14628 $as_echo "$ver" >&6; }
14629 if test "$num" -lt "$req"; then
14631 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14634 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
14635 eval `echo $vervar=$num`
14636 ## AC_SUBST(`eval echo $vervar`)
14641 for ac_prog in convert
14643 # Extract the first word of "$ac_prog", so it can be a program name with args.
14644 set dummy $ac_prog; ac_word=$2
14645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14646 $as_echo_n "checking for $ac_word... " >&6; }
14647 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
14648 $as_echo_n "(cached) " >&6
14650 if test -n "$IMAGEMAGICK"; then
14651 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14657 test -z "$as_dir" && as_dir=.
14658 for ac_exec_ext in '' $ac_executable_extensions; do
14659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14660 ac_cv_prog_IMAGEMAGICK="$ac_prog"
14661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
14671 if test -n "$IMAGEMAGICK"; then
14672 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
14673 $as_echo "$IMAGEMAGICK" >&6; }
14675 { $as_echo "$as_me:$LINENO: result: no" >&5
14676 $as_echo "no" >&6; }
14680 test -n "$IMAGEMAGICK" && break
14682 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
14686 r="`eval echo '$'"IMAGEMAGICK"`"
14687 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
14690 ##STEPMAKE_WARN(cannot find . )
14694 if test $? -ne 0; then
14696 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
14698 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14699 command="echo ERROR: convert not found"
14700 # abort configure process here?
14702 command="- echo convert not found"
14704 eval "IMAGEMAGICK"='$command'
14710 if test $? -eq 0 -a -n ""; then
14712 r="`eval echo '$'"IMAGEMAGICK"`"
14713 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14714 $as_echo_n "checking $r version... " >&6; }
14716 ## which doesn't work in ash, if /usr/bin/which isn't installed
14717 ## type -p doesn't work in ash
14718 ## command -v doesn't work in zsh
14719 ## command -v "$r" 2>&1
14720 ## this test should work in ash, bash, pdksh (ksh), zsh
14721 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14723 if test -n ""; then
14727 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14730 ## Workaround for broken Debian gcc version string:
14731 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14733 ## -V: Workaround for python
14737 ## Assume and hunt for dotted version multiplet.
14738 ## use eval trickery, because we cannot use multi-level $() instead of ``
14739 ## for compatibility reasons.
14741 ## grab the first version number in --version output.
14742 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14743 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14746 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14747 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14750 if test -z "$_ver"; then
14751 ## If empty, try date [fontforge]
14752 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14753 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14755 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14762 echo "$ver" | awk -F. '
14764 if ($3) {three = $3}
14767 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14770 echo "" | awk -F. '
14772 if ($3) {three = $3}
14775 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14777 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14778 $as_echo "$ver" >&6; }
14779 if test "$num" -lt "$req"; then
14781 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14784 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
14785 eval `echo $vervar=$num`
14786 ## AC_SUBST(`eval echo $vervar`)
14790 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
14794 # Extract the first word of "$ac_prog", so it can be a program name with args.
14795 set dummy $ac_prog; ac_word=$2
14796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
14799 $as_echo_n "(cached) " >&6
14801 if test -n "$ZIPDOC"; then
14802 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14811 ac_cv_prog_ZIPDOC="$ac_prog"
14812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14821 ZIPDOC=$ac_cv_prog_ZIPDOC
14822 if test -n "$ZIPDOC"; then
14823 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
14824 $as_echo "$ZIPDOC" >&6; }
14826 { $as_echo "$as_me:$LINENO: result: no" >&5
14827 $as_echo "no" >&6; }
14831 test -n "$ZIPDOC" && break
14833 test -n "$ZIPDOC" || ZIPDOC="no"
14837 r="`eval echo '$'"ZIPDOC"`"
14838 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
14841 ##STEPMAKE_WARN(cannot find . )
14845 if test $? -ne 0; then
14847 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
14849 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14850 command="echo ERROR: zip not found"
14851 # abort configure process here?
14853 command="- echo zip not found"
14855 eval "ZIPDOC"='$command'
14861 if test $? -eq 0 -a -n ""; then
14863 r="`eval echo '$'"ZIPDOC"`"
14864 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14865 $as_echo_n "checking $r version... " >&6; }
14867 ## which doesn't work in ash, if /usr/bin/which isn't installed
14868 ## type -p doesn't work in ash
14869 ## command -v doesn't work in zsh
14870 ## command -v "$r" 2>&1
14871 ## this test should work in ash, bash, pdksh (ksh), zsh
14872 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14874 if test -n ""; then
14878 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14881 ## Workaround for broken Debian gcc version string:
14882 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14884 ## -V: Workaround for python
14888 ## Assume and hunt for dotted version multiplet.
14889 ## use eval trickery, because we cannot use multi-level $() instead of ``
14890 ## for compatibility reasons.
14892 ## grab the first version number in --version output.
14893 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14894 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14897 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14898 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14901 if test -z "$_ver"; then
14902 ## If empty, try date [fontforge]
14903 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14904 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14906 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14913 echo "$ver" | awk -F. '
14915 if ($3) {three = $3}
14918 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14921 echo "" | awk -F. '
14923 if ($3) {three = $3}
14926 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14928 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14929 $as_echo "$ver" >&6; }
14930 if test "$num" -lt "$req"; then
14932 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14935 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
14936 eval `echo $vervar=$num`
14937 ## AC_SUBST(`eval echo $vervar`)
14942 for ac_prog in rsync
14944 # Extract the first word of "$ac_prog", so it can be a program name with args.
14945 set dummy $ac_prog; ac_word=$2
14946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14947 $as_echo_n "checking for $ac_word... " >&6; }
14948 if test "${ac_cv_prog_RSYNC+set}" = set; then
14949 $as_echo_n "(cached) " >&6
14951 if test -n "$RSYNC"; then
14952 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
14954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955 for as_dir in $PATH
14958 test -z "$as_dir" && as_dir=.
14959 for ac_exec_ext in '' $ac_executable_extensions; do
14960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14961 ac_cv_prog_RSYNC="$ac_prog"
14962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14971 RSYNC=$ac_cv_prog_RSYNC
14972 if test -n "$RSYNC"; then
14973 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
14974 $as_echo "$RSYNC" >&6; }
14976 { $as_echo "$as_me:$LINENO: result: no" >&5
14977 $as_echo "no" >&6; }
14981 test -n "$RSYNC" && break
14983 test -n "$RSYNC" || RSYNC="no"
14987 r="`eval echo '$'"RSYNC"`"
14988 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
14991 ##STEPMAKE_WARN(cannot find . )
14995 if test $? -ne 0; then
14997 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
14999 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15000 command="echo ERROR: rsync not found"
15001 # abort configure process here?
15003 command="- echo rsync not found"
15005 eval "RSYNC"='$command'
15011 if test $? -eq 0 -a -n ""; then
15013 r="`eval echo '$'"RSYNC"`"
15014 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15015 $as_echo_n "checking $r version... " >&6; }
15017 ## which doesn't work in ash, if /usr/bin/which isn't installed
15018 ## type -p doesn't work in ash
15019 ## command -v doesn't work in zsh
15020 ## command -v "$r" 2>&1
15021 ## this test should work in ash, bash, pdksh (ksh), zsh
15022 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15024 if test -n ""; then
15028 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15031 ## Workaround for broken Debian gcc version string:
15032 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15034 ## -V: Workaround for python
15038 ## Assume and hunt for dotted version multiplet.
15039 ## use eval trickery, because we cannot use multi-level $() instead of ``
15040 ## for compatibility reasons.
15042 ## grab the first version number in --version output.
15043 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15044 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15047 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15048 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15051 if test -z "$_ver"; then
15052 ## If empty, try date [fontforge]
15053 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15054 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15056 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15063 echo "$ver" | awk -F. '
15065 if ($3) {three = $3}
15068 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15071 echo "" | awk -F. '
15073 if ($3) {three = $3}
15076 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15078 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15079 $as_echo "$ver" >&6; }
15080 if test "$num" -lt "$req"; then
15082 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15085 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
15086 eval `echo $vervar=$num`
15087 ## AC_SUBST(`eval echo $vervar`)
15092 cat >>confdefs.h <<_ACEOF
15093 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
15097 # must also have local.make if configure fails.
15100 if test "$reloc_b$rpath_b" = "yesno"; then
15102 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
15103 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
15108 # Gather requirements and generate output.
15111 # undo expanding of explicit --infodir=/usr/share
15112 # to ease install-time override with prefix=...
15113 strip=`echo $includedir | eval sed s@^$prefix@@`
15114 if test "$includedir" = "`eval echo $prefix$strip`"; then
15115 includedir='${prefix}'$strip''
15117 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
15118 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
15119 libdir='${exec_prefix}'$strip''
15121 strip=`echo $infodir | eval sed s@^$datarootdir@@`
15122 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
15123 infodir='${datarootdir}'$strip''
15125 strip=`echo $mandir | eval sed s@^$datarootdir@@`
15126 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
15127 mandir='${datarootdir}'$strip''
15134 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
15136 cat >confcache <<\_ACEOF
15137 # This file is a shell script that caches the results of configure
15138 # tests run on this system so they can be shared between configure
15139 # scripts and configure runs, see configure's option --config-cache.
15140 # It is not useful on other systems. If it contains results you don't
15141 # want to keep, you may remove or edit it.
15143 # config.status only pays attention to the cache file if you give it
15144 # the --recheck option to rerun configure.
15146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15148 # following values.
15152 # The following way of writing the cache mishandles newlines in values,
15153 # but we know of no workaround that is simple, portable, and efficient.
15154 # So, we kill variables containing newlines.
15155 # Ultrix sh set writes to stderr and can't be redirected directly,
15156 # and sets the high bit in the cache file unless we assign to the vars.
15158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15159 eval ac_val=\$$ac_var
15163 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15167 _ | IFS | as_nl) ;; #(
15168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15169 *) $as_unset $ac_var ;;
15175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15176 *${as_nl}ac_space=\ *)
15177 # `set' does not quote correctly, so add quotes (double-quote
15178 # substitution turns \\\\ into \\, and sed turns \\ into \).
15181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15184 # `set' quotes correctly as required by POSIX, so do not add quotes.
15185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15199 if test -w "$cache_file"; then
15200 test "x$cache_file" != "x/dev/null" &&
15201 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15202 $as_echo "$as_me: updating cache $cache_file" >&6;}
15203 cat confcache >$cache_file
15205 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15212 # Let make expand exec_prefix.
15213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15215 DEFS=-DHAVE_CONFIG_H
15219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15220 # 1. Remove the extension, and $U if already installed.
15221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15224 # will be set to the directory where LIBOBJS objects are built.
15225 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15226 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15228 LIBOBJS=$ac_libobjs
15230 LTLIBOBJS=$ac_ltlibobjs
15234 : ${CONFIG_STATUS=./config.status}
15236 ac_clean_files_save=$ac_clean_files
15237 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15238 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15239 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15240 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 # Generated by $as_me.
15243 # Run this file to recreate the current configuration.
15244 # Compiler output produced by configure, useful for debugging
15245 # configure, is in config.log if it exists.
15248 ac_cs_recheck=false
15250 SHELL=\${CONFIG_SHELL-$SHELL}
15253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15254 ## --------------------- ##
15255 ## M4sh Initialization. ##
15256 ## --------------------- ##
15258 # Be more Bourne compatible
15259 DUALCASE=1; export DUALCASE # for MKS sh
15260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15264 # is contrary to our usage. Disable this feature.
15265 alias -g '${1+"$@"}'='"$@"'
15266 setopt NO_GLOB_SUBST
15268 case `(set -o) 2>/dev/null` in
15269 *posix*) set -o posix ;;
15278 # Avoid depending upon Character Ranges.
15279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15282 as_cr_digits='0123456789'
15283 as_cr_alnum=$as_cr_Letters$as_cr_digits
15288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15292 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15293 as_echo='printf %s\n'
15294 as_echo_n='printf %s'
15296 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15297 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15298 as_echo_n='/usr/ucb/echo -n'
15300 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15301 as_echo_n_body='eval
15305 expr "X$arg" : "X\\(.*\\)$as_nl";
15306 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15308 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15310 export as_echo_n_body
15311 as_echo_n='sh -c $as_echo_n_body as_echo'
15313 export as_echo_body
15314 as_echo='sh -c $as_echo_body as_echo'
15317 # The user is always right.
15318 if test "${PATH_SEPARATOR+set}" != set; then
15320 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15321 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15326 # Support unset when possible.
15327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15335 # We need space, tab and new line, in precisely that order. Quoting is
15336 # there to prevent editors from complaining about space-tab.
15337 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15338 # splitting by setting IFS to empty value.)
15341 # Find who we are. Look in the path if we contain no directory separator.
15343 *[\\/]* ) as_myself=$0 ;;
15344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 for as_dir in $PATH
15348 test -z "$as_dir" && as_dir=.
15349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15355 # We did not find ourselves, most probably we were run as `sh COMMAND'
15356 # in which case we are not to be found in the path.
15357 if test "x$as_myself" = x; then
15360 if test ! -f "$as_myself"; then
15361 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15362 { (exit 1); exit 1; }
15365 # Work around bugs in pre-3.0 UWIN ksh.
15366 for as_var in ENV MAIL MAILPATH
15367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15379 # Required to use basename.
15380 if expr a : '\(a\)' >/dev/null 2>&1 &&
15381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15388 as_basename=basename
15394 # Name of the executable.
15395 as_me=`$as_basename -- "$0" ||
15396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15397 X"$0" : 'X\(//\)$' \| \
15398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15400 sed '/^.*\/\([^/][^/]*\)\/*$/{
15419 as_lineno_1=$LINENO
15420 as_lineno_2=$LINENO
15421 test "x$as_lineno_1" != "x$as_lineno_2" &&
15422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15425 # uniformly replaced by the line number. The first 'sed' inserts a
15426 # line-number line after each line using $LINENO; the second 'sed'
15427 # does the real work. The second script uses 'N' to pair each
15428 # line-number line with the line containing $LINENO, and appends
15429 # trailing '-' during substitution so that $LINENO is not a special
15430 # case at line end.
15431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15432 # scripts with optimization help from Paolo Bonzini. Blame Lee
15433 # E. McMahon (1931-1989) for sed's syntax. :-)
15445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15448 ' >$as_me.lineno &&
15449 chmod +x "$as_me.lineno" ||
15450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15451 { (exit 1); exit 1; }; }
15453 # Don't try to exec as it changes $[0], causing all sort of problems
15454 # (the dirname of $[0] is not the place where we might find the
15455 # original and so on. Autoconf is especially sensitive to this).
15456 . "./$as_me.lineno"
15457 # Exit status is that of the last command.
15462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15468 ECHO_C= ECHO_N= ECHO_T=
15469 case `echo -n x` in
15471 case `echo 'x\c'` in
15472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15478 if expr a : '\(a\)' >/dev/null 2>&1 &&
15479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15485 rm -f conf$$ conf$$.exe conf$$.file
15486 if test -d conf$$.dir; then
15487 rm -f conf$$.dir/conf$$.file
15490 mkdir conf$$.dir 2>/dev/null
15492 if (echo >conf$$.file) 2>/dev/null; then
15493 if ln -s conf$$.file conf$$ 2>/dev/null; then
15495 # ... but there are two gotchas:
15496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15498 # In both cases, we have to default to `cp -p'.
15499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15501 elif ln conf$$.file conf$$ 2>/dev/null; then
15509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15510 rmdir conf$$.dir 2>/dev/null
15512 if mkdir -p . 2>/dev/null; then
15515 test -d ./-p && rmdir ./-p
15519 if test -x / >/dev/null 2>&1; then
15520 as_test_x='test -x'
15522 if ls -dL / >/dev/null 2>&1; then
15529 if test -d "$1"; then
15535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15536 ???[sx]*):;;*)false;;esac;fi
15540 as_executable_p=$as_test_x
15542 # Sed expression to map a string onto a valid CPP name.
15543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15545 # Sed expression to map a string onto a valid variable name.
15546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15551 # Save the log message, to keep $[0] and so on meaningful, and to
15552 # report actual input values of CONFIG_FILES etc. instead of their
15553 # values after options handling.
15555 This file was extended by $as_me, which was
15556 generated by GNU Autoconf 2.63. Invocation command line was
15558 CONFIG_FILES = $CONFIG_FILES
15559 CONFIG_HEADERS = $CONFIG_HEADERS
15560 CONFIG_LINKS = $CONFIG_LINKS
15561 CONFIG_COMMANDS = $CONFIG_COMMANDS
15564 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15569 case $ac_config_files in *"
15570 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15573 case $ac_config_headers in *"
15574 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579 # Files that config.status was made for.
15580 config_files="$ac_config_files"
15581 config_headers="$ac_config_headers"
15585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 \`$as_me' instantiates files from templates according to the
15588 current configuration.
15590 Usage: $0 [OPTION]... [FILE]...
15592 -h, --help print this help, then exit
15593 -V, --version print version number and configuration settings, then exit
15594 -q, --quiet, --silent
15595 do not print progress messages
15596 -d, --debug don't remove temporary files
15597 --recheck update $as_me by reconfiguring in the same conditions
15598 --file=FILE[:TEMPLATE]
15599 instantiate the configuration file FILE
15600 --header=FILE[:TEMPLATE]
15601 instantiate the configuration header FILE
15603 Configuration files:
15606 Configuration headers:
15609 Report bugs to <bug-autoconf@gnu.org>."
15612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 configured by $0, generated by GNU Autoconf 2.63,
15616 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15618 Copyright (C) 2008 Free Software Foundation, Inc.
15619 This config.status script is free software; the Free Software Foundation
15620 gives unlimited permission to copy, distribute and modify it."
15624 test -n "\$AWK" || AWK=awk
15627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15628 # The default lists apply if the user does not specify any file.
15634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15646 # Handling of the options.
15647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15650 $as_echo "$ac_cs_version"; exit ;;
15651 --debug | --debu | --deb | --de | --d | -d )
15653 --file | --fil | --fi | --f )
15656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15658 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15659 ac_need_defaults=false;;
15660 --header | --heade | --head | --hea )
15663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15665 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15666 ac_need_defaults=false;;
15668 # Conflict between --help and --header
15669 { $as_echo "$as_me: error: ambiguous option: $1
15670 Try \`$0 --help' for more information." >&2
15671 { (exit 1); exit 1; }; };;
15672 --help | --hel | -h )
15673 $as_echo "$ac_cs_usage"; exit ;;
15674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15678 # This is an error.
15679 -*) { $as_echo "$as_me: error: unrecognized option: $1
15680 Try \`$0 --help' for more information." >&2
15681 { (exit 1); exit 1; }; } ;;
15683 *) ac_config_targets="$ac_config_targets $1"
15684 ac_need_defaults=false ;;
15690 ac_configure_extra_args=
15692 if $ac_cs_silent; then
15694 ac_configure_extra_args="$ac_configure_extra_args --silent"
15698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 if \$ac_cs_recheck; then
15700 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15703 CONFIG_SHELL='$SHELL'
15704 export CONFIG_SHELL
15709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15714 ## Running $as_me. ##
15720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725 # Handling of arguments.
15726 for ac_config_target in $ac_config_targets
15728 case $ac_config_target in
15729 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
15730 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
15732 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15733 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15734 { (exit 1); exit 1; }; };;
15739 # If the user did not use the arguments to specify the items to instantiate,
15740 # then the envvar interface is used. Set only those that are not.
15741 # We use the long form for the default assignment because of an extremely
15742 # bizarre bug on SunOS 4.1.3.
15743 if $ac_need_defaults; then
15744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15748 # Have a temporary directory for convenience. Make it in the build tree
15749 # simply because there is no reason against having it here, and in addition,
15750 # creating and moving files from /tmp can sometimes cause problems.
15751 # Hook for its removal unless debugging.
15752 # Note that there is a small window in which the directory will not be cleaned:
15753 # after its creation but before its name has been assigned to `$tmp'.
15757 trap 'exit_status=$?
15758 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15760 trap '{ (exit 1); exit 1; }' 1 2 13 15
15762 # Create a (secure) tmp directory for tmp files.
15765 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15766 test -n "$tmp" && test -d "$tmp"
15769 tmp=./conf$$-$RANDOM
15770 (umask 077 && mkdir "$tmp")
15773 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15774 { (exit 1); exit 1; }
15777 # Set up the scripts for CONFIG_FILES section.
15778 # No need to generate them if there are no CONFIG_FILES.
15779 # This happens for instance with `./config.status config.h'.
15780 if test -n "$CONFIG_FILES"; then
15784 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15785 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15788 ac_cs_awk_cr=$ac_cr
15791 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15796 echo "cat >conf$$subs.awk <<_ACEOF" &&
15797 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15799 } >conf$$subs.sh ||
15800 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15801 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15802 { (exit 1); exit 1; }; }
15803 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15805 for ac_last_try in false false false false false :; do
15806 . ./conf$$subs.sh ||
15807 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15808 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15809 { (exit 1); exit 1; }; }
15811 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15812 if test $ac_delim_n = $ac_delim_num; then
15814 elif $ac_last_try; then
15815 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15816 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15817 { (exit 1); exit 1; }; }
15819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15822 rm -f conf$$subs.sh
15824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15825 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15829 s/^/S["/; s/!.*/"]=/
15839 s/\(.\{148\}\).*/\1/
15841 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15853 s/\(.\{148\}\).*/\1/
15855 s/["\\]/\\&/g; s/^/"/; s/$/"/
15859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15864 ' <conf$$subs.awk | sed '
15869 ' >>$CONFIG_STATUS || ac_write_fail=1
15870 rm -f conf$$subs.awk
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15874 for (key in S) S_is_set[key] = 1
15880 nfields = split(line, field, "@")
15882 len = length(field[1])
15883 for (i = 2; i < nfields; i++) {
15885 keylen = length(key)
15886 if (S_is_set[key]) {
15888 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15889 len += length(value) + length(field[++i])
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15905 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15906 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15907 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15908 { (exit 1); exit 1; }; }
15911 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15912 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15913 # trailing colons and then remove the whole line if VPATH becomes empty
15914 # (actually we leave an empty line to preserve line numbers).
15915 if test "x$srcdir" = x.; then
15916 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15917 s/:*\$(srcdir):*/:/
15918 s/:*\${srcdir}:*/:/
15920 s/^\([^=]*=[ ]*\):*/\1/
15926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 fi # test -n "$CONFIG_FILES"
15929 # Set up the scripts for CONFIG_HEADERS section.
15930 # No need to generate them if there are no CONFIG_HEADERS.
15931 # This happens for instance with `./config.status Makefile'.
15932 if test -n "$CONFIG_HEADERS"; then
15933 cat >"$tmp/defines.awk" <<\_ACAWK ||
15937 # Transform confdefs.h into an awk script `defines.awk', embedded as
15938 # here-document in config.status, that substitutes the proper values into
15939 # config.h.in to produce config.h.
15941 # Create a delimiter string that does not exist in confdefs.h, to ease
15942 # handling of long lines.
15944 for ac_last_try in false false :; do
15945 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15946 if test -z "$ac_t"; then
15948 elif $ac_last_try; then
15949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15950 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15951 { (exit 1); exit 1; }; }
15953 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15957 # For the awk script, D is an array of macro values keyed by name,
15958 # likewise P contains macro parameters if any. Preserve backslash
15959 # newline sequences.
15961 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15963 s/.\{148\}/&'"$ac_delim"'/g
15966 s/^[ ]*#[ ]*define[ ][ ]*/ /
15973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15979 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15980 D["\1"]=" \3\\\\\\n"\\/p
15982 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15987 s/.\{148\}/&'"$ac_delim"'/g
15992 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15995 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15997 ' <confdefs.h | sed '
15998 s/'"$ac_delim"'/"\\\
15999 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002 for (key in D) D_is_set[key] = 1
16005 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16007 split(line, arg, " ")
16008 if (arg[1] == "#") {
16012 defundef = substr(arg[1], 2)
16015 split(mac1, mac2, "(") #)
16017 prefix = substr(line, 1, index(line, defundef) - 1)
16018 if (D_is_set[macro]) {
16019 # Preserve the white space surrounding the "#".
16020 print prefix "define", macro P[macro] D[macro]
16023 # Replace #undef with comments. This is necessary, for example,
16024 # in the case of _POSIX_SOURCE, which is predefined and required
16025 # on some systems where configure will not decide to define it.
16026 if (defundef == "undef") {
16027 print "/*", prefix defundef, macro, "*/"
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16037 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16038 { (exit 1); exit 1; }; }
16039 fi # test -n "$CONFIG_HEADERS"
16042 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16047 :[FHLC]) ac_mode=$ac_tag; continue;;
16049 case $ac_mode$ac_tag in
16051 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16052 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16053 { (exit 1); exit 1; }; };;
16054 :[FH]-) ac_tag=-:-;;
16055 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16072 -) ac_f="$tmp/stdin";;
16073 *) # Look for the file first in the build tree, then in the source tree
16074 # (if the path is not absolute). The absolute path cannot be DOS-style,
16075 # because $ac_f cannot contain `:'.
16079 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16081 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16082 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16083 { (exit 1); exit 1; }; };;
16085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16086 ac_file_inputs="$ac_file_inputs '$ac_f'"
16089 # Let's still pretend it is `configure' which instantiates (i.e., don't
16090 # use $as_me), people would be surprised to read:
16091 # /* config.h. Generated by config.status. */
16092 configure_input='Generated from '`
16093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16095 if test x"$ac_file" != x-; then
16096 configure_input="$ac_file. $configure_input"
16097 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16098 $as_echo "$as_me: creating $ac_file" >&6;}
16100 # Neutralize special characters interpreted by sed in replacement strings.
16101 case $configure_input in #(
16102 *\&* | *\|* | *\\* )
16103 ac_sed_conf_input=`$as_echo "$configure_input" |
16104 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16105 *) ac_sed_conf_input=$configure_input;;
16109 *:-:* | *:-) cat >"$tmp/stdin" \
16110 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16111 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16112 { (exit 1); exit 1; }; } ;;
16117 ac_dir=`$as_dirname -- "$ac_file" ||
16118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16119 X"$ac_file" : 'X\(//\)[^/]' \| \
16120 X"$ac_file" : 'X\(//\)$' \| \
16121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16122 $as_echo X"$ac_file" |
16123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16127 /^X\(\/\/\)[^/].*/{
16142 -*) as_dir=./$as_dir;;
16144 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16149 *) as_qdir=$as_dir;;
16151 as_dirs="'$as_qdir' $as_dirs"
16152 as_dir=`$as_dirname -- "$as_dir" ||
16153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16154 X"$as_dir" : 'X\(//\)[^/]' \| \
16155 X"$as_dir" : 'X\(//\)$' \| \
16156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16157 $as_echo X"$as_dir" |
16158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16162 /^X\(\/\/\)[^/].*/{
16175 test -d "$as_dir" && break
16177 test -z "$as_dirs" || eval "mkdir $as_dirs"
16178 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16179 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16180 { (exit 1); exit 1; }; }; }
16184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16186 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16187 # A ".." for each directory in $ac_dir_suffix.
16188 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16189 case $ac_top_builddir_sub in
16190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16194 ac_abs_top_builddir=$ac_pwd
16195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16196 # for backward compatibility:
16197 ac_top_builddir=$ac_top_build_prefix
16200 .) # We are building in place.
16202 ac_top_srcdir=$ac_top_builddir_sub
16203 ac_abs_top_srcdir=$ac_pwd ;;
16204 [\\/]* | ?:[\\/]* ) # Absolute name.
16205 ac_srcdir=$srcdir$ac_dir_suffix;
16206 ac_top_srcdir=$srcdir
16207 ac_abs_top_srcdir=$srcdir ;;
16208 *) # Relative name.
16209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16210 ac_top_srcdir=$ac_top_build_prefix$srcdir
16211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16225 # If the template does not know about datarootdir, expand it.
16226 # FIXME: This hack should be removed a few years after 2.60.
16227 ac_datarootdir_hack=; ac_datarootdir_seen=
16240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16241 *datarootdir*) ac_datarootdir_seen=yes;;
16242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16243 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 ac_datarootdir_hack='
16248 s&@datadir@&$datadir&g
16249 s&@docdir@&$docdir&g
16250 s&@infodir@&$infodir&g
16251 s&@localedir@&$localedir&g
16252 s&@mandir@&$mandir&g
16253 s&\\\${datarootdir}&$datarootdir&g' ;;
16257 # Neutralize VPATH when `$srcdir' = `.'.
16258 # Shell code in configure.ac might set extrasub.
16259 # FIXME: do we really want to maintain this feature?
16260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16261 ac_sed_extra="$ac_vpsub
16264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16267 s|@configure_input@|$ac_sed_conf_input|;t t
16268 s&@top_builddir@&$ac_top_builddir_sub&;t t
16269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16270 s&@srcdir@&$ac_srcdir&;t t
16271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16272 s&@top_srcdir@&$ac_top_srcdir&;t t
16273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16274 s&@builddir@&$ac_builddir&;t t
16275 s&@abs_builddir@&$ac_abs_builddir&;t t
16276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16277 $ac_datarootdir_hack
16279 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16280 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16281 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16282 { (exit 1); exit 1; }; }
16284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16285 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16287 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16288 which seems to be undefined. Please make sure it is defined." >&5
16289 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16290 which seems to be undefined. Please make sure it is defined." >&2;}
16294 -) cat "$tmp/out" && rm -f "$tmp/out";;
16295 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16298 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16299 { (exit 1); exit 1; }; }
16305 if test x"$ac_file" != x-; then
16307 $as_echo "/* $configure_input */" \
16308 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16309 } >"$tmp/config.h" \
16310 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16311 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16312 { (exit 1); exit 1; }; }
16313 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16314 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16315 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16318 mv "$tmp/config.h" "$ac_file" \
16319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16321 { (exit 1); exit 1; }; }
16324 $as_echo "/* $configure_input */" \
16325 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16326 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16327 $as_echo "$as_me: error: could not create -" >&2;}
16328 { (exit 1); exit 1; }; }
16338 { (exit 0); exit 0; }
16340 chmod +x $CONFIG_STATUS
16341 ac_clean_files=$ac_clean_files_save
16343 test $ac_write_fail = 0 ||
16344 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16345 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16346 { (exit 1); exit 1; }; }
16349 # configure is writing to config.log, and then calls config.status.
16350 # config.status does its own redirection, appending to config.log.
16351 # Unfortunately, on DOS this fails, as config.log is still kept open
16352 # by configure, so config.status won't be able to write to it; its
16353 # output is simply discarded. So we exec the FD to /dev/null,
16354 # effectively closing config.log, so it can be properly (re)opened and
16355 # appended to by config.status. When coming back to configure, we
16356 # need to make the FD available again.
16357 if test "$no_create" != yes; then
16359 ac_config_status_args=
16360 test "$silent" = yes &&
16361 ac_config_status_args="$ac_config_status_args --quiet"
16363 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16365 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16366 # would make configure fail if this is the last instruction.
16367 $ac_cs_success || { (exit 1); exit 1; }
16369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16370 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16371 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16375 if test -n "$OPTIONAL"; then
16377 echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
16380 if test -n "$REQUIRED"; then
16382 echo "ERROR: Please install required programs: $REQUIRED"
16385 if test -n "$UNSUPPORTED"; then
16387 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
16390 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
16392 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
16393 if test -f config.cache ; then
16394 echo "Remove config.cache before rerunning ./configure"
16398 if test -n "$REQUIRED$UNSUPPORTED"; then
16399 rm -f $srcdir/GNUmakefile
16403 # regular in-place build
16404 # test for srcdir_build = yes ?
16405 if test "$srcdir_build" = "yes"; then
16406 rm -f $srcdir/GNUmakefile
16407 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
16408 chmod 444 $srcdir/GNUmakefile
16410 if test -f $srcdir/GNUmakefile; then
16412 Source directory already configured. Please clean the source directory
16414 make -C $srcdir distclean
16416 and rerun configure.
16421 abssrcdir="`cd $srcdir; pwd`"
16422 absbuilddir="`pwd`"
16423 for d in 2 3 4 5 ; do
16424 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
16425 case "$abssrcdir" in
16427 # source is below build directory, always copy
16430 case "$abssrcdir/${mf#./}" in
16432 # find descended into build directory, don't copy
16437 cat <<EOF | $PYTHON - > $mf
16438 print 'depth=' + ('../' * ( $d-1 ) )
16439 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16440 print 'include \$(configure-srcdir)/$mf'
16441 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
16444 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
16445 case "$abssrcdir" in
16447 # source is below build directory, always copy
16450 case "$abssrcdir/${mf#./}" in
16452 # find descended into build directory, don't copy
16457 cat <<EOF | $PYTHON - > $mf
16458 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16459 print 'include \$(configure-srcdir)/$mf'
16465 cat <<EOF > GNUmakefile
16467 include config\$(if \$(conf),-\$(conf),).make
16468 include \$(configure-srcdir)/GNUmakefile.in
16470 chmod 444 GNUmakefile
16475 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
16477 if make top-doc 1>/dev/null 2>&1; then
16478 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
16479 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
16485 make$mc all to build LilyPond
16486 make$mc install to install LilyPond
16487 make$mc help to see all possible targets
16489 Edit local.make for local Makefile overrides.