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>
706 build_package_datadir
742 ugh_ugh_autoconf250_builddir
770 program_transform_name
782 enable_option_checking
798 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
921 { (exit 1); exit 1; }; }
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=no ;;
1183 # Obsolete; use --with-x.
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202 { (exit 1); exit 1; }; }
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1209 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210 { (exit 1); exit 1; }; }
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1228 { (exit 1); exit 1; }; }
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1234 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1235 { (exit 1); exit 1; }; } ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1253 # Be sure to have absolute directory names.
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1259 { (exit 1); exit 1; }; }
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1290 { (exit 1); exit 1; }; }
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1293 { (exit 1); exit 1; }; }
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1328 ac_srcdir_defaulted=no
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1333 { (exit 1); exit 1; }; }
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1338 { (exit 1); exit 1; }; }
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 # Report the --help message.
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1364 \`configure' configures this package to adapt to many kinds of systems.
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1371 Defaults for the options are specified in brackets.
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1395 For better control, use the options below.
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 if test -n "$ac_init_help"; then
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1436 do `make conf=CONF' to get output in ./out-CONF
1437 --enable-documentation build Documentation. Default: on
1438 --enable-relocation compile with dynamic relocation. Default: off
1439 --enable-rpath hardcode runtime library path. Default: off
1440 --enable-static-gxx link libstdc++.a statically. Default: off
1441 --enable-debugging compile with debugging info. Default: on
1442 --enable-optimising compile with optimising. Default: on
1443 --enable-profiling compile with gprof support. Default: off
1444 --enable-pipe compile with -pipe. Default: on
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-ncsb-dir=DIR location of Century Schoolbook fonts.
1450 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1451 --with-lang=LANG use LANG as language to emit messages
1452 --with-python-include=DIR
1453 location of the python include dir
1454 --with-python-lib=NAME name of the python lib
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1466 CXXCPP C++ preprocessor
1467 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1468 the first program found out of: `bison -y', `byacc', `yacc'.
1469 YFLAGS The list of arguments that will be passed by default to $YACC.
1470 This script will default YFLAGS to the empty string to avoid a
1471 default value of `-d' given by some make applications.
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1539 generated by GNU Autoconf 2.63
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by $as_me, which was
1553 generated by GNU Autoconf 2.63. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 $as_echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 $as_echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 $as_echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 $as_echo "$as_me: caught signal $ac_signal"
1747 $as_echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer an explicitly selected file to automatically selected ones.
1792 if test -n "$CONFIG_SITE"; then
1793 ac_site_file1=$CONFIG_SITE
1794 elif test "x$prefix" != xNONE; then
1795 ac_site_file1=$prefix/share/config.site
1796 ac_site_file2=$prefix/etc/config.site
1798 ac_site_file1=$ac_default_prefix/share/config.site
1799 ac_site_file2=$ac_default_prefix/etc/config.site
1801 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1803 test "x$ac_site_file" = xNONE && continue
1804 if test -r "$ac_site_file"; then
1805 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1807 sed 's/^/| /' "$ac_site_file" >&5
1812 if test -r "$cache_file"; then
1813 # Some versions of bash will fail to source /dev/null (special
1814 # files actually), so we avoid doing that.
1815 if test -f "$cache_file"; then
1816 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 $as_echo "$as_me: loading cache $cache_file" >&6;}
1819 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820 *) . "./$cache_file";;
1824 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 $as_echo "$as_me: creating cache $cache_file" >&6;}
1829 # Check that the precious variables saved in the cache have kept the same
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834 eval ac_new_set=\$ac_env_${ac_var}_set
1835 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836 eval ac_new_val=\$ac_env_${ac_var}_value
1837 case $ac_old_set,$ac_new_set in
1839 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1843 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
1849 # differences in whitespace do not lead to failure.
1850 ac_old_val_w=`echo x $ac_old_val`
1851 ac_new_val_w=`echo x $ac_new_val`
1852 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1853 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 ac_cache_corrupted=:
1857 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1858 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1859 eval $ac_var=\$ac_old_val
1861 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1862 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1863 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1864 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1870 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 *) ac_arg=$ac_var=$ac_new_val ;;
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 if $ac_cache_corrupted; then
1880 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1882 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 # Bootstrap StepMake configure
1916 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1917 if test -f "$ac_dir/install-sh"; then
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 elif test -f "$ac_dir/install.sh"; then
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1925 elif test -f "$ac_dir/shtool"; then
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1931 if test -z "$ac_aux_dir"; then
1932 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1933 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 # For stepmake package:
1948 # AC_CONFIG_AUX_DIR(bin)
1951 # Make sure we can run config.sub.
1952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1953 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1954 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1955 { (exit 1); exit 1; }; }
1957 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1958 $as_echo_n "checking build system type... " >&6; }
1959 if test "${ac_cv_build+set}" = set; then
1960 $as_echo_n "(cached) " >&6
1962 ac_build_alias=$build_alias
1963 test "x$ac_build_alias" = x &&
1964 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1965 test "x$ac_build_alias" = x &&
1966 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1967 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1968 { (exit 1); exit 1; }; }
1969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1970 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1972 { (exit 1); exit 1; }; }
1975 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1976 $as_echo "$ac_cv_build" >&6; }
1977 case $ac_cv_build in
1979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1980 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1981 { (exit 1); exit 1; }; };;
1984 ac_save_IFS=$IFS; IFS='-'
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2000 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2001 MICRO_VERSION=$PATCH_LEVEL
2002 TOPLEVEL_VERSION=$FULL_VERSION
2003 if test x$MY_PATCH_LEVEL != x; then
2004 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2006 VERSION=$FULL_VERSION
2007 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2008 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2010 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2011 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2014 # No versioning on directory names of sub-packages
2016 stepmake=${datadir}/stepmake
2018 if test "$prefix" = "NONE"; then
2019 presome=${ac_default_prefix}
2021 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2023 # urg, how is this supposed to work?
2024 if test "$program_prefix" = "NONE"; then
2027 if test "$program_suffix" = "NONE"; then
2031 { $as_echo "$as_me:$LINENO: checking Package" >&5
2032 $as_echo_n "checking Package... " >&6; }
2033 if test "$PACKAGE" = "STEPMAKE"; then
2034 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2035 $as_echo "Stepmake package!" >&6; }
2037 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2038 $as_echo_n "checking builddir... " >&6; }
2040 ugh_ugh_autoconf250_builddir="`pwd`"
2042 if test "$srcdir" = "."; then
2046 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2047 package_srcdir="`dirname $srcdir`"
2049 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2050 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2052 (cd stepmake 2>/dev/null || mkdir stepmake)
2053 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2056 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2057 $as_echo "$PACKAGE" >&6; }
2059 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2060 $as_echo_n "checking builddir... " >&6; }
2061 ugh_ugh_autoconf250_builddir="`pwd`"
2063 here_dir=$(cd . && pwd)
2064 full_src_dir=$(cd $srcdir && pwd)
2066 if test "$full_src_dir" = "$here_dir"; then
2071 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2072 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2074 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2075 $as_echo_n "checking for stepmake... " >&6; }
2076 # Check for installed stepmake
2077 if test -d $stepmake; then
2078 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2079 $as_echo "$stepmake" >&6; }
2081 stepmake="`cd $srcdir/stepmake; pwd`"
2082 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2083 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2089 # Use absolute directory for non-srcdir builds, so that build
2091 if test "$srcdir_build" = "no" ; then
2092 srcdir="`cd $srcdir; pwd`"
2105 # stepmake nonstandard names
2109 # We don't need the upper case variant,
2110 # so stick to macros are uppercase convention.
2111 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2112 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE "${package}"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "${PACKAGE_NAME}"
2121 cat >>confdefs.h <<_ACEOF
2122 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2126 if test -z "$package_depth"; then
2129 package_depth="../$package_depth"
2131 export package_depth
2134 AUTOGENERATE="This file was automatically generated by configure"
2138 # Check whether --enable-config was given.
2139 if test "${enable_config+set}" = set; then
2140 enableval=$enable_config; CONFIGURATION=$enableval
2146 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2147 CONFIGFILE=config$CONFIGSUFFIX
2150 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2151 $as_echo_n "checking host system type... " >&6; }
2152 if test "${ac_cv_host+set}" = set; then
2153 $as_echo_n "(cached) " >&6
2155 if test "x$host_alias" = x; then
2156 ac_cv_host=$ac_cv_build
2158 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2159 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 $as_echo "$ac_cv_host" >&6; }
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2171 { (exit 1); exit 1; }; };;
2174 ac_save_IFS=$IFS; IFS='-'
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188 for ac_prog in gmake make
2190 # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_MAKE+set}" = set; then
2195 $as_echo_n "(cached) " >&6
2197 if test -n "$MAKE"; then
2198 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_MAKE="$ac_prog"
2208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 MAKE=$ac_cv_prog_MAKE
2218 if test -n "$MAKE"; then
2219 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2220 $as_echo "$MAKE" >&6; }
2222 { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2227 test -n "$MAKE" && break
2229 test -n "$MAKE" || MAKE="no"
2233 r="`eval echo '$'"MAKE"`"
2234 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2237 ##STEPMAKE_WARN(cannot find . )
2241 if test $? -ne 0; then
2243 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2245 if test "REQUIRED" = "REQUIRED"; then
2246 command="echo ERROR: gmake make not found"
2247 # abort configure process here?
2249 command="- echo gmake make not found"
2251 eval "MAKE"='$command'
2257 if test $? -eq 0 -a -n ""; then
2259 r="`eval echo '$'"MAKE"`"
2260 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2261 $as_echo_n "checking $r version... " >&6; }
2263 ## which doesn't work in ash, if /usr/bin/which isn't installed
2264 ## type -p doesn't work in ash
2265 ## command -v doesn't work in zsh
2266 ## command -v "$r" 2>&1
2267 ## this test should work in ash, bash, pdksh (ksh), zsh
2268 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2274 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2277 ## Workaround for broken Debian gcc version string:
2278 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2280 ## -V: Workaround for python
2284 ## Assume and hunt for dotted version multiplet.
2285 ## use eval trickery, because we cannot use multi-level $() instead of ``
2286 ## for compatibility reasons.
2288 ## grab the first version number in --version output.
2289 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2290 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2293 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2294 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2297 if test -z "$_ver"; then
2298 ## If empty, try date [fontforge]
2299 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2301 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2308 echo "$ver" | awk -F. '
2310 if ($3) {three = $3}
2313 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2318 if ($3) {three = $3}
2321 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2323 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2324 $as_echo "$ver" >&6; }
2325 if test "$num" -lt "$req"; then
2327 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2330 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2331 eval `echo $vervar=$num`
2332 ## AC_SUBST(`eval echo $vervar`)
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_FIND+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2346 if test -n "$FIND"; then
2347 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_FIND="$ac_prog"
2357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 FIND=$ac_cv_prog_FIND
2367 if test -n "$FIND"; then
2368 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2369 $as_echo "$FIND" >&6; }
2371 { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2376 test -n "$FIND" && break
2378 test -n "$FIND" || FIND="no"
2382 r="`eval echo '$'"FIND"`"
2383 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2386 ##STEPMAKE_WARN(cannot find . )
2390 if test $? -ne 0; then
2392 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2394 if test "REQUIRED" = "REQUIRED"; then
2395 command="echo ERROR: find not found"
2396 # abort configure process here?
2398 command="- echo find not found"
2400 eval "FIND"='$command'
2406 if test $? -eq 0 -a -n ""; then
2408 r="`eval echo '$'"FIND"`"
2409 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2410 $as_echo_n "checking $r version... " >&6; }
2412 ## which doesn't work in ash, if /usr/bin/which isn't installed
2413 ## type -p doesn't work in ash
2414 ## command -v doesn't work in zsh
2415 ## command -v "$r" 2>&1
2416 ## this test should work in ash, bash, pdksh (ksh), zsh
2417 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2423 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2426 ## Workaround for broken Debian gcc version string:
2427 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2429 ## -V: Workaround for python
2433 ## Assume and hunt for dotted version multiplet.
2434 ## use eval trickery, because we cannot use multi-level $() instead of ``
2435 ## for compatibility reasons.
2437 ## grab the first version number in --version output.
2438 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2439 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2442 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2443 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2446 if test -z "$_ver"; then
2447 ## If empty, try date [fontforge]
2448 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2450 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2457 echo "$ver" | awk -F. '
2459 if ($3) {three = $3}
2462 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2467 if ($3) {three = $3}
2470 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2472 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2473 $as_echo "$ver" >&6; }
2474 if test "$num" -lt "$req"; then
2476 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2479 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2480 eval `echo $vervar=$num`
2481 ## AC_SUBST(`eval echo $vervar`)
2489 # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if test "${ac_cv_prog_TAR+set}" = set; then
2494 $as_echo_n "(cached) " >&6
2496 if test -n "$TAR"; then
2497 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_TAR="$ac_prog"
2507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$TAR"; then
2518 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2519 $as_echo "$TAR" >&6; }
2521 { $as_echo "$as_me:$LINENO: result: no" >&5
2522 $as_echo "no" >&6; }
2526 test -n "$TAR" && break
2528 test -n "$TAR" || TAR="no"
2532 r="`eval echo '$'"TAR"`"
2533 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2536 ##STEPMAKE_WARN(cannot find . )
2540 if test $? -ne 0; then
2542 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2544 if test "REQUIRED" = "REQUIRED"; then
2545 command="echo ERROR: tar not found"
2546 # abort configure process here?
2548 command="- echo tar not found"
2550 eval "TAR"='$command'
2556 if test $? -eq 0 -a -n ""; then
2558 r="`eval echo '$'"TAR"`"
2559 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2560 $as_echo_n "checking $r version... " >&6; }
2562 ## which doesn't work in ash, if /usr/bin/which isn't installed
2563 ## type -p doesn't work in ash
2564 ## command -v doesn't work in zsh
2565 ## command -v "$r" 2>&1
2566 ## this test should work in ash, bash, pdksh (ksh), zsh
2567 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2573 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2576 ## Workaround for broken Debian gcc version string:
2577 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2579 ## -V: Workaround for python
2583 ## Assume and hunt for dotted version multiplet.
2584 ## use eval trickery, because we cannot use multi-level $() instead of ``
2585 ## for compatibility reasons.
2587 ## grab the first version number in --version output.
2588 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2589 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2592 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2593 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2596 if test -z "$_ver"; then
2597 ## If empty, try date [fontforge]
2598 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2600 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2607 echo "$ver" | awk -F. '
2609 if ($3) {three = $3}
2612 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2617 if ($3) {three = $3}
2620 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2622 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2623 $as_echo "$ver" >&6; }
2624 if test "$num" -lt "$req"; then
2626 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2629 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2630 eval `echo $vervar=$num`
2631 ## AC_SUBST(`eval echo $vervar`)
2636 if test "$(echo 2)" != "2" ||
2637 test "x`uname`" = "xHP-UX"; then
2638 # Extract the first word of "ksh", so it can be a program name with args.
2639 set dummy ksh; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_path_KSH+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2647 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2670 if test -n "$KSH"; then
2671 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2672 $as_echo "$KSH" >&6; }
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2679 # Extract the first word of "bash", so it can be a program name with args.
2680 set dummy bash; ac_word=$2
2681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_path_BASH+set}" = set; then
2684 $as_echo_n "(cached) " >&6
2688 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2710 BASH=$ac_cv_path_BASH
2711 if test -n "$BASH"; then
2712 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2713 $as_echo "$BASH" >&6; }
2715 { $as_echo "$as_me:$LINENO: result: no" >&5
2716 $as_echo "no" >&6; }
2721 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2722 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2725 # Extract the first word of "bash", so it can be a program name with args.
2726 set dummy bash; ac_word=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_path_SHELL+set}" = set; then
2730 $as_echo_n "(cached) " >&6
2734 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2756 SHELL=$ac_cv_path_SHELL
2757 if test -n "$SHELL"; then
2758 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2759 $as_echo "$SHELL" >&6; }
2761 { $as_echo "$as_me:$LINENO: result: no" >&5
2762 $as_echo "no" >&6; }
2768 # Extract the first word of "bash", so it can be a program name with args.
2769 set dummy bash; ac_word=$2
2770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_path_BASH+set}" = set; then
2773 $as_echo_n "(cached) " >&6
2777 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2799 BASH=$ac_cv_path_BASH
2800 if test -n "$BASH"; then
2801 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2802 $as_echo "$BASH" >&6; }
2804 { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2814 { $as_echo "$as_me:$LINENO: checking for python" >&5
2815 $as_echo_n "checking for python... " >&6; }
2816 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2817 { $as_echo "$as_me:$LINENO: result: $python" >&5
2818 $as_echo "$python" >&6; }
2819 if ! $python -V > /dev/null 2>&1 ; then
2820 #AC_MSG_WARN([cannot execute $python])
2821 PYTHON='echo no python'
2825 r="`eval echo '$'"python"`"
2826 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2827 $as_echo_n "checking $r version... " >&6; }
2829 ## which doesn't work in ash, if /usr/bin/which isn't installed
2830 ## type -p doesn't work in ash
2831 ## command -v doesn't work in zsh
2832 ## command -v "$r" 2>&1
2833 ## this test should work in ash, bash, pdksh (ksh), zsh
2834 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2840 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2843 ## Workaround for broken Debian gcc version string:
2844 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2846 ## -V: Workaround for python
2850 ## Assume and hunt for dotted version multiplet.
2851 ## use eval trickery, because we cannot use multi-level $() instead of ``
2852 ## for compatibility reasons.
2854 ## grab the first version number in --version output.
2855 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2856 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2859 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2860 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2863 if test -z "$_ver"; then
2864 ## If empty, try date [fontforge]
2865 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2867 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2874 echo "$ver" | awk -F. '
2876 if ($3) {three = $3}
2879 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2882 echo "1.5" | awk -F. '
2884 if ($3) {three = $3}
2887 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2889 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2890 $as_echo "$ver" >&6; }
2891 if test "$num" -lt "$req"; then
2893 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2896 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2897 eval `echo $vervar=$num`
2898 ## AC_SUBST(`eval echo $vervar`)
2900 if test -z "$pv"; then
2906 if test -n "$pv"; then
2908 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2911 # clear cached value since arg 2 might point us to a new binary
2912 unset ac_cv_path_PYTHON
2914 # Extract the first word of "$PYTHON", so it can be a program name with args.
2915 set dummy $PYTHON; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_path_PYTHON+set}" = set; then
2919 $as_echo_n "(cached) " >&6
2923 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 PYTHON=$ac_cv_path_PYTHON
2945 if test -n "$PYTHON"; then
2946 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2947 $as_echo "$PYTHON" >&6; }
2949 { $as_echo "$as_me:$LINENO: result: no" >&5
2950 $as_echo "no" >&6; }
2957 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2958 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2959 if test "$?" = 1; then
2960 warn='make (Please install *GNU* make)'
2961 # STEPMAKE_WARN($warn)
2963 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2980 cat >>confdefs.h <<_ACEOF
2981 #define DIRSEP '${DIRSEP}'
2984 cat >>confdefs.h <<_ACEOF
2985 #define PATHSEP '${PATHSEP}'
2993 if test "$datadir" = "\${prefix}/share"; then
2994 datadir='${prefix}/share'
2997 if test "$prefix" = "NONE"; then
2998 presome=${ac_default_prefix}
3001 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3003 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
3004 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3005 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3010 cat >>confdefs.h <<_ACEOF
3011 #define DATADIR "${DATADIR}"
3014 cat >>confdefs.h <<_ACEOF
3015 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3021 if test "$libdir" = "\${exec_prefix}/lib"; then
3022 libdir='${exec_prefix}/lib'
3024 presome=$exec_prefix
3025 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3027 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3028 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3032 cat >>confdefs.h <<_ACEOF
3033 #define LIBDIR "${LIBDIR}"
3036 cat >>confdefs.h <<_ACEOF
3037 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3043 # List a file that identifies your package.
3046 # Move to aclocal.m4?
3047 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3050 # Uncomment the configuration options your package needs.
3053 # Check whether --enable-documentation was given.
3054 if test "${enable_documentation+set}" = set; then
3055 enableval=$enable_documentation; DOCUMENTATION=$enableval
3061 # Check whether --with-ncsb-dir was given.
3062 if test "${with_ncsb_dir+set}" = set; then
3063 withval=$with_ncsb_dir; NCSB_DIR=$withval
3070 # Check whether --enable-relocation was given.
3071 if test "${enable_relocation+set}" = set; then
3072 enableval=$enable_relocation; reloc_b=$enableval
3077 # Check whether --enable-rpath was given.
3078 if test "${enable_rpath+set}" = set; then
3079 enableval=$enable_rpath; rpath_b=$enableval
3083 LINK_GXX_STATICALLY=no
3084 # Check whether --enable-static-gxx was given.
3085 if test "${enable_static_gxx+set}" = set; then
3086 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3091 # must come before any header checks
3093 # -O is necessary to get inlining
3095 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3096 LDFLAGS=${LDFLAGS-""}
3102 # Check whether --enable-debugging was given.
3103 if test "${enable_debugging+set}" = set; then
3104 enableval=$enable_debugging; debug_b=$enableval
3108 # Check whether --enable-optimising was given.
3109 if test "${enable_optimising+set}" = set; then
3110 enableval=$enable_optimising; optimise_b=$enableval
3114 # Check whether --enable-profiling was given.
3115 if test "${enable_profiling+set}" = set; then
3116 enableval=$enable_profiling; profile_b=$enableval
3120 # Check whether --enable-pipe was given.
3121 if test "${enable_pipe+set}" = set; then
3122 enableval=$enable_pipe; pipe_b=$enableval
3126 if test "$optimise_b" = yes; then
3127 cat >>confdefs.h <<\_ACEOF
3131 DEFINES="$DEFINES -DNDEBUG"
3132 OPTIMIZE=" -O2 -finline-functions"
3135 if test $profile_b = yes; then
3137 OPTIMIZE="$OPTIMIZE -pg"
3140 if test $debug_b = yes; then
3141 OPTIMIZE="$OPTIMIZE -g"
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="gcc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected=yes
3306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy $ac_cv_prog_CC
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3332 { $as_echo "$as_me:$LINENO: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3374 { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3382 if test -z "$CC"; then
3384 for ac_prog in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="$ac_prog"
3404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3418 { $as_echo "$as_me:$LINENO: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3426 if test "x$ac_ct_CC" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&5
3446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }; }
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3454 { (ac_try="$ac_compiler --version >&5"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461 (eval "$ac_compiler --version >&5") 2>&5
3463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }
3465 { (ac_try="$ac_compiler -v >&5"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_compiler -v >&5") 2>&5
3474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 { (ac_try="$ac_compiler -V >&5"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compiler -V >&5") 2>&5
3485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516 for ac_file in $ac_files
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3525 if { (ac_try="$ac_link_default"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532 (eval "$ac_link_default") 2>&5
3534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; then
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3541 for ac_file in $ac_files ''
3543 test -f "$ac_file" || continue
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 # We found the default executable, but exeext='' is most
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 $as_echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584 { (exit 77); exit 77; }; }; }
3587 ac_exeext=$ac_cv_exeext
3589 # Check that the compiler produces executables we can run. If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596 if { ac_try='./$ac_file'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_try") 2>&5
3605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3609 if test "$cross_compiling" = maybe; then
3612 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 $as_echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }; }
3624 { $as_echo "$as_me:$LINENO: result: yes" >&5
3625 $as_echo "yes" >&6; }
3627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { (ac_try="$ac_link"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645 (eval "$ac_link") 2>&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; then
3649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 for ac_file in conftest.exe conftest conftest.*; do
3654 test -f "$ac_file" || continue
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." >&2;}
3669 { (exit 1); exit 1; }; }; }
3672 rm -f conftest$ac_cv_exeext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3699 rm -f conftest.o conftest.obj
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 for ac_file in conftest.o conftest.obj conftest.*; do
3712 test -f "$ac_file" || continue;
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&5
3727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&2;}
3729 { (exit 1); exit 1; }; }; }
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769 (eval "$ac_compile") 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3805 ac_save_c_werror_flag=$ac_c_werror_flag
3806 ac_c_werror_flag=yes
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_c_werror_flag=$ac_save_c_werror_flag
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 ac_c_werror_flag=$ac_save_c_werror_flag
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 $as_echo "$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941 CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943 if test "$GCC" = yes; then
3949 if test "$GCC" = yes; then
3955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3960 ac_cv_prog_cc_c89=no
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3986 s = g (p, va_arg (v,int));
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3992 function prototypes and stuff, but not '\xHH' hex character constants.
3993 These don't provoke an error unfortunately, instead are silently treated
3994 as 'x'. The following induces an error, until -std is added to get
3995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3996 array size at least. It's necessary to write '\x00'==0 to get something
3997 that's true only with -std. */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001 inside strings and character constants. */
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 CC="$ac_save_CC $ac_arg"
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030 $as_echo "$ac_try_echo") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4041 ac_cv_prog_cc_c89=$ac_arg
4043 $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c89" != "xno" && break
4052 rm -f conftest.$ac_ext
4057 case "x$ac_cv_prog_cc_c89" in
4059 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4062 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4065 CC="$CC $ac_cv_prog_cc_c89"
4066 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 r="`eval echo '$'"CC"`"
4085 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4088 ##STEPMAKE_WARN(cannot find . )
4092 if test $? -ne 0; then
4094 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4096 if test "" = "REQUIRED"; then
4097 command="echo ERROR: cc not found"
4098 # abort configure process here?
4100 command="- echo cc not found"
4102 eval "CC"='$command'
4111 # If -pipe requested, test if it works and add to CFLAGS.
4112 if test "$pipe_b" = yes; then
4113 save_cflags="$CFLAGS"
4114 CFLAGS=" -pipe $CFLAGS";
4115 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4116 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4117 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4118 $as_echo_n "(cached) " >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.$ac_objext; then
4154 stepmake_cv_cflags_pipe=yes
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 stepmake_cv_cflags_pipe=no
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4165 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4167 if test $stepmake_cv_cflags_pipe = yes; then
4168 OPTIMIZE="$OPTIMIZE -pipe"
4172 CFLAGS="$CFLAGS $OPTIMIZE"
4173 CPPFLAGS=${CPPFLAGS-""}
4175 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4176 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4177 save_cflags="$CFLAGS"
4180 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4181 $as_echo "-mieee" >&6; }
4182 CFLAGS=" -mieee $CFLAGS"
4185 { $as_echo "$as_me:$LINENO: result: none" >&5
4186 $as_echo "none" >&6; }
4198 # Extract the first word of "fc-list", so it can be a program name with args.
4199 set dummy fc-list; ac_word=$2
4200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_FCLIST+set}" = set; then
4203 $as_echo_n "(cached) " >&6
4205 if test -n "$FCLIST"; then
4206 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_FCLIST="fc-list"
4216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 FCLIST=$ac_cv_prog_FCLIST
4226 if test -n "$FCLIST"; then
4227 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4228 $as_echo "$FCLIST" >&6; }
4230 { $as_echo "$as_me:$LINENO: result: no" >&5
4231 $as_echo "no" >&6; }
4235 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4236 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4239 UNCHECKED_NCSB_SOURCE_FILES=""
4240 if test "$NCSB_DIR" != "" ; then
4241 for f in c059013l c059016l c059033l c059036l; do
4242 if test ! -f "$NCSB_DIR/$f.pfb"; then
4244 { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4245 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4249 UNCHECKED_NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $UNCHECKED_NCSB_SOURCE_FILES"
4253 if test "$FCLIST" != ""; then
4254 for style in Roman Italic "Bold Italic" Bold; do
4255 NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4257 NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
4258 NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4259 UNCHECKED_NCSB_SOURCE_FILES="$NCSB_FILE $UNCHECKED_NCSB_SOURCE_FILES"
4261 NCSB_DIR=`$as_dirname -- $NCSB_FILE ||
4262 $as_expr X$NCSB_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4263 X$NCSB_FILE : 'X\(//\)[^/]' \| \
4264 X$NCSB_FILE : 'X\(//\)$' \| \
4265 X$NCSB_FILE : 'X\(/\)' \| . 2>/dev/null ||
4266 $as_echo X$NCSB_FILE |
4267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4285 { $as_echo "$as_me:$LINENO: result: not found" >&5
4286 $as_echo "not found" >&6; }
4287 echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4288 echo "or use --with-ncsb-dir"
4291 NCSB_SOURCE_FILES=""
4292 for f in $UNCHECKED_NCSB_SOURCE_FILES; do
4293 if test "`grep Cyrillic "$f"`" = ""; then
4295 { $as_echo "$as_me:$LINENO: WARNING: $f does not have Cyrillic characters." >&5
4296 $as_echo "$as_me: WARNING: $f does not have Cyrillic characters." >&2;}
4300 NCSB_SOURCE_FILES="$f $NCSB_SOURCE_FILES"
4303 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4304 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4315 { $as_echo "$as_me:$LINENO: checking for python" >&5
4316 $as_echo_n "checking for python... " >&6; }
4317 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4318 { $as_echo "$as_me:$LINENO: result: $python" >&5
4319 $as_echo "$python" >&6; }
4320 if ! $python -V > /dev/null 2>&1 ; then
4321 #AC_MSG_WARN([cannot execute $python])
4322 PYTHON='echo no python'
4326 r="`eval echo '$'"python"`"
4327 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4328 $as_echo_n "checking $r version... " >&6; }
4330 ## which doesn't work in ash, if /usr/bin/which isn't installed
4331 ## type -p doesn't work in ash
4332 ## command -v doesn't work in zsh
4333 ## command -v "$r" 2>&1
4334 ## this test should work in ash, bash, pdksh (ksh), zsh
4335 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4341 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4344 ## Workaround for broken Debian gcc version string:
4345 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4347 ## -V: Workaround for python
4351 ## Assume and hunt for dotted version multiplet.
4352 ## use eval trickery, because we cannot use multi-level $() instead of ``
4353 ## for compatibility reasons.
4355 ## grab the first version number in --version output.
4356 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4357 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4360 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4361 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4364 if test -z "$_ver"; then
4365 ## If empty, try date [fontforge]
4366 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4368 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4375 echo "$ver" | awk -F. '
4377 if ($3) {three = $3}
4380 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4383 echo "2.4" | awk -F. '
4385 if ($3) {three = $3}
4388 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4390 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4391 $as_echo "$ver" >&6; }
4392 if test "$num" -lt "$req"; then
4394 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4397 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4398 eval `echo $vervar=$num`
4399 ## AC_SUBST(`eval echo $vervar`)
4401 if test -z "$pv"; then
4407 if test -n "$pv"; then
4409 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4412 # clear cached value since arg 2 might point us to a new binary
4413 unset ac_cv_path_PYTHON
4415 # Extract the first word of "$PYTHON", so it can be a program name with args.
4416 set dummy $PYTHON; ac_word=$2
4417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_path_PYTHON+set}" = set; then
4420 $as_echo_n "(cached) " >&6
4424 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 PYTHON=$ac_cv_path_PYTHON
4446 if test -n "$PYTHON"; then
4447 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4448 $as_echo "$PYTHON" >&6; }
4450 { $as_echo "$as_me:$LINENO: result: no" >&5
4451 $as_echo "no" >&6; }
4457 # this checks if we have GNU C by compiling a program with
4458 # __GNUC__, but that macro now unofficially means "the compiler
4459 # supports the GNU C extensions" -- the intel C compiler and clang
4460 # both support __GNUC__!
4462 ac_cpp='$CXXCPP $CPPFLAGS'
4463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4466 if test -z "$CXX"; then
4467 if test -n "$CCC"; then
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_CXX+set}" = set; then
4478 $as_echo_n "(cached) " >&6
4480 if test -n "$CXX"; then
4481 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 if test -n "$CXX"; then
4502 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4503 $as_echo "$CXX" >&6; }
4505 { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4510 test -n "$CXX" && break
4513 if test -z "$CXX"; then
4515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4524 if test -n "$ac_ct_CXX"; then
4525 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_ac_ct_CXX="$ac_prog"
4535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4545 if test -n "$ac_ct_CXX"; then
4546 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4547 $as_echo "$ac_ct_CXX" >&6; }
4549 { $as_echo "$as_me:$LINENO: result: no" >&5
4550 $as_echo "no" >&6; }
4554 test -n "$ac_ct_CXX" && break
4557 if test "x$ac_ct_CXX" = x; then
4560 case $cross_compiling:$ac_tool_warned in
4562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4572 # Provide some information about the compiler.
4573 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4576 { (ac_try="$ac_compiler --version >&5"
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582 $as_echo "$ac_try_echo") >&5
4583 (eval "$ac_compiler --version >&5") 2>&5
4585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }
4587 { (ac_try="$ac_compiler -v >&5"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4593 $as_echo "$ac_try_echo") >&5
4594 (eval "$ac_compiler -v >&5") 2>&5
4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }
4598 { (ac_try="$ac_compiler -V >&5"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605 (eval "$ac_compiler -V >&5") 2>&5
4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }
4610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4612 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4613 $as_echo_n "(cached) " >&6
4615 cat >conftest.$ac_ext <<_ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4633 rm -f conftest.$ac_objext
4634 if { (ac_try="$ac_compile"
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641 (eval "$ac_compile") 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && {
4648 test -z "$ac_cxx_werror_flag" ||
4649 test ! -s conftest.err
4650 } && test -s conftest.$ac_objext; then
4653 $as_echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4696 rm -f conftest.$ac_objext
4697 if { (ac_try="$ac_compile"
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704 (eval "$ac_compile") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && {
4711 test -z "$ac_cxx_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest.$ac_objext; then
4714 ac_cv_prog_cxx_g=yes
4716 $as_echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_cxx_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4755 $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4760 cat >conftest.$ac_ext <<_ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_cxx_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793 ac_cv_prog_cxx_g=yes
4795 $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4810 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4811 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4812 if test "$ac_test_CXXFLAGS" = set; then
4813 CXXFLAGS=$ac_save_CXXFLAGS
4814 elif test $ac_cv_prog_cxx_g = yes; then
4815 if test "$GXX" = yes; then
4821 if test "$GXX" = yes; then
4828 ac_cpp='$CXXCPP $CPPFLAGS'
4829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 ac_cpp='$CXXCPP $CPPFLAGS'
4836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4840 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4841 if test -z "$CXXCPP"; then
4842 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4843 $as_echo_n "(cached) " >&6
4845 # Double quotes because CXXCPP needs to be expanded
4846 for CXXCPP in "$CXX -E" "/lib/cpp"
4849 for ac_cxx_preproc_warn_flag in '' yes
4851 # Use a header file that comes with gcc, so configuring glibc
4852 # with a fresh cross-compiler works.
4853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854 # <limits.h> exists even on freestanding compilers.
4855 # On the NeXT, cc -E runs the code through the compiler's parser,
4856 # not just through cpp. "Syntax error" is here to catch this case.
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4864 # include <limits.h>
4866 # include <assert.h>
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876 $as_echo "$ac_try_echo") >&5
4877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 grep -v '^ *+' conftest.er1 >conftest.err
4881 cat conftest.err >&5
4882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null && {
4884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4885 test ! -s conftest.err
4889 $as_echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 # Broken: fails on valid input.
4896 rm -f conftest.err conftest.$ac_ext
4898 # OK, works on sane cases. Now check whether nonexistent headers
4899 # can be detected and how.
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 #include <ac_nonexistent.h>
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914 $as_echo "$ac_try_echo") >&5
4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null && {
4922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4923 test ! -s conftest.err
4925 # Broken: success on invalid input.
4928 $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 # Passes both tests.
4936 rm -f conftest.err conftest.$ac_ext
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.err conftest.$ac_ext
4941 if $ac_preproc_ok; then
4946 ac_cv_prog_CXXCPP=$CXXCPP
4949 CXXCPP=$ac_cv_prog_CXXCPP
4951 ac_cv_prog_CXXCPP=$CXXCPP
4953 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4954 $as_echo "$CXXCPP" >&6; }
4956 for ac_cxx_preproc_warn_flag in '' yes
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
4962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4971 # include <limits.h>
4973 # include <assert.h>
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null && {
4991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4992 test ! -s conftest.err
4996 $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 # Broken: fails on valid input.
5003 rm -f conftest.err conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null && {
5029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5030 test ! -s conftest.err
5032 # Broken: success on invalid input.
5035 $as_echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 # Passes both tests.
5043 rm -f conftest.err conftest.$ac_ext
5046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047 rm -f conftest.err conftest.$ac_ext
5048 if $ac_preproc_ok; then
5051 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5054 See \`config.log' for more details." >&5
5055 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5056 See \`config.log' for more details." >&2;}
5057 { (exit 1); exit 1; }; }; }
5061 ac_cpp='$CXXCPP $CPPFLAGS'
5062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5067 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5069 if test "${ac_cv_path_GREP+set}" = set; then
5070 $as_echo_n "(cached) " >&6
5072 if test -z "$GREP"; then
5073 ac_path_GREP_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079 test -z "$as_dir" && as_dir=.
5080 for ac_prog in grep ggrep; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5083 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5084 # Check for GNU ac_path_GREP and select it if it is found.
5085 # Check for GNU $ac_path_GREP
5086 case `"$ac_path_GREP" --version 2>&1` in
5088 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5091 $as_echo_n 0123456789 >"conftest.in"
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 $as_echo 'GREP' >> "conftest.nl"
5098 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100 ac_count=`expr $ac_count + 1`
5101 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_GREP="$ac_path_GREP"
5104 ac_path_GREP_max=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112 $ac_path_GREP_found && break 3
5117 if test -z "$ac_cv_path_GREP"; then
5118 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5119 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5120 { (exit 1); exit 1; }; }
5123 ac_cv_path_GREP=$GREP
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5128 $as_echo "$ac_cv_path_GREP" >&6; }
5129 GREP="$ac_cv_path_GREP"
5132 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5133 $as_echo_n "checking for egrep... " >&6; }
5134 if test "${ac_cv_path_EGREP+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5137 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5138 then ac_cv_path_EGREP="$GREP -E"
5140 if test -z "$EGREP"; then
5141 ac_path_EGREP_found=false
5142 # Loop through the user's path and test for each of PROGNAME-LIST
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5147 test -z "$as_dir" && as_dir=.
5148 for ac_prog in egrep; do
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5151 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5152 # Check for GNU ac_path_EGREP and select it if it is found.
5153 # Check for GNU $ac_path_EGREP
5154 case `"$ac_path_EGREP" --version 2>&1` in
5156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5159 $as_echo_n 0123456789 >"conftest.in"
5162 cat "conftest.in" "conftest.in" >"conftest.tmp"
5163 mv "conftest.tmp" "conftest.in"
5164 cp "conftest.in" "conftest.nl"
5165 $as_echo 'EGREP' >> "conftest.nl"
5166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168 ac_count=`expr $ac_count + 1`
5169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5170 # Best one so far, save it but keep looking for a better one
5171 ac_cv_path_EGREP="$ac_path_EGREP"
5172 ac_path_EGREP_max=$ac_count
5174 # 10*(2^10) chars as input seems more than enough
5175 test $ac_count -gt 10 && break
5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5180 $ac_path_EGREP_found && break 3
5185 if test -z "$ac_cv_path_EGREP"; then
5186 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5187 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5188 { (exit 1); exit 1; }; }
5191 ac_cv_path_EGREP=$EGREP
5196 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5197 $as_echo "$ac_cv_path_EGREP" >&6; }
5198 EGREP="$ac_cv_path_EGREP"
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215 $EGREP "yes" >/dev/null 2>&1; then
5223 if test "$HAS_CLANG" = "no"; then
5224 if test "$GCC" = "yes"; then
5226 r="`eval echo '$'"CC"`"
5227 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5228 $as_echo_n "checking $r version... " >&6; }
5230 ## which doesn't work in ash, if /usr/bin/which isn't installed
5231 ## type -p doesn't work in ash
5232 ## command -v doesn't work in zsh
5233 ## command -v "$r" 2>&1
5234 ## this test should work in ash, bash, pdksh (ksh), zsh
5235 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5241 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5244 ## Workaround for broken Debian gcc version string:
5245 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5247 ## -V: Workaround for python
5251 ## Assume and hunt for dotted version multiplet.
5252 ## use eval trickery, because we cannot use multi-level $() instead of ``
5253 ## for compatibility reasons.
5255 ## grab the first version number in --version output.
5256 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5257 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5260 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5261 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5264 if test -z "$_ver"; then
5265 ## If empty, try date [fontforge]
5266 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5268 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5275 echo "$ver" | awk -F. '
5277 if ($3) {three = $3}
5280 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5283 echo "3.4" | awk -F. '
5285 if ($3) {three = $3}
5288 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5290 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5291 $as_echo "$ver" >&6; }
5292 if test "$num" -lt "$req"; then
5294 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5297 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5298 eval `echo $vervar=$num`
5299 ## AC_SUBST(`eval echo $vervar`)
5302 warn="$CC (Please install *GNU* cc)"
5304 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5308 # no else, we're fine with any clang
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317 if test -z "$CXX"; then
5318 if test -n "$CCC"; then
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_CXX+set}" = set; then
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$CXX"; then
5332 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 if test -n "$CXX"; then
5353 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5354 $as_echo "$CXX" >&6; }
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5361 test -n "$CXX" && break
5364 if test -z "$CXX"; then
5366 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$ac_ct_CXX"; then
5376 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_ac_ct_CXX="$ac_prog"
5386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5396 if test -n "$ac_ct_CXX"; then
5397 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5398 $as_echo "$ac_ct_CXX" >&6; }
5400 { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5405 test -n "$ac_ct_CXX" && break
5408 if test "x$ac_ct_CXX" = x; then
5411 case $cross_compiling:$ac_tool_warned in
5413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5423 # Provide some information about the compiler.
5424 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5427 { (ac_try="$ac_compiler --version >&5"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433 $as_echo "$ac_try_echo") >&5
5434 (eval "$ac_compiler --version >&5") 2>&5
5436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }
5438 { (ac_try="$ac_compiler -v >&5"
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444 $as_echo "$ac_try_echo") >&5
5445 (eval "$ac_compiler -v >&5") 2>&5
5447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }
5449 { (ac_try="$ac_compiler -V >&5"
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455 $as_echo "$ac_try_echo") >&5
5456 (eval "$ac_compiler -V >&5") 2>&5
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }
5461 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5463 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_cxx_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5515 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5516 if test $ac_compiler_gnu = yes; then
5521 ac_test_CXXFLAGS=${CXXFLAGS+set}
5522 ac_save_CXXFLAGS=$CXXFLAGS
5523 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5525 if test "${ac_cv_prog_cxx_g+set}" = set; then
5526 $as_echo_n "(cached) " >&6
5528 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529 ac_cxx_werror_flag=yes
5532 cat >conftest.$ac_ext <<_ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555 (eval "$ac_compile") 2>conftest.er1
5557 grep -v '^ *+' conftest.er1 >conftest.err
5559 cat conftest.err >&5
5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_cxx_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest.$ac_objext; then
5565 ac_cv_prog_cxx_g=yes
5567 $as_echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_cxx_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_cxx_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_prog_cxx_g=yes
5646 $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5661 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5662 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5663 if test "$ac_test_CXXFLAGS" = set; then
5664 CXXFLAGS=$ac_save_CXXFLAGS
5665 elif test $ac_cv_prog_cxx_g = yes; then
5666 if test "$GXX" = yes; then
5672 if test "$GXX" = yes; then
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5686 r="`eval echo '$'"CXX"`"
5687 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5690 ##STEPMAKE_WARN(cannot find . )
5694 if test $? -ne 0; then
5696 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5698 if test "REQUIRED" = "REQUIRED"; then
5699 command="echo ERROR: c++ not found"
5700 # abort configure process here?
5702 command="- echo c++ not found"
5704 eval "CXX"='$command'
5711 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5732 $EGREP "yes" >/dev/null 2>&1; then
5740 if test "$HAS_CLANG" = "no"; then
5741 if test "$GXX" = "yes"; then
5743 r="`eval echo '$'"CXX"`"
5744 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5745 $as_echo_n "checking $r version... " >&6; }
5747 ## which doesn't work in ash, if /usr/bin/which isn't installed
5748 ## type -p doesn't work in ash
5749 ## command -v doesn't work in zsh
5750 ## command -v "$r" 2>&1
5751 ## this test should work in ash, bash, pdksh (ksh), zsh
5752 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5758 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5761 ## Workaround for broken Debian gcc version string:
5762 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5764 ## -V: Workaround for python
5768 ## Assume and hunt for dotted version multiplet.
5769 ## use eval trickery, because we cannot use multi-level $() instead of ``
5770 ## for compatibility reasons.
5772 ## grab the first version number in --version output.
5773 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5774 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5777 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5778 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5781 if test -z "$_ver"; then
5782 ## If empty, try date [fontforge]
5783 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5785 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5792 echo "$ver" | awk -F. '
5794 if ($3) {three = $3}
5797 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5800 echo "3.4" | awk -F. '
5802 if ($3) {three = $3}
5805 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5807 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5808 $as_echo "$ver" >&6; }
5809 if test "$num" -lt "$req"; then
5811 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5814 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5815 eval `echo $vervar=$num`
5816 ## AC_SUBST(`eval echo $vervar`)
5819 warn="$CXX (Please install *GNU* c++)"
5821 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5825 # no else, we're fine with any clang
5828 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5829 $as_echo_n "checking options for known g++ bugs... " >&6; }
5830 case "$GXX:$CXX_VERSION" in
5832 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5833 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5834 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5837 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5838 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5839 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5841 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5842 $as_echo "none" >&6; }
5847 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5848 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5849 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5859 template <class T> struct foo { static int baz; };
5860 template <class T> int foo<T>::baz = 1;
5865 return foo<int>::baz;
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878 (eval "$ac_link") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest$ac_exeext && {
5888 test "$cross_compiling" = yes ||
5889 $as_test_x conftest$ac_exeext
5891 stepmake_cv_need_explicit_instantiation=no
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 stepmake_cv_need_explicit_instantiation=yes
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901 conftest$ac_exeext conftest.$ac_ext
5903 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5904 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5905 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5906 cat >>confdefs.h <<\_ACEOF
5907 #define NEED_EXPLICIT_INSTANTIATION 1
5913 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5914 $as_echo_n "checking for stl.data () method... " >&6; }
5915 if test "${stepmake_cv_stl_data_method+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5926 using namespace std;
5928 void *p = v.data ();
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 stepmake_cv_stl_data_method=yes
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 stepmake_cv_stl_data_method=no
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5967 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5968 if test $stepmake_cv_stl_data_method = yes; then
5970 cat >>confdefs.h <<\_ACEOF
5971 #define HAVE_STL_DATA_METHOD 1
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_AR+set}" = set; then
5985 $as_echo_n "(cached) " >&6
5987 if test -n "$AR"; then
5988 ac_cv_prog_AR="$AR" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_AR="$ac_prog"
5998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 if test -n "$AR"; then
6009 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6010 $as_echo "$AR" >&6; }
6012 { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6017 test -n "$AR" && break
6019 test -n "$AR" || AR="no"
6023 r="`eval echo '$'"AR"`"
6024 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6027 ##STEPMAKE_WARN(cannot find . )
6031 if test $? -ne 0; then
6033 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6035 if test "REQUIRED" = "REQUIRED"; then
6036 command="echo ERROR: ar not found"
6037 # abort configure process here?
6039 command="- echo ar not found"
6041 eval "AR"='$command'
6047 if test $? -eq 0 -a -n ""; then
6049 r="`eval echo '$'"AR"`"
6050 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6051 $as_echo_n "checking $r version... " >&6; }
6053 ## which doesn't work in ash, if /usr/bin/which isn't installed
6054 ## type -p doesn't work in ash
6055 ## command -v doesn't work in zsh
6056 ## command -v "$r" 2>&1
6057 ## this test should work in ash, bash, pdksh (ksh), zsh
6058 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6064 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6067 ## Workaround for broken Debian gcc version string:
6068 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6070 ## -V: Workaround for python
6074 ## Assume and hunt for dotted version multiplet.
6075 ## use eval trickery, because we cannot use multi-level $() instead of ``
6076 ## for compatibility reasons.
6078 ## grab the first version number in --version output.
6079 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6080 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6083 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6084 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6087 if test -z "$_ver"; then
6088 ## If empty, try date [fontforge]
6089 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6091 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6098 echo "$ver" | awk -F. '
6100 if ($3) {three = $3}
6103 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6108 if ($3) {three = $3}
6111 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6113 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6114 $as_echo "$ver" >&6; }
6115 if test "$num" -lt "$req"; then
6117 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6120 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6121 eval `echo $vervar=$num`
6122 ## AC_SUBST(`eval echo $vervar`)
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$RANLIB"; then
6135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 $as_echo "$RANLIB" >&6; }
6159 { $as_echo "$as_me:$LINENO: result: no" >&5
6160 $as_echo "no" >&6; }
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_RANLIB="ranlib"
6185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197 $as_echo "$ac_ct_RANLIB" >&6; }
6199 { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6203 if test "x$ac_ct_RANLIB" = x; then
6206 case $cross_compiling:$ac_tool_warned in
6208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6212 RANLIB=$ac_ct_RANLIB
6215 RANLIB="$ac_cv_prog_RANLIB"
6220 r="`eval echo '$'"RANLIB"`"
6221 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6224 ##STEPMAKE_WARN(cannot find . )
6228 if test $? -ne 0; then
6230 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6232 if test "REQUIRED" = "REQUIRED"; then
6233 command="echo ERROR: ranlib not found"
6234 # abort configure process here?
6236 command="- echo ranlib not found"
6238 eval "RANLIB"='$command'
6247 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6252 ac_check_lib_save_LIBS=$LIBS
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_link") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_cxx_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest$ac_exeext && {
6294 test "$cross_compiling" = yes ||
6295 $as_test_x conftest$ac_exeext
6297 ac_cv_lib_dl_dlopen=yes
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_cv_lib_dl_dlopen=no
6305 rm -rf conftest.dSYM
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307 conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_check_lib_save_LIBS
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6313 cat >>confdefs.h <<_ACEOF
6314 #define HAVE_LIBDL 1
6322 for ac_func in dlopen
6324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 $as_echo_n "checking for $ac_func... " >&6; }
6327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6328 $as_echo_n "(cached) " >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6338 #define $ac_func innocuous_$ac_func
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func (); below.
6342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 <limits.h> exists even on freestanding compilers. */
6346 # include <limits.h>
6348 # include <assert.h>
6353 /* Override any GCC internal prototype to avoid an error.
6354 Use char because int might match the return type of a GCC
6355 builtin and then its argument prototype would still apply. */
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined __stub_$ac_func || defined __stub___$ac_func
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_link") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_cxx_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext && {
6393 test "$cross_compiling" = yes ||
6394 $as_test_x conftest$ac_exeext
6396 eval "$as_ac_var=yes"
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 eval "$as_ac_var=no"
6404 rm -rf conftest.dSYM
6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406 conftest$ac_exeext conftest.$ac_ext
6408 ac_res=`eval 'as_val=${'$as_ac_var'}
6409 $as_echo "$as_val"'`
6410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6411 $as_echo "$ac_res" >&6; }
6412 as_val=`eval 'as_val=${'$as_ac_var'}
6413 $as_echo "$as_val"'`
6414 if test "x$as_val" = x""yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6423 # Do not use bison 1.50 and 1.75.
6424 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6426 # ugh, automake: we want (and check for) bison
6427 for ac_prog in 'bison -y' byacc
6429 # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_YACC+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$YACC"; then
6437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_YACC="$ac_prog"
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 YACC=$ac_cv_prog_YACC
6457 if test -n "$YACC"; then
6458 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6459 $as_echo "$YACC" >&6; }
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6466 test -n "$YACC" && break
6468 test -n "$YACC" || YACC="yacc"
6472 for ac_prog in bison
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_BISON+set}" = set; then
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$BISON"; then
6482 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_BISON="$ac_prog"
6492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 BISON=$ac_cv_prog_BISON
6502 if test -n "$BISON"; then
6503 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6504 $as_echo "$BISON" >&6; }
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6511 test -n "$BISON" && break
6513 test -n "$BISON" || BISON="no"
6517 r="`eval echo '$'"BISON"`"
6518 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6521 ##STEPMAKE_WARN(cannot find . )
6525 if test $? -ne 0; then
6527 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
6529 if test "OPTIONAL" = "REQUIRED"; then
6530 command="echo ERROR: bison not found"
6531 # abort configure process here?
6533 command="- echo bison not found"
6535 eval "BISON"='$command'
6541 if test $? -eq 0 -a -n ""; then
6543 r="`eval echo '$'"BISON"`"
6544 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6545 $as_echo_n "checking $r version... " >&6; }
6547 ## which doesn't work in ash, if /usr/bin/which isn't installed
6548 ## type -p doesn't work in ash
6549 ## command -v doesn't work in zsh
6550 ## command -v "$r" 2>&1
6551 ## this test should work in ash, bash, pdksh (ksh), zsh
6552 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6558 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6561 ## Workaround for broken Debian gcc version string:
6562 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6564 ## -V: Workaround for python
6568 ## Assume and hunt for dotted version multiplet.
6569 ## use eval trickery, because we cannot use multi-level $() instead of ``
6570 ## for compatibility reasons.
6572 ## grab the first version number in --version output.
6573 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6574 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6577 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6578 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6581 if test -z "$_ver"; then
6582 ## If empty, try date [fontforge]
6583 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6585 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6592 echo "$ver" | awk -F. '
6594 if ($3) {three = $3}
6597 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6602 if ($3) {three = $3}
6605 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6607 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6608 $as_echo "$ver" >&6; }
6609 if test "$num" -lt "$req"; then
6611 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
6614 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6615 eval `echo $vervar=$num`
6616 ## AC_SUBST(`eval echo $vervar`)
6621 # urg. should test functionality rather than version.
6622 if test "$BISON" = "bison" -a -n "1.29"; then
6624 r="`eval echo '$'"BISON"`"
6625 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6626 $as_echo_n "checking $r version... " >&6; }
6628 ## which doesn't work in ash, if /usr/bin/which isn't installed
6629 ## type -p doesn't work in ash
6630 ## command -v doesn't work in zsh
6631 ## command -v "$r" 2>&1
6632 ## this test should work in ash, bash, pdksh (ksh), zsh
6633 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6639 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6642 ## Workaround for broken Debian gcc version string:
6643 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6645 ## -V: Workaround for python
6649 ## Assume and hunt for dotted version multiplet.
6650 ## use eval trickery, because we cannot use multi-level $() instead of ``
6651 ## for compatibility reasons.
6653 ## grab the first version number in --version output.
6654 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6655 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6658 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6659 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6662 if test -z "$_ver"; then
6663 ## If empty, try date [fontforge]
6664 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6666 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6673 echo "$ver" | awk -F. '
6675 if ($3) {three = $3}
6678 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6681 echo "1.29" | awk -F. '
6683 if ($3) {three = $3}
6686 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6688 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6689 $as_echo "$ver" >&6; }
6690 if test "$num" -lt "$req"; then
6692 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
6695 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6696 eval `echo $vervar=$num`
6697 ## AC_SUBST(`eval echo $vervar`)
6702 # ugh, automake: we want (and check for) flex
6704 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6708 ac_cv_prog_lex_root=lex.yy
6712 # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_FLEX+set}" = set; then
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$FLEX"; then
6720 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_FLEX="$ac_prog"
6730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 FLEX=$ac_cv_prog_FLEX
6740 if test -n "$FLEX"; then
6741 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6742 $as_echo "$FLEX" >&6; }
6744 { $as_echo "$as_me:$LINENO: result: no" >&5
6745 $as_echo "no" >&6; }
6749 test -n "$FLEX" && break
6751 test -n "$FLEX" || FLEX="no"
6755 r="`eval echo '$'"FLEX"`"
6756 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6759 ##STEPMAKE_WARN(cannot find . )
6763 if test $? -ne 0; then
6765 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6767 if test "REQUIRED" = "REQUIRED"; then
6768 command="echo ERROR: flex not found"
6769 # abort configure process here?
6771 command="- echo flex not found"
6773 eval "FLEX"='$command'
6779 if test $? -eq 0 -a -n ""; then
6781 r="`eval echo '$'"FLEX"`"
6782 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6783 $as_echo_n "checking $r version... " >&6; }
6785 ## which doesn't work in ash, if /usr/bin/which isn't installed
6786 ## type -p doesn't work in ash
6787 ## command -v doesn't work in zsh
6788 ## command -v "$r" 2>&1
6789 ## this test should work in ash, bash, pdksh (ksh), zsh
6790 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6796 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6799 ## Workaround for broken Debian gcc version string:
6800 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6802 ## -V: Workaround for python
6806 ## Assume and hunt for dotted version multiplet.
6807 ## use eval trickery, because we cannot use multi-level $() instead of ``
6808 ## for compatibility reasons.
6810 ## grab the first version number in --version output.
6811 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6812 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6815 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6816 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6819 if test -z "$_ver"; then
6820 ## If empty, try date [fontforge]
6821 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6823 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6830 echo "$ver" | awk -F. '
6832 if ($3) {three = $3}
6835 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6840 if ($3) {three = $3}
6843 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6845 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6846 $as_echo "$ver" >&6; }
6847 if test "$num" -lt "$req"; then
6849 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6852 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6853 eval `echo $vervar=$num`
6854 ## AC_SUBST(`eval echo $vervar`)
6859 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6860 $as_echo_n "checking for ANSI C header files... " >&6; }
6861 if test "${ac_cv_header_stdc+set}" = set; then
6862 $as_echo_n "(cached) " >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_cxx_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 ac_cv_header_stdc=yes
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_header_stdc=no
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 if test $ac_cv_header_stdc = yes; then
6912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923 $EGREP "memchr" >/dev/null 2>&1; then
6926 ac_cv_header_stdc=no
6932 if test $ac_cv_header_stdc = yes; then
6933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6934 cat >conftest.$ac_ext <<_ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944 $EGREP "free" >/dev/null 2>&1; then
6947 ac_cv_header_stdc=no
6953 if test $ac_cv_header_stdc = yes; then
6954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6955 if test "$cross_compiling" = yes; then
6958 cat >conftest.$ac_ext <<_ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6966 #if ((' ' & 0x0FF) == 0x020)
6967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6970 # define ISLOWER(c) \
6971 (('a' <= (c) && (c) <= 'i') \
6972 || ('j' <= (c) && (c) <= 'r') \
6973 || ('s' <= (c) && (c) <= 'z'))
6974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6982 for (i = 0; i < 256; i++)
6983 if (XOR (islower (i), ISLOWER (i))
6984 || toupper (i) != TOUPPER (i))
6989 rm -f conftest$ac_exeext
6990 if { (ac_try="$ac_link"
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_link") 2>&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001 { (case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007 (eval "$ac_try") 2>&5
7009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7013 $as_echo "$as_me: program exited with status $ac_status" >&5
7014 $as_echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7018 ac_cv_header_stdc=no
7020 rm -rf conftest.dSYM
7021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7028 $as_echo "$ac_cv_header_stdc" >&6; }
7029 if test $ac_cv_header_stdc = yes; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define STDC_HEADERS 1
7037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7048 inttypes.h stdint.h unistd.h
7050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 $as_echo_n "checking for $ac_header... " >&6; }
7053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7054 $as_echo_n "(cached) " >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7064 #include <$ac_header>
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_cxx_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 eval "$as_ac_Header=yes"
7086 $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 eval "$as_ac_Header=no"
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 ac_res=`eval 'as_val=${'$as_ac_Header'}
7095 $as_echo "$as_val"'`
7096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7097 $as_echo "$ac_res" >&6; }
7098 as_val=`eval 'as_val=${'$as_ac_Header'}
7099 $as_echo "$as_val"'`
7100 if test "x$as_val" = x""yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112 for ac_header in FlexLexer.h
7114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 $as_echo_n "checking for $ac_header... " >&6; }
7118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7119 $as_echo_n "(cached) " >&6
7121 ac_res=`eval 'as_val=${'$as_ac_Header'}
7122 $as_echo "$as_val"'`
7123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7124 $as_echo "$ac_res" >&6; }
7126 # Is the header compilable?
7127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7128 $as_echo_n "checking $ac_header usability... " >&6; }
7129 cat >conftest.$ac_ext <<_ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7136 #include <$ac_header>
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7148 grep -v '^ *+' conftest.er1 >conftest.err
7150 cat conftest.err >&5
7151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_cxx_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_header_compiler=yes
7158 $as_echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_header_compiler=no
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 $as_echo "$ac_header_compiler" >&6; }
7168 # Is the header present?
7169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 $as_echo_n "checking $ac_header presence... " >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <$ac_header>
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } >/dev/null && {
7193 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7194 test ! -s conftest.err
7196 ac_header_preproc=yes
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 ac_header_preproc=no
7204 rm -f conftest.err conftest.$ac_ext
7205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7206 $as_echo "$ac_header_preproc" >&6; }
7208 # So? What about this header?
7209 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7215 ac_header_preproc=yes
7218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7234 $as_echo_n "checking for $ac_header... " >&6; }
7235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7236 $as_echo_n "(cached) " >&6
7238 eval "$as_ac_Header=\$ac_header_preproc"
7240 ac_res=`eval 'as_val=${'$as_ac_Header'}
7241 $as_echo "$as_val"'`
7242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7243 $as_echo "$ac_res" >&6; }
7246 as_val=`eval 'as_val=${'$as_ac_Header'}
7247 $as_echo "$as_val"'`
7248 if test "x$as_val" = x""yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259 if test $? -ne 0; then
7260 warn='FlexLexer.h (flex package)'
7262 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7265 # check for yyFlexLexer.yy_current_buffer,
7266 # in 2.5.4 <= flex < 2.5.29
7267 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7268 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7269 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7270 $as_echo_n "(cached) " >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7279 using namespace std;
7280 #include <FlexLexer.h>
7281 class yy_flex_lexer: public yyFlexLexer
7286 yy_current_buffer = 0;
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7308 grep -v '^ *+' conftest.er1 >conftest.err
7310 cat conftest.err >&5
7311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_cxx_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7316 stepmake_cv_flexlexer_yy_current_buffer=yes
7318 $as_echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 stepmake_cv_flexlexer_yy_current_buffer=no
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7327 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7328 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7337 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7338 $as_echo_n "checking FlexLexer.h location... " >&6; }
7341 cat <<EOF > conftest.cc
7342 using namespace std;
7343 #include <FlexLexer.h>
7345 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7346 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7347 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7350 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7351 $as_echo "$FLEXLEXER_FILE" >&6; }
7359 # Check whether --with-localedir was given.
7360 if test "${with_localedir+set}" = set; then
7361 withval=$with_localedir; localedir=$with_localedir
7363 localedir='${prefix}/share/locale'
7368 # Check whether --with-lang was given.
7369 if test "${with_lang+set}" = set; then
7370 withval=$with_lang; language=$with_lang
7376 { $as_echo "$as_me:$LINENO: checking language" >&5
7377 $as_echo_n "checking language... " >&6; }
7379 En* | en* | Am* | am* | US* | us*)
7381 NL | nl | Du* | du* | Ned* | ned*)
7388 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7389 $as_echo "$lang" >&6; }
7391 if test "$lang" = "unknown" ; then
7393 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7394 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7402 if test "$prefix" = "NONE"; then
7403 presome=${ac_default_prefix}
7405 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7408 cat >>confdefs.h <<_ACEOF
7409 #define LOCALEDIR "${LOCALEDIR}"
7413 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7414 $as_echo_n "checking for gettext in -lintl... " >&6; }
7415 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7416 $as_echo_n "(cached) " >&6
7418 ac_check_lib_save_LIBS=$LIBS
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any GCC internal prototype to avoid an error.
7428 Use char because int might match the return type of a GCC
7429 builtin and then its argument prototype would still apply. */
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450 (eval "$ac_link") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1 >conftest.err
7454 cat conftest.err >&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_cxx_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest$ac_exeext && {
7460 test "$cross_compiling" = yes ||
7461 $as_test_x conftest$ac_exeext
7463 ac_cv_lib_intl_gettext=yes
7465 $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_cv_lib_intl_gettext=no
7471 rm -rf conftest.dSYM
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7473 conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7477 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7478 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_LIBINTL 1
7488 for ac_func in gettext
7490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7492 $as_echo_n "checking for $ac_func... " >&6; }
7493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7494 $as_echo_n "(cached) " >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7504 #define $ac_func innocuous_$ac_func
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func (); below.
7508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509 <limits.h> exists even on freestanding compilers. */
7512 # include <limits.h>
7514 # include <assert.h>
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined __stub_$ac_func || defined __stub___$ac_func
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548 $as_echo "$ac_try_echo") >&5
7549 (eval "$ac_link") 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_cxx_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest$ac_exeext && {
7559 test "$cross_compiling" = yes ||
7560 $as_test_x conftest$ac_exeext
7562 eval "$as_ac_var=yes"
7564 $as_echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 eval "$as_ac_var=no"
7570 rm -rf conftest.dSYM
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572 conftest$ac_exeext conftest.$ac_ext
7574 ac_res=`eval 'as_val=${'$as_ac_var'}
7575 $as_echo "$as_val"'`
7576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7577 $as_echo "$ac_res" >&6; }
7578 as_val=`eval 'as_val=${'$as_ac_var'}
7579 $as_echo "$as_val"'`
7580 if test "x$as_val" = x""yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7591 for ac_prog in msgfmt
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$MSGFMT"; then
7601 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_MSGFMT="$ac_prog"
7611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 MSGFMT=$ac_cv_prog_MSGFMT
7621 if test -n "$MSGFMT"; then
7622 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7623 $as_echo "$MSGFMT" >&6; }
7625 { $as_echo "$as_me:$LINENO: result: no" >&5
7626 $as_echo "no" >&6; }
7630 test -n "$MSGFMT" && break
7632 test -n "$MSGFMT" || MSGFMT="no"
7636 r="`eval echo '$'"MSGFMT"`"
7637 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7640 ##STEPMAKE_WARN(cannot find . )
7644 if test $? -ne 0; then
7646 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7648 if test "REQUIRED" = "REQUIRED"; then
7649 command="echo ERROR: msgfmt not found"
7650 # abort configure process here?
7652 command="- echo msgfmt not found"
7654 eval "MSGFMT"='$command'
7660 if test $? -eq 0 -a -n ""; then
7662 r="`eval echo '$'"MSGFMT"`"
7663 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7664 $as_echo_n "checking $r version... " >&6; }
7666 ## which doesn't work in ash, if /usr/bin/which isn't installed
7667 ## type -p doesn't work in ash
7668 ## command -v doesn't work in zsh
7669 ## command -v "$r" 2>&1
7670 ## this test should work in ash, bash, pdksh (ksh), zsh
7671 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7677 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7680 ## Workaround for broken Debian gcc version string:
7681 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7683 ## -V: Workaround for python
7687 ## Assume and hunt for dotted version multiplet.
7688 ## use eval trickery, because we cannot use multi-level $() instead of ``
7689 ## for compatibility reasons.
7691 ## grab the first version number in --version output.
7692 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7693 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7696 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7697 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7700 if test -z "$_ver"; then
7701 ## If empty, try date [fontforge]
7702 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7704 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7711 echo "$ver" | awk -F. '
7713 if ($3) {three = $3}
7716 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7721 if ($3) {three = $3}
7724 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7726 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7727 $as_echo "$ver" >&6; }
7728 if test "$num" -lt "$req"; then
7730 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7733 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7734 eval `echo $vervar=$num`
7735 ## AC_SUBST(`eval echo $vervar`)
7742 for ac_prog in mf-nowin mf mfw mfont
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_METAFONT+set}" = set; then
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$METAFONT"; then
7752 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_METAFONT="$ac_prog"
7762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 METAFONT=$ac_cv_prog_METAFONT
7772 if test -n "$METAFONT"; then
7773 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7774 $as_echo "$METAFONT" >&6; }
7776 { $as_echo "$as_me:$LINENO: result: no" >&5
7777 $as_echo "no" >&6; }
7781 test -n "$METAFONT" && break
7783 test -n "$METAFONT" || METAFONT="no"
7787 r="`eval echo '$'"METAFONT"`"
7788 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7791 ##STEPMAKE_WARN(cannot find . )
7795 if test $? -ne 0; then
7797 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7799 if test "REQUIRED" = "REQUIRED"; then
7800 command="echo ERROR: mf-nowin mf mfw mfont not found"
7801 # abort configure process here?
7803 command="- echo mf-nowin mf mfw mfont not found"
7805 eval "METAFONT"='$command'
7811 if test $? -eq 0 -a -n ""; then
7813 r="`eval echo '$'"METAFONT"`"
7814 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7815 $as_echo_n "checking $r version... " >&6; }
7817 ## which doesn't work in ash, if /usr/bin/which isn't installed
7818 ## type -p doesn't work in ash
7819 ## command -v doesn't work in zsh
7820 ## command -v "$r" 2>&1
7821 ## this test should work in ash, bash, pdksh (ksh), zsh
7822 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7828 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7831 ## Workaround for broken Debian gcc version string:
7832 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7834 ## -V: Workaround for python
7838 ## Assume and hunt for dotted version multiplet.
7839 ## use eval trickery, because we cannot use multi-level $() instead of ``
7840 ## for compatibility reasons.
7842 ## grab the first version number in --version output.
7843 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7844 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7847 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7848 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7851 if test -z "$_ver"; then
7852 ## If empty, try date [fontforge]
7853 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7855 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7862 echo "$ver" | awk -F. '
7864 if ($3) {three = $3}
7867 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7872 if ($3) {three = $3}
7875 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7877 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7878 $as_echo "$ver" >&6; }
7879 if test "$num" -lt "$req"; then
7881 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7884 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7885 eval `echo $vervar=$num`
7886 ## AC_SUBST(`eval echo $vervar`)
7891 for ac_prog in mpost
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_METAPOST+set}" = set; then
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$METAPOST"; then
7901 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_METAPOST="$ac_prog"
7911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 METAPOST=$ac_cv_prog_METAPOST
7921 if test -n "$METAPOST"; then
7922 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7923 $as_echo "$METAPOST" >&6; }
7925 { $as_echo "$as_me:$LINENO: result: no" >&5
7926 $as_echo "no" >&6; }
7930 test -n "$METAPOST" && break
7932 test -n "$METAPOST" || METAPOST="no"
7936 r="`eval echo '$'"METAPOST"`"
7937 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7940 ##STEPMAKE_WARN(cannot find . )
7944 if test $? -ne 0; then
7946 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7948 if test "REQUIRED" = "REQUIRED"; then
7949 command="echo ERROR: mpost not found"
7950 # abort configure process here?
7952 command="- echo mpost not found"
7954 eval "METAPOST"='$command'
7960 if test $? -eq 0 -a -n ""; then
7962 r="`eval echo '$'"METAPOST"`"
7963 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7964 $as_echo_n "checking $r version... " >&6; }
7966 ## which doesn't work in ash, if /usr/bin/which isn't installed
7967 ## type -p doesn't work in ash
7968 ## command -v doesn't work in zsh
7969 ## command -v "$r" 2>&1
7970 ## this test should work in ash, bash, pdksh (ksh), zsh
7971 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7977 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7980 ## Workaround for broken Debian gcc version string:
7981 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7983 ## -V: Workaround for python
7987 ## Assume and hunt for dotted version multiplet.
7988 ## use eval trickery, because we cannot use multi-level $() instead of ``
7989 ## for compatibility reasons.
7991 ## grab the first version number in --version output.
7992 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7993 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7996 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7997 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8000 if test -z "$_ver"; then
8001 ## If empty, try date [fontforge]
8002 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8004 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8011 echo "$ver" | awk -F. '
8013 if ($3) {three = $3}
8016 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8021 if ($3) {three = $3}
8024 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8026 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8027 $as_echo "$ver" >&6; }
8028 if test "$num" -lt "$req"; then
8030 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8033 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8034 eval `echo $vervar=$num`
8035 ## AC_SUBST(`eval echo $vervar`)
8040 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8041 $as_echo_n "checking for working metafont mode... " >&6; }
8042 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8043 for MFMODE in $modelist; do
8044 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8045 if test -f mfput.tfm; then
8049 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8050 $as_echo "$MFMODE" >&6; }
8059 for ac_prog in kpsewhich
8061 # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8066 $as_echo_n "(cached) " >&6
8068 if test -n "$KPSEWHICH"; then
8069 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_KPSEWHICH="$ac_prog"
8079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8089 if test -n "$KPSEWHICH"; then
8090 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8091 $as_echo "$KPSEWHICH" >&6; }
8093 { $as_echo "$as_me:$LINENO: result: no" >&5
8094 $as_echo "no" >&6; }
8098 test -n "$KPSEWHICH" && break
8100 test -n "$KPSEWHICH" || KPSEWHICH="no"
8104 r="`eval echo '$'"KPSEWHICH"`"
8105 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8108 ##STEPMAKE_WARN(cannot find . )
8112 if test $? -ne 0; then
8114 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
8116 if test "OPTIONAL" = "REQUIRED"; then
8117 command="echo ERROR: kpsewhich not found"
8118 # abort configure process here?
8120 command="- echo kpsewhich not found"
8122 eval "KPSEWHICH"='$command'
8128 if test $? -eq 0 -a -n ""; then
8130 r="`eval echo '$'"KPSEWHICH"`"
8131 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8132 $as_echo_n "checking $r version... " >&6; }
8134 ## which doesn't work in ash, if /usr/bin/which isn't installed
8135 ## type -p doesn't work in ash
8136 ## command -v doesn't work in zsh
8137 ## command -v "$r" 2>&1
8138 ## this test should work in ash, bash, pdksh (ksh), zsh
8139 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8145 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8148 ## Workaround for broken Debian gcc version string:
8149 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8151 ## -V: Workaround for python
8155 ## Assume and hunt for dotted version multiplet.
8156 ## use eval trickery, because we cannot use multi-level $() instead of ``
8157 ## for compatibility reasons.
8159 ## grab the first version number in --version output.
8160 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8161 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8164 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8165 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8168 if test -z "$_ver"; then
8169 ## If empty, try date [fontforge]
8170 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8172 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8179 echo "$ver" | awk -F. '
8181 if ($3) {three = $3}
8184 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8189 if ($3) {three = $3}
8192 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8194 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8195 $as_echo "$ver" >&6; }
8196 if test "$num" -lt "$req"; then
8198 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
8201 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8202 eval `echo $vervar=$num`
8203 ## AC_SUBST(`eval echo $vervar`)
8209 ## First, let's just see if we can find Guile at all.
8210 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8211 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8212 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8213 $as_echo_n "checking for guile-config... " >&6; }
8214 for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile1-config; do
8215 { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
8216 $as_echo "$guile_config" >&6; }
8217 if ! $guile_config --version > /dev/null 2>&1 ; then
8218 { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
8219 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
8220 { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
8221 $as_echo_n "checking if we are cross compiling... " >&6; }
8222 GUILE_CONFIG='echo no guile-config'
8224 GUILE_CONFIG=$guile_config
8230 r="`eval echo '$'"GUILE_CONFIG"`"
8231 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8234 ##STEPMAKE_WARN(cannot find . )
8238 if test $? -ne 0; then
8240 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
8242 if test "REQUIRED" = "REQUIRED"; then
8243 command="echo ERROR: $guile_config not found"
8244 # abort configure process here?
8246 command="- echo $guile_config not found"
8248 eval "GUILE_CONFIG"='$command'
8254 if test $? -ne 0; then
8256 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)'\"`\"
8261 r="`eval echo '$'"GUILE_CONFIG"`"
8262 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8265 ##STEPMAKE_WARN(cannot find . )
8269 # urg. should test functionality rather than version.
8270 if test $? -eq 0 -a -n "1.8.2"; then
8272 r="`eval echo '$'"GUILE_CONFIG"`"
8273 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8274 $as_echo_n "checking $r version... " >&6; }
8276 ## which doesn't work in ash, if /usr/bin/which isn't installed
8277 ## type -p doesn't work in ash
8278 ## command -v doesn't work in zsh
8279 ## command -v "$r" 2>&1
8280 ## this test should work in ash, bash, pdksh (ksh), zsh
8281 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8287 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8290 ## Workaround for broken Debian gcc version string:
8291 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8293 ## -V: Workaround for python
8297 ## Assume and hunt for dotted version multiplet.
8298 ## use eval trickery, because we cannot use multi-level $() instead of ``
8299 ## for compatibility reasons.
8301 ## grab the first version number in --version output.
8302 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8303 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8306 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8307 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8310 if test -z "$_ver"; then
8311 ## If empty, try date [fontforge]
8312 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8314 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8321 echo "$ver" | awk -F. '
8323 if ($3) {three = $3}
8326 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8329 echo "1.8.2" | awk -F. '
8331 if ($3) {three = $3}
8334 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8336 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8337 $as_echo "$ver" >&6; }
8338 if test "$num" -lt "$req"; then
8340 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.2 (installed: $ver)"\"`\"
8343 vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
8344 eval `echo $vervar=$num`
8345 ## AC_SUBST(`eval echo $vervar`)
8351 guile_version="$ver"
8353 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8354 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8355 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8359 ## which doesn't work in ash, if /usr/bin/which isn't installed
8360 ## type -p doesn't work in ash
8361 ## command -v doesn't work in zsh
8362 ## command -v "$guile_config" 2>&1
8363 ## this test should work in ash, bash, pdksh (ksh), zsh
8364 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8366 if test -x $exe; then
8367 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8368 $as_echo_n "checking guile compile flags... " >&6; }
8369 GUILE_CFLAGS="`$guile_config compile`"
8370 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8371 $as_echo "$GUILE_CFLAGS" >&6; }
8372 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8373 $as_echo_n "checking guile link flags... " >&6; }
8374 GUILE_LDFLAGS="`$guile_config link`"
8375 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8376 $as_echo "$GUILE_LDFLAGS" >&6; }
8381 save_CPPFLAGS="$CPPFLAGS"
8383 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8384 LIBS="$GUILE_LDFLAGS $LIBS"
8386 for ac_header in libguile.h
8388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 $as_echo_n "checking for $ac_header... " >&6; }
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393 $as_echo_n "(cached) " >&6
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396 $as_echo "$as_val"'`
8397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8400 # Is the header compilable?
8401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8402 $as_echo_n "checking $ac_header usability... " >&6; }
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 #include <$ac_header>
8412 rm -f conftest.$ac_objext
8413 if { (ac_try="$ac_compile"
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_cxx_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_header_compiler=yes
8432 $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_header_compiler=no
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8440 $as_echo "$ac_header_compiler" >&6; }
8442 # Is the header present?
8443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8444 $as_echo_n "checking $ac_header presence... " >&6; }
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 #include <$ac_header>
8453 if { (ac_try="$ac_cpp conftest.$ac_ext"
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459 $as_echo "$ac_try_echo") >&5
8460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } >/dev/null && {
8467 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8468 test ! -s conftest.err
8470 ac_header_preproc=yes
8472 $as_echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_preproc=no
8478 rm -f conftest.err conftest.$ac_ext
8479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 $as_echo "$ac_header_preproc" >&6; }
8482 # So? What about this header?
8483 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489 ac_header_preproc=yes
8492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8495 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8499 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 $as_echo_n "checking for $ac_header... " >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 $as_echo_n "(cached) " >&6
8512 eval "$as_ac_Header=\$ac_header_preproc"
8514 ac_res=`eval 'as_val=${'$as_ac_Header'}
8515 $as_echo "$as_val"'`
8516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8517 $as_echo "$ac_res" >&6; }
8520 as_val=`eval 'as_val=${'$as_ac_Header'}
8521 $as_echo "$as_val"'`
8522 if test "x$as_val" = x""yes; then
8523 cat >>confdefs.h <<_ACEOF
8524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8532 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8533 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8534 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8535 $as_echo_n "(cached) " >&6
8537 ac_check_lib_save_LIBS=$LIBS
8538 LIBS="-lguile $LIBS"
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8552 char scm_boot_guile ();
8556 return scm_boot_guile ();
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_link") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_cxx_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest$ac_exeext && {
8579 test "$cross_compiling" = yes ||
8580 $as_test_x conftest$ac_exeext
8582 ac_cv_lib_guile_scm_boot_guile=yes
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_lib_guile_scm_boot_guile=no
8590 rm -rf conftest.dSYM
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8596 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8597 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_LIBGUILE 1
8602 LIBS="-lguile $LIBS"
8607 for ac_func in scm_boot_guile
8609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 $as_echo_n "checking for $ac_func... " >&6; }
8612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8613 $as_echo_n "(cached) " >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8623 #define $ac_func innocuous_$ac_func
8625 /* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char $ac_func (); below.
8627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628 <limits.h> exists even on freestanding compilers. */
8631 # include <limits.h>
8633 # include <assert.h>
8638 /* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined __stub_$ac_func || defined __stub___$ac_func
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_link") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_cxx_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest$ac_exeext && {
8678 test "$cross_compiling" = yes ||
8679 $as_test_x conftest$ac_exeext
8681 eval "$as_ac_var=yes"
8683 $as_echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 eval "$as_ac_var=no"
8689 rm -rf conftest.dSYM
8690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8691 conftest$ac_exeext conftest.$ac_ext
8693 ac_res=`eval 'as_val=${'$as_ac_var'}
8694 $as_echo "$as_val"'`
8695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8696 $as_echo "$ac_res" >&6; }
8697 as_val=`eval 'as_val=${'$as_ac_var'}
8698 $as_echo "$as_val"'`
8699 if test "x$as_val" = x""yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8709 if test "$libguile_b" = "no"; then
8710 warn='libguile (libguile-dev, guile-devel or guile-dev
8713 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8716 CPPFLAGS="$save_CPPFLAGS"
8718 cat >>confdefs.h <<_ACEOF
8719 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8722 cat >>confdefs.h <<_ACEOF
8723 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8726 cat >>confdefs.h <<_ACEOF
8727 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8732 # check for 3 typedefs added in Guile 1.9
8733 save_CXXFLAGS="$CXXFLAGS"
8734 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8735 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8736 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8737 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8738 $as_echo_n "(cached) " >&6
8740 ac_cv_type_scm_t_hash_fold_fn=no
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 #include <libguile.h>
8752 if (sizeof (scm_t_hash_fold_fn))
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_cxx_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 #include <libguile.h>
8787 if (sizeof ((scm_t_hash_fold_fn)))
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_cxx_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
8813 $as_echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_cv_type_scm_t_hash_fold_fn=yes
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8830 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8831 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_SCM_T_HASH_FOLD_FN 1
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_GUILE_HASH_FUNC 1
8842 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8843 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8844 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 ac_cv_type_scm_t_hash_handle_fn=no
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <libguile.h>
8859 if (sizeof (scm_t_hash_handle_fn))
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_cxx_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.$ac_objext; then
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <libguile.h>
8894 if (sizeof ((scm_t_hash_handle_fn)))
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908 (eval "$ac_compile") 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } && {
8915 test -z "$ac_cxx_werror_flag" ||
8916 test ! -s conftest.err
8917 } && test -s conftest.$ac_objext; then
8920 $as_echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ac_cv_type_scm_t_hash_handle_fn=yes
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8937 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8938 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_GUILE_HASH_FUNC 1
8950 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8951 $as_echo_n "checking for scm_t_subr... " >&6; }
8952 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8953 $as_echo_n "(cached) " >&6
8955 ac_cv_type_scm_t_subr=no
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 #include <libguile.h>
8967 if (sizeof (scm_t_subr))
8973 rm -f conftest.$ac_objext
8974 if { (ac_try="$ac_compile"
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981 (eval "$ac_compile") 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && {
8988 test -z "$ac_cxx_werror_flag" ||
8989 test ! -s conftest.err
8990 } && test -s conftest.$ac_objext; then
8991 cat >conftest.$ac_ext <<_ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 #include <libguile.h>
9002 if (sizeof ((scm_t_subr)))
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016 (eval "$ac_compile") 2>conftest.er1
9018 grep -v '^ *+' conftest.er1 >conftest.err
9020 cat conftest.err >&5
9021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_cxx_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest.$ac_objext; then
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_type_scm_t_subr=yes
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 $as_echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9045 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9046 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_SCM_T_SUBR 1
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_GUILE_SUBR_TYPE 1
9058 CXXFLAGS="$save_CXXFLAGS"
9060 ## Check for usable cxxabi
9062 LIBS="$LIBS $CXXABI_LIBS"
9063 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9064 $as_echo_n "checking for usable C++ demangler... " >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9075 abi::__cxa_demangle ("", 0, 0, 0)
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088 (eval "$ac_link") 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && {
9095 test -z "$ac_cxx_werror_flag" ||
9096 test ! -s conftest.err
9097 } && test -s conftest$ac_exeext && {
9098 test "$cross_compiling" = yes ||
9099 $as_test_x conftest$ac_exeext
9101 cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_CXA_DEMANGLE 1
9105 { $as_echo "$as_me:$LINENO: result: yes" >&5
9106 $as_echo "yes" >&6; }
9108 $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9112 LIBS="$LIBS -lsupc++"
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9123 abi::__cxa_demangle ("", 0, 0, 0)
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9135 $as_echo "$ac_try_echo") >&5
9136 (eval "$ac_link") 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_cxx_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest$ac_exeext && {
9146 test "$cross_compiling" = yes ||
9147 $as_test_x conftest$ac_exeext
9149 cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_CXA_DEMANGLE 1
9153 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9154 $as_echo "yes, using -lsupc++" >&6; }
9155 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9157 $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9161 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9164 rm -rf conftest.dSYM
9165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9166 conftest$ac_exeext conftest.$ac_ext
9169 rm -rf conftest.dSYM
9170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9171 conftest$ac_exeext conftest.$ac_ext
9175 ## check rational bugfix.
9176 save_CPPFLAGS="$CPPFLAGS"
9177 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9178 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9179 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <libguile.h>
9187 #ifdef SCM_FRACTION_REDUCED_BIT
9192 if { (ac_try="$ac_cpp conftest.$ac_ext"
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9198 $as_echo "$ac_try_echo") >&5
9199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9201 grep -v '^ *+' conftest.er1 >conftest.err
9203 cat conftest.err >&5
9204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev/null && {
9206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9207 test ! -s conftest.err
9209 { $as_echo "$as_me:$LINENO: result: ok" >&5
9210 $as_echo "ok" >&6; }
9212 $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9216 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9217 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9220 rm -f conftest.err conftest.$ac_ext
9221 CPPFLAGS="$save_CPPFLAGS"
9226 # Check whether --with-python-include was given.
9227 if test "${with_python_include+set}" = set; then
9228 withval=$with_python_include;
9229 if test "$withval" = "yes" -o "$withval" = "no"; then
9230 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9231 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9233 PYTHON_CFLAGS="-I${withval}"
9240 # Check whether --with-python-lib was given.
9241 if test "${with_python_lib+set}" = set; then
9242 withval=$with_python_lib;
9243 if test "$withval" = "yes" -o "$withval" = "no"; then
9244 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9245 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9247 LDFLAGS="$LDFLAGS -l${withval}"
9253 for ac_prog in python-config
9255 # Extract the first word of "$ac_prog", so it can be a program name with args.
9256 set dummy $ac_prog; ac_word=$2
9257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9262 if test -n "$PYTHON_CONFIG"; then
9263 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9283 if test -n "$PYTHON_CONFIG"; then
9284 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9285 $as_echo "$PYTHON_CONFIG" >&6; }
9287 { $as_echo "$as_me:$LINENO: result: no" >&5
9288 $as_echo "no" >&6; }
9292 test -n "$PYTHON_CONFIG" && break
9294 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
9297 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
9298 # Clean out junk: http://bugs.python.org/issue3290
9299 # Python headers may need some -f* flags, leave them in.
9300 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
9301 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9302 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
9303 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
9304 # 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.
9305 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9306 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
9309 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
9311 # alternatively, for python >= 2.0
9312 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
9313 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
9314 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
9318 if test -z "$PYTHON_HEADER"; then
9319 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
9321 for ac_header in Python.h
9323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9326 $as_echo_n "checking for $ac_header... " >&6; }
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 $as_echo_n "(cached) " >&6
9330 ac_res=`eval 'as_val=${'$as_ac_Header'}
9331 $as_echo "$as_val"'`
9332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9333 $as_echo "$ac_res" >&6; }
9335 # Is the header compilable?
9336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9337 $as_echo_n "checking $ac_header usability... " >&6; }
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9345 #include <$ac_header>
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_cxx_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.$ac_objext; then
9365 ac_header_compiler=yes
9367 $as_echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_header_compiler=no
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 $as_echo "$ac_header_compiler" >&6; }
9377 # Is the header present?
9378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 $as_echo_n "checking $ac_header presence... " >&6; }
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #include <$ac_header>
9388 if { (ac_try="$ac_cpp conftest.$ac_ext"
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev/null && {
9402 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9403 test ! -s conftest.err
9405 ac_header_preproc=yes
9407 $as_echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_header_preproc=no
9413 rm -f conftest.err conftest.$ac_ext
9414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 $as_echo "$ac_header_preproc" >&6; }
9417 # So? What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424 ac_header_preproc=yes
9427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 $as_echo_n "checking for $ac_header... " >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 $as_echo_n "(cached) " >&6
9447 eval "$as_ac_Header=\$ac_header_preproc"
9449 ac_res=`eval 'as_val=${'$as_ac_Header'}
9450 $as_echo "$as_val"'`
9451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9455 as_val=`eval 'as_val=${'$as_ac_Header'}
9456 $as_echo "$as_val"'`
9457 if test "x$as_val" = x""yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 if test -z "$PYTHON_HEADER"; then
9469 warn="Python.h (python-devel, python-dev or libpython-dev package)"
9471 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9479 # Extract the first word of "$ac_prog", so it can be a program name with args.
9480 set dummy $ac_prog; ac_word=$2
9481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9484 $as_echo_n "(cached) " >&6
9486 if test -n "$GHOSTSCRIPT"; then
9487 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
9497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9507 if test -n "$GHOSTSCRIPT"; then
9508 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9509 $as_echo "$GHOSTSCRIPT" >&6; }
9511 { $as_echo "$as_me:$LINENO: result: no" >&5
9512 $as_echo "no" >&6; }
9516 test -n "$GHOSTSCRIPT" && break
9518 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
9522 r="`eval echo '$'"GHOSTSCRIPT"`"
9523 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
9526 ##STEPMAKE_WARN(cannot find . )
9530 if test $? -ne 0; then
9532 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
9534 if test "OPTIONAL" = "REQUIRED"; then
9535 command="echo ERROR: gs not found"
9536 # abort configure process here?
9538 command="- echo gs not found"
9540 eval "GHOSTSCRIPT"='$command'
9546 if test $? -eq 0; then
9549 # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
9554 $as_echo_n "(cached) " >&6
9556 case $GHOSTSCRIPT in
9558 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
9569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
9580 if test -n "$GHOSTSCRIPT"; then
9581 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9582 $as_echo "$GHOSTSCRIPT" >&6; }
9584 { $as_echo "$as_me:$LINENO: result: no" >&5
9585 $as_echo "no" >&6; }
9589 test -n "$GHOSTSCRIPT" && break
9592 if test -n "8.60"; then
9594 r="`eval echo '$'"GHOSTSCRIPT"`"
9595 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9596 $as_echo_n "checking $r version... " >&6; }
9598 ## which doesn't work in ash, if /usr/bin/which isn't installed
9599 ## type -p doesn't work in ash
9600 ## command -v doesn't work in zsh
9601 ## command -v "$r" 2>&1
9602 ## this test should work in ash, bash, pdksh (ksh), zsh
9603 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9609 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9612 ## Workaround for broken Debian gcc version string:
9613 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9615 ## -V: Workaround for python
9619 ## Assume and hunt for dotted version multiplet.
9620 ## use eval trickery, because we cannot use multi-level $() instead of ``
9621 ## for compatibility reasons.
9623 ## grab the first version number in --version output.
9624 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9625 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9628 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9629 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9632 if test -z "$_ver"; then
9633 ## If empty, try date [fontforge]
9634 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9636 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9643 echo "$ver" | awk -F. '
9645 if ($3) {three = $3}
9648 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9651 echo "8.60" | awk -F. '
9653 if ($3) {three = $3}
9656 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9658 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9659 $as_echo "$ver" >&6; }
9660 if test "$num" -lt "$req"; then
9662 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.60 (installed: $ver)"\"`\"
9665 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9666 eval `echo $vervar=$num`
9667 ## AC_SUBST(`eval echo $vervar`)
9674 for ac_prog in fontforge
9676 # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9681 $as_echo_n "(cached) " >&6
9683 if test -n "$FONTFORGE"; then
9684 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_prog_FONTFORGE="$ac_prog"
9694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 FONTFORGE=$ac_cv_prog_FONTFORGE
9704 if test -n "$FONTFORGE"; then
9705 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9706 $as_echo "$FONTFORGE" >&6; }
9708 { $as_echo "$as_me:$LINENO: result: no" >&5
9709 $as_echo "no" >&6; }
9713 test -n "$FONTFORGE" && break
9715 test -n "$FONTFORGE" || FONTFORGE="no"
9719 r="`eval echo '$'"FONTFORGE"`"
9720 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9723 ##STEPMAKE_WARN(cannot find . )
9727 if test $? -ne 0; then
9729 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9731 if test "REQUIRED" = "REQUIRED"; then
9732 command="echo ERROR: fontforge not found"
9733 # abort configure process here?
9735 command="- echo fontforge not found"
9737 eval "FONTFORGE"='$command'
9743 if test $? -eq 0; then
9744 for ac_prog in fontforge
9746 # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9751 $as_echo_n "(cached) " >&6
9755 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 FONTFORGE=$ac_cv_path_FONTFORGE
9777 if test -n "$FONTFORGE"; then
9778 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9779 $as_echo "$FONTFORGE" >&6; }
9781 { $as_echo "$as_me:$LINENO: result: no" >&5
9782 $as_echo "no" >&6; }
9786 test -n "$FONTFORGE" && break
9789 if test -n "20110222"; then
9791 r="`eval echo '$'"FONTFORGE"`"
9792 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9793 $as_echo_n "checking $r version... " >&6; }
9795 ## which doesn't work in ash, if /usr/bin/which isn't installed
9796 ## type -p doesn't work in ash
9797 ## command -v doesn't work in zsh
9798 ## command -v "$r" 2>&1
9799 ## this test should work in ash, bash, pdksh (ksh), zsh
9800 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9806 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9809 ## Workaround for broken Debian gcc version string:
9810 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9812 ## -V: Workaround for python
9816 ## Assume and hunt for dotted version multiplet.
9817 ## use eval trickery, because we cannot use multi-level $() instead of ``
9818 ## for compatibility reasons.
9820 ## grab the first version number in --version output.
9821 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9822 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9825 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9826 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9829 if test -z "$_ver"; then
9830 ## If empty, try date [fontforge]
9831 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9833 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9840 echo "$ver" | awk -F. '
9842 if ($3) {three = $3}
9845 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9848 echo "20110222" | awk -F. '
9850 if ($3) {three = $3}
9853 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9855 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9856 $as_echo "$ver" >&6; }
9857 if test "$num" -lt "$req"; then
9859 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
9862 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9863 eval `echo $vervar=$num`
9864 ## AC_SUBST(`eval echo $vervar`)
9871 for ac_prog in t1asm
9873 # Extract the first word of "$ac_prog", so it can be a program name with args.
9874 set dummy $ac_prog; ac_word=$2
9875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if test "${ac_cv_prog_T1ASM+set}" = set; then
9878 $as_echo_n "(cached) " >&6
9880 if test -n "$T1ASM"; then
9881 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_T1ASM="$ac_prog"
9891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 T1ASM=$ac_cv_prog_T1ASM
9901 if test -n "$T1ASM"; then
9902 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9903 $as_echo "$T1ASM" >&6; }
9905 { $as_echo "$as_me:$LINENO: result: no" >&5
9906 $as_echo "no" >&6; }
9910 test -n "$T1ASM" && break
9912 test -n "$T1ASM" || T1ASM="no"
9916 r="`eval echo '$'"T1ASM"`"
9917 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9920 ##STEPMAKE_WARN(cannot find . )
9924 if test $? -ne 0; then
9926 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9928 if test "REQUIRED" = "REQUIRED"; then
9929 command="echo ERROR: t1asm not found"
9930 # abort configure process here?
9932 command="- echo t1asm not found"
9934 eval "T1ASM"='$command'
9940 if test $? -eq 0; then
9941 for ac_prog in t1asm
9943 # Extract the first word of "$ac_prog", so it can be a program name with args.
9944 set dummy $ac_prog; ac_word=$2
9945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if test "${ac_cv_path_T1ASM+set}" = set; then
9948 $as_echo_n "(cached) " >&6
9952 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9962 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 T1ASM=$ac_cv_path_T1ASM
9974 if test -n "$T1ASM"; then
9975 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9976 $as_echo "$T1ASM" >&6; }
9978 { $as_echo "$as_me:$LINENO: result: no" >&5
9979 $as_echo "no" >&6; }
9983 test -n "$T1ASM" && break
9988 r="`eval echo '$'"T1ASM"`"
9989 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9990 $as_echo_n "checking $r version... " >&6; }
9992 ## which doesn't work in ash, if /usr/bin/which isn't installed
9993 ## type -p doesn't work in ash
9994 ## command -v doesn't work in zsh
9995 ## command -v "$r" 2>&1
9996 ## this test should work in ash, bash, pdksh (ksh), zsh
9997 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10003 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10006 ## Workaround for broken Debian gcc version string:
10007 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10009 ## -V: Workaround for python
10013 ## Assume and hunt for dotted version multiplet.
10014 ## use eval trickery, because we cannot use multi-level $() instead of ``
10015 ## for compatibility reasons.
10017 ## grab the first version number in --version output.
10018 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10019 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10022 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10023 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10026 if test -z "$_ver"; then
10027 ## If empty, try date [fontforge]
10028 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10030 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10037 echo "$ver" | awk -F. '
10039 if ($3) {three = $3}
10042 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10045 echo "" | awk -F. '
10047 if ($3) {three = $3}
10050 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10052 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10053 $as_echo "$ver" >&6; }
10054 if test "$num" -lt "$req"; then
10056 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10059 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10060 eval `echo $vervar=$num`
10061 ## AC_SUBST(`eval echo $vervar`)
10074 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10079 $as_echo_n "checking for $ac_header... " >&6; }
10080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10081 $as_echo_n "(cached) " >&6
10083 ac_res=`eval 'as_val=${'$as_ac_Header'}
10084 $as_echo "$as_val"'`
10085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10086 $as_echo "$ac_res" >&6; }
10088 # Is the header compilable?
10089 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 $as_echo_n "checking $ac_header usability... " >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 $ac_includes_default
10098 #include <$ac_header>
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108 (eval "$ac_compile") 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_cxx_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest.$ac_objext; then
10118 ac_header_compiler=yes
10120 $as_echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_header_compiler=no
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10128 $as_echo "$ac_header_compiler" >&6; }
10130 # Is the header present?
10131 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10132 $as_echo_n "checking $ac_header presence... " >&6; }
10133 cat >conftest.$ac_ext <<_ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 #include <$ac_header>
10141 if { (ac_try="$ac_cpp conftest.$ac_ext"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10147 $as_echo "$ac_try_echo") >&5
10148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } >/dev/null && {
10155 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10156 test ! -s conftest.err
10158 ac_header_preproc=yes
10160 $as_echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10163 ac_header_preproc=no
10166 rm -f conftest.err conftest.$ac_ext
10167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10168 $as_echo "$ac_header_preproc" >&6; }
10170 # So? What about this header?
10171 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10177 ac_header_preproc=yes
10180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10185 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10187 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10191 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10196 $as_echo_n "checking for $ac_header... " >&6; }
10197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10198 $as_echo_n "(cached) " >&6
10200 eval "$as_ac_Header=\$ac_header_preproc"
10202 ac_res=`eval 'as_val=${'$as_ac_Header'}
10203 $as_echo "$as_val"'`
10204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10205 $as_echo "$ac_res" >&6; }
10208 as_val=`eval 'as_val=${'$as_ac_Header'}
10209 $as_echo "$as_val"'`
10210 if test "x$as_val" = x""yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220 for ac_header in sstream
10222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 $as_echo_n "(cached) " >&6
10229 ac_res=`eval 'as_val=${'$as_ac_Header'}
10230 $as_echo "$as_val"'`
10231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10232 $as_echo "$ac_res" >&6; }
10234 # Is the header compilable?
10235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236 $as_echo_n "checking $ac_header usability... " >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 $ac_includes_default
10244 #include <$ac_header>
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_cxx_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 ac_header_compiler=yes
10266 $as_echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_header_compiler=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10274 $as_echo "$ac_header_compiler" >&6; }
10276 # Is the header present?
10277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10278 $as_echo_n "checking $ac_header presence... " >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 #include <$ac_header>
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev/null && {
10301 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10302 test ! -s conftest.err
10304 ac_header_preproc=yes
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_header_preproc=no
10312 rm -f conftest.err conftest.$ac_ext
10313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10314 $as_echo "$ac_header_preproc" >&6; }
10316 # So? What about this header?
10317 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10323 ac_header_preproc=yes
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10342 $as_echo_n "checking for $ac_header... " >&6; }
10343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 $as_echo_n "(cached) " >&6
10346 eval "$as_ac_Header=\$ac_header_preproc"
10348 ac_res=`eval 'as_val=${'$as_ac_Header'}
10349 $as_echo "$as_val"'`
10350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10351 $as_echo "$ac_res" >&6; }
10354 as_val=`eval 'as_val=${'$as_ac_Header'}
10355 $as_echo "$as_val"'`
10356 if test "x$as_val" = x""yes; then
10357 cat >>confdefs.h <<_ACEOF
10358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10365 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10366 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10367 if test "${ac_cv_header_stat_broken+set}" = set; then
10368 $as_echo_n "(cached) " >&6
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 #include <sys/types.h>
10377 #include <sys/stat.h>
10379 #if defined S_ISBLK && defined S_IFDIR
10380 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10383 #if defined S_ISBLK && defined S_IFCHR
10384 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10387 #if defined S_ISLNK && defined S_IFREG
10388 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10391 #if defined S_ISSOCK && defined S_IFREG
10392 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403 $as_echo "$ac_try_echo") >&5
10404 (eval "$ac_compile") 2>conftest.er1
10406 grep -v '^ *+' conftest.er1 >conftest.err
10408 cat conftest.err >&5
10409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_cxx_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest.$ac_objext; then
10414 ac_cv_header_stat_broken=no
10416 $as_echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_cv_header_stat_broken=yes
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10425 $as_echo "$ac_cv_header_stat_broken" >&6; }
10426 if test $ac_cv_header_stat_broken = yes; then
10428 cat >>confdefs.h <<\_ACEOF
10429 #define STAT_MACROS_BROKEN 1
10434 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10435 $as_echo_n "checking for working memcmp... " >&6; }
10436 if test "${ac_cv_func_memcmp_working+set}" = set; then
10437 $as_echo_n "(cached) " >&6
10439 if test "$cross_compiling" = yes; then
10440 ac_cv_func_memcmp_working=no
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10448 $ac_includes_default
10453 /* Some versions of memcmp are not 8-bit clean. */
10454 char c0 = '\100', c1 = '\200', c2 = '\201';
10455 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10458 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10459 or more and with at least one buffer not starting on a 4-byte boundary.
10460 William Lewis provided this test program. */
10465 for (i = 0; i < 4; i++)
10469 strcpy (a, "--------01111111");
10470 strcpy (b, "--------10000000");
10471 if (memcmp (a, b, 16) >= 0)
10481 rm -f conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_link") 2>&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10493 { (case "(($ac_try" in
10494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495 *) ac_try_echo=$ac_try;;
10497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10498 $as_echo "$ac_try_echo") >&5
10499 (eval "$ac_try") 2>&5
10501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_func_memcmp_working=yes
10505 $as_echo "$as_me: program exited with status $ac_status" >&5
10506 $as_echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ( exit $ac_status )
10510 ac_cv_func_memcmp_working=no
10512 rm -rf conftest.dSYM
10513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10518 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10519 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10520 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10521 *" memcmp.$ac_objext "* ) ;;
10522 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10528 for ac_func in vprintf
10530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10532 $as_echo_n "checking for $ac_func... " >&6; }
10533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10534 $as_echo_n "(cached) " >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10544 #define $ac_func innocuous_$ac_func
10546 /* System header to define __stub macros and hopefully few prototypes,
10547 which can conflict with char $ac_func (); below.
10548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549 <limits.h> exists even on freestanding compilers. */
10552 # include <limits.h>
10554 # include <assert.h>
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10566 /* The GNU C library defines this for functions which it implements
10567 to always fail with ENOSYS. Some functions are actually named
10568 something starting with __ and the normal name is an alias. */
10569 #if defined __stub_$ac_func || defined __stub___$ac_func
10576 return $ac_func ();
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588 $as_echo "$ac_try_echo") >&5
10589 (eval "$ac_link") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_cxx_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest$ac_exeext && {
10599 test "$cross_compiling" = yes ||
10600 $as_test_x conftest$ac_exeext
10602 eval "$as_ac_var=yes"
10604 $as_echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 eval "$as_ac_var=no"
10610 rm -rf conftest.dSYM
10611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10612 conftest$ac_exeext conftest.$ac_ext
10614 ac_res=`eval 'as_val=${'$as_ac_var'}
10615 $as_echo "$as_val"'`
10616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10617 $as_echo "$ac_res" >&6; }
10618 as_val=`eval 'as_val=${'$as_ac_var'}
10619 $as_echo "$as_val"'`
10620 if test "x$as_val" = x""yes; then
10621 cat >>confdefs.h <<_ACEOF
10622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10625 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10626 $as_echo_n "checking for _doprnt... " >&6; }
10627 if test "${ac_cv_func__doprnt+set}" = set; then
10628 $as_echo_n "(cached) " >&6
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10638 #define _doprnt innocuous__doprnt
10640 /* System header to define __stub macros and hopefully few prototypes,
10641 which can conflict with char _doprnt (); below.
10642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10643 <limits.h> exists even on freestanding compilers. */
10646 # include <limits.h>
10648 # include <assert.h>
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10660 /* The GNU C library defines this for functions which it implements
10661 to always fail with ENOSYS. Some functions are actually named
10662 something starting with __ and the normal name is an alias. */
10663 #if defined __stub__doprnt || defined __stub____doprnt
10675 rm -f conftest.$ac_objext conftest$ac_exeext
10676 if { (ac_try="$ac_link"
10677 case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682 $as_echo "$ac_try_echo") >&5
10683 (eval "$ac_link") 2>conftest.er1
10685 grep -v '^ *+' conftest.er1 >conftest.err
10687 cat conftest.err >&5
10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_cxx_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest$ac_exeext && {
10693 test "$cross_compiling" = yes ||
10694 $as_test_x conftest$ac_exeext
10696 ac_cv_func__doprnt=yes
10698 $as_echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_cv_func__doprnt=no
10704 rm -rf conftest.dSYM
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706 conftest$ac_exeext conftest.$ac_ext
10708 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10709 $as_echo "$ac_cv_func__doprnt" >&6; }
10710 if test "x$ac_cv_func__doprnt" = x""yes; then
10712 cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_DOPRNT 1
10729 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10733 $as_echo_n "checking for $ac_func... " >&6; }
10734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10735 $as_echo_n "(cached) " >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745 #define $ac_func innocuous_$ac_func
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char $ac_func (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10753 # include <limits.h>
10755 # include <assert.h>
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined __stub_$ac_func || defined __stub___$ac_func
10777 return $ac_func ();
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_cxx_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10803 eval "$as_ac_var=yes"
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 eval "$as_ac_var=no"
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10815 ac_res=`eval 'as_val=${'$as_ac_var'}
10816 $as_echo "$as_val"'`
10817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10818 $as_echo "$ac_res" >&6; }
10819 as_val=`eval 'as_val=${'$as_ac_var'}
10820 $as_echo "$as_val"'`
10821 if test "x$as_val" = x""yes; then
10822 cat >>confdefs.h <<_ACEOF
10823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10831 for ac_prog in pkg-config
10833 # Extract the first word of "$ac_prog", so it can be a program name with args.
10834 set dummy $ac_prog; ac_word=$2
10835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10838 $as_echo_n "(cached) " >&6
10840 if test -n "$PKG_CONFIG"; then
10841 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_prog_PKG_CONFIG="$ac_prog"
10851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10861 if test -n "$PKG_CONFIG"; then
10862 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10863 $as_echo "$PKG_CONFIG" >&6; }
10865 { $as_echo "$as_me:$LINENO: result: no" >&5
10866 $as_echo "no" >&6; }
10870 test -n "$PKG_CONFIG" && break
10872 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10876 r="`eval echo '$'"PKG_CONFIG"`"
10877 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10880 ##STEPMAKE_WARN(cannot find . )
10884 if test $? -ne 0; then
10886 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10888 if test "REQUIRED" = "REQUIRED"; then
10889 command="echo ERROR: pkg-config not found"
10890 # abort configure process here?
10892 command="- echo pkg-config not found"
10894 eval "PKG_CONFIG"='$command'
10900 if test $? -eq 0 -a -n "0.9.0"; then
10902 r="`eval echo '$'"PKG_CONFIG"`"
10903 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10904 $as_echo_n "checking $r version... " >&6; }
10906 ## which doesn't work in ash, if /usr/bin/which isn't installed
10907 ## type -p doesn't work in ash
10908 ## command -v doesn't work in zsh
10909 ## command -v "$r" 2>&1
10910 ## this test should work in ash, bash, pdksh (ksh), zsh
10911 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10913 if test -n ""; then
10917 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10920 ## Workaround for broken Debian gcc version string:
10921 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10923 ## -V: Workaround for python
10927 ## Assume and hunt for dotted version multiplet.
10928 ## use eval trickery, because we cannot use multi-level $() instead of ``
10929 ## for compatibility reasons.
10931 ## grab the first version number in --version output.
10932 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10933 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10936 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10937 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10940 if test -z "$_ver"; then
10941 ## If empty, try date [fontforge]
10942 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10944 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10951 echo "$ver" | awk -F. '
10953 if ($3) {three = $3}
10956 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10959 echo "0.9.0" | awk -F. '
10961 if ($3) {three = $3}
10964 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10966 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10967 $as_echo "$ver" >&6; }
10968 if test "$num" -lt "$req"; then
10970 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10973 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10974 eval `echo $vervar=$num`
10975 ## AC_SUBST(`eval echo $vervar`)
10980 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10981 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10982 if test "$reloc_b" = "yes"; then
10983 cat >>confdefs.h <<\_ACEOF
10984 #define ARGV0_RELOCATION 1
10988 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10989 $as_echo "$reloc_b" >&6; }
10991 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10992 $as_echo_n "checking for rpath linkage... " >&6; }
10993 if test "$rpath_b" = "yes"; then
10994 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10995 elif test "$rpath_b" != "no"; then
10996 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10998 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10999 $as_echo "$rpath_b" >&6; }
11001 HOST_ARCH=`$CC -dumpmachine`
11008 if test -z "$PKG_CONFIG"; then
11009 # Extract the first word of "pkg-config", so it can be a program name with args.
11010 set dummy pkg-config; ac_word=$2
11011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11014 $as_echo_n "(cached) " >&6
11016 case $PKG_CONFIG in
11018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11041 if test -n "$PKG_CONFIG"; then
11042 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11043 $as_echo "$PKG_CONFIG" >&6; }
11045 { $as_echo "$as_me:$LINENO: result: no" >&5
11046 $as_echo "no" >&6; }
11052 if test "$PKG_CONFIG" = "no" ; then
11053 echo "*** The pkg-config script could not be found. Make sure it is"
11054 echo "*** in your path, or set the PKG_CONFIG environment variable"
11055 echo "*** to the full path to pkg-config."
11056 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11058 PKG_CONFIG_MIN_VERSION=0.9.0
11059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11060 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11061 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11063 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11064 { $as_echo "$as_me:$LINENO: result: yes" >&5
11065 $as_echo "yes" >&6; }
11068 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11069 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11070 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11071 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11072 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11074 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11075 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11076 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11077 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11078 $as_echo "$PANGO_FT2_LIBS" >&6; }
11080 PANGO_FT2_CFLAGS=""
11082 ## If we have a custom action on failure, don't print errors, but
11083 ## do set a variable so people can do so.
11084 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11093 if test $succeeded = yes; then
11099 if test "$have_pangoft2" = yes ; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_PANGO16 1
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_PANGO_FT2 1
11108 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11109 save_CPPFLAGS="$CPPFLAGS"
11111 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11112 LIBS="$PANGO_FT2_LIBS $LIBS"
11114 for ac_header in pango/pangoft2.h
11116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 $as_echo_n "checking for $ac_header... " >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 $as_echo_n "(cached) " >&6
11123 ac_res=`eval 'as_val=${'$as_ac_Header'}
11124 $as_echo "$as_val"'`
11125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11126 $as_echo "$ac_res" >&6; }
11128 # Is the header compilable?
11129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 $as_echo_n "checking $ac_header usability... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <$ac_header>
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148 (eval "$ac_compile") 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } && {
11155 test -z "$ac_cxx_werror_flag" ||
11156 test ! -s conftest.err
11157 } && test -s conftest.$ac_objext; then
11158 ac_header_compiler=yes
11160 $as_echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_header_compiler=no
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 $as_echo "$ac_header_compiler" >&6; }
11170 # Is the header present?
11171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11172 $as_echo_n "checking $ac_header presence... " >&6; }
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 #include <$ac_header>
11181 if { (ac_try="$ac_cpp conftest.$ac_ext"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null && {
11195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11196 test ! -s conftest.err
11198 ac_header_preproc=yes
11200 $as_echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 $as_echo "$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 $as_echo_n "checking for $ac_header... " >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11240 eval "$as_ac_Header=\$ac_header_preproc"
11242 ac_res=`eval 'as_val=${'$as_ac_Header'}
11243 $as_echo "$as_val"'`
11244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11248 as_val=`eval 'as_val=${'$as_ac_Header'}
11249 $as_echo "$as_val"'`
11250 if test "x$as_val" = x""yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11260 for ac_func in pango_ft2_font_map_create_context
11262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11264 $as_echo_n "checking for $ac_func... " >&6; }
11265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11266 $as_echo_n "(cached) " >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11276 #define $ac_func innocuous_$ac_func
11278 /* System header to define __stub macros and hopefully few prototypes,
11279 which can conflict with char $ac_func (); below.
11280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11281 <limits.h> exists even on freestanding compilers. */
11284 # include <limits.h>
11286 # include <assert.h>
11291 /* Override any GCC internal prototype to avoid an error.
11292 Use char because int might match the return type of a GCC
11293 builtin and then its argument prototype would still apply. */
11298 /* The GNU C library defines this for functions which it implements
11299 to always fail with ENOSYS. Some functions are actually named
11300 something starting with __ and the normal name is an alias. */
11301 #if defined __stub_$ac_func || defined __stub___$ac_func
11308 return $ac_func ();
11313 rm -f conftest.$ac_objext conftest$ac_exeext
11314 if { (ac_try="$ac_link"
11315 case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11320 $as_echo "$ac_try_echo") >&5
11321 (eval "$ac_link") 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } && {
11328 test -z "$ac_cxx_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest$ac_exeext && {
11331 test "$cross_compiling" = yes ||
11332 $as_test_x conftest$ac_exeext
11334 eval "$as_ac_var=yes"
11336 $as_echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 eval "$as_ac_var=no"
11342 rm -rf conftest.dSYM
11343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11344 conftest$ac_exeext conftest.$ac_ext
11346 ac_res=`eval 'as_val=${'$as_ac_var'}
11347 $as_echo "$as_val"'`
11348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11349 $as_echo "$ac_res" >&6; }
11350 as_val=`eval 'as_val=${'$as_ac_var'}
11351 $as_echo "$as_val"'`
11352 if test "x$as_val" = x""yes; then
11353 cat >>confdefs.h <<_ACEOF
11354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362 CPPFLAGS="$save_CPPFLAGS"
11366 #r="libpangoft2-dev or pangoft2-devel"e
11367 r="libpango1.0-dev or pango?-devel"
11368 ver="`pkg-config --modversion pangoft2`"
11370 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11378 if test -z "$PKG_CONFIG"; then
11379 # Extract the first word of "pkg-config", so it can be a program name with args.
11380 set dummy pkg-config; ac_word=$2
11381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11386 case $PKG_CONFIG in
11388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11411 if test -n "$PKG_CONFIG"; then
11412 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11413 $as_echo "$PKG_CONFIG" >&6; }
11415 { $as_echo "$as_me:$LINENO: result: no" >&5
11416 $as_echo "no" >&6; }
11422 if test "$PKG_CONFIG" = "no" ; then
11423 echo "*** The pkg-config script could not be found. Make sure it is"
11424 echo "*** in your path, or set the PKG_CONFIG environment variable"
11425 echo "*** to the full path to pkg-config."
11426 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11428 PKG_CONFIG_MIN_VERSION=0.9.0
11429 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11430 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11431 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11433 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11438 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11439 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11440 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11441 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11442 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11444 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11445 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11446 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11447 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11448 $as_echo "$FONTCONFIG_LIBS" >&6; }
11450 FONTCONFIG_CFLAGS=""
11452 ## If we have a custom action on failure, don't print errors, but
11453 ## do set a variable so people can do so.
11454 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11463 if test $succeeded = yes; then
11464 have_fontconfig=yes
11469 if test "$have_fontconfig" = yes ; then
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_FONTCONFIG 1
11474 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11475 save_CPPFLAGS="$CPPFLAGS"
11477 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11478 LIBS="$FONTCONFIG_LIBS $LIBS"
11481 CPPFLAGS="$save_CPPFLAGS"
11484 r="libfontconfig-dev or fontconfig-devel"
11485 ver="`pkg-config --modversion fontconfig`"
11487 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11495 if test -z "$PKG_CONFIG"; then
11496 # Extract the first word of "pkg-config", so it can be a program name with args.
11497 set dummy pkg-config; ac_word=$2
11498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11501 $as_echo_n "(cached) " >&6
11503 case $PKG_CONFIG in
11505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11528 if test -n "$PKG_CONFIG"; then
11529 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11530 $as_echo "$PKG_CONFIG" >&6; }
11532 { $as_echo "$as_me:$LINENO: result: no" >&5
11533 $as_echo "no" >&6; }
11539 if test "$PKG_CONFIG" = "no" ; then
11540 echo "*** The pkg-config script could not be found. Make sure it is"
11541 echo "*** in your path, or set the PKG_CONFIG environment variable"
11542 echo "*** to the full path to pkg-config."
11543 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11545 PKG_CONFIG_MIN_VERSION=0.9.0
11546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11547 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11548 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11550 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11551 { $as_echo "$as_me:$LINENO: result: yes" >&5
11552 $as_echo "yes" >&6; }
11555 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11556 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11557 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11558 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11559 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11561 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11562 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11563 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11564 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11565 $as_echo "$FREETYPE2_LIBS" >&6; }
11567 FREETYPE2_CFLAGS=""
11569 ## If we have a custom action on failure, don't print errors, but
11570 ## do set a variable so people can do so.
11571 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11580 if test $succeeded = yes; then
11586 if test "$have_freetype2" = yes; then
11587 cat >>confdefs.h <<\_ACEOF
11588 #define HAVE_FREETYPE2 1
11591 save_CPPFLAGS="$CPPFLAGS"
11593 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11594 LIBS="$FREETYPE2_LIBS $LIBS"
11597 CPPFLAGS="$save_CPPFLAGS"
11601 #r="libfreetype2-dev or freetype2-devel"
11602 r="libfreetype6-dev or freetype?-devel"
11603 ver="`pkg-config --modversion freetype2`"
11605 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11611 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11612 $as_echo_n "checking host system type... " >&6; }
11613 if test "${ac_cv_host+set}" = set; then
11614 $as_echo_n "(cached) " >&6
11616 if test "x$host_alias" = x; then
11617 ac_cv_host=$ac_cv_build
11619 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11620 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11621 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11622 { (exit 1); exit 1; }; }
11626 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11627 $as_echo "$ac_cv_host" >&6; }
11628 case $ac_cv_host in
11630 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11631 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11632 { (exit 1); exit 1; }; };;
11635 ac_save_IFS=$IFS; IFS='-'
11641 # Remember, the first character of IFS is used to create $*,
11642 # except with old shells:
11645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11649 *cygwin* ) CYGWIN=yes;;
11653 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11654 $as_echo_n "checking host system type... " >&6; }
11655 if test "${ac_cv_host+set}" = set; then
11656 $as_echo_n "(cached) " >&6
11658 if test "x$host_alias" = x; then
11659 ac_cv_host=$ac_cv_build
11661 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11662 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11663 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11664 { (exit 1); exit 1; }; }
11668 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11669 $as_echo "$ac_cv_host" >&6; }
11670 case $ac_cv_host in
11672 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11673 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11674 { (exit 1); exit 1; }; };;
11677 ac_save_IFS=$IFS; IFS='-'
11683 # Remember, the first character of IFS is used to create $*,
11684 # except with old shells:
11687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11691 *mingw32* ) MINGW32=yes;;
11696 if test "$CYGWIN" = "yes"; then
11697 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11698 program_suffix=.exe
11699 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11700 elif test "$MINGW32" = "yes"; then
11703 program_suffix=.exe
11704 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11710 cat >>confdefs.h <<_ACEOF
11711 #define DIRSEP '${DIRSEP}'
11714 cat >>confdefs.h <<_ACEOF
11715 #define PATHSEP '${PATHSEP}'
11722 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11723 $as_echo_n "checking for some flavor of Windows... " >&6; }
11724 if test "$CYGWIN$MINGW32" = "nono"; then
11725 PLATFORM_WINDOWS=no
11727 PLATFORM_WINDOWS=yes
11729 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11730 $as_echo "$PLATFORM_WINDOWS" >&6; }
11733 for ac_prog in $target-windres windres
11735 # Extract the first word of "$ac_prog", so it can be a program name with args.
11736 set dummy $ac_prog; ac_word=$2
11737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if test "${ac_cv_prog_WINDRES+set}" = set; then
11740 $as_echo_n "(cached) " >&6
11742 if test -n "$WINDRES"; then
11743 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_prog_WINDRES="$ac_prog"
11753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 WINDRES=$ac_cv_prog_WINDRES
11763 if test -n "$WINDRES"; then
11764 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11765 $as_echo "$WINDRES" >&6; }
11767 { $as_echo "$as_me:$LINENO: result: no" >&5
11768 $as_echo "no" >&6; }
11772 test -n "$WINDRES" && break
11774 test -n "$WINDRES" || WINDRES="no"
11778 r="`eval echo '$'"WINDRES"`"
11779 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11782 ##STEPMAKE_WARN(cannot find . )
11786 if test $? -ne 0; then
11788 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11790 if test "x" = "REQUIRED"; then
11791 command="echo ERROR: $target-windres windres not found"
11792 # abort configure process here?
11794 command="- echo $target-windres windres not found"
11796 eval "WINDRES"='$command'
11802 if test $? -eq 0 -a -n ""; then
11804 r="`eval echo '$'"WINDRES"`"
11805 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11806 $as_echo_n "checking $r version... " >&6; }
11808 ## which doesn't work in ash, if /usr/bin/which isn't installed
11809 ## type -p doesn't work in ash
11810 ## command -v doesn't work in zsh
11811 ## command -v "$r" 2>&1
11812 ## this test should work in ash, bash, pdksh (ksh), zsh
11813 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11815 if test -n ""; then
11819 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11822 ## Workaround for broken Debian gcc version string:
11823 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11825 ## -V: Workaround for python
11829 ## Assume and hunt for dotted version multiplet.
11830 ## use eval trickery, because we cannot use multi-level $() instead of ``
11831 ## for compatibility reasons.
11833 ## grab the first version number in --version output.
11834 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11835 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11838 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11839 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11842 if test -z "$_ver"; then
11843 ## If empty, try date [fontforge]
11844 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11846 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11853 echo "$ver" | awk -F. '
11855 if ($3) {three = $3}
11858 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11861 echo "" | awk -F. '
11863 if ($3) {three = $3}
11866 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11868 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11869 $as_echo "$ver" >&6; }
11870 if test "$num" -lt "$req"; then
11872 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
11875 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11876 eval `echo $vervar=$num`
11877 ## AC_SUBST(`eval echo $vervar`)
11884 ## Optional tools for building documentation, website, extra fonts.
11886 # guile executable for some scripts
11889 for ac_prog in guile guile1
11891 # Extract the first word of "$ac_prog", so it can be a program name with args.
11892 set dummy $ac_prog; ac_word=$2
11893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11894 $as_echo_n "checking for $ac_word... " >&6; }
11895 if test "${ac_cv_prog_GUILE+set}" = set; then
11896 $as_echo_n "(cached) " >&6
11898 if test -n "$GUILE"; then
11899 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908 ac_cv_prog_GUILE="$ac_prog"
11909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 GUILE=$ac_cv_prog_GUILE
11919 if test -n "$GUILE"; then
11920 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11921 $as_echo "$GUILE" >&6; }
11923 { $as_echo "$as_me:$LINENO: result: no" >&5
11924 $as_echo "no" >&6; }
11928 test -n "$GUILE" && break
11930 test -n "$GUILE" || GUILE="no"
11934 r="`eval echo '$'"GUILE"`"
11935 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
11938 ##STEPMAKE_WARN(cannot find . )
11942 if test $? -ne 0; then
11944 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile guile1\"`\"
11946 if test "OPTIONAL" = "REQUIRED"; then
11947 command="echo ERROR: guile guile1 not found"
11948 # abort configure process here?
11950 command="- echo guile guile1 not found"
11952 eval "GUILE"='$command'
11958 if test $? -eq 0; then
11959 for ac_prog in guile guile1
11961 # Extract the first word of "$ac_prog", so it can be a program name with args.
11962 set dummy $ac_prog; ac_word=$2
11963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if test "${ac_cv_path_GUILE+set}" = set; then
11966 $as_echo_n "(cached) " >&6
11970 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11980 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 GUILE=$ac_cv_path_GUILE
11992 if test -n "$GUILE"; then
11993 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11994 $as_echo "$GUILE" >&6; }
11996 { $as_echo "$as_me:$LINENO: result: no" >&5
11997 $as_echo "no" >&6; }
12001 test -n "$GUILE" && break
12004 if test -n ""; then
12006 r="`eval echo '$'"GUILE"`"
12007 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12008 $as_echo_n "checking $r version... " >&6; }
12010 ## which doesn't work in ash, if /usr/bin/which isn't installed
12011 ## type -p doesn't work in ash
12012 ## command -v doesn't work in zsh
12013 ## command -v "$r" 2>&1
12014 ## this test should work in ash, bash, pdksh (ksh), zsh
12015 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12017 if test -n ""; then
12021 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12024 ## Workaround for broken Debian gcc version string:
12025 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12027 ## -V: Workaround for python
12031 ## Assume and hunt for dotted version multiplet.
12032 ## use eval trickery, because we cannot use multi-level $() instead of ``
12033 ## for compatibility reasons.
12035 ## grab the first version number in --version output.
12036 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12037 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12040 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12041 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12044 if test -z "$_ver"; then
12045 ## If empty, try date [fontforge]
12046 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12048 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12055 echo "$ver" | awk -F. '
12057 if ($3) {three = $3}
12060 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12063 echo "" | awk -F. '
12065 if ($3) {three = $3}
12068 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12070 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12071 $as_echo "$ver" >&6; }
12072 if test "$num" -lt "$req"; then
12074 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12077 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12078 eval `echo $vervar=$num`
12079 ## AC_SUBST(`eval echo $vervar`)
12086 # perl for help2man.
12089 for ac_prog in perl
12091 # Extract the first word of "$ac_prog", so it can be a program name with args.
12092 set dummy $ac_prog; ac_word=$2
12093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if test "${ac_cv_prog_PERL+set}" = set; then
12096 $as_echo_n "(cached) " >&6
12098 if test -n "$PERL"; then
12099 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108 ac_cv_prog_PERL="$ac_prog"
12109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 PERL=$ac_cv_prog_PERL
12119 if test -n "$PERL"; then
12120 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12121 $as_echo "$PERL" >&6; }
12123 { $as_echo "$as_me:$LINENO: result: no" >&5
12124 $as_echo "no" >&6; }
12128 test -n "$PERL" && break
12130 test -n "$PERL" || PERL="no"
12134 r="`eval echo '$'"PERL"`"
12135 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12138 ##STEPMAKE_WARN(cannot find . )
12142 if test $? -ne 0; then
12144 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
12146 if test "OPTIONAL" = "REQUIRED"; then
12147 command="echo ERROR: perl not found"
12148 # abort configure process here?
12150 command="- echo perl not found"
12152 eval "PERL"='$command'
12158 if test $? -eq 0; then
12159 for ac_prog in perl
12161 # Extract the first word of "$ac_prog", so it can be a program name with args.
12162 set dummy $ac_prog; ac_word=$2
12163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if test "${ac_cv_path_PERL+set}" = set; then
12166 $as_echo_n "(cached) " >&6
12170 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in $PATH
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12180 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 PERL=$ac_cv_path_PERL
12192 if test -n "$PERL"; then
12193 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12194 $as_echo "$PERL" >&6; }
12196 { $as_echo "$as_me:$LINENO: result: no" >&5
12197 $as_echo "no" >&6; }
12201 test -n "$PERL" && break
12204 if test -n ""; then
12206 r="`eval echo '$'"PERL"`"
12207 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12208 $as_echo_n "checking $r version... " >&6; }
12210 ## which doesn't work in ash, if /usr/bin/which isn't installed
12211 ## type -p doesn't work in ash
12212 ## command -v doesn't work in zsh
12213 ## command -v "$r" 2>&1
12214 ## this test should work in ash, bash, pdksh (ksh), zsh
12215 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12217 if test -n ""; then
12221 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12224 ## Workaround for broken Debian gcc version string:
12225 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12227 ## -V: Workaround for python
12231 ## Assume and hunt for dotted version multiplet.
12232 ## use eval trickery, because we cannot use multi-level $() instead of ``
12233 ## for compatibility reasons.
12235 ## grab the first version number in --version output.
12236 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12237 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12240 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12241 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12244 if test -z "$_ver"; then
12245 ## If empty, try date [fontforge]
12246 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12248 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12255 echo "$ver" | awk -F. '
12257 if ($3) {three = $3}
12260 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12263 echo "" | awk -F. '
12265 if ($3) {three = $3}
12268 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12270 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12271 $as_echo "$ver" >&6; }
12272 if test "$num" -lt "$req"; then
12274 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12277 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12278 eval `echo $vervar=$num`
12279 ## AC_SUBST(`eval echo $vervar`)
12287 for ac_prog in makeinfo
12289 # Extract the first word of "$ac_prog", so it can be a program name with args.
12290 set dummy $ac_prog; ac_word=$2
12291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12294 $as_echo_n "(cached) " >&6
12296 if test -n "$MAKEINFO"; then
12297 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_MAKEINFO="$ac_prog"
12307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 MAKEINFO=$ac_cv_prog_MAKEINFO
12317 if test -n "$MAKEINFO"; then
12318 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12319 $as_echo "$MAKEINFO" >&6; }
12321 { $as_echo "$as_me:$LINENO: result: no" >&5
12322 $as_echo "no" >&6; }
12326 test -n "$MAKEINFO" && break
12328 test -n "$MAKEINFO" || MAKEINFO="no"
12332 r="`eval echo '$'"MAKEINFO"`"
12333 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12336 ##STEPMAKE_WARN(cannot find . )
12340 if test $? -ne 0; then
12342 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12344 if test "REQUIRED" = "REQUIRED"; then
12345 command="echo ERROR: makeinfo not found"
12346 # abort configure process here?
12348 command="- echo makeinfo not found"
12350 eval "MAKEINFO"='$command'
12356 if test $? -eq 0 -a -n "4.11"; then
12358 r="`eval echo '$'"MAKEINFO"`"
12359 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12360 $as_echo_n "checking $r version... " >&6; }
12362 ## which doesn't work in ash, if /usr/bin/which isn't installed
12363 ## type -p doesn't work in ash
12364 ## command -v doesn't work in zsh
12365 ## command -v "$r" 2>&1
12366 ## this test should work in ash, bash, pdksh (ksh), zsh
12367 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12369 if test -n ""; then
12373 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12376 ## Workaround for broken Debian gcc version string:
12377 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12379 ## -V: Workaround for python
12383 ## Assume and hunt for dotted version multiplet.
12384 ## use eval trickery, because we cannot use multi-level $() instead of ``
12385 ## for compatibility reasons.
12387 ## grab the first version number in --version output.
12388 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12389 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12392 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12393 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12396 if test -z "$_ver"; then
12397 ## If empty, try date [fontforge]
12398 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12400 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12407 echo "$ver" | awk -F. '
12409 if ($3) {three = $3}
12412 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12415 echo "4.11" | awk -F. '
12417 if ($3) {three = $3}
12420 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12422 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12423 $as_echo "$ver" >&6; }
12424 if test "$num" -lt "$req"; then
12426 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12429 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12430 eval `echo $vervar=$num`
12431 ## AC_SUBST(`eval echo $vervar`)
12436 for ac_prog in texi2html
12438 # Extract the first word of "$ac_prog", so it can be a program name with args.
12439 set dummy $ac_prog; ac_word=$2
12440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12441 $as_echo_n "checking for $ac_word... " >&6; }
12442 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12443 $as_echo_n "(cached) " >&6
12445 if test -n "$TEXI2HTML"; then
12446 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12452 test -z "$as_dir" && as_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12455 ac_cv_prog_TEXI2HTML="$ac_prog"
12456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12466 if test -n "$TEXI2HTML"; then
12467 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12468 $as_echo "$TEXI2HTML" >&6; }
12470 { $as_echo "$as_me:$LINENO: result: no" >&5
12471 $as_echo "no" >&6; }
12475 test -n "$TEXI2HTML" && break
12477 test -n "$TEXI2HTML" || TEXI2HTML="no"
12481 r="`eval echo '$'"TEXI2HTML"`"
12482 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12485 ##STEPMAKE_WARN(cannot find . )
12489 if test $? -ne 0; then
12491 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12493 if test "OPTIONAL" = "REQUIRED"; then
12494 command="echo ERROR: texi2html not found"
12495 # abort configure process here?
12497 command="- echo texi2html not found"
12499 eval "TEXI2HTML"='$command'
12505 if test $? -eq 0 -a -n "1.82"; then
12507 r="`eval echo '$'"TEXI2HTML"`"
12508 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12509 $as_echo_n "checking $r version... " >&6; }
12511 ## which doesn't work in ash, if /usr/bin/which isn't installed
12512 ## type -p doesn't work in ash
12513 ## command -v doesn't work in zsh
12514 ## command -v "$r" 2>&1
12515 ## this test should work in ash, bash, pdksh (ksh), zsh
12516 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12518 if test -n ""; then
12522 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12525 ## Workaround for broken Debian gcc version string:
12526 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12528 ## -V: Workaround for python
12532 ## Assume and hunt for dotted version multiplet.
12533 ## use eval trickery, because we cannot use multi-level $() instead of ``
12534 ## for compatibility reasons.
12536 ## grab the first version number in --version output.
12537 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12538 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12541 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12542 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12545 if test -z "$_ver"; then
12546 ## If empty, try date [fontforge]
12547 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12549 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12556 echo "$ver" | awk -F. '
12558 if ($3) {three = $3}
12561 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12564 echo "1.82" | awk -F. '
12566 if ($3) {three = $3}
12569 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12571 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12572 $as_echo "$ver" >&6; }
12573 if test "$num" -lt "$req"; then
12575 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.82 (installed: $ver)"\"`\"
12578 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12579 eval `echo $vervar=$num`
12580 ## AC_SUBST(`eval echo $vervar`)
12585 for ac_prog in dblatex
12587 # Extract the first word of "$ac_prog", so it can be a program name with args.
12588 set dummy $ac_prog; ac_word=$2
12589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12592 $as_echo_n "(cached) " >&6
12594 if test -n "$DBLATEX"; then
12595 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_prog_DBLATEX="$ac_prog"
12605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 DBLATEX=$ac_cv_prog_DBLATEX
12615 if test -n "$DBLATEX"; then
12616 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12617 $as_echo "$DBLATEX" >&6; }
12619 { $as_echo "$as_me:$LINENO: result: no" >&5
12620 $as_echo "no" >&6; }
12624 test -n "$DBLATEX" && break
12626 test -n "$DBLATEX" || DBLATEX="no"
12630 r="`eval echo '$'"DBLATEX"`"
12631 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12634 ##STEPMAKE_WARN(cannot find . )
12638 if test $? -ne 0; then
12640 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"dblatex\"`\"
12642 if test "OPTIONAL" = "REQUIRED"; then
12643 command="echo ERROR: dblatex not found"
12644 # abort configure process here?
12646 command="- echo dblatex not found"
12648 eval "DBLATEX"='$command'
12654 if test $? -eq 0 -a -n "0.1.4"; then
12656 r="`eval echo '$'"DBLATEX"`"
12657 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12658 $as_echo_n "checking $r version... " >&6; }
12660 ## which doesn't work in ash, if /usr/bin/which isn't installed
12661 ## type -p doesn't work in ash
12662 ## command -v doesn't work in zsh
12663 ## command -v "$r" 2>&1
12664 ## this test should work in ash, bash, pdksh (ksh), zsh
12665 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12667 if test -n ""; then
12671 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12674 ## Workaround for broken Debian gcc version string:
12675 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12677 ## -V: Workaround for python
12681 ## Assume and hunt for dotted version multiplet.
12682 ## use eval trickery, because we cannot use multi-level $() instead of ``
12683 ## for compatibility reasons.
12685 ## grab the first version number in --version output.
12686 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12687 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12690 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12691 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12694 if test -z "$_ver"; then
12695 ## If empty, try date [fontforge]
12696 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12698 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12705 echo "$ver" | awk -F. '
12707 if ($3) {three = $3}
12710 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12713 echo "0.1.4" | awk -F. '
12715 if ($3) {three = $3}
12718 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12720 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12721 $as_echo "$ver" >&6; }
12722 if test "$num" -lt "$req"; then
12724 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
12727 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
12728 eval `echo $vervar=$num`
12729 ## AC_SUBST(`eval echo $vervar`)
12734 for ac_prog in pdflatex
12736 # Extract the first word of "$ac_prog", so it can be a program name with args.
12737 set dummy $ac_prog; ac_word=$2
12738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
12741 $as_echo_n "(cached) " >&6
12743 if test -n "$PDFLATEX"; then
12744 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753 ac_cv_prog_PDFLATEX="$ac_prog"
12754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 PDFLATEX=$ac_cv_prog_PDFLATEX
12764 if test -n "$PDFLATEX"; then
12765 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12766 $as_echo "$PDFLATEX" >&6; }
12768 { $as_echo "$as_me:$LINENO: result: no" >&5
12769 $as_echo "no" >&6; }
12773 test -n "$PDFLATEX" && break
12775 test -n "$PDFLATEX" || PDFLATEX="no"
12779 r="`eval echo '$'"PDFLATEX"`"
12780 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
12783 ##STEPMAKE_WARN(cannot find . )
12787 if test $? -ne 0; then
12789 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pdflatex\"`\"
12791 if test "OPTIONAL" = "REQUIRED"; then
12792 command="echo ERROR: pdflatex not found"
12793 # abort configure process here?
12795 command="- echo pdflatex not found"
12797 eval "PDFLATEX"='$command'
12803 if test $? -eq 0 -a -n ""; then
12805 r="`eval echo '$'"PDFLATEX"`"
12806 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12807 $as_echo_n "checking $r version... " >&6; }
12809 ## which doesn't work in ash, if /usr/bin/which isn't installed
12810 ## type -p doesn't work in ash
12811 ## command -v doesn't work in zsh
12812 ## command -v "$r" 2>&1
12813 ## this test should work in ash, bash, pdksh (ksh), zsh
12814 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12816 if test -n ""; then
12820 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12823 ## Workaround for broken Debian gcc version string:
12824 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12826 ## -V: Workaround for python
12830 ## Assume and hunt for dotted version multiplet.
12831 ## use eval trickery, because we cannot use multi-level $() instead of ``
12832 ## for compatibility reasons.
12834 ## grab the first version number in --version output.
12835 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12836 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12839 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12840 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12843 if test -z "$_ver"; then
12844 ## If empty, try date [fontforge]
12845 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12847 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12854 echo "$ver" | awk -F. '
12856 if ($3) {three = $3}
12859 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12862 echo "" | awk -F. '
12864 if ($3) {three = $3}
12867 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12869 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12870 $as_echo "$ver" >&6; }
12871 if test "$num" -lt "$req"; then
12873 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12876 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
12877 eval `echo $vervar=$num`
12878 ## AC_SUBST(`eval echo $vervar`)
12883 for ac_prog in pngtopnm
12885 # Extract the first word of "$ac_prog", so it can be a program name with args.
12886 set dummy $ac_prog; ac_word=$2
12887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if test "${ac_cv_prog_NETPBM+set}" = set; then
12890 $as_echo_n "(cached) " >&6
12892 if test -n "$NETPBM"; then
12893 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_prog_NETPBM="$ac_prog"
12903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 NETPBM=$ac_cv_prog_NETPBM
12913 if test -n "$NETPBM"; then
12914 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
12915 $as_echo "$NETPBM" >&6; }
12917 { $as_echo "$as_me:$LINENO: result: no" >&5
12918 $as_echo "no" >&6; }
12922 test -n "$NETPBM" && break
12924 test -n "$NETPBM" || NETPBM="no"
12928 r="`eval echo '$'"NETPBM"`"
12929 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
12932 ##STEPMAKE_WARN(cannot find . )
12936 if test $? -ne 0; then
12938 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pngtopnm\"`\"
12940 if test "OPTIONAL" = "REQUIRED"; then
12941 command="echo ERROR: pngtopnm not found"
12942 # abort configure process here?
12944 command="- echo pngtopnm not found"
12946 eval "NETPBM"='$command'
12952 if test $? -eq 0 -a -n ""; then
12954 r="`eval echo '$'"NETPBM"`"
12955 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12956 $as_echo_n "checking $r version... " >&6; }
12958 ## which doesn't work in ash, if /usr/bin/which isn't installed
12959 ## type -p doesn't work in ash
12960 ## command -v doesn't work in zsh
12961 ## command -v "$r" 2>&1
12962 ## this test should work in ash, bash, pdksh (ksh), zsh
12963 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12965 if test -n ""; then
12969 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12972 ## Workaround for broken Debian gcc version string:
12973 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12975 ## -V: Workaround for python
12979 ## Assume and hunt for dotted version multiplet.
12980 ## use eval trickery, because we cannot use multi-level $() instead of ``
12981 ## for compatibility reasons.
12983 ## grab the first version number in --version output.
12984 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12985 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12988 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12989 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12992 if test -z "$_ver"; then
12993 ## If empty, try date [fontforge]
12994 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12996 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13003 echo "$ver" | awk -F. '
13005 if ($3) {three = $3}
13008 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13011 echo "" | awk -F. '
13013 if ($3) {three = $3}
13016 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13018 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13019 $as_echo "$ver" >&6; }
13020 if test "$num" -lt "$req"; then
13022 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13025 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
13026 eval `echo $vervar=$num`
13027 ## AC_SUBST(`eval echo $vervar`)
13032 for ac_prog in convert
13034 # Extract the first word of "$ac_prog", so it can be a program name with args.
13035 set dummy $ac_prog; ac_word=$2
13036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
13039 $as_echo_n "(cached) " >&6
13041 if test -n "$IMAGEMAGICK"; then
13042 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_prog_IMAGEMAGICK="$ac_prog"
13052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
13062 if test -n "$IMAGEMAGICK"; then
13063 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
13064 $as_echo "$IMAGEMAGICK" >&6; }
13066 { $as_echo "$as_me:$LINENO: result: no" >&5
13067 $as_echo "no" >&6; }
13071 test -n "$IMAGEMAGICK" && break
13073 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
13077 r="`eval echo '$'"IMAGEMAGICK"`"
13078 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
13081 ##STEPMAKE_WARN(cannot find . )
13085 if test $? -ne 0; then
13087 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"convert\"`\"
13089 if test "OPTIONAL" = "REQUIRED"; then
13090 command="echo ERROR: convert not found"
13091 # abort configure process here?
13093 command="- echo convert not found"
13095 eval "IMAGEMAGICK"='$command'
13101 if test $? -eq 0 -a -n ""; then
13103 r="`eval echo '$'"IMAGEMAGICK"`"
13104 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13105 $as_echo_n "checking $r version... " >&6; }
13107 ## which doesn't work in ash, if /usr/bin/which isn't installed
13108 ## type -p doesn't work in ash
13109 ## command -v doesn't work in zsh
13110 ## command -v "$r" 2>&1
13111 ## this test should work in ash, bash, pdksh (ksh), zsh
13112 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13114 if test -n ""; then
13118 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13121 ## Workaround for broken Debian gcc version string:
13122 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13124 ## -V: Workaround for python
13128 ## Assume and hunt for dotted version multiplet.
13129 ## use eval trickery, because we cannot use multi-level $() instead of ``
13130 ## for compatibility reasons.
13132 ## grab the first version number in --version output.
13133 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13134 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13137 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13138 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13141 if test -z "$_ver"; then
13142 ## If empty, try date [fontforge]
13143 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13145 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13152 echo "$ver" | awk -F. '
13154 if ($3) {three = $3}
13157 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13160 echo "" | awk -F. '
13162 if ($3) {three = $3}
13165 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13167 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13168 $as_echo "$ver" >&6; }
13169 if test "$num" -lt "$req"; then
13171 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13174 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
13175 eval `echo $vervar=$num`
13176 ## AC_SUBST(`eval echo $vervar`)
13180 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
13184 # Extract the first word of "$ac_prog", so it can be a program name with args.
13185 set dummy $ac_prog; ac_word=$2
13186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13187 $as_echo_n "checking for $ac_word... " >&6; }
13188 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
13189 $as_echo_n "(cached) " >&6
13191 if test -n "$ZIPDOC"; then
13192 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_ZIPDOC="$ac_prog"
13202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 ZIPDOC=$ac_cv_prog_ZIPDOC
13212 if test -n "$ZIPDOC"; then
13213 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
13214 $as_echo "$ZIPDOC" >&6; }
13216 { $as_echo "$as_me:$LINENO: result: no" >&5
13217 $as_echo "no" >&6; }
13221 test -n "$ZIPDOC" && break
13223 test -n "$ZIPDOC" || ZIPDOC="no"
13227 r="`eval echo '$'"ZIPDOC"`"
13228 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
13231 ##STEPMAKE_WARN(cannot find . )
13235 if test $? -ne 0; then
13237 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"zip\"`\"
13239 if test "OPTIONAL" = "REQUIRED"; then
13240 command="echo ERROR: zip not found"
13241 # abort configure process here?
13243 command="- echo zip not found"
13245 eval "ZIPDOC"='$command'
13251 if test $? -eq 0 -a -n ""; then
13253 r="`eval echo '$'"ZIPDOC"`"
13254 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13255 $as_echo_n "checking $r version... " >&6; }
13257 ## which doesn't work in ash, if /usr/bin/which isn't installed
13258 ## type -p doesn't work in ash
13259 ## command -v doesn't work in zsh
13260 ## command -v "$r" 2>&1
13261 ## this test should work in ash, bash, pdksh (ksh), zsh
13262 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13264 if test -n ""; then
13268 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13271 ## Workaround for broken Debian gcc version string:
13272 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13274 ## -V: Workaround for python
13278 ## Assume and hunt for dotted version multiplet.
13279 ## use eval trickery, because we cannot use multi-level $() instead of ``
13280 ## for compatibility reasons.
13282 ## grab the first version number in --version output.
13283 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13284 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13287 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13288 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13291 if test -z "$_ver"; then
13292 ## If empty, try date [fontforge]
13293 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13295 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13302 echo "$ver" | awk -F. '
13304 if ($3) {three = $3}
13307 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13310 echo "" | awk -F. '
13312 if ($3) {three = $3}
13315 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13317 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13318 $as_echo "$ver" >&6; }
13319 if test "$num" -lt "$req"; then
13321 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13324 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
13325 eval `echo $vervar=$num`
13326 ## AC_SUBST(`eval echo $vervar`)
13331 for ac_prog in rsync
13333 # Extract the first word of "$ac_prog", so it can be a program name with args.
13334 set dummy $ac_prog; ac_word=$2
13335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_RSYNC+set}" = set; then
13338 $as_echo_n "(cached) " >&6
13340 if test -n "$RSYNC"; then
13341 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350 ac_cv_prog_RSYNC="$ac_prog"
13351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 RSYNC=$ac_cv_prog_RSYNC
13361 if test -n "$RSYNC"; then
13362 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
13363 $as_echo "$RSYNC" >&6; }
13365 { $as_echo "$as_me:$LINENO: result: no" >&5
13366 $as_echo "no" >&6; }
13370 test -n "$RSYNC" && break
13372 test -n "$RSYNC" || RSYNC="no"
13376 r="`eval echo '$'"RSYNC"`"
13377 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
13380 ##STEPMAKE_WARN(cannot find . )
13384 if test $? -ne 0; then
13386 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"rsync\"`\"
13388 if test "OPTIONAL" = "REQUIRED"; then
13389 command="echo ERROR: rsync not found"
13390 # abort configure process here?
13392 command="- echo rsync not found"
13394 eval "RSYNC"='$command'
13400 if test $? -eq 0 -a -n ""; then
13402 r="`eval echo '$'"RSYNC"`"
13403 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13404 $as_echo_n "checking $r version... " >&6; }
13406 ## which doesn't work in ash, if /usr/bin/which isn't installed
13407 ## type -p doesn't work in ash
13408 ## command -v doesn't work in zsh
13409 ## command -v "$r" 2>&1
13410 ## this test should work in ash, bash, pdksh (ksh), zsh
13411 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13413 if test -n ""; then
13417 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13420 ## Workaround for broken Debian gcc version string:
13421 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13423 ## -V: Workaround for python
13427 ## Assume and hunt for dotted version multiplet.
13428 ## use eval trickery, because we cannot use multi-level $() instead of ``
13429 ## for compatibility reasons.
13431 ## grab the first version number in --version output.
13432 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13433 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13436 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13437 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13440 if test -z "$_ver"; then
13441 ## If empty, try date [fontforge]
13442 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13444 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13451 echo "$ver" | awk -F. '
13453 if ($3) {three = $3}
13456 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13459 echo "" | awk -F. '
13461 if ($3) {three = $3}
13464 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13466 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13467 $as_echo "$ver" >&6; }
13468 if test "$num" -lt "$req"; then
13470 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13473 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
13474 eval `echo $vervar=$num`
13475 ## AC_SUBST(`eval echo $vervar`)
13481 cat >>confdefs.h <<_ACEOF
13482 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
13486 # must also have local.make if configure fails.
13489 if test "$reloc_b$rpath_b" = "yesno"; then
13491 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
13492 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
13497 # Gather requirements and generate output.
13500 # undo expanding of explicit --infodir=/usr/share
13501 # to ease install-time override with prefix=...
13502 strip=`echo $includedir | eval sed s@^$prefix@@`
13503 if test "$includedir" = "`eval echo $prefix$strip`"; then
13504 includedir='${prefix}'$strip''
13506 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
13507 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
13508 libdir='${exec_prefix}'$strip''
13510 strip=`echo $infodir | eval sed s@^$datarootdir@@`
13511 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
13512 infodir='${datarootdir}'$strip''
13514 strip=`echo $mandir | eval sed s@^$datarootdir@@`
13515 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
13516 mandir='${datarootdir}'$strip''
13523 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
13525 cat >confcache <<\_ACEOF
13526 # This file is a shell script that caches the results of configure
13527 # tests run on this system so they can be shared between configure
13528 # scripts and configure runs, see configure's option --config-cache.
13529 # It is not useful on other systems. If it contains results you don't
13530 # want to keep, you may remove or edit it.
13532 # config.status only pays attention to the cache file if you give it
13533 # the --recheck option to rerun configure.
13535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13537 # following values.
13541 # The following way of writing the cache mishandles newlines in values,
13542 # but we know of no workaround that is simple, portable, and efficient.
13543 # So, we kill variables containing newlines.
13544 # Ultrix sh set writes to stderr and can't be redirected directly,
13545 # and sets the high bit in the cache file unless we assign to the vars.
13547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13548 eval ac_val=\$$ac_var
13552 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13556 _ | IFS | as_nl) ;; #(
13557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13558 *) $as_unset $ac_var ;;
13564 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13565 *${as_nl}ac_space=\ *)
13566 # `set' does not quote correctly, so add quotes (double-quote
13567 # substitution turns \\\\ into \\, and sed turns \\ into \).
13570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13573 # `set' quotes correctly as required by POSIX, so do not add quotes.
13574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13587 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13588 if test -w "$cache_file"; then
13589 test "x$cache_file" != "x/dev/null" &&
13590 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13591 $as_echo "$as_me: updating cache $cache_file" >&6;}
13592 cat confcache >$cache_file
13594 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13595 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13601 # Let make expand exec_prefix.
13602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13604 DEFS=-DHAVE_CONFIG_H
13608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13609 # 1. Remove the extension, and $U if already installed.
13610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13613 # will be set to the directory where LIBOBJS objects are built.
13614 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13615 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13617 LIBOBJS=$ac_libobjs
13619 LTLIBOBJS=$ac_ltlibobjs
13623 : ${CONFIG_STATUS=./config.status}
13625 ac_clean_files_save=$ac_clean_files
13626 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13627 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13628 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13629 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631 # Generated by $as_me.
13632 # Run this file to recreate the current configuration.
13633 # Compiler output produced by configure, useful for debugging
13634 # configure, is in config.log if it exists.
13637 ac_cs_recheck=false
13639 SHELL=\${CONFIG_SHELL-$SHELL}
13642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13643 ## --------------------- ##
13644 ## M4sh Initialization. ##
13645 ## --------------------- ##
13647 # Be more Bourne compatible
13648 DUALCASE=1; export DUALCASE # for MKS sh
13649 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13653 # is contrary to our usage. Disable this feature.
13654 alias -g '${1+"$@"}'='"$@"'
13655 setopt NO_GLOB_SUBST
13657 case `(set -o) 2>/dev/null` in
13658 *posix*) set -o posix ;;
13667 # Avoid depending upon Character Ranges.
13668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13671 as_cr_digits='0123456789'
13672 as_cr_alnum=$as_cr_Letters$as_cr_digits
13677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13681 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13682 as_echo='printf %s\n'
13683 as_echo_n='printf %s'
13685 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13686 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13687 as_echo_n='/usr/ucb/echo -n'
13689 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13690 as_echo_n_body='eval
13694 expr "X$arg" : "X\\(.*\\)$as_nl";
13695 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13697 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13699 export as_echo_n_body
13700 as_echo_n='sh -c $as_echo_n_body as_echo'
13702 export as_echo_body
13703 as_echo='sh -c $as_echo_body as_echo'
13706 # The user is always right.
13707 if test "${PATH_SEPARATOR+set}" != set; then
13709 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13710 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13715 # Support unset when possible.
13716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13724 # We need space, tab and new line, in precisely that order. Quoting is
13725 # there to prevent editors from complaining about space-tab.
13726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13727 # splitting by setting IFS to empty value.)
13730 # Find who we are. Look in the path if we contain no directory separator.
13732 *[\\/]* ) as_myself=$0 ;;
13733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13737 test -z "$as_dir" && as_dir=.
13738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13744 # We did not find ourselves, most probably we were run as `sh COMMAND'
13745 # in which case we are not to be found in the path.
13746 if test "x$as_myself" = x; then
13749 if test ! -f "$as_myself"; then
13750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13751 { (exit 1); exit 1; }
13754 # Work around bugs in pre-3.0 UWIN ksh.
13755 for as_var in ENV MAIL MAILPATH
13756 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13768 # Required to use basename.
13769 if expr a : '\(a\)' >/dev/null 2>&1 &&
13770 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13776 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13777 as_basename=basename
13783 # Name of the executable.
13784 as_me=`$as_basename -- "$0" ||
13785 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13786 X"$0" : 'X\(//\)$' \| \
13787 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13789 sed '/^.*\/\([^/][^/]*\)\/*$/{
13808 as_lineno_1=$LINENO
13809 as_lineno_2=$LINENO
13810 test "x$as_lineno_1" != "x$as_lineno_2" &&
13811 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13813 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13814 # uniformly replaced by the line number. The first 'sed' inserts a
13815 # line-number line after each line using $LINENO; the second 'sed'
13816 # does the real work. The second script uses 'N' to pair each
13817 # line-number line with the line containing $LINENO, and appends
13818 # trailing '-' during substitution so that $LINENO is not a special
13819 # case at line end.
13820 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13821 # scripts with optimization help from Paolo Bonzini. Blame Lee
13822 # E. McMahon (1931-1989) for sed's syntax. :-)
13834 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13837 ' >$as_me.lineno &&
13838 chmod +x "$as_me.lineno" ||
13839 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13840 { (exit 1); exit 1; }; }
13842 # Don't try to exec as it changes $[0], causing all sort of problems
13843 # (the dirname of $[0] is not the place where we might find the
13844 # original and so on. Autoconf is especially sensitive to this).
13845 . "./$as_me.lineno"
13846 # Exit status is that of the last command.
13851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13857 ECHO_C= ECHO_N= ECHO_T=
13858 case `echo -n x` in
13860 case `echo 'x\c'` in
13861 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13867 if expr a : '\(a\)' >/dev/null 2>&1 &&
13868 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13874 rm -f conf$$ conf$$.exe conf$$.file
13875 if test -d conf$$.dir; then
13876 rm -f conf$$.dir/conf$$.file
13879 mkdir conf$$.dir 2>/dev/null
13881 if (echo >conf$$.file) 2>/dev/null; then
13882 if ln -s conf$$.file conf$$ 2>/dev/null; then
13884 # ... but there are two gotchas:
13885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13887 # In both cases, we have to default to `cp -p'.
13888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13890 elif ln conf$$.file conf$$ 2>/dev/null; then
13898 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13899 rmdir conf$$.dir 2>/dev/null
13901 if mkdir -p . 2>/dev/null; then
13904 test -d ./-p && rmdir ./-p
13908 if test -x / >/dev/null 2>&1; then
13909 as_test_x='test -x'
13911 if ls -dL / >/dev/null 2>&1; then
13918 if test -d "$1"; then
13924 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13925 ???[sx]*):;;*)false;;esac;fi
13929 as_executable_p=$as_test_x
13931 # Sed expression to map a string onto a valid CPP name.
13932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13934 # Sed expression to map a string onto a valid variable name.
13935 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13940 # Save the log message, to keep $[0] and so on meaningful, and to
13941 # report actual input values of CONFIG_FILES etc. instead of their
13942 # values after options handling.
13944 This file was extended by $as_me, which was
13945 generated by GNU Autoconf 2.63. Invocation command line was
13947 CONFIG_FILES = $CONFIG_FILES
13948 CONFIG_HEADERS = $CONFIG_HEADERS
13949 CONFIG_LINKS = $CONFIG_LINKS
13950 CONFIG_COMMANDS = $CONFIG_COMMANDS
13953 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13958 case $ac_config_files in *"
13959 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13962 case $ac_config_headers in *"
13963 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13968 # Files that config.status was made for.
13969 config_files="$ac_config_files"
13970 config_headers="$ac_config_headers"
13974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13976 \`$as_me' instantiates files from templates according to the
13977 current configuration.
13979 Usage: $0 [OPTION]... [FILE]...
13981 -h, --help print this help, then exit
13982 -V, --version print version number and configuration settings, then exit
13983 -q, --quiet, --silent
13984 do not print progress messages
13985 -d, --debug don't remove temporary files
13986 --recheck update $as_me by reconfiguring in the same conditions
13987 --file=FILE[:TEMPLATE]
13988 instantiate the configuration file FILE
13989 --header=FILE[:TEMPLATE]
13990 instantiate the configuration header FILE
13992 Configuration files:
13995 Configuration headers:
13998 Report bugs to <bug-autoconf@gnu.org>."
14001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004 configured by $0, generated by GNU Autoconf 2.63,
14005 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14007 Copyright (C) 2008 Free Software Foundation, Inc.
14008 This config.status script is free software; the Free Software Foundation
14009 gives unlimited permission to copy, distribute and modify it."
14013 test -n "\$AWK" || AWK=awk
14016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14017 # The default lists apply if the user does not specify any file.
14023 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14024 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14035 # Handling of the options.
14036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14038 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14039 $as_echo "$ac_cs_version"; exit ;;
14040 --debug | --debu | --deb | --de | --d | -d )
14042 --file | --fil | --fi | --f )
14045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14047 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14048 ac_need_defaults=false;;
14049 --header | --heade | --head | --hea )
14052 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14054 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14055 ac_need_defaults=false;;
14057 # Conflict between --help and --header
14058 { $as_echo "$as_me: error: ambiguous option: $1
14059 Try \`$0 --help' for more information." >&2
14060 { (exit 1); exit 1; }; };;
14061 --help | --hel | -h )
14062 $as_echo "$ac_cs_usage"; exit ;;
14063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14067 # This is an error.
14068 -*) { $as_echo "$as_me: error: unrecognized option: $1
14069 Try \`$0 --help' for more information." >&2
14070 { (exit 1); exit 1; }; } ;;
14072 *) ac_config_targets="$ac_config_targets $1"
14073 ac_need_defaults=false ;;
14079 ac_configure_extra_args=
14081 if $ac_cs_silent; then
14083 ac_configure_extra_args="$ac_configure_extra_args --silent"
14087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 if \$ac_cs_recheck; then
14089 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14091 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14092 CONFIG_SHELL='$SHELL'
14093 export CONFIG_SHELL
14098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14103 ## Running $as_me. ##
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 # Handling of arguments.
14115 for ac_config_target in $ac_config_targets
14117 case $ac_config_target in
14118 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
14119 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
14121 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14122 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14123 { (exit 1); exit 1; }; };;
14128 # If the user did not use the arguments to specify the items to instantiate,
14129 # then the envvar interface is used. Set only those that are not.
14130 # We use the long form for the default assignment because of an extremely
14131 # bizarre bug on SunOS 4.1.3.
14132 if $ac_need_defaults; then
14133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14137 # Have a temporary directory for convenience. Make it in the build tree
14138 # simply because there is no reason against having it here, and in addition,
14139 # creating and moving files from /tmp can sometimes cause problems.
14140 # Hook for its removal unless debugging.
14141 # Note that there is a small window in which the directory will not be cleaned:
14142 # after its creation but before its name has been assigned to `$tmp'.
14146 trap 'exit_status=$?
14147 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14149 trap '{ (exit 1); exit 1; }' 1 2 13 15
14151 # Create a (secure) tmp directory for tmp files.
14154 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14155 test -n "$tmp" && test -d "$tmp"
14158 tmp=./conf$$-$RANDOM
14159 (umask 077 && mkdir "$tmp")
14162 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14163 { (exit 1); exit 1; }
14166 # Set up the scripts for CONFIG_FILES section.
14167 # No need to generate them if there are no CONFIG_FILES.
14168 # This happens for instance with `./config.status config.h'.
14169 if test -n "$CONFIG_FILES"; then
14173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14177 ac_cs_awk_cr=$ac_cr
14180 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14185 echo "cat >conf$$subs.awk <<_ACEOF" &&
14186 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14188 } >conf$$subs.sh ||
14189 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14190 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14191 { (exit 1); exit 1; }; }
14192 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14194 for ac_last_try in false false false false false :; do
14195 . ./conf$$subs.sh ||
14196 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14197 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14198 { (exit 1); exit 1; }; }
14200 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14201 if test $ac_delim_n = $ac_delim_num; then
14203 elif $ac_last_try; then
14204 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14205 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14206 { (exit 1); exit 1; }; }
14208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14211 rm -f conf$$subs.sh
14213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14218 s/^/S["/; s/!.*/"]=/
14228 s/\(.\{148\}\).*/\1/
14230 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14242 s/\(.\{148\}\).*/\1/
14244 s/["\\]/\\&/g; s/^/"/; s/$/"/
14248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14253 ' <conf$$subs.awk | sed '
14258 ' >>$CONFIG_STATUS || ac_write_fail=1
14259 rm -f conf$$subs.awk
14260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14262 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14263 for (key in S) S_is_set[key] = 1
14269 nfields = split(line, field, "@")
14271 len = length(field[1])
14272 for (i = 2; i < nfields; i++) {
14274 keylen = length(key)
14275 if (S_is_set[key]) {
14277 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14278 len += length(value) + length(field[++i])
14289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14290 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14291 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14294 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14295 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14296 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14297 { (exit 1); exit 1; }; }
14300 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14301 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14302 # trailing colons and then remove the whole line if VPATH becomes empty
14303 # (actually we leave an empty line to preserve line numbers).
14304 if test "x$srcdir" = x.; then
14305 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14306 s/:*\$(srcdir):*/:/
14307 s/:*\${srcdir}:*/:/
14309 s/^\([^=]*=[ ]*\):*/\1/
14315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316 fi # test -n "$CONFIG_FILES"
14318 # Set up the scripts for CONFIG_HEADERS section.
14319 # No need to generate them if there are no CONFIG_HEADERS.
14320 # This happens for instance with `./config.status Makefile'.
14321 if test -n "$CONFIG_HEADERS"; then
14322 cat >"$tmp/defines.awk" <<\_ACAWK ||
14326 # Transform confdefs.h into an awk script `defines.awk', embedded as
14327 # here-document in config.status, that substitutes the proper values into
14328 # config.h.in to produce config.h.
14330 # Create a delimiter string that does not exist in confdefs.h, to ease
14331 # handling of long lines.
14333 for ac_last_try in false false :; do
14334 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14335 if test -z "$ac_t"; then
14337 elif $ac_last_try; then
14338 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14339 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14340 { (exit 1); exit 1; }; }
14342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14346 # For the awk script, D is an array of macro values keyed by name,
14347 # likewise P contains macro parameters if any. Preserve backslash
14348 # newline sequences.
14350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14352 s/.\{148\}/&'"$ac_delim"'/g
14355 s/^[ ]*#[ ]*define[ ][ ]*/ /
14362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14364 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14369 D["\1"]=" \3\\\\\\n"\\/p
14371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14376 s/.\{148\}/&'"$ac_delim"'/g
14381 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14384 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14386 ' <confdefs.h | sed '
14387 s/'"$ac_delim"'/"\\\
14388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14391 for (key in D) D_is_set[key] = 1
14394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14396 split(line, arg, " ")
14397 if (arg[1] == "#") {
14401 defundef = substr(arg[1], 2)
14404 split(mac1, mac2, "(") #)
14406 prefix = substr(line, 1, index(line, defundef) - 1)
14407 if (D_is_set[macro]) {
14408 # Preserve the white space surrounding the "#".
14409 print prefix "define", macro P[macro] D[macro]
14412 # Replace #undef with comments. This is necessary, for example,
14413 # in the case of _POSIX_SOURCE, which is predefined and required
14414 # on some systems where configure will not decide to define it.
14415 if (defundef == "undef") {
14416 print "/*", prefix defundef, macro, "*/"
14424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14425 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14426 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14427 { (exit 1); exit 1; }; }
14428 fi # test -n "$CONFIG_HEADERS"
14431 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14436 :[FHLC]) ac_mode=$ac_tag; continue;;
14438 case $ac_mode$ac_tag in
14440 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14441 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14442 { (exit 1); exit 1; }; };;
14443 :[FH]-) ac_tag=-:-;;
14444 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14461 -) ac_f="$tmp/stdin";;
14462 *) # Look for the file first in the build tree, then in the source tree
14463 # (if the path is not absolute). The absolute path cannot be DOS-style,
14464 # because $ac_f cannot contain `:'.
14468 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14470 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14471 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14472 { (exit 1); exit 1; }; };;
14474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14475 ac_file_inputs="$ac_file_inputs '$ac_f'"
14478 # Let's still pretend it is `configure' which instantiates (i.e., don't
14479 # use $as_me), people would be surprised to read:
14480 # /* config.h. Generated by config.status. */
14481 configure_input='Generated from '`
14482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14484 if test x"$ac_file" != x-; then
14485 configure_input="$ac_file. $configure_input"
14486 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14487 $as_echo "$as_me: creating $ac_file" >&6;}
14489 # Neutralize special characters interpreted by sed in replacement strings.
14490 case $configure_input in #(
14491 *\&* | *\|* | *\\* )
14492 ac_sed_conf_input=`$as_echo "$configure_input" |
14493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14494 *) ac_sed_conf_input=$configure_input;;
14498 *:-:* | *:-) cat >"$tmp/stdin" \
14499 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14501 { (exit 1); exit 1; }; } ;;
14506 ac_dir=`$as_dirname -- "$ac_file" ||
14507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14508 X"$ac_file" : 'X\(//\)[^/]' \| \
14509 X"$ac_file" : 'X\(//\)$' \| \
14510 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14511 $as_echo X"$ac_file" |
14512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14516 /^X\(\/\/\)[^/].*/{
14531 -*) as_dir=./$as_dir;;
14533 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14538 *) as_qdir=$as_dir;;
14540 as_dirs="'$as_qdir' $as_dirs"
14541 as_dir=`$as_dirname -- "$as_dir" ||
14542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14543 X"$as_dir" : 'X\(//\)[^/]' \| \
14544 X"$as_dir" : 'X\(//\)$' \| \
14545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14546 $as_echo X"$as_dir" |
14547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14551 /^X\(\/\/\)[^/].*/{
14564 test -d "$as_dir" && break
14566 test -z "$as_dirs" || eval "mkdir $as_dirs"
14567 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14568 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14569 { (exit 1); exit 1; }; }; }
14573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14576 # A ".." for each directory in $ac_dir_suffix.
14577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14578 case $ac_top_builddir_sub in
14579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14583 ac_abs_top_builddir=$ac_pwd
14584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14585 # for backward compatibility:
14586 ac_top_builddir=$ac_top_build_prefix
14589 .) # We are building in place.
14591 ac_top_srcdir=$ac_top_builddir_sub
14592 ac_abs_top_srcdir=$ac_pwd ;;
14593 [\\/]* | ?:[\\/]* ) # Absolute name.
14594 ac_srcdir=$srcdir$ac_dir_suffix;
14595 ac_top_srcdir=$srcdir
14596 ac_abs_top_srcdir=$srcdir ;;
14597 *) # Relative name.
14598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14599 ac_top_srcdir=$ac_top_build_prefix$srcdir
14600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614 # If the template does not know about datarootdir, expand it.
14615 # FIXME: This hack should be removed a few years after 2.60.
14616 ac_datarootdir_hack=; ac_datarootdir_seen=
14629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14630 *datarootdir*) ac_datarootdir_seen=yes;;
14631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14632 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14636 ac_datarootdir_hack='
14637 s&@datadir@&$datadir&g
14638 s&@docdir@&$docdir&g
14639 s&@infodir@&$infodir&g
14640 s&@localedir@&$localedir&g
14641 s&@mandir@&$mandir&g
14642 s&\\\${datarootdir}&$datarootdir&g' ;;
14646 # Neutralize VPATH when `$srcdir' = `.'.
14647 # Shell code in configure.ac might set extrasub.
14648 # FIXME: do we really want to maintain this feature?
14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14650 ac_sed_extra="$ac_vpsub
14653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14656 s|@configure_input@|$ac_sed_conf_input|;t t
14657 s&@top_builddir@&$ac_top_builddir_sub&;t t
14658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14659 s&@srcdir@&$ac_srcdir&;t t
14660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14661 s&@top_srcdir@&$ac_top_srcdir&;t t
14662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14663 s&@builddir@&$ac_builddir&;t t
14664 s&@abs_builddir@&$ac_abs_builddir&;t t
14665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14666 $ac_datarootdir_hack
14668 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14669 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14670 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14671 { (exit 1); exit 1; }; }
14673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14674 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14676 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14677 which seems to be undefined. Please make sure it is defined." >&5
14678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14679 which seems to be undefined. Please make sure it is defined." >&2;}
14683 -) cat "$tmp/out" && rm -f "$tmp/out";;
14684 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14686 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14687 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14688 { (exit 1); exit 1; }; }
14694 if test x"$ac_file" != x-; then
14696 $as_echo "/* $configure_input */" \
14697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14698 } >"$tmp/config.h" \
14699 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14700 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14701 { (exit 1); exit 1; }; }
14702 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14703 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14704 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14707 mv "$tmp/config.h" "$ac_file" \
14708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14710 { (exit 1); exit 1; }; }
14713 $as_echo "/* $configure_input */" \
14714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14715 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14716 $as_echo "$as_me: error: could not create -" >&2;}
14717 { (exit 1); exit 1; }; }
14727 { (exit 0); exit 0; }
14729 chmod +x $CONFIG_STATUS
14730 ac_clean_files=$ac_clean_files_save
14732 test $ac_write_fail = 0 ||
14733 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14734 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14735 { (exit 1); exit 1; }; }
14738 # configure is writing to config.log, and then calls config.status.
14739 # config.status does its own redirection, appending to config.log.
14740 # Unfortunately, on DOS this fails, as config.log is still kept open
14741 # by configure, so config.status won't be able to write to it; its
14742 # output is simply discarded. So we exec the FD to /dev/null,
14743 # effectively closing config.log, so it can be properly (re)opened and
14744 # appended to by config.status. When coming back to configure, we
14745 # need to make the FD available again.
14746 if test "$no_create" != yes; then
14748 ac_config_status_args=
14749 test "$silent" = yes &&
14750 ac_config_status_args="$ac_config_status_args --quiet"
14752 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14754 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14755 # would make configure fail if this is the last instruction.
14756 $ac_cs_success || { (exit 1); exit 1; }
14758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14759 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14764 if test -n "$OPTIONAL"; then
14766 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
14769 if test -n "$REQUIRED"; then
14771 echo "ERROR: Please install required programs: $REQUIRED"
14774 if test -n "$UNSUPPORTED"; then
14776 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
14779 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
14781 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
14782 if test -f config.cache ; then
14783 echo "Remove config.cache before rerunning ./configure"
14787 if test -n "$REQUIRED$UNSUPPORTED"; then
14788 rm -f $srcdir/GNUmakefile
14792 # regular in-place build
14793 # test for srcdir_build = yes ?
14794 if test "$srcdir_build" = "yes"; then
14795 rm -f $srcdir/GNUmakefile
14796 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
14797 chmod 444 $srcdir/GNUmakefile
14799 if test -f $srcdir/GNUmakefile; then
14801 Source directory already configured. Please clean the source directory
14803 make -C $srcdir distclean
14805 and rerun configure.
14810 abssrcdir="`cd $srcdir; pwd`"
14811 absbuilddir="`pwd`"
14812 for d in 2 3 4 5 ; do
14813 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
14814 case "$abssrcdir" in
14816 # source is below build directory, always copy
14819 case "$abssrcdir/${mf#./}" in
14821 # find descended into build directory, don't copy
14826 cat <<EOF | $PYTHON - > $mf
14827 print 'depth=' + ('../' * ( $d-1 ) )
14828 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14829 print 'include \$(configure-srcdir)/$mf'
14830 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
14833 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
14834 case "$abssrcdir" in
14836 # source is below build directory, always copy
14839 case "$abssrcdir/${mf#./}" in
14841 # find descended into build directory, don't copy
14846 cat <<EOF | $PYTHON - > $mf
14847 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14848 print 'include \$(configure-srcdir)/$mf'
14854 cat <<EOF > GNUmakefile
14856 include config\$(if \$(conf),-\$(conf),).make
14857 include \$(configure-srcdir)/GNUmakefile.in
14859 chmod 444 GNUmakefile
14864 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
14866 if make top-doc 1>/dev/null 2>&1; then
14867 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
14868 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
14874 make$mc all to build LilyPond
14875 make$mc install to install LilyPond
14876 make$mc help to see all possible targets
14878 Edit local.make for local Makefile overrides.