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>
710 build_package_datadir
746 ugh_ugh_autoconf250_builddir
774 program_transform_name
786 enable_option_checking
802 ac_precious_vars='build_alias
818 # Initialize some variables set by options.
820 ac_init_version=false
821 ac_unrecognized_opts=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name=s,x,x,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE}'
857 infodir='${datarootdir}/info'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925 { (exit 1); exit 1; }; }
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
952 { (exit 1); exit 1; }; }
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=\$ac_optarg ;;
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
977 -help | --help | --hel | --he | -h)
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 htmldir=$ac_optarg ;;
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1007 -libdir | --libdir | --libdi | --libd)
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1098 -psdir | --psdir | --psdi | --psd | --ps)
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 sbindir=$ac_optarg ;;
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 sharedstatedir=$ac_optarg ;;
1124 -site | --site | --sit)
1126 -site=* | --site=* | --sit=*)
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval with_$ac_useropt=no ;;
1187 # Obsolete; use --with-x.
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1205 Try \`$0 --help' for more information." >&2
1206 { (exit 1); exit 1; }; }
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1213 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214 { (exit 1); exit 1; }; }
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1232 { (exit 1); exit 1; }; }
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1239 { (exit 1); exit 1; }; } ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1263 { (exit 1); exit 1; }; }
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1271 target=$target_alias
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287 test "$silent" = yes && exec 6>/dev/null
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1294 { (exit 1); exit 1; }; }
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1297 { (exit 1); exit 1; }; }
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1337 { (exit 1); exit 1; }; }
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1342 { (exit 1); exit 1; }; }
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1368 \`configure' configures this package to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 if test -n "$ac_init_help"; then
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1440 do `make conf=CONF' to get output in ./out-CONF
1441 --enable-documentation build Documentation. Default: on
1442 --enable-relocation compile with dynamic relocation. Default: off
1443 --enable-rpath hardcode runtime library path. Default: off
1444 --enable-static-gxx link libstdc++.a statically. Default: off
1445 --enable-debugging compile with debugging info. Default: on
1446 --enable-optimising compile with optimising. Default: on
1447 --enable-profiling compile with gprof support. Default: off
1448 --enable-pipe compile with -pipe. Default: on
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-ncsb-dir=DIR location of Century Schoolbook fonts.
1454 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1455 --with-lang=LANG use LANG as language to emit messages
1456 --with-python-include=DIR
1457 location of the python include dir
1458 --with-python-lib=NAME name of the python lib
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1470 CXXCPP C++ preprocessor
1471 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1472 the first program found out of: `bison -y', `byacc', `yacc'.
1473 YFLAGS The list of arguments that will be passed by default to $YACC.
1474 This script will default YFLAGS to the empty string to avoid a
1475 default value of `-d' given by some make applications.
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1543 generated by GNU Autoconf 2.63
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1552 cat >config.log <<_ACEOF
1553 This file contains any messages produced by compilers while
1554 running configure, to aid debugging if configure makes a mistake.
1556 It was created by $as_me, which was
1557 generated by GNU Autoconf 2.63. Invocation command line was
1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1579 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1581 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1582 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1583 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1584 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 $as_echo "PATH: $as_dir"
1609 # Keep a trace of the command line.
1610 # Strip out --no-create and --no-recursion so they do not pile up.
1611 # Strip out --silent because we don't want to record it for future runs.
1612 # Also quote any args containing shell meta-characters.
1613 # Make two passes to allow for proper duplicate-argument suppression.
1617 ac_must_keep_next=false
1623 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625 | -silent | --silent | --silen | --sile | --sil)
1628 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1633 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1634 if test $ac_must_keep_next = true; then
1635 ac_must_keep_next=false # Got value, back to normal.
1638 *=* | --config-cache | -C | -disable-* | --disable-* \
1639 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1640 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1641 | -with-* | --with-* | -without-* | --without-* | --x)
1642 case "$ac_configure_args0 " in
1643 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 -* ) ac_must_keep_next=true ;;
1649 ac_configure_args="$ac_configure_args '$ac_arg'"
1654 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1655 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1657 # When interrupted or exit'd, cleanup temporary files, and complete
1658 # config.log. We remove comments because anyway the quotes in there
1659 # would cause problems or look ugly.
1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1662 trap 'exit_status=$?
1663 # Save into config.log some information that might help in debugging.
1668 ## ---------------- ##
1669 ## Cache variables. ##
1670 ## ---------------- ##
1673 # The following way of writing the cache mishandles newlines in values,
1675 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676 eval ac_val=\$$ac_var
1680 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1684 _ | IFS | as_nl) ;; #(
1685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1686 *) $as_unset $ac_var ;;
1691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
1694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1711 for ac_var in $ac_subst_vars
1713 eval ac_val=\$$ac_var
1715 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 $as_echo "$ac_var='\''$ac_val'\''"
1721 if test -n "$ac_subst_files"; then
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1728 for ac_var in $ac_subst_files
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 $as_echo "$ac_var='\''$ac_val'\''"
1739 if test -s confdefs.h; then
1749 test "$ac_signal" != 0 &&
1750 $as_echo "$as_me: caught signal $ac_signal"
1751 $as_echo "$as_me: exit $exit_status"
1753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1757 for ac_signal in 1 2 13 15; do
1758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1765 # Predefined preprocessor variables.
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer an explicitly selected file to automatically selected ones.
1796 if test -n "$CONFIG_SITE"; then
1797 ac_site_file1=$CONFIG_SITE
1798 elif test "x$prefix" != xNONE; then
1799 ac_site_file1=$prefix/share/config.site
1800 ac_site_file2=$prefix/etc/config.site
1802 ac_site_file1=$ac_default_prefix/share/config.site
1803 ac_site_file2=$ac_default_prefix/etc/config.site
1805 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1807 test "x$ac_site_file" = xNONE && continue
1808 if test -r "$ac_site_file"; then
1809 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1811 sed 's/^/| /' "$ac_site_file" >&5
1816 if test -r "$cache_file"; then
1817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 $as_echo "$as_me: loading cache $cache_file" >&6;}
1823 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824 *) . "./$cache_file";;
1828 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 $as_echo "$as_me: creating cache $cache_file" >&6;}
1833 # Check that the precious variables saved in the cache have kept the same
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
1839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
1841 case $ac_old_set,$ac_new_set in
1843 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1847 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
1853 # differences in whitespace do not lead to failure.
1854 ac_old_val_w=`echo x $ac_old_val`
1855 ac_new_val_w=`echo x $ac_new_val`
1856 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1857 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859 ac_cache_corrupted=:
1861 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1862 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1863 eval $ac_var=\$ac_old_val
1865 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1866 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1867 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1868 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1871 # Pass precious variables to config.status.
1872 if test "$ac_new_set" = set; then
1874 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 *) ac_arg=$ac_var=$ac_new_val ;;
1877 case " $ac_configure_args " in
1878 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1879 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 if $ac_cache_corrupted; then
1884 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1886 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890 { (exit 1); exit 1; }; }
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917 # Bootstrap StepMake configure
1919 for ac_dir in config "$srcdir"/config; do
1920 if test -f "$ac_dir/install-sh"; then
1922 ac_install_sh="$ac_aux_dir/install-sh -c"
1924 elif test -f "$ac_dir/install.sh"; then
1926 ac_install_sh="$ac_aux_dir/install.sh -c"
1928 elif test -f "$ac_dir/shtool"; then
1930 ac_install_sh="$ac_aux_dir/shtool install -c"
1934 if test -z "$ac_aux_dir"; then
1935 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1936 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1937 { (exit 1); exit 1; }; }
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1945 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1946 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950 # Make sure we can run config.sub.
1951 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1952 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1953 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1954 { (exit 1); exit 1; }; }
1956 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1957 $as_echo_n "checking build system type... " >&6; }
1958 if test "${ac_cv_build+set}" = set; then
1959 $as_echo_n "(cached) " >&6
1961 ac_build_alias=$build_alias
1962 test "x$ac_build_alias" = x &&
1963 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1964 test "x$ac_build_alias" = x &&
1965 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1966 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1967 { (exit 1); exit 1; }; }
1968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1969 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1970 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1974 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1975 $as_echo "$ac_cv_build" >&6; }
1976 case $ac_cv_build in
1978 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1979 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1980 { (exit 1); exit 1; }; };;
1983 ac_save_IFS=$IFS; IFS='-'
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1999 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2000 MICRO_VERSION=$PATCH_LEVEL
2001 TOPLEVEL_VERSION=$FULL_VERSION
2002 if test x$MY_PATCH_LEVEL != x; then
2003 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2005 VERSION=$FULL_VERSION
2006 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2007 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2009 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2010 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2013 # No versioning on directory names of sub-packages
2015 stepmake=${datadir}/stepmake
2017 if test "$prefix" = "NONE"; then
2018 presome=${ac_default_prefix}
2020 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2022 # urg, how is this supposed to work?
2023 if test "$program_prefix" = "NONE"; then
2026 if test "$program_suffix" = "NONE"; then
2030 { $as_echo "$as_me:$LINENO: checking Package" >&5
2031 $as_echo_n "checking Package... " >&6; }
2032 if test "$PACKAGE" = "STEPMAKE"; then
2033 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2034 $as_echo "Stepmake package!" >&6; }
2036 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2037 $as_echo_n "checking builddir... " >&6; }
2039 ugh_ugh_autoconf250_builddir="`pwd`"
2041 if test "$srcdir" = "."; then
2045 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2046 package_srcdir="`dirname $srcdir`"
2048 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2049 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2051 (cd stepmake 2>/dev/null || mkdir stepmake)
2052 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2055 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2056 $as_echo "$PACKAGE" >&6; }
2058 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2059 $as_echo_n "checking builddir... " >&6; }
2060 ugh_ugh_autoconf250_builddir="`pwd`"
2062 here_dir=$(cd . && pwd)
2063 full_src_dir=$(cd $srcdir && pwd)
2065 if test "$full_src_dir" = "$here_dir"; then
2070 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2071 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2073 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2074 $as_echo_n "checking for stepmake... " >&6; }
2075 # Check for installed stepmake
2076 if test -d $stepmake; then
2077 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2078 $as_echo "$stepmake" >&6; }
2080 stepmake="`cd $srcdir/stepmake; pwd`"
2081 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2082 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2088 # Use absolute directory for non-srcdir builds, so that build
2090 if test "$srcdir_build" = "no" ; then
2091 srcdir="`cd $srcdir; pwd`"
2104 # stepmake nonstandard names
2108 # We don't need the upper case variant,
2109 # so stick to macros are uppercase convention.
2110 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2111 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE "${package}"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "${PACKAGE_NAME}"
2120 cat >>confdefs.h <<_ACEOF
2121 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2125 if test -z "$package_depth"; then
2128 package_depth="../$package_depth"
2130 export package_depth
2133 AUTOGENERATE="This file was automatically generated by configure"
2137 # Check whether --enable-config was given.
2138 if test "${enable_config+set}" = set; then
2139 enableval=$enable_config; CONFIGURATION=$enableval
2145 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2146 CONFIGFILE=config$CONFIGSUFFIX
2149 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2150 $as_echo_n "checking host system type... " >&6; }
2151 if test "${ac_cv_host+set}" = set; then
2152 $as_echo_n "(cached) " >&6
2154 if test "x$host_alias" = x; then
2155 ac_cv_host=$ac_cv_build
2157 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2164 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165 $as_echo "$ac_cv_host" >&6; }
2168 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2170 { (exit 1); exit 1; }; };;
2173 ac_save_IFS=$IFS; IFS='-'
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2187 for ac_prog in gmake make
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if test "${ac_cv_prog_MAKE+set}" = set; then
2194 $as_echo_n "(cached) " >&6
2196 if test -n "$MAKE"; then
2197 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_MAKE="$ac_prog"
2207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 MAKE=$ac_cv_prog_MAKE
2217 if test -n "$MAKE"; then
2218 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2219 $as_echo "$MAKE" >&6; }
2221 { $as_echo "$as_me:$LINENO: result: no" >&5
2222 $as_echo "no" >&6; }
2226 test -n "$MAKE" && break
2228 test -n "$MAKE" || MAKE="no"
2232 r="`eval echo '$'"MAKE"`"
2233 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2236 ##STEPMAKE_WARN(cannot find . )
2240 if test $? -ne 0; then
2242 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2244 if test "REQUIRED" = "REQUIRED"; then
2245 command="echo ERROR: gmake make not found"
2246 # abort configure process here?
2248 command="- echo gmake make not found"
2250 eval "MAKE"='$command'
2256 if test $? -eq 0 -a -n ""; then
2258 r="`eval echo '$'"MAKE"`"
2259 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2260 $as_echo_n "checking $r version... " >&6; }
2262 ## which doesn't work in ash, if /usr/bin/which isn't installed
2263 ## type -p doesn't work in ash
2264 ## command -v doesn't work in zsh
2265 ## command -v "$r" 2>&1
2266 ## this test should work in ash, bash, pdksh (ksh), zsh
2267 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2273 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2276 ## Workaround for broken Debian gcc version string:
2277 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2279 ## -V: Workaround for python
2283 ## Assume and hunt for dotted version multiplet.
2284 ## use eval trickery, because we cannot use multi-level $() instead of ``
2285 ## for compatibility reasons.
2287 ## grab the first version number in --version output.
2288 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2289 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2292 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2293 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2296 if test -z "$_ver"; then
2297 ## If empty, try date [fontforge]
2298 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2300 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2307 echo "$ver" | awk -F. '
2309 if ($3) {three = $3}
2312 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2317 if ($3) {three = $3}
2320 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2322 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2323 $as_echo "$ver" >&6; }
2324 if test "$num" -lt "$req"; then
2326 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2329 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2330 eval `echo $vervar=$num`
2331 ## AC_SUBST(`eval echo $vervar`)
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if test "${ac_cv_prog_FIND+set}" = set; then
2343 $as_echo_n "(cached) " >&6
2345 if test -n "$FIND"; then
2346 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_FIND="$ac_prog"
2356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 FIND=$ac_cv_prog_FIND
2366 if test -n "$FIND"; then
2367 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2368 $as_echo "$FIND" >&6; }
2370 { $as_echo "$as_me:$LINENO: result: no" >&5
2371 $as_echo "no" >&6; }
2375 test -n "$FIND" && break
2377 test -n "$FIND" || FIND="no"
2381 r="`eval echo '$'"FIND"`"
2382 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2385 ##STEPMAKE_WARN(cannot find . )
2389 if test $? -ne 0; then
2391 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2393 if test "REQUIRED" = "REQUIRED"; then
2394 command="echo ERROR: find not found"
2395 # abort configure process here?
2397 command="- echo find not found"
2399 eval "FIND"='$command'
2405 if test $? -eq 0 -a -n ""; then
2407 r="`eval echo '$'"FIND"`"
2408 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2409 $as_echo_n "checking $r version... " >&6; }
2411 ## which doesn't work in ash, if /usr/bin/which isn't installed
2412 ## type -p doesn't work in ash
2413 ## command -v doesn't work in zsh
2414 ## command -v "$r" 2>&1
2415 ## this test should work in ash, bash, pdksh (ksh), zsh
2416 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2422 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2425 ## Workaround for broken Debian gcc version string:
2426 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2428 ## -V: Workaround for python
2432 ## Assume and hunt for dotted version multiplet.
2433 ## use eval trickery, because we cannot use multi-level $() instead of ``
2434 ## for compatibility reasons.
2436 ## grab the first version number in --version output.
2437 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2438 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2441 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2442 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2445 if test -z "$_ver"; then
2446 ## If empty, try date [fontforge]
2447 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2449 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2456 echo "$ver" | awk -F. '
2458 if ($3) {three = $3}
2461 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2466 if ($3) {three = $3}
2469 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2471 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2472 $as_echo "$ver" >&6; }
2473 if test "$num" -lt "$req"; then
2475 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2478 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2479 eval `echo $vervar=$num`
2480 ## AC_SUBST(`eval echo $vervar`)
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_TAR+set}" = set; then
2493 $as_echo_n "(cached) " >&6
2495 if test -n "$TAR"; then
2496 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_TAR="$ac_prog"
2506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$TAR"; then
2517 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2518 $as_echo "$TAR" >&6; }
2520 { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2525 test -n "$TAR" && break
2527 test -n "$TAR" || TAR="no"
2531 r="`eval echo '$'"TAR"`"
2532 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2535 ##STEPMAKE_WARN(cannot find . )
2539 if test $? -ne 0; then
2541 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2543 if test "REQUIRED" = "REQUIRED"; then
2544 command="echo ERROR: tar not found"
2545 # abort configure process here?
2547 command="- echo tar not found"
2549 eval "TAR"='$command'
2555 if test $? -eq 0 -a -n ""; then
2557 r="`eval echo '$'"TAR"`"
2558 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2559 $as_echo_n "checking $r version... " >&6; }
2561 ## which doesn't work in ash, if /usr/bin/which isn't installed
2562 ## type -p doesn't work in ash
2563 ## command -v doesn't work in zsh
2564 ## command -v "$r" 2>&1
2565 ## this test should work in ash, bash, pdksh (ksh), zsh
2566 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2572 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2575 ## Workaround for broken Debian gcc version string:
2576 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2578 ## -V: Workaround for python
2582 ## Assume and hunt for dotted version multiplet.
2583 ## use eval trickery, because we cannot use multi-level $() instead of ``
2584 ## for compatibility reasons.
2586 ## grab the first version number in --version output.
2587 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2588 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2591 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2592 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2595 if test -z "$_ver"; then
2596 ## If empty, try date [fontforge]
2597 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2599 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2606 echo "$ver" | awk -F. '
2608 if ($3) {three = $3}
2611 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2616 if ($3) {three = $3}
2619 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2621 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2622 $as_echo "$ver" >&6; }
2623 if test "$num" -lt "$req"; then
2625 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2628 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2629 eval `echo $vervar=$num`
2630 ## AC_SUBST(`eval echo $vervar`)
2635 if test "$(echo 2)" != "2" ||
2636 test "x`uname`" = "xHP-UX"; then
2637 # Extract the first word of "ksh", so it can be a program name with args.
2638 set dummy ksh; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_path_KSH+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2646 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2669 if test -n "$KSH"; then
2670 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2671 $as_echo "$KSH" >&6; }
2673 { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2678 # Extract the first word of "bash", so it can be a program name with args.
2679 set dummy bash; ac_word=$2
2680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_path_BASH+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2687 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2709 BASH=$ac_cv_path_BASH
2710 if test -n "$BASH"; then
2711 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2712 $as_echo "$BASH" >&6; }
2714 { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2720 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2721 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2724 # Extract the first word of "bash", so it can be a program name with args.
2725 set dummy bash; ac_word=$2
2726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_path_SHELL+set}" = set; then
2729 $as_echo_n "(cached) " >&6
2733 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2755 SHELL=$ac_cv_path_SHELL
2756 if test -n "$SHELL"; then
2757 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2758 $as_echo "$SHELL" >&6; }
2760 { $as_echo "$as_me:$LINENO: result: no" >&5
2761 $as_echo "no" >&6; }
2767 # Extract the first word of "bash", so it can be a program name with args.
2768 set dummy bash; ac_word=$2
2769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_path_BASH+set}" = set; then
2772 $as_echo_n "(cached) " >&6
2776 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2798 BASH=$ac_cv_path_BASH
2799 if test -n "$BASH"; then
2800 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2801 $as_echo "$BASH" >&6; }
2803 { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2812 { $as_echo "$as_me:$LINENO: checking for python" >&5
2813 $as_echo_n "checking for python... " >&6; }
2816 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
2818 ## which doesn't work in ash, if /usr/bin/which isn't installed
2819 ## type -p doesn't work in ash
2820 ## command -v doesn't work in zsh
2821 ## command -v "$r" 2>&1
2822 ## this test should work in ash, bash, pdksh (ksh), zsh
2823 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2825 if ! $exe -V > /dev/null 2>&1 ; then
2829 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2832 ## Workaround for broken Debian gcc version string:
2833 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2835 ## -V: Workaround for python
2839 ## Assume and hunt for dotted version multiplet.
2840 ## use eval trickery, because we cannot use multi-level $() instead of ``
2841 ## for compatibility reasons.
2843 ## grab the first version number in --version output.
2844 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2845 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2848 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2849 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2852 if test -z "$_ver"; then
2853 ## If empty, try date [fontforge]
2854 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2856 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2862 echo "$ver" | awk -F. '
2864 if ($3) {three = $3}
2867 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2870 echo "1.5" | awk -F. '
2872 if ($3) {three = $3}
2875 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2878 echo "3.0" | awk -F. '
2880 if ($3) {three = $3}
2883 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2885 if test -n "1.5" && test "$num" -lt "$req"; then
2886 python="$r >= 1.5 (installed: $ver)"
2889 if test -n "3.0" && test "$num" -ge "$sup"; then
2890 python="$r < 3.0 (installed: $ver)"
2899 { $as_echo "$as_me:$LINENO: result: $found" >&5
2900 $as_echo "$found" >&6; }
2901 if test "$found" != "no"; then
2902 { $as_echo "$as_me:$LINENO: checking $python version" >&5
2903 $as_echo_n "checking $python version... " >&6; }
2904 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2905 $as_echo "$ver" >&6; }
2909 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2912 # Extract the first word of "$PYTHON", so it can be a program name with args.
2913 set dummy $PYTHON; ac_word=$2
2914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_path_PYTHON+set}" = set; then
2917 $as_echo_n "(cached) " >&6
2921 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 PYTHON=$ac_cv_path_PYTHON
2943 if test -n "$PYTHON"; then
2944 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2945 $as_echo "$PYTHON" >&6; }
2947 { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2955 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2956 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2957 if test "$?" = 1; then
2958 warn='make (Please install *GNU* make)'
2959 # STEPMAKE_WARN($warn)
2961 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2978 cat >>confdefs.h <<_ACEOF
2979 #define DIRSEP '${DIRSEP}'
2982 cat >>confdefs.h <<_ACEOF
2983 #define PATHSEP '${PATHSEP}'
2992 if test "$prefix" = "NONE"; then
2993 presome=${ac_default_prefix}
2996 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
2998 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
2999 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3000 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3005 cat >>confdefs.h <<_ACEOF
3006 #define DATADIR "${DATADIR}"
3009 cat >>confdefs.h <<_ACEOF
3010 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3015 presome=${exec_prefix}
3016 if test "$presome" = "NONE"; then
3019 if test "$presome" = "NONE"; then
3020 presome=${ac_default_prefix}
3023 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3025 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3026 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3030 cat >>confdefs.h <<_ACEOF
3031 #define LIBDIR "${LIBDIR}"
3034 cat >>confdefs.h <<_ACEOF
3035 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3041 # List a file that identifies your package.
3044 # Move to aclocal.m4?
3045 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3048 # Uncomment the configuration options your package needs.
3051 # Check whether --enable-documentation was given.
3052 if test "${enable_documentation+set}" = set; then
3053 enableval=$enable_documentation; DOCUMENTATION=$enableval
3059 # Check whether --with-ncsb-dir was given.
3060 if test "${with_ncsb_dir+set}" = set; then
3061 withval=$with_ncsb_dir; NCSB_DIR=$withval
3068 # Check whether --enable-relocation was given.
3069 if test "${enable_relocation+set}" = set; then
3070 enableval=$enable_relocation; reloc_b=$enableval
3075 # Check whether --enable-rpath was given.
3076 if test "${enable_rpath+set}" = set; then
3077 enableval=$enable_rpath; rpath_b=$enableval
3081 LINK_GXX_STATICALLY=no
3082 # Check whether --enable-static-gxx was given.
3083 if test "${enable_static_gxx+set}" = set; then
3084 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3089 # must come before any header checks
3091 # -O is necessary to get inlining
3093 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3094 LDFLAGS=${LDFLAGS-""}
3100 # Check whether --enable-debugging was given.
3101 if test "${enable_debugging+set}" = set; then
3102 enableval=$enable_debugging; debug_b=$enableval
3106 # Check whether --enable-optimising was given.
3107 if test "${enable_optimising+set}" = set; then
3108 enableval=$enable_optimising; optimise_b=$enableval
3112 # Check whether --enable-profiling was given.
3113 if test "${enable_profiling+set}" = set; then
3114 enableval=$enable_profiling; profile_b=$enableval
3118 # Check whether --enable-pipe was given.
3119 if test "${enable_pipe+set}" = set; then
3120 enableval=$enable_pipe; pipe_b=$enableval
3124 if test "$optimise_b" = yes; then
3125 cat >>confdefs.h <<\_ACEOF
3129 DEFINES="$DEFINES -DNDEBUG"
3130 OPTIMIZE=" -O2 -finline-functions"
3133 if test $profile_b = yes; then
3135 OPTIMIZE="$OPTIMIZE -pg"
3138 if test $debug_b = yes; then
3139 OPTIMIZE="$OPTIMIZE -g"
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:$LINENO: result: no" >&5
3181 $as_echo "no" >&6; }
3186 if test -z "$ac_cv_prog_CC"; then
3188 # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="gcc"
3206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3224 if test "x$ac_ct_CC" = x; then
3227 case $cross_compiling:$ac_tool_warned in
3229 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}cc; ac_word=$2
3243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="${ac_tool_prefix}cc"
3259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3273 { $as_echo "$as_me:$LINENO: result: no" >&5
3274 $as_echo "no" >&6; }
3280 if test -z "$CC"; then
3281 # Extract the first word of "cc", so it can be a program name with args.
3282 set dummy cc; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300 ac_prog_rejected=yes
3304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test $ac_prog_rejected = yes; then
3312 # We found a bogon in the path, so make sure we never use it.
3313 set dummy $ac_cv_prog_CC
3315 if test $# != 0; then
3316 # We chose a different compiler from the bogus one.
3317 # However, it has the same basename, so the bogon will be chosen
3318 # first if we set CC to just the basename; use the full file name.
3320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3330 { $as_echo "$as_me:$LINENO: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 for ac_prog in cl.exe
3340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345 $as_echo_n "(cached) " >&6
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3372 { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3377 test -n "$CC" && break
3380 if test -z "$CC"; then
3382 for ac_prog in cl.exe
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CC="$ac_prog"
3402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3416 { $as_echo "$as_me:$LINENO: result: no" >&5
3417 $as_echo "no" >&6; }
3421 test -n "$ac_ct_CC" && break
3424 if test "x$ac_ct_CC" = x; then
3427 case $cross_compiling:$ac_tool_warned in
3429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3440 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3443 See \`config.log' for more details." >&5
3444 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }; }
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3452 { (ac_try="$ac_compiler --version >&5"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3458 $as_echo "$ac_try_echo") >&5
3459 (eval "$ac_compiler --version >&5") 2>&5
3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3463 { (ac_try="$ac_compiler -v >&5"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470 (eval "$ac_compiler -v >&5") 2>&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }
3474 { (ac_try="$ac_compiler -V >&5"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_compiler -V >&5") 2>&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3506 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514 for ac_file in $ac_files
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 if { (ac_try="$ac_link_default"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529 $as_echo "$ac_try_echo") >&5
3530 (eval "$ac_link_default") 2>&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; then
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3539 for ac_file in $ac_files ''
3541 test -f "$ac_file" || continue
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 # We found the default executable, but exeext='' is most
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3570 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3571 $as_echo "$ac_file" >&6; }
3572 if test -z "$ac_file"; then
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&2;}
3582 { (exit 77); exit 77; }; }; }
3585 ac_exeext=$ac_cv_exeext
3587 # Check that the compiler produces executables we can run. If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3592 # If not cross compiling, check that we can run a simple program.
3593 if test "$cross_compiling" != yes; then
3594 if { ac_try='./$ac_file'
3595 { (case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_try") 2>&5
3603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3607 if test "$cross_compiling" = maybe; then
3610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3613 If you meant to cross compile, use \`--host'.
3614 See \`config.log' for more details." >&5
3615 $as_echo "$as_me: error: cannot run C compiled programs.
3616 If you meant to cross compile, use \`--host'.
3617 See \`config.log' for more details." >&2;}
3618 { (exit 1); exit 1; }; }; }
3622 { $as_echo "$as_me:$LINENO: result: yes" >&5
3623 $as_echo "yes" >&6; }
3625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3626 ac_clean_files=$ac_clean_files_save
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3632 $as_echo "$cross_compiling" >&6; }
3634 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3635 $as_echo_n "checking for suffix of executables... " >&6; }
3636 if { (ac_try="$ac_link"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_link") 2>&5
3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3649 # work properly (i.e., refer to `conftest.exe'), while it won't with
3651 for ac_file in conftest.exe conftest conftest.*; do
3652 test -f "$ac_file" || continue
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&2;}
3667 { (exit 1); exit 1; }; }; }
3670 rm -f conftest$ac_cv_exeext
3671 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3677 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if test "${ac_cv_objext+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.o conftest.obj
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>&5
3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; then
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." >&5
3725 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&2;}
3727 { (exit 1); exit 1; }; }; }
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3736 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739 $as_echo_n "(cached) " >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3779 $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3791 if test $ac_compiler_gnu = yes; then
3796 ac_test_CFLAGS=${CFLAGS+set}
3797 ac_save_CFLAGS=$CFLAGS
3798 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3800 if test "${ac_cv_prog_cc_g+set}" = set; then
3801 $as_echo_n "(cached) " >&6
3803 ac_save_c_werror_flag=$ac_c_werror_flag
3804 ac_c_werror_flag=yes
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3829 $as_echo "$ac_try_echo") >&5
3830 (eval "$ac_compile") 2>conftest.er1
3832 grep -v '^ *+' conftest.er1 >conftest.err
3834 cat conftest.err >&5
3835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest.$ac_objext; then
3842 $as_echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868 $as_echo "$ac_try_echo") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3881 $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939 CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941 if test "$GCC" = yes; then
3947 if test "$GCC" = yes; then
3953 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if test "${ac_cv_prog_cc_c89+set}" = set; then
3956 $as_echo_n "(cached) " >&6
3958 ac_cv_prog_cc_c89=no
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3968 #include <sys/types.h>
3969 #include <sys/stat.h>
3970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3971 struct buf { int x; };
3972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973 static char *e (p, i)
3979 static char *f (char * (*g) (char **, int), char **p, ...)
3984 s = g (p, va_arg (v,int));
3989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3990 function prototypes and stuff, but not '\xHH' hex character constants.
3991 These don't provoke an error unfortunately, instead are silently treated
3992 as 'x'. The following induces an error, until -std is added to get
3993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3994 array size at least. It's necessary to write '\x00'==0 to get something
3995 that's true only with -std. */
3996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999 inside strings and character constants. */
4001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003 int test (int i, double x);
4004 struct s1 {int (*f) (int a);};
4005 struct s2 {int (*f) (double a);};
4006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020 CC="$ac_save_CC $ac_arg"
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.$ac_objext; then
4039 ac_cv_prog_cc_c89=$ac_arg
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4047 rm -f core conftest.err conftest.$ac_objext
4048 test "x$ac_cv_prog_cc_c89" != "xno" && break
4050 rm -f conftest.$ac_ext
4055 case "x$ac_cv_prog_cc_c89" in
4057 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4058 $as_echo "none needed" >&6; } ;;
4060 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4061 $as_echo "unsupported" >&6; } ;;
4063 CC="$CC $ac_cv_prog_cc_c89"
4064 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 r="`eval echo '$'"CC"`"
4083 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4086 ##STEPMAKE_WARN(cannot find . )
4090 if test $? -ne 0; then
4092 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4094 if test "" = "REQUIRED"; then
4095 command="echo ERROR: cc not found"
4096 # abort configure process here?
4098 command="- echo cc not found"
4100 eval "CC"='$command'
4109 # If -pipe requested, test if it works and add to CFLAGS.
4110 if test "$pipe_b" = yes; then
4111 save_cflags="$CFLAGS"
4112 CFLAGS=" -pipe $CFLAGS";
4113 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4114 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4115 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4116 $as_echo_n "(cached) " >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141 $as_echo "$ac_try_echo") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && {
4149 test -z "$ac_c_werror_flag" ||
4150 test ! -s conftest.err
4151 } && test -s conftest.$ac_objext; then
4152 stepmake_cv_cflags_pipe=yes
4154 $as_echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 stepmake_cv_cflags_pipe=no
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4163 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4165 if test $stepmake_cv_cflags_pipe = yes; then
4166 OPTIMIZE="$OPTIMIZE -pipe"
4170 CFLAGS="$CFLAGS $OPTIMIZE"
4171 CPPFLAGS=${CPPFLAGS-""}
4173 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4174 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4175 save_cflags="$CFLAGS"
4178 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4179 $as_echo "-mieee" >&6; }
4180 CFLAGS=" -mieee $CFLAGS"
4183 { $as_echo "$as_me:$LINENO: result: none" >&5
4184 $as_echo "none" >&6; }
4196 # Extract the first word of "fc-list", so it can be a program name with args.
4197 set dummy fc-list; ac_word=$2
4198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_FCLIST+set}" = set; then
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$FCLIST"; then
4204 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_FCLIST="fc-list"
4214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 FCLIST=$ac_cv_prog_FCLIST
4224 if test -n "$FCLIST"; then
4225 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4226 $as_echo "$FCLIST" >&6; }
4228 { $as_echo "$as_me:$LINENO: result: no" >&5
4229 $as_echo "no" >&6; }
4233 { $as_echo "$as_me:$LINENO: checking for New Century Schoolbook PFB files" >&5
4234 $as_echo_n "checking for New Century Schoolbook PFB files... " >&6; }
4237 if test "$NCSB_DIR" = ""; then
4238 if test "$FCLIST" != ""; then
4239 NCSB_FILE=`$FCLIST "Century Schoolbook L:foundry=urw:fontformat=Type 1:lang=ru" file \
4241 if test "$NCSB_FILE" != ""; then
4242 NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
4243 NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4244 NCSB_DIR=`$as_dirname -- $NCSB_FILE ||
4245 $as_expr X$NCSB_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4246 X$NCSB_FILE : 'X\(//\)[^/]' \| \
4247 X$NCSB_FILE : 'X\(//\)$' \| \
4248 X$NCSB_FILE : 'X\(/\)' \| . 2>/dev/null ||
4249 $as_echo X$NCSB_FILE |
4250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4270 if test "$NCSB_DIR" != "" ; then
4271 for f in c059013l.pfb c059016l.pfb c059033l.pfb c059036l.pfb; do
4272 if test ! -f "$NCSB_DIR/$f"; then
4273 MISSING_NCSB_SOURCE_FILES="$f $MISSING_NCSB_SOURCE_FILES"
4275 if test "`grep Cyrillic "$NCSB_DIR/$f"`" = ""; then
4276 INCOMPLETE_NCSB_SOURCE_FILES="$f $INCOMPLETE_NCSB_SOURCE_FILES"
4278 NCSB_SOURCE_FILES="$NCSB_DIR/$f $NCSB_SOURCE_FILES"
4283 if test "$NCSB_DIR" = "" -o "$MISSING_NCSB_SOURCE_FILES" != "$INCOMPLETE_NCSB_SOURCE_FILES"; then
4284 { $as_echo "$as_me:$LINENO: result: no" >&5
4285 $as_echo "no" >&6; }
4287 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"International New Century Schoolbook fonts\"`\"
4289 if test "$NCSB_DIR" = ""; then
4290 if test "$FCLIST" = ""; then
4292 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-ncsb-dir)'\"`\"
4296 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(make sure the fc-list utility can see them, or use --with-ncsb-dir)'\"`\"
4300 if test "$MISSING_NCSB_SOURCE_FILES" != ""; then
4302 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_NCSB_SOURCE_FILES)'\"`\"
4305 if test "$INCOMPLETE_NCSB_SOURCE_FILES" != ""; then
4307 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files do not contain Cyrillic characters: $INCOMPLETE_NCSB_SOURCE_FILES)'\"`\"
4311 { $as_echo "$as_me:$LINENO: result: yes" >&5
4312 $as_echo "yes" >&6; }
4316 ac_cpp='$CXXCPP $CPPFLAGS'
4317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4323 { $as_echo "$as_me:$LINENO: checking for python" >&5
4324 $as_echo_n "checking for python... " >&6; }
4327 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
4329 ## which doesn't work in ash, if /usr/bin/which isn't installed
4330 ## type -p doesn't work in ash
4331 ## command -v doesn't work in zsh
4332 ## command -v "$r" 2>&1
4333 ## this test should work in ash, bash, pdksh (ksh), zsh
4334 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4336 if ! $exe -V > /dev/null 2>&1 ; then
4340 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4343 ## Workaround for broken Debian gcc version string:
4344 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4346 ## -V: Workaround for python
4350 ## Assume and hunt for dotted version multiplet.
4351 ## use eval trickery, because we cannot use multi-level $() instead of ``
4352 ## for compatibility reasons.
4354 ## grab the first version number in --version output.
4355 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4356 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4359 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4360 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4363 if test -z "$_ver"; then
4364 ## If empty, try date [fontforge]
4365 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4367 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4373 echo "$ver" | awk -F. '
4375 if ($3) {three = $3}
4378 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4381 echo "2.4" | awk -F. '
4383 if ($3) {three = $3}
4386 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4389 echo "3.0" | awk -F. '
4391 if ($3) {three = $3}
4394 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4396 if test -n "2.4" && test "$num" -lt "$req"; then
4397 python="$r >= 2.4 (installed: $ver)"
4400 if test -n "3.0" && test "$num" -ge "$sup"; then
4401 python="$r < 3.0 (installed: $ver)"
4410 { $as_echo "$as_me:$LINENO: result: $found" >&5
4411 $as_echo "$found" >&6; }
4412 if test "$found" != "no"; then
4413 { $as_echo "$as_me:$LINENO: checking $python version" >&5
4414 $as_echo_n "checking $python version... " >&6; }
4415 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4416 $as_echo "$ver" >&6; }
4420 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4423 # Extract the first word of "$PYTHON", so it can be a program name with args.
4424 set dummy $PYTHON; ac_word=$2
4425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_path_PYTHON+set}" = set; then
4428 $as_echo_n "(cached) " >&6
4432 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 PYTHON=$ac_cv_path_PYTHON
4454 if test -n "$PYTHON"; then
4455 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4456 $as_echo "$PYTHON" >&6; }
4458 { $as_echo "$as_me:$LINENO: result: no" >&5
4459 $as_echo "no" >&6; }
4465 # this checks if we have GNU C by compiling a program with
4466 # __GNUC__, but that macro now unofficially means "the compiler
4467 # supports the GNU C extensions" -- the intel C compiler and clang
4468 # both support __GNUC__!
4470 ac_cpp='$CXXCPP $CPPFLAGS'
4471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4474 if test -z "$CXX"; then
4475 if test -n "$CCC"; then
4478 if test -n "$ac_tool_prefix"; then
4479 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_CXX+set}" = set; then
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$CXX"; then
4489 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test -n "$CXX"; then
4510 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4511 $as_echo "$CXX" >&6; }
4513 { $as_echo "$as_me:$LINENO: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$CXX" && break
4521 if test -z "$CXX"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525 # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4530 $as_echo_n "(cached) " >&6
4532 if test -n "$ac_ct_CXX"; then
4533 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_CXX="$ac_prog"
4543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4553 if test -n "$ac_ct_CXX"; then
4554 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4555 $as_echo "$ac_ct_CXX" >&6; }
4557 { $as_echo "$as_me:$LINENO: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$ac_ct_CXX" && break
4565 if test "x$ac_ct_CXX" = x; then
4568 case $cross_compiling:$ac_tool_warned in
4570 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4580 # Provide some information about the compiler.
4581 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4584 { (ac_try="$ac_compiler --version >&5"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591 (eval "$ac_compiler --version >&5") 2>&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (ac_try="$ac_compiler -v >&5"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601 $as_echo "$ac_try_echo") >&5
4602 (eval "$ac_compiler -v >&5") 2>&5
4604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }
4606 { (ac_try="$ac_compiler -V >&5"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613 (eval "$ac_compiler -V >&5") 2>&5
4615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }
4618 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4621 $as_echo_n "(cached) " >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649 (eval "$ac_compile") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1 >conftest.err
4653 cat conftest.err >&5
4654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_cxx_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest.$ac_objext; then
4661 $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4671 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4672 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4673 if test $ac_compiler_gnu = yes; then
4678 ac_test_CXXFLAGS=${CXXFLAGS+set}
4679 ac_save_CXXFLAGS=$CXXFLAGS
4680 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4681 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4682 if test "${ac_cv_prog_cxx_g+set}" = set; then
4683 $as_echo_n "(cached) " >&6
4685 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4686 ac_cxx_werror_flag=yes
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_cxx_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4722 ac_cv_prog_cxx_g=yes
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751 (eval "$ac_compile") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && {
4758 test -z "$ac_cxx_werror_flag" ||
4759 test ! -s conftest.err
4760 } && test -s conftest.$ac_objext; then
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791 (eval "$ac_compile") 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } && {
4798 test -z "$ac_cxx_werror_flag" ||
4799 test ! -s conftest.err
4800 } && test -s conftest.$ac_objext; then
4801 ac_cv_prog_cxx_g=yes
4803 $as_echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4820 if test "$ac_test_CXXFLAGS" = set; then
4821 CXXFLAGS=$ac_save_CXXFLAGS
4822 elif test $ac_cv_prog_cxx_g = yes; then
4823 if test "$GXX" = yes; then
4829 if test "$GXX" = yes; then
4836 ac_cpp='$CXXCPP $CPPFLAGS'
4837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4843 ac_cpp='$CXXCPP $CPPFLAGS'
4844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4848 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4849 if test -z "$CXXCPP"; then
4850 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4851 $as_echo_n "(cached) " >&6
4853 # Double quotes because CXXCPP needs to be expanded
4854 for CXXCPP in "$CXX -E" "/lib/cpp"
4857 for ac_cxx_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4884 $as_echo "$ac_try_echo") >&5
4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null && {
4892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4893 test ! -s conftest.err
4897 $as_echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 # Broken: fails on valid input.
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether nonexistent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <ac_nonexistent.h>
4916 if { (ac_try="$ac_cpp conftest.$ac_ext"
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4922 $as_echo "$ac_try_echo") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4933 # Broken: success on invalid input.
4936 $as_echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 # Passes both tests.
4944 rm -f conftest.err conftest.$ac_ext
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4954 ac_cv_prog_CXXCPP=$CXXCPP
4957 CXXCPP=$ac_cv_prog_CXXCPP
4959 ac_cv_prog_CXXCPP=$CXXCPP
4961 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4962 $as_echo "$CXXCPP" >&6; }
4964 for ac_cxx_preproc_warn_flag in '' yes
4966 # Use a header file that comes with gcc, so configuring glibc
4967 # with a fresh cross-compiler works.
4968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969 # <limits.h> exists even on freestanding compilers.
4970 # On the NeXT, cc -E runs the code through the compiler's parser,
4971 # not just through cpp. "Syntax error" is here to catch this case.
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4979 # include <limits.h>
4981 # include <assert.h>
4985 if { (ac_try="$ac_cpp conftest.$ac_ext"
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991 $as_echo "$ac_try_echo") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null && {
4999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5000 test ! -s conftest.err
5004 $as_echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 # Broken: fails on valid input.
5011 rm -f conftest.err conftest.$ac_ext
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5021 #include <ac_nonexistent.h>
5023 if { (ac_try="$ac_cpp conftest.$ac_ext"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null && {
5037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5038 test ! -s conftest.err
5040 # Broken: success on invalid input.
5043 $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 # Passes both tests.
5051 rm -f conftest.err conftest.$ac_ext
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5055 rm -f conftest.err conftest.$ac_ext
5056 if $ac_preproc_ok; then
5059 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5061 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5062 See \`config.log' for more details." >&5
5063 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5064 See \`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; }; }
5069 ac_cpp='$CXXCPP $CPPFLAGS'
5070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5075 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5076 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5077 if test "${ac_cv_path_GREP+set}" = set; then
5078 $as_echo_n "(cached) " >&6
5080 if test -z "$GREP"; then
5081 ac_path_GREP_found=false
5082 # Loop through the user's path and test for each of PROGNAME-LIST
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 test -z "$as_dir" && as_dir=.
5088 for ac_prog in grep ggrep; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5091 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5092 # Check for GNU ac_path_GREP and select it if it is found.
5093 # Check for GNU $ac_path_GREP
5094 case `"$ac_path_GREP" --version 2>&1` in
5096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5099 $as_echo_n 0123456789 >"conftest.in"
5102 cat "conftest.in" "conftest.in" >"conftest.tmp"
5103 mv "conftest.tmp" "conftest.in"
5104 cp "conftest.in" "conftest.nl"
5105 $as_echo 'GREP' >> "conftest.nl"
5106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108 ac_count=`expr $ac_count + 1`
5109 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5110 # Best one so far, save it but keep looking for a better one
5111 ac_cv_path_GREP="$ac_path_GREP"
5112 ac_path_GREP_max=$ac_count
5114 # 10*(2^10) chars as input seems more than enough
5115 test $ac_count -gt 10 && break
5117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 $ac_path_GREP_found && break 3
5125 if test -z "$ac_cv_path_GREP"; then
5126 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5127 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5128 { (exit 1); exit 1; }; }
5131 ac_cv_path_GREP=$GREP
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5136 $as_echo "$ac_cv_path_GREP" >&6; }
5137 GREP="$ac_cv_path_GREP"
5140 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5141 $as_echo_n "checking for egrep... " >&6; }
5142 if test "${ac_cv_path_EGREP+set}" = set; then
5143 $as_echo_n "(cached) " >&6
5145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5146 then ac_cv_path_EGREP="$GREP -E"
5148 if test -z "$EGREP"; then
5149 ac_path_EGREP_found=false
5150 # Loop through the user's path and test for each of PROGNAME-LIST
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5155 test -z "$as_dir" && as_dir=.
5156 for ac_prog in egrep; do
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5159 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5160 # Check for GNU ac_path_EGREP and select it if it is found.
5161 # Check for GNU $ac_path_EGREP
5162 case `"$ac_path_EGREP" --version 2>&1` in
5164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5167 $as_echo_n 0123456789 >"conftest.in"
5170 cat "conftest.in" "conftest.in" >"conftest.tmp"
5171 mv "conftest.tmp" "conftest.in"
5172 cp "conftest.in" "conftest.nl"
5173 $as_echo 'EGREP' >> "conftest.nl"
5174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176 ac_count=`expr $ac_count + 1`
5177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5178 # Best one so far, save it but keep looking for a better one
5179 ac_cv_path_EGREP="$ac_path_EGREP"
5180 ac_path_EGREP_max=$ac_count
5182 # 10*(2^10) chars as input seems more than enough
5183 test $ac_count -gt 10 && break
5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5188 $ac_path_EGREP_found && break 3
5193 if test -z "$ac_cv_path_EGREP"; then
5194 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5195 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5196 { (exit 1); exit 1; }; }
5199 ac_cv_path_EGREP=$EGREP
5204 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5205 $as_echo "$ac_cv_path_EGREP" >&6; }
5206 EGREP="$ac_cv_path_EGREP"
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223 $EGREP "yes" >/dev/null 2>&1; then
5231 if test "$HAS_CLANG" = "no"; then
5232 if test "$GCC" = "yes"; then
5234 r="`eval echo '$'"CC"`"
5235 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5236 $as_echo_n "checking $r version... " >&6; }
5238 ## which doesn't work in ash, if /usr/bin/which isn't installed
5239 ## type -p doesn't work in ash
5240 ## command -v doesn't work in zsh
5241 ## command -v "$r" 2>&1
5242 ## this test should work in ash, bash, pdksh (ksh), zsh
5243 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5249 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5252 ## Workaround for broken Debian gcc version string:
5253 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5255 ## -V: Workaround for python
5259 ## Assume and hunt for dotted version multiplet.
5260 ## use eval trickery, because we cannot use multi-level $() instead of ``
5261 ## for compatibility reasons.
5263 ## grab the first version number in --version output.
5264 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5265 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5268 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5269 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5272 if test -z "$_ver"; then
5273 ## If empty, try date [fontforge]
5274 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5276 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5283 echo "$ver" | awk -F. '
5285 if ($3) {three = $3}
5288 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5291 echo "3.4" | awk -F. '
5293 if ($3) {three = $3}
5296 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5298 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5299 $as_echo "$ver" >&6; }
5300 if test "$num" -lt "$req"; then
5302 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5305 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5306 eval `echo $vervar=$num`
5307 ## AC_SUBST(`eval echo $vervar`)
5310 warn="$CC (Please install *GNU* cc)"
5312 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5316 # no else, we're fine with any clang
5321 ac_cpp='$CXXCPP $CPPFLAGS'
5322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5325 if test -z "$CXX"; then
5326 if test -n "$CCC"; then
5329 if test -n "$ac_tool_prefix"; then
5330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_CXX+set}" = set; then
5337 $as_echo_n "(cached) " >&6
5339 if test -n "$CXX"; then
5340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 if test -n "$CXX"; then
5361 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5362 $as_echo "$CXX" >&6; }
5364 { $as_echo "$as_me:$LINENO: result: no" >&5
5365 $as_echo "no" >&6; }
5369 test -n "$CXX" && break
5372 if test -z "$CXX"; then
5374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$ac_ct_CXX"; then
5384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_CXX="$ac_prog"
5394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5404 if test -n "$ac_ct_CXX"; then
5405 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5406 $as_echo "$ac_ct_CXX" >&6; }
5408 { $as_echo "$as_me:$LINENO: result: no" >&5
5409 $as_echo "no" >&6; }
5413 test -n "$ac_ct_CXX" && break
5416 if test "x$ac_ct_CXX" = x; then
5419 case $cross_compiling:$ac_tool_warned in
5421 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5431 # Provide some information about the compiler.
5432 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5435 { (ac_try="$ac_compiler --version >&5"
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441 $as_echo "$ac_try_echo") >&5
5442 (eval "$ac_compiler --version >&5") 2>&5
5444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }
5446 { (ac_try="$ac_compiler -v >&5"
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453 (eval "$ac_compiler -v >&5") 2>&5
5455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }
5457 { (ac_try="$ac_compiler -V >&5"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464 (eval "$ac_compiler -V >&5") 2>&5
5466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }
5469 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_cxx_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5522 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5523 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5524 if test $ac_compiler_gnu = yes; then
5529 ac_test_CXXFLAGS=${CXXFLAGS+set}
5530 ac_save_CXXFLAGS=$CXXFLAGS
5531 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5532 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5533 if test "${ac_cv_prog_cxx_g+set}" = set; then
5534 $as_echo_n "(cached) " >&6
5536 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5537 ac_cxx_werror_flag=yes
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5562 $as_echo "$ac_try_echo") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_cxx_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5573 ac_cv_prog_cxx_g=yes
5575 $as_echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5579 cat >conftest.$ac_ext <<_ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5594 rm -f conftest.$ac_objext
5595 if { (ac_try="$ac_compile"
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601 $as_echo "$ac_try_echo") >&5
5602 (eval "$ac_compile") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && {
5609 test -z "$ac_cxx_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest.$ac_objext; then
5614 $as_echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641 $as_echo "$ac_try_echo") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5644 grep -v '^ *+' conftest.er1 >conftest.err
5646 cat conftest.err >&5
5647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_cxx_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.$ac_objext; then
5652 ac_cv_prog_cxx_g=yes
5654 $as_echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5669 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5670 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5671 if test "$ac_test_CXXFLAGS" = set; then
5672 CXXFLAGS=$ac_save_CXXFLAGS
5673 elif test $ac_cv_prog_cxx_g = yes; then
5674 if test "$GXX" = yes; then
5680 if test "$GXX" = yes; then
5687 ac_cpp='$CXXCPP $CPPFLAGS'
5688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5694 r="`eval echo '$'"CXX"`"
5695 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5698 ##STEPMAKE_WARN(cannot find . )
5702 if test $? -ne 0; then
5704 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5706 if test "REQUIRED" = "REQUIRED"; then
5707 command="echo ERROR: c++ not found"
5708 # abort configure process here?
5710 command="- echo c++ not found"
5712 eval "CXX"='$command'
5719 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5728 cat >conftest.$ac_ext <<_ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5740 $EGREP "yes" >/dev/null 2>&1; then
5748 if test "$HAS_CLANG" = "no"; then
5749 if test "$GXX" = "yes"; then
5751 r="`eval echo '$'"CXX"`"
5752 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5753 $as_echo_n "checking $r version... " >&6; }
5755 ## which doesn't work in ash, if /usr/bin/which isn't installed
5756 ## type -p doesn't work in ash
5757 ## command -v doesn't work in zsh
5758 ## command -v "$r" 2>&1
5759 ## this test should work in ash, bash, pdksh (ksh), zsh
5760 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5766 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5769 ## Workaround for broken Debian gcc version string:
5770 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5772 ## -V: Workaround for python
5776 ## Assume and hunt for dotted version multiplet.
5777 ## use eval trickery, because we cannot use multi-level $() instead of ``
5778 ## for compatibility reasons.
5780 ## grab the first version number in --version output.
5781 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5782 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5785 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5786 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5789 if test -z "$_ver"; then
5790 ## If empty, try date [fontforge]
5791 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5793 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5800 echo "$ver" | awk -F. '
5802 if ($3) {three = $3}
5805 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5808 echo "3.4" | awk -F. '
5810 if ($3) {three = $3}
5813 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5815 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5816 $as_echo "$ver" >&6; }
5817 if test "$num" -lt "$req"; then
5819 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5822 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5823 eval `echo $vervar=$num`
5824 ## AC_SUBST(`eval echo $vervar`)
5827 warn="$CXX (Please install *GNU* c++)"
5829 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5833 # no else, we're fine with any clang
5836 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5837 $as_echo_n "checking options for known g++ bugs... " >&6; }
5838 case "$GXX:$CXX_VERSION" in
5840 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5841 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5842 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5845 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5846 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5847 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5849 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5850 $as_echo "none" >&6; }
5855 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5856 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5857 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5858 $as_echo_n "(cached) " >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5867 template <class T> struct foo { static int baz; };
5868 template <class T> int foo<T>::baz = 1;
5873 return foo<int>::baz;
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (ac_try="$ac_link"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_link") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext && {
5896 test "$cross_compiling" = yes ||
5897 $as_test_x conftest$ac_exeext
5899 stepmake_cv_need_explicit_instantiation=no
5901 $as_echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 stepmake_cv_need_explicit_instantiation=yes
5907 rm -rf conftest.dSYM
5908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5909 conftest$ac_exeext conftest.$ac_ext
5911 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5912 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5913 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5914 cat >>confdefs.h <<\_ACEOF
5915 #define NEED_EXPLICIT_INSTANTIATION 1
5921 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5922 $as_echo_n "checking for stl.data () method... " >&6; }
5923 if test "${stepmake_cv_stl_data_method+set}" = set; then
5924 $as_echo_n "(cached) " >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5934 using namespace std;
5936 void *p = v.data ();
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5953 $as_echo "$ac_try_echo") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_cxx_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 stepmake_cv_stl_data_method=yes
5966 $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 stepmake_cv_stl_data_method=no
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5975 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5976 if test $stepmake_cv_stl_data_method = yes; then
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_STL_DATA_METHOD 1
5988 # Extract the first word of "$ac_prog", so it can be a program name with args.
5989 set dummy $ac_prog; ac_word=$2
5990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if test "${ac_cv_prog_AR+set}" = set; then
5993 $as_echo_n "(cached) " >&6
5995 if test -n "$AR"; then
5996 ac_cv_prog_AR="$AR" # Let the user override the test.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_AR="$ac_prog"
6006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 if test -n "$AR"; then
6017 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6018 $as_echo "$AR" >&6; }
6020 { $as_echo "$as_me:$LINENO: result: no" >&5
6021 $as_echo "no" >&6; }
6025 test -n "$AR" && break
6027 test -n "$AR" || AR="no"
6031 r="`eval echo '$'"AR"`"
6032 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6035 ##STEPMAKE_WARN(cannot find . )
6039 if test $? -ne 0; then
6041 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6043 if test "REQUIRED" = "REQUIRED"; then
6044 command="echo ERROR: ar not found"
6045 # abort configure process here?
6047 command="- echo ar not found"
6049 eval "AR"='$command'
6055 if test $? -eq 0 -a -n ""; then
6057 r="`eval echo '$'"AR"`"
6058 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6059 $as_echo_n "checking $r version... " >&6; }
6061 ## which doesn't work in ash, if /usr/bin/which isn't installed
6062 ## type -p doesn't work in ash
6063 ## command -v doesn't work in zsh
6064 ## command -v "$r" 2>&1
6065 ## this test should work in ash, bash, pdksh (ksh), zsh
6066 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6072 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6075 ## Workaround for broken Debian gcc version string:
6076 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6078 ## -V: Workaround for python
6082 ## Assume and hunt for dotted version multiplet.
6083 ## use eval trickery, because we cannot use multi-level $() instead of ``
6084 ## for compatibility reasons.
6086 ## grab the first version number in --version output.
6087 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6088 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6091 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6092 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6095 if test -z "$_ver"; then
6096 ## If empty, try date [fontforge]
6097 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6099 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6106 echo "$ver" | awk -F. '
6108 if ($3) {three = $3}
6111 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6116 if ($3) {three = $3}
6119 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6121 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6122 $as_echo "$ver" >&6; }
6123 if test "$num" -lt "$req"; then
6125 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6128 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6129 eval `echo $vervar=$num`
6130 ## AC_SUBST(`eval echo $vervar`)
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_RANLIB+set}" = set; then
6140 $as_echo_n "(cached) " >&6
6142 if test -n "$RANLIB"; then
6143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 RANLIB=$ac_cv_prog_RANLIB
6163 if test -n "$RANLIB"; then
6164 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6165 $as_echo "$RANLIB" >&6; }
6167 { $as_echo "$as_me:$LINENO: result: no" >&5
6168 $as_echo "no" >&6; }
6173 if test -z "$ac_cv_prog_RANLIB"; then
6174 ac_ct_RANLIB=$RANLIB
6175 # Extract the first word of "ranlib", so it can be a program name with args.
6176 set dummy ranlib; ac_word=$2
6177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6180 $as_echo_n "(cached) " >&6
6182 if test -n "$ac_ct_RANLIB"; then
6183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_ac_ct_RANLIB="ranlib"
6193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6203 if test -n "$ac_ct_RANLIB"; then
6204 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6205 $as_echo "$ac_ct_RANLIB" >&6; }
6207 { $as_echo "$as_me:$LINENO: result: no" >&5
6208 $as_echo "no" >&6; }
6211 if test "x$ac_ct_RANLIB" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6220 RANLIB=$ac_ct_RANLIB
6223 RANLIB="$ac_cv_prog_RANLIB"
6228 r="`eval echo '$'"RANLIB"`"
6229 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6232 ##STEPMAKE_WARN(cannot find . )
6236 if test $? -ne 0; then
6238 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6240 if test "REQUIRED" = "REQUIRED"; then
6241 command="echo ERROR: ranlib not found"
6242 # abort configure process here?
6244 command="- echo ranlib not found"
6246 eval "RANLIB"='$command'
6255 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6256 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6258 $as_echo_n "(cached) " >&6
6260 ac_check_lib_save_LIBS=$LIBS
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6269 /* Override any GCC internal prototype to avoid an error.
6270 Use char because int might match the return type of a GCC
6271 builtin and then its argument prototype would still apply. */
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (ac_try="$ac_link"
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292 (eval "$ac_link") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_cxx_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest$ac_exeext && {
6302 test "$cross_compiling" = yes ||
6303 $as_test_x conftest$ac_exeext
6305 ac_cv_lib_dl_dlopen=yes
6307 $as_echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6310 ac_cv_lib_dl_dlopen=no
6313 rm -rf conftest.dSYM
6314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6315 conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_check_lib_save_LIBS
6318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6320 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6321 cat >>confdefs.h <<_ACEOF
6322 #define HAVE_LIBDL 1
6330 for ac_func in dlopen
6332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6334 $as_echo_n "checking for $ac_func... " >&6; }
6335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6336 $as_echo_n "(cached) " >&6
6338 cat >conftest.$ac_ext <<_ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6346 #define $ac_func innocuous_$ac_func
6348 /* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char $ac_func (); below.
6350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6351 <limits.h> exists even on freestanding compilers. */
6354 # include <limits.h>
6356 # include <assert.h>
6361 /* Override any GCC internal prototype to avoid an error.
6362 Use char because int might match the return type of a GCC
6363 builtin and then its argument prototype would still apply. */
6368 /* The GNU C library defines this for functions which it implements
6369 to always fail with ENOSYS. Some functions are actually named
6370 something starting with __ and the normal name is an alias. */
6371 #if defined __stub_$ac_func || defined __stub___$ac_func
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390 $as_echo "$ac_try_echo") >&5
6391 (eval "$ac_link") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_cxx_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest$ac_exeext && {
6401 test "$cross_compiling" = yes ||
6402 $as_test_x conftest$ac_exeext
6404 eval "$as_ac_var=yes"
6406 $as_echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 eval "$as_ac_var=no"
6412 rm -rf conftest.dSYM
6413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6416 ac_res=`eval 'as_val=${'$as_ac_var'}
6417 $as_echo "$as_val"'`
6418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6419 $as_echo "$ac_res" >&6; }
6420 as_val=`eval 'as_val=${'$as_ac_var'}
6421 $as_echo "$as_val"'`
6422 if test "x$as_val" = x""yes; then
6423 cat >>confdefs.h <<_ACEOF
6424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6431 # Do not use bison 1.50 and 1.75.
6432 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6434 # ugh, automake: we want (and check for) bison
6435 for ac_prog in 'bison -y' byacc
6437 # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy $ac_prog; ac_word=$2
6439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_YACC+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$YACC"; then
6445 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_YACC="$ac_prog"
6455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 YACC=$ac_cv_prog_YACC
6465 if test -n "$YACC"; then
6466 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6467 $as_echo "$YACC" >&6; }
6469 { $as_echo "$as_me:$LINENO: result: no" >&5
6470 $as_echo "no" >&6; }
6474 test -n "$YACC" && break
6476 test -n "$YACC" || YACC="yacc"
6480 for ac_prog in bison
6482 # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_BISON+set}" = set; then
6487 $as_echo_n "(cached) " >&6
6489 if test -n "$BISON"; then
6490 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_BISON="$ac_prog"
6500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 BISON=$ac_cv_prog_BISON
6510 if test -n "$BISON"; then
6511 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6512 $as_echo "$BISON" >&6; }
6514 { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6519 test -n "$BISON" && break
6521 test -n "$BISON" || BISON="no"
6525 r="`eval echo '$'"BISON"`"
6526 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6529 ##STEPMAKE_WARN(cannot find . )
6533 if test $? -ne 0; then
6535 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6537 if test "REQUIRED" = "REQUIRED"; then
6538 command="echo ERROR: bison not found"
6539 # abort configure process here?
6541 command="- echo bison not found"
6543 eval "BISON"='$command'
6549 if test $? -eq 0 -a -n ""; then
6551 r="`eval echo '$'"BISON"`"
6552 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6553 $as_echo_n "checking $r version... " >&6; }
6555 ## which doesn't work in ash, if /usr/bin/which isn't installed
6556 ## type -p doesn't work in ash
6557 ## command -v doesn't work in zsh
6558 ## command -v "$r" 2>&1
6559 ## this test should work in ash, bash, pdksh (ksh), zsh
6560 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6566 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6569 ## Workaround for broken Debian gcc version string:
6570 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6572 ## -V: Workaround for python
6576 ## Assume and hunt for dotted version multiplet.
6577 ## use eval trickery, because we cannot use multi-level $() instead of ``
6578 ## for compatibility reasons.
6580 ## grab the first version number in --version output.
6581 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6582 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6585 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6586 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6589 if test -z "$_ver"; then
6590 ## If empty, try date [fontforge]
6591 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6593 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6600 echo "$ver" | awk -F. '
6602 if ($3) {three = $3}
6605 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6610 if ($3) {three = $3}
6613 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6615 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6616 $as_echo "$ver" >&6; }
6617 if test "$num" -lt "$req"; then
6619 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6622 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6623 eval `echo $vervar=$num`
6624 ## AC_SUBST(`eval echo $vervar`)
6629 # urg. should test functionality rather than version.
6630 if test "$BISON" = "bison" -a -n "1.29"; then
6632 r="`eval echo '$'"BISON"`"
6633 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6634 $as_echo_n "checking $r version... " >&6; }
6636 ## which doesn't work in ash, if /usr/bin/which isn't installed
6637 ## type -p doesn't work in ash
6638 ## command -v doesn't work in zsh
6639 ## command -v "$r" 2>&1
6640 ## this test should work in ash, bash, pdksh (ksh), zsh
6641 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6647 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6650 ## Workaround for broken Debian gcc version string:
6651 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6653 ## -V: Workaround for python
6657 ## Assume and hunt for dotted version multiplet.
6658 ## use eval trickery, because we cannot use multi-level $() instead of ``
6659 ## for compatibility reasons.
6661 ## grab the first version number in --version output.
6662 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6663 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6666 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6667 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6670 if test -z "$_ver"; then
6671 ## If empty, try date [fontforge]
6672 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6674 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6681 echo "$ver" | awk -F. '
6683 if ($3) {three = $3}
6686 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6689 echo "1.29" | awk -F. '
6691 if ($3) {three = $3}
6694 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6696 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6697 $as_echo "$ver" >&6; }
6698 if test "$num" -lt "$req"; then
6700 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6703 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6704 eval `echo $vervar=$num`
6705 ## AC_SUBST(`eval echo $vervar`)
6710 # ugh, automake: we want (and check for) flex
6712 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6716 ac_cv_prog_lex_root=lex.yy
6720 # Extract the first word of "$ac_prog", so it can be a program name with args.
6721 set dummy $ac_prog; ac_word=$2
6722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_FLEX+set}" = set; then
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$FLEX"; then
6728 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_FLEX="$ac_prog"
6738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 FLEX=$ac_cv_prog_FLEX
6748 if test -n "$FLEX"; then
6749 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6750 $as_echo "$FLEX" >&6; }
6752 { $as_echo "$as_me:$LINENO: result: no" >&5
6753 $as_echo "no" >&6; }
6757 test -n "$FLEX" && break
6759 test -n "$FLEX" || FLEX="no"
6763 r="`eval echo '$'"FLEX"`"
6764 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6767 ##STEPMAKE_WARN(cannot find . )
6771 if test $? -ne 0; then
6773 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6775 if test "REQUIRED" = "REQUIRED"; then
6776 command="echo ERROR: flex not found"
6777 # abort configure process here?
6779 command="- echo flex not found"
6781 eval "FLEX"='$command'
6787 if test $? -eq 0 -a -n ""; then
6789 r="`eval echo '$'"FLEX"`"
6790 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6791 $as_echo_n "checking $r version... " >&6; }
6793 ## which doesn't work in ash, if /usr/bin/which isn't installed
6794 ## type -p doesn't work in ash
6795 ## command -v doesn't work in zsh
6796 ## command -v "$r" 2>&1
6797 ## this test should work in ash, bash, pdksh (ksh), zsh
6798 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6804 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6807 ## Workaround for broken Debian gcc version string:
6808 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6810 ## -V: Workaround for python
6814 ## Assume and hunt for dotted version multiplet.
6815 ## use eval trickery, because we cannot use multi-level $() instead of ``
6816 ## for compatibility reasons.
6818 ## grab the first version number in --version output.
6819 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6820 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6823 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6824 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6827 if test -z "$_ver"; then
6828 ## If empty, try date [fontforge]
6829 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6831 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6838 echo "$ver" | awk -F. '
6840 if ($3) {three = $3}
6843 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6848 if ($3) {three = $3}
6851 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6853 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6854 $as_echo "$ver" >&6; }
6855 if test "$num" -lt "$req"; then
6857 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6860 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6861 eval `echo $vervar=$num`
6862 ## AC_SUBST(`eval echo $vervar`)
6867 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6868 $as_echo_n "checking for ANSI C header files... " >&6; }
6869 if test "${ac_cv_header_stdc+set}" = set; then
6870 $as_echo_n "(cached) " >&6
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_compile") 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && {
6906 test -z "$ac_cxx_werror_flag" ||
6907 test ! -s conftest.err
6908 } && test -s conftest.$ac_objext; then
6909 ac_cv_header_stdc=yes
6911 $as_echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6914 ac_cv_header_stdc=no
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 if test $ac_cv_header_stdc = yes; then
6920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6931 $EGREP "memchr" >/dev/null 2>&1; then
6934 ac_cv_header_stdc=no
6940 if test $ac_cv_header_stdc = yes; then
6941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6942 cat >conftest.$ac_ext <<_ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "free" >/dev/null 2>&1; then
6955 ac_cv_header_stdc=no
6961 if test $ac_cv_header_stdc = yes; then
6962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6963 if test "$cross_compiling" = yes; then
6966 cat >conftest.$ac_ext <<_ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6974 #if ((' ' & 0x0FF) == 0x020)
6975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6978 # define ISLOWER(c) \
6979 (('a' <= (c) && (c) <= 'i') \
6980 || ('j' <= (c) && (c) <= 'r') \
6981 || ('s' <= (c) && (c) <= 'z'))
6982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6990 for (i = 0; i < 256; i++)
6991 if (XOR (islower (i), ISLOWER (i))
6992 || toupper (i) != TOUPPER (i))
6997 rm -f conftest$ac_exeext
6998 if { (ac_try="$ac_link"
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_link") 2>&5
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7009 { (case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015 (eval "$ac_try") 2>&5
7017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7021 $as_echo "$as_me: program exited with status $ac_status" >&5
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7026 ac_cv_header_stdc=no
7028 rm -rf conftest.dSYM
7029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7035 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7036 $as_echo "$ac_cv_header_stdc" >&6; }
7037 if test $ac_cv_header_stdc = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define STDC_HEADERS 1
7045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7056 inttypes.h stdint.h unistd.h
7058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 $as_echo_n "checking for $ac_header... " >&6; }
7061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7062 $as_echo_n "(cached) " >&6
7064 cat >conftest.$ac_ext <<_ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7072 #include <$ac_header>
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_cxx_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 eval "$as_ac_Header=yes"
7094 $as_echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 eval "$as_ac_Header=no"
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 ac_res=`eval 'as_val=${'$as_ac_Header'}
7103 $as_echo "$as_val"'`
7104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7105 $as_echo "$ac_res" >&6; }
7106 as_val=`eval 'as_val=${'$as_ac_Header'}
7107 $as_echo "$as_val"'`
7108 if test "x$as_val" = x""yes; then
7109 cat >>confdefs.h <<_ACEOF
7110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 for ac_header in FlexLexer.h
7122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 $as_echo_n "checking for $ac_header... " >&6; }
7126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7127 $as_echo_n "(cached) " >&6
7129 ac_res=`eval 'as_val=${'$as_ac_Header'}
7130 $as_echo "$as_val"'`
7131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7132 $as_echo "$ac_res" >&6; }
7134 # Is the header compilable?
7135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 $as_echo_n "checking $ac_header usability... " >&6; }
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 $ac_includes_default
7144 #include <$ac_header>
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7153 $as_echo "$ac_try_echo") >&5
7154 (eval "$ac_compile") 2>conftest.er1
7156 grep -v '^ *+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } && {
7161 test -z "$ac_cxx_werror_flag" ||
7162 test ! -s conftest.err
7163 } && test -s conftest.$ac_objext; then
7164 ac_header_compiler=yes
7166 $as_echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 ac_header_compiler=no
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7174 $as_echo "$ac_header_compiler" >&6; }
7176 # Is the header present?
7177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7178 $as_echo_n "checking $ac_header presence... " >&6; }
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 #include <$ac_header>
7187 if { (ac_try="$ac_cpp conftest.$ac_ext"
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193 $as_echo "$ac_try_echo") >&5
7194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7196 grep -v '^ *+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } >/dev/null && {
7201 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7202 test ! -s conftest.err
7204 ac_header_preproc=yes
7206 $as_echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_header_preproc=no
7212 rm -f conftest.err conftest.$ac_ext
7213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7214 $as_echo "$ac_header_preproc" >&6; }
7216 # So? What about this header?
7217 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7223 ac_header_preproc=yes
7226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7229 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7233 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7242 $as_echo_n "checking for $ac_header... " >&6; }
7243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7244 $as_echo_n "(cached) " >&6
7246 eval "$as_ac_Header=\$ac_header_preproc"
7248 ac_res=`eval 'as_val=${'$as_ac_Header'}
7249 $as_echo "$as_val"'`
7250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7254 as_val=`eval 'as_val=${'$as_ac_Header'}
7255 $as_echo "$as_val"'`
7256 if test "x$as_val" = x""yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 if test $? -ne 0; then
7268 warn='FlexLexer.h (flex package)'
7270 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7273 # check for yyFlexLexer.yy_current_buffer,
7274 # in 2.5.4 <= flex < 2.5.29
7275 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7276 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7277 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7278 $as_echo_n "(cached) " >&6
7280 cat >conftest.$ac_ext <<_ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7287 using namespace std;
7288 #include <FlexLexer.h>
7289 class yy_flex_lexer: public yyFlexLexer
7294 yy_current_buffer = 0;
7306 rm -f conftest.$ac_objext
7307 if { (ac_try="$ac_compile"
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314 (eval "$ac_compile") 2>conftest.er1
7316 grep -v '^ *+' conftest.er1 >conftest.err
7318 cat conftest.err >&5
7319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_cxx_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest.$ac_objext; then
7324 stepmake_cv_flexlexer_yy_current_buffer=yes
7326 $as_echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 stepmake_cv_flexlexer_yy_current_buffer=no
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7335 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7336 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7345 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7346 $as_echo_n "checking FlexLexer.h location... " >&6; }
7349 cat <<EOF > conftest.cc
7350 using namespace std;
7351 #include <FlexLexer.h>
7353 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7354 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7355 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7358 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7359 $as_echo "$FLEXLEXER_FILE" >&6; }
7367 # Check whether --with-localedir was given.
7368 if test "${with_localedir+set}" = set; then
7369 withval=$with_localedir; localedir=$with_localedir
7371 localedir='${prefix}/share/locale'
7376 # Check whether --with-lang was given.
7377 if test "${with_lang+set}" = set; then
7378 withval=$with_lang; language=$with_lang
7384 { $as_echo "$as_me:$LINENO: checking language" >&5
7385 $as_echo_n "checking language... " >&6; }
7387 En* | en* | Am* | am* | US* | us*)
7389 NL | nl | Du* | du* | Ned* | ned*)
7396 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7397 $as_echo "$lang" >&6; }
7399 if test "$lang" = "unknown" ; then
7401 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7402 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7410 if test "$prefix" = "NONE"; then
7411 presome=${ac_default_prefix}
7413 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7416 cat >>confdefs.h <<_ACEOF
7417 #define LOCALEDIR "${LOCALEDIR}"
7421 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7422 $as_echo_n "checking for gettext in -lintl... " >&6; }
7423 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7424 $as_echo_n "(cached) " >&6
7426 ac_check_lib_save_LIBS=$LIBS
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7435 /* Override any GCC internal prototype to avoid an error.
7436 Use char because int might match the return type of a GCC
7437 builtin and then its argument prototype would still apply. */
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (ac_try="$ac_link"
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7457 $as_echo "$ac_try_echo") >&5
7458 (eval "$ac_link") 2>conftest.er1
7460 grep -v '^ *+' conftest.er1 >conftest.err
7462 cat conftest.err >&5
7463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && {
7465 test -z "$ac_cxx_werror_flag" ||
7466 test ! -s conftest.err
7467 } && test -s conftest$ac_exeext && {
7468 test "$cross_compiling" = yes ||
7469 $as_test_x conftest$ac_exeext
7471 ac_cv_lib_intl_gettext=yes
7473 $as_echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_cv_lib_intl_gettext=no
7479 rm -rf conftest.dSYM
7480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7481 conftest$ac_exeext conftest.$ac_ext
7482 LIBS=$ac_check_lib_save_LIBS
7484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7485 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7486 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7487 cat >>confdefs.h <<_ACEOF
7488 #define HAVE_LIBINTL 1
7496 for ac_func in gettext
7498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7499 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7500 $as_echo_n "checking for $ac_func... " >&6; }
7501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7502 $as_echo_n "(cached) " >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7512 #define $ac_func innocuous_$ac_func
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char $ac_func (); below.
7516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 <limits.h> exists even on freestanding compilers. */
7520 # include <limits.h>
7522 # include <assert.h>
7527 /* Override any GCC internal prototype to avoid an error.
7528 Use char because int might match the return type of a GCC
7529 builtin and then its argument prototype would still apply. */
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined __stub_$ac_func || defined __stub___$ac_func
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7556 $as_echo "$ac_try_echo") >&5
7557 (eval "$ac_link") 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_cxx_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest$ac_exeext && {
7567 test "$cross_compiling" = yes ||
7568 $as_test_x conftest$ac_exeext
7570 eval "$as_ac_var=yes"
7572 $as_echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 eval "$as_ac_var=no"
7578 rm -rf conftest.dSYM
7579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7580 conftest$ac_exeext conftest.$ac_ext
7582 ac_res=`eval 'as_val=${'$as_ac_var'}
7583 $as_echo "$as_val"'`
7584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7585 $as_echo "$ac_res" >&6; }
7586 as_val=`eval 'as_val=${'$as_ac_var'}
7587 $as_echo "$as_val"'`
7588 if test "x$as_val" = x""yes; then
7589 cat >>confdefs.h <<_ACEOF
7590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7599 for ac_prog in msgfmt
7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$MSGFMT"; then
7609 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_MSGFMT="$ac_prog"
7619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 MSGFMT=$ac_cv_prog_MSGFMT
7629 if test -n "$MSGFMT"; then
7630 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7631 $as_echo "$MSGFMT" >&6; }
7633 { $as_echo "$as_me:$LINENO: result: no" >&5
7634 $as_echo "no" >&6; }
7638 test -n "$MSGFMT" && break
7640 test -n "$MSGFMT" || MSGFMT="no"
7644 r="`eval echo '$'"MSGFMT"`"
7645 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7648 ##STEPMAKE_WARN(cannot find . )
7652 if test $? -ne 0; then
7654 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7656 if test "REQUIRED" = "REQUIRED"; then
7657 command="echo ERROR: msgfmt not found"
7658 # abort configure process here?
7660 command="- echo msgfmt not found"
7662 eval "MSGFMT"='$command'
7668 if test $? -eq 0 -a -n ""; then
7670 r="`eval echo '$'"MSGFMT"`"
7671 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7672 $as_echo_n "checking $r version... " >&6; }
7674 ## which doesn't work in ash, if /usr/bin/which isn't installed
7675 ## type -p doesn't work in ash
7676 ## command -v doesn't work in zsh
7677 ## command -v "$r" 2>&1
7678 ## this test should work in ash, bash, pdksh (ksh), zsh
7679 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7685 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7688 ## Workaround for broken Debian gcc version string:
7689 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7691 ## -V: Workaround for python
7695 ## Assume and hunt for dotted version multiplet.
7696 ## use eval trickery, because we cannot use multi-level $() instead of ``
7697 ## for compatibility reasons.
7699 ## grab the first version number in --version output.
7700 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7701 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7704 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7705 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7708 if test -z "$_ver"; then
7709 ## If empty, try date [fontforge]
7710 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7712 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7719 echo "$ver" | awk -F. '
7721 if ($3) {three = $3}
7724 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7729 if ($3) {three = $3}
7732 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7734 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7735 $as_echo "$ver" >&6; }
7736 if test "$num" -lt "$req"; then
7738 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7741 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7742 eval `echo $vervar=$num`
7743 ## AC_SUBST(`eval echo $vervar`)
7750 for ac_prog in mf-nowin mf mfw mfont
7752 # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_METAFONT+set}" = set; then
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$METAFONT"; then
7760 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_METAFONT="$ac_prog"
7770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 METAFONT=$ac_cv_prog_METAFONT
7780 if test -n "$METAFONT"; then
7781 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7782 $as_echo "$METAFONT" >&6; }
7784 { $as_echo "$as_me:$LINENO: result: no" >&5
7785 $as_echo "no" >&6; }
7789 test -n "$METAFONT" && break
7791 test -n "$METAFONT" || METAFONT="no"
7795 r="`eval echo '$'"METAFONT"`"
7796 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7799 ##STEPMAKE_WARN(cannot find . )
7803 if test $? -ne 0; then
7805 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7807 if test "REQUIRED" = "REQUIRED"; then
7808 command="echo ERROR: mf-nowin mf mfw mfont not found"
7809 # abort configure process here?
7811 command="- echo mf-nowin mf mfw mfont not found"
7813 eval "METAFONT"='$command'
7819 if test $? -eq 0 -a -n ""; then
7821 r="`eval echo '$'"METAFONT"`"
7822 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7823 $as_echo_n "checking $r version... " >&6; }
7825 ## which doesn't work in ash, if /usr/bin/which isn't installed
7826 ## type -p doesn't work in ash
7827 ## command -v doesn't work in zsh
7828 ## command -v "$r" 2>&1
7829 ## this test should work in ash, bash, pdksh (ksh), zsh
7830 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7836 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7839 ## Workaround for broken Debian gcc version string:
7840 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7842 ## -V: Workaround for python
7846 ## Assume and hunt for dotted version multiplet.
7847 ## use eval trickery, because we cannot use multi-level $() instead of ``
7848 ## for compatibility reasons.
7850 ## grab the first version number in --version output.
7851 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7852 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7855 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7856 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7859 if test -z "$_ver"; then
7860 ## If empty, try date [fontforge]
7861 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7863 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7870 echo "$ver" | awk -F. '
7872 if ($3) {three = $3}
7875 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7880 if ($3) {three = $3}
7883 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7885 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7886 $as_echo "$ver" >&6; }
7887 if test "$num" -lt "$req"; then
7889 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7892 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7893 eval `echo $vervar=$num`
7894 ## AC_SUBST(`eval echo $vervar`)
7899 for ac_prog in mpost
7901 # Extract the first word of "$ac_prog", so it can be a program name with args.
7902 set dummy $ac_prog; ac_word=$2
7903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_METAPOST+set}" = set; then
7906 $as_echo_n "(cached) " >&6
7908 if test -n "$METAPOST"; then
7909 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_METAPOST="$ac_prog"
7919 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 METAPOST=$ac_cv_prog_METAPOST
7929 if test -n "$METAPOST"; then
7930 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7931 $as_echo "$METAPOST" >&6; }
7933 { $as_echo "$as_me:$LINENO: result: no" >&5
7934 $as_echo "no" >&6; }
7938 test -n "$METAPOST" && break
7940 test -n "$METAPOST" || METAPOST="no"
7944 r="`eval echo '$'"METAPOST"`"
7945 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7948 ##STEPMAKE_WARN(cannot find . )
7952 if test $? -ne 0; then
7954 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7956 if test "REQUIRED" = "REQUIRED"; then
7957 command="echo ERROR: mpost not found"
7958 # abort configure process here?
7960 command="- echo mpost not found"
7962 eval "METAPOST"='$command'
7968 if test $? -eq 0 -a -n ""; then
7970 r="`eval echo '$'"METAPOST"`"
7971 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7972 $as_echo_n "checking $r version... " >&6; }
7974 ## which doesn't work in ash, if /usr/bin/which isn't installed
7975 ## type -p doesn't work in ash
7976 ## command -v doesn't work in zsh
7977 ## command -v "$r" 2>&1
7978 ## this test should work in ash, bash, pdksh (ksh), zsh
7979 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7985 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7988 ## Workaround for broken Debian gcc version string:
7989 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7991 ## -V: Workaround for python
7995 ## Assume and hunt for dotted version multiplet.
7996 ## use eval trickery, because we cannot use multi-level $() instead of ``
7997 ## for compatibility reasons.
7999 ## grab the first version number in --version output.
8000 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8001 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8004 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8005 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8008 if test -z "$_ver"; then
8009 ## If empty, try date [fontforge]
8010 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8012 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8019 echo "$ver" | awk -F. '
8021 if ($3) {three = $3}
8024 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8029 if ($3) {three = $3}
8032 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8034 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8035 $as_echo "$ver" >&6; }
8036 if test "$num" -lt "$req"; then
8038 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8041 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8042 eval `echo $vervar=$num`
8043 ## AC_SUBST(`eval echo $vervar`)
8047 if test "$METAPOST" != ""; then
8049 ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8052 ## Workaround for broken Debian gcc version string:
8053 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8055 ## -V: Workaround for python
8059 ## Assume and hunt for dotted version multiplet.
8060 ## use eval trickery, because we cannot use multi-level $() instead of ``
8061 ## for compatibility reasons.
8063 ## grab the first version number in --version output.
8064 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8065 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8068 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8069 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8072 if test -z "$_ver"; then
8073 ## If empty, try date [fontforge]
8074 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8076 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8082 echo "$ver" | awk -F. '
8084 if ($3) {three = $3}
8087 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8089 # Avoid buggy metapost versions: 1.600 <= x < 1.803
8090 if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8092 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8097 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8098 $as_echo_n "checking for working metafont mode... " >&6; }
8099 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8100 for MFMODE in $modelist; do
8101 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8102 if test -f mfput.tfm; then
8106 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8107 $as_echo "$MFMODE" >&6; }
8115 for ac_prog in kpsewhich
8117 # Extract the first word of "$ac_prog", so it can be a program name with args.
8118 set dummy $ac_prog; ac_word=$2
8119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8122 $as_echo_n "(cached) " >&6
8124 if test -n "$KPSEWHICH"; then
8125 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134 ac_cv_prog_KPSEWHICH="$ac_prog"
8135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8145 if test -n "$KPSEWHICH"; then
8146 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8147 $as_echo "$KPSEWHICH" >&6; }
8149 { $as_echo "$as_me:$LINENO: result: no" >&5
8150 $as_echo "no" >&6; }
8154 test -n "$KPSEWHICH" && break
8156 test -n "$KPSEWHICH" || KPSEWHICH="no"
8160 r="`eval echo '$'"KPSEWHICH"`"
8161 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8164 ##STEPMAKE_WARN(cannot find . )
8168 if test $? -ne 0; then
8170 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8172 if test "REQUIRED" = "REQUIRED"; then
8173 command="echo ERROR: kpsewhich not found"
8174 # abort configure process here?
8176 command="- echo kpsewhich not found"
8178 eval "KPSEWHICH"='$command'
8184 if test $? -eq 0 -a -n ""; then
8186 r="`eval echo '$'"KPSEWHICH"`"
8187 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8188 $as_echo_n "checking $r version... " >&6; }
8190 ## which doesn't work in ash, if /usr/bin/which isn't installed
8191 ## type -p doesn't work in ash
8192 ## command -v doesn't work in zsh
8193 ## command -v "$r" 2>&1
8194 ## this test should work in ash, bash, pdksh (ksh), zsh
8195 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8201 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8204 ## Workaround for broken Debian gcc version string:
8205 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8207 ## -V: Workaround for python
8211 ## Assume and hunt for dotted version multiplet.
8212 ## use eval trickery, because we cannot use multi-level $() instead of ``
8213 ## for compatibility reasons.
8215 ## grab the first version number in --version output.
8216 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8217 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8220 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8221 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8224 if test -z "$_ver"; then
8225 ## If empty, try date [fontforge]
8226 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8228 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8235 echo "$ver" | awk -F. '
8237 if ($3) {three = $3}
8240 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8245 if ($3) {three = $3}
8248 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8250 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8251 $as_echo "$ver" >&6; }
8252 if test "$num" -lt "$req"; then
8254 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8257 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8258 eval `echo $vervar=$num`
8259 ## AC_SUBST(`eval echo $vervar`)
8264 { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8265 $as_echo_n "checking for metapost required files... " >&6; }
8266 if test "$MFPLAIN_MP" = ""; then
8267 MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8269 if test "$MFPLAIN_MP" = ""; then
8270 { $as_echo "$as_me:$LINENO: result: no" >&5
8271 $as_echo "no" >&6; }
8273 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8276 { $as_echo "$as_me:$LINENO: result: yes" >&5
8277 $as_echo "yes" >&6; }
8281 ## First, let's just see if we can find Guile at all.
8282 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8283 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8284 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8285 $as_echo_n "checking for guile-config... " >&6; }
8286 guile_config="guile-config"
8288 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
8290 ## which doesn't work in ash, if /usr/bin/which isn't installed
8291 ## type -p doesn't work in ash
8292 ## command -v doesn't work in zsh
8293 ## command -v "$r" 2>&1
8294 ## this test should work in ash, bash, pdksh (ksh), zsh
8295 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8297 if ! $exe --version > /dev/null 2>&1 ; then
8301 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8304 ## Workaround for broken Debian gcc version string:
8305 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8307 ## -V: Workaround for python
8311 ## Assume and hunt for dotted version multiplet.
8312 ## use eval trickery, because we cannot use multi-level $() instead of ``
8313 ## for compatibility reasons.
8315 ## grab the first version number in --version output.
8316 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8317 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8320 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8321 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8324 if test -z "$_ver"; then
8325 ## If empty, try date [fontforge]
8326 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8328 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8334 echo "$ver" | awk -F. '
8336 if ($3) {three = $3}
8339 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8342 echo "1.8.2" | awk -F. '
8344 if ($3) {three = $3}
8347 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8350 echo "1.9.0" | awk -F. '
8352 if ($3) {three = $3}
8355 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8357 if test -n "1.8.2" -a "$num" -lt "$req"; then
8358 guile_config="$r >= 1.8.2 (installed: $ver)"
8361 if test -n "1.9.0" -a "$num" -ge "$sup"; then
8362 guile_config="$r < 1.9.0 (installed: $ver)"
8371 { $as_echo "$as_me:$LINENO: result: $found" >&5
8372 $as_echo "$found" >&6; }
8373 if test "$found" != "no"; then
8374 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8375 $as_echo_n "checking $guile_config version... " >&6; }
8376 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8377 $as_echo "$ver" >&6; }
8381 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)"\"`\"
8387 guile_version="$ver"
8389 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8390 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8391 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8395 ## which doesn't work in ash, if /usr/bin/which isn't installed
8396 ## type -p doesn't work in ash
8397 ## command -v doesn't work in zsh
8398 ## command -v "$guile_config" 2>&1
8399 ## this test should work in ash, bash, pdksh (ksh), zsh
8400 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8402 if test -x $exe; then
8403 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8404 $as_echo_n "checking guile compile flags... " >&6; }
8405 GUILE_CFLAGS="`$guile_config compile`"
8406 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8407 $as_echo "$GUILE_CFLAGS" >&6; }
8408 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8409 $as_echo_n "checking guile link flags... " >&6; }
8410 GUILE_LDFLAGS="`$guile_config link`"
8411 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8412 $as_echo "$GUILE_LDFLAGS" >&6; }
8417 save_CPPFLAGS="$CPPFLAGS"
8419 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8420 LIBS="$GUILE_LDFLAGS $LIBS"
8422 for ac_header in libguile.h
8424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8427 $as_echo_n "checking for $ac_header... " >&6; }
8428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8429 $as_echo_n "(cached) " >&6
8431 ac_res=`eval 'as_val=${'$as_ac_Header'}
8432 $as_echo "$as_val"'`
8433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8434 $as_echo "$ac_res" >&6; }
8436 # Is the header compilable?
8437 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438 $as_echo_n "checking $ac_header usability... " >&6; }
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #include <$ac_header>
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8455 $as_echo "$ac_try_echo") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_cxx_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.$ac_objext; then
8466 ac_header_compiler=yes
8468 $as_echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_header_compiler=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8476 $as_echo "$ac_header_compiler" >&6; }
8478 # Is the header present?
8479 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8480 $as_echo_n "checking $ac_header presence... " >&6; }
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 #include <$ac_header>
8489 if { (ac_try="$ac_cpp conftest.$ac_ext"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } >/dev/null && {
8503 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8504 test ! -s conftest.err
8506 ac_header_preproc=yes
8508 $as_echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_header_preproc=no
8514 rm -f conftest.err conftest.$ac_ext
8515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8516 $as_echo "$ac_header_preproc" >&6; }
8518 # So? What about this header?
8519 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8522 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8525 ac_header_preproc=yes
8528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8529 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8531 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8533 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8535 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8539 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 $as_echo_n "checking for $ac_header... " >&6; }
8545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546 $as_echo_n "(cached) " >&6
8548 eval "$as_ac_Header=\$ac_header_preproc"
8550 ac_res=`eval 'as_val=${'$as_ac_Header'}
8551 $as_echo "$as_val"'`
8552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8553 $as_echo "$ac_res" >&6; }
8556 as_val=`eval 'as_val=${'$as_ac_Header'}
8557 $as_echo "$as_val"'`
8558 if test "x$as_val" = x""yes; then
8559 cat >>confdefs.h <<_ACEOF
8560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8569 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8570 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8571 $as_echo_n "(cached) " >&6
8573 ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-lguile $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8582 /* Override any GCC internal prototype to avoid an error.
8583 Use char because int might match the return type of a GCC
8584 builtin and then its argument prototype would still apply. */
8588 char scm_boot_guile ();
8592 return scm_boot_guile ();
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (ac_try="$ac_link"
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8604 $as_echo "$ac_try_echo") >&5
8605 (eval "$ac_link") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_cxx_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest$ac_exeext && {
8615 test "$cross_compiling" = yes ||
8616 $as_test_x conftest$ac_exeext
8618 ac_cv_lib_guile_scm_boot_guile=yes
8620 $as_echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_lib_guile_scm_boot_guile=no
8626 rm -rf conftest.dSYM
8627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628 conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8632 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8633 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_LIBGUILE 1
8638 LIBS="-lguile $LIBS"
8643 for ac_func in scm_boot_guile
8645 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8646 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8647 $as_echo_n "checking for $ac_func... " >&6; }
8648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8649 $as_echo_n "(cached) " >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8659 #define $ac_func innocuous_$ac_func
8661 /* System header to define __stub macros and hopefully few prototypes,
8662 which can conflict with char $ac_func (); below.
8663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8664 <limits.h> exists even on freestanding compilers. */
8667 # include <limits.h>
8669 # include <assert.h>
8674 /* Override any GCC internal prototype to avoid an error.
8675 Use char because int might match the return type of a GCC
8676 builtin and then its argument prototype would still apply. */
8681 /* The GNU C library defines this for functions which it implements
8682 to always fail with ENOSYS. Some functions are actually named
8683 something starting with __ and the normal name is an alias. */
8684 #if defined __stub_$ac_func || defined __stub___$ac_func
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (ac_try="$ac_link"
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8703 $as_echo "$ac_try_echo") >&5
8704 (eval "$ac_link") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_cxx_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest$ac_exeext && {
8714 test "$cross_compiling" = yes ||
8715 $as_test_x conftest$ac_exeext
8717 eval "$as_ac_var=yes"
8719 $as_echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 eval "$as_ac_var=no"
8725 rm -rf conftest.dSYM
8726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8727 conftest$ac_exeext conftest.$ac_ext
8729 ac_res=`eval 'as_val=${'$as_ac_var'}
8730 $as_echo "$as_val"'`
8731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8732 $as_echo "$ac_res" >&6; }
8733 as_val=`eval 'as_val=${'$as_ac_var'}
8734 $as_echo "$as_val"'`
8735 if test "x$as_val" = x""yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8745 if test "$libguile_b" = "no"; then
8746 warn='libguile (libguile-dev, guile-devel or guile-dev
8749 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8752 CPPFLAGS="$save_CPPFLAGS"
8754 cat >>confdefs.h <<_ACEOF
8755 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8758 cat >>confdefs.h <<_ACEOF
8759 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8762 cat >>confdefs.h <<_ACEOF
8763 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8768 # check for 3 typedefs added in Guile 1.9
8769 save_CXXFLAGS="$CXXFLAGS"
8770 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8771 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8772 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8773 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8774 $as_echo_n "(cached) " >&6
8776 ac_cv_type_scm_t_hash_fold_fn=no
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <libguile.h>
8788 if (sizeof (scm_t_hash_fold_fn))
8794 rm -f conftest.$ac_objext
8795 if { (ac_try="$ac_compile"
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801 $as_echo "$ac_try_echo") >&5
8802 (eval "$ac_compile") 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_cxx_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest.$ac_objext; then
8812 cat >conftest.$ac_ext <<_ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8818 #include <libguile.h>
8823 if (sizeof ((scm_t_hash_fold_fn)))
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837 (eval "$ac_compile") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_cxx_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest.$ac_objext; then
8849 $as_echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_cv_type_scm_t_hash_fold_fn=yes
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 $as_echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8866 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8867 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_SCM_T_HASH_FOLD_FN 1
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_GUILE_HASH_FUNC 1
8878 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8879 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8880 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8881 $as_echo_n "(cached) " >&6
8883 ac_cv_type_scm_t_hash_handle_fn=no
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 #include <libguile.h>
8895 if (sizeof (scm_t_hash_handle_fn))
8901 rm -f conftest.$ac_objext
8902 if { (ac_try="$ac_compile"
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8908 $as_echo "$ac_try_echo") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_cxx_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
8919 cat >conftest.$ac_ext <<_ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 #include <libguile.h>
8930 if (sizeof ((scm_t_hash_handle_fn)))
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_cxx_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_cv_type_scm_t_hash_handle_fn=yes
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8973 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8974 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8976 cat >>confdefs.h <<_ACEOF
8977 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_GUILE_HASH_FUNC 1
8986 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8987 $as_echo_n "checking for scm_t_subr... " >&6; }
8988 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8989 $as_echo_n "(cached) " >&6
8991 ac_cv_type_scm_t_subr=no
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 #include <libguile.h>
9003 if (sizeof (scm_t_subr))
9009 rm -f conftest.$ac_objext
9010 if { (ac_try="$ac_compile"
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9016 $as_echo "$ac_try_echo") >&5
9017 (eval "$ac_compile") 2>conftest.er1
9019 grep -v '^ *+' conftest.er1 >conftest.err
9021 cat conftest.err >&5
9022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } && {
9024 test -z "$ac_cxx_werror_flag" ||
9025 test ! -s conftest.err
9026 } && test -s conftest.$ac_objext; then
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 #include <libguile.h>
9038 if (sizeof ((scm_t_subr)))
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9051 $as_echo "$ac_try_echo") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9054 grep -v '^ *+' conftest.er1 >conftest.err
9056 cat conftest.err >&5
9057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_cxx_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
9064 $as_echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_cv_type_scm_t_subr=yes
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9081 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9082 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9084 cat >>confdefs.h <<_ACEOF
9085 #define HAVE_SCM_T_SUBR 1
9088 cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_GUILE_SUBR_TYPE 1
9094 CXXFLAGS="$save_CXXFLAGS"
9096 ## Check for usable cxxabi
9098 LIBS="$LIBS $CXXABI_LIBS"
9099 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9100 $as_echo_n "checking for usable C++ demangler... " >&6; }
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9111 abi::__cxa_demangle ("", 0, 0, 0)
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9123 $as_echo "$ac_try_echo") >&5
9124 (eval "$ac_link") 2>conftest.er1
9126 grep -v '^ *+' conftest.er1 >conftest.err
9128 cat conftest.err >&5
9129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } && {
9131 test -z "$ac_cxx_werror_flag" ||
9132 test ! -s conftest.err
9133 } && test -s conftest$ac_exeext && {
9134 test "$cross_compiling" = yes ||
9135 $as_test_x conftest$ac_exeext
9137 cat >>confdefs.h <<\_ACEOF
9138 #define HAVE_CXA_DEMANGLE 1
9141 { $as_echo "$as_me:$LINENO: result: yes" >&5
9142 $as_echo "yes" >&6; }
9144 $as_echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9148 LIBS="$LIBS -lsupc++"
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9159 abi::__cxa_demangle ("", 0, 0, 0)
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_link") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_cxx_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest$ac_exeext && {
9182 test "$cross_compiling" = yes ||
9183 $as_test_x conftest$ac_exeext
9185 cat >>confdefs.h <<\_ACEOF
9186 #define HAVE_CXA_DEMANGLE 1
9189 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9190 $as_echo "yes, using -lsupc++" >&6; }
9191 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9193 $as_echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9197 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9200 rm -rf conftest.dSYM
9201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9202 conftest$ac_exeext conftest.$ac_ext
9205 rm -rf conftest.dSYM
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207 conftest$ac_exeext conftest.$ac_ext
9211 ## check rational bugfix.
9212 save_CPPFLAGS="$CPPFLAGS"
9213 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9214 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9215 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9216 cat >conftest.$ac_ext <<_ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 #include <libguile.h>
9223 #ifdef SCM_FRACTION_REDUCED_BIT
9228 if { (ac_try="$ac_cpp conftest.$ac_ext"
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9234 $as_echo "$ac_try_echo") >&5
9235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9237 grep -v '^ *+' conftest.er1 >conftest.err
9239 cat conftest.err >&5
9240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev/null && {
9242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9243 test ! -s conftest.err
9245 { $as_echo "$as_me:$LINENO: result: ok" >&5
9246 $as_echo "ok" >&6; }
9248 $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9252 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9253 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9256 rm -f conftest.err conftest.$ac_ext
9257 CPPFLAGS="$save_CPPFLAGS"
9262 # Check whether --with-python-include was given.
9263 if test "${with_python_include+set}" = set; then
9264 withval=$with_python_include;
9265 if test "$withval" = "yes" -o "$withval" = "no"; then
9266 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9267 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9269 PYTHON_CFLAGS="-I${withval}"
9276 # Check whether --with-python-lib was given.
9277 if test "${with_python_lib+set}" = set; then
9278 withval=$with_python_lib;
9279 if test "$withval" = "yes" -o "$withval" = "no"; then
9280 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9281 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9283 LDFLAGS="$LDFLAGS -l${withval}"
9290 { $as_echo "$as_me:$LINENO: checking for python" >&5
9291 $as_echo_n "checking for python... " >&6; }
9294 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
9296 ## which doesn't work in ash, if /usr/bin/which isn't installed
9297 ## type -p doesn't work in ash
9298 ## command -v doesn't work in zsh
9299 ## command -v "$r" 2>&1
9300 ## this test should work in ash, bash, pdksh (ksh), zsh
9301 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9303 if ! $exe -V > /dev/null 2>&1 ; then
9307 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9310 ## Workaround for broken Debian gcc version string:
9311 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9313 ## -V: Workaround for python
9317 ## Assume and hunt for dotted version multiplet.
9318 ## use eval trickery, because we cannot use multi-level $() instead of ``
9319 ## for compatibility reasons.
9321 ## grab the first version number in --version output.
9322 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9323 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9326 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9327 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9330 if test -z "$_ver"; then
9331 ## If empty, try date [fontforge]
9332 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9334 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9340 echo "$ver" | awk -F. '
9342 if ($3) {three = $3}
9345 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9348 echo "2.4" | awk -F. '
9350 if ($3) {three = $3}
9353 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9356 echo "3.0" | awk -F. '
9358 if ($3) {three = $3}
9361 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9363 if test -n "2.4" && test "$num" -lt "$req"; then
9364 python="$r >= 2.4 (installed: $ver)"
9367 if test -n "3.0" && test "$num" -ge "$sup"; then
9368 python="$r < 3.0 (installed: $ver)"
9377 { $as_echo "$as_me:$LINENO: result: $found" >&5
9378 $as_echo "$found" >&6; }
9379 if test "$found" != "no"; then
9380 { $as_echo "$as_me:$LINENO: checking $python version" >&5
9381 $as_echo_n "checking $python version... " >&6; }
9382 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9383 $as_echo "$ver" >&6; }
9387 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
9390 # Extract the first word of "$PYTHON", so it can be a program name with args.
9391 set dummy $PYTHON; ac_word=$2
9392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if test "${ac_cv_path_PYTHON+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9399 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 PYTHON=$ac_cv_path_PYTHON
9421 if test -n "$PYTHON"; then
9422 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
9423 $as_echo "$PYTHON" >&6; }
9425 { $as_echo "$as_me:$LINENO: result: no" >&5
9426 $as_echo "no" >&6; }
9432 for ac_prog in `basename $PYTHON`-config
9434 # Extract the first word of "$ac_prog", so it can be a program name with args.
9435 set dummy $ac_prog; ac_word=$2
9436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9437 $as_echo_n "checking for $ac_word... " >&6; }
9438 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9439 $as_echo_n "(cached) " >&6
9441 if test -n "$PYTHON_CONFIG"; then
9442 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 test -z "$as_dir" && as_dir=.
9449 for ac_exec_ext in '' $ac_executable_extensions; do
9450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9451 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9462 if test -n "$PYTHON_CONFIG"; then
9463 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9464 $as_echo "$PYTHON_CONFIG" >&6; }
9466 { $as_echo "$as_me:$LINENO: result: no" >&5
9467 $as_echo "no" >&6; }
9471 test -n "$PYTHON_CONFIG" && break
9473 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
9476 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
9477 # Clean out junk: http://bugs.python.org/issue3290
9478 # Python headers may need some -f* flags, leave them in.
9479 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
9480 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9481 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
9482 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
9483 # 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.
9484 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9485 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
9488 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
9490 # alternatively, for python >= 2.0
9491 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
9492 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
9493 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
9497 if test -z "$PYTHON_HEADER"; then
9498 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
9500 for ac_header in Python.h
9502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9505 $as_echo_n "checking for $ac_header... " >&6; }
9506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9507 $as_echo_n "(cached) " >&6
9509 ac_res=`eval 'as_val=${'$as_ac_Header'}
9510 $as_echo "$as_val"'`
9511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9512 $as_echo "$ac_res" >&6; }
9514 # Is the header compilable?
9515 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516 $as_echo_n "checking $ac_header usability... " >&6; }
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 $ac_includes_default
9524 #include <$ac_header>
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$ac_try_echo") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_cxx_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_header_compiler=yes
9546 $as_echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_header_compiler=no
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9554 $as_echo "$ac_header_compiler" >&6; }
9556 # Is the header present?
9557 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9558 $as_echo_n "checking $ac_header presence... " >&6; }
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 #include <$ac_header>
9567 if { (ac_try="$ac_cpp conftest.$ac_ext"
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9573 $as_echo "$ac_try_echo") >&5
9574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } >/dev/null && {
9581 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9582 test ! -s conftest.err
9584 ac_header_preproc=yes
9586 $as_echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_header_preproc=no
9592 rm -f conftest.err conftest.$ac_ext
9593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9594 $as_echo "$ac_header_preproc" >&6; }
9596 # So? What about this header?
9597 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9600 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9603 ac_header_preproc=yes
9606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9607 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9609 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9611 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9613 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9617 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9622 $as_echo_n "checking for $ac_header... " >&6; }
9623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9624 $as_echo_n "(cached) " >&6
9626 eval "$as_ac_Header=\$ac_header_preproc"
9628 ac_res=`eval 'as_val=${'$as_ac_Header'}
9629 $as_echo "$as_val"'`
9630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9631 $as_echo "$ac_res" >&6; }
9634 as_val=`eval 'as_val=${'$as_ac_Header'}
9635 $as_echo "$as_val"'`
9636 if test "x$as_val" = x""yes; then
9637 cat >>confdefs.h <<_ACEOF
9638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9647 if test -z "$PYTHON_HEADER"; then
9648 warn="Python.h (python-devel, python-dev or libpython-dev package)"
9650 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9656 for ac_prog in fontforge
9658 # Extract the first word of "$ac_prog", so it can be a program name with args.
9659 set dummy $ac_prog; ac_word=$2
9660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9663 $as_echo_n "(cached) " >&6
9665 if test -n "$FONTFORGE"; then
9666 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_prog_FONTFORGE="$ac_prog"
9676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 FONTFORGE=$ac_cv_prog_FONTFORGE
9686 if test -n "$FONTFORGE"; then
9687 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9688 $as_echo "$FONTFORGE" >&6; }
9690 { $as_echo "$as_me:$LINENO: result: no" >&5
9691 $as_echo "no" >&6; }
9695 test -n "$FONTFORGE" && break
9697 test -n "$FONTFORGE" || FONTFORGE="no"
9701 r="`eval echo '$'"FONTFORGE"`"
9702 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9705 ##STEPMAKE_WARN(cannot find . )
9709 if test $? -ne 0; then
9711 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9713 if test "REQUIRED" = "REQUIRED"; then
9714 command="echo ERROR: fontforge not found"
9715 # abort configure process here?
9717 command="- echo fontforge not found"
9719 eval "FONTFORGE"='$command'
9725 if test $? -eq 0; then
9726 for ac_prog in fontforge
9728 # Extract the first word of "$ac_prog", so it can be a program name with args.
9729 set dummy $ac_prog; ac_word=$2
9730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9733 $as_echo_n "(cached) " >&6
9737 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 FONTFORGE=$ac_cv_path_FONTFORGE
9759 if test -n "$FONTFORGE"; then
9760 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9761 $as_echo "$FONTFORGE" >&6; }
9763 { $as_echo "$as_me:$LINENO: result: no" >&5
9764 $as_echo "no" >&6; }
9768 test -n "$FONTFORGE" && break
9771 if test -n "20110222"; then
9773 r="`eval echo '$'"FONTFORGE"`"
9774 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9775 $as_echo_n "checking $r version... " >&6; }
9777 ## which doesn't work in ash, if /usr/bin/which isn't installed
9778 ## type -p doesn't work in ash
9779 ## command -v doesn't work in zsh
9780 ## command -v "$r" 2>&1
9781 ## this test should work in ash, bash, pdksh (ksh), zsh
9782 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9788 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9791 ## Workaround for broken Debian gcc version string:
9792 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9794 ## -V: Workaround for python
9798 ## Assume and hunt for dotted version multiplet.
9799 ## use eval trickery, because we cannot use multi-level $() instead of ``
9800 ## for compatibility reasons.
9802 ## grab the first version number in --version output.
9803 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9804 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9807 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9808 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9811 if test -z "$_ver"; then
9812 ## If empty, try date [fontforge]
9813 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9815 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9822 echo "$ver" | awk -F. '
9824 if ($3) {three = $3}
9827 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9830 echo "20110222" | awk -F. '
9832 if ($3) {three = $3}
9835 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9837 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9838 $as_echo "$ver" >&6; }
9839 if test "$num" -lt "$req"; then
9841 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
9844 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9845 eval `echo $vervar=$num`
9846 ## AC_SUBST(`eval echo $vervar`)
9853 for ac_prog in t1asm
9855 # Extract the first word of "$ac_prog", so it can be a program name with args.
9856 set dummy $ac_prog; ac_word=$2
9857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if test "${ac_cv_prog_T1ASM+set}" = set; then
9860 $as_echo_n "(cached) " >&6
9862 if test -n "$T1ASM"; then
9863 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_prog_T1ASM="$ac_prog"
9873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 T1ASM=$ac_cv_prog_T1ASM
9883 if test -n "$T1ASM"; then
9884 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9885 $as_echo "$T1ASM" >&6; }
9887 { $as_echo "$as_me:$LINENO: result: no" >&5
9888 $as_echo "no" >&6; }
9892 test -n "$T1ASM" && break
9894 test -n "$T1ASM" || T1ASM="no"
9898 r="`eval echo '$'"T1ASM"`"
9899 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9902 ##STEPMAKE_WARN(cannot find . )
9906 if test $? -ne 0; then
9908 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9910 if test "REQUIRED" = "REQUIRED"; then
9911 command="echo ERROR: t1asm not found"
9912 # abort configure process here?
9914 command="- echo t1asm not found"
9916 eval "T1ASM"='$command'
9922 if test $? -eq 0; then
9923 for ac_prog in t1asm
9925 # Extract the first word of "$ac_prog", so it can be a program name with args.
9926 set dummy $ac_prog; ac_word=$2
9927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_path_T1ASM+set}" = set; then
9930 $as_echo_n "(cached) " >&6
9934 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 T1ASM=$ac_cv_path_T1ASM
9956 if test -n "$T1ASM"; then
9957 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9958 $as_echo "$T1ASM" >&6; }
9960 { $as_echo "$as_me:$LINENO: result: no" >&5
9961 $as_echo "no" >&6; }
9965 test -n "$T1ASM" && break
9970 r="`eval echo '$'"T1ASM"`"
9971 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9972 $as_echo_n "checking $r version... " >&6; }
9974 ## which doesn't work in ash, if /usr/bin/which isn't installed
9975 ## type -p doesn't work in ash
9976 ## command -v doesn't work in zsh
9977 ## command -v "$r" 2>&1
9978 ## this test should work in ash, bash, pdksh (ksh), zsh
9979 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9985 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9988 ## Workaround for broken Debian gcc version string:
9989 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9991 ## -V: Workaround for python
9995 ## Assume and hunt for dotted version multiplet.
9996 ## use eval trickery, because we cannot use multi-level $() instead of ``
9997 ## for compatibility reasons.
9999 ## grab the first version number in --version output.
10000 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10001 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10004 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10005 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10008 if test -z "$_ver"; then
10009 ## If empty, try date [fontforge]
10010 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10012 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10019 echo "$ver" | awk -F. '
10021 if ($3) {three = $3}
10024 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10027 echo "" | awk -F. '
10029 if ($3) {three = $3}
10032 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10034 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10035 $as_echo "$ver" >&6; }
10036 if test "$num" -lt "$req"; then
10038 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10041 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10042 eval `echo $vervar=$num`
10043 ## AC_SUBST(`eval echo $vervar`)
10056 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 $as_echo_n "checking for $ac_header... " >&6; }
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063 $as_echo_n "(cached) " >&6
10065 ac_res=`eval 'as_val=${'$as_ac_Header'}
10066 $as_echo "$as_val"'`
10067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10068 $as_echo "$ac_res" >&6; }
10070 # Is the header compilable?
10071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10072 $as_echo_n "checking $ac_header usability... " >&6; }
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 #include <$ac_header>
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10089 $as_echo "$ac_try_echo") >&5
10090 (eval "$ac_compile") 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } && {
10097 test -z "$ac_cxx_werror_flag" ||
10098 test ! -s conftest.err
10099 } && test -s conftest.$ac_objext; then
10100 ac_header_compiler=yes
10102 $as_echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_header_compiler=no
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10110 $as_echo "$ac_header_compiler" >&6; }
10112 # Is the header present?
10113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10114 $as_echo_n "checking $ac_header presence... " >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <$ac_header>
10123 if { (ac_try="$ac_cpp conftest.$ac_ext"
10124 case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10129 $as_echo "$ac_try_echo") >&5
10130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } >/dev/null && {
10137 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10138 test ! -s conftest.err
10140 ac_header_preproc=yes
10142 $as_echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ac_header_preproc=no
10148 rm -f conftest.err conftest.$ac_ext
10149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10150 $as_echo "$ac_header_preproc" >&6; }
10152 # So? What about this header?
10153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10159 ac_header_preproc=yes
10162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10165 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10169 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 $as_echo_n "checking for $ac_header... " >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 $as_echo_n "(cached) " >&6
10182 eval "$as_ac_Header=\$ac_header_preproc"
10184 ac_res=`eval 'as_val=${'$as_ac_Header'}
10185 $as_echo "$as_val"'`
10186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10187 $as_echo "$ac_res" >&6; }
10190 as_val=`eval 'as_val=${'$as_ac_Header'}
10191 $as_echo "$as_val"'`
10192 if test "x$as_val" = x""yes; then
10193 cat >>confdefs.h <<_ACEOF
10194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10202 for ac_header in sstream
10204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10207 $as_echo_n "checking for $ac_header... " >&6; }
10208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10209 $as_echo_n "(cached) " >&6
10211 ac_res=`eval 'as_val=${'$as_ac_Header'}
10212 $as_echo "$as_val"'`
10213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10214 $as_echo "$ac_res" >&6; }
10216 # Is the header compilable?
10217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10218 $as_echo_n "checking $ac_header usability... " >&6; }
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 $ac_includes_default
10226 #include <$ac_header>
10228 rm -f conftest.$ac_objext
10229 if { (ac_try="$ac_compile"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10235 $as_echo "$ac_try_echo") >&5
10236 (eval "$ac_compile") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && {
10243 test -z "$ac_cxx_werror_flag" ||
10244 test ! -s conftest.err
10245 } && test -s conftest.$ac_objext; then
10246 ac_header_compiler=yes
10248 $as_echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_header_compiler=no
10254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10256 $as_echo "$ac_header_compiler" >&6; }
10258 # Is the header present?
10259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10260 $as_echo_n "checking $ac_header presence... " >&6; }
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 #include <$ac_header>
10269 if { (ac_try="$ac_cpp conftest.$ac_ext"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } >/dev/null && {
10283 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10284 test ! -s conftest.err
10286 ac_header_preproc=yes
10288 $as_echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 ac_header_preproc=no
10294 rm -f conftest.err conftest.$ac_ext
10295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10296 $as_echo "$ac_header_preproc" >&6; }
10298 # So? What about this header?
10299 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10305 ac_header_preproc=yes
10308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10324 $as_echo_n "checking for $ac_header... " >&6; }
10325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10326 $as_echo_n "(cached) " >&6
10328 eval "$as_ac_Header=\$ac_header_preproc"
10330 ac_res=`eval 'as_val=${'$as_ac_Header'}
10331 $as_echo "$as_val"'`
10332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10333 $as_echo "$ac_res" >&6; }
10336 as_val=`eval 'as_val=${'$as_ac_Header'}
10337 $as_echo "$as_val"'`
10338 if test "x$as_val" = x""yes; then
10339 cat >>confdefs.h <<_ACEOF
10340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10347 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10348 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10349 if test "${ac_cv_header_stat_broken+set}" = set; then
10350 $as_echo_n "(cached) " >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358 #include <sys/types.h>
10359 #include <sys/stat.h>
10361 #if defined S_ISBLK && defined S_IFDIR
10362 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10365 #if defined S_ISBLK && defined S_IFCHR
10366 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10369 #if defined S_ISLNK && defined S_IFREG
10370 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10373 #if defined S_ISSOCK && defined S_IFREG
10374 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10385 $as_echo "$ac_try_echo") >&5
10386 (eval "$ac_compile") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_cxx_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest.$ac_objext; then
10396 ac_cv_header_stat_broken=no
10398 $as_echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_cv_header_stat_broken=yes
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10407 $as_echo "$ac_cv_header_stat_broken" >&6; }
10408 if test $ac_cv_header_stat_broken = yes; then
10410 cat >>confdefs.h <<\_ACEOF
10411 #define STAT_MACROS_BROKEN 1
10416 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10417 $as_echo_n "checking for working memcmp... " >&6; }
10418 if test "${ac_cv_func_memcmp_working+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10421 if test "$cross_compiling" = yes; then
10422 ac_cv_func_memcmp_working=no
10424 cat >conftest.$ac_ext <<_ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10435 /* Some versions of memcmp are not 8-bit clean. */
10436 char c0 = '\100', c1 = '\200', c2 = '\201';
10437 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10440 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10441 or more and with at least one buffer not starting on a 4-byte boundary.
10442 William Lewis provided this test program. */
10447 for (i = 0; i < 4; i++)
10451 strcpy (a, "--------01111111");
10452 strcpy (b, "--------10000000");
10453 if (memcmp (a, b, 16) >= 0)
10463 rm -f conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_link") 2>&5
10473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10480 $as_echo "$ac_try_echo") >&5
10481 (eval "$ac_try") 2>&5
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_func_memcmp_working=yes
10487 $as_echo "$as_me: program exited with status $ac_status" >&5
10488 $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ( exit $ac_status )
10492 ac_cv_func_memcmp_working=no
10494 rm -rf conftest.dSYM
10495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10500 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10501 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10502 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10503 *" memcmp.$ac_objext "* ) ;;
10504 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10510 for ac_func in vprintf
10512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10514 $as_echo_n "checking for $ac_func... " >&6; }
10515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10516 $as_echo_n "(cached) " >&6
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10526 #define $ac_func innocuous_$ac_func
10528 /* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10534 # include <limits.h>
10536 # include <assert.h>
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined __stub_$ac_func || defined __stub___$ac_func
10558 return $ac_func ();
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571 (eval "$ac_link") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_cxx_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext && {
10581 test "$cross_compiling" = yes ||
10582 $as_test_x conftest$ac_exeext
10584 eval "$as_ac_var=yes"
10586 $as_echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 eval "$as_ac_var=no"
10592 rm -rf conftest.dSYM
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594 conftest$ac_exeext conftest.$ac_ext
10596 ac_res=`eval 'as_val=${'$as_ac_var'}
10597 $as_echo "$as_val"'`
10598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10599 $as_echo "$ac_res" >&6; }
10600 as_val=`eval 'as_val=${'$as_ac_var'}
10601 $as_echo "$as_val"'`
10602 if test "x$as_val" = x""yes; then
10603 cat >>confdefs.h <<_ACEOF
10604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10607 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10608 $as_echo_n "checking for _doprnt... " >&6; }
10609 if test "${ac_cv_func__doprnt+set}" = set; then
10610 $as_echo_n "(cached) " >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10620 #define _doprnt innocuous__doprnt
10622 /* System header to define __stub macros and hopefully few prototypes,
10623 which can conflict with char _doprnt (); below.
10624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10625 <limits.h> exists even on freestanding compilers. */
10628 # include <limits.h>
10630 # include <assert.h>
10635 /* Override any GCC internal prototype to avoid an error.
10636 Use char because int might match the return type of a GCC
10637 builtin and then its argument prototype would still apply. */
10642 /* The GNU C library defines this for functions which it implements
10643 to always fail with ENOSYS. Some functions are actually named
10644 something starting with __ and the normal name is an alias. */
10645 #if defined __stub__doprnt || defined __stub____doprnt
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (ac_try="$ac_link"
10659 case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10664 $as_echo "$ac_try_echo") >&5
10665 (eval "$ac_link") 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_cxx_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext && {
10675 test "$cross_compiling" = yes ||
10676 $as_test_x conftest$ac_exeext
10678 ac_cv_func__doprnt=yes
10680 $as_echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 ac_cv_func__doprnt=no
10686 rm -rf conftest.dSYM
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10690 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10691 $as_echo "$ac_cv_func__doprnt" >&6; }
10692 if test "x$ac_cv_func__doprnt" = x""yes; then
10694 cat >>confdefs.h <<\_ACEOF
10695 #define HAVE_DOPRNT 1
10711 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10715 $as_echo_n "checking for $ac_func... " >&6; }
10716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10717 $as_echo_n "(cached) " >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727 #define $ac_func innocuous_$ac_func
10729 /* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char $ac_func (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10735 # include <limits.h>
10737 # include <assert.h>
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10749 /* The GNU C library defines this for functions which it implements
10750 to always fail with ENOSYS. Some functions are actually named
10751 something starting with __ and the normal name is an alias. */
10752 #if defined __stub_$ac_func || defined __stub___$ac_func
10759 return $ac_func ();
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771 $as_echo "$ac_try_echo") >&5
10772 (eval "$ac_link") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_cxx_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext && {
10782 test "$cross_compiling" = yes ||
10783 $as_test_x conftest$ac_exeext
10785 eval "$as_ac_var=yes"
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10790 eval "$as_ac_var=no"
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10797 ac_res=`eval 'as_val=${'$as_ac_var'}
10798 $as_echo "$as_val"'`
10799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10800 $as_echo "$ac_res" >&6; }
10801 as_val=`eval 'as_val=${'$as_ac_var'}
10802 $as_echo "$as_val"'`
10803 if test "x$as_val" = x""yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10813 for ac_prog in pkg-config
10815 # Extract the first word of "$ac_prog", so it can be a program name with args.
10816 set dummy $ac_prog; ac_word=$2
10817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10820 $as_echo_n "(cached) " >&6
10822 if test -n "$PKG_CONFIG"; then
10823 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10832 ac_cv_prog_PKG_CONFIG="$ac_prog"
10833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10843 if test -n "$PKG_CONFIG"; then
10844 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10845 $as_echo "$PKG_CONFIG" >&6; }
10847 { $as_echo "$as_me:$LINENO: result: no" >&5
10848 $as_echo "no" >&6; }
10852 test -n "$PKG_CONFIG" && break
10854 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10858 r="`eval echo '$'"PKG_CONFIG"`"
10859 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10862 ##STEPMAKE_WARN(cannot find . )
10866 if test $? -ne 0; then
10868 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10870 if test "REQUIRED" = "REQUIRED"; then
10871 command="echo ERROR: pkg-config not found"
10872 # abort configure process here?
10874 command="- echo pkg-config not found"
10876 eval "PKG_CONFIG"='$command'
10882 if test $? -eq 0 -a -n "0.9.0"; then
10884 r="`eval echo '$'"PKG_CONFIG"`"
10885 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10886 $as_echo_n "checking $r version... " >&6; }
10888 ## which doesn't work in ash, if /usr/bin/which isn't installed
10889 ## type -p doesn't work in ash
10890 ## command -v doesn't work in zsh
10891 ## command -v "$r" 2>&1
10892 ## this test should work in ash, bash, pdksh (ksh), zsh
10893 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10895 if test -n ""; then
10899 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10902 ## Workaround for broken Debian gcc version string:
10903 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10905 ## -V: Workaround for python
10909 ## Assume and hunt for dotted version multiplet.
10910 ## use eval trickery, because we cannot use multi-level $() instead of ``
10911 ## for compatibility reasons.
10913 ## grab the first version number in --version output.
10914 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10915 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10918 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10919 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10922 if test -z "$_ver"; then
10923 ## If empty, try date [fontforge]
10924 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10926 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10933 echo "$ver" | awk -F. '
10935 if ($3) {three = $3}
10938 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10941 echo "0.9.0" | awk -F. '
10943 if ($3) {three = $3}
10946 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10948 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10949 $as_echo "$ver" >&6; }
10950 if test "$num" -lt "$req"; then
10952 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10955 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10956 eval `echo $vervar=$num`
10957 ## AC_SUBST(`eval echo $vervar`)
10962 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10963 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10964 if test "$reloc_b" = "yes"; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define ARGV0_RELOCATION 1
10970 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10971 $as_echo "$reloc_b" >&6; }
10973 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10974 $as_echo_n "checking for rpath linkage... " >&6; }
10975 if test "$rpath_b" = "yes"; then
10976 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10977 elif test "$rpath_b" != "no"; then
10978 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10980 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10981 $as_echo "$rpath_b" >&6; }
10983 HOST_ARCH=`$CC -dumpmachine`
10990 if test -z "$PKG_CONFIG"; then
10991 # Extract the first word of "pkg-config", so it can be a program name with args.
10992 set dummy pkg-config; ac_word=$2
10993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10996 $as_echo_n "(cached) " >&6
10998 case $PKG_CONFIG in
11000 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11023 if test -n "$PKG_CONFIG"; then
11024 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11025 $as_echo "$PKG_CONFIG" >&6; }
11027 { $as_echo "$as_me:$LINENO: result: no" >&5
11028 $as_echo "no" >&6; }
11034 if test "$PKG_CONFIG" = "no" ; then
11035 echo "*** The pkg-config script could not be found. Make sure it is"
11036 echo "*** in your path, or set the PKG_CONFIG environment variable"
11037 echo "*** to the full path to pkg-config."
11038 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11040 PKG_CONFIG_MIN_VERSION=0.9.0
11041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11042 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11043 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11045 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11046 { $as_echo "$as_me:$LINENO: result: yes" >&5
11047 $as_echo "yes" >&6; }
11050 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11051 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11052 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11053 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11054 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11056 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11057 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11058 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11059 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11060 $as_echo "$PANGO_FT2_LIBS" >&6; }
11062 PANGO_FT2_CFLAGS=""
11064 ## If we have a custom action on failure, don't print errors, but
11065 ## do set a variable so people can do so.
11066 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11075 if test $succeeded = yes; then
11081 if test "$have_pangoft2" = yes ; then
11082 cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_PANGO16 1
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_PANGO_FT2 1
11090 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11091 save_CPPFLAGS="$CPPFLAGS"
11093 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11094 LIBS="$PANGO_FT2_LIBS $LIBS"
11096 for ac_header in pango/pangoft2.h
11098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 $as_echo_n "checking for $ac_header... " >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 $as_echo_n "(cached) " >&6
11105 ac_res=`eval 'as_val=${'$as_ac_Header'}
11106 $as_echo "$as_val"'`
11107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11108 $as_echo "$ac_res" >&6; }
11110 # Is the header compilable?
11111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11112 $as_echo_n "checking $ac_header usability... " >&6; }
11113 cat >conftest.$ac_ext <<_ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 $ac_includes_default
11120 #include <$ac_header>
11122 rm -f conftest.$ac_objext
11123 if { (ac_try="$ac_compile"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11129 $as_echo "$ac_try_echo") >&5
11130 (eval "$ac_compile") 2>conftest.er1
11132 grep -v '^ *+' conftest.er1 >conftest.err
11134 cat conftest.err >&5
11135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_cxx_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest.$ac_objext; then
11140 ac_header_compiler=yes
11142 $as_echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_header_compiler=no
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 $as_echo "$ac_header_compiler" >&6; }
11152 # Is the header present?
11153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154 $as_echo_n "checking $ac_header presence... " >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <$ac_header>
11163 if { (ac_try="$ac_cpp conftest.$ac_ext"
11164 case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11169 $as_echo "$ac_try_echo") >&5
11170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11172 grep -v '^ *+' conftest.er1 >conftest.err
11174 cat conftest.err >&5
11175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } >/dev/null && {
11177 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11178 test ! -s conftest.err
11180 ac_header_preproc=yes
11182 $as_echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 ac_header_preproc=no
11188 rm -f conftest.err conftest.$ac_ext
11189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11190 $as_echo "$ac_header_preproc" >&6; }
11192 # So? What about this header?
11193 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11199 ac_header_preproc=yes
11202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11209 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11218 $as_echo_n "checking for $ac_header... " >&6; }
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220 $as_echo_n "(cached) " >&6
11222 eval "$as_ac_Header=\$ac_header_preproc"
11224 ac_res=`eval 'as_val=${'$as_ac_Header'}
11225 $as_echo "$as_val"'`
11226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11227 $as_echo "$ac_res" >&6; }
11230 as_val=`eval 'as_val=${'$as_ac_Header'}
11231 $as_echo "$as_val"'`
11232 if test "x$as_val" = x""yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 for ac_func in pango_ft2_font_map_create_context
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 CPPFLAGS="$save_CPPFLAGS"
11348 #r="libpangoft2-dev or pangoft2-devel"e
11349 r="libpango1.0-dev or pango?-devel"
11350 ver="`pkg-config --modversion pangoft2`"
11352 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11360 if test -z "$PKG_CONFIG"; then
11361 # Extract the first word of "pkg-config", so it can be a program name with args.
11362 set dummy pkg-config; ac_word=$2
11363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11366 $as_echo_n "(cached) " >&6
11368 case $PKG_CONFIG in
11370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11393 if test -n "$PKG_CONFIG"; then
11394 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11395 $as_echo "$PKG_CONFIG" >&6; }
11397 { $as_echo "$as_me:$LINENO: result: no" >&5
11398 $as_echo "no" >&6; }
11404 if test "$PKG_CONFIG" = "no" ; then
11405 echo "*** The pkg-config script could not be found. Make sure it is"
11406 echo "*** in your path, or set the PKG_CONFIG environment variable"
11407 echo "*** to the full path to pkg-config."
11408 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11410 PKG_CONFIG_MIN_VERSION=0.9.0
11411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11412 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11413 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11415 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11416 { $as_echo "$as_me:$LINENO: result: yes" >&5
11417 $as_echo "yes" >&6; }
11420 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11421 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11422 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11423 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11424 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11426 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11427 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11428 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11429 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11430 $as_echo "$FONTCONFIG_LIBS" >&6; }
11432 FONTCONFIG_CFLAGS=""
11434 ## If we have a custom action on failure, don't print errors, but
11435 ## do set a variable so people can do so.
11436 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11445 if test $succeeded = yes; then
11446 have_fontconfig=yes
11451 if test "$have_fontconfig" = yes ; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_FONTCONFIG 1
11456 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11457 save_CPPFLAGS="$CPPFLAGS"
11459 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11460 LIBS="$FONTCONFIG_LIBS $LIBS"
11463 CPPFLAGS="$save_CPPFLAGS"
11466 r="libfontconfig-dev or fontconfig-devel"
11467 ver="`pkg-config --modversion fontconfig`"
11469 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11477 if test -z "$PKG_CONFIG"; then
11478 # Extract the first word of "pkg-config", so it can be a program name with args.
11479 set dummy pkg-config; ac_word=$2
11480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11483 $as_echo_n "(cached) " >&6
11485 case $PKG_CONFIG in
11487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11510 if test -n "$PKG_CONFIG"; then
11511 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11512 $as_echo "$PKG_CONFIG" >&6; }
11514 { $as_echo "$as_me:$LINENO: result: no" >&5
11515 $as_echo "no" >&6; }
11521 if test "$PKG_CONFIG" = "no" ; then
11522 echo "*** The pkg-config script could not be found. Make sure it is"
11523 echo "*** in your path, or set the PKG_CONFIG environment variable"
11524 echo "*** to the full path to pkg-config."
11525 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11527 PKG_CONFIG_MIN_VERSION=0.9.0
11528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11530 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11532 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534 $as_echo "yes" >&6; }
11537 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11538 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11539 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11540 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11541 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11543 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11544 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11545 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11546 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11547 $as_echo "$FREETYPE2_LIBS" >&6; }
11549 FREETYPE2_CFLAGS=""
11551 ## If we have a custom action on failure, don't print errors, but
11552 ## do set a variable so people can do so.
11553 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11562 if test $succeeded = yes; then
11568 if test "$have_freetype2" = yes; then
11569 cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_FREETYPE2 1
11573 save_CPPFLAGS="$CPPFLAGS"
11575 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11576 LIBS="$FREETYPE2_LIBS $LIBS"
11579 CPPFLAGS="$save_CPPFLAGS"
11583 #r="libfreetype2-dev or freetype2-devel"
11584 r="libfreetype6-dev or freetype?-devel"
11585 ver="`pkg-config --modversion freetype2`"
11587 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11593 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11594 $as_echo_n "checking host system type... " >&6; }
11595 if test "${ac_cv_host+set}" = set; then
11596 $as_echo_n "(cached) " >&6
11598 if test "x$host_alias" = x; then
11599 ac_cv_host=$ac_cv_build
11601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11602 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11603 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11604 { (exit 1); exit 1; }; }
11608 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11609 $as_echo "$ac_cv_host" >&6; }
11610 case $ac_cv_host in
11612 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11613 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11614 { (exit 1); exit 1; }; };;
11617 ac_save_IFS=$IFS; IFS='-'
11623 # Remember, the first character of IFS is used to create $*,
11624 # except with old shells:
11627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11631 *cygwin* ) CYGWIN=yes;;
11635 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11636 $as_echo_n "checking host system type... " >&6; }
11637 if test "${ac_cv_host+set}" = set; then
11638 $as_echo_n "(cached) " >&6
11640 if test "x$host_alias" = x; then
11641 ac_cv_host=$ac_cv_build
11643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11644 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11645 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11646 { (exit 1); exit 1; }; }
11650 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11651 $as_echo "$ac_cv_host" >&6; }
11652 case $ac_cv_host in
11654 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11655 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11656 { (exit 1); exit 1; }; };;
11659 ac_save_IFS=$IFS; IFS='-'
11665 # Remember, the first character of IFS is used to create $*,
11666 # except with old shells:
11669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11673 *mingw32* ) MINGW32=yes;;
11678 if test "$CYGWIN" = "yes"; then
11679 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11680 program_suffix=.exe
11681 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11682 elif test "$MINGW32" = "yes"; then
11685 program_suffix=.exe
11686 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11692 cat >>confdefs.h <<_ACEOF
11693 #define DIRSEP '${DIRSEP}'
11696 cat >>confdefs.h <<_ACEOF
11697 #define PATHSEP '${PATHSEP}'
11704 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11705 $as_echo_n "checking for some flavor of Windows... " >&6; }
11706 if test "$CYGWIN$MINGW32" = "nono"; then
11707 PLATFORM_WINDOWS=no
11709 PLATFORM_WINDOWS=yes
11711 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11712 $as_echo "$PLATFORM_WINDOWS" >&6; }
11715 for ac_prog in $target-windres windres
11717 # Extract the first word of "$ac_prog", so it can be a program name with args.
11718 set dummy $ac_prog; ac_word=$2
11719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if test "${ac_cv_prog_WINDRES+set}" = set; then
11722 $as_echo_n "(cached) " >&6
11724 if test -n "$WINDRES"; then
11725 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11734 ac_cv_prog_WINDRES="$ac_prog"
11735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 WINDRES=$ac_cv_prog_WINDRES
11745 if test -n "$WINDRES"; then
11746 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11747 $as_echo "$WINDRES" >&6; }
11749 { $as_echo "$as_me:$LINENO: result: no" >&5
11750 $as_echo "no" >&6; }
11754 test -n "$WINDRES" && break
11756 test -n "$WINDRES" || WINDRES="no"
11760 r="`eval echo '$'"WINDRES"`"
11761 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11764 ##STEPMAKE_WARN(cannot find . )
11768 if test $? -ne 0; then
11770 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11772 if test "x" = "REQUIRED"; then
11773 command="echo ERROR: $target-windres windres not found"
11774 # abort configure process here?
11776 command="- echo $target-windres windres not found"
11778 eval "WINDRES"='$command'
11784 if test $? -eq 0 -a -n ""; then
11786 r="`eval echo '$'"WINDRES"`"
11787 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11788 $as_echo_n "checking $r version... " >&6; }
11790 ## which doesn't work in ash, if /usr/bin/which isn't installed
11791 ## type -p doesn't work in ash
11792 ## command -v doesn't work in zsh
11793 ## command -v "$r" 2>&1
11794 ## this test should work in ash, bash, pdksh (ksh), zsh
11795 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11797 if test -n ""; then
11801 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11804 ## Workaround for broken Debian gcc version string:
11805 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11807 ## -V: Workaround for python
11811 ## Assume and hunt for dotted version multiplet.
11812 ## use eval trickery, because we cannot use multi-level $() instead of ``
11813 ## for compatibility reasons.
11815 ## grab the first version number in --version output.
11816 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11817 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11820 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11821 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11824 if test -z "$_ver"; then
11825 ## If empty, try date [fontforge]
11826 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11828 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11835 echo "$ver" | awk -F. '
11837 if ($3) {three = $3}
11840 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11843 echo "" | awk -F. '
11845 if ($3) {three = $3}
11848 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11850 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11851 $as_echo "$ver" >&6; }
11852 if test "$num" -lt "$req"; then
11854 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
11857 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11858 eval `echo $vervar=$num`
11859 ## AC_SUBST(`eval echo $vervar`)
11866 # guile executable for some scripts
11868 { $as_echo "$as_me:$LINENO: checking for guile" >&5
11869 $as_echo_n "checking for guile... " >&6; }
11872 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
11874 ## which doesn't work in ash, if /usr/bin/which isn't installed
11875 ## type -p doesn't work in ash
11876 ## command -v doesn't work in zsh
11877 ## command -v "$r" 2>&1
11878 ## this test should work in ash, bash, pdksh (ksh), zsh
11879 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11881 if ! $exe --version > /dev/null 2>&1 ; then
11885 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11888 ## Workaround for broken Debian gcc version string:
11889 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11891 ## -V: Workaround for python
11895 ## Assume and hunt for dotted version multiplet.
11896 ## use eval trickery, because we cannot use multi-level $() instead of ``
11897 ## for compatibility reasons.
11899 ## grab the first version number in --version output.
11900 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11901 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11904 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11905 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11908 if test -z "$_ver"; then
11909 ## If empty, try date [fontforge]
11910 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11912 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11918 echo "$ver" | awk -F. '
11920 if ($3) {three = $3}
11923 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11926 echo "1.8.2" | awk -F. '
11928 if ($3) {three = $3}
11931 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11934 echo "1.9.0" | awk -F. '
11936 if ($3) {three = $3}
11939 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11941 if test -n "1.8.2" && test "$num" -lt "$req"; then
11942 guile="$r >= 1.8.2 (installed: $ver)"
11945 if test -n "1.9.0" && test "$num" -ge "$sup"; then
11946 guile="$r < 1.9.0 (installed: $ver)"
11955 { $as_echo "$as_me:$LINENO: result: $found" >&5
11956 $as_echo "$found" >&6; }
11957 if test "$found" != "no"; then
11958 { $as_echo "$as_me:$LINENO: checking $guile version" >&5
11959 $as_echo_n "checking $guile version... " >&6; }
11960 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11961 $as_echo "$ver" >&6; }
11965 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
11969 for ac_prog in $GUILE
11971 # Extract the first word of "$ac_prog", so it can be a program name with args.
11972 set dummy $ac_prog; ac_word=$2
11973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if test "${ac_cv_prog_GUILE+set}" = set; then
11976 $as_echo_n "(cached) " >&6
11978 if test -n "$GUILE"; then
11979 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988 ac_cv_prog_GUILE="$ac_prog"
11989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 GUILE=$ac_cv_prog_GUILE
11999 if test -n "$GUILE"; then
12000 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12001 $as_echo "$GUILE" >&6; }
12003 { $as_echo "$as_me:$LINENO: result: no" >&5
12004 $as_echo "no" >&6; }
12008 test -n "$GUILE" && break
12010 test -n "$GUILE" || GUILE="no"
12014 r="`eval echo '$'"GUILE"`"
12015 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12018 ##STEPMAKE_WARN(cannot find . )
12022 if test $? -ne 0; then
12024 eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12026 if test "" = "REQUIRED"; then
12027 command="echo ERROR: $GUILE not found"
12028 # abort configure process here?
12030 command="- echo $GUILE not found"
12032 eval "GUILE"='$command'
12038 if test $? -eq 0; then
12039 for ac_prog in $GUILE
12041 # Extract the first word of "$ac_prog", so it can be a program name with args.
12042 set dummy $ac_prog; ac_word=$2
12043 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_path_GUILE+set}" = set; then
12046 $as_echo_n "(cached) " >&6
12050 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 GUILE=$ac_cv_path_GUILE
12072 if test -n "$GUILE"; then
12073 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12074 $as_echo "$GUILE" >&6; }
12076 { $as_echo "$as_me:$LINENO: result: no" >&5
12077 $as_echo "no" >&6; }
12081 test -n "$GUILE" && break
12084 if test -n ""; then
12086 r="`eval echo '$'"GUILE"`"
12087 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12088 $as_echo_n "checking $r version... " >&6; }
12090 ## which doesn't work in ash, if /usr/bin/which isn't installed
12091 ## type -p doesn't work in ash
12092 ## command -v doesn't work in zsh
12093 ## command -v "$r" 2>&1
12094 ## this test should work in ash, bash, pdksh (ksh), zsh
12095 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12097 if test -n ""; then
12101 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12104 ## Workaround for broken Debian gcc version string:
12105 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12107 ## -V: Workaround for python
12111 ## Assume and hunt for dotted version multiplet.
12112 ## use eval trickery, because we cannot use multi-level $() instead of ``
12113 ## for compatibility reasons.
12115 ## grab the first version number in --version output.
12116 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12117 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12120 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12121 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12124 if test -z "$_ver"; then
12125 ## If empty, try date [fontforge]
12126 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12128 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12135 echo "$ver" | awk -F. '
12137 if ($3) {three = $3}
12140 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12143 echo "" | awk -F. '
12145 if ($3) {three = $3}
12148 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12150 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12151 $as_echo "$ver" >&6; }
12152 if test "$num" -lt "$req"; then
12154 eval ""=\"`eval echo \"'$'\" \""$r >= (installed: $ver)"\"`\"
12157 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12158 eval `echo $vervar=$num`
12159 ## AC_SUBST(`eval echo $vervar`)
12166 # perl for help2man and for mf2pt1.pl
12169 for ac_prog in perl
12171 # Extract the first word of "$ac_prog", so it can be a program name with args.
12172 set dummy $ac_prog; ac_word=$2
12173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if test "${ac_cv_prog_PERL+set}" = set; then
12176 $as_echo_n "(cached) " >&6
12178 if test -n "$PERL"; then
12179 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12188 ac_cv_prog_PERL="$ac_prog"
12189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 PERL=$ac_cv_prog_PERL
12199 if test -n "$PERL"; then
12200 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12201 $as_echo "$PERL" >&6; }
12203 { $as_echo "$as_me:$LINENO: result: no" >&5
12204 $as_echo "no" >&6; }
12208 test -n "$PERL" && break
12210 test -n "$PERL" || PERL="no"
12214 r="`eval echo '$'"PERL"`"
12215 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12218 ##STEPMAKE_WARN(cannot find . )
12222 if test $? -ne 0; then
12224 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12226 if test "REQUIRED" = "REQUIRED"; then
12227 command="echo ERROR: perl not found"
12228 # abort configure process here?
12230 command="- echo perl not found"
12232 eval "PERL"='$command'
12238 if test $? -eq 0; then
12239 for ac_prog in perl
12241 # Extract the first word of "$ac_prog", so it can be a program name with args.
12242 set dummy $ac_prog; ac_word=$2
12243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if test "${ac_cv_path_PERL+set}" = set; then
12246 $as_echo_n "(cached) " >&6
12250 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 PERL=$ac_cv_path_PERL
12272 if test -n "$PERL"; then
12273 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12274 $as_echo "$PERL" >&6; }
12276 { $as_echo "$as_me:$LINENO: result: no" >&5
12277 $as_echo "no" >&6; }
12281 test -n "$PERL" && break
12284 if test -n ""; then
12286 r="`eval echo '$'"PERL"`"
12287 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12288 $as_echo_n "checking $r version... " >&6; }
12290 ## which doesn't work in ash, if /usr/bin/which isn't installed
12291 ## type -p doesn't work in ash
12292 ## command -v doesn't work in zsh
12293 ## command -v "$r" 2>&1
12294 ## this test should work in ash, bash, pdksh (ksh), zsh
12295 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12297 if test -n ""; then
12301 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12304 ## Workaround for broken Debian gcc version string:
12305 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12307 ## -V: Workaround for python
12311 ## Assume and hunt for dotted version multiplet.
12312 ## use eval trickery, because we cannot use multi-level $() instead of ``
12313 ## for compatibility reasons.
12315 ## grab the first version number in --version output.
12316 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12317 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12320 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12321 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12324 if test -z "$_ver"; then
12325 ## If empty, try date [fontforge]
12326 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12328 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12335 echo "$ver" | awk -F. '
12337 if ($3) {three = $3}
12340 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12343 echo "" | awk -F. '
12345 if ($3) {three = $3}
12348 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12350 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12351 $as_echo "$ver" >&6; }
12352 if test "$num" -lt "$req"; then
12354 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
12357 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12358 eval `echo $vervar=$num`
12359 ## AC_SUBST(`eval echo $vervar`)
12366 ## Optional tools for building documentation, website, extra fonts.
12367 if test "$DOCUMENTATION" = "yes"; then
12368 DOCUMENTATION_REQUIRED=REQUIRED
12370 DOCUMENTATION_REQUIRED=OPTIONAL
12376 # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
12381 $as_echo_n "(cached) " >&6
12383 if test -n "$GHOSTSCRIPT"; then
12384 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12393 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
12394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
12404 if test -n "$GHOSTSCRIPT"; then
12405 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
12406 $as_echo "$GHOSTSCRIPT" >&6; }
12408 { $as_echo "$as_me:$LINENO: result: no" >&5
12409 $as_echo "no" >&6; }
12413 test -n "$GHOSTSCRIPT" && break
12415 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
12419 r="`eval echo '$'"GHOSTSCRIPT"`"
12420 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
12423 ##STEPMAKE_WARN(cannot find . )
12427 if test $? -ne 0; then
12429 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
12431 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12432 command="echo ERROR: gs not found"
12433 # abort configure process here?
12435 command="- echo gs not found"
12437 eval "GHOSTSCRIPT"='$command'
12443 if test $? -eq 0; then
12446 # Extract the first word of "$ac_prog", so it can be a program name with args.
12447 set dummy $ac_prog; ac_word=$2
12448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
12451 $as_echo_n "(cached) " >&6
12453 case $GHOSTSCRIPT in
12455 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
12466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
12477 if test -n "$GHOSTSCRIPT"; then
12478 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
12479 $as_echo "$GHOSTSCRIPT" >&6; }
12481 { $as_echo "$as_me:$LINENO: result: no" >&5
12482 $as_echo "no" >&6; }
12486 test -n "$GHOSTSCRIPT" && break
12489 if test -n "8.60"; then
12491 r="`eval echo '$'"GHOSTSCRIPT"`"
12492 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12493 $as_echo_n "checking $r version... " >&6; }
12495 ## which doesn't work in ash, if /usr/bin/which isn't installed
12496 ## type -p doesn't work in ash
12497 ## command -v doesn't work in zsh
12498 ## command -v "$r" 2>&1
12499 ## this test should work in ash, bash, pdksh (ksh), zsh
12500 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12502 if test -n ""; then
12506 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12509 ## Workaround for broken Debian gcc version string:
12510 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12512 ## -V: Workaround for python
12516 ## Assume and hunt for dotted version multiplet.
12517 ## use eval trickery, because we cannot use multi-level $() instead of ``
12518 ## for compatibility reasons.
12520 ## grab the first version number in --version output.
12521 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12522 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12525 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12526 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12529 if test -z "$_ver"; then
12530 ## If empty, try date [fontforge]
12531 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12533 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12540 echo "$ver" | awk -F. '
12542 if ($3) {three = $3}
12545 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12548 echo "8.60" | awk -F. '
12550 if ($3) {three = $3}
12553 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12555 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12556 $as_echo "$ver" >&6; }
12557 if test "$num" -lt "$req"; then
12559 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
12562 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
12563 eval `echo $vervar=$num`
12564 ## AC_SUBST(`eval echo $vervar`)
12571 for ac_prog in makeinfo
12573 # Extract the first word of "$ac_prog", so it can be a program name with args.
12574 set dummy $ac_prog; ac_word=$2
12575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12578 $as_echo_n "(cached) " >&6
12580 if test -n "$MAKEINFO"; then
12581 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12590 ac_cv_prog_MAKEINFO="$ac_prog"
12591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 MAKEINFO=$ac_cv_prog_MAKEINFO
12601 if test -n "$MAKEINFO"; then
12602 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12603 $as_echo "$MAKEINFO" >&6; }
12605 { $as_echo "$as_me:$LINENO: result: no" >&5
12606 $as_echo "no" >&6; }
12610 test -n "$MAKEINFO" && break
12612 test -n "$MAKEINFO" || MAKEINFO="no"
12616 r="`eval echo '$'"MAKEINFO"`"
12617 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12620 ##STEPMAKE_WARN(cannot find . )
12624 if test $? -ne 0; then
12626 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12628 if test "REQUIRED" = "REQUIRED"; then
12629 command="echo ERROR: makeinfo not found"
12630 # abort configure process here?
12632 command="- echo makeinfo not found"
12634 eval "MAKEINFO"='$command'
12640 if test $? -eq 0 -a -n "4.11"; then
12642 r="`eval echo '$'"MAKEINFO"`"
12643 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12644 $as_echo_n "checking $r version... " >&6; }
12646 ## which doesn't work in ash, if /usr/bin/which isn't installed
12647 ## type -p doesn't work in ash
12648 ## command -v doesn't work in zsh
12649 ## command -v "$r" 2>&1
12650 ## this test should work in ash, bash, pdksh (ksh), zsh
12651 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12653 if test -n ""; then
12657 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12660 ## Workaround for broken Debian gcc version string:
12661 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12663 ## -V: Workaround for python
12667 ## Assume and hunt for dotted version multiplet.
12668 ## use eval trickery, because we cannot use multi-level $() instead of ``
12669 ## for compatibility reasons.
12671 ## grab the first version number in --version output.
12672 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12673 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12676 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12677 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12680 if test -z "$_ver"; then
12681 ## If empty, try date [fontforge]
12682 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12684 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12691 echo "$ver" | awk -F. '
12693 if ($3) {three = $3}
12696 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12699 echo "4.11" | awk -F. '
12701 if ($3) {three = $3}
12704 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12706 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12707 $as_echo "$ver" >&6; }
12708 if test "$num" -lt "$req"; then
12710 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12713 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12714 eval `echo $vervar=$num`
12715 ## AC_SUBST(`eval echo $vervar`)
12720 for ac_prog in texi2html
12722 # Extract the first word of "$ac_prog", so it can be a program name with args.
12723 set dummy $ac_prog; ac_word=$2
12724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12727 $as_echo_n "(cached) " >&6
12729 if test -n "$TEXI2HTML"; then
12730 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_prog_TEXI2HTML="$ac_prog"
12740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12750 if test -n "$TEXI2HTML"; then
12751 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12752 $as_echo "$TEXI2HTML" >&6; }
12754 { $as_echo "$as_me:$LINENO: result: no" >&5
12755 $as_echo "no" >&6; }
12759 test -n "$TEXI2HTML" && break
12761 test -n "$TEXI2HTML" || TEXI2HTML="no"
12765 r="`eval echo '$'"TEXI2HTML"`"
12766 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12769 ##STEPMAKE_WARN(cannot find . )
12773 if test $? -ne 0; then
12775 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
12777 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12778 command="echo ERROR: texi2html not found"
12779 # abort configure process here?
12781 command="- echo texi2html not found"
12783 eval "TEXI2HTML"='$command'
12789 if test $? -eq 0 -a -n "1.82"; then
12791 r="`eval echo '$'"TEXI2HTML"`"
12792 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12793 $as_echo_n "checking $r version... " >&6; }
12795 ## which doesn't work in ash, if /usr/bin/which isn't installed
12796 ## type -p doesn't work in ash
12797 ## command -v doesn't work in zsh
12798 ## command -v "$r" 2>&1
12799 ## this test should work in ash, bash, pdksh (ksh), zsh
12800 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12802 if test -n ""; then
12806 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12809 ## Workaround for broken Debian gcc version string:
12810 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12812 ## -V: Workaround for python
12816 ## Assume and hunt for dotted version multiplet.
12817 ## use eval trickery, because we cannot use multi-level $() instead of ``
12818 ## for compatibility reasons.
12820 ## grab the first version number in --version output.
12821 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12822 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12825 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12826 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12829 if test -z "$_ver"; then
12830 ## If empty, try date [fontforge]
12831 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12833 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12840 echo "$ver" | awk -F. '
12842 if ($3) {three = $3}
12845 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12848 echo "1.82" | awk -F. '
12850 if ($3) {three = $3}
12853 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12855 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12856 $as_echo "$ver" >&6; }
12857 if test "$num" -lt "$req"; then
12859 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
12862 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12863 eval `echo $vervar=$num`
12864 ## AC_SUBST(`eval echo $vervar`)
12869 for ac_prog in dblatex
12871 # Extract the first word of "$ac_prog", so it can be a program name with args.
12872 set dummy $ac_prog; ac_word=$2
12873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12876 $as_echo_n "(cached) " >&6
12878 if test -n "$DBLATEX"; then
12879 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888 ac_cv_prog_DBLATEX="$ac_prog"
12889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 DBLATEX=$ac_cv_prog_DBLATEX
12899 if test -n "$DBLATEX"; then
12900 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12901 $as_echo "$DBLATEX" >&6; }
12903 { $as_echo "$as_me:$LINENO: result: no" >&5
12904 $as_echo "no" >&6; }
12908 test -n "$DBLATEX" && break
12910 test -n "$DBLATEX" || DBLATEX="no"
12914 r="`eval echo '$'"DBLATEX"`"
12915 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12918 ##STEPMAKE_WARN(cannot find . )
12922 if test $? -ne 0; then
12924 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
12926 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12927 command="echo ERROR: dblatex not found"
12928 # abort configure process here?
12930 command="- echo dblatex not found"
12932 eval "DBLATEX"='$command'
12938 if test $? -eq 0 -a -n "0.1.4"; then
12940 r="`eval echo '$'"DBLATEX"`"
12941 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12942 $as_echo_n "checking $r version... " >&6; }
12944 ## which doesn't work in ash, if /usr/bin/which isn't installed
12945 ## type -p doesn't work in ash
12946 ## command -v doesn't work in zsh
12947 ## command -v "$r" 2>&1
12948 ## this test should work in ash, bash, pdksh (ksh), zsh
12949 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12951 if test -n ""; then
12955 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12958 ## Workaround for broken Debian gcc version string:
12959 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12961 ## -V: Workaround for python
12965 ## Assume and hunt for dotted version multiplet.
12966 ## use eval trickery, because we cannot use multi-level $() instead of ``
12967 ## for compatibility reasons.
12969 ## grab the first version number in --version output.
12970 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12971 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12974 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12975 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12978 if test -z "$_ver"; then
12979 ## If empty, try date [fontforge]
12980 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12982 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12989 echo "$ver" | awk -F. '
12991 if ($3) {three = $3}
12994 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12997 echo "0.1.4" | awk -F. '
12999 if ($3) {three = $3}
13002 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13004 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13005 $as_echo "$ver" >&6; }
13006 if test "$num" -lt "$req"; then
13008 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13011 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13012 eval `echo $vervar=$num`
13013 ## AC_SUBST(`eval echo $vervar`)
13018 for ac_prog in bibtex
13020 # Extract the first word of "$ac_prog", so it can be a program name with args.
13021 set dummy $ac_prog; ac_word=$2
13022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13025 $as_echo_n "(cached) " >&6
13027 if test -n "$BIBTEX"; then
13028 ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_prog_BIBTEX="$ac_prog"
13038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 BIBTEX=$ac_cv_prog_BIBTEX
13048 if test -n "$BIBTEX"; then
13049 { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
13050 $as_echo "$BIBTEX" >&6; }
13052 { $as_echo "$as_me:$LINENO: result: no" >&5
13053 $as_echo "no" >&6; }
13057 test -n "$BIBTEX" && break
13059 test -n "$BIBTEX" || BIBTEX="no"
13063 r="`eval echo '$'"BIBTEX"`"
13064 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
13067 ##STEPMAKE_WARN(cannot find . )
13071 if test $? -ne 0; then
13073 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
13075 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13076 command="echo ERROR: bibtex not found"
13077 # abort configure process here?
13079 command="- echo bibtex not found"
13081 eval "BIBTEX"='$command'
13087 if test $? -eq 0 -a -n ""; then
13089 r="`eval echo '$'"BIBTEX"`"
13090 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13091 $as_echo_n "checking $r version... " >&6; }
13093 ## which doesn't work in ash, if /usr/bin/which isn't installed
13094 ## type -p doesn't work in ash
13095 ## command -v doesn't work in zsh
13096 ## command -v "$r" 2>&1
13097 ## this test should work in ash, bash, pdksh (ksh), zsh
13098 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13100 if test -n ""; then
13104 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13107 ## Workaround for broken Debian gcc version string:
13108 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13110 ## -V: Workaround for python
13114 ## Assume and hunt for dotted version multiplet.
13115 ## use eval trickery, because we cannot use multi-level $() instead of ``
13116 ## for compatibility reasons.
13118 ## grab the first version number in --version output.
13119 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13120 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13123 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13124 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13127 if test -z "$_ver"; then
13128 ## If empty, try date [fontforge]
13129 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13131 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13138 echo "$ver" | awk -F. '
13140 if ($3) {three = $3}
13143 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13146 echo "" | awk -F. '
13148 if ($3) {three = $3}
13151 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13153 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13154 $as_echo "$ver" >&6; }
13155 if test "$num" -lt "$req"; then
13157 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13160 vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
13161 eval `echo $vervar=$num`
13162 ## AC_SUBST(`eval echo $vervar`)
13167 for ac_prog in pdflatex
13169 # Extract the first word of "$ac_prog", so it can be a program name with args.
13170 set dummy $ac_prog; ac_word=$2
13171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
13174 $as_echo_n "(cached) " >&6
13176 if test -n "$PDFLATEX"; then
13177 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_PDFLATEX="$ac_prog"
13187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 PDFLATEX=$ac_cv_prog_PDFLATEX
13197 if test -n "$PDFLATEX"; then
13198 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
13199 $as_echo "$PDFLATEX" >&6; }
13201 { $as_echo "$as_me:$LINENO: result: no" >&5
13202 $as_echo "no" >&6; }
13206 test -n "$PDFLATEX" && break
13208 test -n "$PDFLATEX" || PDFLATEX="no"
13212 r="`eval echo '$'"PDFLATEX"`"
13213 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
13216 ##STEPMAKE_WARN(cannot find . )
13220 if test $? -ne 0; then
13222 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdflatex\"`\"
13224 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13225 command="echo ERROR: pdflatex not found"
13226 # abort configure process here?
13228 command="- echo pdflatex not found"
13230 eval "PDFLATEX"='$command'
13236 if test $? -eq 0 -a -n ""; then
13238 r="`eval echo '$'"PDFLATEX"`"
13239 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13240 $as_echo_n "checking $r version... " >&6; }
13242 ## which doesn't work in ash, if /usr/bin/which isn't installed
13243 ## type -p doesn't work in ash
13244 ## command -v doesn't work in zsh
13245 ## command -v "$r" 2>&1
13246 ## this test should work in ash, bash, pdksh (ksh), zsh
13247 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13249 if test -n ""; then
13253 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13256 ## Workaround for broken Debian gcc version string:
13257 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13259 ## -V: Workaround for python
13263 ## Assume and hunt for dotted version multiplet.
13264 ## use eval trickery, because we cannot use multi-level $() instead of ``
13265 ## for compatibility reasons.
13267 ## grab the first version number in --version output.
13268 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13269 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13272 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13273 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13276 if test -z "$_ver"; then
13277 ## If empty, try date [fontforge]
13278 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13280 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13287 echo "$ver" | awk -F. '
13289 if ($3) {three = $3}
13292 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13295 echo "" | awk -F. '
13297 if ($3) {three = $3}
13300 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13302 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13303 $as_echo "$ver" >&6; }
13304 if test "$num" -lt "$req"; then
13306 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13309 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13310 eval `echo $vervar=$num`
13311 ## AC_SUBST(`eval echo $vervar`)
13316 for ac_prog in pdfetex pdftex etex
13318 # Extract the first word of "$ac_prog", so it can be a program name with args.
13319 set dummy $ac_prog; ac_word=$2
13320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if test "${ac_cv_prog_PDFTEX+set}" = set; then
13323 $as_echo_n "(cached) " >&6
13325 if test -n "$PDFTEX"; then
13326 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_prog_PDFTEX="$ac_prog"
13336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 PDFTEX=$ac_cv_prog_PDFTEX
13346 if test -n "$PDFTEX"; then
13347 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
13348 $as_echo "$PDFTEX" >&6; }
13350 { $as_echo "$as_me:$LINENO: result: no" >&5
13351 $as_echo "no" >&6; }
13355 test -n "$PDFTEX" && break
13357 test -n "$PDFTEX" || PDFTEX="no"
13361 r="`eval echo '$'"PDFTEX"`"
13362 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
13365 ##STEPMAKE_WARN(cannot find . )
13369 if test $? -ne 0; then
13371 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
13373 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13374 command="echo ERROR: pdfetex pdftex etex not found"
13375 # abort configure process here?
13377 command="- echo pdfetex pdftex etex not found"
13379 eval "PDFTEX"='$command'
13385 if test $? -eq 0 -a -n ""; then
13387 r="`eval echo '$'"PDFTEX"`"
13388 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13389 $as_echo_n "checking $r version... " >&6; }
13391 ## which doesn't work in ash, if /usr/bin/which isn't installed
13392 ## type -p doesn't work in ash
13393 ## command -v doesn't work in zsh
13394 ## command -v "$r" 2>&1
13395 ## this test should work in ash, bash, pdksh (ksh), zsh
13396 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13398 if test -n ""; then
13402 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13405 ## Workaround for broken Debian gcc version string:
13406 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13408 ## -V: Workaround for python
13412 ## Assume and hunt for dotted version multiplet.
13413 ## use eval trickery, because we cannot use multi-level $() instead of ``
13414 ## for compatibility reasons.
13416 ## grab the first version number in --version output.
13417 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13418 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13421 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13422 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13425 if test -z "$_ver"; then
13426 ## If empty, try date [fontforge]
13427 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13429 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13436 echo "$ver" | awk -F. '
13438 if ($3) {three = $3}
13441 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13444 echo "" | awk -F. '
13446 if ($3) {three = $3}
13449 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13451 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13452 $as_echo "$ver" >&6; }
13453 if test "$num" -lt "$req"; then
13455 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13458 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
13459 eval `echo $vervar=$num`
13460 ## AC_SUBST(`eval echo $vervar`)
13465 for ac_prog in texi2pdf
13467 # Extract the first word of "$ac_prog", so it can be a program name with args.
13468 set dummy $ac_prog; ac_word=$2
13469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
13472 $as_echo_n "(cached) " >&6
13474 if test -n "$TEXI2PDF"; then
13475 ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_TEXI2PDF="$ac_prog"
13485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 TEXI2PDF=$ac_cv_prog_TEXI2PDF
13495 if test -n "$TEXI2PDF"; then
13496 { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
13497 $as_echo "$TEXI2PDF" >&6; }
13499 { $as_echo "$as_me:$LINENO: result: no" >&5
13500 $as_echo "no" >&6; }
13504 test -n "$TEXI2PDF" && break
13506 test -n "$TEXI2PDF" || TEXI2PDF="no"
13510 r="`eval echo '$'"TEXI2PDF"`"
13511 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
13514 ##STEPMAKE_WARN(cannot find . )
13518 if test $? -ne 0; then
13520 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
13522 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13523 command="echo ERROR: texi2pdf not found"
13524 # abort configure process here?
13526 command="- echo texi2pdf not found"
13528 eval "TEXI2PDF"='$command'
13534 if test $? -eq 0 -a -n ""; then
13536 r="`eval echo '$'"TEXI2PDF"`"
13537 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13538 $as_echo_n "checking $r version... " >&6; }
13540 ## which doesn't work in ash, if /usr/bin/which isn't installed
13541 ## type -p doesn't work in ash
13542 ## command -v doesn't work in zsh
13543 ## command -v "$r" 2>&1
13544 ## this test should work in ash, bash, pdksh (ksh), zsh
13545 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13547 if test -n ""; then
13551 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13554 ## Workaround for broken Debian gcc version string:
13555 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13557 ## -V: Workaround for python
13561 ## Assume and hunt for dotted version multiplet.
13562 ## use eval trickery, because we cannot use multi-level $() instead of ``
13563 ## for compatibility reasons.
13565 ## grab the first version number in --version output.
13566 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13567 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13570 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13571 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13574 if test -z "$_ver"; then
13575 ## If empty, try date [fontforge]
13576 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13578 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13585 echo "$ver" | awk -F. '
13587 if ($3) {three = $3}
13590 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13593 echo "" | awk -F. '
13595 if ($3) {three = $3}
13598 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13600 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13601 $as_echo "$ver" >&6; }
13602 if test "$num" -lt "$req"; then
13604 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13607 vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
13608 eval `echo $vervar=$num`
13609 ## AC_SUBST(`eval echo $vervar`)
13614 for ac_prog in texindex
13616 # Extract the first word of "$ac_prog", so it can be a program name with args.
13617 set dummy $ac_prog; ac_word=$2
13618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
13621 $as_echo_n "(cached) " >&6
13623 if test -n "$TEXINDEX"; then
13624 ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_prog_TEXINDEX="$ac_prog"
13634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 TEXINDEX=$ac_cv_prog_TEXINDEX
13644 if test -n "$TEXINDEX"; then
13645 { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
13646 $as_echo "$TEXINDEX" >&6; }
13648 { $as_echo "$as_me:$LINENO: result: no" >&5
13649 $as_echo "no" >&6; }
13653 test -n "$TEXINDEX" && break
13655 test -n "$TEXINDEX" || TEXINDEX="no"
13659 r="`eval echo '$'"TEXINDEX"`"
13660 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
13663 ##STEPMAKE_WARN(cannot find . )
13667 if test $? -ne 0; then
13669 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
13671 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13672 command="echo ERROR: texindex not found"
13673 # abort configure process here?
13675 command="- echo texindex not found"
13677 eval "TEXINDEX"='$command'
13683 if test $? -eq 0 -a -n ""; then
13685 r="`eval echo '$'"TEXINDEX"`"
13686 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13687 $as_echo_n "checking $r version... " >&6; }
13689 ## which doesn't work in ash, if /usr/bin/which isn't installed
13690 ## type -p doesn't work in ash
13691 ## command -v doesn't work in zsh
13692 ## command -v "$r" 2>&1
13693 ## this test should work in ash, bash, pdksh (ksh), zsh
13694 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13696 if test -n ""; then
13700 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13703 ## Workaround for broken Debian gcc version string:
13704 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13706 ## -V: Workaround for python
13710 ## Assume and hunt for dotted version multiplet.
13711 ## use eval trickery, because we cannot use multi-level $() instead of ``
13712 ## for compatibility reasons.
13714 ## grab the first version number in --version output.
13715 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13716 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13719 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13720 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13723 if test -z "$_ver"; then
13724 ## If empty, try date [fontforge]
13725 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13727 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13734 echo "$ver" | awk -F. '
13736 if ($3) {three = $3}
13739 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13742 echo "" | awk -F. '
13744 if ($3) {three = $3}
13747 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13749 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13750 $as_echo "$ver" >&6; }
13751 if test "$num" -lt "$req"; then
13753 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13756 vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
13757 eval `echo $vervar=$num`
13758 ## AC_SUBST(`eval echo $vervar`)
13762 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
13763 $as_echo_n "checking for epsf.tex... " >&6; }
13764 TEX_EPSF=`kpsewhich tex epsf`
13765 if test "$TEX_EPSF" = ""; then
13766 { $as_echo "$as_me:$LINENO: result: not found" >&5
13767 $as_echo "not found" >&6; }
13769 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
13772 { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
13773 $as_echo "$TEX_EPSF" >&6; }
13775 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
13776 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
13777 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
13778 if test "$TEX_FIKPARM" = ""; then
13779 { $as_echo "$as_me:$LINENO: result: not found" >&5
13780 $as_echo "not found" >&6; }
13782 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
13785 { $as_echo "$as_me:$LINENO: result: yes" >&5
13786 $as_echo "yes" >&6; }
13789 for ac_prog in pngtopnm
13791 # Extract the first word of "$ac_prog", so it can be a program name with args.
13792 set dummy $ac_prog; ac_word=$2
13793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if test "${ac_cv_prog_NETPBM+set}" = set; then
13796 $as_echo_n "(cached) " >&6
13798 if test -n "$NETPBM"; then
13799 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_prog_NETPBM="$ac_prog"
13809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 NETPBM=$ac_cv_prog_NETPBM
13819 if test -n "$NETPBM"; then
13820 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
13821 $as_echo "$NETPBM" >&6; }
13823 { $as_echo "$as_me:$LINENO: result: no" >&5
13824 $as_echo "no" >&6; }
13828 test -n "$NETPBM" && break
13830 test -n "$NETPBM" || NETPBM="no"
13834 r="`eval echo '$'"NETPBM"`"
13835 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
13838 ##STEPMAKE_WARN(cannot find . )
13842 if test $? -ne 0; then
13844 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
13846 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13847 command="echo ERROR: pngtopnm not found"
13848 # abort configure process here?
13850 command="- echo pngtopnm not found"
13852 eval "NETPBM"='$command'
13858 if test $? -eq 0 -a -n ""; then
13860 r="`eval echo '$'"NETPBM"`"
13861 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13862 $as_echo_n "checking $r version... " >&6; }
13864 ## which doesn't work in ash, if /usr/bin/which isn't installed
13865 ## type -p doesn't work in ash
13866 ## command -v doesn't work in zsh
13867 ## command -v "$r" 2>&1
13868 ## this test should work in ash, bash, pdksh (ksh), zsh
13869 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13871 if test -n ""; then
13875 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13878 ## Workaround for broken Debian gcc version string:
13879 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13881 ## -V: Workaround for python
13885 ## Assume and hunt for dotted version multiplet.
13886 ## use eval trickery, because we cannot use multi-level $() instead of ``
13887 ## for compatibility reasons.
13889 ## grab the first version number in --version output.
13890 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13891 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13894 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13895 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13898 if test -z "$_ver"; then
13899 ## If empty, try date [fontforge]
13900 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13902 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13909 echo "$ver" | awk -F. '
13911 if ($3) {three = $3}
13914 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13917 echo "" | awk -F. '
13919 if ($3) {three = $3}
13922 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13924 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13925 $as_echo "$ver" >&6; }
13926 if test "$num" -lt "$req"; then
13928 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
13931 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
13932 eval `echo $vervar=$num`
13933 ## AC_SUBST(`eval echo $vervar`)
13938 for ac_prog in convert
13940 # Extract the first word of "$ac_prog", so it can be a program name with args.
13941 set dummy $ac_prog; ac_word=$2
13942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13943 $as_echo_n "checking for $ac_word... " >&6; }
13944 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
13945 $as_echo_n "(cached) " >&6
13947 if test -n "$IMAGEMAGICK"; then
13948 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13957 ac_cv_prog_IMAGEMAGICK="$ac_prog"
13958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13967 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
13968 if test -n "$IMAGEMAGICK"; then
13969 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
13970 $as_echo "$IMAGEMAGICK" >&6; }
13972 { $as_echo "$as_me:$LINENO: result: no" >&5
13973 $as_echo "no" >&6; }
13977 test -n "$IMAGEMAGICK" && break
13979 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
13983 r="`eval echo '$'"IMAGEMAGICK"`"
13984 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
13987 ##STEPMAKE_WARN(cannot find . )
13991 if test $? -ne 0; then
13993 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
13995 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13996 command="echo ERROR: convert not found"
13997 # abort configure process here?
13999 command="- echo convert not found"
14001 eval "IMAGEMAGICK"='$command'
14007 if test $? -eq 0 -a -n ""; then
14009 r="`eval echo '$'"IMAGEMAGICK"`"
14010 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14011 $as_echo_n "checking $r version... " >&6; }
14013 ## which doesn't work in ash, if /usr/bin/which isn't installed
14014 ## type -p doesn't work in ash
14015 ## command -v doesn't work in zsh
14016 ## command -v "$r" 2>&1
14017 ## this test should work in ash, bash, pdksh (ksh), zsh
14018 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14020 if test -n ""; then
14024 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14027 ## Workaround for broken Debian gcc version string:
14028 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14030 ## -V: Workaround for python
14034 ## Assume and hunt for dotted version multiplet.
14035 ## use eval trickery, because we cannot use multi-level $() instead of ``
14036 ## for compatibility reasons.
14038 ## grab the first version number in --version output.
14039 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14040 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14043 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14044 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14047 if test -z "$_ver"; then
14048 ## If empty, try date [fontforge]
14049 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
14051 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14058 echo "$ver" | awk -F. '
14060 if ($3) {three = $3}
14063 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14066 echo "" | awk -F. '
14068 if ($3) {three = $3}
14071 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14073 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14074 $as_echo "$ver" >&6; }
14075 if test "$num" -lt "$req"; then
14077 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14080 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
14081 eval `echo $vervar=$num`
14082 ## AC_SUBST(`eval echo $vervar`)
14086 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
14090 # Extract the first word of "$ac_prog", so it can be a program name with args.
14091 set dummy $ac_prog; ac_word=$2
14092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
14095 $as_echo_n "(cached) " >&6
14097 if test -n "$ZIPDOC"; then
14098 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107 ac_cv_prog_ZIPDOC="$ac_prog"
14108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 ZIPDOC=$ac_cv_prog_ZIPDOC
14118 if test -n "$ZIPDOC"; then
14119 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
14120 $as_echo "$ZIPDOC" >&6; }
14122 { $as_echo "$as_me:$LINENO: result: no" >&5
14123 $as_echo "no" >&6; }
14127 test -n "$ZIPDOC" && break
14129 test -n "$ZIPDOC" || ZIPDOC="no"
14133 r="`eval echo '$'"ZIPDOC"`"
14134 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
14137 ##STEPMAKE_WARN(cannot find . )
14141 if test $? -ne 0; then
14143 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
14145 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14146 command="echo ERROR: zip not found"
14147 # abort configure process here?
14149 command="- echo zip not found"
14151 eval "ZIPDOC"='$command'
14157 if test $? -eq 0 -a -n ""; then
14159 r="`eval echo '$'"ZIPDOC"`"
14160 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14161 $as_echo_n "checking $r version... " >&6; }
14163 ## which doesn't work in ash, if /usr/bin/which isn't installed
14164 ## type -p doesn't work in ash
14165 ## command -v doesn't work in zsh
14166 ## command -v "$r" 2>&1
14167 ## this test should work in ash, bash, pdksh (ksh), zsh
14168 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14170 if test -n ""; then
14174 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14177 ## Workaround for broken Debian gcc version string:
14178 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14180 ## -V: Workaround for python
14184 ## Assume and hunt for dotted version multiplet.
14185 ## use eval trickery, because we cannot use multi-level $() instead of ``
14186 ## for compatibility reasons.
14188 ## grab the first version number in --version output.
14189 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14190 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14193 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14194 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14197 if test -z "$_ver"; then
14198 ## If empty, try date [fontforge]
14199 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
14201 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14208 echo "$ver" | awk -F. '
14210 if ($3) {three = $3}
14213 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14216 echo "" | awk -F. '
14218 if ($3) {three = $3}
14221 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14223 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14224 $as_echo "$ver" >&6; }
14225 if test "$num" -lt "$req"; then
14227 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14230 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
14231 eval `echo $vervar=$num`
14232 ## AC_SUBST(`eval echo $vervar`)
14237 for ac_prog in rsync
14239 # Extract the first word of "$ac_prog", so it can be a program name with args.
14240 set dummy $ac_prog; ac_word=$2
14241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if test "${ac_cv_prog_RSYNC+set}" = set; then
14244 $as_echo_n "(cached) " >&6
14246 if test -n "$RSYNC"; then
14247 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_prog_RSYNC="$ac_prog"
14257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 RSYNC=$ac_cv_prog_RSYNC
14267 if test -n "$RSYNC"; then
14268 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
14269 $as_echo "$RSYNC" >&6; }
14271 { $as_echo "$as_me:$LINENO: result: no" >&5
14272 $as_echo "no" >&6; }
14276 test -n "$RSYNC" && break
14278 test -n "$RSYNC" || RSYNC="no"
14282 r="`eval echo '$'"RSYNC"`"
14283 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
14286 ##STEPMAKE_WARN(cannot find . )
14290 if test $? -ne 0; then
14292 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
14294 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14295 command="echo ERROR: rsync not found"
14296 # abort configure process here?
14298 command="- echo rsync not found"
14300 eval "RSYNC"='$command'
14306 if test $? -eq 0 -a -n ""; then
14308 r="`eval echo '$'"RSYNC"`"
14309 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14310 $as_echo_n "checking $r version... " >&6; }
14312 ## which doesn't work in ash, if /usr/bin/which isn't installed
14313 ## type -p doesn't work in ash
14314 ## command -v doesn't work in zsh
14315 ## command -v "$r" 2>&1
14316 ## this test should work in ash, bash, pdksh (ksh), zsh
14317 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14319 if test -n ""; then
14323 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14326 ## Workaround for broken Debian gcc version string:
14327 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14329 ## -V: Workaround for python
14333 ## Assume and hunt for dotted version multiplet.
14334 ## use eval trickery, because we cannot use multi-level $() instead of ``
14335 ## for compatibility reasons.
14337 ## grab the first version number in --version output.
14338 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14339 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14342 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14343 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14346 if test -z "$_ver"; then
14347 ## If empty, try date [fontforge]
14348 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
14350 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14357 echo "$ver" | awk -F. '
14359 if ($3) {three = $3}
14362 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14365 echo "" | awk -F. '
14367 if ($3) {three = $3}
14370 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14372 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14373 $as_echo "$ver" >&6; }
14374 if test "$num" -lt "$req"; then
14376 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14379 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
14380 eval `echo $vervar=$num`
14381 ## AC_SUBST(`eval echo $vervar`)
14386 cat >>confdefs.h <<_ACEOF
14387 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
14391 # must also have local.make if configure fails.
14394 if test "$reloc_b$rpath_b" = "yesno"; then
14396 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
14397 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
14402 # Gather requirements and generate output.
14405 # undo expanding of explicit --infodir=/usr/share
14406 # to ease install-time override with prefix=...
14407 strip=`echo $includedir | eval sed s@^$prefix@@`
14408 if test "$includedir" = "`eval echo $prefix$strip`"; then
14409 includedir='${prefix}'$strip''
14411 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
14412 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
14413 libdir='${exec_prefix}'$strip''
14415 strip=`echo $infodir | eval sed s@^$datarootdir@@`
14416 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
14417 infodir='${datarootdir}'$strip''
14419 strip=`echo $mandir | eval sed s@^$datarootdir@@`
14420 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
14421 mandir='${datarootdir}'$strip''
14428 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
14430 cat >confcache <<\_ACEOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs, see configure's option --config-cache.
14434 # It is not useful on other systems. If it contains results you don't
14435 # want to keep, you may remove or edit it.
14437 # config.status only pays attention to the cache file if you give it
14438 # the --recheck option to rerun configure.
14440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14442 # following values.
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, we kill variables containing newlines.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453 eval ac_val=\$$ac_var
14457 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14461 _ | IFS | as_nl) ;; #(
14462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14463 *) $as_unset $ac_var ;;
14469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470 *${as_nl}ac_space=\ *)
14471 # `set' does not quote correctly, so add quotes (double-quote
14472 # substitution turns \\\\ into \\, and sed turns \\ into \).
14475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14478 # `set' quotes correctly as required by POSIX, so do not add quotes.
14479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14493 if test -w "$cache_file"; then
14494 test "x$cache_file" != "x/dev/null" &&
14495 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14496 $as_echo "$as_me: updating cache $cache_file" >&6;}
14497 cat confcache >$cache_file
14499 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14506 # Let make expand exec_prefix.
14507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14509 DEFS=-DHAVE_CONFIG_H
14513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14514 # 1. Remove the extension, and $U if already installed.
14515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14518 # will be set to the directory where LIBOBJS objects are built.
14519 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14520 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14522 LIBOBJS=$ac_libobjs
14524 LTLIBOBJS=$ac_ltlibobjs
14528 : ${CONFIG_STATUS=./config.status}
14530 ac_clean_files_save=$ac_clean_files
14531 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14532 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14533 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14534 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14536 # Generated by $as_me.
14537 # Run this file to recreate the current configuration.
14538 # Compiler output produced by configure, useful for debugging
14539 # configure, is in config.log if it exists.
14542 ac_cs_recheck=false
14544 SHELL=\${CONFIG_SHELL-$SHELL}
14547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548 ## --------------------- ##
14549 ## M4sh Initialization. ##
14550 ## --------------------- ##
14552 # Be more Bourne compatible
14553 DUALCASE=1; export DUALCASE # for MKS sh
14554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14557 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14558 # is contrary to our usage. Disable this feature.
14559 alias -g '${1+"$@"}'='"$@"'
14560 setopt NO_GLOB_SUBST
14562 case `(set -o) 2>/dev/null` in
14563 *posix*) set -o posix ;;
14572 # Avoid depending upon Character Ranges.
14573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14576 as_cr_digits='0123456789'
14577 as_cr_alnum=$as_cr_Letters$as_cr_digits
14582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14586 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14587 as_echo='printf %s\n'
14588 as_echo_n='printf %s'
14590 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14591 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14592 as_echo_n='/usr/ucb/echo -n'
14594 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14595 as_echo_n_body='eval
14599 expr "X$arg" : "X\\(.*\\)$as_nl";
14600 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14602 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14604 export as_echo_n_body
14605 as_echo_n='sh -c $as_echo_n_body as_echo'
14607 export as_echo_body
14608 as_echo='sh -c $as_echo_body as_echo'
14611 # The user is always right.
14612 if test "${PATH_SEPARATOR+set}" != set; then
14614 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14615 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14620 # Support unset when possible.
14621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14629 # We need space, tab and new line, in precisely that order. Quoting is
14630 # there to prevent editors from complaining about space-tab.
14631 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14632 # splitting by setting IFS to empty value.)
14635 # Find who we are. Look in the path if we contain no directory separator.
14637 *[\\/]* ) as_myself=$0 ;;
14638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 for as_dir in $PATH
14642 test -z "$as_dir" && as_dir=.
14643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14649 # We did not find ourselves, most probably we were run as `sh COMMAND'
14650 # in which case we are not to be found in the path.
14651 if test "x$as_myself" = x; then
14654 if test ! -f "$as_myself"; then
14655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14656 { (exit 1); exit 1; }
14659 # Work around bugs in pre-3.0 UWIN ksh.
14660 for as_var in ENV MAIL MAILPATH
14661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14673 # Required to use basename.
14674 if expr a : '\(a\)' >/dev/null 2>&1 &&
14675 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14681 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14682 as_basename=basename
14688 # Name of the executable.
14689 as_me=`$as_basename -- "$0" ||
14690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14691 X"$0" : 'X\(//\)$' \| \
14692 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14694 sed '/^.*\/\([^/][^/]*\)\/*$/{
14713 as_lineno_1=$LINENO
14714 as_lineno_2=$LINENO
14715 test "x$as_lineno_1" != "x$as_lineno_2" &&
14716 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14718 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14719 # uniformly replaced by the line number. The first 'sed' inserts a
14720 # line-number line after each line using $LINENO; the second 'sed'
14721 # does the real work. The second script uses 'N' to pair each
14722 # line-number line with the line containing $LINENO, and appends
14723 # trailing '-' during substitution so that $LINENO is not a special
14724 # case at line end.
14725 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14726 # scripts with optimization help from Paolo Bonzini. Blame Lee
14727 # E. McMahon (1931-1989) for sed's syntax. :-)
14739 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14742 ' >$as_me.lineno &&
14743 chmod +x "$as_me.lineno" ||
14744 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14745 { (exit 1); exit 1; }; }
14747 # Don't try to exec as it changes $[0], causing all sort of problems
14748 # (the dirname of $[0] is not the place where we might find the
14749 # original and so on. Autoconf is especially sensitive to this).
14750 . "./$as_me.lineno"
14751 # Exit status is that of the last command.
14756 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14762 ECHO_C= ECHO_N= ECHO_T=
14763 case `echo -n x` in
14765 case `echo 'x\c'` in
14766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14772 if expr a : '\(a\)' >/dev/null 2>&1 &&
14773 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14779 rm -f conf$$ conf$$.exe conf$$.file
14780 if test -d conf$$.dir; then
14781 rm -f conf$$.dir/conf$$.file
14784 mkdir conf$$.dir 2>/dev/null
14786 if (echo >conf$$.file) 2>/dev/null; then
14787 if ln -s conf$$.file conf$$ 2>/dev/null; then
14789 # ... but there are two gotchas:
14790 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14791 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14792 # In both cases, we have to default to `cp -p'.
14793 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14795 elif ln conf$$.file conf$$ 2>/dev/null; then
14803 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14804 rmdir conf$$.dir 2>/dev/null
14806 if mkdir -p . 2>/dev/null; then
14809 test -d ./-p && rmdir ./-p
14813 if test -x / >/dev/null 2>&1; then
14814 as_test_x='test -x'
14816 if ls -dL / >/dev/null 2>&1; then
14823 if test -d "$1"; then
14829 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14830 ???[sx]*):;;*)false;;esac;fi
14834 as_executable_p=$as_test_x
14836 # Sed expression to map a string onto a valid CPP name.
14837 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14839 # Sed expression to map a string onto a valid variable name.
14840 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14845 # Save the log message, to keep $[0] and so on meaningful, and to
14846 # report actual input values of CONFIG_FILES etc. instead of their
14847 # values after options handling.
14849 This file was extended by $as_me, which was
14850 generated by GNU Autoconf 2.63. Invocation command line was
14852 CONFIG_FILES = $CONFIG_FILES
14853 CONFIG_HEADERS = $CONFIG_HEADERS
14854 CONFIG_LINKS = $CONFIG_LINKS
14855 CONFIG_COMMANDS = $CONFIG_COMMANDS
14858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14863 case $ac_config_files in *"
14864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14867 case $ac_config_headers in *"
14868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14873 # Files that config.status was made for.
14874 config_files="$ac_config_files"
14875 config_headers="$ac_config_headers"
14879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14881 \`$as_me' instantiates files from templates according to the
14882 current configuration.
14884 Usage: $0 [OPTION]... [FILE]...
14886 -h, --help print this help, then exit
14887 -V, --version print version number and configuration settings, then exit
14888 -q, --quiet, --silent
14889 do not print progress messages
14890 -d, --debug don't remove temporary files
14891 --recheck update $as_me by reconfiguring in the same conditions
14892 --file=FILE[:TEMPLATE]
14893 instantiate the configuration file FILE
14894 --header=FILE[:TEMPLATE]
14895 instantiate the configuration header FILE
14897 Configuration files:
14900 Configuration headers:
14903 Report bugs to <bug-autoconf@gnu.org>."
14906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14909 configured by $0, generated by GNU Autoconf 2.63,
14910 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14912 Copyright (C) 2008 Free Software Foundation, Inc.
14913 This config.status script is free software; the Free Software Foundation
14914 gives unlimited permission to copy, distribute and modify it."
14918 test -n "\$AWK" || AWK=awk
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922 # The default lists apply if the user does not specify any file.
14928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14940 # Handling of the options.
14941 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14943 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14944 $as_echo "$ac_cs_version"; exit ;;
14945 --debug | --debu | --deb | --de | --d | -d )
14947 --file | --fil | --fi | --f )
14950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14952 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14953 ac_need_defaults=false;;
14954 --header | --heade | --head | --hea )
14957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14959 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14960 ac_need_defaults=false;;
14962 # Conflict between --help and --header
14963 { $as_echo "$as_me: error: ambiguous option: $1
14964 Try \`$0 --help' for more information." >&2
14965 { (exit 1); exit 1; }; };;
14966 --help | --hel | -h )
14967 $as_echo "$ac_cs_usage"; exit ;;
14968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14969 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14972 # This is an error.
14973 -*) { $as_echo "$as_me: error: unrecognized option: $1
14974 Try \`$0 --help' for more information." >&2
14975 { (exit 1); exit 1; }; } ;;
14977 *) ac_config_targets="$ac_config_targets $1"
14978 ac_need_defaults=false ;;
14984 ac_configure_extra_args=
14986 if $ac_cs_silent; then
14988 ac_configure_extra_args="$ac_configure_extra_args --silent"
14992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14993 if \$ac_cs_recheck; then
14994 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14996 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14997 CONFIG_SHELL='$SHELL'
14998 export CONFIG_SHELL
15003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15008 ## Running $as_me. ##
15014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15019 # Handling of arguments.
15020 for ac_config_target in $ac_config_targets
15022 case $ac_config_target in
15023 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
15024 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
15026 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15027 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15028 { (exit 1); exit 1; }; };;
15033 # If the user did not use the arguments to specify the items to instantiate,
15034 # then the envvar interface is used. Set only those that are not.
15035 # We use the long form for the default assignment because of an extremely
15036 # bizarre bug on SunOS 4.1.3.
15037 if $ac_need_defaults; then
15038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15042 # Have a temporary directory for convenience. Make it in the build tree
15043 # simply because there is no reason against having it here, and in addition,
15044 # creating and moving files from /tmp can sometimes cause problems.
15045 # Hook for its removal unless debugging.
15046 # Note that there is a small window in which the directory will not be cleaned:
15047 # after its creation but before its name has been assigned to `$tmp'.
15051 trap 'exit_status=$?
15052 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15054 trap '{ (exit 1); exit 1; }' 1 2 13 15
15056 # Create a (secure) tmp directory for tmp files.
15059 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15060 test -n "$tmp" && test -d "$tmp"
15063 tmp=./conf$$-$RANDOM
15064 (umask 077 && mkdir "$tmp")
15067 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15068 { (exit 1); exit 1; }
15071 # Set up the scripts for CONFIG_FILES section.
15072 # No need to generate them if there are no CONFIG_FILES.
15073 # This happens for instance with `./config.status config.h'.
15074 if test -n "$CONFIG_FILES"; then
15078 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15079 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15082 ac_cs_awk_cr=$ac_cr
15085 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15090 echo "cat >conf$$subs.awk <<_ACEOF" &&
15091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15093 } >conf$$subs.sh ||
15094 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15095 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15096 { (exit 1); exit 1; }; }
15097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15099 for ac_last_try in false false false false false :; do
15100 . ./conf$$subs.sh ||
15101 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15102 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15103 { (exit 1); exit 1; }; }
15105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15106 if test $ac_delim_n = $ac_delim_num; then
15108 elif $ac_last_try; then
15109 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15110 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15111 { (exit 1); exit 1; }; }
15113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15116 rm -f conf$$subs.sh
15118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15119 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15123 s/^/S["/; s/!.*/"]=/
15133 s/\(.\{148\}\).*/\1/
15135 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15147 s/\(.\{148\}\).*/\1/
15149 s/["\\]/\\&/g; s/^/"/; s/$/"/
15153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15158 ' <conf$$subs.awk | sed '
15163 ' >>$CONFIG_STATUS || ac_write_fail=1
15164 rm -f conf$$subs.awk
15165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15168 for (key in S) S_is_set[key] = 1
15174 nfields = split(line, field, "@")
15176 len = length(field[1])
15177 for (i = 2; i < nfields; i++) {
15179 keylen = length(key)
15180 if (S_is_set[key]) {
15182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15183 len += length(value) + length(field[++i])
15194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15196 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15199 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15200 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15201 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15202 { (exit 1); exit 1; }; }
15205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15207 # trailing colons and then remove the whole line if VPATH becomes empty
15208 # (actually we leave an empty line to preserve line numbers).
15209 if test "x$srcdir" = x.; then
15210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15211 s/:*\$(srcdir):*/:/
15212 s/:*\${srcdir}:*/:/
15214 s/^\([^=]*=[ ]*\):*/\1/
15220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221 fi # test -n "$CONFIG_FILES"
15223 # Set up the scripts for CONFIG_HEADERS section.
15224 # No need to generate them if there are no CONFIG_HEADERS.
15225 # This happens for instance with `./config.status Makefile'.
15226 if test -n "$CONFIG_HEADERS"; then
15227 cat >"$tmp/defines.awk" <<\_ACAWK ||
15231 # Transform confdefs.h into an awk script `defines.awk', embedded as
15232 # here-document in config.status, that substitutes the proper values into
15233 # config.h.in to produce config.h.
15235 # Create a delimiter string that does not exist in confdefs.h, to ease
15236 # handling of long lines.
15238 for ac_last_try in false false :; do
15239 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15240 if test -z "$ac_t"; then
15242 elif $ac_last_try; then
15243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15244 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15245 { (exit 1); exit 1; }; }
15247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15251 # For the awk script, D is an array of macro values keyed by name,
15252 # likewise P contains macro parameters if any. Preserve backslash
15253 # newline sequences.
15255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15257 s/.\{148\}/&'"$ac_delim"'/g
15260 s/^[ ]*#[ ]*define[ ][ ]*/ /
15267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15274 D["\1"]=" \3\\\\\\n"\\/p
15276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15281 s/.\{148\}/&'"$ac_delim"'/g
15286 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15289 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15291 ' <confdefs.h | sed '
15292 s/'"$ac_delim"'/"\\\
15293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 for (key in D) D_is_set[key] = 1
15299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15301 split(line, arg, " ")
15302 if (arg[1] == "#") {
15306 defundef = substr(arg[1], 2)
15309 split(mac1, mac2, "(") #)
15311 prefix = substr(line, 1, index(line, defundef) - 1)
15312 if (D_is_set[macro]) {
15313 # Preserve the white space surrounding the "#".
15314 print prefix "define", macro P[macro] D[macro]
15317 # Replace #undef with comments. This is necessary, for example,
15318 # in the case of _POSIX_SOURCE, which is predefined and required
15319 # on some systems where configure will not decide to define it.
15320 if (defundef == "undef") {
15321 print "/*", prefix defundef, macro, "*/"
15329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15330 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15331 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15332 { (exit 1); exit 1; }; }
15333 fi # test -n "$CONFIG_HEADERS"
15336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
15341 :[FHLC]) ac_mode=$ac_tag; continue;;
15343 case $ac_mode$ac_tag in
15345 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15346 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15347 { (exit 1); exit 1; }; };;
15348 :[FH]-) ac_tag=-:-;;
15349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15366 -) ac_f="$tmp/stdin";;
15367 *) # Look for the file first in the build tree, then in the source tree
15368 # (if the path is not absolute). The absolute path cannot be DOS-style,
15369 # because $ac_f cannot contain `:'.
15373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15375 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15376 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15377 { (exit 1); exit 1; }; };;
15379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15380 ac_file_inputs="$ac_file_inputs '$ac_f'"
15383 # Let's still pretend it is `configure' which instantiates (i.e., don't
15384 # use $as_me), people would be surprised to read:
15385 # /* config.h. Generated by config.status. */
15386 configure_input='Generated from '`
15387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15389 if test x"$ac_file" != x-; then
15390 configure_input="$ac_file. $configure_input"
15391 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15392 $as_echo "$as_me: creating $ac_file" >&6;}
15394 # Neutralize special characters interpreted by sed in replacement strings.
15395 case $configure_input in #(
15396 *\&* | *\|* | *\\* )
15397 ac_sed_conf_input=`$as_echo "$configure_input" |
15398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15399 *) ac_sed_conf_input=$configure_input;;
15403 *:-:* | *:-) cat >"$tmp/stdin" \
15404 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15405 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15406 { (exit 1); exit 1; }; } ;;
15411 ac_dir=`$as_dirname -- "$ac_file" ||
15412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15413 X"$ac_file" : 'X\(//\)[^/]' \| \
15414 X"$ac_file" : 'X\(//\)$' \| \
15415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15416 $as_echo X"$ac_file" |
15417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15421 /^X\(\/\/\)[^/].*/{
15436 -*) as_dir=./$as_dir;;
15438 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15443 *) as_qdir=$as_dir;;
15445 as_dirs="'$as_qdir' $as_dirs"
15446 as_dir=`$as_dirname -- "$as_dir" ||
15447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15448 X"$as_dir" : 'X\(//\)[^/]' \| \
15449 X"$as_dir" : 'X\(//\)$' \| \
15450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15451 $as_echo X"$as_dir" |
15452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15456 /^X\(\/\/\)[^/].*/{
15469 test -d "$as_dir" && break
15471 test -z "$as_dirs" || eval "mkdir $as_dirs"
15472 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15473 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15474 { (exit 1); exit 1; }; }; }
15478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15481 # A ".." for each directory in $ac_dir_suffix.
15482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15483 case $ac_top_builddir_sub in
15484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15488 ac_abs_top_builddir=$ac_pwd
15489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15490 # for backward compatibility:
15491 ac_top_builddir=$ac_top_build_prefix
15494 .) # We are building in place.
15496 ac_top_srcdir=$ac_top_builddir_sub
15497 ac_abs_top_srcdir=$ac_pwd ;;
15498 [\\/]* | ?:[\\/]* ) # Absolute name.
15499 ac_srcdir=$srcdir$ac_dir_suffix;
15500 ac_top_srcdir=$srcdir
15501 ac_abs_top_srcdir=$srcdir ;;
15502 *) # Relative name.
15503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15504 ac_top_srcdir=$ac_top_build_prefix$srcdir
15505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519 # If the template does not know about datarootdir, expand it.
15520 # FIXME: This hack should be removed a few years after 2.60.
15521 ac_datarootdir_hack=; ac_datarootdir_seen=
15534 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15535 *datarootdir*) ac_datarootdir_seen=yes;;
15536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15537 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15538 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 ac_datarootdir_hack='
15542 s&@datadir@&$datadir&g
15543 s&@docdir@&$docdir&g
15544 s&@infodir@&$infodir&g
15545 s&@localedir@&$localedir&g
15546 s&@mandir@&$mandir&g
15547 s&\\\${datarootdir}&$datarootdir&g' ;;
15551 # Neutralize VPATH when `$srcdir' = `.'.
15552 # Shell code in configure.ac might set extrasub.
15553 # FIXME: do we really want to maintain this feature?
15554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555 ac_sed_extra="$ac_vpsub
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15561 s|@configure_input@|$ac_sed_conf_input|;t t
15562 s&@top_builddir@&$ac_top_builddir_sub&;t t
15563 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15564 s&@srcdir@&$ac_srcdir&;t t
15565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15566 s&@top_srcdir@&$ac_top_srcdir&;t t
15567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15568 s&@builddir@&$ac_builddir&;t t
15569 s&@abs_builddir@&$ac_abs_builddir&;t t
15570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15571 $ac_datarootdir_hack
15573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15574 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15575 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15576 { (exit 1); exit 1; }; }
15578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15581 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15582 which seems to be undefined. Please make sure it is defined." >&5
15583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15584 which seems to be undefined. Please make sure it is defined." >&2;}
15588 -) cat "$tmp/out" && rm -f "$tmp/out";;
15589 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15591 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15592 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15593 { (exit 1); exit 1; }; }
15599 if test x"$ac_file" != x-; then
15601 $as_echo "/* $configure_input */" \
15602 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15603 } >"$tmp/config.h" \
15604 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15606 { (exit 1); exit 1; }; }
15607 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15608 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15609 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15612 mv "$tmp/config.h" "$ac_file" \
15613 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15614 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15615 { (exit 1); exit 1; }; }
15618 $as_echo "/* $configure_input */" \
15619 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15620 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15621 $as_echo "$as_me: error: could not create -" >&2;}
15622 { (exit 1); exit 1; }; }
15632 { (exit 0); exit 0; }
15634 chmod +x $CONFIG_STATUS
15635 ac_clean_files=$ac_clean_files_save
15637 test $ac_write_fail = 0 ||
15638 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15639 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15640 { (exit 1); exit 1; }; }
15643 # configure is writing to config.log, and then calls config.status.
15644 # config.status does its own redirection, appending to config.log.
15645 # Unfortunately, on DOS this fails, as config.log is still kept open
15646 # by configure, so config.status won't be able to write to it; its
15647 # output is simply discarded. So we exec the FD to /dev/null,
15648 # effectively closing config.log, so it can be properly (re)opened and
15649 # appended to by config.status. When coming back to configure, we
15650 # need to make the FD available again.
15651 if test "$no_create" != yes; then
15653 ac_config_status_args=
15654 test "$silent" = yes &&
15655 ac_config_status_args="$ac_config_status_args --quiet"
15657 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15659 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15660 # would make configure fail if this is the last instruction.
15661 $ac_cs_success || { (exit 1); exit 1; }
15663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15664 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15669 if test -n "$OPTIONAL"; then
15671 echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
15674 if test -n "$REQUIRED"; then
15676 echo "ERROR: Please install required programs: $REQUIRED"
15679 if test -n "$UNSUPPORTED"; then
15681 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
15684 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
15686 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
15687 if test -f config.cache ; then
15688 echo "Remove config.cache before rerunning ./configure"
15692 if test -n "$REQUIRED$UNSUPPORTED"; then
15693 rm -f $srcdir/GNUmakefile
15697 # regular in-place build
15698 # test for srcdir_build = yes ?
15699 if test "$srcdir_build" = "yes"; then
15700 rm -f $srcdir/GNUmakefile
15701 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
15702 chmod 444 $srcdir/GNUmakefile
15704 if test -f $srcdir/GNUmakefile; then
15706 Source directory already configured. Please clean the source directory
15708 make -C $srcdir distclean
15710 and rerun configure.
15715 abssrcdir="`cd $srcdir; pwd`"
15716 absbuilddir="`pwd`"
15717 for d in 2 3 4 5 ; do
15718 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
15719 case "$abssrcdir" in
15721 # source is below build directory, always copy
15724 case "$abssrcdir/${mf#./}" in
15726 # find descended into build directory, don't copy
15731 cat <<EOF | $PYTHON - > $mf
15732 print 'depth=' + ('../' * ( $d-1 ) )
15733 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15734 print 'include \$(configure-srcdir)/$mf'
15735 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
15738 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
15739 case "$abssrcdir" in
15741 # source is below build directory, always copy
15744 case "$abssrcdir/${mf#./}" in
15746 # find descended into build directory, don't copy
15751 cat <<EOF | $PYTHON - > $mf
15752 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15753 print 'include \$(configure-srcdir)/$mf'
15759 cat <<EOF > GNUmakefile
15761 include config\$(if \$(conf),-\$(conf),).make
15762 include \$(configure-srcdir)/GNUmakefile.in
15764 chmod 444 GNUmakefile
15769 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
15771 if make top-doc 1>/dev/null 2>&1; then
15772 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
15773 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
15779 make$mc all to build LilyPond
15780 make$mc install to install LilyPond
15781 make$mc help to see all possible targets
15783 Edit local.make for local Makefile overrides.