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>
701 build_package_datadir
737 ugh_ugh_autoconf250_builddir
765 program_transform_name
777 enable_option_checking
794 ac_precious_vars='build_alias
811 # Initialize some variables set by options.
813 ac_init_version=false
814 ac_unrecognized_opts=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE}'
850 infodir='${datarootdir}/info'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
918 { (exit 1); exit 1; }; }
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
928 eval enable_$ac_useropt=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
945 { (exit 1); exit 1; }; }
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
970 -help | --help | --hel | --he | -h)
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval with_$ac_useropt=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=no ;;
1180 # Obsolete; use --with-x.
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1198 Try \`$0 --help' for more information." >&2
1199 { (exit 1); exit 1; }; }
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1206 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1207 { (exit 1); exit 1; }; }
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1225 { (exit 1); exit 1; }; }
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1231 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1232 { (exit 1); exit 1; }; } ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1250 # Be sure to have absolute directory names.
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1256 { (exit 1); exit 1; }; }
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1264 target=$target_alias
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1271 If a cross compiler is detected then cross compile mode will be used." >&2
1272 elif test "x$build_alias" != "x$host_alias"; then
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280 test "$silent" = yes && exec 6>/dev/null
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1287 { (exit 1); exit 1; }; }
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1290 { (exit 1); exit 1; }; }
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1330 { (exit 1); exit 1; }; }
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1335 { (exit 1); exit 1; }; }
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 # Report the --help message.
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1361 \`configure' configures this package to adapt to many kinds of systems.
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1368 Defaults for the options are specified in brackets.
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1392 For better control, use the options below.
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 if test -n "$ac_init_help"; then
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1433 do `make conf=CONF' to get output in ./out-CONF
1434 --enable-documentation build Documentation. Default: on
1435 --enable-gui compile with experimental GNOME output. Default: off
1436 --enable-relocation compile with dynamic relocation. Default: off
1437 --enable-rpath hardcode runtime library path. Default: off
1438 --enable-static-gxx link libstdc++.a statically. Default: off
1439 --enable-debugging compile with debugging info. Default: on
1440 --enable-optimising compile with optimising. Default: on
1441 --enable-profiling compile with gprof support. Default: off
1442 --enable-pipe compile with -pipe. Default: on
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-ncsb-dir=DIR location of Century Schoolbook fonts.
1448 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1449 --with-lang=LANG use LANG as language to emit messages
1450 --with-python-include=DIR
1451 location of the python include dir
1452 --with-python-lib=NAME name of the python lib
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CXX C++ compiler command
1463 CXXFLAGS C++ compiler flags
1464 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1465 the first program found out of: `bison -y', `byacc', `yacc'.
1466 YFLAGS The list of arguments that will be passed by default to $YACC.
1467 This script will default YFLAGS to the empty string to avoid a
1468 default value of `-d' given by some make applications.
1469 CXXCPP C++ preprocessor
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1504 .) # We are building in place.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1538 generated by GNU Autoconf 2.63
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1551 It was created by $as_me, which was
1552 generated by GNU Autoconf 2.63. Invocation command line was
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1577 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 $as_echo "PATH: $as_dir"
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1612 ac_must_keep_next=false
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1623 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629 if test $ac_must_keep_next = true; then
1630 ac_must_keep_next=false # Got value, back to normal.
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 -* ) ac_must_keep_next=true ;;
1644 ac_configure_args="$ac_configure_args '$ac_arg'"
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log. We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1668 # The following way of writing the cache mishandles newlines in values,
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1675 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1676 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1679 _ | IFS | as_nl) ;; #(
1680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 $as_echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 $as_echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 $as_echo "$as_me: caught signal $ac_signal"
1746 $as_echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer an explicitly selected file to automatically selected ones.
1791 if test -n "$CONFIG_SITE"; then
1792 ac_site_file1=$CONFIG_SITE
1793 elif test "x$prefix" != xNONE; then
1794 ac_site_file1=$prefix/share/config.site
1795 ac_site_file2=$prefix/etc/config.site
1797 ac_site_file1=$ac_default_prefix/share/config.site
1798 ac_site_file2=$ac_default_prefix/etc/config.site
1800 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1802 test "x$ac_site_file" = xNONE && continue
1803 if test -r "$ac_site_file"; then
1804 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1806 sed 's/^/| /' "$ac_site_file" >&5
1811 if test -r "$cache_file"; then
1812 # Some versions of bash will fail to source /dev/null (special
1813 # files actually), so we avoid doing that.
1814 if test -f "$cache_file"; then
1815 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 $as_echo "$as_me: loading cache $cache_file" >&6;}
1818 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819 *) . "./$cache_file";;
1823 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 $as_echo "$as_me: creating cache $cache_file" >&6;}
1828 # Check that the precious variables saved in the cache have kept the same
1830 ac_cache_corrupted=false
1831 for ac_var in $ac_precious_vars; do
1832 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833 eval ac_new_set=\$ac_env_${ac_var}_set
1834 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835 eval ac_new_val=\$ac_env_${ac_var}_value
1836 case $ac_old_set,$ac_new_set in
1838 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1840 ac_cache_corrupted=: ;;
1842 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1844 ac_cache_corrupted=: ;;
1847 if test "x$ac_old_val" != "x$ac_new_val"; then
1848 # differences in whitespace do not lead to failure.
1849 ac_old_val_w=`echo x $ac_old_val`
1850 ac_new_val_w=`echo x $ac_new_val`
1851 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1852 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854 ac_cache_corrupted=:
1856 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1857 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1858 eval $ac_var=\$ac_old_val
1860 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1861 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1862 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1863 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1866 # Pass precious variables to config.status.
1867 if test "$ac_new_set" = set; then
1869 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 *) ac_arg=$ac_var=$ac_new_val ;;
1872 case " $ac_configure_args " in
1873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1874 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1878 if $ac_cache_corrupted; then
1879 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1881 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1882 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1883 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1884 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1885 { (exit 1); exit 1; }; }
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 # Bootstrap StepMake configure
1915 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1932 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 # For stepmake package:
1947 # AC_CONFIG_AUX_DIR(bin)
1950 # Make sure we can run config.sub.
1951 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1952 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1953 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1954 { (exit 1); exit 1; }; }
1956 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1957 $as_echo_n "checking build system type... " >&6; }
1958 if test "${ac_cv_build+set}" = set; then
1959 $as_echo_n "(cached) " >&6
1961 ac_build_alias=$build_alias
1962 test "x$ac_build_alias" = x &&
1963 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1964 test "x$ac_build_alias" = x &&
1965 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1966 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1967 { (exit 1); exit 1; }; }
1968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1969 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1970 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1974 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1975 $as_echo "$ac_cv_build" >&6; }
1976 case $ac_cv_build in
1978 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1979 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1980 { (exit 1); exit 1; }; };;
1983 ac_save_IFS=$IFS; IFS='-'
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2291 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2293 if test -z "$_ver"; then
2294 ## If empty, try date [fontforge]
2295 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2297 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2304 echo "$ver" | awk -F. '
2306 if ($3) {three = $3}
2309 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2314 if ($3) {three = $3}
2317 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2319 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2320 $as_echo "$ver" >&6; }
2321 if test "$num" -lt "$req"; then
2323 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2326 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2327 eval `echo $vervar=$num`
2328 ## AC_SUBST(`eval echo $vervar`)
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if test "${ac_cv_prog_FIND+set}" = set; then
2340 $as_echo_n "(cached) " >&6
2342 if test -n "$FIND"; then
2343 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_FIND="$ac_prog"
2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 FIND=$ac_cv_prog_FIND
2363 if test -n "$FIND"; then
2364 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2365 $as_echo "$FIND" >&6; }
2367 { $as_echo "$as_me:$LINENO: result: no" >&5
2368 $as_echo "no" >&6; }
2372 test -n "$FIND" && break
2374 test -n "$FIND" || FIND="no"
2378 r="`eval echo '$'"FIND"`"
2379 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2382 ##STEPMAKE_WARN(cannot find . )
2386 if test $? -ne 0; then
2388 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2390 if test "REQUIRED" = "REQUIRED"; then
2391 command="echo ERROR: find not found"
2392 # abort configure process here?
2394 command="- echo find not found"
2396 eval "FIND"='$command'
2402 if test $? -eq 0 -a -n ""; then
2404 r="`eval echo '$'"FIND"`"
2405 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2406 $as_echo_n "checking $r version... " >&6; }
2408 ## which doesn't work in ash, if /usr/bin/which isn't installed
2409 ## type -p doesn't work in ash
2410 ## command -v doesn't work in zsh
2411 ## command -v "$r" 2>&1
2412 ## this test should work in ash, bash, pdksh (ksh), zsh
2413 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2419 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2422 ## Workaround for broken Debian gcc version string:
2423 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2425 ## -V: Workaround for python
2429 ## Assume and hunt for dotted version multiplet.
2430 ## use eval trickery, because we cannot use multi-level $() instead of ``
2431 ## for compatibility reasons.
2433 ## grab the first version number in --version output.
2434 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2436 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2438 if test -z "$_ver"; then
2439 ## If empty, try date [fontforge]
2440 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2442 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2449 echo "$ver" | awk -F. '
2451 if ($3) {three = $3}
2454 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2459 if ($3) {three = $3}
2462 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2464 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2465 $as_echo "$ver" >&6; }
2466 if test "$num" -lt "$req"; then
2468 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2471 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2472 eval `echo $vervar=$num`
2473 ## AC_SUBST(`eval echo $vervar`)
2481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if test "${ac_cv_prog_TAR+set}" = set; then
2486 $as_echo_n "(cached) " >&6
2488 if test -n "$TAR"; then
2489 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_TAR="$ac_prog"
2499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 if test -n "$TAR"; then
2510 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2511 $as_echo "$TAR" >&6; }
2513 { $as_echo "$as_me:$LINENO: result: no" >&5
2514 $as_echo "no" >&6; }
2518 test -n "$TAR" && break
2520 test -n "$TAR" || TAR="no"
2524 r="`eval echo '$'"TAR"`"
2525 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2528 ##STEPMAKE_WARN(cannot find . )
2532 if test $? -ne 0; then
2534 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2536 if test "REQUIRED" = "REQUIRED"; then
2537 command="echo ERROR: tar not found"
2538 # abort configure process here?
2540 command="- echo tar not found"
2542 eval "TAR"='$command'
2548 if test $? -eq 0 -a -n ""; then
2550 r="`eval echo '$'"TAR"`"
2551 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2552 $as_echo_n "checking $r version... " >&6; }
2554 ## which doesn't work in ash, if /usr/bin/which isn't installed
2555 ## type -p doesn't work in ash
2556 ## command -v doesn't work in zsh
2557 ## command -v "$r" 2>&1
2558 ## this test should work in ash, bash, pdksh (ksh), zsh
2559 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2565 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2568 ## Workaround for broken Debian gcc version string:
2569 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2571 ## -V: Workaround for python
2575 ## Assume and hunt for dotted version multiplet.
2576 ## use eval trickery, because we cannot use multi-level $() instead of ``
2577 ## for compatibility reasons.
2579 ## grab the first version number in --version output.
2580 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2582 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2584 if test -z "$_ver"; then
2585 ## If empty, try date [fontforge]
2586 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2588 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2595 echo "$ver" | awk -F. '
2597 if ($3) {three = $3}
2600 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2605 if ($3) {three = $3}
2608 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2610 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2611 $as_echo "$ver" >&6; }
2612 if test "$num" -lt "$req"; then
2614 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2617 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2618 eval `echo $vervar=$num`
2619 ## AC_SUBST(`eval echo $vervar`)
2624 if test "$(echo 2)" != "2" ||
2625 test "x`uname`" = "xHP-UX"; then
2626 # Extract the first word of "ksh", so it can be a program name with args.
2627 set dummy ksh; ac_word=$2
2628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_path_KSH+set}" = set; then
2631 $as_echo_n "(cached) " >&6
2635 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2658 if test -n "$KSH"; then
2659 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2660 $as_echo "$KSH" >&6; }
2662 { $as_echo "$as_me:$LINENO: result: no" >&5
2663 $as_echo "no" >&6; }
2667 # Extract the first word of "bash", so it can be a program name with args.
2668 set dummy bash; ac_word=$2
2669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_path_BASH+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2676 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2698 BASH=$ac_cv_path_BASH
2699 if test -n "$BASH"; then
2700 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2701 $as_echo "$BASH" >&6; }
2703 { $as_echo "$as_me:$LINENO: result: no" >&5
2704 $as_echo "no" >&6; }
2709 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2710 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2713 # Extract the first word of "bash", so it can be a program name with args.
2714 set dummy bash; ac_word=$2
2715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_path_SHELL+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2722 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2744 SHELL=$ac_cv_path_SHELL
2745 if test -n "$SHELL"; then
2746 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2747 $as_echo "$SHELL" >&6; }
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2756 # Extract the first word of "bash", so it can be a program name with args.
2757 set dummy bash; ac_word=$2
2758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_path_BASH+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2765 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2787 BASH=$ac_cv_path_BASH
2788 if test -n "$BASH"; then
2789 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2790 $as_echo "$BASH" >&6; }
2792 { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2802 { $as_echo "$as_me:$LINENO: checking for python" >&5
2803 $as_echo_n "checking for python... " >&6; }
2804 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2805 { $as_echo "$as_me:$LINENO: result: $python" >&5
2806 $as_echo "$python" >&6; }
2807 if ! $python -V > /dev/null 2>&1 ; then
2808 #AC_MSG_WARN([cannot execute $python])
2809 PYTHON='echo no python'
2813 r="`eval echo '$'"python"`"
2814 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2815 $as_echo_n "checking $r version... " >&6; }
2817 ## which doesn't work in ash, if /usr/bin/which isn't installed
2818 ## type -p doesn't work in ash
2819 ## command -v doesn't work in zsh
2820 ## command -v "$r" 2>&1
2821 ## this test should work in ash, bash, pdksh (ksh), zsh
2822 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2828 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2831 ## Workaround for broken Debian gcc version string:
2832 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2834 ## -V: Workaround for python
2838 ## Assume and hunt for dotted version multiplet.
2839 ## use eval trickery, because we cannot use multi-level $() instead of ``
2840 ## for compatibility reasons.
2842 ## grab the first version number in --version output.
2843 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2845 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2847 if test -z "$_ver"; then
2848 ## If empty, try date [fontforge]
2849 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2851 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2858 echo "$ver" | awk -F. '
2860 if ($3) {three = $3}
2863 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2866 echo "1.5" | awk -F. '
2868 if ($3) {three = $3}
2871 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2873 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2874 $as_echo "$ver" >&6; }
2875 if test "$num" -lt "$req"; then
2877 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2880 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2881 eval `echo $vervar=$num`
2882 ## AC_SUBST(`eval echo $vervar`)
2884 if test -z "$pv"; then
2890 if test -n "$pv"; then
2892 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2895 # clear cached value since arg 2 might point us to a new binary
2896 unset ac_cv_path_PYTHON
2898 # Extract the first word of "$PYTHON", so it can be a program name with args.
2899 set dummy $PYTHON; ac_word=$2
2900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_path_PYTHON+set}" = set; then
2903 $as_echo_n "(cached) " >&6
2907 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 PYTHON=$ac_cv_path_PYTHON
2929 if test -n "$PYTHON"; then
2930 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2931 $as_echo "$PYTHON" >&6; }
2933 { $as_echo "$as_me:$LINENO: result: no" >&5
2934 $as_echo "no" >&6; }
2941 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2942 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2943 if test "$?" = 1; then
2944 warn='make (Please install *GNU* make)'
2945 # STEPMAKE_WARN($warn)
2947 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2964 cat >>confdefs.h <<_ACEOF
2965 #define DIRSEP '${DIRSEP}'
2968 cat >>confdefs.h <<_ACEOF
2969 #define PATHSEP '${PATHSEP}'
2977 if test "$datadir" = "\${prefix}/share"; then
2978 datadir='${prefix}/share'
2981 if test "$prefix" = "NONE"; then
2982 presome=${ac_default_prefix}
2985 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
2987 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
2988 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
2989 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
2994 cat >>confdefs.h <<_ACEOF
2995 #define DATADIR "${DATADIR}"
2998 cat >>confdefs.h <<_ACEOF
2999 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3005 if test "$libdir" = "\${exec_prefix}/lib"; then
3006 libdir='${exec_prefix}/lib'
3008 presome=$exec_prefix
3009 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3011 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3012 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3016 cat >>confdefs.h <<_ACEOF
3017 #define LIBDIR "${LIBDIR}"
3020 cat >>confdefs.h <<_ACEOF
3021 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3027 # List a file that identifies your package.
3030 # Move to aclocal.m4?
3031 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3034 # Uncomment the configuration options your package needs.
3037 # Check whether --enable-documentation was given.
3038 if test "${enable_documentation+set}" = set; then
3039 enableval=$enable_documentation; DOCUMENTATION=$enableval
3045 # Check whether --enable-gui was given.
3046 if test "${enable_gui+set}" = set; then
3047 enableval=$enable_gui; gui_b=$enableval
3053 # Check whether --with-ncsb-dir was given.
3054 if test "${with_ncsb_dir+set}" = set; then
3055 withval=$with_ncsb_dir; NCSB_DIR=$withval
3062 # Check whether --enable-relocation was given.
3063 if test "${enable_relocation+set}" = set; then
3064 enableval=$enable_relocation; reloc_b=$enableval
3069 # Check whether --enable-rpath was given.
3070 if test "${enable_rpath+set}" = set; then
3071 enableval=$enable_rpath; rpath_b=$enableval
3075 LINK_GXX_STATICALLY=no
3076 # Check whether --enable-static-gxx was given.
3077 if test "${enable_static_gxx+set}" = set; then
3078 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3083 # must come before any header checks
3085 # -O is necessary to get inlining
3087 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3088 LDFLAGS=${LDFLAGS-""}
3094 # Check whether --enable-debugging was given.
3095 if test "${enable_debugging+set}" = set; then
3096 enableval=$enable_debugging; debug_b=$enableval
3100 # Check whether --enable-optimising was given.
3101 if test "${enable_optimising+set}" = set; then
3102 enableval=$enable_optimising; optimise_b=$enableval
3106 # Check whether --enable-profiling was given.
3107 if test "${enable_profiling+set}" = set; then
3108 enableval=$enable_profiling; profile_b=$enableval
3112 # Check whether --enable-pipe was given.
3113 if test "${enable_pipe+set}" = set; then
3114 enableval=$enable_pipe; pipe_b=$enableval
3118 if test "$optimise_b" = yes; then
3119 cat >>confdefs.h <<\_ACEOF
3123 DEFINES="$DEFINES -DNDEBUG"
3124 OPTIMIZE=" -O2 -finline-functions"
3127 if test $profile_b = yes; then
3129 OPTIMIZE="$OPTIMIZE -pg"
3132 if test $debug_b = yes; then
3133 OPTIMIZE="$OPTIMIZE -g"
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3174 { $as_echo "$as_me:$LINENO: result: no" >&5
3175 $as_echo "no" >&6; }
3180 if test -z "$ac_cv_prog_CC"; then
3182 # Extract the first word of "gcc", so it can be a program name with args.
3183 set dummy gcc; ac_word=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_ac_ct_CC="gcc"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3218 if test "x$ac_ct_CC" = x; then
3221 case $cross_compiling:$ac_tool_warned in
3223 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225 ac_tool_warned=yes ;;
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}cc; ac_word=$2
3237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then
3240 $as_echo_n "(cached) " >&6
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_CC="${ac_tool_prefix}cc"
3253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3267 { $as_echo "$as_me:$LINENO: result: no" >&5
3268 $as_echo "no" >&6; }
3274 if test -z "$CC"; then
3275 # Extract the first word of "cc", so it can be a program name with args.
3276 set dummy cc; ac_word=$2
3277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_CC+set}" = set; then
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3294 ac_prog_rejected=yes
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test $ac_prog_rejected = yes; then
3306 # We found a bogon in the path, so make sure we never use it.
3307 set dummy $ac_cv_prog_CC
3309 if test $# != 0; then
3310 # We chose a different compiler from the bogus one.
3311 # However, it has the same basename, so the bogon will be chosen
3312 # first if we set CC to just the basename; use the full file name.
3314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3324 { $as_echo "$as_me:$LINENO: result: no" >&5
3325 $as_echo "no" >&6; }
3330 if test -z "$CC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog in cl.exe
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3366 { $as_echo "$as_me:$LINENO: result: no" >&5
3367 $as_echo "no" >&6; }
3371 test -n "$CC" && break
3374 if test -z "$CC"; then
3376 for ac_prog in cl.exe
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CC="$ac_prog"
3396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3411 $as_echo "no" >&6; }
3415 test -n "$ac_ct_CC" && break
3418 if test "x$ac_ct_CC" = x; then
3421 case $cross_compiling:$ac_tool_warned in
3423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3434 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details." >&5
3438 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }; }
3442 # Provide some information about the compiler.
3443 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3446 { (ac_try="$ac_compiler --version >&5"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453 (eval "$ac_compiler --version >&5") 2>&5
3455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }
3457 { (ac_try="$ac_compiler -v >&5"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464 (eval "$ac_compiler -v >&5") 2>&5
3466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }
3468 { (ac_try="$ac_compiler -V >&5"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_compiler -V >&5") 2>&5
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3495 ac_clean_files_save=$ac_clean_files
3496 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3497 # Try to create an executable without -o first, disregard a.out.
3498 # It will help us diagnose broken compilers, and finding out an intuition
3500 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3501 $as_echo_n "checking for C compiler default output file name... " >&6; }
3502 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504 # The possible output files:
3505 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3508 for ac_file in $ac_files
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3512 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3517 if { (ac_try="$ac_link_default"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524 (eval "$ac_link_default") 2>&5
3526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; then
3528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3529 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3530 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3531 # so that the user can short-circuit this test for compilers unknown to
3533 for ac_file in $ac_files ''
3535 test -f "$ac_file" || continue
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3540 # We found the default executable, but exeext='' is most
3544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 # We set ac_cv_exeext here because the later test for it is not
3549 # safe: cross compilers may not add the suffix if given an `-o'
3550 # argument, so we may need to know it at that point already.
3551 # Even if this section looks crufty: it has the advantage of
3558 test "$ac_cv_exeext" = no && ac_cv_exeext=
3564 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3565 $as_echo "$ac_file" >&6; }
3566 if test -z "$ac_file"; then
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3573 See \`config.log' for more details." >&5
3574 $as_echo "$as_me: error: C compiler cannot create executables
3575 See \`config.log' for more details." >&2;}
3576 { (exit 77); exit 77; }; }; }
3579 ac_exeext=$ac_cv_exeext
3581 # Check that the compiler produces executables we can run. If not, either
3582 # the compiler is broken, or we cross compile.
3583 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3584 $as_echo_n "checking whether the C compiler works... " >&6; }
3585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3586 # If not cross compiling, check that we can run a simple program.
3587 if test "$cross_compiling" != yes; then
3588 if { ac_try='./$ac_file'
3589 { (case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594 $as_echo "$ac_try_echo") >&5
3595 (eval "$ac_try") 2>&5
3597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3601 if test "$cross_compiling" = maybe; then
3604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3607 If you meant to cross compile, use \`--host'.
3608 See \`config.log' for more details." >&5
3609 $as_echo "$as_me: error: cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }; }
3616 { $as_echo "$as_me:$LINENO: result: yes" >&5
3617 $as_echo "yes" >&6; }
3619 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3620 ac_clean_files=$ac_clean_files_save
3621 # Check that the compiler produces executables we can run. If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3626 $as_echo "$cross_compiling" >&6; }
3628 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3629 $as_echo_n "checking for suffix of executables... " >&6; }
3630 if { (ac_try="$ac_link"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3637 (eval "$ac_link") 2>&5
3639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; then
3641 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3642 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3643 # work properly (i.e., refer to `conftest.exe'), while it won't with
3645 for ac_file in conftest.exe conftest conftest.*; do
3646 test -f "$ac_file" || continue
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3658 See \`config.log' for more details." >&5
3659 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3660 See \`config.log' for more details." >&2;}
3661 { (exit 1); exit 1; }; }; }
3664 rm -f conftest$ac_cv_exeext
3665 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3666 $as_echo "$ac_cv_exeext" >&6; }
3668 rm -f conftest.$ac_ext
3669 EXEEXT=$ac_cv_exeext
3671 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if test "${ac_cv_objext+set}" = set; then
3674 $as_echo_n "(cached) " >&6
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3691 rm -f conftest.o conftest.obj
3692 if { (ac_try="$ac_compile"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698 $as_echo "$ac_try_echo") >&5
3699 (eval "$ac_compile") 2>&5
3701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; then
3703 for ac_file in conftest.o conftest.obj conftest.*; do
3704 test -f "$ac_file" || continue;
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3718 See \`config.log' for more details." >&5
3719 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details." >&2;}
3721 { (exit 1); exit 1; }; }; }
3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3727 $as_echo "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3730 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3733 $as_echo_n "(cached) " >&6
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3753 rm -f conftest.$ac_objext
3754 if { (ac_try="$ac_compile"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3760 $as_echo "$ac_try_echo") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } && {
3768 test -z "$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3770 } && test -s conftest.$ac_objext; then
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3785 if test $ac_compiler_gnu = yes; then
3790 ac_test_CFLAGS=${CFLAGS+set}
3791 ac_save_CFLAGS=$CFLAGS
3792 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3794 if test "${ac_cv_prog_cc_g+set}" = set; then
3795 $as_echo_n "(cached) " >&6
3797 ac_save_c_werror_flag=$ac_c_werror_flag
3798 ac_c_werror_flag=yes
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3862 $as_echo "$ac_try_echo") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3875 $as_echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 ac_c_werror_flag=$ac_save_c_werror_flag
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3905 grep -v '^ *+' conftest.er1 >conftest.err
3907 cat conftest.err >&5
3908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3931 $as_echo "$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933 CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935 if test "$GCC" = yes; then
3941 if test "$GCC" = yes; then
3947 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 if test "${ac_cv_prog_cc_c89+set}" = set; then
3950 $as_echo_n "(cached) " >&6
3952 ac_cv_prog_cc_c89=no
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3962 #include <sys/types.h>
3963 #include <sys/stat.h>
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3978 s = g (p, va_arg (v,int));
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3984 function prototypes and stuff, but not '\xHH' hex character constants.
3985 These don't provoke an error unfortunately, instead are silently treated
3986 as 'x'. The following induces an error, until -std is added to get
3987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3988 array size at least. It's necessary to write '\x00'==0 to get something
3989 that's true only with -std. */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993 inside strings and character constants. */
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014 CC="$ac_save_CC $ac_arg"
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4022 $as_echo "$ac_try_echo") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } && {
4030 test -z "$ac_c_werror_flag" ||
4031 test ! -s conftest.err
4032 } && test -s conftest.$ac_objext; then
4033 ac_cv_prog_cc_c89=$ac_arg
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4041 rm -f core conftest.err conftest.$ac_objext
4042 test "x$ac_cv_prog_cc_c89" != "xno" && break
4044 rm -f conftest.$ac_ext
4049 case "x$ac_cv_prog_cc_c89" in
4051 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4052 $as_echo "none needed" >&6; } ;;
4054 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4055 $as_echo "unsupported" >&6; } ;;
4057 CC="$CC $ac_cv_prog_cc_c89"
4058 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4059 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076 r="`eval echo '$'"CC"`"
4077 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4080 ##STEPMAKE_WARN(cannot find . )
4084 if test $? -ne 0; then
4086 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4088 if test "" = "REQUIRED"; then
4089 command="echo ERROR: cc not found"
4090 # abort configure process here?
4092 command="- echo cc not found"
4094 eval "CC"='$command'
4103 # If -pipe requested, test if it works and add to CFLAGS.
4104 if test "$pipe_b" = yes; then
4105 save_cflags="$CFLAGS"
4106 CFLAGS=" -pipe $CFLAGS";
4107 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4108 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4109 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4110 $as_echo_n "(cached) " >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4146 stepmake_cv_cflags_pipe=yes
4148 $as_echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 stepmake_cv_cflags_pipe=no
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4157 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4159 if test $stepmake_cv_cflags_pipe = yes; then
4160 OPTIMIZE="$OPTIMIZE -pipe"
4164 CFLAGS="$CFLAGS $OPTIMIZE"
4165 CPPFLAGS=${CPPFLAGS-""}
4167 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4168 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4169 save_cflags="$CFLAGS"
4172 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4173 $as_echo "-mieee" >&6; }
4174 CFLAGS=" -mieee $CFLAGS"
4177 { $as_echo "$as_me:$LINENO: result: none" >&5
4178 $as_echo "none" >&6; }
4190 # Extract the first word of "fc-list", so it can be a program name with args.
4191 set dummy fc-list; ac_word=$2
4192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_FCLIST+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4197 if test -n "$FCLIST"; then
4198 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_FCLIST="fc-list"
4208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 FCLIST=$ac_cv_prog_FCLIST
4218 if test -n "$FCLIST"; then
4219 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4220 $as_echo "$FCLIST" >&6; }
4222 { $as_echo "$as_me:$LINENO: result: no" >&5
4223 $as_echo "no" >&6; }
4227 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4228 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4230 if test "$NCSB_DIR" != "" ; then
4231 NCSB_SOURCE_FILES=""
4232 for f in c059013l c059016l c059033l c059036l; do
4233 if test ! -f "$NCSB_DIR/$f.pfb"; then
4235 { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4236 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4240 NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $NCSB_SOURCE_FILES"
4244 if test "$FCLIST" != ""; then
4245 for style in Roman Italic "Bold Italic" Bold; do
4246 NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4248 NCSB_FILE=`echo $NCSB_FILE | sed 's/^\(.*\):$/\1/g'`
4249 NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4250 NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
4253 { $as_echo "$as_me:$LINENO: result: not found" >&5
4254 $as_echo "not found" >&6; }
4255 echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4256 echo "or use --with-ncsb-dir"
4259 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4260 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4266 { $as_echo "$as_me:$LINENO: checking for python" >&5
4267 $as_echo_n "checking for python... " >&6; }
4268 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4269 { $as_echo "$as_me:$LINENO: result: $python" >&5
4270 $as_echo "$python" >&6; }
4271 if ! $python -V > /dev/null 2>&1 ; then
4272 #AC_MSG_WARN([cannot execute $python])
4273 PYTHON='echo no python'
4277 r="`eval echo '$'"python"`"
4278 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4279 $as_echo_n "checking $r version... " >&6; }
4281 ## which doesn't work in ash, if /usr/bin/which isn't installed
4282 ## type -p doesn't work in ash
4283 ## command -v doesn't work in zsh
4284 ## command -v "$r" 2>&1
4285 ## this test should work in ash, bash, pdksh (ksh), zsh
4286 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4292 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4295 ## Workaround for broken Debian gcc version string:
4296 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4298 ## -V: Workaround for python
4302 ## Assume and hunt for dotted version multiplet.
4303 ## use eval trickery, because we cannot use multi-level $() instead of ``
4304 ## for compatibility reasons.
4306 ## grab the first version number in --version output.
4307 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
4309 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
4311 if test -z "$_ver"; then
4312 ## If empty, try date [fontforge]
4313 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4315 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4322 echo "$ver" | awk -F. '
4324 if ($3) {three = $3}
4327 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4330 echo "2.4" | awk -F. '
4332 if ($3) {three = $3}
4335 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4337 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4338 $as_echo "$ver" >&6; }
4339 if test "$num" -lt "$req"; then
4341 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4344 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4345 eval `echo $vervar=$num`
4346 ## AC_SUBST(`eval echo $vervar`)
4348 if test -z "$pv"; then
4354 if test -n "$pv"; then
4356 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4359 # clear cached value since arg 2 might point us to a new binary
4360 unset ac_cv_path_PYTHON
4362 # Extract the first word of "$PYTHON", so it can be a program name with args.
4363 set dummy $PYTHON; ac_word=$2
4364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_path_PYTHON+set}" = set; then
4367 $as_echo_n "(cached) " >&6
4371 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 PYTHON=$ac_cv_path_PYTHON
4393 if test -n "$PYTHON"; then
4394 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4395 $as_echo "$PYTHON" >&6; }
4397 { $as_echo "$as_me:$LINENO: result: no" >&5
4398 $as_echo "no" >&6; }
4405 if test "$GCC" = "yes"; then
4407 r="`eval echo '$'"CC"`"
4408 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4409 $as_echo_n "checking $r version... " >&6; }
4411 ## which doesn't work in ash, if /usr/bin/which isn't installed
4412 ## type -p doesn't work in ash
4413 ## command -v doesn't work in zsh
4414 ## command -v "$r" 2>&1
4415 ## this test should work in ash, bash, pdksh (ksh), zsh
4416 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4422 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4425 ## Workaround for broken Debian gcc version string:
4426 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4428 ## -V: Workaround for python
4432 ## Assume and hunt for dotted version multiplet.
4433 ## use eval trickery, because we cannot use multi-level $() instead of ``
4434 ## for compatibility reasons.
4436 ## grab the first version number in --version output.
4437 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
4439 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
4441 if test -z "$_ver"; then
4442 ## If empty, try date [fontforge]
4443 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4445 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4452 echo "$ver" | awk -F. '
4454 if ($3) {three = $3}
4457 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4460 echo "3.4" | awk -F. '
4462 if ($3) {three = $3}
4465 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4467 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4468 $as_echo "$ver" >&6; }
4469 if test "$num" -lt "$req"; then
4471 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4474 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
4475 eval `echo $vervar=$num`
4476 ## AC_SUBST(`eval echo $vervar`)
4479 warn="$CC (Please install *GNU* cc)"
4481 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4488 ac_cpp='$CXXCPP $CPPFLAGS'
4489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498 if test -z "$CXX"; then
4499 if test -n "$CCC"; then
4502 if test -n "$ac_tool_prefix"; then
4503 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_CXX+set}" = set; then
4510 $as_echo_n "(cached) " >&6
4512 if test -n "$CXX"; then
4513 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 if test -n "$CXX"; then
4534 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4535 $as_echo "$CXX" >&6; }
4537 { $as_echo "$as_me:$LINENO: result: no" >&5
4538 $as_echo "no" >&6; }
4542 test -n "$CXX" && break
4545 if test -z "$CXX"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$ac_ct_CXX"; then
4557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_ac_ct_CXX="$ac_prog"
4567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4577 if test -n "$ac_ct_CXX"; then
4578 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4579 $as_echo "$ac_ct_CXX" >&6; }
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$ac_ct_CXX" && break
4589 if test "x$ac_ct_CXX" = x; then
4592 case $cross_compiling:$ac_tool_warned in
4594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4604 # Provide some information about the compiler.
4605 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4608 { (ac_try="$ac_compiler --version >&5"
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615 (eval "$ac_compiler --version >&5") 2>&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }
4619 { (ac_try="$ac_compiler -v >&5"
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compiler -v >&5") 2>&5
4628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }
4630 { (ac_try="$ac_compiler -V >&5"
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compiler -V >&5") 2>&5
4639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }
4642 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4645 $as_echo_n "(cached) " >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4665 rm -f conftest.$ac_objext
4666 if { (ac_try="$ac_compile"
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673 (eval "$ac_compile") 2>conftest.er1
4675 grep -v '^ *+' conftest.er1 >conftest.err
4677 cat conftest.err >&5
4678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } && {
4680 test -z "$ac_cxx_werror_flag" ||
4681 test ! -s conftest.err
4682 } && test -s conftest.$ac_objext; then
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4695 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4697 if test $ac_compiler_gnu = yes; then
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4709 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4710 ac_cxx_werror_flag=yes
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736 (eval "$ac_compile") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_cxx_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
4746 ac_cv_prog_cxx_g=yes
4748 $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_cxx_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4787 $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815 (eval "$ac_compile") 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } && {
4822 test -z "$ac_cxx_werror_flag" ||
4823 test ! -s conftest.err
4824 } && test -s conftest.$ac_objext; then
4825 ac_cv_prog_cxx_g=yes
4827 $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4842 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4843 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4844 if test "$ac_test_CXXFLAGS" = set; then
4845 CXXFLAGS=$ac_save_CXXFLAGS
4846 elif test $ac_cv_prog_cxx_g = yes; then
4847 if test "$GXX" = yes; then
4853 if test "$GXX" = yes; then
4860 ac_cpp='$CXXCPP $CPPFLAGS'
4861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4867 r="`eval echo '$'"CXX"`"
4868 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
4871 ##STEPMAKE_WARN(cannot find . )
4875 if test $? -ne 0; then
4877 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
4879 if test "REQUIRED" = "REQUIRED"; then
4880 command="echo ERROR: c++ not found"
4881 # abort configure process here?
4883 command="- echo c++ not found"
4885 eval "CXX"='$command'
4892 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
4900 if test "$GXX" = "yes"; then
4902 r="`eval echo '$'"CXX"`"
4903 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4904 $as_echo_n "checking $r version... " >&6; }
4906 ## which doesn't work in ash, if /usr/bin/which isn't installed
4907 ## type -p doesn't work in ash
4908 ## command -v doesn't work in zsh
4909 ## command -v "$r" 2>&1
4910 ## this test should work in ash, bash, pdksh (ksh), zsh
4911 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4917 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4920 ## Workaround for broken Debian gcc version string:
4921 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4923 ## -V: Workaround for python
4927 ## Assume and hunt for dotted version multiplet.
4928 ## use eval trickery, because we cannot use multi-level $() instead of ``
4929 ## for compatibility reasons.
4931 ## grab the first version number in --version output.
4932 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
4934 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
4936 if test -z "$_ver"; then
4937 ## If empty, try date [fontforge]
4938 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4940 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4947 echo "$ver" | awk -F. '
4949 if ($3) {three = $3}
4952 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4955 echo "3.4" | awk -F. '
4957 if ($3) {three = $3}
4960 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4962 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4963 $as_echo "$ver" >&6; }
4964 if test "$num" -lt "$req"; then
4966 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4969 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
4970 eval `echo $vervar=$num`
4971 ## AC_SUBST(`eval echo $vervar`)
4974 warn="$CXX (Please install *GNU* c++)"
4976 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4981 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
4982 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
4983 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
4984 $as_echo_n "(cached) " >&6
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4994 template <class T> struct foo { static int baz; };
4995 template <class T> int foo<T>::baz = 1;
5000 return foo<int>::baz;
5005 rm -f conftest.$ac_objext conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5012 $as_echo "$ac_try_echo") >&5
5013 (eval "$ac_link") 2>conftest.er1
5015 grep -v '^ *+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } && {
5020 test -z "$ac_cxx_werror_flag" ||
5021 test ! -s conftest.err
5022 } && test -s conftest$ac_exeext && {
5023 test "$cross_compiling" = yes ||
5024 $as_test_x conftest$ac_exeext
5026 stepmake_cv_need_explicit_instantiation=no
5028 $as_echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5031 stepmake_cv_need_explicit_instantiation=yes
5034 rm -rf conftest.dSYM
5035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5036 conftest$ac_exeext conftest.$ac_ext
5038 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5039 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5040 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5041 cat >>confdefs.h <<\_ACEOF
5042 #define NEED_EXPLICIT_INSTANTIATION 1
5049 ac_cpp='$CXXCPP $CPPFLAGS'
5050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5054 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5055 $as_echo_n "checking for stl.data () method... " >&6; }
5056 if test "${stepmake_cv_stl_data_method+set}" = set; then
5057 $as_echo_n "(cached) " >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5067 using namespace std;
5069 void *p = v.data ();
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_cxx_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5097 stepmake_cv_stl_data_method=yes
5099 $as_echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 stepmake_cv_stl_data_method=no
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5108 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5109 if test $stepmake_cv_stl_data_method = yes; then
5111 cat >>confdefs.h <<\_ACEOF
5112 #define HAVE_STL_DATA_METHOD 1
5117 ac_cpp='$CXXCPP $CPPFLAGS'
5118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_AR+set}" = set; then
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$AR"; then
5135 ac_cv_prog_AR="$AR" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_AR="$ac_prog"
5145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 if test -n "$AR"; then
5156 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5157 $as_echo "$AR" >&6; }
5159 { $as_echo "$as_me:$LINENO: result: no" >&5
5160 $as_echo "no" >&6; }
5164 test -n "$AR" && break
5166 test -n "$AR" || AR="no"
5170 r="`eval echo '$'"AR"`"
5171 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
5174 ##STEPMAKE_WARN(cannot find . )
5178 if test $? -ne 0; then
5180 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
5182 if test "REQUIRED" = "REQUIRED"; then
5183 command="echo ERROR: ar not found"
5184 # abort configure process here?
5186 command="- echo ar not found"
5188 eval "AR"='$command'
5194 if test $? -eq 0 -a -n ""; then
5196 r="`eval echo '$'"AR"`"
5197 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5198 $as_echo_n "checking $r version... " >&6; }
5200 ## which doesn't work in ash, if /usr/bin/which isn't installed
5201 ## type -p doesn't work in ash
5202 ## command -v doesn't work in zsh
5203 ## command -v "$r" 2>&1
5204 ## this test should work in ash, bash, pdksh (ksh), zsh
5205 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5211 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5214 ## Workaround for broken Debian gcc version string:
5215 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5217 ## -V: Workaround for python
5221 ## Assume and hunt for dotted version multiplet.
5222 ## use eval trickery, because we cannot use multi-level $() instead of ``
5223 ## for compatibility reasons.
5225 ## grab the first version number in --version output.
5226 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5228 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5230 if test -z "$_ver"; then
5231 ## If empty, try date [fontforge]
5232 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5234 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5241 echo "$ver" | awk -F. '
5243 if ($3) {three = $3}
5246 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5251 if ($3) {three = $3}
5254 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5256 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5257 $as_echo "$ver" >&6; }
5258 if test "$num" -lt "$req"; then
5260 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
5263 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
5264 eval `echo $vervar=$num`
5265 ## AC_SUBST(`eval echo $vervar`)
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_prog_RANLIB+set}" = set; then
5275 $as_echo_n "(cached) " >&6
5277 if test -n "$RANLIB"; then
5278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 RANLIB=$ac_cv_prog_RANLIB
5298 if test -n "$RANLIB"; then
5299 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5300 $as_echo "$RANLIB" >&6; }
5302 { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5308 if test -z "$ac_cv_prog_RANLIB"; then
5309 ac_ct_RANLIB=$RANLIB
5310 # Extract the first word of "ranlib", so it can be a program name with args.
5311 set dummy ranlib; ac_word=$2
5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$ac_ct_RANLIB"; then
5318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_RANLIB="ranlib"
5328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5338 if test -n "$ac_ct_RANLIB"; then
5339 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5340 $as_echo "$ac_ct_RANLIB" >&6; }
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5346 if test "x$ac_ct_RANLIB" = x; then
5349 case $cross_compiling:$ac_tool_warned in
5351 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5355 RANLIB=$ac_ct_RANLIB
5358 RANLIB="$ac_cv_prog_RANLIB"
5363 r="`eval echo '$'"RANLIB"`"
5364 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
5367 ##STEPMAKE_WARN(cannot find . )
5371 if test $? -ne 0; then
5373 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
5375 if test "REQUIRED" = "REQUIRED"; then
5376 command="echo ERROR: ranlib not found"
5377 # abort configure process here?
5379 command="- echo ranlib not found"
5381 eval "RANLIB"='$command'
5390 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5391 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5393 $as_echo_n "(cached) " >&6
5395 ac_check_lib_save_LIBS=$LIBS
5397 cat >conftest.$ac_ext <<_ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5404 /* Override any GCC internal prototype to avoid an error.
5405 Use char because int might match the return type of a GCC
5406 builtin and then its argument prototype would still apply. */
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (ac_try="$ac_link"
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5426 $as_echo "$ac_try_echo") >&5
5427 (eval "$ac_link") 2>conftest.er1
5429 grep -v '^ *+' conftest.er1 >conftest.err
5431 cat conftest.err >&5
5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } && {
5434 test -z "$ac_cxx_werror_flag" ||
5435 test ! -s conftest.err
5436 } && test -s conftest$ac_exeext && {
5437 test "$cross_compiling" = yes ||
5438 $as_test_x conftest$ac_exeext
5440 ac_cv_lib_dl_dlopen=yes
5442 $as_echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_cv_lib_dl_dlopen=no
5448 rm -rf conftest.dSYM
5449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5450 conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5454 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5455 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_LIBDL 1
5465 for ac_func in dlopen
5467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5468 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5469 $as_echo_n "checking for $ac_func... " >&6; }
5470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5471 $as_echo_n "(cached) " >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5481 #define $ac_func innocuous_$ac_func
5483 /* System header to define __stub macros and hopefully few prototypes,
5484 which can conflict with char $ac_func (); below.
5485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5486 <limits.h> exists even on freestanding compilers. */
5489 # include <limits.h>
5491 # include <assert.h>
5496 /* Override any GCC internal prototype to avoid an error.
5497 Use char because int might match the return type of a GCC
5498 builtin and then its argument prototype would still apply. */
5503 /* The GNU C library defines this for functions which it implements
5504 to always fail with ENOSYS. Some functions are actually named
5505 something starting with __ and the normal name is an alias. */
5506 #if defined __stub_$ac_func || defined __stub___$ac_func
5518 rm -f conftest.$ac_objext conftest$ac_exeext
5519 if { (ac_try="$ac_link"
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5525 $as_echo "$ac_try_echo") >&5
5526 (eval "$ac_link") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_cxx_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest$ac_exeext && {
5536 test "$cross_compiling" = yes ||
5537 $as_test_x conftest$ac_exeext
5539 eval "$as_ac_var=yes"
5541 $as_echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 eval "$as_ac_var=no"
5547 rm -rf conftest.dSYM
5548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5549 conftest$ac_exeext conftest.$ac_ext
5551 ac_res=`eval 'as_val=${'$as_ac_var'}
5552 $as_echo "$as_val"'`
5553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5554 $as_echo "$ac_res" >&6; }
5555 as_val=`eval 'as_val=${'$as_ac_var'}
5556 $as_echo "$as_val"'`
5557 if test "x$as_val" = x""yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5566 # Do not use bison 1.50 and 1.75.
5567 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
5569 # ugh, automake: we want (and check for) bison
5570 for ac_prog in 'bison -y' byacc
5572 # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_prog_YACC+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5579 if test -n "$YACC"; then
5580 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_YACC="$ac_prog"
5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 YACC=$ac_cv_prog_YACC
5600 if test -n "$YACC"; then
5601 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5602 $as_echo "$YACC" >&6; }
5604 { $as_echo "$as_me:$LINENO: result: no" >&5
5605 $as_echo "no" >&6; }
5609 test -n "$YACC" && break
5611 test -n "$YACC" || YACC="yacc"
5615 for ac_prog in bison
5617 # Extract the first word of "$ac_prog", so it can be a program name with args.
5618 set dummy $ac_prog; ac_word=$2
5619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_prog_BISON+set}" = set; then
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$BISON"; then
5625 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_prog_BISON="$ac_prog"
5635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 BISON=$ac_cv_prog_BISON
5645 if test -n "$BISON"; then
5646 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5647 $as_echo "$BISON" >&6; }
5649 { $as_echo "$as_me:$LINENO: result: no" >&5
5650 $as_echo "no" >&6; }
5654 test -n "$BISON" && break
5656 test -n "$BISON" || BISON="no"
5660 r="`eval echo '$'"BISON"`"
5661 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
5664 ##STEPMAKE_WARN(cannot find . )
5668 if test $? -ne 0; then
5670 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
5672 if test "OPTIONAL" = "REQUIRED"; then
5673 command="echo ERROR: bison not found"
5674 # abort configure process here?
5676 command="- echo bison not found"
5678 eval "BISON"='$command'
5684 if test $? -eq 0 -a -n ""; then
5686 r="`eval echo '$'"BISON"`"
5687 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5688 $as_echo_n "checking $r version... " >&6; }
5690 ## which doesn't work in ash, if /usr/bin/which isn't installed
5691 ## type -p doesn't work in ash
5692 ## command -v doesn't work in zsh
5693 ## command -v "$r" 2>&1
5694 ## this test should work in ash, bash, pdksh (ksh), zsh
5695 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5701 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5704 ## Workaround for broken Debian gcc version string:
5705 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5707 ## -V: Workaround for python
5711 ## Assume and hunt for dotted version multiplet.
5712 ## use eval trickery, because we cannot use multi-level $() instead of ``
5713 ## for compatibility reasons.
5715 ## grab the first version number in --version output.
5716 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5718 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5720 if test -z "$_ver"; then
5721 ## If empty, try date [fontforge]
5722 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5724 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5731 echo "$ver" | awk -F. '
5733 if ($3) {three = $3}
5736 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5741 if ($3) {three = $3}
5744 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5746 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5747 $as_echo "$ver" >&6; }
5748 if test "$num" -lt "$req"; then
5750 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
5753 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5754 eval `echo $vervar=$num`
5755 ## AC_SUBST(`eval echo $vervar`)
5760 # urg. should test functionality rather than version.
5761 if test "$BISON" = "bison" -a -n "1.29"; then
5763 r="`eval echo '$'"BISON"`"
5764 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5765 $as_echo_n "checking $r version... " >&6; }
5767 ## which doesn't work in ash, if /usr/bin/which isn't installed
5768 ## type -p doesn't work in ash
5769 ## command -v doesn't work in zsh
5770 ## command -v "$r" 2>&1
5771 ## this test should work in ash, bash, pdksh (ksh), zsh
5772 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5778 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5781 ## Workaround for broken Debian gcc version string:
5782 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5784 ## -V: Workaround for python
5788 ## Assume and hunt for dotted version multiplet.
5789 ## use eval trickery, because we cannot use multi-level $() instead of ``
5790 ## for compatibility reasons.
5792 ## grab the first version number in --version output.
5793 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5795 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5797 if test -z "$_ver"; then
5798 ## If empty, try date [fontforge]
5799 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5801 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5808 echo "$ver" | awk -F. '
5810 if ($3) {three = $3}
5813 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5816 echo "1.29" | awk -F. '
5818 if ($3) {three = $3}
5821 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5823 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5824 $as_echo "$ver" >&6; }
5825 if test "$num" -lt "$req"; then
5827 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
5830 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5831 eval `echo $vervar=$num`
5832 ## AC_SUBST(`eval echo $vervar`)
5837 # ugh, automake: we want (and check for) flex
5839 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
5843 ac_cv_prog_lex_root=lex.yy
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_FLEX+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5854 if test -n "$FLEX"; then
5855 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_FLEX="$ac_prog"
5865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 FLEX=$ac_cv_prog_FLEX
5875 if test -n "$FLEX"; then
5876 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
5877 $as_echo "$FLEX" >&6; }
5879 { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5884 test -n "$FLEX" && break
5886 test -n "$FLEX" || FLEX="no"
5890 r="`eval echo '$'"FLEX"`"
5891 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
5894 ##STEPMAKE_WARN(cannot find . )
5898 if test $? -ne 0; then
5900 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
5902 if test "REQUIRED" = "REQUIRED"; then
5903 command="echo ERROR: flex not found"
5904 # abort configure process here?
5906 command="- echo flex not found"
5908 eval "FLEX"='$command'
5914 if test $? -eq 0 -a -n ""; then
5916 r="`eval echo '$'"FLEX"`"
5917 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5918 $as_echo_n "checking $r version... " >&6; }
5920 ## which doesn't work in ash, if /usr/bin/which isn't installed
5921 ## type -p doesn't work in ash
5922 ## command -v doesn't work in zsh
5923 ## command -v "$r" 2>&1
5924 ## this test should work in ash, bash, pdksh (ksh), zsh
5925 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5931 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5934 ## Workaround for broken Debian gcc version string:
5935 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5937 ## -V: Workaround for python
5941 ## Assume and hunt for dotted version multiplet.
5942 ## use eval trickery, because we cannot use multi-level $() instead of ``
5943 ## for compatibility reasons.
5945 ## grab the first version number in --version output.
5946 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5948 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5950 if test -z "$_ver"; then
5951 ## If empty, try date [fontforge]
5952 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5954 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5961 echo "$ver" | awk -F. '
5963 if ($3) {three = $3}
5966 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5971 if ($3) {three = $3}
5974 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5976 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5977 $as_echo "$ver" >&6; }
5978 if test "$num" -lt "$req"; then
5980 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
5983 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
5984 eval `echo $vervar=$num`
5985 ## AC_SUBST(`eval echo $vervar`)
5991 ac_cpp='$CXXCPP $CPPFLAGS'
5992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5995 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5996 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5997 if test -z "$CXXCPP"; then
5998 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6001 # Double quotes because CXXCPP needs to be expanded
6002 for CXXCPP in "$CXX -E" "/lib/cpp"
6005 for ac_cxx_preproc_warn_flag in '' yes
6007 # Use a header file that comes with gcc, so configuring glibc
6008 # with a fresh cross-compiler works.
6009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6010 # <limits.h> exists even on freestanding compilers.
6011 # On the NeXT, cc -E runs the code through the compiler's parser,
6012 # not just through cpp. "Syntax error" is here to catch this case.
6013 cat >conftest.$ac_ext <<_ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6020 # include <limits.h>
6022 # include <assert.h>
6026 if { (ac_try="$ac_cpp conftest.$ac_ext"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev/null && {
6040 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6041 test ! -s conftest.err
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 # Broken: fails on valid input.
6052 rm -f conftest.err conftest.$ac_ext
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <ac_nonexistent.h>
6064 if { (ac_try="$ac_cpp conftest.$ac_ext"
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } >/dev/null && {
6078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6079 test ! -s conftest.err
6081 # Broken: success on invalid input.
6084 $as_echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 # Passes both tests.
6092 rm -f conftest.err conftest.$ac_ext
6095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6096 rm -f conftest.err conftest.$ac_ext
6097 if $ac_preproc_ok; then
6102 ac_cv_prog_CXXCPP=$CXXCPP
6105 CXXCPP=$ac_cv_prog_CXXCPP
6107 ac_cv_prog_CXXCPP=$CXXCPP
6109 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6110 $as_echo "$CXXCPP" >&6; }
6112 for ac_cxx_preproc_warn_flag in '' yes
6114 # Use a header file that comes with gcc, so configuring glibc
6115 # with a fresh cross-compiler works.
6116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117 # <limits.h> exists even on freestanding compilers.
6118 # On the NeXT, cc -E runs the code through the compiler's parser,
6119 # not just through cpp. "Syntax error" is here to catch this case.
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6127 # include <limits.h>
6129 # include <assert.h>
6133 if { (ac_try="$ac_cpp conftest.$ac_ext"
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6139 $as_echo "$ac_try_echo") >&5
6140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } >/dev/null && {
6147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6148 test ! -s conftest.err
6152 $as_echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 # Broken: fails on valid input.
6159 rm -f conftest.err conftest.$ac_ext
6161 # OK, works on sane cases. Now check whether nonexistent headers
6162 # can be detected and how.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <ac_nonexistent.h>
6171 if { (ac_try="$ac_cpp conftest.$ac_ext"
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null && {
6185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6186 test ! -s conftest.err
6188 # Broken: success on invalid input.
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 # Passes both tests.
6199 rm -f conftest.err conftest.$ac_ext
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6207 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6210 See \`config.log' for more details." >&5
6211 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6212 See \`config.log' for more details." >&2;}
6213 { (exit 1); exit 1; }; }; }
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6223 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6224 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6225 if test "${ac_cv_path_GREP+set}" = set; then
6226 $as_echo_n "(cached) " >&6
6228 if test -z "$GREP"; then
6229 ac_path_GREP_found=false
6230 # Loop through the user's path and test for each of PROGNAME-LIST
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6235 test -z "$as_dir" && as_dir=.
6236 for ac_prog in grep ggrep; do
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6239 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6240 # Check for GNU ac_path_GREP and select it if it is found.
6241 # Check for GNU $ac_path_GREP
6242 case `"$ac_path_GREP" --version 2>&1` in
6244 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6247 $as_echo_n 0123456789 >"conftest.in"
6250 cat "conftest.in" "conftest.in" >"conftest.tmp"
6251 mv "conftest.tmp" "conftest.in"
6252 cp "conftest.in" "conftest.nl"
6253 $as_echo 'GREP' >> "conftest.nl"
6254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256 ac_count=`expr $ac_count + 1`
6257 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6258 # Best one so far, save it but keep looking for a better one
6259 ac_cv_path_GREP="$ac_path_GREP"
6260 ac_path_GREP_max=$ac_count
6262 # 10*(2^10) chars as input seems more than enough
6263 test $ac_count -gt 10 && break
6265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268 $ac_path_GREP_found && break 3
6273 if test -z "$ac_cv_path_GREP"; then
6274 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6275 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6276 { (exit 1); exit 1; }; }
6279 ac_cv_path_GREP=$GREP
6283 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6284 $as_echo "$ac_cv_path_GREP" >&6; }
6285 GREP="$ac_cv_path_GREP"
6288 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6289 $as_echo_n "checking for egrep... " >&6; }
6290 if test "${ac_cv_path_EGREP+set}" = set; then
6291 $as_echo_n "(cached) " >&6
6293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6294 then ac_cv_path_EGREP="$GREP -E"
6296 if test -z "$EGREP"; then
6297 ac_path_EGREP_found=false
6298 # Loop through the user's path and test for each of PROGNAME-LIST
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6303 test -z "$as_dir" && as_dir=.
6304 for ac_prog in egrep; do
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6307 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6308 # Check for GNU ac_path_EGREP and select it if it is found.
6309 # Check for GNU $ac_path_EGREP
6310 case `"$ac_path_EGREP" --version 2>&1` in
6312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6315 $as_echo_n 0123456789 >"conftest.in"
6318 cat "conftest.in" "conftest.in" >"conftest.tmp"
6319 mv "conftest.tmp" "conftest.in"
6320 cp "conftest.in" "conftest.nl"
6321 $as_echo 'EGREP' >> "conftest.nl"
6322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6324 ac_count=`expr $ac_count + 1`
6325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6326 # Best one so far, save it but keep looking for a better one
6327 ac_cv_path_EGREP="$ac_path_EGREP"
6328 ac_path_EGREP_max=$ac_count
6330 # 10*(2^10) chars as input seems more than enough
6331 test $ac_count -gt 10 && break
6333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6336 $ac_path_EGREP_found && break 3
6341 if test -z "$ac_cv_path_EGREP"; then
6342 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6343 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6344 { (exit 1); exit 1; }; }
6347 ac_cv_path_EGREP=$EGREP
6352 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6353 $as_echo "$ac_cv_path_EGREP" >&6; }
6354 EGREP="$ac_cv_path_EGREP"
6357 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6358 $as_echo_n "checking for ANSI C header files... " >&6; }
6359 if test "${ac_cv_header_stdc+set}" = set; then
6360 $as_echo_n "(cached) " >&6
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6381 rm -f conftest.$ac_objext
6382 if { (ac_try="$ac_compile"
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6388 $as_echo "$ac_try_echo") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_cxx_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest.$ac_objext; then
6399 ac_cv_header_stdc=yes
6401 $as_echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_cv_header_stdc=no
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 if test $ac_cv_header_stdc = yes; then
6410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6411 cat >conftest.$ac_ext <<_ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6421 $EGREP "memchr" >/dev/null 2>&1; then
6424 ac_cv_header_stdc=no
6430 if test $ac_cv_header_stdc = yes; then
6431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442 $EGREP "free" >/dev/null 2>&1; then
6445 ac_cv_header_stdc=no
6451 if test $ac_cv_header_stdc = yes; then
6452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453 if test "$cross_compiling" = yes; then
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6464 #if ((' ' & 0x0FF) == 0x020)
6465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6468 # define ISLOWER(c) \
6469 (('a' <= (c) && (c) <= 'i') \
6470 || ('j' <= (c) && (c) <= 'r') \
6471 || ('s' <= (c) && (c) <= 'z'))
6472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6480 for (i = 0; i < 256; i++)
6481 if (XOR (islower (i), ISLOWER (i))
6482 || toupper (i) != TOUPPER (i))
6487 rm -f conftest$ac_exeext
6488 if { (ac_try="$ac_link"
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494 $as_echo "$ac_try_echo") >&5
6495 (eval "$ac_link") 2>&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505 (eval "$ac_try") 2>&5
6507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6511 $as_echo "$as_me: program exited with status $ac_status" >&5
6512 $as_echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6516 ac_cv_header_stdc=no
6518 rm -rf conftest.dSYM
6519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6526 $as_echo "$ac_cv_header_stdc" >&6; }
6527 if test $ac_cv_header_stdc = yes; then
6529 cat >>confdefs.h <<\_ACEOF
6530 #define STDC_HEADERS 1
6535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6546 inttypes.h stdint.h unistd.h
6548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6550 $as_echo_n "checking for $ac_header... " >&6; }
6551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6552 $as_echo_n "(cached) " >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6562 #include <$ac_header>
6564 rm -f conftest.$ac_objext
6565 if { (ac_try="$ac_compile"
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571 $as_echo "$ac_try_echo") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && {
6579 test -z "$ac_cxx_werror_flag" ||
6580 test ! -s conftest.err
6581 } && test -s conftest.$ac_objext; then
6582 eval "$as_ac_Header=yes"
6584 $as_echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 eval "$as_ac_Header=no"
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 ac_res=`eval 'as_val=${'$as_ac_Header'}
6593 $as_echo "$as_val"'`
6594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6595 $as_echo "$ac_res" >&6; }
6596 as_val=`eval 'as_val=${'$as_ac_Header'}
6597 $as_echo "$as_val"'`
6598 if test "x$as_val" = x""yes; then
6599 cat >>confdefs.h <<_ACEOF
6600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 for ac_header in FlexLexer.h
6612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 $as_echo_n "checking for $ac_header... " >&6; }
6616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6617 $as_echo_n "(cached) " >&6
6619 ac_res=`eval 'as_val=${'$as_ac_Header'}
6620 $as_echo "$as_val"'`
6621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6622 $as_echo "$ac_res" >&6; }
6624 # Is the header compilable?
6625 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6626 $as_echo_n "checking $ac_header usability... " >&6; }
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 $ac_includes_default
6634 #include <$ac_header>
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_compile") 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_cxx_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest.$ac_objext; then
6654 ac_header_compiler=yes
6656 $as_echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 ac_header_compiler=no
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6664 $as_echo "$ac_header_compiler" >&6; }
6666 # Is the header present?
6667 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6668 $as_echo_n "checking $ac_header presence... " >&6; }
6669 cat >conftest.$ac_ext <<_ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <$ac_header>
6677 if { (ac_try="$ac_cpp conftest.$ac_ext"
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1 >conftest.err
6688 cat conftest.err >&5
6689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } >/dev/null && {
6691 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6692 test ! -s conftest.err
6694 ac_header_preproc=yes
6696 $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_header_preproc=no
6702 rm -f conftest.err conftest.$ac_ext
6703 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6704 $as_echo "$ac_header_preproc" >&6; }
6706 # So? What about this header?
6707 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6713 ac_header_preproc=yes
6716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6717 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6719 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6721 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6723 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6725 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6727 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6732 $as_echo_n "checking for $ac_header... " >&6; }
6733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6734 $as_echo_n "(cached) " >&6
6736 eval "$as_ac_Header=\$ac_header_preproc"
6738 ac_res=`eval 'as_val=${'$as_ac_Header'}
6739 $as_echo "$as_val"'`
6740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6741 $as_echo "$ac_res" >&6; }
6744 as_val=`eval 'as_val=${'$as_ac_Header'}
6745 $as_echo "$as_val"'`
6746 if test "x$as_val" = x""yes; then
6747 cat >>confdefs.h <<_ACEOF
6748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6757 if test $? -ne 0; then
6758 warn='FlexLexer.h (flex package)'
6760 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
6763 # check for yyFlexLexer.yy_current_buffer,
6764 # in 2.5.4 <= flex < 2.5.29
6766 ac_cpp='$CXXCPP $CPPFLAGS'
6767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6771 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
6772 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
6773 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
6774 $as_echo_n "(cached) " >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6783 using namespace std;
6784 #include <FlexLexer.h>
6785 class yy_flex_lexer: public yyFlexLexer
6790 yy_current_buffer = 0;
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810 (eval "$ac_compile") 2>conftest.er1
6812 grep -v '^ *+' conftest.er1 >conftest.err
6814 cat conftest.err >&5
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && {
6817 test -z "$ac_cxx_werror_flag" ||
6818 test ! -s conftest.err
6819 } && test -s conftest.$ac_objext; then
6820 stepmake_cv_flexlexer_yy_current_buffer=yes
6822 $as_echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 stepmake_cv_flexlexer_yy_current_buffer=no
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
6831 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
6832 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
6840 ac_cpp='$CXXCPP $CPPFLAGS'
6841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
6848 $as_echo_n "checking FlexLexer.h location... " >&6; }
6851 cat <<EOF > conftest.cc
6852 using namespace std;
6853 #include <FlexLexer.h>
6855 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
6856 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
6857 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
6860 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
6861 $as_echo "$FLEXLEXER_FILE" >&6; }
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875 # Check whether --with-localedir was given.
6876 if test "${with_localedir+set}" = set; then
6877 withval=$with_localedir; localedir=$with_localedir
6879 localedir='${prefix}/share/locale'
6884 # Check whether --with-lang was given.
6885 if test "${with_lang+set}" = set; then
6886 withval=$with_lang; language=$with_lang
6892 { $as_echo "$as_me:$LINENO: checking language" >&5
6893 $as_echo_n "checking language... " >&6; }
6895 En* | en* | Am* | am* | US* | us*)
6897 NL | nl | Du* | du* | Ned* | ned*)
6904 { $as_echo "$as_me:$LINENO: result: $lang" >&5
6905 $as_echo "$lang" >&6; }
6907 if test "$lang" = "unknown" ; then
6909 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
6910 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
6918 if test "$prefix" = "NONE"; then
6919 presome=${ac_default_prefix}
6921 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
6924 cat >>confdefs.h <<_ACEOF
6925 #define LOCALEDIR "${LOCALEDIR}"
6928 # ouch. autoconf <= 2.57's gettext check fails for
6929 # g++ >= 3.3 (with -std=gnu++98, the default).
6930 # While the check is OK for g++ -std=c++98,
6931 # LilyPond needs GNU g++, so who is to blame here?
6932 # Use a workaround until this is resolved:
6933 # for g++ >= 3.3, select C language.
6936 r="`eval echo '$'"CXX"`"
6937 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6938 $as_echo_n "checking $r version... " >&6; }
6940 ## which doesn't work in ash, if /usr/bin/which isn't installed
6941 ## type -p doesn't work in ash
6942 ## command -v doesn't work in zsh
6943 ## command -v "$r" 2>&1
6944 ## this test should work in ash, bash, pdksh (ksh), zsh
6945 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6948 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6951 ## Workaround for broken Debian gcc version string:
6952 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6954 ## -V: Workaround for python
6958 ## Assume and hunt for dotted version multiplet.
6959 ## use eval trickery, because we cannot use multi-level $() instead of ``
6960 ## for compatibility reasons.
6962 ## grab the first version number in --version output.
6963 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
6965 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
6967 if test -z "$_ver"; then
6968 ## If empty, try date [fontforge]
6969 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6971 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6977 echo "$ver" | awk -F. '
6979 if ($3) {three = $3}
6982 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6985 echo "3.3" | awk -F. '
6987 if ($3) {three = $3}
6990 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6992 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6993 $as_echo "$ver" >&6; }
6994 if test "$num" -ge "$sup"; then
6996 eval "GCC_UNSUPPORTED"=\"`eval echo \"'$'GCC_UNSUPPORTED\" \""$r < 3.3 (installed: $ver)"\"`\"
7000 if test -n "$GCC_UNSUPPORTED"; then
7001 { $as_echo "$as_me:$LINENO: WARNING: autoconf <= 2.59 with g++ >= 3.3 gettext test broken." >&5
7002 $as_echo "$as_me: WARNING: autoconf <= 2.59 with g++ >= 3.3 gettext test broken." >&2;}
7003 { $as_echo "$as_me:$LINENO: WARNING: Trying gcc, cross fingers." >&5
7004 $as_echo "$as_me: WARNING: Trying gcc, cross fingers." >&2;}
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7014 $as_echo_n "checking for gettext in -lintl... " >&6; }
7015 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7016 $as_echo_n "(cached) " >&6
7018 ac_check_lib_save_LIBS=$LIBS
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 /* Override any GCC internal prototype to avoid an error.
7028 Use char because int might match the return type of a GCC
7029 builtin and then its argument prototype would still apply. */
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (ac_try="$ac_link"
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7049 $as_echo "$ac_try_echo") >&5
7050 (eval "$ac_link") 2>conftest.er1
7052 grep -v '^ *+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest$ac_exeext && {
7060 test "$cross_compiling" = yes ||
7061 $as_test_x conftest$ac_exeext
7063 ac_cv_lib_intl_gettext=yes
7065 $as_echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_lib_intl_gettext=no
7071 rm -rf conftest.dSYM
7072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7073 conftest$ac_exeext conftest.$ac_ext
7074 LIBS=$ac_check_lib_save_LIBS
7076 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7077 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7078 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7079 cat >>confdefs.h <<_ACEOF
7080 #define HAVE_LIBINTL 1
7088 for ac_func in gettext
7090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7091 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7092 $as_echo_n "checking for $ac_func... " >&6; }
7093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7094 $as_echo_n "(cached) " >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7104 #define $ac_func innocuous_$ac_func
7106 /* System header to define __stub macros and hopefully few prototypes,
7107 which can conflict with char $ac_func (); below.
7108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109 <limits.h> exists even on freestanding compilers. */
7112 # include <limits.h>
7114 # include <assert.h>
7119 /* Override any GCC internal prototype to avoid an error.
7120 Use char because int might match the return type of a GCC
7121 builtin and then its argument prototype would still apply. */
7126 /* The GNU C library defines this for functions which it implements
7127 to always fail with ENOSYS. Some functions are actually named
7128 something starting with __ and the normal name is an alias. */
7129 #if defined __stub_$ac_func || defined __stub___$ac_func
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (ac_try="$ac_link"
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7148 $as_echo "$ac_try_echo") >&5
7149 (eval "$ac_link") 2>conftest.er1
7151 grep -v '^ *+' conftest.er1 >conftest.err
7153 cat conftest.err >&5
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest$ac_exeext && {
7159 test "$cross_compiling" = yes ||
7160 $as_test_x conftest$ac_exeext
7162 eval "$as_ac_var=yes"
7164 $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 eval "$as_ac_var=no"
7170 rm -rf conftest.dSYM
7171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7172 conftest$ac_exeext conftest.$ac_ext
7174 ac_res=`eval 'as_val=${'$as_ac_var'}
7175 $as_echo "$as_val"'`
7176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7177 $as_echo "$ac_res" >&6; }
7178 as_val=`eval 'as_val=${'$as_ac_var'}
7179 $as_echo "$as_val"'`
7180 if test "x$as_val" = x""yes; then
7181 cat >>confdefs.h <<_ACEOF
7182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7188 if test -n "$GCC_UNSUPPORTED"; then
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199 for ac_prog in msgfmt
7201 # Extract the first word of "$ac_prog", so it can be a program name with args.
7202 set dummy $ac_prog; ac_word=$2
7203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7206 $as_echo_n "(cached) " >&6
7208 if test -n "$MSGFMT"; then
7209 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218 ac_cv_prog_MSGFMT="$ac_prog"
7219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 MSGFMT=$ac_cv_prog_MSGFMT
7229 if test -n "$MSGFMT"; then
7230 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7231 $as_echo "$MSGFMT" >&6; }
7233 { $as_echo "$as_me:$LINENO: result: no" >&5
7234 $as_echo "no" >&6; }
7238 test -n "$MSGFMT" && break
7240 test -n "$MSGFMT" || MSGFMT="no"
7244 r="`eval echo '$'"MSGFMT"`"
7245 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7248 ##STEPMAKE_WARN(cannot find . )
7252 if test $? -ne 0; then
7254 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7256 if test "REQUIRED" = "REQUIRED"; then
7257 command="echo ERROR: msgfmt not found"
7258 # abort configure process here?
7260 command="- echo msgfmt not found"
7262 eval "MSGFMT"='$command'
7268 if test $? -eq 0 -a -n ""; then
7270 r="`eval echo '$'"MSGFMT"`"
7271 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7272 $as_echo_n "checking $r version... " >&6; }
7274 ## which doesn't work in ash, if /usr/bin/which isn't installed
7275 ## type -p doesn't work in ash
7276 ## command -v doesn't work in zsh
7277 ## command -v "$r" 2>&1
7278 ## this test should work in ash, bash, pdksh (ksh), zsh
7279 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7285 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7288 ## Workaround for broken Debian gcc version string:
7289 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7291 ## -V: Workaround for python
7295 ## Assume and hunt for dotted version multiplet.
7296 ## use eval trickery, because we cannot use multi-level $() instead of ``
7297 ## for compatibility reasons.
7299 ## grab the first version number in --version output.
7300 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7302 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7304 if test -z "$_ver"; then
7305 ## If empty, try date [fontforge]
7306 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7308 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7315 echo "$ver" | awk -F. '
7317 if ($3) {three = $3}
7320 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7325 if ($3) {three = $3}
7328 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7330 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7331 $as_echo "$ver" >&6; }
7332 if test "$num" -lt "$req"; then
7334 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7337 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7338 eval `echo $vervar=$num`
7339 ## AC_SUBST(`eval echo $vervar`)
7346 for ac_prog in mf-nowin mf mfw mfont
7348 # Extract the first word of "$ac_prog", so it can be a program name with args.
7349 set dummy $ac_prog; ac_word=$2
7350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_METAFONT+set}" = set; then
7353 $as_echo_n "(cached) " >&6
7355 if test -n "$METAFONT"; then
7356 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365 ac_cv_prog_METAFONT="$ac_prog"
7366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 METAFONT=$ac_cv_prog_METAFONT
7376 if test -n "$METAFONT"; then
7377 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7378 $as_echo "$METAFONT" >&6; }
7380 { $as_echo "$as_me:$LINENO: result: no" >&5
7381 $as_echo "no" >&6; }
7385 test -n "$METAFONT" && break
7387 test -n "$METAFONT" || METAFONT="no"
7391 r="`eval echo '$'"METAFONT"`"
7392 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7395 ##STEPMAKE_WARN(cannot find . )
7399 if test $? -ne 0; then
7401 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7403 if test "REQUIRED" = "REQUIRED"; then
7404 command="echo ERROR: mf-nowin mf mfw mfont not found"
7405 # abort configure process here?
7407 command="- echo mf-nowin mf mfw mfont not found"
7409 eval "METAFONT"='$command'
7415 if test $? -eq 0 -a -n ""; then
7417 r="`eval echo '$'"METAFONT"`"
7418 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7419 $as_echo_n "checking $r version... " >&6; }
7421 ## which doesn't work in ash, if /usr/bin/which isn't installed
7422 ## type -p doesn't work in ash
7423 ## command -v doesn't work in zsh
7424 ## command -v "$r" 2>&1
7425 ## this test should work in ash, bash, pdksh (ksh), zsh
7426 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7432 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7435 ## Workaround for broken Debian gcc version string:
7436 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7438 ## -V: Workaround for python
7442 ## Assume and hunt for dotted version multiplet.
7443 ## use eval trickery, because we cannot use multi-level $() instead of ``
7444 ## for compatibility reasons.
7446 ## grab the first version number in --version output.
7447 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7449 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7451 if test -z "$_ver"; then
7452 ## If empty, try date [fontforge]
7453 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7455 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7462 echo "$ver" | awk -F. '
7464 if ($3) {three = $3}
7467 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7472 if ($3) {three = $3}
7475 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7477 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7478 $as_echo "$ver" >&6; }
7479 if test "$num" -lt "$req"; then
7481 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7484 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7485 eval `echo $vervar=$num`
7486 ## AC_SUBST(`eval echo $vervar`)
7491 for ac_prog in mpost
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_METAPOST+set}" = set; then
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$METAPOST"; then
7501 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_METAPOST="$ac_prog"
7511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 METAPOST=$ac_cv_prog_METAPOST
7521 if test -n "$METAPOST"; then
7522 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7523 $as_echo "$METAPOST" >&6; }
7525 { $as_echo "$as_me:$LINENO: result: no" >&5
7526 $as_echo "no" >&6; }
7530 test -n "$METAPOST" && break
7532 test -n "$METAPOST" || METAPOST="no"
7536 r="`eval echo '$'"METAPOST"`"
7537 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7540 ##STEPMAKE_WARN(cannot find . )
7544 if test $? -ne 0; then
7546 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7548 if test "REQUIRED" = "REQUIRED"; then
7549 command="echo ERROR: mpost not found"
7550 # abort configure process here?
7552 command="- echo mpost not found"
7554 eval "METAPOST"='$command'
7560 if test $? -eq 0 -a -n ""; then
7562 r="`eval echo '$'"METAPOST"`"
7563 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7564 $as_echo_n "checking $r version... " >&6; }
7566 ## which doesn't work in ash, if /usr/bin/which isn't installed
7567 ## type -p doesn't work in ash
7568 ## command -v doesn't work in zsh
7569 ## command -v "$r" 2>&1
7570 ## this test should work in ash, bash, pdksh (ksh), zsh
7571 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7577 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7580 ## Workaround for broken Debian gcc version string:
7581 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7583 ## -V: Workaround for python
7587 ## Assume and hunt for dotted version multiplet.
7588 ## use eval trickery, because we cannot use multi-level $() instead of ``
7589 ## for compatibility reasons.
7591 ## grab the first version number in --version output.
7592 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7594 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7596 if test -z "$_ver"; then
7597 ## If empty, try date [fontforge]
7598 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7600 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7607 echo "$ver" | awk -F. '
7609 if ($3) {three = $3}
7612 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7617 if ($3) {three = $3}
7620 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7622 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7623 $as_echo "$ver" >&6; }
7624 if test "$num" -lt "$req"; then
7626 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7629 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
7630 eval `echo $vervar=$num`
7631 ## AC_SUBST(`eval echo $vervar`)
7635 # STEPMAKE_PROGS(INIMETAFONT, inimf inimfont "$METAFONT -ini", REQUIRED)
7637 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
7638 $as_echo_n "checking for working metafont mode... " >&6; }
7639 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
7640 for MFMODE in $modelist; do
7641 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
7642 if test -f mfput.tfm; then
7646 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
7647 $as_echo "$MFMODE" >&6; }
7656 for ac_prog in kpsewhich
7658 # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$KPSEWHICH"; then
7666 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_KPSEWHICH="$ac_prog"
7676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 KPSEWHICH=$ac_cv_prog_KPSEWHICH
7686 if test -n "$KPSEWHICH"; then
7687 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
7688 $as_echo "$KPSEWHICH" >&6; }
7690 { $as_echo "$as_me:$LINENO: result: no" >&5
7691 $as_echo "no" >&6; }
7695 test -n "$KPSEWHICH" && break
7697 test -n "$KPSEWHICH" || KPSEWHICH="no"
7701 r="`eval echo '$'"KPSEWHICH"`"
7702 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
7705 ##STEPMAKE_WARN(cannot find . )
7709 if test $? -ne 0; then
7711 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
7713 if test "OPTIONAL" = "REQUIRED"; then
7714 command="echo ERROR: kpsewhich not found"
7715 # abort configure process here?
7717 command="- echo kpsewhich not found"
7719 eval "KPSEWHICH"='$command'
7725 if test $? -eq 0 -a -n ""; then
7727 r="`eval echo '$'"KPSEWHICH"`"
7728 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7729 $as_echo_n "checking $r version... " >&6; }
7731 ## which doesn't work in ash, if /usr/bin/which isn't installed
7732 ## type -p doesn't work in ash
7733 ## command -v doesn't work in zsh
7734 ## command -v "$r" 2>&1
7735 ## this test should work in ash, bash, pdksh (ksh), zsh
7736 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7742 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7745 ## Workaround for broken Debian gcc version string:
7746 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7748 ## -V: Workaround for python
7752 ## Assume and hunt for dotted version multiplet.
7753 ## use eval trickery, because we cannot use multi-level $() instead of ``
7754 ## for compatibility reasons.
7756 ## grab the first version number in --version output.
7757 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7759 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7761 if test -z "$_ver"; then
7762 ## If empty, try date [fontforge]
7763 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7765 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7772 echo "$ver" | awk -F. '
7774 if ($3) {three = $3}
7777 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7782 if ($3) {three = $3}
7785 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7787 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7788 $as_echo "$ver" >&6; }
7789 if test "$num" -lt "$req"; then
7791 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
7794 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
7795 eval `echo $vervar=$num`
7796 ## AC_SUBST(`eval echo $vervar`)
7802 ## should check for 1.8.2 ?
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7809 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7810 # On Suns, sometimes $CPP names a directory.
7811 if test -n "$CPP" && test -d "$CPP"; then
7814 if test -z "$CPP"; then
7815 if test "${ac_cv_prog_CPP+set}" = set; then
7816 $as_echo_n "(cached) " >&6
7818 # Double quotes because CPP needs to be expanded
7819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7822 for ac_c_preproc_warn_flag in '' yes
7824 # Use a header file that comes with gcc, so configuring glibc
7825 # with a fresh cross-compiler works.
7826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7827 # <limits.h> exists even on freestanding compilers.
7828 # On the NeXT, cc -E runs the code through the compiler's parser,
7829 # not just through cpp. "Syntax error" is here to catch this case.
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7837 # include <limits.h>
7839 # include <assert.h>
7843 if { (ac_try="$ac_cpp conftest.$ac_ext"
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } >/dev/null && {
7857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7862 $as_echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 # Broken: fails on valid input.
7869 rm -f conftest.err conftest.$ac_ext
7871 # OK, works on sane cases. Now check whether nonexistent headers
7872 # can be detected and how.
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 #include <ac_nonexistent.h>
7881 if { (ac_try="$ac_cpp conftest.$ac_ext"
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7887 $as_echo "$ac_try_echo") >&5
7888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } >/dev/null && {
7895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7898 # Broken: success on invalid input.
7901 $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 # Passes both tests.
7909 rm -f conftest.err conftest.$ac_ext
7912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7913 rm -f conftest.err conftest.$ac_ext
7914 if $ac_preproc_ok; then
7926 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7927 $as_echo "$CPP" >&6; }
7929 for ac_c_preproc_warn_flag in '' yes
7931 # Use a header file that comes with gcc, so configuring glibc
7932 # with a fresh cross-compiler works.
7933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 # <limits.h> exists even on freestanding compilers.
7935 # On the NeXT, cc -E runs the code through the compiler's parser,
7936 # not just through cpp. "Syntax error" is here to catch this case.
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7944 # include <limits.h>
7946 # include <assert.h>
7950 if { (ac_try="$ac_cpp conftest.$ac_ext"
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7956 $as_echo "$ac_try_echo") >&5
7957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } >/dev/null && {
7964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 # Broken: fails on valid input.
7976 rm -f conftest.err conftest.$ac_ext
7978 # OK, works on sane cases. Now check whether nonexistent headers
7979 # can be detected and how.
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <ac_nonexistent.h>
7988 if { (ac_try="$ac_cpp conftest.$ac_ext"
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994 $as_echo "$ac_try_echo") >&5
7995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7997 grep -v '^ *+' conftest.er1 >conftest.err
7999 cat conftest.err >&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } >/dev/null && {
8002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8005 # Broken: success on invalid input.
8008 $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 # Passes both tests.
8016 rm -f conftest.err conftest.$ac_ext
8019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8020 rm -f conftest.err conftest.$ac_ext
8021 if $ac_preproc_ok; then
8024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8026 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8027 See \`config.log' for more details." >&5
8028 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8029 See \`config.log' for more details." >&2;}
8030 { (exit 1); exit 1; }; }; }
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041 ## First, let's just see if we can find Guile at all.
8042 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8043 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8044 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8045 $as_echo_n "checking for guile-config... " >&6; }
8046 for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config; do
8047 { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
8048 $as_echo "$guile_config" >&6; }
8049 if ! $guile_config --version > /dev/null 2>&1 ; then
8050 { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
8051 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
8052 { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
8053 $as_echo_n "checking if we are cross compiling... " >&6; }
8054 GUILE_CONFIG='echo no guile-config'
8056 GUILE_CONFIG=$guile_config
8062 r="`eval echo '$'"GUILE_CONFIG"`"
8063 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8066 ##STEPMAKE_WARN(cannot find . )
8070 if test $? -ne 0; then
8072 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
8074 if test "REQUIRED" = "REQUIRED"; then
8075 command="echo ERROR: $guile_config not found"
8076 # abort configure process here?
8078 command="- echo $guile_config not found"
8080 eval "GUILE_CONFIG"='$command'
8086 if test $? -ne 0; then
8088 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\"
8093 r="`eval echo '$'"GUILE_CONFIG"`"
8094 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8097 ##STEPMAKE_WARN(cannot find . )
8101 # urg. should test functionality rather than version.
8102 if test $? -eq 0 -a -n "1.8.0"; then
8104 r="`eval echo '$'"GUILE_CONFIG"`"
8105 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8106 $as_echo_n "checking $r version... " >&6; }
8108 ## which doesn't work in ash, if /usr/bin/which isn't installed
8109 ## type -p doesn't work in ash
8110 ## command -v doesn't work in zsh
8111 ## command -v "$r" 2>&1
8112 ## this test should work in ash, bash, pdksh (ksh), zsh
8113 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8119 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8122 ## Workaround for broken Debian gcc version string:
8123 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8125 ## -V: Workaround for python
8129 ## Assume and hunt for dotted version multiplet.
8130 ## use eval trickery, because we cannot use multi-level $() instead of ``
8131 ## for compatibility reasons.
8133 ## grab the first version number in --version output.
8134 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
8136 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
8138 if test -z "$_ver"; then
8139 ## If empty, try date [fontforge]
8140 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8142 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8149 echo "$ver" | awk -F. '
8151 if ($3) {three = $3}
8154 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8157 echo "1.8.0" | awk -F. '
8159 if ($3) {three = $3}
8162 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8164 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8165 $as_echo "$ver" >&6; }
8166 if test "$num" -lt "$req"; then
8168 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.0 (installed: $ver)"\"`\"
8171 vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
8172 eval `echo $vervar=$num`
8173 ## AC_SUBST(`eval echo $vervar`)
8179 guile_version="$ver"
8181 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8182 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8183 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8187 ## which doesn't work in ash, if /usr/bin/which isn't installed
8188 ## type -p doesn't work in ash
8189 ## command -v doesn't work in zsh
8190 ## command -v "$guile_config" 2>&1
8191 ## this test should work in ash, bash, pdksh (ksh), zsh
8192 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8194 if test -x $exe; then
8195 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8196 $as_echo_n "checking guile compile flags... " >&6; }
8197 GUILE_CFLAGS="`$guile_config compile`"
8198 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8199 $as_echo "$GUILE_CFLAGS" >&6; }
8200 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8201 $as_echo_n "checking guile link flags... " >&6; }
8202 GUILE_LDFLAGS="`$guile_config link`"
8203 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8204 $as_echo "$GUILE_LDFLAGS" >&6; }
8209 save_CPPFLAGS="$CPPFLAGS"
8211 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8212 LIBS="$GUILE_LDFLAGS $LIBS"
8214 for ac_header in libguile.h
8216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 $as_echo_n "checking for $ac_header... " >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221 $as_echo_n "(cached) " >&6
8223 ac_res=`eval 'as_val=${'$as_ac_Header'}
8224 $as_echo "$as_val"'`
8225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8226 $as_echo "$ac_res" >&6; }
8228 # Is the header compilable?
8229 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8230 $as_echo_n "checking $ac_header usability... " >&6; }
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 #include <$ac_header>
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8247 $as_echo "$ac_try_echo") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.$ac_objext; then
8258 ac_header_compiler=yes
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_header_compiler=no
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 $as_echo "$ac_header_compiler" >&6; }
8270 # Is the header present?
8271 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8272 $as_echo_n "checking $ac_header presence... " >&6; }
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 #include <$ac_header>
8281 if { (ac_try="$ac_cpp conftest.$ac_ext"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8287 $as_echo "$ac_try_echo") >&5
8288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8290 grep -v '^ *+' conftest.er1 >conftest.err
8292 cat conftest.err >&5
8293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } >/dev/null && {
8295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8296 test ! -s conftest.err
8298 ac_header_preproc=yes
8300 $as_echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 ac_header_preproc=no
8306 rm -f conftest.err conftest.$ac_ext
8307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8308 $as_echo "$ac_header_preproc" >&6; }
8310 # So? What about this header?
8311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8314 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8316 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8317 ac_header_preproc=yes
8320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8321 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8323 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8325 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8327 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8331 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 $as_echo_n "checking for $ac_header... " >&6; }
8337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8338 $as_echo_n "(cached) " >&6
8340 eval "$as_ac_Header=\$ac_header_preproc"
8342 ac_res=`eval 'as_val=${'$as_ac_Header'}
8343 $as_echo "$as_val"'`
8344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8345 $as_echo "$ac_res" >&6; }
8348 as_val=`eval 'as_val=${'$as_ac_Header'}
8349 $as_echo "$as_val"'`
8350 if test "x$as_val" = x""yes; then
8351 cat >>confdefs.h <<_ACEOF
8352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8360 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8361 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8362 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8363 $as_echo_n "(cached) " >&6
8365 ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-lguile $LIBS"
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8374 /* Override any GCC internal prototype to avoid an error.
8375 Use char because int might match the return type of a GCC
8376 builtin and then its argument prototype would still apply. */
8380 char scm_boot_guile ();
8384 return scm_boot_guile ();
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396 $as_echo "$ac_try_echo") >&5
8397 (eval "$ac_link") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest$ac_exeext && {
8407 test "$cross_compiling" = yes ||
8408 $as_test_x conftest$ac_exeext
8410 ac_cv_lib_guile_scm_boot_guile=yes
8412 $as_echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_lib_guile_scm_boot_guile=no
8418 rm -rf conftest.dSYM
8419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8420 conftest$ac_exeext conftest.$ac_ext
8421 LIBS=$ac_check_lib_save_LIBS
8423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8424 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8425 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8426 cat >>confdefs.h <<_ACEOF
8427 #define HAVE_LIBGUILE 1
8430 LIBS="-lguile $LIBS"
8435 for ac_func in scm_boot_guile
8437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8439 $as_echo_n "checking for $ac_func... " >&6; }
8440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8441 $as_echo_n "(cached) " >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8451 #define $ac_func innocuous_$ac_func
8453 /* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char $ac_func (); below.
8455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 <limits.h> exists even on freestanding compilers. */
8459 # include <limits.h>
8461 # include <assert.h>
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined __stub_$ac_func || defined __stub___$ac_func
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_link") 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest$ac_exeext && {
8506 test "$cross_compiling" = yes ||
8507 $as_test_x conftest$ac_exeext
8509 eval "$as_ac_var=yes"
8511 $as_echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 eval "$as_ac_var=no"
8517 rm -rf conftest.dSYM
8518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519 conftest$ac_exeext conftest.$ac_ext
8521 ac_res=`eval 'as_val=${'$as_ac_var'}
8522 $as_echo "$as_val"'`
8523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8524 $as_echo "$ac_res" >&6; }
8525 as_val=`eval 'as_val=${'$as_ac_var'}
8526 $as_echo "$as_val"'`
8527 if test "x$as_val" = x""yes; then
8528 cat >>confdefs.h <<_ACEOF
8529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8537 if test "$libguile_b" = "no"; then
8538 warn='libguile (libguile-dev, guile-devel or guile-dev
8541 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8544 CPPFLAGS="$save_CPPFLAGS"
8546 cat >>confdefs.h <<_ACEOF
8547 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8550 cat >>confdefs.h <<_ACEOF
8551 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8554 cat >>confdefs.h <<_ACEOF
8555 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8561 ## check rational bugfix.
8562 save_CPPFLAGS="$CPPFLAGS"
8563 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8564 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
8565 $as_echo_n "checking GUILE rational bugfix... " >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #include <libguile.h>
8573 #ifdef SCM_FRACTION_REDUCED_BIT
8578 if { (ac_try="$ac_cpp conftest.$ac_ext"
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8584 $as_echo "$ac_try_echo") >&5
8585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } >/dev/null && {
8592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8595 { $as_echo "$as_me:$LINENO: result: ok" >&5
8596 $as_echo "ok" >&6; }
8598 $as_echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
8602 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
8603 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
8606 rm -f conftest.err conftest.$ac_ext
8607 CPPFLAGS="$save_CPPFLAGS"
8612 # Check whether --with-python-include was given.
8613 if test "${with_python_include+set}" = set; then
8614 withval=$with_python_include;
8615 if test "$withval" = "yes" -o "$withval" = "no"; then
8616 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
8617 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
8619 PYTHON_CFLAGS="-I${withval}"
8626 # Check whether --with-python-lib was given.
8627 if test "${with_python_lib+set}" = set; then
8628 withval=$with_python_lib;
8629 if test "$withval" = "yes" -o "$withval" = "no"; then
8630 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
8631 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
8633 LDFLAGS="$LDFLAGS -l${withval}"
8639 for ac_prog in python-config
8641 # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
8646 $as_echo_n "(cached) " >&6
8648 if test -n "$PYTHON_CONFIG"; then
8649 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
8659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
8669 if test -n "$PYTHON_CONFIG"; then
8670 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
8671 $as_echo "$PYTHON_CONFIG" >&6; }
8673 { $as_echo "$as_me:$LINENO: result: no" >&5
8674 $as_echo "no" >&6; }
8678 test -n "$PYTHON_CONFIG" && break
8680 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
8683 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
8684 # Clean out junk: http://bugs.python.org/issue3290
8685 # Python headers may need some -f* flags, leave them in.
8686 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/ -\(W\|D\|O\|m\)\(\w\|-\|=\|,\)\+//g'`
8687 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
8690 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
8692 # alternatively, for python >= 2.0
8693 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
8694 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
8695 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
8699 if test -z "$PYTHON_HEADER"; then
8700 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
8702 for ac_header in Python.h
8704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8707 $as_echo_n "checking for $ac_header... " >&6; }
8708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8709 $as_echo_n "(cached) " >&6
8711 ac_res=`eval 'as_val=${'$as_ac_Header'}
8712 $as_echo "$as_val"'`
8713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8714 $as_echo "$ac_res" >&6; }
8716 # Is the header compilable?
8717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8718 $as_echo_n "checking $ac_header usability... " >&6; }
8719 cat >conftest.$ac_ext <<_ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8725 $ac_includes_default
8726 #include <$ac_header>
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8735 $as_echo "$ac_try_echo") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8738 grep -v '^ *+' conftest.er1 >conftest.err
8740 cat conftest.err >&5
8741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
8746 ac_header_compiler=yes
8748 $as_echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8751 ac_header_compiler=no
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8756 $as_echo "$ac_header_compiler" >&6; }
8758 # Is the header present?
8759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8760 $as_echo_n "checking $ac_header presence... " >&6; }
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 #include <$ac_header>
8769 if { (ac_try="$ac_cpp conftest.$ac_ext"
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8775 $as_echo "$ac_try_echo") >&5
8776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } >/dev/null && {
8783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8786 ac_header_preproc=yes
8788 $as_echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8791 ac_header_preproc=no
8794 rm -f conftest.err conftest.$ac_ext
8795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8796 $as_echo "$ac_header_preproc" >&6; }
8798 # So? What about this header?
8799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8805 ac_header_preproc=yes
8808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8824 $as_echo_n "checking for $ac_header... " >&6; }
8825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8826 $as_echo_n "(cached) " >&6
8828 eval "$as_ac_Header=\$ac_header_preproc"
8830 ac_res=`eval 'as_val=${'$as_ac_Header'}
8831 $as_echo "$as_val"'`
8832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8833 $as_echo "$ac_res" >&6; }
8836 as_val=`eval 'as_val=${'$as_ac_Header'}
8837 $as_echo "$as_val"'`
8838 if test "x$as_val" = x""yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849 if test -z "$PYTHON_HEADER"; then
8850 warn="Python.h (python-devel, python-dev or libpython-dev package)"
8852 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8860 # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy $ac_prog; ac_word=$2
8862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$GHOSTSCRIPT"; then
8868 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
8878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
8888 if test -n "$GHOSTSCRIPT"; then
8889 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8890 $as_echo "$GHOSTSCRIPT" >&6; }
8892 { $as_echo "$as_me:$LINENO: result: no" >&5
8893 $as_echo "no" >&6; }
8897 test -n "$GHOSTSCRIPT" && break
8899 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
8903 r="`eval echo '$'"GHOSTSCRIPT"`"
8904 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
8907 ##STEPMAKE_WARN(cannot find . )
8911 if test $? -ne 0; then
8913 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
8915 if test "OPTIONAL" = "REQUIRED"; then
8916 command="echo ERROR: gs not found"
8917 # abort configure process here?
8919 command="- echo gs not found"
8921 eval "GHOSTSCRIPT"='$command'
8927 if test $? -eq 0; then
8928 # Extract the first word of "gs", so it can be a program name with args.
8929 set dummy gs; ac_word=$2
8930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
8933 $as_echo_n "(cached) " >&6
8935 case $GHOSTSCRIPT in
8937 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
8948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
8959 if test -n "$GHOSTSCRIPT"; then
8960 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8961 $as_echo "$GHOSTSCRIPT" >&6; }
8963 { $as_echo "$as_me:$LINENO: result: no" >&5
8964 $as_echo "no" >&6; }
8968 if test -n "8.15"; then
8970 r="`eval echo '$'"GHOSTSCRIPT"`"
8971 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8972 $as_echo_n "checking $r version... " >&6; }
8974 ## which doesn't work in ash, if /usr/bin/which isn't installed
8975 ## type -p doesn't work in ash
8976 ## command -v doesn't work in zsh
8977 ## command -v "$r" 2>&1
8978 ## this test should work in ash, bash, pdksh (ksh), zsh
8979 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8985 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8988 ## Workaround for broken Debian gcc version string:
8989 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8991 ## -V: Workaround for python
8995 ## Assume and hunt for dotted version multiplet.
8996 ## use eval trickery, because we cannot use multi-level $() instead of ``
8997 ## for compatibility reasons.
8999 ## grab the first version number in --version output.
9000 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
9002 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
9004 if test -z "$_ver"; then
9005 ## If empty, try date [fontforge]
9006 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9008 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9015 echo "$ver" | awk -F. '
9017 if ($3) {three = $3}
9020 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9023 echo "8.15" | awk -F. '
9025 if ($3) {three = $3}
9028 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9030 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9031 $as_echo "$ver" >&6; }
9032 if test "$num" -lt "$req"; then
9034 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.15 (installed: $ver)"\"`\"
9037 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9038 eval `echo $vervar=$num`
9039 ## AC_SUBST(`eval echo $vervar`)
9046 for ac_prog in fontforge
9048 # Extract the first word of "$ac_prog", so it can be a program name with args.
9049 set dummy $ac_prog; ac_word=$2
9050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9053 $as_echo_n "(cached) " >&6
9055 if test -n "$FONTFORGE"; then
9056 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9065 ac_cv_prog_FONTFORGE="$ac_prog"
9066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 FONTFORGE=$ac_cv_prog_FONTFORGE
9076 if test -n "$FONTFORGE"; then
9077 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9078 $as_echo "$FONTFORGE" >&6; }
9080 { $as_echo "$as_me:$LINENO: result: no" >&5
9081 $as_echo "no" >&6; }
9085 test -n "$FONTFORGE" && break
9087 test -n "$FONTFORGE" || FONTFORGE="no"
9091 r="`eval echo '$'"FONTFORGE"`"
9092 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9095 ##STEPMAKE_WARN(cannot find . )
9099 if test $? -ne 0; then
9101 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9103 if test "REQUIRED" = "REQUIRED"; then
9104 command="echo ERROR: fontforge not found"
9105 # abort configure process here?
9107 command="- echo fontforge not found"
9109 eval "FONTFORGE"='$command'
9115 if test $? -eq 0; then
9116 # Extract the first word of "fontforge", so it can be a program name with args.
9117 set dummy fontforge; ac_word=$2
9118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9121 $as_echo_n "(cached) " >&6
9125 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 FONTFORGE=$ac_cv_path_FONTFORGE
9147 if test -n "$FONTFORGE"; then
9148 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9149 $as_echo "$FONTFORGE" >&6; }
9151 { $as_echo "$as_me:$LINENO: result: no" >&5
9152 $as_echo "no" >&6; }
9156 if test -n "20050624"; then
9158 r="`eval echo '$'"FONTFORGE"`"
9159 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9160 $as_echo_n "checking $r version... " >&6; }
9162 ## which doesn't work in ash, if /usr/bin/which isn't installed
9163 ## type -p doesn't work in ash
9164 ## command -v doesn't work in zsh
9165 ## command -v "$r" 2>&1
9166 ## this test should work in ash, bash, pdksh (ksh), zsh
9167 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9173 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9176 ## Workaround for broken Debian gcc version string:
9177 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9179 ## -V: Workaround for python
9183 ## Assume and hunt for dotted version multiplet.
9184 ## use eval trickery, because we cannot use multi-level $() instead of ``
9185 ## for compatibility reasons.
9187 ## grab the first version number in --version output.
9188 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
9190 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
9192 if test -z "$_ver"; then
9193 ## If empty, try date [fontforge]
9194 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9196 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9203 echo "$ver" | awk -F. '
9205 if ($3) {three = $3}
9208 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9211 echo "20050624" | awk -F. '
9213 if ($3) {three = $3}
9216 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9218 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9219 $as_echo "$ver" >&6; }
9220 if test "$num" -lt "$req"; then
9222 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20050624 (installed: $ver)"\"`\"
9225 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9226 eval `echo $vervar=$num`
9227 ## AC_SUBST(`eval echo $vervar`)
9234 for ac_prog in t1asm
9236 # Extract the first word of "$ac_prog", so it can be a program name with args.
9237 set dummy $ac_prog; ac_word=$2
9238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if test "${ac_cv_prog_T1ASM+set}" = set; then
9241 $as_echo_n "(cached) " >&6
9243 if test -n "$T1ASM"; then
9244 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9253 ac_cv_prog_T1ASM="$ac_prog"
9254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 T1ASM=$ac_cv_prog_T1ASM
9264 if test -n "$T1ASM"; then
9265 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9266 $as_echo "$T1ASM" >&6; }
9268 { $as_echo "$as_me:$LINENO: result: no" >&5
9269 $as_echo "no" >&6; }
9273 test -n "$T1ASM" && break
9275 test -n "$T1ASM" || T1ASM="no"
9279 r="`eval echo '$'"T1ASM"`"
9280 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9283 ##STEPMAKE_WARN(cannot find . )
9287 if test $? -ne 0; then
9289 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9291 if test "REQUIRED" = "REQUIRED"; then
9292 command="echo ERROR: t1asm not found"
9293 # abort configure process here?
9295 command="- echo t1asm not found"
9297 eval "T1ASM"='$command'
9303 if test $? -eq 0; then
9304 # Extract the first word of "t1asm", so it can be a program name with args.
9305 set dummy t1asm; ac_word=$2
9306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if test "${ac_cv_path_T1ASM+set}" = set; then
9309 $as_echo_n "(cached) " >&6
9313 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9323 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 T1ASM=$ac_cv_path_T1ASM
9335 if test -n "$T1ASM"; then
9336 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9337 $as_echo "$T1ASM" >&6; }
9339 { $as_echo "$as_me:$LINENO: result: no" >&5
9340 $as_echo "no" >&6; }
9346 r="`eval echo '$'"T1ASM"`"
9347 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9348 $as_echo_n "checking $r version... " >&6; }
9350 ## which doesn't work in ash, if /usr/bin/which isn't installed
9351 ## type -p doesn't work in ash
9352 ## command -v doesn't work in zsh
9353 ## command -v "$r" 2>&1
9354 ## this test should work in ash, bash, pdksh (ksh), zsh
9355 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9361 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9364 ## Workaround for broken Debian gcc version string:
9365 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9367 ## -V: Workaround for python
9371 ## Assume and hunt for dotted version multiplet.
9372 ## use eval trickery, because we cannot use multi-level $() instead of ``
9373 ## for compatibility reasons.
9375 ## grab the first version number in --version output.
9376 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
9378 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
9380 if test -z "$_ver"; then
9381 ## If empty, try date [fontforge]
9382 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9384 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9391 echo "$ver" | awk -F. '
9393 if ($3) {three = $3}
9396 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9401 if ($3) {three = $3}
9404 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9406 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9407 $as_echo "$ver" >&6; }
9408 if test "$num" -lt "$req"; then
9410 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
9413 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
9414 eval `echo $vervar=$num`
9415 ## AC_SUBST(`eval echo $vervar`)
9428 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
9430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 $as_echo_n "checking for $ac_header... " >&6; }
9434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435 $as_echo_n "(cached) " >&6
9437 ac_res=`eval 'as_val=${'$as_ac_Header'}
9438 $as_echo "$as_val"'`
9439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9440 $as_echo "$ac_res" >&6; }
9442 # Is the header compilable?
9443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9444 $as_echo_n "checking $ac_header usability... " >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 $ac_includes_default
9452 #include <$ac_header>
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9461 $as_echo "$ac_try_echo") >&5
9462 (eval "$ac_compile") 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && {
9469 test -z "$ac_c_werror_flag" ||
9470 test ! -s conftest.err
9471 } && test -s conftest.$ac_objext; then
9472 ac_header_compiler=yes
9474 $as_echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9477 ac_header_compiler=no
9480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9482 $as_echo "$ac_header_compiler" >&6; }
9484 # Is the header present?
9485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9486 $as_echo_n "checking $ac_header presence... " >&6; }
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 #include <$ac_header>
9495 if { (ac_try="$ac_cpp conftest.$ac_ext"
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9501 $as_echo "$ac_try_echo") >&5
9502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9504 grep -v '^ *+' conftest.er1 >conftest.err
9506 cat conftest.err >&5
9507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } >/dev/null && {
9509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9510 test ! -s conftest.err
9512 ac_header_preproc=yes
9514 $as_echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_header_preproc=no
9520 rm -f conftest.err conftest.$ac_ext
9521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522 $as_echo "$ac_header_preproc" >&6; }
9524 # So? What about this header?
9525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9531 ac_header_preproc=yes
9534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9537 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 $as_echo_n "checking for $ac_header... " >&6; }
9551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9552 $as_echo_n "(cached) " >&6
9554 eval "$as_ac_Header=\$ac_header_preproc"
9556 ac_res=`eval 'as_val=${'$as_ac_Header'}
9557 $as_echo "$as_val"'`
9558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9559 $as_echo "$ac_res" >&6; }
9562 as_val=`eval 'as_val=${'$as_ac_Header'}
9563 $as_echo "$as_val"'`
9564 if test "x$as_val" = x""yes; then
9565 cat >>confdefs.h <<_ACEOF
9566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9574 ac_cpp='$CXXCPP $CPPFLAGS'
9575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9581 for ac_header in sstream boost/lambda/lambda.hpp
9583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9586 $as_echo_n "checking for $ac_header... " >&6; }
9587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9588 $as_echo_n "(cached) " >&6
9590 ac_res=`eval 'as_val=${'$as_ac_Header'}
9591 $as_echo "$as_val"'`
9592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9593 $as_echo "$ac_res" >&6; }
9595 # Is the header compilable?
9596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9597 $as_echo_n "checking $ac_header usability... " >&6; }
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9605 #include <$ac_header>
9607 rm -f conftest.$ac_objext
9608 if { (ac_try="$ac_compile"
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9614 $as_echo "$ac_try_echo") >&5
9615 (eval "$ac_compile") 2>conftest.er1
9617 grep -v '^ *+' conftest.er1 >conftest.err
9619 cat conftest.err >&5
9620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_cxx_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest.$ac_objext; then
9625 ac_header_compiler=yes
9627 $as_echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_header_compiler=no
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9635 $as_echo "$ac_header_compiler" >&6; }
9637 # Is the header present?
9638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9639 $as_echo_n "checking $ac_header presence... " >&6; }
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 #include <$ac_header>
9648 if { (ac_try="$ac_cpp conftest.$ac_ext"
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9654 $as_echo "$ac_try_echo") >&5
9655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } >/dev/null && {
9662 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9663 test ! -s conftest.err
9665 ac_header_preproc=yes
9667 $as_echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_header_preproc=no
9673 rm -f conftest.err conftest.$ac_ext
9674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9675 $as_echo "$ac_header_preproc" >&6; }
9677 # So? What about this header?
9678 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9684 ac_header_preproc=yes
9687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9703 $as_echo_n "checking for $ac_header... " >&6; }
9704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9705 $as_echo_n "(cached) " >&6
9707 eval "$as_ac_Header=\$ac_header_preproc"
9709 ac_res=`eval 'as_val=${'$as_ac_Header'}
9710 $as_echo "$as_val"'`
9711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9712 $as_echo "$ac_res" >&6; }
9715 as_val=`eval 'as_val=${'$as_ac_Header'}
9716 $as_echo "$as_val"'`
9717 if test "x$as_val" = x""yes; then
9718 cat >>confdefs.h <<_ACEOF
9719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 ac_cpp='$CPP $CPPFLAGS'
9728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9732 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9733 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9734 if test "${ac_cv_header_stat_broken+set}" = set; then
9735 $as_echo_n "(cached) " >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 #include <sys/types.h>
9744 #include <sys/stat.h>
9746 #if defined S_ISBLK && defined S_IFDIR
9747 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9750 #if defined S_ISBLK && defined S_IFCHR
9751 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9754 #if defined S_ISLNK && defined S_IFREG
9755 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9758 #if defined S_ISSOCK && defined S_IFREG
9759 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9763 rm -f conftest.$ac_objext
9764 if { (ac_try="$ac_compile"
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9770 $as_echo "$ac_try_echo") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.$ac_objext; then
9781 ac_cv_header_stat_broken=no
9783 $as_echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_header_stat_broken=yes
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9792 $as_echo "$ac_cv_header_stat_broken" >&6; }
9793 if test $ac_cv_header_stat_broken = yes; then
9795 cat >>confdefs.h <<\_ACEOF
9796 #define STAT_MACROS_BROKEN 1
9801 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9802 $as_echo_n "checking for working memcmp... " >&6; }
9803 if test "${ac_cv_func_memcmp_working+set}" = set; then
9804 $as_echo_n "(cached) " >&6
9806 if test "$cross_compiling" = yes; then
9807 ac_cv_func_memcmp_working=no
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9820 /* Some versions of memcmp are not 8-bit clean. */
9821 char c0 = '\100', c1 = '\200', c2 = '\201';
9822 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9825 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9826 or more and with at least one buffer not starting on a 4-byte boundary.
9827 William Lewis provided this test program. */
9832 for (i = 0; i < 4; i++)
9836 strcpy (a, "--------01111111");
9837 strcpy (b, "--------10000000");
9838 if (memcmp (a, b, 16) >= 0)
9848 rm -f conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_link") 2>&5
9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866 (eval "$ac_try") 2>&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_cv_func_memcmp_working=yes
9872 $as_echo "$as_me: program exited with status $ac_status" >&5
9873 $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_func_memcmp_working=no
9879 rm -rf conftest.dSYM
9880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9885 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9886 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9887 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9888 *" memcmp.$ac_objext "* ) ;;
9889 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9895 for ac_func in vprintf
9897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9899 $as_echo_n "checking for $ac_func... " >&6; }
9900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9901 $as_echo_n "(cached) " >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9911 #define $ac_func innocuous_$ac_func
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char $ac_func (); below.
9915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 <limits.h> exists even on freestanding compilers. */
9919 # include <limits.h>
9921 # include <assert.h>
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9933 /* The GNU C library defines this for functions which it implements
9934 to always fail with ENOSYS. Some functions are actually named
9935 something starting with __ and the normal name is an alias. */
9936 #if defined __stub_$ac_func || defined __stub___$ac_func
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9955 $as_echo "$ac_try_echo") >&5
9956 (eval "$ac_link") 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest$ac_exeext && {
9966 test "$cross_compiling" = yes ||
9967 $as_test_x conftest$ac_exeext
9969 eval "$as_ac_var=yes"
9971 $as_echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 eval "$as_ac_var=no"
9977 rm -rf conftest.dSYM
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9981 ac_res=`eval 'as_val=${'$as_ac_var'}
9982 $as_echo "$as_val"'`
9983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9984 $as_echo "$ac_res" >&6; }
9985 as_val=`eval 'as_val=${'$as_ac_var'}
9986 $as_echo "$as_val"'`
9987 if test "x$as_val" = x""yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9992 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9993 $as_echo_n "checking for _doprnt... " >&6; }
9994 if test "${ac_cv_func__doprnt+set}" = set; then
9995 $as_echo_n "(cached) " >&6
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define _doprnt innocuous__doprnt
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char _doprnt (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10013 # include <limits.h>
10015 # include <assert.h>
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub__doprnt || defined __stub____doprnt
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10049 $as_echo "$ac_try_echo") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest$ac_exeext && {
10060 test "$cross_compiling" = yes ||
10061 $as_test_x conftest$ac_exeext
10063 ac_cv_func__doprnt=yes
10065 $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_cv_func__doprnt=no
10071 rm -rf conftest.dSYM
10072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10073 conftest$ac_exeext conftest.$ac_ext
10075 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10076 $as_echo "$ac_cv_func__doprnt" >&6; }
10077 if test "x$ac_cv_func__doprnt" = x""yes; then
10079 cat >>confdefs.h <<\_ACEOF
10080 #define HAVE_DOPRNT 1
10099 for ac_func in chroot fopencookie funopen gettext isinf mbrtowc memmem snprintf vsnprintf wcrtomb
10101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10103 $as_echo_n "checking for $ac_func... " >&6; }
10104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10105 $as_echo_n "(cached) " >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10115 #define $ac_func innocuous_$ac_func
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char $ac_func (); below.
10119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120 <limits.h> exists even on freestanding compilers. */
10123 # include <limits.h>
10125 # include <assert.h>
10130 /* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
10137 /* The GNU C library defines this for functions which it implements
10138 to always fail with ENOSYS. Some functions are actually named
10139 something starting with __ and the normal name is an alias. */
10140 #if defined __stub_$ac_func || defined __stub___$ac_func
10147 return $ac_func ();
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160 (eval "$ac_link") 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest$ac_exeext && {
10170 test "$cross_compiling" = yes ||
10171 $as_test_x conftest$ac_exeext
10173 eval "$as_ac_var=yes"
10175 $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 eval "$as_ac_var=no"
10181 rm -rf conftest.dSYM
10182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10183 conftest$ac_exeext conftest.$ac_ext
10185 ac_res=`eval 'as_val=${'$as_ac_var'}
10186 $as_echo "$as_val"'`
10187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10188 $as_echo "$ac_res" >&6; }
10189 as_val=`eval 'as_val=${'$as_ac_var'}
10190 $as_echo "$as_val"'`
10191 if test "x$as_val" = x""yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 for ac_header in utf8/wchar.h
10202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 $as_echo_n "checking for $ac_header... " >&6; }
10206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10207 $as_echo_n "(cached) " >&6
10209 ac_res=`eval 'as_val=${'$as_ac_Header'}
10210 $as_echo "$as_val"'`
10211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10212 $as_echo "$ac_res" >&6; }
10214 # Is the header compilable?
10215 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10216 $as_echo_n "checking $ac_header usability... " >&6; }
10217 cat >conftest.$ac_ext <<_ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 $ac_includes_default
10224 #include <$ac_header>
10226 rm -f conftest.$ac_objext
10227 if { (ac_try="$ac_compile"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10233 $as_echo "$ac_try_echo") >&5
10234 (eval "$ac_compile") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest.$ac_objext; then
10244 ac_header_compiler=yes
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_header_compiler=no
10252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10254 $as_echo "$ac_header_compiler" >&6; }
10256 # Is the header present?
10257 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10258 $as_echo_n "checking $ac_header presence... " >&6; }
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 #include <$ac_header>
10267 if { (ac_try="$ac_cpp conftest.$ac_ext"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273 $as_echo "$ac_try_echo") >&5
10274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10276 grep -v '^ *+' conftest.er1 >conftest.err
10278 cat conftest.err >&5
10279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } >/dev/null && {
10281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10282 test ! -s conftest.err
10284 ac_header_preproc=yes
10286 $as_echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 ac_header_preproc=no
10292 rm -f conftest.err conftest.$ac_ext
10293 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10294 $as_echo "$ac_header_preproc" >&6; }
10296 # So? What about this header?
10297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10300 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10302 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10303 ac_header_preproc=yes
10306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10307 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10313 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 $as_echo_n "checking for $ac_header... " >&6; }
10323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10324 $as_echo_n "(cached) " >&6
10326 eval "$as_ac_Header=\$ac_header_preproc"
10328 ac_res=`eval 'as_val=${'$as_ac_Header'}
10329 $as_echo "$as_val"'`
10330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10331 $as_echo "$ac_res" >&6; }
10334 as_val=`eval 'as_val=${'$as_ac_Header'}
10335 $as_echo "$as_val"'`
10336 if test "x$as_val" = x""yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10340 LIBS="$LIBS -lutf8"
10345 { $as_echo "$as_me:$LINENO: checking for library containing mbrtowc" >&5
10346 $as_echo_n "checking for library containing mbrtowc... " >&6; }
10347 if test "${ac_cv_search_mbrtowc+set}" = set; then
10348 $as_echo_n "(cached) " >&6
10350 ac_func_search_save_LIBS=$LIBS
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10373 for ac_lib in '' mingwex msvcp60; do
10374 if test -z "$ac_lib"; then
10375 ac_res="none required"
10378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10380 rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387 $as_echo "$ac_try_echo") >&5
10388 (eval "$ac_link") 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest$ac_exeext && {
10398 test "$cross_compiling" = yes ||
10399 $as_test_x conftest$ac_exeext
10401 ac_cv_search_mbrtowc=$ac_res
10403 $as_echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10409 rm -rf conftest.dSYM
10410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 if test "${ac_cv_search_mbrtowc+set}" = set; then
10416 if test "${ac_cv_search_mbrtowc+set}" = set; then
10419 ac_cv_search_mbrtowc=no
10421 rm conftest.$ac_ext
10422 LIBS=$ac_func_search_save_LIBS
10424 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_mbrtowc" >&5
10425 $as_echo "$ac_cv_search_mbrtowc" >&6; }
10426 ac_res=$ac_cv_search_mbrtowc
10427 if test "$ac_res" != no; then
10428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10434 for ac_prog in pkg-config
10436 # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10441 $as_echo_n "(cached) " >&6
10443 if test -n "$PKG_CONFIG"; then
10444 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10453 ac_cv_prog_PKG_CONFIG="$ac_prog"
10454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10464 if test -n "$PKG_CONFIG"; then
10465 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10466 $as_echo "$PKG_CONFIG" >&6; }
10468 { $as_echo "$as_me:$LINENO: result: no" >&5
10469 $as_echo "no" >&6; }
10473 test -n "$PKG_CONFIG" && break
10475 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10479 r="`eval echo '$'"PKG_CONFIG"`"
10480 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10483 ##STEPMAKE_WARN(cannot find . )
10487 if test $? -ne 0; then
10489 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10491 if test "REQUIRED" = "REQUIRED"; then
10492 command="echo ERROR: pkg-config not found"
10493 # abort configure process here?
10495 command="- echo pkg-config not found"
10497 eval "PKG_CONFIG"='$command'
10503 if test $? -eq 0 -a -n "0.9.0"; then
10505 r="`eval echo '$'"PKG_CONFIG"`"
10506 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10507 $as_echo_n "checking $r version... " >&6; }
10509 ## which doesn't work in ash, if /usr/bin/which isn't installed
10510 ## type -p doesn't work in ash
10511 ## command -v doesn't work in zsh
10512 ## command -v "$r" 2>&1
10513 ## this test should work in ash, bash, pdksh (ksh), zsh
10514 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10516 if test -n ""; then
10520 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10523 ## Workaround for broken Debian gcc version string:
10524 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10526 ## -V: Workaround for python
10530 ## Assume and hunt for dotted version multiplet.
10531 ## use eval trickery, because we cannot use multi-level $() instead of ``
10532 ## for compatibility reasons.
10534 ## grab the first version number in --version output.
10535 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
10537 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
10539 if test -z "$_ver"; then
10540 ## If empty, try date [fontforge]
10541 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10543 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10550 echo "$ver" | awk -F. '
10552 if ($3) {three = $3}
10555 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10558 echo "0.9.0" | awk -F. '
10560 if ($3) {three = $3}
10563 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10565 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10566 $as_echo "$ver" >&6; }
10567 if test "$num" -lt "$req"; then
10569 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10572 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10573 eval `echo $vervar=$num`
10574 ## AC_SUBST(`eval echo $vervar`)
10579 if test "$gui_b" = "yes"; then
10584 if test -z "$PKG_CONFIG"; then
10585 # Extract the first word of "pkg-config", so it can be a program name with args.
10586 set dummy pkg-config; ac_word=$2
10587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10590 $as_echo_n "(cached) " >&6
10592 case $PKG_CONFIG in
10594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10617 if test -n "$PKG_CONFIG"; then
10618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10619 $as_echo "$PKG_CONFIG" >&6; }
10621 { $as_echo "$as_me:$LINENO: result: no" >&5
10622 $as_echo "no" >&6; }
10628 if test "$PKG_CONFIG" = "no" ; then
10629 echo "*** The pkg-config script could not be found. Make sure it is"
10630 echo "*** in your path, or set the PKG_CONFIG environment variable"
10631 echo "*** to the full path to pkg-config."
10632 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10634 PKG_CONFIG_MIN_VERSION=0.9.0
10635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636 { $as_echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4.0" >&5
10637 $as_echo_n "checking for gtk+-2.0 >= 2.4.0... " >&6; }
10639 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4.0" ; then
10640 { $as_echo "$as_me:$LINENO: result: yes" >&5
10641 $as_echo "yes" >&6; }
10644 { $as_echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
10645 $as_echo_n "checking GTK2_CFLAGS... " >&6; }
10646 GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0"`
10647 { $as_echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5
10648 $as_echo "$GTK2_CFLAGS" >&6; }
10650 { $as_echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
10651 $as_echo_n "checking GTK2_LIBS... " >&6; }
10652 GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0"`
10653 { $as_echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5
10654 $as_echo "$GTK2_LIBS" >&6; }
10658 ## If we have a custom action on failure, don't print errors, but
10659 ## do set a variable so people can do so.
10660 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
10669 if test $succeeded = yes; then
10675 if test "$have_gtk2" = yes ; then
10676 cat >>confdefs.h <<\_ACEOF
10677 #define HAVE_GTK2 1
10680 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
10681 save_CPPFLAGS="$CPPFLAGS"
10683 CPPFLAGS="$GTK2_CFLAGS $CPPFLAGS"
10684 LIBS="$GTK2_LIBS $LIBS"
10687 CPPFLAGS="$save_CPPFLAGS"
10691 # r="libgtk+-2.0-dev or gtk+-2.0-devel"
10692 r="libgtk2.0-dev or gtk2-devel"
10693 ver="`pkg-config --modversion gtk+-2.0`"
10695 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
10701 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10702 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10703 if test "$reloc_b" = "yes"; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define ARGV0_RELOCATION 1
10709 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10710 $as_echo "$reloc_b" >&6; }
10712 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10713 $as_echo_n "checking for rpath linkage... " >&6; }
10714 if test "$rpath_b" = "yes"; then
10715 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10716 elif test "$rpath_b" != "no"; then
10717 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10719 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10720 $as_echo "$rpath_b" >&6; }
10722 HOST_ARCH=`$CC -dumpmachine`
10729 if test -z "$PKG_CONFIG"; then
10730 # Extract the first word of "pkg-config", so it can be a program name with args.
10731 set dummy pkg-config; ac_word=$2
10732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10737 case $PKG_CONFIG in
10739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10746 test -z "$as_dir" && as_dir=.
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10762 if test -n "$PKG_CONFIG"; then
10763 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10764 $as_echo "$PKG_CONFIG" >&6; }
10766 { $as_echo "$as_me:$LINENO: result: no" >&5
10767 $as_echo "no" >&6; }
10773 if test "$PKG_CONFIG" = "no" ; then
10774 echo "*** The pkg-config script could not be found. Make sure it is"
10775 echo "*** in your path, or set the PKG_CONFIG environment variable"
10776 echo "*** to the full path to pkg-config."
10777 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10779 PKG_CONFIG_MIN_VERSION=0.9.0
10780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10781 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
10782 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
10784 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
10785 { $as_echo "$as_me:$LINENO: result: yes" >&5
10786 $as_echo "yes" >&6; }
10789 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
10790 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
10791 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
10792 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
10793 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
10795 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
10796 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
10797 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
10798 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
10799 $as_echo "$PANGO_FT2_LIBS" >&6; }
10801 PANGO_FT2_CFLAGS=""
10803 ## If we have a custom action on failure, don't print errors, but
10804 ## do set a variable so people can do so.
10805 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
10814 if test $succeeded = yes; then
10820 if test "$have_pangoft2" = yes ; then
10821 cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_PANGO16 1
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_PANGO_FT2 1
10829 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
10830 save_CPPFLAGS="$CPPFLAGS"
10832 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
10833 LIBS="$PANGO_FT2_LIBS $LIBS"
10835 for ac_header in pango/pangoft2.h
10837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 $as_echo_n "checking for $ac_header... " >&6; }
10841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842 $as_echo_n "(cached) " >&6
10844 ac_res=`eval 'as_val=${'$as_ac_Header'}
10845 $as_echo "$as_val"'`
10846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10847 $as_echo "$ac_res" >&6; }
10849 # Is the header compilable?
10850 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10851 $as_echo_n "checking $ac_header usability... " >&6; }
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 $ac_includes_default
10859 #include <$ac_header>
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10868 $as_echo "$ac_try_echo") >&5
10869 (eval "$ac_compile") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest.$ac_objext; then
10879 ac_header_compiler=yes
10881 $as_echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_header_compiler=no
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10889 $as_echo "$ac_header_compiler" >&6; }
10891 # Is the header present?
10892 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10893 $as_echo_n "checking $ac_header presence... " >&6; }
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #include <$ac_header>
10902 if { (ac_try="$ac_cpp conftest.$ac_ext"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } >/dev/null && {
10916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10919 ac_header_preproc=yes
10921 $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_header_preproc=no
10927 rm -f conftest.err conftest.$ac_ext
10928 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10929 $as_echo "$ac_header_preproc" >&6; }
10931 # So? What about this header?
10932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10935 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10937 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10938 ac_header_preproc=yes
10941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10942 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10944 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10946 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10948 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10952 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 $as_echo_n "checking for $ac_header... " >&6; }
10958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959 $as_echo_n "(cached) " >&6
10961 eval "$as_ac_Header=\$ac_header_preproc"
10963 ac_res=`eval 'as_val=${'$as_ac_Header'}
10964 $as_echo "$as_val"'`
10965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10966 $as_echo "$ac_res" >&6; }
10969 as_val=`eval 'as_val=${'$as_ac_Header'}
10970 $as_echo "$as_val"'`
10971 if test "x$as_val" = x""yes; then
10972 cat >>confdefs.h <<_ACEOF
10973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10981 for ac_func in pango_ft2_font_map_create_context
10983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10984 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10985 $as_echo_n "checking for $ac_func... " >&6; }
10986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10987 $as_echo_n "(cached) " >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10997 #define $ac_func innocuous_$ac_func
10999 /* System header to define __stub macros and hopefully few prototypes,
11000 which can conflict with char $ac_func (); below.
11001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11002 <limits.h> exists even on freestanding compilers. */
11005 # include <limits.h>
11007 # include <assert.h>
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11019 /* The GNU C library defines this for functions which it implements
11020 to always fail with ENOSYS. Some functions are actually named
11021 something starting with __ and the normal name is an alias. */
11022 #if defined __stub_$ac_func || defined __stub___$ac_func
11029 return $ac_func ();
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (ac_try="$ac_link"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11041 $as_echo "$ac_try_echo") >&5
11042 (eval "$ac_link") 2>conftest.er1
11044 grep -v '^ *+' conftest.er1 >conftest.err
11046 cat conftest.err >&5
11047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } && {
11049 test -z "$ac_c_werror_flag" ||
11050 test ! -s conftest.err
11051 } && test -s conftest$ac_exeext && {
11052 test "$cross_compiling" = yes ||
11053 $as_test_x conftest$ac_exeext
11055 eval "$as_ac_var=yes"
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 eval "$as_ac_var=no"
11063 rm -rf conftest.dSYM
11064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11065 conftest$ac_exeext conftest.$ac_ext
11067 ac_res=`eval 'as_val=${'$as_ac_var'}
11068 $as_echo "$as_val"'`
11069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11070 $as_echo "$ac_res" >&6; }
11071 as_val=`eval 'as_val=${'$as_ac_var'}
11072 $as_echo "$as_val"'`
11073 if test "x$as_val" = x""yes; then
11074 cat >>confdefs.h <<_ACEOF
11075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11083 CPPFLAGS="$save_CPPFLAGS"
11087 #r="libpangoft2-dev or pangoft2-devel"e
11088 r="libpango1.0-dev or pango?-devel"
11089 ver="`pkg-config --modversion pangoft2`"
11091 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11095 #STEPMAKE_PANGO(pango, REQUIRED, 1.6.0)
11100 if test -z "$PKG_CONFIG"; then
11101 # Extract the first word of "pkg-config", so it can be a program name with args.
11102 set dummy pkg-config; ac_word=$2
11103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11106 $as_echo_n "(cached) " >&6
11108 case $PKG_CONFIG in
11110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11133 if test -n "$PKG_CONFIG"; then
11134 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11135 $as_echo "$PKG_CONFIG" >&6; }
11137 { $as_echo "$as_me:$LINENO: result: no" >&5
11138 $as_echo "no" >&6; }
11144 if test "$PKG_CONFIG" = "no" ; then
11145 echo "*** The pkg-config script could not be found. Make sure it is"
11146 echo "*** in your path, or set the PKG_CONFIG environment variable"
11147 echo "*** to the full path to pkg-config."
11148 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11150 PKG_CONFIG_MIN_VERSION=0.9.0
11151 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11152 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
11153 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11155 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" ; then
11156 { $as_echo "$as_me:$LINENO: result: yes" >&5
11157 $as_echo "yes" >&6; }
11160 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11161 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11162 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"`
11163 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11164 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11166 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11167 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11168 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"`
11169 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11170 $as_echo "$FONTCONFIG_LIBS" >&6; }
11172 FONTCONFIG_CFLAGS=""
11174 ## If we have a custom action on failure, don't print errors, but
11175 ## do set a variable so people can do so.
11176 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11185 if test $succeeded = yes; then
11186 have_fontconfig=yes
11191 if test "$have_fontconfig" = yes ; then
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_FONTCONFIG 1
11196 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11197 save_CPPFLAGS="$CPPFLAGS"
11199 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11200 LIBS="$FONTCONFIG_LIBS $LIBS"
11203 CPPFLAGS="$save_CPPFLAGS"
11206 r="libfontconfig-dev or fontconfig-devel"
11207 ver="`pkg-config --modversion fontconfig`"
11209 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.2.0 (installed: $ver)"\"`\"
11217 if test -z "$PKG_CONFIG"; then
11218 # Extract the first word of "pkg-config", so it can be a program name with args.
11219 set dummy pkg-config; ac_word=$2
11220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11223 $as_echo_n "(cached) " >&6
11225 case $PKG_CONFIG in
11227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11234 test -z "$as_dir" && as_dir=.
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11250 if test -n "$PKG_CONFIG"; then
11251 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11252 $as_echo "$PKG_CONFIG" >&6; }
11254 { $as_echo "$as_me:$LINENO: result: no" >&5
11255 $as_echo "no" >&6; }
11261 if test "$PKG_CONFIG" = "no" ; then
11262 echo "*** The pkg-config script could not be found. Make sure it is"
11263 echo "*** in your path, or set the PKG_CONFIG environment variable"
11264 echo "*** to the full path to pkg-config."
11265 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11267 PKG_CONFIG_MIN_VERSION=0.9.0
11268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11269 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11270 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11272 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11273 { $as_echo "$as_me:$LINENO: result: yes" >&5
11274 $as_echo "yes" >&6; }
11277 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11278 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11279 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11280 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11281 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11283 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11284 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11285 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11286 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11287 $as_echo "$FREETYPE2_LIBS" >&6; }
11289 FREETYPE2_CFLAGS=""
11291 ## If we have a custom action on failure, don't print errors, but
11292 ## do set a variable so people can do so.
11293 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11302 if test $succeeded = yes; then
11308 if test "$have_freetype2" = yes; then
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_FREETYPE2 1
11313 save_CPPFLAGS="$CPPFLAGS"
11315 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11316 LIBS="$FREETYPE2_LIBS $LIBS"
11319 CPPFLAGS="$save_CPPFLAGS"
11323 #r="libfreetype2-dev or freetype2-devel"
11324 r="libfreetype6-dev or freetype?-devel"
11325 ver="`pkg-config --modversion freetype2`"
11327 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11333 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11334 $as_echo_n "checking host system type... " >&6; }
11335 if test "${ac_cv_host+set}" = set; then
11336 $as_echo_n "(cached) " >&6
11338 if test "x$host_alias" = x; then
11339 ac_cv_host=$ac_cv_build
11341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11342 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11343 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11344 { (exit 1); exit 1; }; }
11348 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11349 $as_echo "$ac_cv_host" >&6; }
11350 case $ac_cv_host in
11352 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11353 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11354 { (exit 1); exit 1; }; };;
11357 ac_save_IFS=$IFS; IFS='-'
11363 # Remember, the first character of IFS is used to create $*,
11364 # except with old shells:
11367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11371 *cygwin* ) CYGWIN=yes;;
11375 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11376 $as_echo_n "checking host system type... " >&6; }
11377 if test "${ac_cv_host+set}" = set; then
11378 $as_echo_n "(cached) " >&6
11380 if test "x$host_alias" = x; then
11381 ac_cv_host=$ac_cv_build
11383 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11384 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11385 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11386 { (exit 1); exit 1; }; }
11390 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11391 $as_echo "$ac_cv_host" >&6; }
11392 case $ac_cv_host in
11394 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11395 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11396 { (exit 1); exit 1; }; };;
11399 ac_save_IFS=$IFS; IFS='-'
11405 # Remember, the first character of IFS is used to create $*,
11406 # except with old shells:
11409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11413 *mingw32* ) MINGW32=yes;;
11418 if test "$CYGWIN" = "yes"; then
11419 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11420 program_suffix=.exe
11421 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11422 elif test "$MINGW32" = "yes"; then
11425 program_suffix=.exe
11426 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11432 cat >>confdefs.h <<_ACEOF
11433 #define DIRSEP '${DIRSEP}'
11436 cat >>confdefs.h <<_ACEOF
11437 #define PATHSEP '${PATHSEP}'
11444 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11445 $as_echo_n "checking for some flavor of Windows... " >&6; }
11446 if test "$CYGWIN$MINGW32" = "nono"; then
11447 PLATFORM_WINDOWS=no
11449 PLATFORM_WINDOWS=yes
11451 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11452 $as_echo "$PLATFORM_WINDOWS" >&6; }
11455 for ac_prog in $target-windres windres
11457 # Extract the first word of "$ac_prog", so it can be a program name with args.
11458 set dummy $ac_prog; ac_word=$2
11459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if test "${ac_cv_prog_WINDRES+set}" = set; then
11462 $as_echo_n "(cached) " >&6
11464 if test -n "$WINDRES"; then
11465 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_prog_WINDRES="$ac_prog"
11475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 WINDRES=$ac_cv_prog_WINDRES
11485 if test -n "$WINDRES"; then
11486 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11487 $as_echo "$WINDRES" >&6; }
11489 { $as_echo "$as_me:$LINENO: result: no" >&5
11490 $as_echo "no" >&6; }
11494 test -n "$WINDRES" && break
11496 test -n "$WINDRES" || WINDRES="no"
11500 r="`eval echo '$'"WINDRES"`"
11501 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11504 ##STEPMAKE_WARN(cannot find . )
11508 if test $? -ne 0; then
11510 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11512 if test "x" = "REQUIRED"; then
11513 command="echo ERROR: $target-windres windres not found"
11514 # abort configure process here?
11516 command="- echo $target-windres windres not found"
11518 eval "WINDRES"='$command'
11524 if test $? -eq 0 -a -n ""; then
11526 r="`eval echo '$'"WINDRES"`"
11527 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11528 $as_echo_n "checking $r version... " >&6; }
11530 ## which doesn't work in ash, if /usr/bin/which isn't installed
11531 ## type -p doesn't work in ash
11532 ## command -v doesn't work in zsh
11533 ## command -v "$r" 2>&1
11534 ## this test should work in ash, bash, pdksh (ksh), zsh
11535 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11537 if test -n ""; then
11541 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11544 ## Workaround for broken Debian gcc version string:
11545 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11547 ## -V: Workaround for python
11551 ## Assume and hunt for dotted version multiplet.
11552 ## use eval trickery, because we cannot use multi-level $() instead of ``
11553 ## for compatibility reasons.
11555 ## grab the first version number in --version output.
11556 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
11558 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
11560 if test -z "$_ver"; then
11561 ## If empty, try date [fontforge]
11562 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11564 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11571 echo "$ver" | awk -F. '
11573 if ($3) {three = $3}
11576 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11579 echo "" | awk -F. '
11581 if ($3) {three = $3}
11584 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11586 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11587 $as_echo "$ver" >&6; }
11588 if test "$num" -lt "$req"; then
11590 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
11593 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11594 eval `echo $vervar=$num`
11595 ## AC_SUBST(`eval echo $vervar`)
11602 ## Optional tools for building documentation, website, extra fonts.
11604 # guile executable for some scripts
11607 for ac_prog in guile
11609 # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_prog_GUILE+set}" = set; then
11614 $as_echo_n "(cached) " >&6
11616 if test -n "$GUILE"; then
11617 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11626 ac_cv_prog_GUILE="$ac_prog"
11627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11636 GUILE=$ac_cv_prog_GUILE
11637 if test -n "$GUILE"; then
11638 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11639 $as_echo "$GUILE" >&6; }
11641 { $as_echo "$as_me:$LINENO: result: no" >&5
11642 $as_echo "no" >&6; }
11646 test -n "$GUILE" && break
11648 test -n "$GUILE" || GUILE="no"
11652 r="`eval echo '$'"GUILE"`"
11653 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
11656 ##STEPMAKE_WARN(cannot find . )
11660 if test $? -ne 0; then
11662 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
11664 if test "OPTIONAL" = "REQUIRED"; then
11665 command="echo ERROR: guile not found"
11666 # abort configure process here?
11668 command="- echo guile not found"
11670 eval "GUILE"='$command'
11676 if test $? -eq 0; then
11677 # Extract the first word of "guile", so it can be a program name with args.
11678 set dummy guile; ac_word=$2
11679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if test "${ac_cv_path_GUILE+set}" = set; then
11682 $as_echo_n "(cached) " >&6
11686 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 GUILE=$ac_cv_path_GUILE
11708 if test -n "$GUILE"; then
11709 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11710 $as_echo "$GUILE" >&6; }
11712 { $as_echo "$as_me:$LINENO: result: no" >&5
11713 $as_echo "no" >&6; }
11717 if test -n ""; then
11719 r="`eval echo '$'"GUILE"`"
11720 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11721 $as_echo_n "checking $r version... " >&6; }
11723 ## which doesn't work in ash, if /usr/bin/which isn't installed
11724 ## type -p doesn't work in ash
11725 ## command -v doesn't work in zsh
11726 ## command -v "$r" 2>&1
11727 ## this test should work in ash, bash, pdksh (ksh), zsh
11728 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11730 if test -n ""; then
11734 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11737 ## Workaround for broken Debian gcc version string:
11738 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11740 ## -V: Workaround for python
11744 ## Assume and hunt for dotted version multiplet.
11745 ## use eval trickery, because we cannot use multi-level $() instead of ``
11746 ## for compatibility reasons.
11748 ## grab the first version number in --version output.
11749 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
11751 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
11753 if test -z "$_ver"; then
11754 ## If empty, try date [fontforge]
11755 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11757 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11764 echo "$ver" | awk -F. '
11766 if ($3) {three = $3}
11769 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11772 echo "" | awk -F. '
11774 if ($3) {three = $3}
11777 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11779 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11780 $as_echo "$ver" >&6; }
11781 if test "$num" -lt "$req"; then
11783 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
11786 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
11787 eval `echo $vervar=$num`
11788 ## AC_SUBST(`eval echo $vervar`)
11795 # perl for help2man.
11798 for ac_prog in perl
11800 # Extract the first word of "$ac_prog", so it can be a program name with args.
11801 set dummy $ac_prog; ac_word=$2
11802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_prog_PERL+set}" = set; then
11805 $as_echo_n "(cached) " >&6
11807 if test -n "$PERL"; then
11808 ac_cv_prog_PERL="$PERL" # Let the user override the test.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11817 ac_cv_prog_PERL="$ac_prog"
11818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 PERL=$ac_cv_prog_PERL
11828 if test -n "$PERL"; then
11829 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11830 $as_echo "$PERL" >&6; }
11832 { $as_echo "$as_me:$LINENO: result: no" >&5
11833 $as_echo "no" >&6; }
11837 test -n "$PERL" && break
11839 test -n "$PERL" || PERL="no"
11843 r="`eval echo '$'"PERL"`"
11844 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
11847 ##STEPMAKE_WARN(cannot find . )
11851 if test $? -ne 0; then
11853 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
11855 if test "OPTIONAL" = "REQUIRED"; then
11856 command="echo ERROR: perl not found"
11857 # abort configure process here?
11859 command="- echo perl not found"
11861 eval "PERL"='$command'
11867 if test $? -eq 0; then
11868 # Extract the first word of "perl", so it can be a program name with args.
11869 set dummy perl; ac_word=$2
11870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if test "${ac_cv_path_PERL+set}" = set; then
11873 $as_echo_n "(cached) " >&6
11877 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11888 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 PERL=$ac_cv_path_PERL
11899 if test -n "$PERL"; then
11900 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11901 $as_echo "$PERL" >&6; }
11903 { $as_echo "$as_me:$LINENO: result: no" >&5
11904 $as_echo "no" >&6; }
11908 if test -n ""; then
11910 r="`eval echo '$'"PERL"`"
11911 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11912 $as_echo_n "checking $r version... " >&6; }
11914 ## which doesn't work in ash, if /usr/bin/which isn't installed
11915 ## type -p doesn't work in ash
11916 ## command -v doesn't work in zsh
11917 ## command -v "$r" 2>&1
11918 ## this test should work in ash, bash, pdksh (ksh), zsh
11919 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11921 if test -n ""; then
11925 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11928 ## Workaround for broken Debian gcc version string:
11929 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11931 ## -V: Workaround for python
11935 ## Assume and hunt for dotted version multiplet.
11936 ## use eval trickery, because we cannot use multi-level $() instead of ``
11937 ## for compatibility reasons.
11939 ## grab the first version number in --version output.
11940 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
11942 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
11944 if test -z "$_ver"; then
11945 ## If empty, try date [fontforge]
11946 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11948 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11955 echo "$ver" | awk -F. '
11957 if ($3) {three = $3}
11960 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11963 echo "" | awk -F. '
11965 if ($3) {three = $3}
11968 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11970 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11971 $as_echo "$ver" >&6; }
11972 if test "$num" -lt "$req"; then
11974 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
11977 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
11978 eval `echo $vervar=$num`
11979 ## AC_SUBST(`eval echo $vervar`)
11987 for ac_prog in makeinfo
11989 # Extract the first word of "$ac_prog", so it can be a program name with args.
11990 set dummy $ac_prog; ac_word=$2
11991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11994 $as_echo_n "(cached) " >&6
11996 if test -n "$MAKEINFO"; then
11997 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006 ac_cv_prog_MAKEINFO="$ac_prog"
12007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 MAKEINFO=$ac_cv_prog_MAKEINFO
12017 if test -n "$MAKEINFO"; then
12018 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12019 $as_echo "$MAKEINFO" >&6; }
12021 { $as_echo "$as_me:$LINENO: result: no" >&5
12022 $as_echo "no" >&6; }
12026 test -n "$MAKEINFO" && break
12028 test -n "$MAKEINFO" || MAKEINFO="no"
12032 r="`eval echo '$'"MAKEINFO"`"
12033 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12036 ##STEPMAKE_WARN(cannot find . )
12040 if test $? -ne 0; then
12042 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12044 if test "REQUIRED" = "REQUIRED"; then
12045 command="echo ERROR: makeinfo not found"
12046 # abort configure process here?
12048 command="- echo makeinfo not found"
12050 eval "MAKEINFO"='$command'
12056 if test $? -eq 0 -a -n "4.11"; then
12058 r="`eval echo '$'"MAKEINFO"`"
12059 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12060 $as_echo_n "checking $r version... " >&6; }
12062 ## which doesn't work in ash, if /usr/bin/which isn't installed
12063 ## type -p doesn't work in ash
12064 ## command -v doesn't work in zsh
12065 ## command -v "$r" 2>&1
12066 ## this test should work in ash, bash, pdksh (ksh), zsh
12067 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12069 if test -n ""; then
12073 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12076 ## Workaround for broken Debian gcc version string:
12077 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12079 ## -V: Workaround for python
12083 ## Assume and hunt for dotted version multiplet.
12084 ## use eval trickery, because we cannot use multi-level $() instead of ``
12085 ## for compatibility reasons.
12087 ## grab the first version number in --version output.
12088 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
12090 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
12092 if test -z "$_ver"; then
12093 ## If empty, try date [fontforge]
12094 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12096 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12103 echo "$ver" | awk -F. '
12105 if ($3) {three = $3}
12108 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12111 echo "4.11" | awk -F. '
12113 if ($3) {three = $3}
12116 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12118 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12119 $as_echo "$ver" >&6; }
12120 if test "$num" -lt "$req"; then
12122 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12125 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12126 eval `echo $vervar=$num`
12127 ## AC_SUBST(`eval echo $vervar`)
12132 for ac_prog in texi2html
12134 # Extract the first word of "$ac_prog", so it can be a program name with args.
12135 set dummy $ac_prog; ac_word=$2
12136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12139 $as_echo_n "(cached) " >&6
12141 if test -n "$TEXI2HTML"; then
12142 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151 ac_cv_prog_TEXI2HTML="$ac_prog"
12152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12162 if test -n "$TEXI2HTML"; then
12163 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12164 $as_echo "$TEXI2HTML" >&6; }
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167 $as_echo "no" >&6; }
12171 test -n "$TEXI2HTML" && break
12173 test -n "$TEXI2HTML" || TEXI2HTML="no"
12177 r="`eval echo '$'"TEXI2HTML"`"
12178 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12181 ##STEPMAKE_WARN(cannot find . )
12185 if test $? -ne 0; then
12187 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12189 if test "OPTIONAL" = "REQUIRED"; then
12190 command="echo ERROR: texi2html not found"
12191 # abort configure process here?
12193 command="- echo texi2html not found"
12195 eval "TEXI2HTML"='$command'
12201 if test $? -eq 0 -a -n "1.80"; then
12203 r="`eval echo '$'"TEXI2HTML"`"
12204 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12205 $as_echo_n "checking $r version... " >&6; }
12207 ## which doesn't work in ash, if /usr/bin/which isn't installed
12208 ## type -p doesn't work in ash
12209 ## command -v doesn't work in zsh
12210 ## command -v "$r" 2>&1
12211 ## this test should work in ash, bash, pdksh (ksh), zsh
12212 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12214 if test -n ""; then
12218 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12221 ## Workaround for broken Debian gcc version string:
12222 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12224 ## -V: Workaround for python
12228 ## Assume and hunt for dotted version multiplet.
12229 ## use eval trickery, because we cannot use multi-level $() instead of ``
12230 ## for compatibility reasons.
12232 ## grab the first version number in --version output.
12233 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
12235 | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
12237 if test -z "$_ver"; then
12238 ## If empty, try date [fontforge]
12239 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12241 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12248 echo "$ver" | awk -F. '
12250 if ($3) {three = $3}
12253 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12256 echo "1.80" | awk -F. '
12258 if ($3) {three = $3}
12261 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12263 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12264 $as_echo "$ver" >&6; }
12265 if test "$num" -lt "$req"; then
12267 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.80 (installed: $ver)"\"`\"
12270 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12271 eval `echo $vervar=$num`
12272 ## AC_SUBST(`eval echo $vervar`)
12277 cat >>confdefs.h <<_ACEOF
12278 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
12282 # must also have local.make if configure fails.
12285 if test "$reloc_b$rpath_b" = "yesno"; then
12287 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
12288 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
12293 # Gather requirements and generate output.
12296 # undo expanding of explicit --infodir=/usr/share
12297 # to ease install-time override with prefix=...
12298 strip=`echo $includedir | eval sed s@^$prefix@@`
12299 if test "$includedir" = "`eval echo $prefix$strip`"; then
12300 includedir='${prefix}'$strip''
12302 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
12303 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
12304 libdir='${exec_prefix}'$strip''
12306 strip=`echo $infodir | eval sed s@^$datarootdir@@`
12307 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
12308 infodir='${datarootdir}'$strip''
12310 strip=`echo $mandir | eval sed s@^$datarootdir@@`
12311 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
12312 mandir='${datarootdir}'$strip''
12319 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
12321 cat >confcache <<\_ACEOF
12322 # This file is a shell script that caches the results of configure
12323 # tests run on this system so they can be shared between configure
12324 # scripts and configure runs, see configure's option --config-cache.
12325 # It is not useful on other systems. If it contains results you don't
12326 # want to keep, you may remove or edit it.
12328 # config.status only pays attention to the cache file if you give it
12329 # the --recheck option to rerun configure.
12331 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12333 # following values.
12337 # The following way of writing the cache mishandles newlines in values,
12338 # but we know of no workaround that is simple, portable, and efficient.
12339 # So, we kill variables containing newlines.
12340 # Ultrix sh set writes to stderr and can't be redirected directly,
12341 # and sets the high bit in the cache file unless we assign to the vars.
12343 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12344 eval ac_val=\$$ac_var
12348 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12352 _ | IFS | as_nl) ;; #(
12353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12354 *) $as_unset $ac_var ;;
12360 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12361 *${as_nl}ac_space=\ *)
12362 # `set' does not quote correctly, so add quotes (double-quote
12363 # substitution turns \\\\ into \\, and sed turns \\ into \).
12366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12369 # `set' quotes correctly as required by POSIX, so do not add quotes.
12370 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12381 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12383 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12384 if test -w "$cache_file"; then
12385 test "x$cache_file" != "x/dev/null" &&
12386 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12387 $as_echo "$as_me: updating cache $cache_file" >&6;}
12388 cat confcache >$cache_file
12390 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12391 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12397 # Let make expand exec_prefix.
12398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12400 DEFS=-DHAVE_CONFIG_H
12404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12405 # 1. Remove the extension, and $U if already installed.
12406 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12407 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12408 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12409 # will be set to the directory where LIBOBJS objects are built.
12410 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12411 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12413 LIBOBJS=$ac_libobjs
12415 LTLIBOBJS=$ac_ltlibobjs
12419 : ${CONFIG_STATUS=./config.status}
12421 ac_clean_files_save=$ac_clean_files
12422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12423 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12425 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12427 # Generated by $as_me.
12428 # Run this file to recreate the current configuration.
12429 # Compiler output produced by configure, useful for debugging
12430 # configure, is in config.log if it exists.
12433 ac_cs_recheck=false
12435 SHELL=\${CONFIG_SHELL-$SHELL}
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439 ## --------------------- ##
12440 ## M4sh Initialization. ##
12441 ## --------------------- ##
12443 # Be more Bourne compatible
12444 DUALCASE=1; export DUALCASE # for MKS sh
12445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12449 # is contrary to our usage. Disable this feature.
12450 alias -g '${1+"$@"}'='"$@"'
12451 setopt NO_GLOB_SUBST
12453 case `(set -o) 2>/dev/null` in
12454 *posix*) set -o posix ;;
12463 # Avoid depending upon Character Ranges.
12464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12467 as_cr_digits='0123456789'
12468 as_cr_alnum=$as_cr_Letters$as_cr_digits
12473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12474 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12477 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12478 as_echo='printf %s\n'
12479 as_echo_n='printf %s'
12481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12482 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12483 as_echo_n='/usr/ucb/echo -n'
12485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12486 as_echo_n_body='eval
12490 expr "X$arg" : "X\\(.*\\)$as_nl";
12491 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12493 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12495 export as_echo_n_body
12496 as_echo_n='sh -c $as_echo_n_body as_echo'
12498 export as_echo_body
12499 as_echo='sh -c $as_echo_body as_echo'
12502 # The user is always right.
12503 if test "${PATH_SEPARATOR+set}" != set; then
12505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12506 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12511 # Support unset when possible.
12512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12520 # We need space, tab and new line, in precisely that order. Quoting is
12521 # there to prevent editors from complaining about space-tab.
12522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12523 # splitting by setting IFS to empty value.)
12526 # Find who we are. Look in the path if we contain no directory separator.
12528 *[\\/]* ) as_myself=$0 ;;
12529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12533 test -z "$as_dir" && as_dir=.
12534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12540 # We did not find ourselves, most probably we were run as `sh COMMAND'
12541 # in which case we are not to be found in the path.
12542 if test "x$as_myself" = x; then
12545 if test ! -f "$as_myself"; then
12546 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12547 { (exit 1); exit 1; }
12550 # Work around bugs in pre-3.0 UWIN ksh.
12551 for as_var in ENV MAIL MAILPATH
12552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12564 # Required to use basename.
12565 if expr a : '\(a\)' >/dev/null 2>&1 &&
12566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12573 as_basename=basename
12579 # Name of the executable.
12580 as_me=`$as_basename -- "$0" ||
12581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12582 X"$0" : 'X\(//\)$' \| \
12583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12585 sed '/^.*\/\([^/][^/]*\)\/*$/{
12604 as_lineno_1=$LINENO
12605 as_lineno_2=$LINENO
12606 test "x$as_lineno_1" != "x$as_lineno_2" &&
12607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12610 # uniformly replaced by the line number. The first 'sed' inserts a
12611 # line-number line after each line using $LINENO; the second 'sed'
12612 # does the real work. The second script uses 'N' to pair each
12613 # line-number line with the line containing $LINENO, and appends
12614 # trailing '-' during substitution so that $LINENO is not a special
12615 # case at line end.
12616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12617 # scripts with optimization help from Paolo Bonzini. Blame Lee
12618 # E. McMahon (1931-1989) for sed's syntax. :-)
12630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12633 ' >$as_me.lineno &&
12634 chmod +x "$as_me.lineno" ||
12635 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12636 { (exit 1); exit 1; }; }
12638 # Don't try to exec as it changes $[0], causing all sort of problems
12639 # (the dirname of $[0] is not the place where we might find the
12640 # original and so on. Autoconf is especially sensitive to this).
12641 . "./$as_me.lineno"
12642 # Exit status is that of the last command.
12647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12653 ECHO_C= ECHO_N= ECHO_T=
12654 case `echo -n x` in
12656 case `echo 'x\c'` in
12657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12663 if expr a : '\(a\)' >/dev/null 2>&1 &&
12664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12670 rm -f conf$$ conf$$.exe conf$$.file
12671 if test -d conf$$.dir; then
12672 rm -f conf$$.dir/conf$$.file
12675 mkdir conf$$.dir 2>/dev/null
12677 if (echo >conf$$.file) 2>/dev/null; then
12678 if ln -s conf$$.file conf$$ 2>/dev/null; then
12680 # ... but there are two gotchas:
12681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12683 # In both cases, we have to default to `cp -p'.
12684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12686 elif ln conf$$.file conf$$ 2>/dev/null; then
12694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12695 rmdir conf$$.dir 2>/dev/null
12697 if mkdir -p . 2>/dev/null; then
12700 test -d ./-p && rmdir ./-p
12704 if test -x / >/dev/null 2>&1; then
12705 as_test_x='test -x'
12707 if ls -dL / >/dev/null 2>&1; then
12714 if test -d "$1"; then
12720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12721 ???[sx]*):;;*)false;;esac;fi
12725 as_executable_p=$as_test_x
12727 # Sed expression to map a string onto a valid CPP name.
12728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12730 # Sed expression to map a string onto a valid variable name.
12731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12736 # Save the log message, to keep $[0] and so on meaningful, and to
12737 # report actual input values of CONFIG_FILES etc. instead of their
12738 # values after options handling.
12740 This file was extended by $as_me, which was
12741 generated by GNU Autoconf 2.63. Invocation command line was
12743 CONFIG_FILES = $CONFIG_FILES
12744 CONFIG_HEADERS = $CONFIG_HEADERS
12745 CONFIG_LINKS = $CONFIG_LINKS
12746 CONFIG_COMMANDS = $CONFIG_COMMANDS
12749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12754 case $ac_config_files in *"
12755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12758 case $ac_config_headers in *"
12759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764 # Files that config.status was made for.
12765 config_files="$ac_config_files"
12766 config_headers="$ac_config_headers"
12770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12772 \`$as_me' instantiates files from templates according to the
12773 current configuration.
12775 Usage: $0 [OPTION]... [FILE]...
12777 -h, --help print this help, then exit
12778 -V, --version print version number and configuration settings, then exit
12779 -q, --quiet, --silent
12780 do not print progress messages
12781 -d, --debug don't remove temporary files
12782 --recheck update $as_me by reconfiguring in the same conditions
12783 --file=FILE[:TEMPLATE]
12784 instantiate the configuration file FILE
12785 --header=FILE[:TEMPLATE]
12786 instantiate the configuration header FILE
12788 Configuration files:
12791 Configuration headers:
12794 Report bugs to <bug-autoconf@gnu.org>."
12797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12800 configured by $0, generated by GNU Autoconf 2.63,
12801 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12803 Copyright (C) 2008 Free Software Foundation, Inc.
12804 This config.status script is free software; the Free Software Foundation
12805 gives unlimited permission to copy, distribute and modify it."
12809 test -n "\$AWK" || AWK=awk
12812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813 # The default lists apply if the user does not specify any file.
12819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12831 # Handling of the options.
12832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12834 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12835 $as_echo "$ac_cs_version"; exit ;;
12836 --debug | --debu | --deb | --de | --d | -d )
12838 --file | --fil | --fi | --f )
12841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12843 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12844 ac_need_defaults=false;;
12845 --header | --heade | --head | --hea )
12848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12850 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12851 ac_need_defaults=false;;
12853 # Conflict between --help and --header
12854 { $as_echo "$as_me: error: ambiguous option: $1
12855 Try \`$0 --help' for more information." >&2
12856 { (exit 1); exit 1; }; };;
12857 --help | --hel | -h )
12858 $as_echo "$ac_cs_usage"; exit ;;
12859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12863 # This is an error.
12864 -*) { $as_echo "$as_me: error: unrecognized option: $1
12865 Try \`$0 --help' for more information." >&2
12866 { (exit 1); exit 1; }; } ;;
12868 *) ac_config_targets="$ac_config_targets $1"
12869 ac_need_defaults=false ;;
12875 ac_configure_extra_args=
12877 if $ac_cs_silent; then
12879 ac_configure_extra_args="$ac_configure_extra_args --silent"
12883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12884 if \$ac_cs_recheck; then
12885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12888 CONFIG_SHELL='$SHELL'
12889 export CONFIG_SHELL
12894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12899 ## Running $as_me. ##
12905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12910 # Handling of arguments.
12911 for ac_config_target in $ac_config_targets
12913 case $ac_config_target in
12914 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
12915 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
12917 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12918 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12919 { (exit 1); exit 1; }; };;
12924 # If the user did not use the arguments to specify the items to instantiate,
12925 # then the envvar interface is used. Set only those that are not.
12926 # We use the long form for the default assignment because of an extremely
12927 # bizarre bug on SunOS 4.1.3.
12928 if $ac_need_defaults; then
12929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12933 # Have a temporary directory for convenience. Make it in the build tree
12934 # simply because there is no reason against having it here, and in addition,
12935 # creating and moving files from /tmp can sometimes cause problems.
12936 # Hook for its removal unless debugging.
12937 # Note that there is a small window in which the directory will not be cleaned:
12938 # after its creation but before its name has been assigned to `$tmp'.
12942 trap 'exit_status=$?
12943 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12945 trap '{ (exit 1); exit 1; }' 1 2 13 15
12947 # Create a (secure) tmp directory for tmp files.
12950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12951 test -n "$tmp" && test -d "$tmp"
12954 tmp=./conf$$-$RANDOM
12955 (umask 077 && mkdir "$tmp")
12958 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12959 { (exit 1); exit 1; }
12962 # Set up the scripts for CONFIG_FILES section.
12963 # No need to generate them if there are no CONFIG_FILES.
12964 # This happens for instance with `./config.status config.h'.
12965 if test -n "$CONFIG_FILES"; then
12969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12973 ac_cs_awk_cr=$ac_cr
12976 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12981 echo "cat >conf$$subs.awk <<_ACEOF" &&
12982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12984 } >conf$$subs.sh ||
12985 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12986 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12987 { (exit 1); exit 1; }; }
12988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12990 for ac_last_try in false false false false false :; do
12991 . ./conf$$subs.sh ||
12992 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12993 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12994 { (exit 1); exit 1; }; }
12996 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12997 if test $ac_delim_n = $ac_delim_num; then
12999 elif $ac_last_try; then
13000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13001 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13002 { (exit 1); exit 1; }; }
13004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13007 rm -f conf$$subs.sh
13009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13014 s/^/S["/; s/!.*/"]=/
13024 s/\(.\{148\}\).*/\1/
13026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13038 s/\(.\{148\}\).*/\1/
13040 s/["\\]/\\&/g; s/^/"/; s/$/"/
13044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13049 ' <conf$$subs.awk | sed '
13054 ' >>$CONFIG_STATUS || ac_write_fail=1
13055 rm -f conf$$subs.awk
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13059 for (key in S) S_is_set[key] = 1
13065 nfields = split(line, field, "@")
13067 len = length(field[1])
13068 for (i = 2; i < nfields; i++) {
13070 keylen = length(key)
13071 if (S_is_set[key]) {
13073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13074 len += length(value) + length(field[++i])
13085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13091 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13092 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13093 { (exit 1); exit 1; }; }
13096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13098 # trailing colons and then remove the whole line if VPATH becomes empty
13099 # (actually we leave an empty line to preserve line numbers).
13100 if test "x$srcdir" = x.; then
13101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13102 s/:*\$(srcdir):*/:/
13103 s/:*\${srcdir}:*/:/
13105 s/^\([^=]*=[ ]*\):*/\1/
13111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13112 fi # test -n "$CONFIG_FILES"
13114 # Set up the scripts for CONFIG_HEADERS section.
13115 # No need to generate them if there are no CONFIG_HEADERS.
13116 # This happens for instance with `./config.status Makefile'.
13117 if test -n "$CONFIG_HEADERS"; then
13118 cat >"$tmp/defines.awk" <<\_ACAWK ||
13122 # Transform confdefs.h into an awk script `defines.awk', embedded as
13123 # here-document in config.status, that substitutes the proper values into
13124 # config.h.in to produce config.h.
13126 # Create a delimiter string that does not exist in confdefs.h, to ease
13127 # handling of long lines.
13129 for ac_last_try in false false :; do
13130 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13131 if test -z "$ac_t"; then
13133 elif $ac_last_try; then
13134 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13135 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13136 { (exit 1); exit 1; }; }
13138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13142 # For the awk script, D is an array of macro values keyed by name,
13143 # likewise P contains macro parameters if any. Preserve backslash
13144 # newline sequences.
13146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13148 s/.\{148\}/&'"$ac_delim"'/g
13151 s/^[ ]*#[ ]*define[ ][ ]*/ /
13158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13165 D["\1"]=" \3\\\\\\n"\\/p
13167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13172 s/.\{148\}/&'"$ac_delim"'/g
13177 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13180 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13182 ' <confdefs.h | sed '
13183 s/'"$ac_delim"'/"\\\
13184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187 for (key in D) D_is_set[key] = 1
13190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13192 split(line, arg, " ")
13193 if (arg[1] == "#") {
13197 defundef = substr(arg[1], 2)
13200 split(mac1, mac2, "(") #)
13202 prefix = substr(line, 1, index(line, defundef) - 1)
13203 if (D_is_set[macro]) {
13204 # Preserve the white space surrounding the "#".
13205 print prefix "define", macro P[macro] D[macro]
13208 # Replace #undef with comments. This is necessary, for example,
13209 # in the case of _POSIX_SOURCE, which is predefined and required
13210 # on some systems where configure will not decide to define it.
13211 if (defundef == "undef") {
13212 print "/*", prefix defundef, macro, "*/"
13220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13222 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13223 { (exit 1); exit 1; }; }
13224 fi # test -n "$CONFIG_HEADERS"
13227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13232 :[FHLC]) ac_mode=$ac_tag; continue;;
13234 case $ac_mode$ac_tag in
13236 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13237 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13238 { (exit 1); exit 1; }; };;
13239 :[FH]-) ac_tag=-:-;;
13240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13257 -) ac_f="$tmp/stdin";;
13258 *) # Look for the file first in the build tree, then in the source tree
13259 # (if the path is not absolute). The absolute path cannot be DOS-style,
13260 # because $ac_f cannot contain `:'.
13264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13266 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13267 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13268 { (exit 1); exit 1; }; };;
13270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13271 ac_file_inputs="$ac_file_inputs '$ac_f'"
13274 # Let's still pretend it is `configure' which instantiates (i.e., don't
13275 # use $as_me), people would be surprised to read:
13276 # /* config.h. Generated by config.status. */
13277 configure_input='Generated from '`
13278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13280 if test x"$ac_file" != x-; then
13281 configure_input="$ac_file. $configure_input"
13282 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13283 $as_echo "$as_me: creating $ac_file" >&6;}
13285 # Neutralize special characters interpreted by sed in replacement strings.
13286 case $configure_input in #(
13287 *\&* | *\|* | *\\* )
13288 ac_sed_conf_input=`$as_echo "$configure_input" |
13289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13290 *) ac_sed_conf_input=$configure_input;;
13294 *:-:* | *:-) cat >"$tmp/stdin" \
13295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13297 { (exit 1); exit 1; }; } ;;
13302 ac_dir=`$as_dirname -- "$ac_file" ||
13303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304 X"$ac_file" : 'X\(//\)[^/]' \| \
13305 X"$ac_file" : 'X\(//\)$' \| \
13306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13307 $as_echo X"$ac_file" |
13308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13312 /^X\(\/\/\)[^/].*/{
13327 -*) as_dir=./$as_dir;;
13329 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13334 *) as_qdir=$as_dir;;
13336 as_dirs="'$as_qdir' $as_dirs"
13337 as_dir=`$as_dirname -- "$as_dir" ||
13338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13339 X"$as_dir" : 'X\(//\)[^/]' \| \
13340 X"$as_dir" : 'X\(//\)$' \| \
13341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13342 $as_echo X"$as_dir" |
13343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13347 /^X\(\/\/\)[^/].*/{
13360 test -d "$as_dir" && break
13362 test -z "$as_dirs" || eval "mkdir $as_dirs"
13363 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13364 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13365 { (exit 1); exit 1; }; }; }
13369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13372 # A ".." for each directory in $ac_dir_suffix.
13373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13374 case $ac_top_builddir_sub in
13375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13379 ac_abs_top_builddir=$ac_pwd
13380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13381 # for backward compatibility:
13382 ac_top_builddir=$ac_top_build_prefix
13385 .) # We are building in place.
13387 ac_top_srcdir=$ac_top_builddir_sub
13388 ac_abs_top_srcdir=$ac_pwd ;;
13389 [\\/]* | ?:[\\/]* ) # Absolute name.
13390 ac_srcdir=$srcdir$ac_dir_suffix;
13391 ac_top_srcdir=$srcdir
13392 ac_abs_top_srcdir=$srcdir ;;
13393 *) # Relative name.
13394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13395 ac_top_srcdir=$ac_top_build_prefix$srcdir
13396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13410 # If the template does not know about datarootdir, expand it.
13411 # FIXME: This hack should be removed a few years after 2.60.
13412 ac_datarootdir_hack=; ac_datarootdir_seen=
13425 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13426 *datarootdir*) ac_datarootdir_seen=yes;;
13427 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13428 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13429 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13432 ac_datarootdir_hack='
13433 s&@datadir@&$datadir&g
13434 s&@docdir@&$docdir&g
13435 s&@infodir@&$infodir&g
13436 s&@localedir@&$localedir&g
13437 s&@mandir@&$mandir&g
13438 s&\\\${datarootdir}&$datarootdir&g' ;;
13442 # Neutralize VPATH when `$srcdir' = `.'.
13443 # Shell code in configure.ac might set extrasub.
13444 # FIXME: do we really want to maintain this feature?
13445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13446 ac_sed_extra="$ac_vpsub
13449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13452 s|@configure_input@|$ac_sed_conf_input|;t t
13453 s&@top_builddir@&$ac_top_builddir_sub&;t t
13454 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13455 s&@srcdir@&$ac_srcdir&;t t
13456 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13457 s&@top_srcdir@&$ac_top_srcdir&;t t
13458 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13459 s&@builddir@&$ac_builddir&;t t
13460 s&@abs_builddir@&$ac_abs_builddir&;t t
13461 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13462 $ac_datarootdir_hack
13464 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13465 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13466 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13467 { (exit 1); exit 1; }; }
13469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13470 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13471 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13472 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13473 which seems to be undefined. Please make sure it is defined." >&5
13474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13475 which seems to be undefined. Please make sure it is defined." >&2;}
13479 -) cat "$tmp/out" && rm -f "$tmp/out";;
13480 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13482 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13483 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13484 { (exit 1); exit 1; }; }
13490 if test x"$ac_file" != x-; then
13492 $as_echo "/* $configure_input */" \
13493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13494 } >"$tmp/config.h" \
13495 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13496 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13497 { (exit 1); exit 1; }; }
13498 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13499 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13500 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13503 mv "$tmp/config.h" "$ac_file" \
13504 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13505 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13506 { (exit 1); exit 1; }; }
13509 $as_echo "/* $configure_input */" \
13510 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13511 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13512 $as_echo "$as_me: error: could not create -" >&2;}
13513 { (exit 1); exit 1; }; }
13523 { (exit 0); exit 0; }
13525 chmod +x $CONFIG_STATUS
13526 ac_clean_files=$ac_clean_files_save
13528 test $ac_write_fail = 0 ||
13529 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13530 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13531 { (exit 1); exit 1; }; }
13534 # configure is writing to config.log, and then calls config.status.
13535 # config.status does its own redirection, appending to config.log.
13536 # Unfortunately, on DOS this fails, as config.log is still kept open
13537 # by configure, so config.status won't be able to write to it; its
13538 # output is simply discarded. So we exec the FD to /dev/null,
13539 # effectively closing config.log, so it can be properly (re)opened and
13540 # appended to by config.status. When coming back to configure, we
13541 # need to make the FD available again.
13542 if test "$no_create" != yes; then
13544 ac_config_status_args=
13545 test "$silent" = yes &&
13546 ac_config_status_args="$ac_config_status_args --quiet"
13548 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13550 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13551 # would make configure fail if this is the last instruction.
13552 $ac_cs_success || { (exit 1); exit 1; }
13554 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13555 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13556 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13560 if test -n "$OPTIONAL"; then
13562 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
13565 if test -n "$REQUIRED"; then
13567 echo "ERROR: Please install required programs: $REQUIRED"
13570 if test -n "$UNSUPPORTED"; then
13572 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
13575 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
13577 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
13578 if test -f config.cache ; then
13579 echo "Remove config.cache before rerunning ./configure"
13583 if test -n "$REQUIRED$UNSUPPORTED"; then
13584 rm -f $srcdir/GNUmakefile
13588 # regular in-place build
13589 # test for srcdir_build = yes ?
13590 if test "$srcdir_build" = "yes"; then
13591 rm -f $srcdir/GNUmakefile
13592 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
13593 chmod 444 $srcdir/GNUmakefile
13595 if test -f $srcdir/GNUmakefile; then
13597 Source directory already configured. Please clean the source directory
13599 make -C $srcdir distclean
13601 and rerun configure.
13606 for d in 2 3 4 ; do
13607 for mf in `cd $srcdir ; find -maxdepth $d -mindepth $d -name GNUmakefile`; do
13608 mkdir -p $(dirname $mf)
13609 cat <<EOF | $PYTHON - > $mf
13610 print 'depth=' + ('../' * ( $d-1 ) )
13611 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
13612 print 'include \$(configure-srcdir)/$mf'
13613 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
13616 for mf in `cd $srcdir ; find -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
13617 mkdir -p $(dirname $mf)
13618 cat <<EOF | $PYTHON - > $mf
13619 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
13620 print 'include \$(configure-srcdir)/$mf'
13626 cat <<EOF > GNUmakefile
13628 include config\$(if \$(conf),-\$(conf),).make
13629 include \$(configure-srcdir)/GNUmakefile.in
13635 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
13637 if make top-doc 1>/dev/null 2>&1; then
13638 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
13639 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
13645 make$mc all to build LilyPond
13646 make$mc install to install LilyPond
13647 make$mc help to see all possible targets
13649 Edit local.make for local Makefile overrides.