]> git.donarmstrong.com Git - lilypond.git/blob - configure
Import guile-1.8 as multiple upstream tarball component
[lilypond.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
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 ## --------------------- ##
12
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
16   emulate sh
17   NULLCMD=:
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+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
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
39
40 as_nl='
41 '
42 export as_nl
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
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
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'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
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.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
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
113   as_myself=$0
114 fi
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; }
118 fi
119
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
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
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 ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
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
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
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
260   emulate sh
261   NULLCMD=:
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+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
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+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
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; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
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
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
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; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
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.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
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
454   # case at line end.
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.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
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; }; }
476
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).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
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 ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
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'"
568
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'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
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`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lily/main.cc"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='VPATH
639 LTLIBOBJS
640 REQUIRED
641 OPTIONAL
642 RSYNC
643 ZIPDOC
644 IMAGEMAGICK
645 NETPBM
646 TEXINDEX
647 TEXI2PDF
648 PDFTEX
649 PDFLATEX
650 BIBTEX
651 DBLATEX
652 TEXI2HTML
653 MAKEINFO
654 GHOSTSCRIPT
655 PERL
656 GUILE
657 WINDRES
658 PLATFORM_WINDOWS
659 FREETYPE2_LIBS
660 FREETYPE2_CFLAGS
661 FONTCONFIG_LIBS
662 FONTCONFIG_CFLAGS
663 PANGO_FT2_LIBS
664 PANGO_FT2_CFLAGS
665 HOST_ARCH
666 PKG_CONFIG
667 LIBOBJS
668 T1ASM
669 FONTFORGE
670 PYTHON_CONFIG
671 CXXABI_LIBS
672 GUILE_LDFLAGS
673 GUILE_CFLAGS
674 GUILE_CONFIG
675 KPSEWHICH
676 MFMODE
677 METAPOST
678 METAFONT
679 MSGFMT
680 FLEXLEXER_FILE
681 FLEX
682 BISON
683 YFLAGS
684 YACC
685 RANLIB
686 AR
687 EGREP
688 GREP
689 CXXCPP
690 ac_ct_CXX
691 CXXFLAGS
692 CXX
693 NCSB_DIR
694 NCSB_SOURCE_FILES
695 FCLIST
696 EXTRA_LIBS
697 DEFINES
698 cross_compiling
699 LD
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 LINK_GXX_STATICALLY
708 DOCUMENTATION
709 build_package_libdir
710 build_package_datadir
711 ROOTSEP
712 PATHSEP
713 DIRSEP
714 LN_S
715 LN
716 ZIP
717 program_suffix
718 program_prefix
719 PYTHON
720 BASH
721 KSH
722 TAR
723 FIND
724 MAKE
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 CONFIGSUFFIX
734 AUTOGENERATE
735 package_depth
736 TOPLEVEL_VERSION
737 PATCH_LEVEL
738 MICRO_VERSION
739 MINOR_VERSION
740 MAJOR_VERSION
741 VERSION
742 PACKAGE
743 package
744 stepmake
745 srcdir
746 ugh_ugh_autoconf250_builddir
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_config
788 enable_documentation
789 with_ncsb_dir
790 enable_relocation
791 enable_rpath
792 enable_static_gxx
793 enable_debugging
794 enable_optimising
795 enable_profiling
796 enable_pipe
797 with_localedir
798 with_lang
799 with_python_include
800 with_python_lib
801 '
802       ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CXX
811 CXXFLAGS
812 CCC
813 CXXCPP
814 YACC
815 YFLAGS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925    { (exit 1); exit 1; }; }
926     ac_useropt_orig=$ac_useropt
927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928     case $ac_user_opts in
929       *"
930 "enable_$ac_useropt"
931 "*) ;;
932       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933          ac_unrecognized_sep=', ';;
934     esac
935     eval enable_$ac_useropt=no ;;
936
937   -docdir | --docdir | --docdi | --doc | --do)
938     ac_prev=docdir ;;
939   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940     docdir=$ac_optarg ;;
941
942   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943     ac_prev=dvidir ;;
944   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945     dvidir=$ac_optarg ;;
946
947   -enable-* | --enable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
952    { (exit 1); exit 1; }; }
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108     ac_prev=sbindir ;;
1109   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110   | --sbi=* | --sb=*)
1111     sbindir=$ac_optarg ;;
1112
1113   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115   | --sharedst | --shareds | --shared | --share | --shar \
1116   | --sha | --sh)
1117     ac_prev=sharedstatedir ;;
1118   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121   | --sha=* | --sh=*)
1122     sharedstatedir=$ac_optarg ;;
1123
1124   -site | --site | --sit)
1125     ac_prev=site ;;
1126   -site=* | --site=* | --sit=*)
1127     site=$ac_optarg ;;
1128
1129   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130     ac_prev=srcdir ;;
1131   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132     srcdir=$ac_optarg ;;
1133
1134   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135   | --syscon | --sysco | --sysc | --sys | --sy)
1136     ac_prev=sysconfdir ;;
1137   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139     sysconfdir=$ac_optarg ;;
1140
1141   -target | --target | --targe | --targ | --tar | --ta | --t)
1142     ac_prev=target_alias ;;
1143   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144     target_alias=$ac_optarg ;;
1145
1146   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147     verbose=yes ;;
1148
1149   -version | --version | --versio | --versi | --vers | -V)
1150     ac_init_version=: ;;
1151
1152   -with-* | --with-*)
1153     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1157    { (exit 1); exit 1; }; }
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=\$ac_optarg ;;
1168
1169   -without-* | --without-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174    { (exit 1); exit 1; }; }
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=no ;;
1185
1186   --x)
1187     # Obsolete; use --with-x.
1188     with_x=yes ;;
1189
1190   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191   | --x-incl | --x-inc | --x-in | --x-i)
1192     ac_prev=x_includes ;;
1193   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195     x_includes=$ac_optarg ;;
1196
1197   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199     ac_prev=x_libraries ;;
1200   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202     x_libraries=$ac_optarg ;;
1203
1204   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1205 Try \`$0 --help' for more information." >&2
1206    { (exit 1); exit 1; }; }
1207     ;;
1208
1209   *=*)
1210     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1213       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214    { (exit 1); exit 1; }; }
1215     eval $ac_envvar=\$ac_optarg
1216     export $ac_envvar ;;
1217
1218   *)
1219     # FIXME: should be removed in autoconf 3.0.
1220     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224     ;;
1225
1226   esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1232    { (exit 1); exit 1; }; }
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236   case $enable_option_checking in
1237     no) ;;
1238     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1239    { (exit 1); exit 1; }; } ;;
1240     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241   esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246                 datadir sysconfdir sharedstatedir localstatedir includedir \
1247                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248                 libdir localedir mandir
1249 do
1250   eval ac_val=\$$ac_var
1251   # Remove trailing slashes.
1252   case $ac_val in
1253     */ )
1254       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255       eval $ac_var=\$ac_val;;
1256   esac
1257   # Be sure to have absolute directory names.
1258   case $ac_val in
1259     [\\/$]* | ?:[\\/]* )  continue;;
1260     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261   esac
1262   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1263    { (exit 1); exit 1; }; }
1264 done
1265
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275   if test "x$build_alias" = x; then
1276     cross_compiling=maybe
1277     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278     If a cross compiler is detected then cross compile mode will be used." >&2
1279   elif test "x$build_alias" != "x$host_alias"; then
1280     cross_compiling=yes
1281   fi
1282 fi
1283
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287 test "$silent" = yes && exec 6>/dev/null
1288
1289
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1294    { (exit 1); exit 1; }; }
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1297    { (exit 1); exit 1; }; }
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302   ac_srcdir_defaulted=yes
1303   # Try the directory containing this script, then the parent directory.
1304   ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306          X"$as_myself" : 'X\(//\)[^/]' \| \
1307          X"$as_myself" : 'X\(//\)$' \| \
1308          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)[^/].*/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\).*/{
1323             s//\1/
1324             q
1325           }
1326           s/.*/./; q'`
1327   srcdir=$ac_confdir
1328   if test ! -r "$srcdir/$ac_unique_file"; then
1329     srcdir=..
1330   fi
1331 else
1332   ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1337    { (exit 1); exit 1; }; }
1338 fi
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1342    { (exit 1); exit 1; }; }
1343         pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346   srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356   eval ac_env_${ac_var}_value=\$${ac_var}
1357   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365   # Omit some internal or obsolete options to make the list less imposing.
1366   # This message is too long to be a string in the A/UX 3.1 sh.
1367   cat <<_ACEOF
1368 \`configure' configures this package to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378   -h, --help              display this help and exit
1379       --help=short        display options specific to this package
1380       --help=recursive    display the short help of all the included packages
1381   -V, --version           display version information and exit
1382   -q, --quiet, --silent   do not print \`checking...' messages
1383       --cache-file=FILE   cache test results in FILE [disabled]
1384   -C, --config-cache      alias for \`--cache-file=config.cache'
1385   -n, --no-create         do not create output files
1386       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388 Installation directories:
1389   --prefix=PREFIX         install architecture-independent files in PREFIX
1390                           [$ac_default_prefix]
1391   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                           [PREFIX]
1393
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402   --bindir=DIR            user executables [EPREFIX/bin]
1403   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404   --libexecdir=DIR        program executables [EPREFIX/libexec]
1405   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408   --libdir=DIR            object code libraries [EPREFIX/lib]
1409   --includedir=DIR        C header files [PREFIX/include]
1410   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413   --infodir=DIR           info documentation [DATAROOTDIR/info]
1414   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415   --mandir=DIR            man documentation [DATAROOTDIR/man]
1416   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1417   --htmldir=DIR           html documentation [DOCDIR]
1418   --dvidir=DIR            dvi documentation [DOCDIR]
1419   --pdfdir=DIR            pdf documentation [DOCDIR]
1420   --psdir=DIR             ps documentation [DOCDIR]
1421 _ACEOF
1422
1423   cat <<\_ACEOF
1424
1425 System types:
1426   --build=BUILD     configure for building on BUILD [guessed]
1427   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432
1433   cat <<\_ACEOF
1434
1435 Optional Features:
1436   --disable-option-checking  ignore unrecognized --enable/--with options
1437   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1440                           do `make conf=CONF' to get output in ./out-CONF
1441   --enable-documentation  build Documentation. Default: on
1442   --enable-relocation     compile with dynamic relocation. Default: off
1443   --enable-rpath          hardcode runtime library path. Default: off
1444   --enable-static-gxx     link libstdc++.a statically. Default: off
1445   --enable-debugging      compile with debugging info. Default: on
1446   --enable-optimising     compile with optimising. Default: on
1447   --enable-profiling      compile with gprof support. Default: off
1448   --enable-pipe           compile with -pipe. Default: on
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-ncsb-dir=DIR     location of Century Schoolbook fonts.
1454   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1455   --with-lang=LANG        use LANG as language to emit messages
1456   --with-python-include=DIR
1457                           location of the python include dir
1458   --with-python-lib=NAME  name of the python lib
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   LIBS        libraries to pass to the linker, e.g. -l<library>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CXXCPP      C++ preprocessor
1471   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1472               the first program found out of: `bison -y', `byacc', `yacc'.
1473   YFLAGS      The list of arguments that will be passed by default to $YACC.
1474               This script will default YFLAGS to the empty string to avoid a
1475               default value of `-d' given by some make applications.
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485   # If there are subdirs, report their specific --help.
1486   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487     test -d "$ac_dir" ||
1488       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489       continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 configure
1543 generated by GNU Autoconf 2.63
1544
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550   exit
1551 fi
1552 cat >config.log <<_ACEOF
1553 This file contains any messages produced by compilers while
1554 running configure, to aid debugging if configure makes a mistake.
1555
1556 It was created by $as_me, which was
1557 generated by GNU Autoconf 2.63.  Invocation command line was
1558
1559   $ $0 $@
1560
1561 _ACEOF
1562 exec 5>>config.log
1563 {
1564 cat <<_ASUNAME
1565 ## --------- ##
1566 ## Platform. ##
1567 ## --------- ##
1568
1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1574
1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1577
1578 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1579 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1581 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1582 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1583 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1584 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1585
1586 _ASUNAME
1587
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   $as_echo "PATH: $as_dir"
1594 done
1595 IFS=$as_save_IFS
1596
1597 } >&5
1598
1599 cat >&5 <<_ACEOF
1600
1601
1602 ## ----------- ##
1603 ## Core tests. ##
1604 ## ----------- ##
1605
1606 _ACEOF
1607
1608
1609 # Keep a trace of the command line.
1610 # Strip out --no-create and --no-recursion so they do not pile up.
1611 # Strip out --silent because we don't want to record it for future runs.
1612 # Also quote any args containing shell meta-characters.
1613 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_configure_args=
1615 ac_configure_args0=
1616 ac_configure_args1=
1617 ac_must_keep_next=false
1618 for ac_pass in 1 2
1619 do
1620   for ac_arg
1621   do
1622     case $ac_arg in
1623     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1624     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625     | -silent | --silent | --silen | --sile | --sil)
1626       continue ;;
1627     *\'*)
1628       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1629     esac
1630     case $ac_pass in
1631     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1632     2)
1633       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1634       if test $ac_must_keep_next = true; then
1635         ac_must_keep_next=false # Got value, back to normal.
1636       else
1637         case $ac_arg in
1638           *=* | --config-cache | -C | -disable-* | --disable-* \
1639           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1640           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1641           | -with-* | --with-* | -without-* | --without-* | --x)
1642             case "$ac_configure_args0 " in
1643               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1644             esac
1645             ;;
1646           -* ) ac_must_keep_next=true ;;
1647         esac
1648       fi
1649       ac_configure_args="$ac_configure_args '$ac_arg'"
1650       ;;
1651     esac
1652   done
1653 done
1654 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1655 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1656
1657 # When interrupted or exit'd, cleanup temporary files, and complete
1658 # config.log.  We remove comments because anyway the quotes in there
1659 # would cause problems or look ugly.
1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1662 trap 'exit_status=$?
1663   # Save into config.log some information that might help in debugging.
1664   {
1665     echo
1666
1667     cat <<\_ASBOX
1668 ## ---------------- ##
1669 ## Cache variables. ##
1670 ## ---------------- ##
1671 _ASBOX
1672     echo
1673     # The following way of writing the cache mishandles newlines in values,
1674 (
1675   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676     eval ac_val=\$$ac_var
1677     case $ac_val in #(
1678     *${as_nl}*)
1679       case $ac_var in #(
1680       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1682       esac
1683       case $ac_var in #(
1684       _ | IFS | as_nl) ;; #(
1685       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1686       *) $as_unset $ac_var ;;
1687       esac ;;
1688     esac
1689   done
1690   (set) 2>&1 |
1691     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692     *${as_nl}ac_space=\ *)
1693       sed -n \
1694         "s/'\''/'\''\\\\'\'''\''/g;
1695           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696       ;; #(
1697     *)
1698       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699       ;;
1700     esac |
1701     sort
1702 )
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1709 _ASBOX
1710     echo
1711     for ac_var in $ac_subst_vars
1712     do
1713       eval ac_val=\$$ac_var
1714       case $ac_val in
1715       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716       esac
1717       $as_echo "$ac_var='\''$ac_val'\''"
1718     done | sort
1719     echo
1720
1721     if test -n "$ac_subst_files"; then
1722       cat <<\_ASBOX
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1726 _ASBOX
1727       echo
1728       for ac_var in $ac_subst_files
1729       do
1730         eval ac_val=\$$ac_var
1731         case $ac_val in
1732         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733         esac
1734         $as_echo "$ac_var='\''$ac_val'\''"
1735       done | sort
1736       echo
1737     fi
1738
1739     if test -s confdefs.h; then
1740       cat <<\_ASBOX
1741 ## ----------- ##
1742 ## confdefs.h. ##
1743 ## ----------- ##
1744 _ASBOX
1745       echo
1746       cat confdefs.h
1747       echo
1748     fi
1749     test "$ac_signal" != 0 &&
1750       $as_echo "$as_me: caught signal $ac_signal"
1751     $as_echo "$as_me: exit $exit_status"
1752   } >&5
1753   rm -f core *.core core.conftest.* &&
1754     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755     exit $exit_status
1756 ' 0
1757 for ac_signal in 1 2 13 15; do
1758   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1759 done
1760 ac_signal=0
1761
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1764
1765 # Predefined preprocessor variables.
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789 _ACEOF
1790
1791
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer an explicitly selected file to automatically selected ones.
1794 ac_site_file1=NONE
1795 ac_site_file2=NONE
1796 if test -n "$CONFIG_SITE"; then
1797   ac_site_file1=$CONFIG_SITE
1798 elif test "x$prefix" != xNONE; then
1799   ac_site_file1=$prefix/share/config.site
1800   ac_site_file2=$prefix/etc/config.site
1801 else
1802   ac_site_file1=$ac_default_prefix/share/config.site
1803   ac_site_file2=$ac_default_prefix/etc/config.site
1804 fi
1805 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1806 do
1807   test "x$ac_site_file" = xNONE && continue
1808   if test -r "$ac_site_file"; then
1809     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1811     sed 's/^/| /' "$ac_site_file" >&5
1812     . "$ac_site_file"
1813   fi
1814 done
1815
1816 if test -r "$cache_file"; then
1817   # Some versions of bash will fail to source /dev/null (special
1818   # files actually), so we avoid doing that.
1819   if test -f "$cache_file"; then
1820     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 $as_echo "$as_me: loading cache $cache_file" >&6;}
1822     case $cache_file in
1823       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824       *)                      . "./$cache_file";;
1825     esac
1826   fi
1827 else
1828   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 $as_echo "$as_me: creating cache $cache_file" >&6;}
1830   >$cache_file
1831 fi
1832
1833 # Check that the precious variables saved in the cache have kept the same
1834 # value.
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838   eval ac_new_set=\$ac_env_${ac_var}_set
1839   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840   eval ac_new_val=\$ac_env_${ac_var}_value
1841   case $ac_old_set,$ac_new_set in
1842     set,)
1843       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845       ac_cache_corrupted=: ;;
1846     ,set)
1847       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849       ac_cache_corrupted=: ;;
1850     ,);;
1851     *)
1852       if test "x$ac_old_val" != "x$ac_new_val"; then
1853         # differences in whitespace do not lead to failure.
1854         ac_old_val_w=`echo x $ac_old_val`
1855         ac_new_val_w=`echo x $ac_new_val`
1856         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1857           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859           ac_cache_corrupted=:
1860         else
1861           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1862 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1863           eval $ac_var=\$ac_old_val
1864         fi
1865         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1866 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1867         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1868 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1869       fi;;
1870   esac
1871   # Pass precious variables to config.status.
1872   if test "$ac_new_set" = set; then
1873     case $ac_new_val in
1874     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875     *) ac_arg=$ac_var=$ac_new_val ;;
1876     esac
1877     case " $ac_configure_args " in
1878       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1879       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880     esac
1881   fi
1882 done
1883 if $ac_cache_corrupted; then
1884   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1886   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916
1917 # Bootstrap StepMake configure
1918 ac_aux_dir=
1919 for ac_dir in config "$srcdir"/config; do
1920   if test -f "$ac_dir/install-sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install-sh -c"
1923     break
1924   elif test -f "$ac_dir/install.sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install.sh -c"
1927     break
1928   elif test -f "$ac_dir/shtool"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/shtool install -c"
1931     break
1932   fi
1933 done
1934 if test -z "$ac_aux_dir"; then
1935   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1936 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1937    { (exit 1); exit 1; }; }
1938 fi
1939
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1945 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1946 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1947
1948
1949
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; }; }
1955
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
1960 else
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; }; }
1972
1973 fi
1974 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1975 $as_echo "$ac_cv_build" >&6; }
1976 case $ac_cv_build in
1977 *-*-*) ;;
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; }; };;
1981 esac
1982 build=$ac_cv_build
1983 ac_save_IFS=$IFS; IFS='-'
1984 set x $ac_cv_build
1985 shift
1986 build_cpu=$1
1987 build_vendor=$2
1988 shift; shift
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1991 build_os=$*
1992 IFS=$ac_save_IFS
1993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1994
1995
1996
1997
1998     . $srcdir/VERSION
1999     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2000     MICRO_VERSION=$PATCH_LEVEL
2001     TOPLEVEL_VERSION=$FULL_VERSION
2002     if test x$MY_PATCH_LEVEL != x; then
2003         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2004     fi
2005     VERSION=$FULL_VERSION
2006     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2007     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2008     #dnl
2009     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2010     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2011     #dnl
2012
2013     # No versioning on directory names of sub-packages
2014     # urg, urg
2015     stepmake=${datadir}/stepmake
2016     presome=${prefix}
2017     if test "$prefix" = "NONE"; then
2018             presome=${ac_default_prefix}
2019     fi
2020     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2021
2022     # urg, how is this supposed to work?
2023     if test "$program_prefix" = "NONE"; then
2024           program_prefix=
2025     fi
2026     if test "$program_suffix" = "NONE"; then
2027           program_suffix=
2028     fi
2029
2030     { $as_echo "$as_me:$LINENO: checking Package" >&5
2031 $as_echo_n "checking Package... " >&6; }
2032     if test "$PACKAGE" = "STEPMAKE"; then
2033         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2034 $as_echo "Stepmake package!" >&6; }
2035
2036         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2037 $as_echo_n "checking builddir... " >&6; }
2038
2039         ugh_ugh_autoconf250_builddir="`pwd`"
2040
2041         if test "$srcdir" = "."; then
2042             srcdir_build=yes
2043         else
2044             srcdir_build=no
2045             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2046             package_srcdir="`dirname  $srcdir`"
2047         fi
2048         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2049 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2050
2051         (cd stepmake 2>/dev/null || mkdir stepmake)
2052         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2053         stepmake=stepmake
2054     else
2055         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2056 $as_echo "$PACKAGE" >&6; }
2057
2058         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2059 $as_echo_n "checking builddir... " >&6; }
2060         ugh_ugh_autoconf250_builddir="`pwd`"
2061
2062         here_dir=$(cd . && pwd)
2063         full_src_dir=$(cd $srcdir && pwd)
2064
2065         if test "$full_src_dir" = "$here_dir"; then
2066             srcdir_build=yes
2067         else
2068             srcdir_build=no
2069         fi
2070         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2071 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2072
2073         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2074 $as_echo_n "checking for stepmake... " >&6; }
2075         # Check for installed stepmake
2076         if test -d $stepmake; then
2077             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2078 $as_echo "$stepmake" >&6; }
2079         else
2080             stepmake="`cd $srcdir/stepmake; pwd`"
2081             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2082 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2083         fi
2084     fi
2085
2086
2087
2088     # Use absolute directory for non-srcdir builds, so that build
2089     # dir can be moved.
2090     if test "$srcdir_build" = "no" ;  then
2091         srcdir="`cd $srcdir; pwd`"
2092     fi
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104     # stepmake nonstandard names
2105
2106
2107
2108     # We don't need the upper case variant,
2109     # so stick to macros are uppercase convention.
2110     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2111     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2112     cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE "${package}"
2114 _ACEOF
2115
2116     cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "${PACKAGE_NAME}"
2118 _ACEOF
2119
2120     cat >>confdefs.h <<_ACEOF
2121 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2122 _ACEOF
2123
2124
2125     if test -z "$package_depth"; then
2126         package_depth="."
2127     else
2128         package_depth="../$package_depth"
2129     fi
2130     export package_depth
2131
2132
2133     AUTOGENERATE="This file was automatically generated by configure"
2134
2135
2136     CONFIGSUFFIX=
2137     # Check whether --enable-config was given.
2138 if test "${enable_config+set}" = set; then
2139   enableval=$enable_config; CONFIGURATION=$enableval
2140 fi
2141
2142
2143     ##'`#
2144
2145     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2146     CONFIGFILE=config$CONFIGSUFFIX
2147
2148
2149     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2150 $as_echo_n "checking host system type... " >&6; }
2151 if test "${ac_cv_host+set}" = set; then
2152   $as_echo_n "(cached) " >&6
2153 else
2154   if test "x$host_alias" = x; then
2155   ac_cv_host=$ac_cv_build
2156 else
2157   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2158     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2159 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161 fi
2162
2163 fi
2164 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2165 $as_echo "$ac_cv_host" >&6; }
2166 case $ac_cv_host in
2167 *-*-*) ;;
2168 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2169 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2170    { (exit 1); exit 1; }; };;
2171 esac
2172 host=$ac_cv_host
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_host
2175 shift
2176 host_cpu=$1
2177 host_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 host_os=$*
2182 IFS=$ac_save_IFS
2183 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2184
2185
2186
2187     for ac_prog in gmake make
2188 do
2189   # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if test "${ac_cv_prog_MAKE+set}" = set; then
2194   $as_echo_n "(cached) " >&6
2195 else
2196   if test -n "$MAKE"; then
2197   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206     ac_cv_prog_MAKE="$ac_prog"
2207     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212 IFS=$as_save_IFS
2213
2214 fi
2215 fi
2216 MAKE=$ac_cv_prog_MAKE
2217 if test -n "$MAKE"; then
2218   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2219 $as_echo "$MAKE" >&6; }
2220 else
2221   { $as_echo "$as_me:$LINENO: result: no" >&5
2222 $as_echo "no" >&6; }
2223 fi
2224
2225
2226   test -n "$MAKE" && break
2227 done
2228 test -n "$MAKE" || MAKE="no"
2229
2230
2231
2232     r="`eval echo '$'"MAKE"`"
2233     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2234         true
2235     else
2236         ##STEPMAKE_WARN(cannot find . )
2237         false
2238     fi
2239
2240     if test $? -ne 0; then
2241
2242     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2243
2244         if test "REQUIRED" = "REQUIRED"; then
2245             command="echo ERROR: gmake make not found"
2246             # abort configure process here?
2247         else
2248             command="- echo gmake make not found"
2249         fi
2250         eval "MAKE"='$command'
2251         false
2252     else
2253         true
2254     fi
2255
2256     if test $? -eq 0 -a -n ""; then
2257
2258     r="`eval echo '$'"MAKE"`"
2259     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2260 $as_echo_n "checking $r version... " >&6; }
2261     exe=`
2262     ## which doesn't work in ash, if /usr/bin/which isn't installed
2263     ## type -p doesn't work in ash
2264     ## command -v doesn't work in zsh
2265     ## command -v "$r" 2>&1
2266     ## this test should work in ash, bash, pdksh (ksh), zsh
2267     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2268 `
2269     if test -n ""; then
2270         ver=""
2271     else
2272         ver=`
2273     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2274     ##
2275     ## ARG.
2276     ## Workaround for broken Debian gcc version string:
2277     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2278     ##
2279     ## -V: Workaround for python
2280
2281     #dnl
2282
2283     ## Assume and hunt for dotted version multiplet.
2284     ## use eval trickery, because we cannot use multi-level $() instead of ``
2285     ## for compatibility reasons.
2286
2287     ## grab the first version number in  --version output.
2288     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2289                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2290                 head -n 1 |
2291                 tr ' ' '\n' |
2292                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2293                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2294                 head -n 1\`\"
2295
2296     if test -z "$_ver"; then
2297         ## If empty, try date [fontforge]
2298         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2299             | head -n 1 \
2300             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2301     fi
2302     echo "$_ver"
2303     #dnl
2304 `
2305     fi
2306     num=`
2307     echo "$ver" | awk -F. '
2308     {
2309       if ($3) {three = $3}
2310       else {three = 0}
2311     }
2312     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2313 `
2314     req=`
2315     echo "" | awk -F. '
2316     {
2317       if ($3) {three = $3}
2318       else {three = 0}
2319     }
2320     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2321 `
2322     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2323 $as_echo "$ver" >&6; }
2324     if test "$num" -lt "$req"; then
2325
2326     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2327
2328     fi
2329     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2330     eval `echo $vervar=$num`
2331 ##    AC_SUBST(`eval echo $vervar`)
2332
2333     fi
2334
2335
2336     for ac_prog in find
2337 do
2338   # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if test "${ac_cv_prog_FIND+set}" = set; then
2343   $as_echo_n "(cached) " >&6
2344 else
2345   if test -n "$FIND"; then
2346   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
2352   test -z "$as_dir" && as_dir=.
2353   for ac_exec_ext in '' $ac_executable_extensions; do
2354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355     ac_cv_prog_FIND="$ac_prog"
2356     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361 IFS=$as_save_IFS
2362
2363 fi
2364 fi
2365 FIND=$ac_cv_prog_FIND
2366 if test -n "$FIND"; then
2367   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2368 $as_echo "$FIND" >&6; }
2369 else
2370   { $as_echo "$as_me:$LINENO: result: no" >&5
2371 $as_echo "no" >&6; }
2372 fi
2373
2374
2375   test -n "$FIND" && break
2376 done
2377 test -n "$FIND" || FIND="no"
2378
2379
2380
2381     r="`eval echo '$'"FIND"`"
2382     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2383         true
2384     else
2385         ##STEPMAKE_WARN(cannot find . )
2386         false
2387     fi
2388
2389     if test $? -ne 0; then
2390
2391     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2392
2393         if test "REQUIRED" = "REQUIRED"; then
2394             command="echo ERROR: find not found"
2395             # abort configure process here?
2396         else
2397             command="- echo find not found"
2398         fi
2399         eval "FIND"='$command'
2400         false
2401     else
2402         true
2403     fi
2404
2405     if test $? -eq 0 -a -n ""; then
2406
2407     r="`eval echo '$'"FIND"`"
2408     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2409 $as_echo_n "checking $r version... " >&6; }
2410     exe=`
2411     ## which doesn't work in ash, if /usr/bin/which isn't installed
2412     ## type -p doesn't work in ash
2413     ## command -v doesn't work in zsh
2414     ## command -v "$r" 2>&1
2415     ## this test should work in ash, bash, pdksh (ksh), zsh
2416     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2417 `
2418     if test -n ""; then
2419         ver=""
2420     else
2421         ver=`
2422     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2423     ##
2424     ## ARG.
2425     ## Workaround for broken Debian gcc version string:
2426     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2427     ##
2428     ## -V: Workaround for python
2429
2430     #dnl
2431
2432     ## Assume and hunt for dotted version multiplet.
2433     ## use eval trickery, because we cannot use multi-level $() instead of ``
2434     ## for compatibility reasons.
2435
2436     ## grab the first version number in  --version output.
2437     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2438                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2439                 head -n 1 |
2440                 tr ' ' '\n' |
2441                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2442                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2443                 head -n 1\`\"
2444
2445     if test -z "$_ver"; then
2446         ## If empty, try date [fontforge]
2447         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2448             | head -n 1 \
2449             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2450     fi
2451     echo "$_ver"
2452     #dnl
2453 `
2454     fi
2455     num=`
2456     echo "$ver" | awk -F. '
2457     {
2458       if ($3) {three = $3}
2459       else {three = 0}
2460     }
2461     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2462 `
2463     req=`
2464     echo "" | awk -F. '
2465     {
2466       if ($3) {three = $3}
2467       else {three = 0}
2468     }
2469     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2470 `
2471     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2472 $as_echo "$ver" >&6; }
2473     if test "$num" -lt "$req"; then
2474
2475     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2476
2477     fi
2478     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2479     eval `echo $vervar=$num`
2480 ##    AC_SUBST(`eval echo $vervar`)
2481
2482     fi
2483
2484
2485
2486     for ac_prog in tar
2487 do
2488   # Extract the first word of "$ac_prog", so it can be a program name with args.
2489 set dummy $ac_prog; ac_word=$2
2490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_TAR+set}" = set; then
2493   $as_echo_n "(cached) " >&6
2494 else
2495   if test -n "$TAR"; then
2496   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503   for ac_exec_ext in '' $ac_executable_extensions; do
2504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505     ac_cv_prog_TAR="$ac_prog"
2506     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507     break 2
2508   fi
2509 done
2510 done
2511 IFS=$as_save_IFS
2512
2513 fi
2514 fi
2515 TAR=$ac_cv_prog_TAR
2516 if test -n "$TAR"; then
2517   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2518 $as_echo "$TAR" >&6; }
2519 else
2520   { $as_echo "$as_me:$LINENO: result: no" >&5
2521 $as_echo "no" >&6; }
2522 fi
2523
2524
2525   test -n "$TAR" && break
2526 done
2527 test -n "$TAR" || TAR="no"
2528
2529
2530
2531     r="`eval echo '$'"TAR"`"
2532     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2533         true
2534     else
2535         ##STEPMAKE_WARN(cannot find . )
2536         false
2537     fi
2538
2539     if test $? -ne 0; then
2540
2541     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2542
2543         if test "REQUIRED" = "REQUIRED"; then
2544             command="echo ERROR: tar not found"
2545             # abort configure process here?
2546         else
2547             command="- echo tar not found"
2548         fi
2549         eval "TAR"='$command'
2550         false
2551     else
2552         true
2553     fi
2554
2555     if test $? -eq 0 -a -n ""; then
2556
2557     r="`eval echo '$'"TAR"`"
2558     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2559 $as_echo_n "checking $r version... " >&6; }
2560     exe=`
2561     ## which doesn't work in ash, if /usr/bin/which isn't installed
2562     ## type -p doesn't work in ash
2563     ## command -v doesn't work in zsh
2564     ## command -v "$r" 2>&1
2565     ## this test should work in ash, bash, pdksh (ksh), zsh
2566     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2567 `
2568     if test -n ""; then
2569         ver=""
2570     else
2571         ver=`
2572     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2573     ##
2574     ## ARG.
2575     ## Workaround for broken Debian gcc version string:
2576     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2577     ##
2578     ## -V: Workaround for python
2579
2580     #dnl
2581
2582     ## Assume and hunt for dotted version multiplet.
2583     ## use eval trickery, because we cannot use multi-level $() instead of ``
2584     ## for compatibility reasons.
2585
2586     ## grab the first version number in  --version output.
2587     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2588                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2589                 head -n 1 |
2590                 tr ' ' '\n' |
2591                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2592                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2593                 head -n 1\`\"
2594
2595     if test -z "$_ver"; then
2596         ## If empty, try date [fontforge]
2597         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2598             | head -n 1 \
2599             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2600     fi
2601     echo "$_ver"
2602     #dnl
2603 `
2604     fi
2605     num=`
2606     echo "$ver" | awk -F. '
2607     {
2608       if ($3) {three = $3}
2609       else {three = 0}
2610     }
2611     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2612 `
2613     req=`
2614     echo "" | awk -F. '
2615     {
2616       if ($3) {three = $3}
2617       else {three = 0}
2618     }
2619     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2620 `
2621     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2622 $as_echo "$ver" >&6; }
2623     if test "$num" -lt "$req"; then
2624
2625     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2626
2627     fi
2628     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2629     eval `echo $vervar=$num`
2630 ##    AC_SUBST(`eval echo $vervar`)
2631
2632     fi
2633
2634
2635     if test "$(echo 2)" != "2" ||
2636         test "x`uname`" = "xHP-UX"; then
2637         # Extract the first word of "ksh", so it can be a program name with args.
2638 set dummy ksh; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_path_KSH+set}" = set; then
2642   $as_echo_n "(cached) " >&6
2643 else
2644   case $KSH in
2645   [\\/]* | ?:[\\/]*)
2646   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2647   ;;
2648   *)
2649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2665   ;;
2666 esac
2667 fi
2668 KSH=$ac_cv_path_KSH
2669 if test -n "$KSH"; then
2670   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2671 $as_echo "$KSH" >&6; }
2672 else
2673   { $as_echo "$as_me:$LINENO: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677
2678         # Extract the first word of "bash", so it can be a program name with args.
2679 set dummy bash; ac_word=$2
2680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_path_BASH+set}" = set; then
2683   $as_echo_n "(cached) " >&6
2684 else
2685   case $BASH in
2686   [\\/]* | ?:[\\/]*)
2687   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2688   ;;
2689   *)
2690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2706   ;;
2707 esac
2708 fi
2709 BASH=$ac_cv_path_BASH
2710 if test -n "$BASH"; then
2711   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2712 $as_echo "$BASH" >&6; }
2713 else
2714   { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718
2719
2720     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2721 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2722     warn_b=yes
2723
2724         # Extract the first word of "bash", so it can be a program name with args.
2725 set dummy bash; ac_word=$2
2726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_path_SHELL+set}" = set; then
2729   $as_echo_n "(cached) " >&6
2730 else
2731   case $SHELL in
2732   [\\/]* | ?:[\\/]*)
2733   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2734   ;;
2735   *)
2736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741   for ac_exec_ext in '' $ac_executable_extensions; do
2742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2752   ;;
2753 esac
2754 fi
2755 SHELL=$ac_cv_path_SHELL
2756 if test -n "$SHELL"; then
2757   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2758 $as_echo "$SHELL" >&6; }
2759 else
2760   { $as_echo "$as_me:$LINENO: result: no" >&5
2761 $as_echo "no" >&6; }
2762 fi
2763
2764
2765     else
2766         SHELL=/bin/sh
2767         # Extract the first word of "bash", so it can be a program name with args.
2768 set dummy bash; ac_word=$2
2769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_path_BASH+set}" = set; then
2772   $as_echo_n "(cached) " >&6
2773 else
2774   case $BASH in
2775   [\\/]* | ?:[\\/]*)
2776   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2777   ;;
2778   *)
2779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784   for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2787     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2795   ;;
2796 esac
2797 fi
2798 BASH=$ac_cv_path_BASH
2799 if test -n "$BASH"; then
2800   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2801 $as_echo "$BASH" >&6; }
2802 else
2803   { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808     fi
2809
2810
2811
2812     { $as_echo "$as_me:$LINENO: checking for python" >&5
2813 $as_echo_n "checking for python... " >&6; }
2814     python="python"
2815     found="no"
2816     for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
2817         exe=`
2818     ## which doesn't work in ash, if /usr/bin/which isn't installed
2819     ## type -p doesn't work in ash
2820     ## command -v doesn't work in zsh
2821     ## command -v "$r" 2>&1
2822     ## this test should work in ash, bash, pdksh (ksh), zsh
2823     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2824 `
2825         if ! $exe -V > /dev/null 2>&1 ; then
2826             continue
2827         fi
2828         ver=`
2829     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2830     ##
2831     ## ARG.
2832     ## Workaround for broken Debian gcc version string:
2833     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2834     ##
2835     ## -V: Workaround for python
2836
2837     #dnl
2838
2839     ## Assume and hunt for dotted version multiplet.
2840     ## use eval trickery, because we cannot use multi-level $() instead of ``
2841     ## for compatibility reasons.
2842
2843     ## grab the first version number in  --version output.
2844     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2845                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2846                 head -n 1 |
2847                 tr ' ' '\n' |
2848                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2849                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2850                 head -n 1\`\"
2851
2852     if test -z "$_ver"; then
2853         ## If empty, try date [fontforge]
2854         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2855             | head -n 1 \
2856             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2857     fi
2858     echo "$_ver"
2859     #dnl
2860 `
2861         num=`
2862     echo "$ver" | awk -F. '
2863     {
2864       if ($3) {three = $3}
2865       else {three = 0}
2866     }
2867     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2868 `
2869         req=`
2870     echo "1.5" | awk -F. '
2871     {
2872       if ($3) {three = $3}
2873       else {three = 0}
2874     }
2875     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2876 `
2877         sup=`
2878     echo "3.0" | awk -F. '
2879     {
2880       if ($3) {three = $3}
2881       else {three = 0}
2882     }
2883     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2884 `
2885         if test -n "1.5" && test "$num" -lt "$req"; then
2886             python="$r >= 1.5 (installed: $ver)"
2887             continue
2888         else
2889             if test -n "3.0" && test "$num" -ge "$sup"; then
2890                 python="$r < 3.0 (installed: $ver)"
2891                 continue
2892             else
2893                 python=$r
2894                 found=$r
2895                 break
2896             fi
2897         fi
2898     done
2899     { $as_echo "$as_me:$LINENO: result: $found" >&5
2900 $as_echo "$found" >&6; }
2901     if test "$found" != "no"; then
2902         { $as_echo "$as_me:$LINENO: checking $python version" >&5
2903 $as_echo_n "checking $python version... " >&6; }
2904         { $as_echo "$as_me:$LINENO: result: $ver" >&5
2905 $as_echo "$ver" >&6; }
2906         PYTHON=$found
2907     else
2908
2909     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2910
2911     fi
2912     # Extract the first word of "$PYTHON", so it can be a program name with args.
2913 set dummy $PYTHON; ac_word=$2
2914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_path_PYTHON+set}" = set; then
2917   $as_echo_n "(cached) " >&6
2918 else
2919   case $PYTHON in
2920   [\\/]* | ?:[\\/]*)
2921   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2922   ;;
2923   *)
2924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929   for ac_exec_ext in '' $ac_executable_extensions; do
2930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939   ;;
2940 esac
2941 fi
2942 PYTHON=$ac_cv_path_PYTHON
2943 if test -n "$PYTHON"; then
2944   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2945 $as_echo "$PYTHON" >&6; }
2946 else
2947   { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952
2953
2954
2955     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2956         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2957         if test "$?" = 1; then
2958             warn='make (Please install *GNU* make)'
2959             # STEPMAKE_WARN($warn)
2960
2961     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2962
2963         fi
2964     fi
2965
2966     ROOTSEP=':'
2967     DIRSEP='/'
2968     PATHSEP=':'
2969     LN=ln
2970     LN_S='ln -s'
2971     ZIP="zip -r -9"
2972
2973
2974
2975
2976
2977
2978     cat >>confdefs.h <<_ACEOF
2979 #define DIRSEP '${DIRSEP}'
2980 _ACEOF
2981
2982     cat >>confdefs.h <<_ACEOF
2983 #define PATHSEP '${PATHSEP}'
2984 _ACEOF
2985
2986
2987
2988
2989
2990
2991     presome=${prefix}
2992     if test "$prefix" = "NONE"; then
2993         presome=${ac_default_prefix}
2994     fi
2995
2996     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
2997
2998     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
2999     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3000     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3001
3002
3003
3004
3005     cat >>confdefs.h <<_ACEOF
3006 #define DATADIR "${DATADIR}"
3007 _ACEOF
3008
3009     cat >>confdefs.h <<_ACEOF
3010 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3011 _ACEOF
3012
3013
3014
3015     presome=${exec_prefix}
3016     if test "$presome" = "NONE"; then
3017             presome=${prefix}
3018     fi
3019     if test "$presome" = "NONE"; then
3020             presome=${ac_default_prefix}
3021     fi
3022
3023     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3024
3025     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3026     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3027
3028
3029
3030     cat >>confdefs.h <<_ACEOF
3031 #define LIBDIR "${LIBDIR}"
3032 _ACEOF
3033
3034     cat >>confdefs.h <<_ACEOF
3035 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3036 _ACEOF
3037
3038
3039
3040
3041 # List a file that identifies your package.
3042
3043
3044 # Move to aclocal.m4?
3045 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3046
3047
3048 # Uncomment the configuration options your package needs.
3049
3050 DOCUMENTATION=yes
3051 # Check whether --enable-documentation was given.
3052 if test "${enable_documentation+set}" = set; then
3053   enableval=$enable_documentation; DOCUMENTATION=$enableval
3054 fi
3055
3056
3057
3058
3059 # Check whether --with-ncsb-dir was given.
3060 if test "${with_ncsb_dir+set}" = set; then
3061   withval=$with_ncsb_dir; NCSB_DIR=$withval
3062 else
3063   NCSB_DIR=""
3064 fi
3065
3066
3067 reloc_b=no
3068 # Check whether --enable-relocation was given.
3069 if test "${enable_relocation+set}" = set; then
3070   enableval=$enable_relocation; reloc_b=$enableval
3071 fi
3072
3073
3074 rpath_b=no
3075 # Check whether --enable-rpath was given.
3076 if test "${enable_rpath+set}" = set; then
3077   enableval=$enable_rpath; rpath_b=$enableval
3078 fi
3079
3080
3081 LINK_GXX_STATICALLY=no
3082 # Check whether --enable-static-gxx was given.
3083 if test "${enable_static_gxx+set}" = set; then
3084   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3085 fi
3086
3087
3088
3089 # must come before any header checks
3090
3091     # -O is necessary to get inlining
3092     CFLAGS=${CFLAGS-""}
3093     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3094     LDFLAGS=${LDFLAGS-""}
3095     optimise_b=yes
3096     profile_b=no
3097     debug_b=yes
3098     pipe_b=yes
3099
3100     # Check whether --enable-debugging was given.
3101 if test "${enable_debugging+set}" = set; then
3102   enableval=$enable_debugging; debug_b=$enableval
3103 fi
3104
3105
3106     # Check whether --enable-optimising was given.
3107 if test "${enable_optimising+set}" = set; then
3108   enableval=$enable_optimising; optimise_b=$enableval
3109 fi
3110
3111
3112     # Check whether --enable-profiling was given.
3113 if test "${enable_profiling+set}" = set; then
3114   enableval=$enable_profiling; profile_b=$enableval
3115 fi
3116
3117
3118     # Check whether --enable-pipe was given.
3119 if test "${enable_pipe+set}" = set; then
3120   enableval=$enable_pipe; pipe_b=$enableval
3121 fi
3122
3123
3124     if test "$optimise_b" = yes; then
3125         cat >>confdefs.h <<\_ACEOF
3126 #define NDEBUG 1
3127 _ACEOF
3128
3129         DEFINES="$DEFINES -DNDEBUG"
3130         OPTIMIZE=" -O2 -finline-functions"
3131     fi
3132
3133     if test $profile_b = yes; then
3134         EXTRA_LIBS="-pg"
3135         OPTIMIZE="$OPTIMIZE -pg"
3136     fi
3137
3138     if test $debug_b = yes; then
3139         OPTIMIZE="$OPTIMIZE -g"
3140     fi
3141
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163   for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:$LINENO: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185 fi
3186 if test -z "$ac_cv_prog_CC"; then
3187   ac_ct_CC=$CC
3188   # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$ac_ct_CC"; then
3196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203   for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_ac_ct_CC="gcc"
3206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3219 else
3220   { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3222 fi
3223
3224   if test "x$ac_ct_CC" = x; then
3225     CC=""
3226   else
3227     case $cross_compiling:$ac_tool_warned in
3228 yes:)
3229 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3232 esac
3233     CC=$ac_ct_CC
3234   fi
3235 else
3236   CC="$ac_cv_prog_CC"
3237 fi
3238
3239 if test -z "$CC"; then
3240           if test -n "$ac_tool_prefix"; then
3241     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}cc; ac_word=$2
3243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$CC"; then
3249   ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256   for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_CC="${ac_tool_prefix}cc"
3259     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273   { $as_echo "$as_me:$LINENO: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278   fi
3279 fi
3280 if test -z "$CC"; then
3281   # Extract the first word of "cc", so it can be a program name with args.
3282 set dummy cc; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286   $as_echo_n "(cached) " >&6
3287 else
3288   if test -n "$CC"; then
3289   ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291   ac_prog_rejected=no
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300        ac_prog_rejected=yes
3301        continue
3302      fi
3303     ac_cv_prog_CC="cc"
3304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 if test $ac_prog_rejected = yes; then
3312   # We found a bogon in the path, so make sure we never use it.
3313   set dummy $ac_cv_prog_CC
3314   shift
3315   if test $# != 0; then
3316     # We chose a different compiler from the bogus one.
3317     # However, it has the same basename, so the bogon will be chosen
3318     # first if we set CC to just the basename; use the full file name.
3319     shift
3320     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3321   fi
3322 fi
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330   { $as_echo "$as_me:$LINENO: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$CC"; then
3337   if test -n "$ac_tool_prefix"; then
3338   for ac_prog in cl.exe
3339   do
3340     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345   $as_echo_n "(cached) " >&6
3346 else
3347   if test -n "$CC"; then
3348   ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3371 else
3372   { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377     test -n "$CC" && break
3378   done
3379 fi
3380 if test -z "$CC"; then
3381   ac_ct_CC=$CC
3382   for ac_prog in cl.exe
3383 do
3384   # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$ac_ct_CC"; then
3392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399   for ac_exec_ext in '' $ac_executable_extensions; do
3400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401     ac_cv_prog_ac_ct_CC="$ac_prog"
3402     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416   { $as_echo "$as_me:$LINENO: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421   test -n "$ac_ct_CC" && break
3422 done
3423
3424   if test "x$ac_ct_CC" = x; then
3425     CC=""
3426   else
3427     case $cross_compiling:$ac_tool_warned in
3428 yes:)
3429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433     CC=$ac_ct_CC
3434   fi
3435 fi
3436
3437 fi
3438
3439
3440 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3443 See \`config.log' for more details." >&5
3444 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }; }
3447
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 { (ac_try="$ac_compiler --version >&5"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3458 $as_echo "$ac_try_echo") >&5
3459   (eval "$ac_compiler --version >&5") 2>&5
3460   ac_status=$?
3461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }
3463 { (ac_try="$ac_compiler -v >&5"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470   (eval "$ac_compiler -v >&5") 2>&5
3471   ac_status=$?
3472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }
3474 { (ac_try="$ac_compiler -V >&5"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481   (eval "$ac_compiler -V >&5") 2>&5
3482   ac_status=$?
3483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }
3485
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3515 do
3516   case $ac_file in
3517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519   esac
3520 done
3521 rm -f $ac_rmfiles
3522
3523 if { (ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529 $as_echo "$ac_try_echo") >&5
3530   (eval "$ac_link_default") 2>&5
3531   ac_status=$?
3532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; then
3534   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3540 do
3541   test -f "$ac_file" || continue
3542   case $ac_file in
3543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544         ;;
3545     [ab].out )
3546         # We found the default executable, but exeext='' is most
3547         # certainly right.
3548         break;;
3549     *.* )
3550         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551         then :; else
3552            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553         fi
3554         # We set ac_cv_exeext here because the later test for it is not
3555         # safe: cross compilers may not add the suffix if given an `-o'
3556         # argument, so we may need to know it at that point already.
3557         # Even if this section looks crufty: it has the advantage of
3558         # actually working.
3559         break;;
3560     * )
3561         break;;
3562   esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3565
3566 else
3567   ac_file=''
3568 fi
3569
3570 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3571 $as_echo "$ac_file" >&6; }
3572 if test -z "$ac_file"; then
3573   $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&2;}
3582    { (exit 77); exit 77; }; }; }
3583 fi
3584
3585 ac_exeext=$ac_cv_exeext
3586
3587 # Check that the compiler produces executables we can run.  If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3592 # If not cross compiling, check that we can run a simple program.
3593 if test "$cross_compiling" != yes; then
3594   if { ac_try='./$ac_file'
3595   { (case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601   (eval "$ac_try") 2>&5
3602   ac_status=$?
3603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; }; then
3605     cross_compiling=no
3606   else
3607     if test "$cross_compiling" = maybe; then
3608         cross_compiling=yes
3609     else
3610         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3613 If you meant to cross compile, use \`--host'.
3614 See \`config.log' for more details." >&5
3615 $as_echo "$as_me: error: cannot run C compiled programs.
3616 If you meant to cross compile, use \`--host'.
3617 See \`config.log' for more details." >&2;}
3618    { (exit 1); exit 1; }; }; }
3619     fi
3620   fi
3621 fi
3622 { $as_echo "$as_me:$LINENO: result: yes" >&5
3623 $as_echo "yes" >&6; }
3624
3625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3626 ac_clean_files=$ac_clean_files_save
3627 # Check that the compiler produces executables we can run.  If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3632 $as_echo "$cross_compiling" >&6; }
3633
3634 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3635 $as_echo_n "checking for suffix of executables... " >&6; }
3636 if { (ac_try="$ac_link"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643   (eval "$ac_link") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; then
3647   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3649 # work properly (i.e., refer to `conftest.exe'), while it won't with
3650 # `rm'.
3651 for ac_file in conftest.exe conftest conftest.*; do
3652   test -f "$ac_file" || continue
3653   case $ac_file in
3654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656           break;;
3657     * ) break;;
3658   esac
3659 done
3660 else
3661   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&2;}
3667    { (exit 1); exit 1; }; }; }
3668 fi
3669
3670 rm -f conftest$ac_cv_exeext
3671 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3673
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3676 ac_exeext=$EXEEXT
3677 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if test "${ac_cv_objext+set}" = set; then
3680   $as_echo_n "(cached) " >&6
3681 else
3682   cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705   (eval "$ac_compile") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; then
3709   for ac_file in conftest.o conftest.obj conftest.*; do
3710   test -f "$ac_file" || continue;
3711   case $ac_file in
3712     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714        break;;
3715   esac
3716 done
3717 else
3718   $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." >&5
3725 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&2;}
3727    { (exit 1); exit 1; }; }; }
3728 fi
3729
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731 fi
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3735 ac_objext=$OBJEXT
3736 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739   $as_echo_n "(cached) " >&6
3740 else
3741   cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h.  */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h.  */
3747
3748 int
3749 main ()
3750 {
3751 #ifndef __GNUC__
3752        choke me
3753 #endif
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } && {
3774          test -z "$ac_c_werror_flag" ||
3775          test ! -s conftest.err
3776        } && test -s conftest.$ac_objext; then
3777   ac_compiler_gnu=yes
3778 else
3779   $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782         ac_compiler_gnu=no
3783 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787
3788 fi
3789 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3791 if test $ac_compiler_gnu = yes; then
3792   GCC=yes
3793 else
3794   GCC=
3795 fi
3796 ac_test_CFLAGS=${CFLAGS+set}
3797 ac_save_CFLAGS=$CFLAGS
3798 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3800 if test "${ac_cv_prog_cc_g+set}" = set; then
3801   $as_echo_n "(cached) " >&6
3802 else
3803   ac_save_c_werror_flag=$ac_c_werror_flag
3804    ac_c_werror_flag=yes
3805    ac_cv_prog_cc_g=no
3806    CFLAGS="-g"
3807    cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3829 $as_echo "$ac_try_echo") >&5
3830   (eval "$ac_compile") 2>conftest.er1
3831   ac_status=$?
3832   grep -v '^ *+' conftest.er1 >conftest.err
3833   rm -f conftest.er1
3834   cat conftest.err >&5
3835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } && {
3837          test -z "$ac_c_werror_flag" ||
3838          test ! -s conftest.err
3839        } && test -s conftest.$ac_objext; then
3840   ac_cv_prog_cc_g=yes
3841 else
3842   $as_echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845         CFLAGS=""
3846       cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852
3853 int
3854 main ()
3855 {
3856
3857   ;
3858   return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3863 case "(($ac_try" in
3864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865   *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868 $as_echo "$ac_try_echo") >&5
3869   (eval "$ac_compile") 2>conftest.er1
3870   ac_status=$?
3871   grep -v '^ *+' conftest.er1 >conftest.err
3872   rm -f conftest.er1
3873   cat conftest.err >&5
3874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } && {
3876          test -z "$ac_c_werror_flag" ||
3877          test ! -s conftest.err
3878        } && test -s conftest.$ac_objext; then
3879   :
3880 else
3881   $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884         ac_c_werror_flag=$ac_save_c_werror_flag
3885          CFLAGS="-g"
3886          cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h.  */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909   (eval "$ac_compile") 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } && {
3916          test -z "$ac_c_werror_flag" ||
3917          test ! -s conftest.err
3918        } && test -s conftest.$ac_objext; then
3919   ac_cv_prog_cc_g=yes
3920 else
3921   $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 fi
3932
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934    ac_c_werror_flag=$ac_save_c_werror_flag
3935 fi
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939   CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941   if test "$GCC" = yes; then
3942     CFLAGS="-g -O2"
3943   else
3944     CFLAGS="-g"
3945   fi
3946 else
3947   if test "$GCC" = yes; then
3948     CFLAGS="-O2"
3949   else
3950     CFLAGS=
3951   fi
3952 fi
3953 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if test "${ac_cv_prog_cc_c89+set}" = set; then
3956   $as_echo_n "(cached) " >&6
3957 else
3958   ac_cv_prog_cc_c89=no
3959 ac_save_CC=$CC
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 #include <stdarg.h>
3967 #include <stdio.h>
3968 #include <sys/types.h>
3969 #include <sys/stat.h>
3970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3971 struct buf { int x; };
3972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973 static char *e (p, i)
3974      char **p;
3975      int i;
3976 {
3977   return p[i];
3978 }
3979 static char *f (char * (*g) (char **, int), char **p, ...)
3980 {
3981   char *s;
3982   va_list v;
3983   va_start (v,p);
3984   s = g (p, va_arg (v,int));
3985   va_end (v);
3986   return s;
3987 }
3988
3989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3990    function prototypes and stuff, but not '\xHH' hex character constants.
3991    These don't provoke an error unfortunately, instead are silently treated
3992    as 'x'.  The following induces an error, until -std is added to get
3993    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3994    array size at least.  It's necessary to write '\x00'==0 to get something
3995    that's true only with -std.  */
3996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997
3998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999    inside strings and character constants.  */
4000 #define FOO(x) 'x'
4001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002
4003 int test (int i, double x);
4004 struct s1 {int (*f) (int a);};
4005 struct s2 {int (*f) (double a);};
4006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007 int argc;
4008 char **argv;
4009 int
4010 main ()
4011 {
4012 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 do
4020   CC="$ac_save_CC $ac_arg"
4021   rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029   (eval "$ac_compile") 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } && {
4036          test -z "$ac_c_werror_flag" ||
4037          test ! -s conftest.err
4038        } && test -s conftest.$ac_objext; then
4039   ac_cv_prog_cc_c89=$ac_arg
4040 else
4041   $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044
4045 fi
4046
4047 rm -f core conftest.err conftest.$ac_objext
4048   test "x$ac_cv_prog_cc_c89" != "xno" && break
4049 done
4050 rm -f conftest.$ac_ext
4051 CC=$ac_save_CC
4052
4053 fi
4054 # AC_CACHE_VAL
4055 case "x$ac_cv_prog_cc_c89" in
4056   x)
4057     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4058 $as_echo "none needed" >&6; } ;;
4059   xno)
4060     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4061 $as_echo "unsupported" >&6; } ;;
4062   *)
4063     CC="$CC $ac_cv_prog_cc_c89"
4064     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4066 esac
4067
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075
4076
4077
4078
4079
4080
4081
4082     r="`eval echo '$'"CC"`"
4083     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4084         true
4085     else
4086         ##STEPMAKE_WARN(cannot find . )
4087         false
4088     fi
4089
4090     if test $? -ne 0; then
4091
4092     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4093
4094         if test "" = "REQUIRED"; then
4095             command="echo ERROR: cc not found"
4096             # abort configure process here?
4097         else
4098             command="- echo cc not found"
4099         fi
4100         eval "CC"='$command'
4101         false
4102     else
4103         true
4104     fi
4105
4106     LD='$(CC)'
4107
4108
4109     # If -pipe requested, test if it works and add to CFLAGS.
4110     if test "$pipe_b" = yes; then
4111         save_cflags="$CFLAGS"
4112         CFLAGS=" -pipe $CFLAGS";
4113         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4114 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4115 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4116   $as_echo_n "(cached) " >&6
4117 else
4118
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 /* -pipe test */
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141 $as_echo "$ac_try_echo") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } && {
4149          test -z "$ac_c_werror_flag" ||
4150          test ! -s conftest.err
4151        } && test -s conftest.$ac_objext; then
4152   stepmake_cv_cflags_pipe=yes
4153 else
4154   $as_echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157         stepmake_cv_cflags_pipe=no
4158 fi
4159
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 fi
4162 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4163 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4164         CFLAGS=$save_cflags
4165         if test $stepmake_cv_cflags_pipe = yes; then
4166             OPTIMIZE="$OPTIMIZE -pipe"
4167         fi
4168     fi
4169
4170     CFLAGS="$CFLAGS $OPTIMIZE"
4171     CPPFLAGS=${CPPFLAGS-""}
4172
4173     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4174 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4175     save_cflags="$CFLAGS"
4176     case "$host" in
4177         alpha*-*-*)
4178                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4179 $as_echo "-mieee" >&6; }
4180             CFLAGS=" -mieee $CFLAGS"
4181             ;;
4182         *)
4183             { $as_echo "$as_me:$LINENO: result: none" >&5
4184 $as_echo "none" >&6; }
4185             ;;
4186     esac
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196 # Extract the first word of "fc-list", so it can be a program name with args.
4197 set dummy fc-list; ac_word=$2
4198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_FCLIST+set}" = set; then
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -n "$FCLIST"; then
4204   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_prog_FCLIST="fc-list"
4214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 FCLIST=$ac_cv_prog_FCLIST
4224 if test -n "$FCLIST"; then
4225   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4226 $as_echo "$FCLIST" >&6; }
4227 else
4228   { $as_echo "$as_me:$LINENO: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 { $as_echo "$as_me:$LINENO: checking for New Century Schoolbook PFB files" >&5
4234 $as_echo_n "checking for New Century Schoolbook PFB files... " >&6; }
4235
4236
4237 if test "$NCSB_DIR" = ""; then
4238   if test "$FCLIST" != ""; then
4239     NCSB_FILE=`$FCLIST "Century Schoolbook L:foundry=urw:fontformat=Type 1:lang=ru" file \
4240               | head -n 1`
4241     if test "$NCSB_FILE" != ""; then
4242       NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
4243       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4244       NCSB_DIR=`$as_dirname -- $NCSB_FILE ||
4245 $as_expr X$NCSB_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4246          X$NCSB_FILE : 'X\(//\)[^/]' \| \
4247          X$NCSB_FILE : 'X\(//\)$' \| \
4248          X$NCSB_FILE : 'X\(/\)' \| . 2>/dev/null ||
4249 $as_echo X$NCSB_FILE |
4250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4251             s//\1/
4252             q
4253           }
4254           /^X\(\/\/\)[^/].*/{
4255             s//\1/
4256             q
4257           }
4258           /^X\(\/\/\)$/{
4259             s//\1/
4260             q
4261           }
4262           /^X\(\/\).*/{
4263             s//\1/
4264             q
4265           }
4266           s/.*/./; q'`
4267     fi
4268   fi
4269 fi
4270 if test "$NCSB_DIR" != "" ;  then
4271   for f in c059013l.pfb c059016l.pfb c059033l.pfb c059036l.pfb; do
4272     if test ! -f "$NCSB_DIR/$f"; then
4273       MISSING_NCSB_SOURCE_FILES="$f $MISSING_NCSB_SOURCE_FILES"
4274     else
4275       if test "`grep Cyrillic "$NCSB_DIR/$f"`" = ""; then
4276         INCOMPLETE_NCSB_SOURCE_FILES="$f $INCOMPLETE_NCSB_SOURCE_FILES"
4277       else
4278         NCSB_SOURCE_FILES="$NCSB_DIR/$f $NCSB_SOURCE_FILES"
4279       fi
4280     fi
4281   done
4282 fi
4283 if test "$NCSB_DIR" = "" -o "$MISSING_NCSB_SOURCE_FILES" != "$INCOMPLETE_NCSB_SOURCE_FILES"; then
4284   { $as_echo "$as_me:$LINENO: result: no" >&5
4285 $as_echo "no" >&6; }
4286
4287     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"International New Century Schoolbook fonts\"`\"
4288
4289   if test "$NCSB_DIR" = ""; then
4290     if test "$FCLIST" = ""; then
4291
4292     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-ncsb-dir)'\"`\"
4293
4294     else
4295
4296     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(make sure the fc-list utility can see them, or use --with-ncsb-dir)'\"`\"
4297
4298     fi
4299   fi
4300   if test "$MISSING_NCSB_SOURCE_FILES" != ""; then
4301
4302     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_NCSB_SOURCE_FILES)'\"`\"
4303
4304   fi
4305   if test "$INCOMPLETE_NCSB_SOURCE_FILES" != ""; then
4306
4307     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files do not contain Cyrillic characters: $INCOMPLETE_NCSB_SOURCE_FILES)'\"`\"
4308
4309   fi
4310 else
4311   { $as_echo "$as_me:$LINENO: result: yes" >&5
4312 $as_echo "yes" >&6; }
4313 fi
4314
4315 ac_ext=cpp
4316 ac_cpp='$CXXCPP $CPPFLAGS'
4317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4320
4321
4322
4323     { $as_echo "$as_me:$LINENO: checking for python" >&5
4324 $as_echo_n "checking for python... " >&6; }
4325     python="python"
4326     found="no"
4327     for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
4328         exe=`
4329     ## which doesn't work in ash, if /usr/bin/which isn't installed
4330     ## type -p doesn't work in ash
4331     ## command -v doesn't work in zsh
4332     ## command -v "$r" 2>&1
4333     ## this test should work in ash, bash, pdksh (ksh), zsh
4334     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4335 `
4336         if ! $exe -V > /dev/null 2>&1 ; then
4337             continue
4338         fi
4339         ver=`
4340     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4341     ##
4342     ## ARG.
4343     ## Workaround for broken Debian gcc version string:
4344     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4345     ##
4346     ## -V: Workaround for python
4347
4348     #dnl
4349
4350     ## Assume and hunt for dotted version multiplet.
4351     ## use eval trickery, because we cannot use multi-level $() instead of ``
4352     ## for compatibility reasons.
4353
4354     ## grab the first version number in  --version output.
4355     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4356                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4357                 head -n 1 |
4358                 tr ' ' '\n' |
4359                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4360                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4361                 head -n 1\`\"
4362
4363     if test -z "$_ver"; then
4364         ## If empty, try date [fontforge]
4365         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4366             | head -n 1 \
4367             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4368     fi
4369     echo "$_ver"
4370     #dnl
4371 `
4372         num=`
4373     echo "$ver" | awk -F. '
4374     {
4375       if ($3) {three = $3}
4376       else {three = 0}
4377     }
4378     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4379 `
4380         req=`
4381     echo "2.4" | awk -F. '
4382     {
4383       if ($3) {three = $3}
4384       else {three = 0}
4385     }
4386     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4387 `
4388         sup=`
4389     echo "3.0" | awk -F. '
4390     {
4391       if ($3) {three = $3}
4392       else {three = 0}
4393     }
4394     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4395 `
4396         if test -n "2.4" && test "$num" -lt "$req"; then
4397             python="$r >= 2.4 (installed: $ver)"
4398             continue
4399         else
4400             if test -n "3.0" && test "$num" -ge "$sup"; then
4401                 python="$r < 3.0 (installed: $ver)"
4402                 continue
4403             else
4404                 python=$r
4405                 found=$r
4406                 break
4407             fi
4408         fi
4409     done
4410     { $as_echo "$as_me:$LINENO: result: $found" >&5
4411 $as_echo "$found" >&6; }
4412     if test "$found" != "no"; then
4413         { $as_echo "$as_me:$LINENO: checking $python version" >&5
4414 $as_echo_n "checking $python version... " >&6; }
4415         { $as_echo "$as_me:$LINENO: result: $ver" >&5
4416 $as_echo "$ver" >&6; }
4417         PYTHON=$found
4418     else
4419
4420     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4421
4422     fi
4423     # Extract the first word of "$PYTHON", so it can be a program name with args.
4424 set dummy $PYTHON; ac_word=$2
4425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_path_PYTHON+set}" = set; then
4428   $as_echo_n "(cached) " >&6
4429 else
4430   case $PYTHON in
4431   [\\/]* | ?:[\\/]*)
4432   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4433   ;;
4434   *)
4435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4443     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450   ;;
4451 esac
4452 fi
4453 PYTHON=$ac_cv_path_PYTHON
4454 if test -n "$PYTHON"; then
4455   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4456 $as_echo "$PYTHON" >&6; }
4457 else
4458   { $as_echo "$as_me:$LINENO: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463
4464
4465 # this checks if we have GNU C by compiling a program with
4466 # __GNUC__, but that macro now unofficially means "the compiler
4467 # supports the GNU C extensions" -- the intel C compiler and clang
4468 # both support __GNUC__!
4469 ac_ext=cpp
4470 ac_cpp='$CXXCPP $CPPFLAGS'
4471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4474 if test -z "$CXX"; then
4475   if test -n "$CCC"; then
4476     CXX=$CCC
4477   else
4478     if test -n "$ac_tool_prefix"; then
4479   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4480   do
4481     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_CXX+set}" = set; then
4486   $as_echo_n "(cached) " >&6
4487 else
4488   if test -n "$CXX"; then
4489   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496   for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506 fi
4507 fi
4508 CXX=$ac_cv_prog_CXX
4509 if test -n "$CXX"; then
4510   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4511 $as_echo "$CXX" >&6; }
4512 else
4513   { $as_echo "$as_me:$LINENO: result: no" >&5
4514 $as_echo "no" >&6; }
4515 fi
4516
4517
4518     test -n "$CXX" && break
4519   done
4520 fi
4521 if test -z "$CXX"; then
4522   ac_ct_CXX=$CXX
4523   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4524 do
4525   # Extract the first word of "$ac_prog", so it can be a program name with args.
4526 set dummy $ac_prog; ac_word=$2
4527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4530   $as_echo_n "(cached) " >&6
4531 else
4532   if test -n "$ac_ct_CXX"; then
4533   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540   for ac_exec_ext in '' $ac_executable_extensions; do
4541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542     ac_cv_prog_ac_ct_CXX="$ac_prog"
4543     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544     break 2
4545   fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4553 if test -n "$ac_ct_CXX"; then
4554   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4555 $as_echo "$ac_ct_CXX" >&6; }
4556 else
4557   { $as_echo "$as_me:$LINENO: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562   test -n "$ac_ct_CXX" && break
4563 done
4564
4565   if test "x$ac_ct_CXX" = x; then
4566     CXX="g++"
4567   else
4568     case $cross_compiling:$ac_tool_warned in
4569 yes:)
4570 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4572 ac_tool_warned=yes ;;
4573 esac
4574     CXX=$ac_ct_CXX
4575   fi
4576 fi
4577
4578   fi
4579 fi
4580 # Provide some information about the compiler.
4581 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4582 set X $ac_compile
4583 ac_compiler=$2
4584 { (ac_try="$ac_compiler --version >&5"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4590 $as_echo "$ac_try_echo") >&5
4591   (eval "$ac_compiler --version >&5") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }
4595 { (ac_try="$ac_compiler -v >&5"
4596 case "(($ac_try" in
4597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598   *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601 $as_echo "$ac_try_echo") >&5
4602   (eval "$ac_compiler -v >&5") 2>&5
4603   ac_status=$?
4604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }
4606 { (ac_try="$ac_compiler -V >&5"
4607 case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613   (eval "$ac_compiler -V >&5") 2>&5
4614   ac_status=$?
4615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }
4617
4618 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4621   $as_echo_n "(cached) " >&6
4622 else
4623   cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629
4630 int
4631 main ()
4632 {
4633 #ifndef __GNUC__
4634        choke me
4635 #endif
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649   (eval "$ac_compile") 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } && {
4656          test -z "$ac_cxx_werror_flag" ||
4657          test ! -s conftest.err
4658        } && test -s conftest.$ac_objext; then
4659   ac_compiler_gnu=yes
4660 else
4661   $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664         ac_compiler_gnu=no
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4669
4670 fi
4671 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4672 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4673 if test $ac_compiler_gnu = yes; then
4674   GXX=yes
4675 else
4676   GXX=
4677 fi
4678 ac_test_CXXFLAGS=${CXXFLAGS+set}
4679 ac_save_CXXFLAGS=$CXXFLAGS
4680 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4681 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4682 if test "${ac_cv_prog_cxx_g+set}" = set; then
4683   $as_echo_n "(cached) " >&6
4684 else
4685   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4686    ac_cxx_werror_flag=yes
4687    ac_cv_prog_cxx_g=no
4688    CXXFLAGS="-g"
4689    cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695
4696 int
4697 main ()
4698 {
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_compile") 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } && {
4719          test -z "$ac_cxx_werror_flag" ||
4720          test ! -s conftest.err
4721        } && test -s conftest.$ac_objext; then
4722   ac_cv_prog_cxx_g=yes
4723 else
4724   $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727         CXXFLAGS=""
4728       cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734
4735 int
4736 main ()
4737 {
4738
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4745 case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751   (eval "$ac_compile") 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } && {
4758          test -z "$ac_cxx_werror_flag" ||
4759          test ! -s conftest.err
4760        } && test -s conftest.$ac_objext; then
4761   :
4762 else
4763   $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4767          CXXFLAGS="-g"
4768          cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774
4775 int
4776 main ()
4777 {
4778
4779   ;
4780   return 0;
4781 }
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (ac_try="$ac_compile"
4785 case "(($ac_try" in
4786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787   *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4790 $as_echo "$ac_try_echo") >&5
4791   (eval "$ac_compile") 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } && {
4798          test -z "$ac_cxx_werror_flag" ||
4799          test ! -s conftest.err
4800        } && test -s conftest.$ac_objext; then
4801   ac_cv_prog_cxx_g=yes
4802 else
4803   $as_echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806
4807 fi
4808
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4817 fi
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4820 if test "$ac_test_CXXFLAGS" = set; then
4821   CXXFLAGS=$ac_save_CXXFLAGS
4822 elif test $ac_cv_prog_cxx_g = yes; then
4823   if test "$GXX" = yes; then
4824     CXXFLAGS="-g -O2"
4825   else
4826     CXXFLAGS="-g"
4827   fi
4828 else
4829   if test "$GXX" = yes; then
4830     CXXFLAGS="-O2"
4831   else
4832     CXXFLAGS=
4833   fi
4834 fi
4835 ac_ext=cpp
4836 ac_cpp='$CXXCPP $CPPFLAGS'
4837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4840
4841
4842 ac_ext=cpp
4843 ac_cpp='$CXXCPP $CPPFLAGS'
4844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4848 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4849 if test -z "$CXXCPP"; then
4850   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4851   $as_echo_n "(cached) " >&6
4852 else
4853       # Double quotes because CXXCPP needs to be expanded
4854     for CXXCPP in "$CXX -E" "/lib/cpp"
4855     do
4856       ac_preproc_ok=false
4857 for ac_cxx_preproc_warn_flag in '' yes
4858 do
4859   # Use a header file that comes with gcc, so configuring glibc
4860   # with a fresh cross-compiler works.
4861   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862   # <limits.h> exists even on freestanding compilers.
4863   # On the NeXT, cc -E runs the code through the compiler's parser,
4864   # not just through cpp. "Syntax error" is here to catch this case.
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876                      Syntax error
4877 _ACEOF
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4884 $as_echo "$ac_try_echo") >&5
4885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } >/dev/null && {
4892          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4893          test ! -s conftest.err
4894        }; then
4895   :
4896 else
4897   $as_echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900   # Broken: fails on valid input.
4901 continue
4902 fi
4903
4904 rm -f conftest.err conftest.$ac_ext
4905
4906   # OK, works on sane cases.  Now check whether nonexistent headers
4907   # can be detected and how.
4908   cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 #include <ac_nonexistent.h>
4915 _ACEOF
4916 if { (ac_try="$ac_cpp conftest.$ac_ext"
4917 case "(($ac_try" in
4918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919   *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4922 $as_echo "$ac_try_echo") >&5
4923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } >/dev/null && {
4930          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4931          test ! -s conftest.err
4932        }; then
4933   # Broken: success on invalid input.
4934 continue
4935 else
4936   $as_echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939   # Passes both tests.
4940 ac_preproc_ok=:
4941 break
4942 fi
4943
4944 rm -f conftest.err conftest.$ac_ext
4945
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4950   break
4951 fi
4952
4953     done
4954     ac_cv_prog_CXXCPP=$CXXCPP
4955
4956 fi
4957   CXXCPP=$ac_cv_prog_CXXCPP
4958 else
4959   ac_cv_prog_CXXCPP=$CXXCPP
4960 fi
4961 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4962 $as_echo "$CXXCPP" >&6; }
4963 ac_preproc_ok=false
4964 for ac_cxx_preproc_warn_flag in '' yes
4965 do
4966   # Use a header file that comes with gcc, so configuring glibc
4967   # with a fresh cross-compiler works.
4968   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969   # <limits.h> exists even on freestanding compilers.
4970   # On the NeXT, cc -E runs the code through the compiler's parser,
4971   # not just through cpp. "Syntax error" is here to catch this case.
4972   cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983                      Syntax error
4984 _ACEOF
4985 if { (ac_try="$ac_cpp conftest.$ac_ext"
4986 case "(($ac_try" in
4987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988   *) ac_try_echo=$ac_try;;
4989 esac
4990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991 $as_echo "$ac_try_echo") >&5
4992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993   ac_status=$?
4994   grep -v '^ *+' conftest.er1 >conftest.err
4995   rm -f conftest.er1
4996   cat conftest.err >&5
4997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } >/dev/null && {
4999          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5000          test ! -s conftest.err
5001        }; then
5002   :
5003 else
5004   $as_echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007   # Broken: fails on valid input.
5008 continue
5009 fi
5010
5011 rm -f conftest.err conftest.$ac_ext
5012
5013   # OK, works on sane cases.  Now check whether nonexistent headers
5014   # can be detected and how.
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 #include <ac_nonexistent.h>
5022 _ACEOF
5023 if { (ac_try="$ac_cpp conftest.$ac_ext"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5031   ac_status=$?
5032   grep -v '^ *+' conftest.er1 >conftest.err
5033   rm -f conftest.er1
5034   cat conftest.err >&5
5035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); } >/dev/null && {
5037          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5038          test ! -s conftest.err
5039        }; then
5040   # Broken: success on invalid input.
5041 continue
5042 else
5043   $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046   # Passes both tests.
5047 ac_preproc_ok=:
5048 break
5049 fi
5050
5051 rm -f conftest.err conftest.$ac_ext
5052
5053 done
5054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5055 rm -f conftest.err conftest.$ac_ext
5056 if $ac_preproc_ok; then
5057   :
5058 else
5059   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5061 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5062 See \`config.log' for more details." >&5
5063 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5064 See \`config.log' for more details." >&2;}
5065    { (exit 1); exit 1; }; }; }
5066 fi
5067
5068 ac_ext=cpp
5069 ac_cpp='$CXXCPP $CPPFLAGS'
5070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5073
5074
5075 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5076 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5077 if test "${ac_cv_path_GREP+set}" = set; then
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if test -z "$GREP"; then
5081   ac_path_GREP_found=false
5082   # Loop through the user's path and test for each of PROGNAME-LIST
5083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for ac_prog in grep ggrep; do
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5091       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5092 # Check for GNU ac_path_GREP and select it if it is found.
5093   # Check for GNU $ac_path_GREP
5094 case `"$ac_path_GREP" --version 2>&1` in
5095 *GNU*)
5096   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5097 *)
5098   ac_count=0
5099   $as_echo_n 0123456789 >"conftest.in"
5100   while :
5101   do
5102     cat "conftest.in" "conftest.in" >"conftest.tmp"
5103     mv "conftest.tmp" "conftest.in"
5104     cp "conftest.in" "conftest.nl"
5105     $as_echo 'GREP' >> "conftest.nl"
5106     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108     ac_count=`expr $ac_count + 1`
5109     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5110       # Best one so far, save it but keep looking for a better one
5111       ac_cv_path_GREP="$ac_path_GREP"
5112       ac_path_GREP_max=$ac_count
5113     fi
5114     # 10*(2^10) chars as input seems more than enough
5115     test $ac_count -gt 10 && break
5116   done
5117   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118 esac
5119
5120       $ac_path_GREP_found && break 3
5121     done
5122   done
5123 done
5124 IFS=$as_save_IFS
5125   if test -z "$ac_cv_path_GREP"; then
5126     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5127 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5128    { (exit 1); exit 1; }; }
5129   fi
5130 else
5131   ac_cv_path_GREP=$GREP
5132 fi
5133
5134 fi
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5136 $as_echo "$ac_cv_path_GREP" >&6; }
5137  GREP="$ac_cv_path_GREP"
5138
5139
5140 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5141 $as_echo_n "checking for egrep... " >&6; }
5142 if test "${ac_cv_path_EGREP+set}" = set; then
5143   $as_echo_n "(cached) " >&6
5144 else
5145   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5146    then ac_cv_path_EGREP="$GREP -E"
5147    else
5148      if test -z "$EGREP"; then
5149   ac_path_EGREP_found=false
5150   # Loop through the user's path and test for each of PROGNAME-LIST
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_prog in egrep; do
5157     for ac_exec_ext in '' $ac_executable_extensions; do
5158       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5159       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5160 # Check for GNU ac_path_EGREP and select it if it is found.
5161   # Check for GNU $ac_path_EGREP
5162 case `"$ac_path_EGREP" --version 2>&1` in
5163 *GNU*)
5164   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5165 *)
5166   ac_count=0
5167   $as_echo_n 0123456789 >"conftest.in"
5168   while :
5169   do
5170     cat "conftest.in" "conftest.in" >"conftest.tmp"
5171     mv "conftest.tmp" "conftest.in"
5172     cp "conftest.in" "conftest.nl"
5173     $as_echo 'EGREP' >> "conftest.nl"
5174     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5175     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5176     ac_count=`expr $ac_count + 1`
5177     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5178       # Best one so far, save it but keep looking for a better one
5179       ac_cv_path_EGREP="$ac_path_EGREP"
5180       ac_path_EGREP_max=$ac_count
5181     fi
5182     # 10*(2^10) chars as input seems more than enough
5183     test $ac_count -gt 10 && break
5184   done
5185   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5186 esac
5187
5188       $ac_path_EGREP_found && break 3
5189     done
5190   done
5191 done
5192 IFS=$as_save_IFS
5193   if test -z "$ac_cv_path_EGREP"; then
5194     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5195 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5196    { (exit 1); exit 1; }; }
5197   fi
5198 else
5199   ac_cv_path_EGREP=$EGREP
5200 fi
5201
5202    fi
5203 fi
5204 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5205 $as_echo "$ac_cv_path_EGREP" >&6; }
5206  EGREP="$ac_cv_path_EGREP"
5207
5208
5209
5210
5211     cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h.  */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h.  */
5217 #ifdef __clang__
5218        yes
5219        #endif
5220
5221 _ACEOF
5222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5223   $EGREP "yes" >/dev/null 2>&1; then
5224   HAS_CLANG=yes
5225 else
5226   HAS_CLANG=no
5227 fi
5228 rm -f conftest*
5229
5230
5231     if test "$HAS_CLANG" = "no"; then
5232         if test "$GCC" = "yes"; then
5233
5234     r="`eval echo '$'"CC"`"
5235     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5236 $as_echo_n "checking $r version... " >&6; }
5237     exe=`
5238     ## which doesn't work in ash, if /usr/bin/which isn't installed
5239     ## type -p doesn't work in ash
5240     ## command -v doesn't work in zsh
5241     ## command -v "$r" 2>&1
5242     ## this test should work in ash, bash, pdksh (ksh), zsh
5243     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5244 `
5245     if test -n ""; then
5246         ver=""
5247     else
5248         ver=`
5249     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5250     ##
5251     ## ARG.
5252     ## Workaround for broken Debian gcc version string:
5253     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5254     ##
5255     ## -V: Workaround for python
5256
5257     #dnl
5258
5259     ## Assume and hunt for dotted version multiplet.
5260     ## use eval trickery, because we cannot use multi-level $() instead of ``
5261     ## for compatibility reasons.
5262
5263     ## grab the first version number in  --version output.
5264     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5265                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5266                 head -n 1 |
5267                 tr ' ' '\n' |
5268                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5269                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5270                 head -n 1\`\"
5271
5272     if test -z "$_ver"; then
5273         ## If empty, try date [fontforge]
5274         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5275             | head -n 1 \
5276             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5277     fi
5278     echo "$_ver"
5279     #dnl
5280 `
5281     fi
5282     num=`
5283     echo "$ver" | awk -F. '
5284     {
5285       if ($3) {three = $3}
5286       else {three = 0}
5287     }
5288     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5289 `
5290     req=`
5291     echo "3.4" | awk -F. '
5292     {
5293       if ($3) {three = $3}
5294       else {three = 0}
5295     }
5296     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5297 `
5298     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5299 $as_echo "$ver" >&6; }
5300     if test "$num" -lt "$req"; then
5301
5302     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5303
5304     fi
5305     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5306     eval `echo $vervar=$num`
5307 ##    AC_SUBST(`eval echo $vervar`)
5308
5309         else
5310             warn="$CC (Please install *GNU* cc)"
5311
5312     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5313
5314         fi
5315     fi
5316     # no else, we're fine with any clang
5317
5318
5319
5320     ac_ext=cpp
5321 ac_cpp='$CXXCPP $CPPFLAGS'
5322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5325 if test -z "$CXX"; then
5326   if test -n "$CCC"; then
5327     CXX=$CCC
5328   else
5329     if test -n "$ac_tool_prefix"; then
5330   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5331   do
5332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_CXX+set}" = set; then
5337   $as_echo_n "(cached) " >&6
5338 else
5339   if test -n "$CXX"; then
5340   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345   IFS=$as_save_IFS
5346   test -z "$as_dir" && as_dir=.
5347   for ac_exec_ext in '' $ac_executable_extensions; do
5348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5350     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351     break 2
5352   fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 CXX=$ac_cv_prog_CXX
5360 if test -n "$CXX"; then
5361   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5362 $as_echo "$CXX" >&6; }
5363 else
5364   { $as_echo "$as_me:$LINENO: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369     test -n "$CXX" && break
5370   done
5371 fi
5372 if test -z "$CXX"; then
5373   ac_ct_CXX=$CXX
5374   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5375 do
5376   # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5381   $as_echo_n "(cached) " >&6
5382 else
5383   if test -n "$ac_ct_CXX"; then
5384   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391   for ac_exec_ext in '' $ac_executable_extensions; do
5392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393     ac_cv_prog_ac_ct_CXX="$ac_prog"
5394     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5404 if test -n "$ac_ct_CXX"; then
5405   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5406 $as_echo "$ac_ct_CXX" >&6; }
5407 else
5408   { $as_echo "$as_me:$LINENO: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411
5412
5413   test -n "$ac_ct_CXX" && break
5414 done
5415
5416   if test "x$ac_ct_CXX" = x; then
5417     CXX="g++"
5418   else
5419     case $cross_compiling:$ac_tool_warned in
5420 yes:)
5421 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5424 esac
5425     CXX=$ac_ct_CXX
5426   fi
5427 fi
5428
5429   fi
5430 fi
5431 # Provide some information about the compiler.
5432 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5433 set X $ac_compile
5434 ac_compiler=$2
5435 { (ac_try="$ac_compiler --version >&5"
5436 case "(($ac_try" in
5437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438   *) ac_try_echo=$ac_try;;
5439 esac
5440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441 $as_echo "$ac_try_echo") >&5
5442   (eval "$ac_compiler --version >&5") 2>&5
5443   ac_status=$?
5444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }
5446 { (ac_try="$ac_compiler -v >&5"
5447 case "(($ac_try" in
5448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449   *) ac_try_echo=$ac_try;;
5450 esac
5451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5452 $as_echo "$ac_try_echo") >&5
5453   (eval "$ac_compiler -v >&5") 2>&5
5454   ac_status=$?
5455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }
5457 { (ac_try="$ac_compiler -V >&5"
5458 case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464   (eval "$ac_compiler -V >&5") 2>&5
5465   ac_status=$?
5466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }
5468
5469 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5472   $as_echo_n "(cached) " >&6
5473 else
5474   cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480
5481 int
5482 main ()
5483 {
5484 #ifndef __GNUC__
5485        choke me
5486 #endif
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500   (eval "$ac_compile") 2>conftest.er1
5501   ac_status=$?
5502   grep -v '^ *+' conftest.er1 >conftest.err
5503   rm -f conftest.er1
5504   cat conftest.err >&5
5505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); } && {
5507          test -z "$ac_cxx_werror_flag" ||
5508          test ! -s conftest.err
5509        } && test -s conftest.$ac_objext; then
5510   ac_compiler_gnu=yes
5511 else
5512   $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515         ac_compiler_gnu=no
5516 fi
5517
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5520
5521 fi
5522 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5523 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5524 if test $ac_compiler_gnu = yes; then
5525   GXX=yes
5526 else
5527   GXX=
5528 fi
5529 ac_test_CXXFLAGS=${CXXFLAGS+set}
5530 ac_save_CXXFLAGS=$CXXFLAGS
5531 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5532 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5533 if test "${ac_cv_prog_cxx_g+set}" = set; then
5534   $as_echo_n "(cached) " >&6
5535 else
5536   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5537    ac_cxx_werror_flag=yes
5538    ac_cv_prog_cxx_g=no
5539    CXXFLAGS="-g"
5540    cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546
5547 int
5548 main ()
5549 {
5550
5551   ;
5552   return 0;
5553 }
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (ac_try="$ac_compile"
5557 case "(($ac_try" in
5558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559   *) ac_try_echo=$ac_try;;
5560 esac
5561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5562 $as_echo "$ac_try_echo") >&5
5563   (eval "$ac_compile") 2>conftest.er1
5564   ac_status=$?
5565   grep -v '^ *+' conftest.er1 >conftest.err
5566   rm -f conftest.er1
5567   cat conftest.err >&5
5568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } && {
5570          test -z "$ac_cxx_werror_flag" ||
5571          test ! -s conftest.err
5572        } && test -s conftest.$ac_objext; then
5573   ac_cv_prog_cxx_g=yes
5574 else
5575   $as_echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5577
5578         CXXFLAGS=""
5579       cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h.  */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h.  */
5585
5586 int
5587 main ()
5588 {
5589
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (ac_try="$ac_compile"
5596 case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5601 $as_echo "$ac_try_echo") >&5
5602   (eval "$ac_compile") 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } && {
5609          test -z "$ac_cxx_werror_flag" ||
5610          test ! -s conftest.err
5611        } && test -s conftest.$ac_objext; then
5612   :
5613 else
5614   $as_echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5618          CXXFLAGS="-g"
5619          cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625
5626 int
5627 main ()
5628 {
5629
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5636 case "(($ac_try" in
5637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638   *) ac_try_echo=$ac_try;;
5639 esac
5640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641 $as_echo "$ac_try_echo") >&5
5642   (eval "$ac_compile") 2>conftest.er1
5643   ac_status=$?
5644   grep -v '^ *+' conftest.er1 >conftest.err
5645   rm -f conftest.er1
5646   cat conftest.err >&5
5647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); } && {
5649          test -z "$ac_cxx_werror_flag" ||
5650          test ! -s conftest.err
5651        } && test -s conftest.$ac_objext; then
5652   ac_cv_prog_cxx_g=yes
5653 else
5654   $as_echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657
5658 fi
5659
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 fi
5665
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5668 fi
5669 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5670 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5671 if test "$ac_test_CXXFLAGS" = set; then
5672   CXXFLAGS=$ac_save_CXXFLAGS
5673 elif test $ac_cv_prog_cxx_g = yes; then
5674   if test "$GXX" = yes; then
5675     CXXFLAGS="-g -O2"
5676   else
5677     CXXFLAGS="-g"
5678   fi
5679 else
5680   if test "$GXX" = yes; then
5681     CXXFLAGS="-O2"
5682   else
5683     CXXFLAGS=
5684   fi
5685 fi
5686 ac_ext=cpp
5687 ac_cpp='$CXXCPP $CPPFLAGS'
5688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5691
5692
5693
5694     r="`eval echo '$'"CXX"`"
5695     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5696         true
5697     else
5698         ##STEPMAKE_WARN(cannot find . )
5699         false
5700     fi
5701
5702     if test $? -ne 0; then
5703
5704     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5705
5706         if test "REQUIRED" = "REQUIRED"; then
5707             command="echo ERROR: c++ not found"
5708             # abort configure process here?
5709         else
5710             command="- echo c++ not found"
5711         fi
5712         eval "CXX"='$command'
5713         false
5714     else
5715         true
5716     fi
5717
5718
5719     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5720     LD='$(CXX)'
5721
5722
5723
5724
5725
5726
5727
5728     cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h.  */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h.  */
5734 #ifdef __clang__
5735        yes
5736        #endif
5737
5738 _ACEOF
5739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5740   $EGREP "yes" >/dev/null 2>&1; then
5741   HAS_CLANG=yes
5742 else
5743   HAS_CLANG=no
5744 fi
5745 rm -f conftest*
5746
5747
5748     if test "$HAS_CLANG" = "no"; then
5749         if test "$GXX" = "yes"; then
5750
5751     r="`eval echo '$'"CXX"`"
5752     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5753 $as_echo_n "checking $r version... " >&6; }
5754     exe=`
5755     ## which doesn't work in ash, if /usr/bin/which isn't installed
5756     ## type -p doesn't work in ash
5757     ## command -v doesn't work in zsh
5758     ## command -v "$r" 2>&1
5759     ## this test should work in ash, bash, pdksh (ksh), zsh
5760     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5761 `
5762     if test -n ""; then
5763         ver=""
5764     else
5765         ver=`
5766     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5767     ##
5768     ## ARG.
5769     ## Workaround for broken Debian gcc version string:
5770     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5771     ##
5772     ## -V: Workaround for python
5773
5774     #dnl
5775
5776     ## Assume and hunt for dotted version multiplet.
5777     ## use eval trickery, because we cannot use multi-level $() instead of ``
5778     ## for compatibility reasons.
5779
5780     ## grab the first version number in  --version output.
5781     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5782                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5783                 head -n 1 |
5784                 tr ' ' '\n' |
5785                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5786                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5787                 head -n 1\`\"
5788
5789     if test -z "$_ver"; then
5790         ## If empty, try date [fontforge]
5791         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5792             | head -n 1 \
5793             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5794     fi
5795     echo "$_ver"
5796     #dnl
5797 `
5798     fi
5799     num=`
5800     echo "$ver" | awk -F. '
5801     {
5802       if ($3) {three = $3}
5803       else {three = 0}
5804     }
5805     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5806 `
5807     req=`
5808     echo "3.4" | awk -F. '
5809     {
5810       if ($3) {three = $3}
5811       else {three = 0}
5812     }
5813     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5814 `
5815     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5816 $as_echo "$ver" >&6; }
5817     if test "$num" -lt "$req"; then
5818
5819     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5820
5821     fi
5822     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5823     eval `echo $vervar=$num`
5824 ##    AC_SUBST(`eval echo $vervar`)
5825
5826         else
5827             warn="$CXX (Please install *GNU* c++)"
5828
5829     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5830
5831         fi
5832     fi
5833     # no else, we're fine with any clang
5834
5835
5836     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5837 $as_echo_n "checking options for known g++ bugs... " >&6; }
5838     case "$GXX:$CXX_VERSION" in
5839         yes:400600[0-2])
5840             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5841 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5842             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5843             ;;
5844         yes:400700?)
5845             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5846 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5847             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5848             ;;
5849         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5850 $as_echo "none" >&6; }
5851     esac
5852
5853
5854
5855     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5856 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5857 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5858   $as_echo_n "(cached) " >&6
5859 else
5860   cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866
5867     template <class T> struct foo { static int baz; };
5868     template <class T> int foo<T>::baz = 1;
5869
5870 int
5871 main ()
5872 {
5873  return foo<int>::baz;
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (ac_try="$ac_link"
5880 case "(($ac_try" in
5881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882   *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886   (eval "$ac_link") 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } && {
5893          test -z "$ac_cxx_werror_flag" ||
5894          test ! -s conftest.err
5895        } && test -s conftest$ac_exeext && {
5896          test "$cross_compiling" = yes ||
5897          $as_test_x conftest$ac_exeext
5898        }; then
5899   stepmake_cv_need_explicit_instantiation=no
5900 else
5901   $as_echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904         stepmake_cv_need_explicit_instantiation=yes
5905 fi
5906
5907 rm -rf conftest.dSYM
5908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5909       conftest$ac_exeext conftest.$ac_ext
5910 fi
5911 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5912 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5913     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5914         cat >>confdefs.h <<\_ACEOF
5915 #define NEED_EXPLICIT_INSTANTIATION 1
5916 _ACEOF
5917
5918     fi
5919
5920
5921     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5922 $as_echo_n "checking for stl.data () method... " >&6; }
5923 if test "${stepmake_cv_stl_data_method+set}" = set; then
5924   $as_echo_n "(cached) " >&6
5925 else
5926   cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h.  */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h.  */
5932
5933 #include <vector>
5934 using namespace std;
5935 vector <int> v;
5936 void *p = v.data ();
5937
5938 int
5939 main ()
5940 {
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5953 $as_echo "$ac_try_echo") >&5
5954   (eval "$ac_compile") 2>conftest.er1
5955   ac_status=$?
5956   grep -v '^ *+' conftest.er1 >conftest.err
5957   rm -f conftest.er1
5958   cat conftest.err >&5
5959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } && {
5961          test -z "$ac_cxx_werror_flag" ||
5962          test ! -s conftest.err
5963        } && test -s conftest.$ac_objext; then
5964   stepmake_cv_stl_data_method=yes
5965 else
5966   $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969         stepmake_cv_stl_data_method=no
5970 fi
5971
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 fi
5974 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5975 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5976     if test $stepmake_cv_stl_data_method = yes; then
5977
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_STL_DATA_METHOD 1
5980 _ACEOF
5981
5982     fi
5983
5984
5985
5986     for ac_prog in ar
5987 do
5988   # Extract the first word of "$ac_prog", so it can be a program name with args.
5989 set dummy $ac_prog; ac_word=$2
5990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if test "${ac_cv_prog_AR+set}" = set; then
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if test -n "$AR"; then
5996   ac_cv_prog_AR="$AR" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005     ac_cv_prog_AR="$ac_prog"
6006     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011 IFS=$as_save_IFS
6012
6013 fi
6014 fi
6015 AR=$ac_cv_prog_AR
6016 if test -n "$AR"; then
6017   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6018 $as_echo "$AR" >&6; }
6019 else
6020   { $as_echo "$as_me:$LINENO: result: no" >&5
6021 $as_echo "no" >&6; }
6022 fi
6023
6024
6025   test -n "$AR" && break
6026 done
6027 test -n "$AR" || AR="no"
6028
6029
6030
6031     r="`eval echo '$'"AR"`"
6032     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6033         true
6034     else
6035         ##STEPMAKE_WARN(cannot find . )
6036         false
6037     fi
6038
6039     if test $? -ne 0; then
6040
6041     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6042
6043         if test "REQUIRED" = "REQUIRED"; then
6044             command="echo ERROR: ar not found"
6045             # abort configure process here?
6046         else
6047             command="- echo ar not found"
6048         fi
6049         eval "AR"='$command'
6050         false
6051     else
6052         true
6053     fi
6054
6055     if test $? -eq 0 -a -n ""; then
6056
6057     r="`eval echo '$'"AR"`"
6058     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6059 $as_echo_n "checking $r version... " >&6; }
6060     exe=`
6061     ## which doesn't work in ash, if /usr/bin/which isn't installed
6062     ## type -p doesn't work in ash
6063     ## command -v doesn't work in zsh
6064     ## command -v "$r" 2>&1
6065     ## this test should work in ash, bash, pdksh (ksh), zsh
6066     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6067 `
6068     if test -n ""; then
6069         ver=""
6070     else
6071         ver=`
6072     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6073     ##
6074     ## ARG.
6075     ## Workaround for broken Debian gcc version string:
6076     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6077     ##
6078     ## -V: Workaround for python
6079
6080     #dnl
6081
6082     ## Assume and hunt for dotted version multiplet.
6083     ## use eval trickery, because we cannot use multi-level $() instead of ``
6084     ## for compatibility reasons.
6085
6086     ## grab the first version number in  --version output.
6087     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6088                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6089                 head -n 1 |
6090                 tr ' ' '\n' |
6091                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6092                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6093                 head -n 1\`\"
6094
6095     if test -z "$_ver"; then
6096         ## If empty, try date [fontforge]
6097         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6098             | head -n 1 \
6099             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6100     fi
6101     echo "$_ver"
6102     #dnl
6103 `
6104     fi
6105     num=`
6106     echo "$ver" | awk -F. '
6107     {
6108       if ($3) {three = $3}
6109       else {three = 0}
6110     }
6111     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6112 `
6113     req=`
6114     echo "" | awk -F. '
6115     {
6116       if ($3) {three = $3}
6117       else {three = 0}
6118     }
6119     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6120 `
6121     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6122 $as_echo "$ver" >&6; }
6123     if test "$num" -lt "$req"; then
6124
6125     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6126
6127     fi
6128     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6129     eval `echo $vervar=$num`
6130 ##    AC_SUBST(`eval echo $vervar`)
6131
6132     fi
6133
6134     if test -n "$ac_tool_prefix"; then
6135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_RANLIB+set}" = set; then
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$RANLIB"; then
6143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150   for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6153     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 RANLIB=$ac_cv_prog_RANLIB
6163 if test -n "$RANLIB"; then
6164   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6165 $as_echo "$RANLIB" >&6; }
6166 else
6167   { $as_echo "$as_me:$LINENO: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_RANLIB"; then
6174   ac_ct_RANLIB=$RANLIB
6175   # Extract the first word of "ranlib", so it can be a program name with args.
6176 set dummy ranlib; ac_word=$2
6177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6180   $as_echo_n "(cached) " >&6
6181 else
6182   if test -n "$ac_ct_RANLIB"; then
6183   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_prog_ac_ct_RANLIB="ranlib"
6193     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6203 if test -n "$ac_ct_RANLIB"; then
6204   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6205 $as_echo "$ac_ct_RANLIB" >&6; }
6206 else
6207   { $as_echo "$as_me:$LINENO: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211   if test "x$ac_ct_RANLIB" = x; then
6212     RANLIB=":"
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220     RANLIB=$ac_ct_RANLIB
6221   fi
6222 else
6223   RANLIB="$ac_cv_prog_RANLIB"
6224 fi
6225
6226
6227
6228     r="`eval echo '$'"RANLIB"`"
6229     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6230         true
6231     else
6232         ##STEPMAKE_WARN(cannot find . )
6233         false
6234     fi
6235
6236     if test $? -ne 0; then
6237
6238     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6239
6240         if test "REQUIRED" = "REQUIRED"; then
6241             command="echo ERROR: ranlib not found"
6242             # abort configure process here?
6243         else
6244             command="- echo ranlib not found"
6245         fi
6246         eval "RANLIB"='$command'
6247         false
6248     else
6249         true
6250     fi
6251
6252
6253
6254
6255 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6256 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6258   $as_echo_n "(cached) " >&6
6259 else
6260   ac_check_lib_save_LIBS=$LIBS
6261 LIBS="-ldl  $LIBS"
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268
6269 /* Override any GCC internal prototype to avoid an error.
6270    Use char because int might match the return type of a GCC
6271    builtin and then its argument prototype would still apply.  */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 char dlopen ();
6276 int
6277 main ()
6278 {
6279 return dlopen ();
6280   ;
6281   return 0;
6282 }
6283 _ACEOF
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (ac_try="$ac_link"
6286 case "(($ac_try" in
6287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288   *) ac_try_echo=$ac_try;;
6289 esac
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292   (eval "$ac_link") 2>conftest.er1
6293   ac_status=$?
6294   grep -v '^ *+' conftest.er1 >conftest.err
6295   rm -f conftest.er1
6296   cat conftest.err >&5
6297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); } && {
6299          test -z "$ac_cxx_werror_flag" ||
6300          test ! -s conftest.err
6301        } && test -s conftest$ac_exeext && {
6302          test "$cross_compiling" = yes ||
6303          $as_test_x conftest$ac_exeext
6304        }; then
6305   ac_cv_lib_dl_dlopen=yes
6306 else
6307   $as_echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6309
6310         ac_cv_lib_dl_dlopen=no
6311 fi
6312
6313 rm -rf conftest.dSYM
6314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6315       conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_check_lib_save_LIBS
6317 fi
6318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6320 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6321   cat >>confdefs.h <<_ACEOF
6322 #define HAVE_LIBDL 1
6323 _ACEOF
6324
6325   LIBS="-ldl $LIBS"
6326
6327 fi
6328
6329
6330 for ac_func in dlopen
6331 do
6332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6334 $as_echo_n "checking for $ac_func... " >&6; }
6335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6336   $as_echo_n "(cached) " >&6
6337 else
6338   cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6346 #define $ac_func innocuous_$ac_func
6347
6348 /* System header to define __stub macros and hopefully few prototypes,
6349     which can conflict with char $ac_func (); below.
6350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6351     <limits.h> exists even on freestanding compilers.  */
6352
6353 #ifdef __STDC__
6354 # include <limits.h>
6355 #else
6356 # include <assert.h>
6357 #endif
6358
6359 #undef $ac_func
6360
6361 /* Override any GCC internal prototype to avoid an error.
6362    Use char because int might match the return type of a GCC
6363    builtin and then its argument prototype would still apply.  */
6364 #ifdef __cplusplus
6365 extern "C"
6366 #endif
6367 char $ac_func ();
6368 /* The GNU C library defines this for functions which it implements
6369     to always fail with ENOSYS.  Some functions are actually named
6370     something starting with __ and the normal name is an alias.  */
6371 #if defined __stub_$ac_func || defined __stub___$ac_func
6372 choke me
6373 #endif
6374
6375 int
6376 main ()
6377 {
6378 return $ac_func ();
6379   ;
6380   return 0;
6381 }
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (ac_try="$ac_link"
6385 case "(($ac_try" in
6386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387   *) ac_try_echo=$ac_try;;
6388 esac
6389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390 $as_echo "$ac_try_echo") >&5
6391   (eval "$ac_link") 2>conftest.er1
6392   ac_status=$?
6393   grep -v '^ *+' conftest.er1 >conftest.err
6394   rm -f conftest.er1
6395   cat conftest.err >&5
6396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } && {
6398          test -z "$ac_cxx_werror_flag" ||
6399          test ! -s conftest.err
6400        } && test -s conftest$ac_exeext && {
6401          test "$cross_compiling" = yes ||
6402          $as_test_x conftest$ac_exeext
6403        }; then
6404   eval "$as_ac_var=yes"
6405 else
6406   $as_echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409         eval "$as_ac_var=no"
6410 fi
6411
6412 rm -rf conftest.dSYM
6413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414       conftest$ac_exeext conftest.$ac_ext
6415 fi
6416 ac_res=`eval 'as_val=${'$as_ac_var'}
6417                  $as_echo "$as_val"'`
6418                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6419 $as_echo "$ac_res" >&6; }
6420 as_val=`eval 'as_val=${'$as_ac_var'}
6421                  $as_echo "$as_val"'`
6422    if test "x$as_val" = x""yes; then
6423   cat >>confdefs.h <<_ACEOF
6424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6425 _ACEOF
6426
6427 fi
6428 done
6429
6430
6431 # Do not use bison 1.50 and 1.75.
6432 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6433
6434     # ugh, automake: we want (and check for) bison
6435     for ac_prog in 'bison -y' byacc
6436 do
6437   # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy $ac_prog; ac_word=$2
6439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_YACC+set}" = set; then
6442   $as_echo_n "(cached) " >&6
6443 else
6444   if test -n "$YACC"; then
6445   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452   for ac_exec_ext in '' $ac_executable_extensions; do
6453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454     ac_cv_prog_YACC="$ac_prog"
6455     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 fi
6463 fi
6464 YACC=$ac_cv_prog_YACC
6465 if test -n "$YACC"; then
6466   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6467 $as_echo "$YACC" >&6; }
6468 else
6469   { $as_echo "$as_me:$LINENO: result: no" >&5
6470 $as_echo "no" >&6; }
6471 fi
6472
6473
6474   test -n "$YACC" && break
6475 done
6476 test -n "$YACC" || YACC="yacc"
6477
6478
6479
6480     for ac_prog in bison
6481 do
6482   # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_BISON+set}" = set; then
6487   $as_echo_n "(cached) " >&6
6488 else
6489   if test -n "$BISON"; then
6490   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497   for ac_exec_ext in '' $ac_executable_extensions; do
6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499     ac_cv_prog_BISON="$ac_prog"
6500     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 BISON=$ac_cv_prog_BISON
6510 if test -n "$BISON"; then
6511   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6512 $as_echo "$BISON" >&6; }
6513 else
6514   { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519   test -n "$BISON" && break
6520 done
6521 test -n "$BISON" || BISON="no"
6522
6523
6524
6525     r="`eval echo '$'"BISON"`"
6526     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6527         true
6528     else
6529         ##STEPMAKE_WARN(cannot find . )
6530         false
6531     fi
6532
6533     if test $? -ne 0; then
6534
6535     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6536
6537         if test "REQUIRED" = "REQUIRED"; then
6538             command="echo ERROR: bison not found"
6539             # abort configure process here?
6540         else
6541             command="- echo bison not found"
6542         fi
6543         eval "BISON"='$command'
6544         false
6545     else
6546         true
6547     fi
6548
6549     if test $? -eq 0 -a -n ""; then
6550
6551     r="`eval echo '$'"BISON"`"
6552     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6553 $as_echo_n "checking $r version... " >&6; }
6554     exe=`
6555     ## which doesn't work in ash, if /usr/bin/which isn't installed
6556     ## type -p doesn't work in ash
6557     ## command -v doesn't work in zsh
6558     ## command -v "$r" 2>&1
6559     ## this test should work in ash, bash, pdksh (ksh), zsh
6560     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6561 `
6562     if test -n ""; then
6563         ver=""
6564     else
6565         ver=`
6566     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6567     ##
6568     ## ARG.
6569     ## Workaround for broken Debian gcc version string:
6570     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6571     ##
6572     ## -V: Workaround for python
6573
6574     #dnl
6575
6576     ## Assume and hunt for dotted version multiplet.
6577     ## use eval trickery, because we cannot use multi-level $() instead of ``
6578     ## for compatibility reasons.
6579
6580     ## grab the first version number in  --version output.
6581     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6582                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6583                 head -n 1 |
6584                 tr ' ' '\n' |
6585                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6586                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6587                 head -n 1\`\"
6588
6589     if test -z "$_ver"; then
6590         ## If empty, try date [fontforge]
6591         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6592             | head -n 1 \
6593             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6594     fi
6595     echo "$_ver"
6596     #dnl
6597 `
6598     fi
6599     num=`
6600     echo "$ver" | awk -F. '
6601     {
6602       if ($3) {three = $3}
6603       else {three = 0}
6604     }
6605     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6606 `
6607     req=`
6608     echo "" | awk -F. '
6609     {
6610       if ($3) {three = $3}
6611       else {three = 0}
6612     }
6613     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6614 `
6615     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6616 $as_echo "$ver" >&6; }
6617     if test "$num" -lt "$req"; then
6618
6619     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6620
6621     fi
6622     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6623     eval `echo $vervar=$num`
6624 ##    AC_SUBST(`eval echo $vervar`)
6625
6626     fi
6627
6628
6629     # urg.  should test functionality rather than version.
6630     if test "$BISON" = "bison" -a -n "1.29"; then
6631
6632     r="`eval echo '$'"BISON"`"
6633     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6634 $as_echo_n "checking $r version... " >&6; }
6635     exe=`
6636     ## which doesn't work in ash, if /usr/bin/which isn't installed
6637     ## type -p doesn't work in ash
6638     ## command -v doesn't work in zsh
6639     ## command -v "$r" 2>&1
6640     ## this test should work in ash, bash, pdksh (ksh), zsh
6641     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6642 `
6643     if test -n ""; then
6644         ver=""
6645     else
6646         ver=`
6647     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6648     ##
6649     ## ARG.
6650     ## Workaround for broken Debian gcc version string:
6651     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6652     ##
6653     ## -V: Workaround for python
6654
6655     #dnl
6656
6657     ## Assume and hunt for dotted version multiplet.
6658     ## use eval trickery, because we cannot use multi-level $() instead of ``
6659     ## for compatibility reasons.
6660
6661     ## grab the first version number in  --version output.
6662     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6663                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6664                 head -n 1 |
6665                 tr ' ' '\n' |
6666                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6667                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6668                 head -n 1\`\"
6669
6670     if test -z "$_ver"; then
6671         ## If empty, try date [fontforge]
6672         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6673             | head -n 1 \
6674             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6675     fi
6676     echo "$_ver"
6677     #dnl
6678 `
6679     fi
6680     num=`
6681     echo "$ver" | awk -F. '
6682     {
6683       if ($3) {three = $3}
6684       else {three = 0}
6685     }
6686     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6687 `
6688     req=`
6689     echo "1.29" | awk -F. '
6690     {
6691       if ($3) {three = $3}
6692       else {three = 0}
6693     }
6694     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6695 `
6696     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6697 $as_echo "$ver" >&6; }
6698     if test "$num" -lt "$req"; then
6699
6700     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6701
6702     fi
6703     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6704     eval `echo $vervar=$num`
6705 ##    AC_SUBST(`eval echo $vervar`)
6706
6707     fi
6708
6709
6710     # ugh, automake: we want (and check for) flex
6711     # AC_PROG_LEX
6712     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6713
6714     # AC_PROG_LEX()
6715     # ugh, ugh
6716     ac_cv_prog_lex_root=lex.yy
6717
6718     for ac_prog in flex
6719 do
6720   # Extract the first word of "$ac_prog", so it can be a program name with args.
6721 set dummy $ac_prog; ac_word=$2
6722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_FLEX+set}" = set; then
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$FLEX"; then
6728   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_FLEX="$ac_prog"
6738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 FLEX=$ac_cv_prog_FLEX
6748 if test -n "$FLEX"; then
6749   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6750 $as_echo "$FLEX" >&6; }
6751 else
6752   { $as_echo "$as_me:$LINENO: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756
6757   test -n "$FLEX" && break
6758 done
6759 test -n "$FLEX" || FLEX="no"
6760
6761
6762
6763     r="`eval echo '$'"FLEX"`"
6764     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6765         true
6766     else
6767         ##STEPMAKE_WARN(cannot find . )
6768         false
6769     fi
6770
6771     if test $? -ne 0; then
6772
6773     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6774
6775         if test "REQUIRED" = "REQUIRED"; then
6776             command="echo ERROR: flex not found"
6777             # abort configure process here?
6778         else
6779             command="- echo flex not found"
6780         fi
6781         eval "FLEX"='$command'
6782         false
6783     else
6784         true
6785     fi
6786
6787     if test $? -eq 0 -a -n ""; then
6788
6789     r="`eval echo '$'"FLEX"`"
6790     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6791 $as_echo_n "checking $r version... " >&6; }
6792     exe=`
6793     ## which doesn't work in ash, if /usr/bin/which isn't installed
6794     ## type -p doesn't work in ash
6795     ## command -v doesn't work in zsh
6796     ## command -v "$r" 2>&1
6797     ## this test should work in ash, bash, pdksh (ksh), zsh
6798     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6799 `
6800     if test -n ""; then
6801         ver=""
6802     else
6803         ver=`
6804     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6805     ##
6806     ## ARG.
6807     ## Workaround for broken Debian gcc version string:
6808     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6809     ##
6810     ## -V: Workaround for python
6811
6812     #dnl
6813
6814     ## Assume and hunt for dotted version multiplet.
6815     ## use eval trickery, because we cannot use multi-level $() instead of ``
6816     ## for compatibility reasons.
6817
6818     ## grab the first version number in  --version output.
6819     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6820                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6821                 head -n 1 |
6822                 tr ' ' '\n' |
6823                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6824                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6825                 head -n 1\`\"
6826
6827     if test -z "$_ver"; then
6828         ## If empty, try date [fontforge]
6829         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6830             | head -n 1 \
6831             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6832     fi
6833     echo "$_ver"
6834     #dnl
6835 `
6836     fi
6837     num=`
6838     echo "$ver" | awk -F. '
6839     {
6840       if ($3) {three = $3}
6841       else {three = 0}
6842     }
6843     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6844 `
6845     req=`
6846     echo "" | awk -F. '
6847     {
6848       if ($3) {three = $3}
6849       else {three = 0}
6850     }
6851     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6852 `
6853     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6854 $as_echo "$ver" >&6; }
6855     if test "$num" -lt "$req"; then
6856
6857     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6858
6859     fi
6860     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6861     eval `echo $vervar=$num`
6862 ##    AC_SUBST(`eval echo $vervar`)
6863
6864     fi
6865
6866
6867 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6868 $as_echo_n "checking for ANSI C header files... " >&6; }
6869 if test "${ac_cv_header_stdc+set}" = set; then
6870   $as_echo_n "(cached) " >&6
6871 else
6872   cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #include <stdlib.h>
6879 #include <stdarg.h>
6880 #include <string.h>
6881 #include <float.h>
6882
6883 int
6884 main ()
6885 {
6886
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6893 case "(($ac_try" in
6894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895   *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899   (eval "$ac_compile") 2>conftest.er1
6900   ac_status=$?
6901   grep -v '^ *+' conftest.er1 >conftest.err
6902   rm -f conftest.er1
6903   cat conftest.err >&5
6904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } && {
6906          test -z "$ac_cxx_werror_flag" ||
6907          test ! -s conftest.err
6908        } && test -s conftest.$ac_objext; then
6909   ac_cv_header_stdc=yes
6910 else
6911   $as_echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6913
6914         ac_cv_header_stdc=no
6915 fi
6916
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918
6919 if test $ac_cv_header_stdc = yes; then
6920   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6921   cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927 #include <string.h>
6928
6929 _ACEOF
6930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6931   $EGREP "memchr" >/dev/null 2>&1; then
6932   :
6933 else
6934   ac_cv_header_stdc=no
6935 fi
6936 rm -f conftest*
6937
6938 fi
6939
6940 if test $ac_cv_header_stdc = yes; then
6941   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6942   cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948 #include <stdlib.h>
6949
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952   $EGREP "free" >/dev/null 2>&1; then
6953   :
6954 else
6955   ac_cv_header_stdc=no
6956 fi
6957 rm -f conftest*
6958
6959 fi
6960
6961 if test $ac_cv_header_stdc = yes; then
6962   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6963   if test "$cross_compiling" = yes; then
6964   :
6965 else
6966   cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h.  */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h.  */
6972 #include <ctype.h>
6973 #include <stdlib.h>
6974 #if ((' ' & 0x0FF) == 0x020)
6975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6977 #else
6978 # define ISLOWER(c) \
6979                    (('a' <= (c) && (c) <= 'i') \
6980                      || ('j' <= (c) && (c) <= 'r') \
6981                      || ('s' <= (c) && (c) <= 'z'))
6982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6983 #endif
6984
6985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6986 int
6987 main ()
6988 {
6989   int i;
6990   for (i = 0; i < 256; i++)
6991     if (XOR (islower (i), ISLOWER (i))
6992         || toupper (i) != TOUPPER (i))
6993       return 2;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest$ac_exeext
6998 if { (ac_try="$ac_link"
6999 case "(($ac_try" in
7000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001   *) ac_try_echo=$ac_try;;
7002 esac
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005   (eval "$ac_link") 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7009   { (case "(($ac_try" in
7010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011   *) ac_try_echo=$ac_try;;
7012 esac
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015   (eval "$ac_try") 2>&5
7016   ac_status=$?
7017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   :
7020 else
7021   $as_echo "$as_me: program exited with status $ac_status" >&5
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 ( exit $ac_status )
7026 ac_cv_header_stdc=no
7027 fi
7028 rm -rf conftest.dSYM
7029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7030 fi
7031
7032
7033 fi
7034 fi
7035 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7036 $as_echo "$ac_cv_header_stdc" >&6; }
7037 if test $ac_cv_header_stdc = yes; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define STDC_HEADERS 1
7041 _ACEOF
7042
7043 fi
7044
7045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7056                   inttypes.h stdint.h unistd.h
7057 do
7058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 $as_echo_n "checking for $ac_header... " >&6; }
7061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7062   $as_echo_n "(cached) " >&6
7063 else
7064   cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h.  */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h.  */
7070 $ac_includes_default
7071
7072 #include <$ac_header>
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7076 case "(($ac_try" in
7077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078   *) ac_try_echo=$ac_try;;
7079 esac
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082   (eval "$ac_compile") 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
7086   cat conftest.err >&5
7087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } && {
7089          test -z "$ac_cxx_werror_flag" ||
7090          test ! -s conftest.err
7091        } && test -s conftest.$ac_objext; then
7092   eval "$as_ac_Header=yes"
7093 else
7094   $as_echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7096
7097         eval "$as_ac_Header=no"
7098 fi
7099
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 ac_res=`eval 'as_val=${'$as_ac_Header'}
7103                  $as_echo "$as_val"'`
7104                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7105 $as_echo "$ac_res" >&6; }
7106 as_val=`eval 'as_val=${'$as_ac_Header'}
7107                  $as_echo "$as_val"'`
7108    if test "x$as_val" = x""yes; then
7109   cat >>confdefs.h <<_ACEOF
7110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111 _ACEOF
7112
7113 fi
7114
7115 done
7116
7117
7118
7119
7120 for ac_header in FlexLexer.h
7121 do
7122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7124   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7125 $as_echo_n "checking for $ac_header... " >&6; }
7126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7127   $as_echo_n "(cached) " >&6
7128 fi
7129 ac_res=`eval 'as_val=${'$as_ac_Header'}
7130                  $as_echo "$as_val"'`
7131                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7132 $as_echo "$ac_res" >&6; }
7133 else
7134   # Is the header compilable?
7135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 $as_echo_n "checking $ac_header usability... " >&6; }
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143 $ac_includes_default
7144 #include <$ac_header>
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7148 case "(($ac_try" in
7149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150   *) ac_try_echo=$ac_try;;
7151 esac
7152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7153 $as_echo "$ac_try_echo") >&5
7154   (eval "$ac_compile") 2>conftest.er1
7155   ac_status=$?
7156   grep -v '^ *+' conftest.er1 >conftest.err
7157   rm -f conftest.er1
7158   cat conftest.err >&5
7159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); } && {
7161          test -z "$ac_cxx_werror_flag" ||
7162          test ! -s conftest.err
7163        } && test -s conftest.$ac_objext; then
7164   ac_header_compiler=yes
7165 else
7166   $as_echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7168
7169         ac_header_compiler=no
7170 fi
7171
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7174 $as_echo "$ac_header_compiler" >&6; }
7175
7176 # Is the header present?
7177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7178 $as_echo_n "checking $ac_header presence... " >&6; }
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h.  */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h.  */
7185 #include <$ac_header>
7186 _ACEOF
7187 if { (ac_try="$ac_cpp conftest.$ac_ext"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193 $as_echo "$ac_try_echo") >&5
7194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7195   ac_status=$?
7196   grep -v '^ *+' conftest.er1 >conftest.err
7197   rm -f conftest.er1
7198   cat conftest.err >&5
7199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); } >/dev/null && {
7201          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7202          test ! -s conftest.err
7203        }; then
7204   ac_header_preproc=yes
7205 else
7206   $as_echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209   ac_header_preproc=no
7210 fi
7211
7212 rm -f conftest.err conftest.$ac_ext
7213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7214 $as_echo "$ac_header_preproc" >&6; }
7215
7216 # So?  What about this header?
7217 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7218   yes:no: )
7219     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7223     ac_header_preproc=yes
7224     ;;
7225   no:yes:* )
7226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7229 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7233 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7238
7239     ;;
7240 esac
7241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7242 $as_echo_n "checking for $ac_header... " >&6; }
7243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7244   $as_echo_n "(cached) " >&6
7245 else
7246   eval "$as_ac_Header=\$ac_header_preproc"
7247 fi
7248 ac_res=`eval 'as_val=${'$as_ac_Header'}
7249                  $as_echo "$as_val"'`
7250                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7252
7253 fi
7254 as_val=`eval 'as_val=${'$as_ac_Header'}
7255                  $as_echo "$as_val"'`
7256    if test "x$as_val" = x""yes; then
7257   cat >>confdefs.h <<_ACEOF
7258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259 _ACEOF
7260  true
7261 else
7262   false
7263 fi
7264
7265 done
7266
7267     if test $? -ne 0; then
7268         warn='FlexLexer.h (flex package)'
7269
7270     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7271
7272     fi
7273     # check for yyFlexLexer.yy_current_buffer,
7274     # in 2.5.4 <= flex < 2.5.29
7275     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7276 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7277 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7278   $as_echo_n "(cached) " >&6
7279 else
7280   cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h.  */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h.  */
7286
7287 using namespace std;
7288 #include <FlexLexer.h>
7289 class yy_flex_lexer: public yyFlexLexer
7290 {
7291   public:
7292     yy_flex_lexer ()
7293     {
7294       yy_current_buffer = 0;
7295     }
7296 };
7297
7298 int
7299 main ()
7300 {
7301
7302   ;
7303   return 0;
7304 }
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (ac_try="$ac_compile"
7308 case "(($ac_try" in
7309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310   *) ac_try_echo=$ac_try;;
7311 esac
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } && {
7321          test -z "$ac_cxx_werror_flag" ||
7322          test ! -s conftest.err
7323        } && test -s conftest.$ac_objext; then
7324   stepmake_cv_flexlexer_yy_current_buffer=yes
7325 else
7326   $as_echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329         stepmake_cv_flexlexer_yy_current_buffer=no
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7335 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7336     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7340 _ACEOF
7341
7342     fi
7343
7344
7345         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7346 $as_echo_n "checking FlexLexer.h location... " >&6; }
7347
7348         # ugh.
7349         cat <<EOF > conftest.cc
7350 using namespace std;
7351 #include <FlexLexer.h>
7352 EOF
7353         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7354           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7355           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7356         rm conftest.cc
7357
7358         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7359 $as_echo "$FLEXLEXER_FILE" >&6; }
7360
7361
7362     lang=English
7363     ALL_LINGUAS="en nl"
7364
7365     # with/enable ??
7366
7367 # Check whether --with-localedir was given.
7368 if test "${with_localedir+set}" = set; then
7369   withval=$with_localedir; localedir=$with_localedir
7370 else
7371   localedir='${prefix}/share/locale'
7372 fi
7373
7374
7375
7376 # Check whether --with-lang was given.
7377 if test "${with_lang+set}" = set; then
7378   withval=$with_lang; language=$with_lang
7379 else
7380   language=English
7381 fi
7382
7383
7384     { $as_echo "$as_me:$LINENO: checking language" >&5
7385 $as_echo_n "checking language... " >&6; }
7386     case "$language" in
7387       En* | en* | Am* | am* | US* | us*)
7388             lang=English;;
7389       NL | nl | Du* | du* | Ned* | ned*)
7390             lang=Dutch;;
7391       "")
7392             lang=English;;
7393       *)
7394             lang=unknown;;
7395     esac
7396     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7397 $as_echo "$lang" >&6; }
7398
7399     if test "$lang" = "unknown" ; then
7400
7401     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7402 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7403     warn_b=yes
7404
7405     fi
7406
7407
7408
7409     presome=${prefix}
7410     if test "$prefix" = "NONE"; then
7411             presome=${ac_default_prefix}
7412     fi
7413     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7414
7415
7416     cat >>confdefs.h <<_ACEOF
7417 #define LOCALEDIR "${LOCALEDIR}"
7418 _ACEOF
7419
7420
7421 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7422 $as_echo_n "checking for gettext in -lintl... " >&6; }
7423 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7424   $as_echo_n "(cached) " >&6
7425 else
7426   ac_check_lib_save_LIBS=$LIBS
7427 LIBS="-lintl  $LIBS"
7428 cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h.  */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h.  */
7434
7435 /* Override any GCC internal prototype to avoid an error.
7436    Use char because int might match the return type of a GCC
7437    builtin and then its argument prototype would still apply.  */
7438 #ifdef __cplusplus
7439 extern "C"
7440 #endif
7441 char gettext ();
7442 int
7443 main ()
7444 {
7445 return gettext ();
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (ac_try="$ac_link"
7452 case "(($ac_try" in
7453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454   *) ac_try_echo=$ac_try;;
7455 esac
7456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7457 $as_echo "$ac_try_echo") >&5
7458   (eval "$ac_link") 2>conftest.er1
7459   ac_status=$?
7460   grep -v '^ *+' conftest.er1 >conftest.err
7461   rm -f conftest.er1
7462   cat conftest.err >&5
7463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); } && {
7465          test -z "$ac_cxx_werror_flag" ||
7466          test ! -s conftest.err
7467        } && test -s conftest$ac_exeext && {
7468          test "$cross_compiling" = yes ||
7469          $as_test_x conftest$ac_exeext
7470        }; then
7471   ac_cv_lib_intl_gettext=yes
7472 else
7473   $as_echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476         ac_cv_lib_intl_gettext=no
7477 fi
7478
7479 rm -rf conftest.dSYM
7480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7481       conftest$ac_exeext conftest.$ac_ext
7482 LIBS=$ac_check_lib_save_LIBS
7483 fi
7484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7485 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7486 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7487   cat >>confdefs.h <<_ACEOF
7488 #define HAVE_LIBINTL 1
7489 _ACEOF
7490
7491   LIBS="-lintl $LIBS"
7492
7493 fi
7494
7495
7496 for ac_func in gettext
7497 do
7498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7499 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7500 $as_echo_n "checking for $ac_func... " >&6; }
7501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7502   $as_echo_n "(cached) " >&6
7503 else
7504   cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7512 #define $ac_func innocuous_$ac_func
7513
7514 /* System header to define __stub macros and hopefully few prototypes,
7515     which can conflict with char $ac_func (); below.
7516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517     <limits.h> exists even on freestanding compilers.  */
7518
7519 #ifdef __STDC__
7520 # include <limits.h>
7521 #else
7522 # include <assert.h>
7523 #endif
7524
7525 #undef $ac_func
7526
7527 /* Override any GCC internal prototype to avoid an error.
7528    Use char because int might match the return type of a GCC
7529    builtin and then its argument prototype would still apply.  */
7530 #ifdef __cplusplus
7531 extern "C"
7532 #endif
7533 char $ac_func ();
7534 /* The GNU C library defines this for functions which it implements
7535     to always fail with ENOSYS.  Some functions are actually named
7536     something starting with __ and the normal name is an alias.  */
7537 #if defined __stub_$ac_func || defined __stub___$ac_func
7538 choke me
7539 #endif
7540
7541 int
7542 main ()
7543 {
7544 return $ac_func ();
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7551 case "(($ac_try" in
7552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553   *) ac_try_echo=$ac_try;;
7554 esac
7555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7556 $as_echo "$ac_try_echo") >&5
7557   (eval "$ac_link") 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } && {
7564          test -z "$ac_cxx_werror_flag" ||
7565          test ! -s conftest.err
7566        } && test -s conftest$ac_exeext && {
7567          test "$cross_compiling" = yes ||
7568          $as_test_x conftest$ac_exeext
7569        }; then
7570   eval "$as_ac_var=yes"
7571 else
7572   $as_echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575         eval "$as_ac_var=no"
7576 fi
7577
7578 rm -rf conftest.dSYM
7579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7580       conftest$ac_exeext conftest.$ac_ext
7581 fi
7582 ac_res=`eval 'as_val=${'$as_ac_var'}
7583                  $as_echo "$as_val"'`
7584                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7585 $as_echo "$ac_res" >&6; }
7586 as_val=`eval 'as_val=${'$as_ac_var'}
7587                  $as_echo "$as_val"'`
7588    if test "x$as_val" = x""yes; then
7589   cat >>confdefs.h <<_ACEOF
7590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7591 _ACEOF
7592
7593 fi
7594 done
7595
7596
7597
7598
7599     for ac_prog in msgfmt
7600 do
7601   # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7606   $as_echo_n "(cached) " >&6
7607 else
7608   if test -n "$MSGFMT"; then
7609   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616   for ac_exec_ext in '' $ac_executable_extensions; do
7617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618     ac_cv_prog_MSGFMT="$ac_prog"
7619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 MSGFMT=$ac_cv_prog_MSGFMT
7629 if test -n "$MSGFMT"; then
7630   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7631 $as_echo "$MSGFMT" >&6; }
7632 else
7633   { $as_echo "$as_me:$LINENO: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638   test -n "$MSGFMT" && break
7639 done
7640 test -n "$MSGFMT" || MSGFMT="no"
7641
7642
7643
7644     r="`eval echo '$'"MSGFMT"`"
7645     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7646         true
7647     else
7648         ##STEPMAKE_WARN(cannot find . )
7649         false
7650     fi
7651
7652     if test $? -ne 0; then
7653
7654     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7655
7656         if test "REQUIRED" = "REQUIRED"; then
7657             command="echo ERROR: msgfmt not found"
7658             # abort configure process here?
7659         else
7660             command="- echo msgfmt not found"
7661         fi
7662         eval "MSGFMT"='$command'
7663         false
7664     else
7665         true
7666     fi
7667
7668     if test $? -eq 0 -a -n ""; then
7669
7670     r="`eval echo '$'"MSGFMT"`"
7671     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7672 $as_echo_n "checking $r version... " >&6; }
7673     exe=`
7674     ## which doesn't work in ash, if /usr/bin/which isn't installed
7675     ## type -p doesn't work in ash
7676     ## command -v doesn't work in zsh
7677     ## command -v "$r" 2>&1
7678     ## this test should work in ash, bash, pdksh (ksh), zsh
7679     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7680 `
7681     if test -n ""; then
7682         ver=""
7683     else
7684         ver=`
7685     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7686     ##
7687     ## ARG.
7688     ## Workaround for broken Debian gcc version string:
7689     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7690     ##
7691     ## -V: Workaround for python
7692
7693     #dnl
7694
7695     ## Assume and hunt for dotted version multiplet.
7696     ## use eval trickery, because we cannot use multi-level $() instead of ``
7697     ## for compatibility reasons.
7698
7699     ## grab the first version number in  --version output.
7700     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7701                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7702                 head -n 1 |
7703                 tr ' ' '\n' |
7704                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7705                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7706                 head -n 1\`\"
7707
7708     if test -z "$_ver"; then
7709         ## If empty, try date [fontforge]
7710         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7711             | head -n 1 \
7712             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7713     fi
7714     echo "$_ver"
7715     #dnl
7716 `
7717     fi
7718     num=`
7719     echo "$ver" | awk -F. '
7720     {
7721       if ($3) {three = $3}
7722       else {three = 0}
7723     }
7724     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7725 `
7726     req=`
7727     echo "" | awk -F. '
7728     {
7729       if ($3) {three = $3}
7730       else {three = 0}
7731     }
7732     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7733 `
7734     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7735 $as_echo "$ver" >&6; }
7736     if test "$num" -lt "$req"; then
7737
7738     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7739
7740     fi
7741     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7742     eval `echo $vervar=$num`
7743 ##    AC_SUBST(`eval echo $vervar`)
7744
7745     fi
7746
7747
7748
7749
7750     for ac_prog in mf-nowin mf mfw mfont
7751 do
7752   # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_METAFONT+set}" = set; then
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$METAFONT"; then
7760   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_prog_METAFONT="$ac_prog"
7770     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 METAFONT=$ac_cv_prog_METAFONT
7780 if test -n "$METAFONT"; then
7781   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7782 $as_echo "$METAFONT" >&6; }
7783 else
7784   { $as_echo "$as_me:$LINENO: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789   test -n "$METAFONT" && break
7790 done
7791 test -n "$METAFONT" || METAFONT="no"
7792
7793
7794
7795     r="`eval echo '$'"METAFONT"`"
7796     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7797         true
7798     else
7799         ##STEPMAKE_WARN(cannot find . )
7800         false
7801     fi
7802
7803     if test $? -ne 0; then
7804
7805     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7806
7807         if test "REQUIRED" = "REQUIRED"; then
7808             command="echo ERROR: mf-nowin mf mfw mfont not found"
7809             # abort configure process here?
7810         else
7811             command="- echo mf-nowin mf mfw mfont not found"
7812         fi
7813         eval "METAFONT"='$command'
7814         false
7815     else
7816         true
7817     fi
7818
7819     if test $? -eq 0 -a -n ""; then
7820
7821     r="`eval echo '$'"METAFONT"`"
7822     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7823 $as_echo_n "checking $r version... " >&6; }
7824     exe=`
7825     ## which doesn't work in ash, if /usr/bin/which isn't installed
7826     ## type -p doesn't work in ash
7827     ## command -v doesn't work in zsh
7828     ## command -v "$r" 2>&1
7829     ## this test should work in ash, bash, pdksh (ksh), zsh
7830     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7831 `
7832     if test -n ""; then
7833         ver=""
7834     else
7835         ver=`
7836     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7837     ##
7838     ## ARG.
7839     ## Workaround for broken Debian gcc version string:
7840     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7841     ##
7842     ## -V: Workaround for python
7843
7844     #dnl
7845
7846     ## Assume and hunt for dotted version multiplet.
7847     ## use eval trickery, because we cannot use multi-level $() instead of ``
7848     ## for compatibility reasons.
7849
7850     ## grab the first version number in  --version output.
7851     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7852                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7853                 head -n 1 |
7854                 tr ' ' '\n' |
7855                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7856                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7857                 head -n 1\`\"
7858
7859     if test -z "$_ver"; then
7860         ## If empty, try date [fontforge]
7861         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7862             | head -n 1 \
7863             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7864     fi
7865     echo "$_ver"
7866     #dnl
7867 `
7868     fi
7869     num=`
7870     echo "$ver" | awk -F. '
7871     {
7872       if ($3) {three = $3}
7873       else {three = 0}
7874     }
7875     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7876 `
7877     req=`
7878     echo "" | awk -F. '
7879     {
7880       if ($3) {three = $3}
7881       else {three = 0}
7882     }
7883     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7884 `
7885     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7886 $as_echo "$ver" >&6; }
7887     if test "$num" -lt "$req"; then
7888
7889     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7890
7891     fi
7892     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7893     eval `echo $vervar=$num`
7894 ##    AC_SUBST(`eval echo $vervar`)
7895
7896     fi
7897
7898
7899     for ac_prog in mpost
7900 do
7901   # Extract the first word of "$ac_prog", so it can be a program name with args.
7902 set dummy $ac_prog; ac_word=$2
7903 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if test "${ac_cv_prog_METAPOST+set}" = set; then
7906   $as_echo_n "(cached) " >&6
7907 else
7908   if test -n "$METAPOST"; then
7909   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916   for ac_exec_ext in '' $ac_executable_extensions; do
7917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918     ac_cv_prog_METAPOST="$ac_prog"
7919     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 METAPOST=$ac_cv_prog_METAPOST
7929 if test -n "$METAPOST"; then
7930   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7931 $as_echo "$METAPOST" >&6; }
7932 else
7933   { $as_echo "$as_me:$LINENO: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938   test -n "$METAPOST" && break
7939 done
7940 test -n "$METAPOST" || METAPOST="no"
7941
7942
7943
7944     r="`eval echo '$'"METAPOST"`"
7945     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7946         true
7947     else
7948         ##STEPMAKE_WARN(cannot find . )
7949         false
7950     fi
7951
7952     if test $? -ne 0; then
7953
7954     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7955
7956         if test "REQUIRED" = "REQUIRED"; then
7957             command="echo ERROR: mpost not found"
7958             # abort configure process here?
7959         else
7960             command="- echo mpost not found"
7961         fi
7962         eval "METAPOST"='$command'
7963         false
7964     else
7965         true
7966     fi
7967
7968     if test $? -eq 0 -a -n ""; then
7969
7970     r="`eval echo '$'"METAPOST"`"
7971     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7972 $as_echo_n "checking $r version... " >&6; }
7973     exe=`
7974     ## which doesn't work in ash, if /usr/bin/which isn't installed
7975     ## type -p doesn't work in ash
7976     ## command -v doesn't work in zsh
7977     ## command -v "$r" 2>&1
7978     ## this test should work in ash, bash, pdksh (ksh), zsh
7979     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7980 `
7981     if test -n ""; then
7982         ver=""
7983     else
7984         ver=`
7985     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7986     ##
7987     ## ARG.
7988     ## Workaround for broken Debian gcc version string:
7989     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7990     ##
7991     ## -V: Workaround for python
7992
7993     #dnl
7994
7995     ## Assume and hunt for dotted version multiplet.
7996     ## use eval trickery, because we cannot use multi-level $() instead of ``
7997     ## for compatibility reasons.
7998
7999     ## grab the first version number in  --version output.
8000     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8001                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8002                 head -n 1 |
8003                 tr ' ' '\n' |
8004                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8005                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8006                 head -n 1\`\"
8007
8008     if test -z "$_ver"; then
8009         ## If empty, try date [fontforge]
8010         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8011             | head -n 1 \
8012             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8013     fi
8014     echo "$_ver"
8015     #dnl
8016 `
8017     fi
8018     num=`
8019     echo "$ver" | awk -F. '
8020     {
8021       if ($3) {three = $3}
8022       else {three = 0}
8023     }
8024     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8025 `
8026     req=`
8027     echo "" | awk -F. '
8028     {
8029       if ($3) {three = $3}
8030       else {three = 0}
8031     }
8032     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8033 `
8034     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8035 $as_echo "$ver" >&6; }
8036     if test "$num" -lt "$req"; then
8037
8038     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8039
8040     fi
8041     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8042     eval `echo $vervar=$num`
8043 ##    AC_SUBST(`eval echo $vervar`)
8044
8045     fi
8046
8047     if test "$METAPOST" != ""; then
8048         ver=`
8049     ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8050     ##
8051     ## ARG.
8052     ## Workaround for broken Debian gcc version string:
8053     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8054     ##
8055     ## -V: Workaround for python
8056
8057     #dnl
8058
8059     ## Assume and hunt for dotted version multiplet.
8060     ## use eval trickery, because we cannot use multi-level $() instead of ``
8061     ## for compatibility reasons.
8062
8063     ## grab the first version number in  --version output.
8064     eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8065                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8066                 head -n 1 |
8067                 tr ' ' '\n' |
8068                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8069                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8070                 head -n 1\`\"
8071
8072     if test -z "$_ver"; then
8073         ## If empty, try date [fontforge]
8074         eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8075             | head -n 1 \
8076             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8077     fi
8078     echo "$_ver"
8079     #dnl
8080 `
8081         num=`
8082     echo "$ver" | awk -F. '
8083     {
8084       if ($3) {three = $3}
8085       else {three = 0}
8086     }
8087     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8088 `
8089         # Avoid buggy metapost versions: 1.600 <= x < 1.803
8090         if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8091
8092     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8093
8094         fi
8095     fi
8096
8097     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8098 $as_echo_n "checking for working metafont mode... " >&6; }
8099     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8100     for MFMODE in $modelist; do
8101         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8102         if test -f mfput.tfm; then
8103             break;
8104         fi
8105     done
8106     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8107 $as_echo "$MFMODE" >&6; }
8108
8109     rm -f mfput.*
8110
8111
8112
8113
8114
8115     for ac_prog in kpsewhich
8116 do
8117   # Extract the first word of "$ac_prog", so it can be a program name with args.
8118 set dummy $ac_prog; ac_word=$2
8119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8122   $as_echo_n "(cached) " >&6
8123 else
8124   if test -n "$KPSEWHICH"; then
8125   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130   IFS=$as_save_IFS
8131   test -z "$as_dir" && as_dir=.
8132   for ac_exec_ext in '' $ac_executable_extensions; do
8133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134     ac_cv_prog_KPSEWHICH="$ac_prog"
8135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136     break 2
8137   fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi
8143 fi
8144 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8145 if test -n "$KPSEWHICH"; then
8146   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8147 $as_echo "$KPSEWHICH" >&6; }
8148 else
8149   { $as_echo "$as_me:$LINENO: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152
8153
8154   test -n "$KPSEWHICH" && break
8155 done
8156 test -n "$KPSEWHICH" || KPSEWHICH="no"
8157
8158
8159
8160     r="`eval echo '$'"KPSEWHICH"`"
8161     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8162         true
8163     else
8164         ##STEPMAKE_WARN(cannot find . )
8165         false
8166     fi
8167
8168     if test $? -ne 0; then
8169
8170     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8171
8172         if test "REQUIRED" = "REQUIRED"; then
8173             command="echo ERROR: kpsewhich not found"
8174             # abort configure process here?
8175         else
8176             command="- echo kpsewhich not found"
8177         fi
8178         eval "KPSEWHICH"='$command'
8179         false
8180     else
8181         true
8182     fi
8183
8184     if test $? -eq 0 -a -n ""; then
8185
8186     r="`eval echo '$'"KPSEWHICH"`"
8187     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8188 $as_echo_n "checking $r version... " >&6; }
8189     exe=`
8190     ## which doesn't work in ash, if /usr/bin/which isn't installed
8191     ## type -p doesn't work in ash
8192     ## command -v doesn't work in zsh
8193     ## command -v "$r" 2>&1
8194     ## this test should work in ash, bash, pdksh (ksh), zsh
8195     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8196 `
8197     if test -n ""; then
8198         ver=""
8199     else
8200         ver=`
8201     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8202     ##
8203     ## ARG.
8204     ## Workaround for broken Debian gcc version string:
8205     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8206     ##
8207     ## -V: Workaround for python
8208
8209     #dnl
8210
8211     ## Assume and hunt for dotted version multiplet.
8212     ## use eval trickery, because we cannot use multi-level $() instead of ``
8213     ## for compatibility reasons.
8214
8215     ## grab the first version number in  --version output.
8216     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8217                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8218                 head -n 1 |
8219                 tr ' ' '\n' |
8220                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8221                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8222                 head -n 1\`\"
8223
8224     if test -z "$_ver"; then
8225         ## If empty, try date [fontforge]
8226         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8227             | head -n 1 \
8228             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8229     fi
8230     echo "$_ver"
8231     #dnl
8232 `
8233     fi
8234     num=`
8235     echo "$ver" | awk -F. '
8236     {
8237       if ($3) {three = $3}
8238       else {three = 0}
8239     }
8240     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8241 `
8242     req=`
8243     echo "" | awk -F. '
8244     {
8245       if ($3) {three = $3}
8246       else {three = 0}
8247     }
8248     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8249 `
8250     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8251 $as_echo "$ver" >&6; }
8252     if test "$num" -lt "$req"; then
8253
8254     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8255
8256     fi
8257     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8258     eval `echo $vervar=$num`
8259 ##    AC_SUBST(`eval echo $vervar`)
8260
8261     fi
8262
8263
8264     { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8265 $as_echo_n "checking for metapost required files... " >&6; }
8266     if test "$MFPLAIN_MP" = ""; then
8267         MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8268     fi
8269     if test "$MFPLAIN_MP" = ""; then
8270         { $as_echo "$as_me:$LINENO: result: no" >&5
8271 $as_echo "no" >&6; }
8272
8273     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8274
8275     else
8276         { $as_echo "$as_me:$LINENO: result: yes" >&5
8277 $as_echo "yes" >&6; }
8278     fi
8279
8280
8281     ## First, let's just see if we can find Guile at all.
8282     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8283     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8284     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8285 $as_echo_n "checking for guile-config... " >&6; }
8286     guile_config="guile-config"
8287     found="no"
8288     for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8289         exe=`
8290     ## which doesn't work in ash, if /usr/bin/which isn't installed
8291     ## type -p doesn't work in ash
8292     ## command -v doesn't work in zsh
8293     ## command -v "$r" 2>&1
8294     ## this test should work in ash, bash, pdksh (ksh), zsh
8295     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8296 `
8297         if ! $exe --version > /dev/null 2>&1 ; then
8298             continue
8299         fi
8300         ver=`
8301     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8302     ##
8303     ## ARG.
8304     ## Workaround for broken Debian gcc version string:
8305     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8306     ##
8307     ## -V: Workaround for python
8308
8309     #dnl
8310
8311     ## Assume and hunt for dotted version multiplet.
8312     ## use eval trickery, because we cannot use multi-level $() instead of ``
8313     ## for compatibility reasons.
8314
8315     ## grab the first version number in  --version output.
8316     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8317                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8318                 head -n 1 |
8319                 tr ' ' '\n' |
8320                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8321                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8322                 head -n 1\`\"
8323
8324     if test -z "$_ver"; then
8325         ## If empty, try date [fontforge]
8326         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8327             | head -n 1 \
8328             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8329     fi
8330     echo "$_ver"
8331     #dnl
8332 `
8333         num=`
8334     echo "$ver" | awk -F. '
8335     {
8336       if ($3) {three = $3}
8337       else {three = 0}
8338     }
8339     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8340 `
8341         req=`
8342     echo "1.8.2" | awk -F. '
8343     {
8344       if ($3) {three = $3}
8345       else {three = 0}
8346     }
8347     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8348 `
8349         sup=`
8350     echo "1.9.0" | awk -F. '
8351     {
8352       if ($3) {three = $3}
8353       else {three = 0}
8354     }
8355     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8356 `
8357         if test -n "1.8.2" -a "$num" -lt "$req"; then
8358             guile_config="$r >= 1.8.2 (installed: $ver)"
8359             continue
8360         else
8361             if test -n "1.9.0" -a "$num" -ge "$sup"; then
8362                 guile_config="$r < 1.9.0 (installed: $ver)"
8363                 continue
8364             else
8365                 guile_config=$r
8366                 found=$r
8367                 break
8368             fi
8369         fi
8370     done
8371     { $as_echo "$as_me:$LINENO: result: $found" >&5
8372 $as_echo "$found" >&6; }
8373     if test "$found" != "no"; then
8374         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8375 $as_echo_n "checking $guile_config version... " >&6; }
8376         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8377 $as_echo "$ver" >&6; }
8378         GUILE_CONFIG=$found
8379     else
8380
8381     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)"\"`\"
8382
8383     fi
8384
8385
8386
8387     guile_version="$ver"
8388     #dnl
8389     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8390     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8391     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8392     #dnl
8393
8394     exe=`
8395     ## which doesn't work in ash, if /usr/bin/which isn't installed
8396     ## type -p doesn't work in ash
8397     ## command -v doesn't work in zsh
8398     ## command -v "$guile_config" 2>&1
8399     ## this test should work in ash, bash, pdksh (ksh), zsh
8400     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8401 `
8402     if test -x $exe; then
8403         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8404 $as_echo_n "checking guile compile flags... " >&6; }
8405         GUILE_CFLAGS="`$guile_config compile`"
8406         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8407 $as_echo "$GUILE_CFLAGS" >&6; }
8408         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8409 $as_echo_n "checking guile link flags... " >&6; }
8410         GUILE_LDFLAGS="`$guile_config link`"
8411         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8412 $as_echo "$GUILE_LDFLAGS" >&6; }
8413     fi
8414
8415
8416
8417     save_CPPFLAGS="$CPPFLAGS"
8418     save_LIBS="$LIBS"
8419     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8420     LIBS="$GUILE_LDFLAGS $LIBS"
8421
8422 for ac_header in libguile.h
8423 do
8424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8426   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8427 $as_echo_n "checking for $ac_header... " >&6; }
8428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8429   $as_echo_n "(cached) " >&6
8430 fi
8431 ac_res=`eval 'as_val=${'$as_ac_Header'}
8432                  $as_echo "$as_val"'`
8433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8434 $as_echo "$ac_res" >&6; }
8435 else
8436   # Is the header compilable?
8437 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438 $as_echo_n "checking $ac_header usability... " >&6; }
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445 $ac_includes_default
8446 #include <$ac_header>
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452   *) ac_try_echo=$ac_try;;
8453 esac
8454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8455 $as_echo "$ac_try_echo") >&5
8456   (eval "$ac_compile") 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } && {
8463          test -z "$ac_cxx_werror_flag" ||
8464          test ! -s conftest.err
8465        } && test -s conftest.$ac_objext; then
8466   ac_header_compiler=yes
8467 else
8468   $as_echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471         ac_header_compiler=no
8472 fi
8473
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8476 $as_echo "$ac_header_compiler" >&6; }
8477
8478 # Is the header present?
8479 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8480 $as_echo_n "checking $ac_header presence... " >&6; }
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 #include <$ac_header>
8488 _ACEOF
8489 if { (ac_try="$ac_cpp conftest.$ac_ext"
8490 case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } >/dev/null && {
8503          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8504          test ! -s conftest.err
8505        }; then
8506   ac_header_preproc=yes
8507 else
8508   $as_echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511   ac_header_preproc=no
8512 fi
8513
8514 rm -f conftest.err conftest.$ac_ext
8515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8516 $as_echo "$ac_header_preproc" >&6; }
8517
8518 # So?  What about this header?
8519 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8520   yes:no: )
8521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8522 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8523     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8525     ac_header_preproc=yes
8526     ;;
8527   no:yes:* )
8528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8529 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8531 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8533 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8535 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8539 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8540
8541     ;;
8542 esac
8543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8544 $as_echo_n "checking for $ac_header... " >&6; }
8545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8546   $as_echo_n "(cached) " >&6
8547 else
8548   eval "$as_ac_Header=\$ac_header_preproc"
8549 fi
8550 ac_res=`eval 'as_val=${'$as_ac_Header'}
8551                  $as_echo "$as_val"'`
8552                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8553 $as_echo "$ac_res" >&6; }
8554
8555 fi
8556 as_val=`eval 'as_val=${'$as_ac_Header'}
8557                  $as_echo "$as_val"'`
8558    if test "x$as_val" = x""yes; then
8559   cat >>confdefs.h <<_ACEOF
8560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 _ACEOF
8562
8563 fi
8564
8565 done
8566
8567
8568 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8569 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8570 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8571   $as_echo_n "(cached) " >&6
8572 else
8573   ac_check_lib_save_LIBS=$LIBS
8574 LIBS="-lguile  $LIBS"
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 /* Override any GCC internal prototype to avoid an error.
8583    Use char because int might match the return type of a GCC
8584    builtin and then its argument prototype would still apply.  */
8585 #ifdef __cplusplus
8586 extern "C"
8587 #endif
8588 char scm_boot_guile ();
8589 int
8590 main ()
8591 {
8592 return scm_boot_guile ();
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext conftest$ac_exeext
8598 if { (ac_try="$ac_link"
8599 case "(($ac_try" in
8600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601   *) ac_try_echo=$ac_try;;
8602 esac
8603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8604 $as_echo "$ac_try_echo") >&5
8605   (eval "$ac_link") 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } && {
8612          test -z "$ac_cxx_werror_flag" ||
8613          test ! -s conftest.err
8614        } && test -s conftest$ac_exeext && {
8615          test "$cross_compiling" = yes ||
8616          $as_test_x conftest$ac_exeext
8617        }; then
8618   ac_cv_lib_guile_scm_boot_guile=yes
8619 else
8620   $as_echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623         ac_cv_lib_guile_scm_boot_guile=no
8624 fi
8625
8626 rm -rf conftest.dSYM
8627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628       conftest$ac_exeext conftest.$ac_ext
8629 LIBS=$ac_check_lib_save_LIBS
8630 fi
8631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8632 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8633 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8634   cat >>confdefs.h <<_ACEOF
8635 #define HAVE_LIBGUILE 1
8636 _ACEOF
8637
8638   LIBS="-lguile $LIBS"
8639
8640 fi
8641
8642
8643 for ac_func in scm_boot_guile
8644 do
8645 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8646 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8647 $as_echo_n "checking for $ac_func... " >&6; }
8648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8649   $as_echo_n "(cached) " >&6
8650 else
8651   cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8659 #define $ac_func innocuous_$ac_func
8660
8661 /* System header to define __stub macros and hopefully few prototypes,
8662     which can conflict with char $ac_func (); below.
8663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8664     <limits.h> exists even on freestanding compilers.  */
8665
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8671
8672 #undef $ac_func
8673
8674 /* Override any GCC internal prototype to avoid an error.
8675    Use char because int might match the return type of a GCC
8676    builtin and then its argument prototype would still apply.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 char $ac_func ();
8681 /* The GNU C library defines this for functions which it implements
8682     to always fail with ENOSYS.  Some functions are actually named
8683     something starting with __ and the normal name is an alias.  */
8684 #if defined __stub_$ac_func || defined __stub___$ac_func
8685 choke me
8686 #endif
8687
8688 int
8689 main ()
8690 {
8691 return $ac_func ();
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (ac_try="$ac_link"
8698 case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8703 $as_echo "$ac_try_echo") >&5
8704   (eval "$ac_link") 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } && {
8711          test -z "$ac_cxx_werror_flag" ||
8712          test ! -s conftest.err
8713        } && test -s conftest$ac_exeext && {
8714          test "$cross_compiling" = yes ||
8715          $as_test_x conftest$ac_exeext
8716        }; then
8717   eval "$as_ac_var=yes"
8718 else
8719   $as_echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722         eval "$as_ac_var=no"
8723 fi
8724
8725 rm -rf conftest.dSYM
8726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8727       conftest$ac_exeext conftest.$ac_ext
8728 fi
8729 ac_res=`eval 'as_val=${'$as_ac_var'}
8730                  $as_echo "$as_val"'`
8731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8732 $as_echo "$ac_res" >&6; }
8733 as_val=`eval 'as_val=${'$as_ac_var'}
8734                  $as_echo "$as_val"'`
8735    if test "x$as_val" = x""yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 else
8741   libguile_b=no
8742 fi
8743 done
8744
8745     if test "$libguile_b" = "no"; then
8746             warn='libguile (libguile-dev, guile-devel or guile-dev
8747    package).'
8748
8749     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8750
8751     fi
8752     CPPFLAGS="$save_CPPFLAGS"
8753     LIBS="$save_LIBS"
8754     cat >>confdefs.h <<_ACEOF
8755 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8756 _ACEOF
8757
8758     cat >>confdefs.h <<_ACEOF
8759 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8760 _ACEOF
8761
8762     cat >>confdefs.h <<_ACEOF
8763 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8764 _ACEOF
8765
8766
8767
8768 # check for 3 typedefs added in Guile 1.9
8769 save_CXXFLAGS="$CXXFLAGS"
8770 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8771 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8772 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8773 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8774   $as_echo_n "(cached) " >&6
8775 else
8776   ac_cv_type_scm_t_hash_fold_fn=no
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 #include <libguile.h>
8784
8785 int
8786 main ()
8787 {
8788 if (sizeof (scm_t_hash_fold_fn))
8789        return 0;
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 rm -f conftest.$ac_objext
8795 if { (ac_try="$ac_compile"
8796 case "(($ac_try" in
8797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798   *) ac_try_echo=$ac_try;;
8799 esac
8800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801 $as_echo "$ac_try_echo") >&5
8802   (eval "$ac_compile") 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } && {
8809          test -z "$ac_cxx_werror_flag" ||
8810          test ! -s conftest.err
8811        } && test -s conftest.$ac_objext; then
8812   cat >conftest.$ac_ext <<_ACEOF
8813 /* confdefs.h.  */
8814 _ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h.  */
8818 #include <libguile.h>
8819
8820 int
8821 main ()
8822 {
8823 if (sizeof ((scm_t_hash_fold_fn)))
8824           return 0;
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837   (eval "$ac_compile") 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } && {
8844          test -z "$ac_cxx_werror_flag" ||
8845          test ! -s conftest.err
8846        } && test -s conftest.$ac_objext; then
8847   :
8848 else
8849   $as_echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852         ac_cv_type_scm_t_hash_fold_fn=yes
8853 fi
8854
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 else
8857   $as_echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860
8861 fi
8862
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 fi
8865 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8866 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8867 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8868
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_SCM_T_HASH_FOLD_FN 1
8871 _ACEOF
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_GUILE_HASH_FUNC 1
8875 _ACEOF
8876
8877 fi
8878 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8879 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8880 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8881   $as_echo_n "(cached) " >&6
8882 else
8883   ac_cv_type_scm_t_hash_handle_fn=no
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890 #include <libguile.h>
8891
8892 int
8893 main ()
8894 {
8895 if (sizeof (scm_t_hash_handle_fn))
8896        return 0;
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext
8902 if { (ac_try="$ac_compile"
8903 case "(($ac_try" in
8904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905   *) ac_try_echo=$ac_try;;
8906 esac
8907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8908 $as_echo "$ac_try_echo") >&5
8909   (eval "$ac_compile") 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } && {
8916          test -z "$ac_cxx_werror_flag" ||
8917          test ! -s conftest.err
8918        } && test -s conftest.$ac_objext; then
8919   cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925 #include <libguile.h>
8926
8927 int
8928 main ()
8929 {
8930 if (sizeof ((scm_t_hash_handle_fn)))
8931           return 0;
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8938 case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944   (eval "$ac_compile") 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } && {
8951          test -z "$ac_cxx_werror_flag" ||
8952          test ! -s conftest.err
8953        } && test -s conftest.$ac_objext; then
8954   :
8955 else
8956   $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959         ac_cv_type_scm_t_hash_handle_fn=yes
8960 fi
8961
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 else
8964   $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967
8968 fi
8969
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 fi
8972 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8973 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8974 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8975
8976 cat >>confdefs.h <<_ACEOF
8977 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8978 _ACEOF
8979
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_GUILE_HASH_FUNC 1
8982 _ACEOF
8983
8984 fi
8985
8986 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8987 $as_echo_n "checking for scm_t_subr... " >&6; }
8988 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8989   $as_echo_n "(cached) " >&6
8990 else
8991   ac_cv_type_scm_t_subr=no
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h.  */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h.  */
8998 #include <libguile.h>
8999
9000 int
9001 main ()
9002 {
9003 if (sizeof (scm_t_subr))
9004        return 0;
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (ac_try="$ac_compile"
9011 case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9016 $as_echo "$ac_try_echo") >&5
9017   (eval "$ac_compile") 2>conftest.er1
9018   ac_status=$?
9019   grep -v '^ *+' conftest.er1 >conftest.err
9020   rm -f conftest.er1
9021   cat conftest.err >&5
9022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); } && {
9024          test -z "$ac_cxx_werror_flag" ||
9025          test ! -s conftest.err
9026        } && test -s conftest.$ac_objext; then
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #include <libguile.h>
9034
9035 int
9036 main ()
9037 {
9038 if (sizeof ((scm_t_subr)))
9039           return 0;
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9046 case "(($ac_try" in
9047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048   *) ac_try_echo=$ac_try;;
9049 esac
9050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9051 $as_echo "$ac_try_echo") >&5
9052   (eval "$ac_compile") 2>conftest.er1
9053   ac_status=$?
9054   grep -v '^ *+' conftest.er1 >conftest.err
9055   rm -f conftest.er1
9056   cat conftest.err >&5
9057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); } && {
9059          test -z "$ac_cxx_werror_flag" ||
9060          test ! -s conftest.err
9061        } && test -s conftest.$ac_objext; then
9062   :
9063 else
9064   $as_echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067         ac_cv_type_scm_t_subr=yes
9068 fi
9069
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 else
9072   $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075
9076 fi
9077
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 fi
9080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9081 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9082 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9083
9084 cat >>confdefs.h <<_ACEOF
9085 #define HAVE_SCM_T_SUBR 1
9086 _ACEOF
9087
9088 cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_GUILE_SUBR_TYPE 1
9090 _ACEOF
9091
9092 fi
9093
9094 CXXFLAGS="$save_CXXFLAGS"
9095
9096 ## Check for usable cxxabi
9097 save_LIBS="$LIBS"
9098 LIBS="$LIBS $CXXABI_LIBS"
9099 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9100 $as_echo_n "checking for usable C++ demangler... " >&6; }
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107 #include <cxxabi.h>
9108 int
9109 main ()
9110 {
9111 abi::__cxa_demangle ("", 0, 0, 0)
9112   ;
9113   return 0;
9114 }
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9118 case "(($ac_try" in
9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120   *) ac_try_echo=$ac_try;;
9121 esac
9122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9123 $as_echo "$ac_try_echo") >&5
9124   (eval "$ac_link") 2>conftest.er1
9125   ac_status=$?
9126   grep -v '^ *+' conftest.er1 >conftest.err
9127   rm -f conftest.er1
9128   cat conftest.err >&5
9129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } && {
9131          test -z "$ac_cxx_werror_flag" ||
9132          test ! -s conftest.err
9133        } && test -s conftest$ac_exeext && {
9134          test "$cross_compiling" = yes ||
9135          $as_test_x conftest$ac_exeext
9136        }; then
9137   cat >>confdefs.h <<\_ACEOF
9138 #define HAVE_CXA_DEMANGLE 1
9139 _ACEOF
9140
9141         { $as_echo "$as_me:$LINENO: result: yes" >&5
9142 $as_echo "yes" >&6; }
9143 else
9144   $as_echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147
9148         LIBS="$LIBS -lsupc++"
9149         cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 #include <cxxabi.h>
9156 int
9157 main ()
9158 {
9159 abi::__cxa_demangle ("", 0, 0, 0)
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9166 case "(($ac_try" in
9167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168   *) ac_try_echo=$ac_try;;
9169 esac
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172   (eval "$ac_link") 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } && {
9179          test -z "$ac_cxx_werror_flag" ||
9180          test ! -s conftest.err
9181        } && test -s conftest$ac_exeext && {
9182          test "$cross_compiling" = yes ||
9183          $as_test_x conftest$ac_exeext
9184        }; then
9185   cat >>confdefs.h <<\_ACEOF
9186 #define HAVE_CXA_DEMANGLE 1
9187 _ACEOF
9188
9189                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9190 $as_echo "yes, using -lsupc++" >&6; }
9191                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9192 else
9193   $as_echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9197 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9198 fi
9199
9200 rm -rf conftest.dSYM
9201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9202       conftest$ac_exeext conftest.$ac_ext
9203 fi
9204
9205 rm -rf conftest.dSYM
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207       conftest$ac_exeext conftest.$ac_ext
9208 LIBS="$save_LIBS"
9209
9210
9211 ## check rational bugfix.
9212 save_CPPFLAGS="$CPPFLAGS"
9213 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9214 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9215 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222 #include <libguile.h>
9223 #ifdef SCM_FRACTION_REDUCED_BIT
9224 #error
9225 #endif
9226
9227 _ACEOF
9228 if { (ac_try="$ac_cpp conftest.$ac_ext"
9229 case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9234 $as_echo "$ac_try_echo") >&5
9235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } >/dev/null && {
9242          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9243          test ! -s conftest.err
9244        }; then
9245   { $as_echo "$as_me:$LINENO: result: ok" >&5
9246 $as_echo "ok" >&6; }
9247 else
9248   $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9252 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9253 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9254 fi
9255
9256 rm -f conftest.err conftest.$ac_ext
9257 CPPFLAGS="$save_CPPFLAGS"
9258
9259
9260
9261
9262 # Check whether --with-python-include was given.
9263 if test "${with_python_include+set}" = set; then
9264   withval=$with_python_include;
9265         if test "$withval" = "yes" -o "$withval" = "no"; then
9266             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9267 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9268         else
9269             PYTHON_CFLAGS="-I${withval}"
9270         fi
9271
9272 fi
9273
9274
9275
9276 # Check whether --with-python-lib was given.
9277 if test "${with_python_lib+set}" = set; then
9278   withval=$with_python_lib;
9279         if test "$withval" = "yes" -o "$withval" = "no"; then
9280             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9281 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9282         else
9283             LDFLAGS="$LDFLAGS -l${withval}"
9284         fi
9285
9286 fi
9287
9288
9289
9290     { $as_echo "$as_me:$LINENO: checking for python" >&5
9291 $as_echo_n "checking for python... " >&6; }
9292     python="python"
9293     found="no"
9294     for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
9295         exe=`
9296     ## which doesn't work in ash, if /usr/bin/which isn't installed
9297     ## type -p doesn't work in ash
9298     ## command -v doesn't work in zsh
9299     ## command -v "$r" 2>&1
9300     ## this test should work in ash, bash, pdksh (ksh), zsh
9301     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9302 `
9303         if ! $exe -V > /dev/null 2>&1 ; then
9304             continue
9305         fi
9306         ver=`
9307     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9308     ##
9309     ## ARG.
9310     ## Workaround for broken Debian gcc version string:
9311     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9312     ##
9313     ## -V: Workaround for python
9314
9315     #dnl
9316
9317     ## Assume and hunt for dotted version multiplet.
9318     ## use eval trickery, because we cannot use multi-level $() instead of ``
9319     ## for compatibility reasons.
9320
9321     ## grab the first version number in  --version output.
9322     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9323                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9324                 head -n 1 |
9325                 tr ' ' '\n' |
9326                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9327                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9328                 head -n 1\`\"
9329
9330     if test -z "$_ver"; then
9331         ## If empty, try date [fontforge]
9332         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9333             | head -n 1 \
9334             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9335     fi
9336     echo "$_ver"
9337     #dnl
9338 `
9339         num=`
9340     echo "$ver" | awk -F. '
9341     {
9342       if ($3) {three = $3}
9343       else {three = 0}
9344     }
9345     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9346 `
9347         req=`
9348     echo "2.4" | awk -F. '
9349     {
9350       if ($3) {three = $3}
9351       else {three = 0}
9352     }
9353     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9354 `
9355         sup=`
9356     echo "3.0" | awk -F. '
9357     {
9358       if ($3) {three = $3}
9359       else {three = 0}
9360     }
9361     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9362 `
9363         if test -n "2.4" && test "$num" -lt "$req"; then
9364             python="$r >= 2.4 (installed: $ver)"
9365             continue
9366         else
9367             if test -n "3.0" && test "$num" -ge "$sup"; then
9368                 python="$r < 3.0 (installed: $ver)"
9369                 continue
9370             else
9371                 python=$r
9372                 found=$r
9373                 break
9374             fi
9375         fi
9376     done
9377     { $as_echo "$as_me:$LINENO: result: $found" >&5
9378 $as_echo "$found" >&6; }
9379     if test "$found" != "no"; then
9380         { $as_echo "$as_me:$LINENO: checking $python version" >&5
9381 $as_echo_n "checking $python version... " >&6; }
9382         { $as_echo "$as_me:$LINENO: result: $ver" >&5
9383 $as_echo "$ver" >&6; }
9384         PYTHON=$found
9385     else
9386
9387     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
9388
9389     fi
9390     # Extract the first word of "$PYTHON", so it can be a program name with args.
9391 set dummy $PYTHON; ac_word=$2
9392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if test "${ac_cv_path_PYTHON+set}" = set; then
9395   $as_echo_n "(cached) " >&6
9396 else
9397   case $PYTHON in
9398   [\\/]* | ?:[\\/]*)
9399   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9400   ;;
9401   *)
9402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9404 do
9405   IFS=$as_save_IFS
9406   test -z "$as_dir" && as_dir=.
9407   for ac_exec_ext in '' $ac_executable_extensions; do
9408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9410     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9411     break 2
9412   fi
9413 done
9414 done
9415 IFS=$as_save_IFS
9416
9417   ;;
9418 esac
9419 fi
9420 PYTHON=$ac_cv_path_PYTHON
9421 if test -n "$PYTHON"; then
9422   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
9423 $as_echo "$PYTHON" >&6; }
9424 else
9425   { $as_echo "$as_me:$LINENO: result: no" >&5
9426 $as_echo "no" >&6; }
9427 fi
9428
9429
9430
9431
9432     for ac_prog in `basename $PYTHON`-config
9433 do
9434   # Extract the first word of "$ac_prog", so it can be a program name with args.
9435 set dummy $ac_prog; ac_word=$2
9436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9437 $as_echo_n "checking for $ac_word... " >&6; }
9438 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9439   $as_echo_n "(cached) " >&6
9440 else
9441   if test -n "$PYTHON_CONFIG"; then
9442   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9443 else
9444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445 for as_dir in $PATH
9446 do
9447   IFS=$as_save_IFS
9448   test -z "$as_dir" && as_dir=.
9449   for ac_exec_ext in '' $ac_executable_extensions; do
9450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9451     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9453     break 2
9454   fi
9455 done
9456 done
9457 IFS=$as_save_IFS
9458
9459 fi
9460 fi
9461 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9462 if test -n "$PYTHON_CONFIG"; then
9463   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9464 $as_echo "$PYTHON_CONFIG" >&6; }
9465 else
9466   { $as_echo "$as_me:$LINENO: result: no" >&5
9467 $as_echo "no" >&6; }
9468 fi
9469
9470
9471   test -n "$PYTHON_CONFIG" && break
9472 done
9473 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
9474
9475
9476     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
9477         # Clean out junk: http://bugs.python.org/issue3290
9478         # Python headers may need some -f* flags, leave them in.
9479         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
9480          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9481          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
9482          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
9483          # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
9484          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9485         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
9486     fi
9487
9488     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
9489         #dnl
9490         # alternatively, for python >= 2.0
9491         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
9492         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
9493         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
9494         #dnl
9495     fi
9496
9497     if test -z "$PYTHON_HEADER"; then
9498         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
9499
9500 for ac_header in Python.h
9501 do
9502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9504   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9505 $as_echo_n "checking for $ac_header... " >&6; }
9506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9507   $as_echo_n "(cached) " >&6
9508 fi
9509 ac_res=`eval 'as_val=${'$as_ac_Header'}
9510                  $as_echo "$as_val"'`
9511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9512 $as_echo "$ac_res" >&6; }
9513 else
9514   # Is the header compilable?
9515 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516 $as_echo_n "checking $ac_header usability... " >&6; }
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523 $ac_includes_default
9524 #include <$ac_header>
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9528 case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$ac_try_echo") >&5
9534   (eval "$ac_compile") 2>conftest.er1
9535   ac_status=$?
9536   grep -v '^ *+' conftest.er1 >conftest.err
9537   rm -f conftest.er1
9538   cat conftest.err >&5
9539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } && {
9541          test -z "$ac_cxx_werror_flag" ||
9542          test ! -s conftest.err
9543        } && test -s conftest.$ac_objext; then
9544   ac_header_compiler=yes
9545 else
9546   $as_echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549         ac_header_compiler=no
9550 fi
9551
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9554 $as_echo "$ac_header_compiler" >&6; }
9555
9556 # Is the header present?
9557 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9558 $as_echo_n "checking $ac_header presence... " >&6; }
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 #include <$ac_header>
9566 _ACEOF
9567 if { (ac_try="$ac_cpp conftest.$ac_ext"
9568 case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9573 $as_echo "$ac_try_echo") >&5
9574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } >/dev/null && {
9581          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9582          test ! -s conftest.err
9583        }; then
9584   ac_header_preproc=yes
9585 else
9586   $as_echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589   ac_header_preproc=no
9590 fi
9591
9592 rm -f conftest.err conftest.$ac_ext
9593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9594 $as_echo "$ac_header_preproc" >&6; }
9595
9596 # So?  What about this header?
9597 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9598   yes:no: )
9599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9600 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9603     ac_header_preproc=yes
9604     ;;
9605   no:yes:* )
9606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9607 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9609 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9611 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9613 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9617 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9618
9619     ;;
9620 esac
9621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9622 $as_echo_n "checking for $ac_header... " >&6; }
9623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9624   $as_echo_n "(cached) " >&6
9625 else
9626   eval "$as_ac_Header=\$ac_header_preproc"
9627 fi
9628 ac_res=`eval 'as_val=${'$as_ac_Header'}
9629                  $as_echo "$as_val"'`
9630                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9631 $as_echo "$ac_res" >&6; }
9632
9633 fi
9634 as_val=`eval 'as_val=${'$as_ac_Header'}
9635                  $as_echo "$as_val"'`
9636    if test "x$as_val" = x""yes; then
9637   cat >>confdefs.h <<_ACEOF
9638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9639 _ACEOF
9640  PYTHON_HEADER=yes
9641 fi
9642
9643 done
9644
9645     fi
9646
9647     if test -z "$PYTHON_HEADER"; then
9648         warn="Python.h (python-devel, python-dev or libpython-dev package)"
9649
9650     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9651
9652     fi
9653
9654
9655
9656     for ac_prog in fontforge
9657 do
9658   # Extract the first word of "$ac_prog", so it can be a program name with args.
9659 set dummy $ac_prog; ac_word=$2
9660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9663   $as_echo_n "(cached) " >&6
9664 else
9665   if test -n "$FONTFORGE"; then
9666   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9667 else
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in $PATH
9670 do
9671   IFS=$as_save_IFS
9672   test -z "$as_dir" && as_dir=.
9673   for ac_exec_ext in '' $ac_executable_extensions; do
9674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675     ac_cv_prog_FONTFORGE="$ac_prog"
9676     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9677     break 2
9678   fi
9679 done
9680 done
9681 IFS=$as_save_IFS
9682
9683 fi
9684 fi
9685 FONTFORGE=$ac_cv_prog_FONTFORGE
9686 if test -n "$FONTFORGE"; then
9687   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9688 $as_echo "$FONTFORGE" >&6; }
9689 else
9690   { $as_echo "$as_me:$LINENO: result: no" >&5
9691 $as_echo "no" >&6; }
9692 fi
9693
9694
9695   test -n "$FONTFORGE" && break
9696 done
9697 test -n "$FONTFORGE" || FONTFORGE="no"
9698
9699
9700
9701     r="`eval echo '$'"FONTFORGE"`"
9702     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9703         true
9704     else
9705         ##STEPMAKE_WARN(cannot find . )
9706         false
9707     fi
9708
9709     if test $? -ne 0; then
9710
9711     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9712
9713         if test "REQUIRED" = "REQUIRED"; then
9714             command="echo ERROR: fontforge not found"
9715             # abort configure process here?
9716         else
9717             command="- echo fontforge not found"
9718         fi
9719         eval "FONTFORGE"='$command'
9720         false
9721     else
9722         true
9723     fi
9724
9725     if test $? -eq 0; then
9726         for ac_prog in fontforge
9727 do
9728   # Extract the first word of "$ac_prog", so it can be a program name with args.
9729 set dummy $ac_prog; ac_word=$2
9730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9733   $as_echo_n "(cached) " >&6
9734 else
9735   case $FONTFORGE in
9736   [\\/]* | ?:[\\/]*)
9737   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9738   ;;
9739   *)
9740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9742 do
9743   IFS=$as_save_IFS
9744   test -z "$as_dir" && as_dir=.
9745   for ac_exec_ext in '' $ac_executable_extensions; do
9746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9748     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9749     break 2
9750   fi
9751 done
9752 done
9753 IFS=$as_save_IFS
9754
9755   ;;
9756 esac
9757 fi
9758 FONTFORGE=$ac_cv_path_FONTFORGE
9759 if test -n "$FONTFORGE"; then
9760   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9761 $as_echo "$FONTFORGE" >&6; }
9762 else
9763   { $as_echo "$as_me:$LINENO: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766
9767
9768   test -n "$FONTFORGE" && break
9769 done
9770
9771         if test -n "20110222"; then
9772
9773     r="`eval echo '$'"FONTFORGE"`"
9774     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9775 $as_echo_n "checking $r version... " >&6; }
9776     exe=`
9777     ## which doesn't work in ash, if /usr/bin/which isn't installed
9778     ## type -p doesn't work in ash
9779     ## command -v doesn't work in zsh
9780     ## command -v "$r" 2>&1
9781     ## this test should work in ash, bash, pdksh (ksh), zsh
9782     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9783 `
9784     if test -n ""; then
9785         ver=""
9786     else
9787         ver=`
9788     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9789     ##
9790     ## ARG.
9791     ## Workaround for broken Debian gcc version string:
9792     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9793     ##
9794     ## -V: Workaround for python
9795
9796     #dnl
9797
9798     ## Assume and hunt for dotted version multiplet.
9799     ## use eval trickery, because we cannot use multi-level $() instead of ``
9800     ## for compatibility reasons.
9801
9802     ## grab the first version number in  --version output.
9803     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9804                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9805                 head -n 1 |
9806                 tr ' ' '\n' |
9807                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9808                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9809                 head -n 1\`\"
9810
9811     if test -z "$_ver"; then
9812         ## If empty, try date [fontforge]
9813         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9814             | head -n 1 \
9815             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9816     fi
9817     echo "$_ver"
9818     #dnl
9819 `
9820     fi
9821     num=`
9822     echo "$ver" | awk -F. '
9823     {
9824       if ($3) {three = $3}
9825       else {three = 0}
9826     }
9827     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9828 `
9829     req=`
9830     echo "20110222" | awk -F. '
9831     {
9832       if ($3) {three = $3}
9833       else {three = 0}
9834     }
9835     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9836 `
9837     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9838 $as_echo "$ver" >&6; }
9839     if test "$num" -lt "$req"; then
9840
9841     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
9842
9843     fi
9844     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9845     eval `echo $vervar=$num`
9846 ##    AC_SUBST(`eval echo $vervar`)
9847
9848         fi
9849     fi
9850
9851
9852
9853     for ac_prog in t1asm
9854 do
9855   # Extract the first word of "$ac_prog", so it can be a program name with args.
9856 set dummy $ac_prog; ac_word=$2
9857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if test "${ac_cv_prog_T1ASM+set}" = set; then
9860   $as_echo_n "(cached) " >&6
9861 else
9862   if test -n "$T1ASM"; then
9863   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868   IFS=$as_save_IFS
9869   test -z "$as_dir" && as_dir=.
9870   for ac_exec_ext in '' $ac_executable_extensions; do
9871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872     ac_cv_prog_T1ASM="$ac_prog"
9873     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9874     break 2
9875   fi
9876 done
9877 done
9878 IFS=$as_save_IFS
9879
9880 fi
9881 fi
9882 T1ASM=$ac_cv_prog_T1ASM
9883 if test -n "$T1ASM"; then
9884   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9885 $as_echo "$T1ASM" >&6; }
9886 else
9887   { $as_echo "$as_me:$LINENO: result: no" >&5
9888 $as_echo "no" >&6; }
9889 fi
9890
9891
9892   test -n "$T1ASM" && break
9893 done
9894 test -n "$T1ASM" || T1ASM="no"
9895
9896
9897
9898     r="`eval echo '$'"T1ASM"`"
9899     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9900         true
9901     else
9902         ##STEPMAKE_WARN(cannot find . )
9903         false
9904     fi
9905
9906     if test $? -ne 0; then
9907
9908     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9909
9910         if test "REQUIRED" = "REQUIRED"; then
9911             command="echo ERROR: t1asm not found"
9912             # abort configure process here?
9913         else
9914             command="- echo t1asm not found"
9915         fi
9916         eval "T1ASM"='$command'
9917         false
9918     else
9919         true
9920     fi
9921
9922     if test $? -eq 0; then
9923         for ac_prog in t1asm
9924 do
9925   # Extract the first word of "$ac_prog", so it can be a program name with args.
9926 set dummy $ac_prog; ac_word=$2
9927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_path_T1ASM+set}" = set; then
9930   $as_echo_n "(cached) " >&6
9931 else
9932   case $T1ASM in
9933   [\\/]* | ?:[\\/]*)
9934   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9935   ;;
9936   *)
9937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9939 do
9940   IFS=$as_save_IFS
9941   test -z "$as_dir" && as_dir=.
9942   for ac_exec_ext in '' $ac_executable_extensions; do
9943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9945     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9946     break 2
9947   fi
9948 done
9949 done
9950 IFS=$as_save_IFS
9951
9952   ;;
9953 esac
9954 fi
9955 T1ASM=$ac_cv_path_T1ASM
9956 if test -n "$T1ASM"; then
9957   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9958 $as_echo "$T1ASM" >&6; }
9959 else
9960   { $as_echo "$as_me:$LINENO: result: no" >&5
9961 $as_echo "no" >&6; }
9962 fi
9963
9964
9965   test -n "$T1ASM" && break
9966 done
9967
9968         if test -n ""; then
9969
9970     r="`eval echo '$'"T1ASM"`"
9971     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9972 $as_echo_n "checking $r version... " >&6; }
9973     exe=`
9974     ## which doesn't work in ash, if /usr/bin/which isn't installed
9975     ## type -p doesn't work in ash
9976     ## command -v doesn't work in zsh
9977     ## command -v "$r" 2>&1
9978     ## this test should work in ash, bash, pdksh (ksh), zsh
9979     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9980 `
9981     if test -n ""; then
9982         ver=""
9983     else
9984         ver=`
9985     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9986     ##
9987     ## ARG.
9988     ## Workaround for broken Debian gcc version string:
9989     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9990     ##
9991     ## -V: Workaround for python
9992
9993     #dnl
9994
9995     ## Assume and hunt for dotted version multiplet.
9996     ## use eval trickery, because we cannot use multi-level $() instead of ``
9997     ## for compatibility reasons.
9998
9999     ## grab the first version number in  --version output.
10000     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10001                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10002                 head -n 1 |
10003                 tr ' ' '\n' |
10004                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10005                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10006                 head -n 1\`\"
10007
10008     if test -z "$_ver"; then
10009         ## If empty, try date [fontforge]
10010         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10011             | head -n 1 \
10012             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10013     fi
10014     echo "$_ver"
10015     #dnl
10016 `
10017     fi
10018     num=`
10019     echo "$ver" | awk -F. '
10020     {
10021       if ($3) {three = $3}
10022       else {three = 0}
10023     }
10024     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10025 `
10026     req=`
10027     echo "" | awk -F. '
10028     {
10029       if ($3) {three = $3}
10030       else {three = 0}
10031     }
10032     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10033 `
10034     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10035 $as_echo "$ver" >&6; }
10036     if test "$num" -lt "$req"; then
10037
10038     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10039
10040     fi
10041     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10042     eval `echo $vervar=$num`
10043 ##    AC_SUBST(`eval echo $vervar`)
10044
10045         fi
10046     fi
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10057 do
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10060   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 $as_echo_n "checking for $ac_header... " >&6; }
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063   $as_echo_n "(cached) " >&6
10064 fi
10065 ac_res=`eval 'as_val=${'$as_ac_Header'}
10066                  $as_echo "$as_val"'`
10067                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10068 $as_echo "$ac_res" >&6; }
10069 else
10070   # Is the header compilable?
10071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10072 $as_echo_n "checking $ac_header usability... " >&6; }
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079 $ac_includes_default
10080 #include <$ac_header>
10081 _ACEOF
10082 rm -f conftest.$ac_objext
10083 if { (ac_try="$ac_compile"
10084 case "(($ac_try" in
10085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086   *) ac_try_echo=$ac_try;;
10087 esac
10088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10089 $as_echo "$ac_try_echo") >&5
10090   (eval "$ac_compile") 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } && {
10097          test -z "$ac_cxx_werror_flag" ||
10098          test ! -s conftest.err
10099        } && test -s conftest.$ac_objext; then
10100   ac_header_compiler=yes
10101 else
10102   $as_echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105         ac_header_compiler=no
10106 fi
10107
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10110 $as_echo "$ac_header_compiler" >&6; }
10111
10112 # Is the header present?
10113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10114 $as_echo_n "checking $ac_header presence... " >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121 #include <$ac_header>
10122 _ACEOF
10123 if { (ac_try="$ac_cpp conftest.$ac_ext"
10124 case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10129 $as_echo "$ac_try_echo") >&5
10130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } >/dev/null && {
10137          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10138          test ! -s conftest.err
10139        }; then
10140   ac_header_preproc=yes
10141 else
10142   $as_echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145   ac_header_preproc=no
10146 fi
10147
10148 rm -f conftest.err conftest.$ac_ext
10149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10150 $as_echo "$ac_header_preproc" >&6; }
10151
10152 # So?  What about this header?
10153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10154   yes:no: )
10155     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10157     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10159     ac_header_preproc=yes
10160     ;;
10161   no:yes:* )
10162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10165 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10166     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10169 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10174
10175     ;;
10176 esac
10177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 $as_echo_n "checking for $ac_header... " >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180   $as_echo_n "(cached) " >&6
10181 else
10182   eval "$as_ac_Header=\$ac_header_preproc"
10183 fi
10184 ac_res=`eval 'as_val=${'$as_ac_Header'}
10185                  $as_echo "$as_val"'`
10186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10187 $as_echo "$ac_res" >&6; }
10188
10189 fi
10190 as_val=`eval 'as_val=${'$as_ac_Header'}
10191                  $as_echo "$as_val"'`
10192    if test "x$as_val" = x""yes; then
10193   cat >>confdefs.h <<_ACEOF
10194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10195 _ACEOF
10196
10197 fi
10198
10199 done
10200
10201
10202 for ac_header in sstream
10203 do
10204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10206   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10207 $as_echo_n "checking for $ac_header... " >&6; }
10208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10209   $as_echo_n "(cached) " >&6
10210 fi
10211 ac_res=`eval 'as_val=${'$as_ac_Header'}
10212                  $as_echo "$as_val"'`
10213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10214 $as_echo "$ac_res" >&6; }
10215 else
10216   # Is the header compilable?
10217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10218 $as_echo_n "checking $ac_header usability... " >&6; }
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225 $ac_includes_default
10226 #include <$ac_header>
10227 _ACEOF
10228 rm -f conftest.$ac_objext
10229 if { (ac_try="$ac_compile"
10230 case "(($ac_try" in
10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232   *) ac_try_echo=$ac_try;;
10233 esac
10234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10235 $as_echo "$ac_try_echo") >&5
10236   (eval "$ac_compile") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } && {
10243          test -z "$ac_cxx_werror_flag" ||
10244          test ! -s conftest.err
10245        } && test -s conftest.$ac_objext; then
10246   ac_header_compiler=yes
10247 else
10248   $as_echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251         ac_header_compiler=no
10252 fi
10253
10254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10256 $as_echo "$ac_header_compiler" >&6; }
10257
10258 # Is the header present?
10259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10260 $as_echo_n "checking $ac_header presence... " >&6; }
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267 #include <$ac_header>
10268 _ACEOF
10269 if { (ac_try="$ac_cpp conftest.$ac_ext"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } >/dev/null && {
10283          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10284          test ! -s conftest.err
10285        }; then
10286   ac_header_preproc=yes
10287 else
10288   $as_echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10290
10291   ac_header_preproc=no
10292 fi
10293
10294 rm -f conftest.err conftest.$ac_ext
10295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10296 $as_echo "$ac_header_preproc" >&6; }
10297
10298 # So?  What about this header?
10299 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10300   yes:no: )
10301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10305     ac_header_preproc=yes
10306     ;;
10307   no:yes:* )
10308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10311 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10315 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10320
10321     ;;
10322 esac
10323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10324 $as_echo_n "checking for $ac_header... " >&6; }
10325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10326   $as_echo_n "(cached) " >&6
10327 else
10328   eval "$as_ac_Header=\$ac_header_preproc"
10329 fi
10330 ac_res=`eval 'as_val=${'$as_ac_Header'}
10331                  $as_echo "$as_val"'`
10332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10333 $as_echo "$ac_res" >&6; }
10334
10335 fi
10336 as_val=`eval 'as_val=${'$as_ac_Header'}
10337                  $as_echo "$as_val"'`
10338    if test "x$as_val" = x""yes; then
10339   cat >>confdefs.h <<_ACEOF
10340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10341 _ACEOF
10342
10343 fi
10344
10345 done
10346
10347 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10348 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10349 if test "${ac_cv_header_stat_broken+set}" = set; then
10350   $as_echo_n "(cached) " >&6
10351 else
10352   cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358 #include <sys/types.h>
10359 #include <sys/stat.h>
10360
10361 #if defined S_ISBLK && defined S_IFDIR
10362 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10363 #endif
10364
10365 #if defined S_ISBLK && defined S_IFCHR
10366 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10367 #endif
10368
10369 #if defined S_ISLNK && defined S_IFREG
10370 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10371 #endif
10372
10373 #if defined S_ISSOCK && defined S_IFREG
10374 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10375 #endif
10376
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10385 $as_echo "$ac_try_echo") >&5
10386   (eval "$ac_compile") 2>conftest.er1
10387   ac_status=$?
10388   grep -v '^ *+' conftest.er1 >conftest.err
10389   rm -f conftest.er1
10390   cat conftest.err >&5
10391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } && {
10393          test -z "$ac_cxx_werror_flag" ||
10394          test ! -s conftest.err
10395        } && test -s conftest.$ac_objext; then
10396   ac_cv_header_stat_broken=no
10397 else
10398   $as_echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401         ac_cv_header_stat_broken=yes
10402 fi
10403
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405 fi
10406 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10407 $as_echo "$ac_cv_header_stat_broken" >&6; }
10408 if test $ac_cv_header_stat_broken = yes; then
10409
10410 cat >>confdefs.h <<\_ACEOF
10411 #define STAT_MACROS_BROKEN 1
10412 _ACEOF
10413
10414 fi
10415
10416 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10417 $as_echo_n "checking for working memcmp... " >&6; }
10418 if test "${ac_cv_func_memcmp_working+set}" = set; then
10419   $as_echo_n "(cached) " >&6
10420 else
10421   if test "$cross_compiling" = yes; then
10422   ac_cv_func_memcmp_working=no
10423 else
10424   cat >conftest.$ac_ext <<_ACEOF
10425 /* confdefs.h.  */
10426 _ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h.  */
10430 $ac_includes_default
10431 int
10432 main ()
10433 {
10434
10435   /* Some versions of memcmp are not 8-bit clean.  */
10436   char c0 = '\100', c1 = '\200', c2 = '\201';
10437   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10438     return 1;
10439
10440   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10441      or more and with at least one buffer not starting on a 4-byte boundary.
10442      William Lewis provided this test program.   */
10443   {
10444     char foo[21];
10445     char bar[21];
10446     int i;
10447     for (i = 0; i < 4; i++)
10448       {
10449         char *a = foo + i;
10450         char *b = bar + i;
10451         strcpy (a, "--------01111111");
10452         strcpy (b, "--------10000000");
10453         if (memcmp (a, b, 16) >= 0)
10454           return 1;
10455       }
10456     return 0;
10457   }
10458
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471   (eval "$ac_link") 2>&5
10472   ac_status=$?
10473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10475   { (case "(($ac_try" in
10476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477   *) ac_try_echo=$ac_try;;
10478 esac
10479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10480 $as_echo "$ac_try_echo") >&5
10481   (eval "$ac_try") 2>&5
10482   ac_status=$?
10483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   ac_cv_func_memcmp_working=yes
10486 else
10487   $as_echo "$as_me: program exited with status $ac_status" >&5
10488 $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ( exit $ac_status )
10492 ac_cv_func_memcmp_working=no
10493 fi
10494 rm -rf conftest.dSYM
10495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10496 fi
10497
10498
10499 fi
10500 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10501 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10502 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10503   *" memcmp.$ac_objext "* ) ;;
10504   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10505  ;;
10506 esac
10507
10508
10509
10510 for ac_func in vprintf
10511 do
10512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10514 $as_echo_n "checking for $ac_func... " >&6; }
10515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10516   $as_echo_n "(cached) " >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10526 #define $ac_func innocuous_$ac_func
10527
10528 /* System header to define __stub macros and hopefully few prototypes,
10529     which can conflict with char $ac_func (); below.
10530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531     <limits.h> exists even on freestanding compilers.  */
10532
10533 #ifdef __STDC__
10534 # include <limits.h>
10535 #else
10536 # include <assert.h>
10537 #endif
10538
10539 #undef $ac_func
10540
10541 /* Override any GCC internal prototype to avoid an error.
10542    Use char because int might match the return type of a GCC
10543    builtin and then its argument prototype would still apply.  */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char $ac_func ();
10548 /* The GNU C library defines this for functions which it implements
10549     to always fail with ENOSYS.  Some functions are actually named
10550     something starting with __ and the normal name is an alias.  */
10551 #if defined __stub_$ac_func || defined __stub___$ac_func
10552 choke me
10553 #endif
10554
10555 int
10556 main ()
10557 {
10558 return $ac_func ();
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571   (eval "$ac_link") 2>conftest.er1
10572   ac_status=$?
10573   grep -v '^ *+' conftest.er1 >conftest.err
10574   rm -f conftest.er1
10575   cat conftest.err >&5
10576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } && {
10578          test -z "$ac_cxx_werror_flag" ||
10579          test ! -s conftest.err
10580        } && test -s conftest$ac_exeext && {
10581          test "$cross_compiling" = yes ||
10582          $as_test_x conftest$ac_exeext
10583        }; then
10584   eval "$as_ac_var=yes"
10585 else
10586   $as_echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589         eval "$as_ac_var=no"
10590 fi
10591
10592 rm -rf conftest.dSYM
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594       conftest$ac_exeext conftest.$ac_ext
10595 fi
10596 ac_res=`eval 'as_val=${'$as_ac_var'}
10597                  $as_echo "$as_val"'`
10598                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10599 $as_echo "$ac_res" >&6; }
10600 as_val=`eval 'as_val=${'$as_ac_var'}
10601                  $as_echo "$as_val"'`
10602    if test "x$as_val" = x""yes; then
10603   cat >>confdefs.h <<_ACEOF
10604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10605 _ACEOF
10606
10607 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10608 $as_echo_n "checking for _doprnt... " >&6; }
10609 if test "${ac_cv_func__doprnt+set}" = set; then
10610   $as_echo_n "(cached) " >&6
10611 else
10612   cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10620 #define _doprnt innocuous__doprnt
10621
10622 /* System header to define __stub macros and hopefully few prototypes,
10623     which can conflict with char _doprnt (); below.
10624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10625     <limits.h> exists even on freestanding compilers.  */
10626
10627 #ifdef __STDC__
10628 # include <limits.h>
10629 #else
10630 # include <assert.h>
10631 #endif
10632
10633 #undef _doprnt
10634
10635 /* Override any GCC internal prototype to avoid an error.
10636    Use char because int might match the return type of a GCC
10637    builtin and then its argument prototype would still apply.  */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 char _doprnt ();
10642 /* The GNU C library defines this for functions which it implements
10643     to always fail with ENOSYS.  Some functions are actually named
10644     something starting with __ and the normal name is an alias.  */
10645 #if defined __stub__doprnt || defined __stub____doprnt
10646 choke me
10647 #endif
10648
10649 int
10650 main ()
10651 {
10652 return _doprnt ();
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (ac_try="$ac_link"
10659 case "(($ac_try" in
10660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661   *) ac_try_echo=$ac_try;;
10662 esac
10663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10664 $as_echo "$ac_try_echo") >&5
10665   (eval "$ac_link") 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } && {
10672          test -z "$ac_cxx_werror_flag" ||
10673          test ! -s conftest.err
10674        } && test -s conftest$ac_exeext && {
10675          test "$cross_compiling" = yes ||
10676          $as_test_x conftest$ac_exeext
10677        }; then
10678   ac_cv_func__doprnt=yes
10679 else
10680   $as_echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10682
10683         ac_cv_func__doprnt=no
10684 fi
10685
10686 rm -rf conftest.dSYM
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688       conftest$ac_exeext conftest.$ac_ext
10689 fi
10690 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10691 $as_echo "$ac_cv_func__doprnt" >&6; }
10692 if test "x$ac_cv_func__doprnt" = x""yes; then
10693
10694 cat >>confdefs.h <<\_ACEOF
10695 #define HAVE_DOPRNT 1
10696 _ACEOF
10697
10698 fi
10699
10700 fi
10701 done
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10712 do
10713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10715 $as_echo_n "checking for $ac_func... " >&6; }
10716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10717   $as_echo_n "(cached) " >&6
10718 else
10719   cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10727 #define $ac_func innocuous_$ac_func
10728
10729 /* System header to define __stub macros and hopefully few prototypes,
10730     which can conflict with char $ac_func (); below.
10731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732     <limits.h> exists even on freestanding compilers.  */
10733
10734 #ifdef __STDC__
10735 # include <limits.h>
10736 #else
10737 # include <assert.h>
10738 #endif
10739
10740 #undef $ac_func
10741
10742 /* Override any GCC internal prototype to avoid an error.
10743    Use char because int might match the return type of a GCC
10744    builtin and then its argument prototype would still apply.  */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 char $ac_func ();
10749 /* The GNU C library defines this for functions which it implements
10750     to always fail with ENOSYS.  Some functions are actually named
10751     something starting with __ and the normal name is an alias.  */
10752 #if defined __stub_$ac_func || defined __stub___$ac_func
10753 choke me
10754 #endif
10755
10756 int
10757 main ()
10758 {
10759 return $ac_func ();
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771 $as_echo "$ac_try_echo") >&5
10772   (eval "$ac_link") 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } && {
10779          test -z "$ac_cxx_werror_flag" ||
10780          test ! -s conftest.err
10781        } && test -s conftest$ac_exeext && {
10782          test "$cross_compiling" = yes ||
10783          $as_test_x conftest$ac_exeext
10784        }; then
10785   eval "$as_ac_var=yes"
10786 else
10787   $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.$ac_ext >&5
10789
10790         eval "$as_ac_var=no"
10791 fi
10792
10793 rm -rf conftest.dSYM
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795       conftest$ac_exeext conftest.$ac_ext
10796 fi
10797 ac_res=`eval 'as_val=${'$as_ac_var'}
10798                  $as_echo "$as_val"'`
10799                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10800 $as_echo "$ac_res" >&6; }
10801 as_val=`eval 'as_val=${'$as_ac_var'}
10802                  $as_echo "$as_val"'`
10803    if test "x$as_val" = x""yes; then
10804   cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10806 _ACEOF
10807
10808 fi
10809 done
10810
10811
10812
10813     for ac_prog in pkg-config
10814 do
10815   # Extract the first word of "$ac_prog", so it can be a program name with args.
10816 set dummy $ac_prog; ac_word=$2
10817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10820   $as_echo_n "(cached) " >&6
10821 else
10822   if test -n "$PKG_CONFIG"; then
10823   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10824 else
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10827 do
10828   IFS=$as_save_IFS
10829   test -z "$as_dir" && as_dir=.
10830   for ac_exec_ext in '' $ac_executable_extensions; do
10831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10832     ac_cv_prog_PKG_CONFIG="$ac_prog"
10833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10834     break 2
10835   fi
10836 done
10837 done
10838 IFS=$as_save_IFS
10839
10840 fi
10841 fi
10842 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10843 if test -n "$PKG_CONFIG"; then
10844   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10845 $as_echo "$PKG_CONFIG" >&6; }
10846 else
10847   { $as_echo "$as_me:$LINENO: result: no" >&5
10848 $as_echo "no" >&6; }
10849 fi
10850
10851
10852   test -n "$PKG_CONFIG" && break
10853 done
10854 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10855
10856
10857
10858     r="`eval echo '$'"PKG_CONFIG"`"
10859     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10860         true
10861     else
10862         ##STEPMAKE_WARN(cannot find . )
10863         false
10864     fi
10865
10866     if test $? -ne 0; then
10867
10868     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10869
10870         if test "REQUIRED" = "REQUIRED"; then
10871             command="echo ERROR: pkg-config not found"
10872             # abort configure process here?
10873         else
10874             command="- echo pkg-config not found"
10875         fi
10876         eval "PKG_CONFIG"='$command'
10877         false
10878     else
10879         true
10880     fi
10881
10882     if test $? -eq 0 -a -n "0.9.0"; then
10883
10884     r="`eval echo '$'"PKG_CONFIG"`"
10885     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10886 $as_echo_n "checking $r version... " >&6; }
10887     exe=`
10888     ## which doesn't work in ash, if /usr/bin/which isn't installed
10889     ## type -p doesn't work in ash
10890     ## command -v doesn't work in zsh
10891     ## command -v "$r" 2>&1
10892     ## this test should work in ash, bash, pdksh (ksh), zsh
10893     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10894 `
10895     if test -n ""; then
10896         ver=""
10897     else
10898         ver=`
10899     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10900     ##
10901     ## ARG.
10902     ## Workaround for broken Debian gcc version string:
10903     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10904     ##
10905     ## -V: Workaround for python
10906
10907     #dnl
10908
10909     ## Assume and hunt for dotted version multiplet.
10910     ## use eval trickery, because we cannot use multi-level $() instead of ``
10911     ## for compatibility reasons.
10912
10913     ## grab the first version number in  --version output.
10914     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10915                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10916                 head -n 1 |
10917                 tr ' ' '\n' |
10918                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10919                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10920                 head -n 1\`\"
10921
10922     if test -z "$_ver"; then
10923         ## If empty, try date [fontforge]
10924         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10925             | head -n 1 \
10926             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10927     fi
10928     echo "$_ver"
10929     #dnl
10930 `
10931     fi
10932     num=`
10933     echo "$ver" | awk -F. '
10934     {
10935       if ($3) {three = $3}
10936       else {three = 0}
10937     }
10938     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10939 `
10940     req=`
10941     echo "0.9.0" | awk -F. '
10942     {
10943       if ($3) {three = $3}
10944       else {three = 0}
10945     }
10946     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10947 `
10948     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10949 $as_echo "$ver" >&6; }
10950     if test "$num" -lt "$req"; then
10951
10952     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10953
10954     fi
10955     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10956     eval `echo $vervar=$num`
10957 ##    AC_SUBST(`eval echo $vervar`)
10958
10959     fi
10960
10961
10962 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10963 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10964 if test "$reloc_b" = "yes"; then
10965     cat >>confdefs.h <<\_ACEOF
10966 #define ARGV0_RELOCATION 1
10967 _ACEOF
10968
10969 fi
10970 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10971 $as_echo "$reloc_b" >&6; }
10972
10973 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10974 $as_echo_n "checking for rpath linkage... " >&6; }
10975 if test "$rpath_b" = "yes"; then
10976     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10977 elif test "$rpath_b" != "no"; then
10978     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10979 fi
10980 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10981 $as_echo "$rpath_b" >&6; }
10982
10983 HOST_ARCH=`$CC -dumpmachine`
10984
10985
10986
10987
10988   succeeded=no
10989
10990   if test -z "$PKG_CONFIG"; then
10991     # Extract the first word of "pkg-config", so it can be a program name with args.
10992 set dummy pkg-config; ac_word=$2
10993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10996   $as_echo_n "(cached) " >&6
10997 else
10998   case $PKG_CONFIG in
10999   [\\/]* | ?:[\\/]*)
11000   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11001   ;;
11002   *)
11003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11005 do
11006   IFS=$as_save_IFS
11007   test -z "$as_dir" && as_dir=.
11008   for ac_exec_ext in '' $ac_executable_extensions; do
11009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11011     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012     break 2
11013   fi
11014 done
11015 done
11016 IFS=$as_save_IFS
11017
11018   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11019   ;;
11020 esac
11021 fi
11022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11023 if test -n "$PKG_CONFIG"; then
11024   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11025 $as_echo "$PKG_CONFIG" >&6; }
11026 else
11027   { $as_echo "$as_me:$LINENO: result: no" >&5
11028 $as_echo "no" >&6; }
11029 fi
11030
11031
11032   fi
11033
11034   if test "$PKG_CONFIG" = "no" ; then
11035      echo "*** The pkg-config script could not be found. Make sure it is"
11036      echo "*** in your path, or set the PKG_CONFIG environment variable"
11037      echo "*** to the full path to pkg-config."
11038      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11039   else
11040      PKG_CONFIG_MIN_VERSION=0.9.0
11041      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11042         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11043 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11044
11045         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11046             { $as_echo "$as_me:$LINENO: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048             succeeded=yes
11049
11050             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11051 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11052             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11053             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11054 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11055
11056             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11057 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11058             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11059             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11060 $as_echo "$PANGO_FT2_LIBS" >&6; }
11061         else
11062             PANGO_FT2_CFLAGS=""
11063             PANGO_FT2_LIBS=""
11064             ## If we have a custom action on failure, don't print errors, but
11065             ## do set a variable so people can do so.
11066             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11067
11068         fi
11069
11070
11071
11072      fi
11073   fi
11074
11075   if test $succeeded = yes; then
11076      have_pangoft2=yes
11077   else
11078      true
11079   fi
11080
11081     if test "$have_pangoft2" = yes ; then
11082         cat >>confdefs.h <<\_ACEOF
11083 #define HAVE_PANGO16 1
11084 _ACEOF
11085
11086         cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_PANGO_FT2 1
11088 _ACEOF
11089
11090         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11091         save_CPPFLAGS="$CPPFLAGS"
11092         save_LIBS="$LIBS"
11093         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11094         LIBS="$PANGO_FT2_LIBS $LIBS"
11095
11096 for ac_header in pango/pangoft2.h
11097 do
11098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 $as_echo_n "checking for $ac_header... " >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103   $as_echo_n "(cached) " >&6
11104 fi
11105 ac_res=`eval 'as_val=${'$as_ac_Header'}
11106                  $as_echo "$as_val"'`
11107                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11108 $as_echo "$ac_res" >&6; }
11109 else
11110   # Is the header compilable?
11111 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11112 $as_echo_n "checking $ac_header usability... " >&6; }
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119 $ac_includes_default
11120 #include <$ac_header>
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (ac_try="$ac_compile"
11124 case "(($ac_try" in
11125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126   *) ac_try_echo=$ac_try;;
11127 esac
11128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11129 $as_echo "$ac_try_echo") >&5
11130   (eval "$ac_compile") 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } && {
11137          test -z "$ac_cxx_werror_flag" ||
11138          test ! -s conftest.err
11139        } && test -s conftest.$ac_objext; then
11140   ac_header_compiler=yes
11141 else
11142   $as_echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145         ac_header_compiler=no
11146 fi
11147
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11149 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 $as_echo "$ac_header_compiler" >&6; }
11151
11152 # Is the header present?
11153 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11154 $as_echo_n "checking $ac_header presence... " >&6; }
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h.  */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h.  */
11161 #include <$ac_header>
11162 _ACEOF
11163 if { (ac_try="$ac_cpp conftest.$ac_ext"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11169 $as_echo "$ac_try_echo") >&5
11170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } >/dev/null && {
11177          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11178          test ! -s conftest.err
11179        }; then
11180   ac_header_preproc=yes
11181 else
11182   $as_echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11184
11185   ac_header_preproc=no
11186 fi
11187
11188 rm -f conftest.err conftest.$ac_ext
11189 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11190 $as_echo "$ac_header_preproc" >&6; }
11191
11192 # So?  What about this header?
11193 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11194   yes:no: )
11195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11196 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11199     ac_header_preproc=yes
11200     ;;
11201   no:yes:* )
11202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11203 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11205 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11206     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11207 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11208     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11209 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11213 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11214
11215     ;;
11216 esac
11217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11218 $as_echo_n "checking for $ac_header... " >&6; }
11219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220   $as_echo_n "(cached) " >&6
11221 else
11222   eval "$as_ac_Header=\$ac_header_preproc"
11223 fi
11224 ac_res=`eval 'as_val=${'$as_ac_Header'}
11225                  $as_echo "$as_val"'`
11226                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11227 $as_echo "$ac_res" >&6; }
11228
11229 fi
11230 as_val=`eval 'as_val=${'$as_ac_Header'}
11231                  $as_echo "$as_val"'`
11232    if test "x$as_val" = x""yes; then
11233   cat >>confdefs.h <<_ACEOF
11234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11235 _ACEOF
11236
11237 fi
11238
11239 done
11240
11241
11242 for ac_func in pango_ft2_font_map_create_context
11243 do
11244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11246 $as_echo_n "checking for $ac_func... " >&6; }
11247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11248   $as_echo_n "(cached) " >&6
11249 else
11250   cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11258 #define $ac_func innocuous_$ac_func
11259
11260 /* System header to define __stub macros and hopefully few prototypes,
11261     which can conflict with char $ac_func (); below.
11262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263     <limits.h> exists even on freestanding compilers.  */
11264
11265 #ifdef __STDC__
11266 # include <limits.h>
11267 #else
11268 # include <assert.h>
11269 #endif
11270
11271 #undef $ac_func
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274    Use char because int might match the return type of a GCC
11275    builtin and then its argument prototype would still apply.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char $ac_func ();
11280 /* The GNU C library defines this for functions which it implements
11281     to always fail with ENOSYS.  Some functions are actually named
11282     something starting with __ and the normal name is an alias.  */
11283 #if defined __stub_$ac_func || defined __stub___$ac_func
11284 choke me
11285 #endif
11286
11287 int
11288 main ()
11289 {
11290 return $ac_func ();
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303   (eval "$ac_link") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } && {
11310          test -z "$ac_cxx_werror_flag" ||
11311          test ! -s conftest.err
11312        } && test -s conftest$ac_exeext && {
11313          test "$cross_compiling" = yes ||
11314          $as_test_x conftest$ac_exeext
11315        }; then
11316   eval "$as_ac_var=yes"
11317 else
11318   $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         eval "$as_ac_var=no"
11322 fi
11323
11324 rm -rf conftest.dSYM
11325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326       conftest$ac_exeext conftest.$ac_ext
11327 fi
11328 ac_res=`eval 'as_val=${'$as_ac_var'}
11329                  $as_echo "$as_val"'`
11330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332 as_val=`eval 'as_val=${'$as_ac_var'}
11333                  $as_echo "$as_val"'`
11334    if test "x$as_val" = x""yes; then
11335   cat >>confdefs.h <<_ACEOF
11336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 _ACEOF
11338
11339 fi
11340 done
11341
11342
11343
11344         CPPFLAGS="$save_CPPFLAGS"
11345         LIBS="$save_LIBS"
11346     else
11347         # UGR
11348         #r="libpangoft2-dev or pangoft2-devel"e
11349         r="libpango1.0-dev or pango?-devel"
11350         ver="`pkg-config --modversion pangoft2`"
11351
11352     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11353
11354     fi
11355
11356
11357
11358   succeeded=no
11359
11360   if test -z "$PKG_CONFIG"; then
11361     # Extract the first word of "pkg-config", so it can be a program name with args.
11362 set dummy pkg-config; ac_word=$2
11363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11366   $as_echo_n "(cached) " >&6
11367 else
11368   case $PKG_CONFIG in
11369   [\\/]* | ?:[\\/]*)
11370   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11371   ;;
11372   *)
11373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376   IFS=$as_save_IFS
11377   test -z "$as_dir" && as_dir=.
11378   for ac_exec_ext in '' $ac_executable_extensions; do
11379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11380     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382     break 2
11383   fi
11384 done
11385 done
11386 IFS=$as_save_IFS
11387
11388   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11389   ;;
11390 esac
11391 fi
11392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11393 if test -n "$PKG_CONFIG"; then
11394   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11395 $as_echo "$PKG_CONFIG" >&6; }
11396 else
11397   { $as_echo "$as_me:$LINENO: result: no" >&5
11398 $as_echo "no" >&6; }
11399 fi
11400
11401
11402   fi
11403
11404   if test "$PKG_CONFIG" = "no" ; then
11405      echo "*** The pkg-config script could not be found. Make sure it is"
11406      echo "*** in your path, or set the PKG_CONFIG environment variable"
11407      echo "*** to the full path to pkg-config."
11408      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11409   else
11410      PKG_CONFIG_MIN_VERSION=0.9.0
11411      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11412         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11413 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11414
11415         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11416             { $as_echo "$as_me:$LINENO: result: yes" >&5
11417 $as_echo "yes" >&6; }
11418             succeeded=yes
11419
11420             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11421 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11422             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11423             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11424 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11425
11426             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11427 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11428             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11429             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11430 $as_echo "$FONTCONFIG_LIBS" >&6; }
11431         else
11432             FONTCONFIG_CFLAGS=""
11433             FONTCONFIG_LIBS=""
11434             ## If we have a custom action on failure, don't print errors, but
11435             ## do set a variable so people can do so.
11436             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11437
11438         fi
11439
11440
11441
11442      fi
11443   fi
11444
11445   if test $succeeded = yes; then
11446      have_fontconfig=yes
11447   else
11448      true
11449   fi
11450
11451     if test "$have_fontconfig" = yes ; then
11452         cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_FONTCONFIG 1
11454 _ACEOF
11455
11456         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11457         save_CPPFLAGS="$CPPFLAGS"
11458         save_LIBS="$LIBS"
11459         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11460         LIBS="$FONTCONFIG_LIBS $LIBS"
11461
11462
11463         CPPFLAGS="$save_CPPFLAGS"
11464         LIBS="$save_LIBS"
11465     else
11466         r="libfontconfig-dev or fontconfig-devel"
11467         ver="`pkg-config --modversion fontconfig`"
11468
11469     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11470
11471     fi
11472
11473
11474
11475   succeeded=no
11476
11477   if test -z "$PKG_CONFIG"; then
11478     # Extract the first word of "pkg-config", so it can be a program name with args.
11479 set dummy pkg-config; ac_word=$2
11480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11483   $as_echo_n "(cached) " >&6
11484 else
11485   case $PKG_CONFIG in
11486   [\\/]* | ?:[\\/]*)
11487   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11488   ;;
11489   *)
11490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11492 do
11493   IFS=$as_save_IFS
11494   test -z "$as_dir" && as_dir=.
11495   for ac_exec_ext in '' $ac_executable_extensions; do
11496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11498     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11499     break 2
11500   fi
11501 done
11502 done
11503 IFS=$as_save_IFS
11504
11505   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11506   ;;
11507 esac
11508 fi
11509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11510 if test -n "$PKG_CONFIG"; then
11511   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11512 $as_echo "$PKG_CONFIG" >&6; }
11513 else
11514   { $as_echo "$as_me:$LINENO: result: no" >&5
11515 $as_echo "no" >&6; }
11516 fi
11517
11518
11519   fi
11520
11521   if test "$PKG_CONFIG" = "no" ; then
11522      echo "*** The pkg-config script could not be found. Make sure it is"
11523      echo "*** in your path, or set the PKG_CONFIG environment variable"
11524      echo "*** to the full path to pkg-config."
11525      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11526   else
11527      PKG_CONFIG_MIN_VERSION=0.9.0
11528      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11530 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11531
11532         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11533             { $as_echo "$as_me:$LINENO: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535             succeeded=yes
11536
11537             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11538 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11539             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11540             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11541 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11542
11543             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11544 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11545             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11546             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11547 $as_echo "$FREETYPE2_LIBS" >&6; }
11548         else
11549             FREETYPE2_CFLAGS=""
11550             FREETYPE2_LIBS=""
11551             ## If we have a custom action on failure, don't print errors, but
11552             ## do set a variable so people can do so.
11553             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11554
11555         fi
11556
11557
11558
11559      fi
11560   fi
11561
11562   if test $succeeded = yes; then
11563      have_freetype2=yes
11564   else
11565      true
11566   fi
11567
11568     if test "$have_freetype2" = yes; then
11569         cat >>confdefs.h <<\_ACEOF
11570 #define HAVE_FREETYPE2 1
11571 _ACEOF
11572
11573         save_CPPFLAGS="$CPPFLAGS"
11574         save_LIBS="$LIBS"
11575         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11576         LIBS="$FREETYPE2_LIBS $LIBS"
11577
11578
11579         CPPFLAGS="$save_CPPFLAGS"
11580         LIBS="$save_LIBS"
11581     else
11582         # UGR
11583         #r="libfreetype2-dev or freetype2-devel"
11584         r="libfreetype6-dev or freetype?-devel"
11585         ver="`pkg-config --modversion freetype2`"
11586
11587     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11588
11589     fi
11590
11591
11592
11593     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11594 $as_echo_n "checking host system type... " >&6; }
11595 if test "${ac_cv_host+set}" = set; then
11596   $as_echo_n "(cached) " >&6
11597 else
11598   if test "x$host_alias" = x; then
11599   ac_cv_host=$ac_cv_build
11600 else
11601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11602     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11603 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11604    { (exit 1); exit 1; }; }
11605 fi
11606
11607 fi
11608 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11609 $as_echo "$ac_cv_host" >&6; }
11610 case $ac_cv_host in
11611 *-*-*) ;;
11612 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11613 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11614    { (exit 1); exit 1; }; };;
11615 esac
11616 host=$ac_cv_host
11617 ac_save_IFS=$IFS; IFS='-'
11618 set x $ac_cv_host
11619 shift
11620 host_cpu=$1
11621 host_vendor=$2
11622 shift; shift
11623 # Remember, the first character of IFS is used to create $*,
11624 # except with old shells:
11625 host_os=$*
11626 IFS=$ac_save_IFS
11627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11628
11629
11630 case $host_os in
11631   *cygwin* ) CYGWIN=yes;;
11632          * ) CYGWIN=no;;
11633 esac
11634
11635     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11636 $as_echo_n "checking host system type... " >&6; }
11637 if test "${ac_cv_host+set}" = set; then
11638   $as_echo_n "(cached) " >&6
11639 else
11640   if test "x$host_alias" = x; then
11641   ac_cv_host=$ac_cv_build
11642 else
11643   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11644     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11645 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11646    { (exit 1); exit 1; }; }
11647 fi
11648
11649 fi
11650 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11651 $as_echo "$ac_cv_host" >&6; }
11652 case $ac_cv_host in
11653 *-*-*) ;;
11654 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11655 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11656    { (exit 1); exit 1; }; };;
11657 esac
11658 host=$ac_cv_host
11659 ac_save_IFS=$IFS; IFS='-'
11660 set x $ac_cv_host
11661 shift
11662 host_cpu=$1
11663 host_vendor=$2
11664 shift; shift
11665 # Remember, the first character of IFS is used to create $*,
11666 # except with old shells:
11667 host_os=$*
11668 IFS=$ac_save_IFS
11669 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11670
11671
11672 case $host_os in
11673   *mingw32* ) MINGW32=yes;;
11674           * ) MINGW32=no;;
11675 esac
11676
11677
11678     if test "$CYGWIN" = "yes"; then
11679         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11680         program_suffix=.exe
11681         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11682     elif test "$MINGW32" = "yes"; then
11683         LN='cp -r'
11684         LN_S='cp -r'
11685         program_suffix=.exe
11686         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11687         PATHSEP=';'
11688     fi
11689
11690
11691
11692     cat >>confdefs.h <<_ACEOF
11693 #define DIRSEP '${DIRSEP}'
11694 _ACEOF
11695
11696     cat >>confdefs.h <<_ACEOF
11697 #define PATHSEP '${PATHSEP}'
11698 _ACEOF
11699
11700
11701
11702
11703
11704     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11705 $as_echo_n "checking for some flavor of Windows... " >&6; }
11706     if test "$CYGWIN$MINGW32" = "nono"; then
11707         PLATFORM_WINDOWS=no
11708     else
11709         PLATFORM_WINDOWS=yes
11710     fi
11711     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11712 $as_echo "$PLATFORM_WINDOWS" >&6; }
11713
11714
11715     for ac_prog in $target-windres windres
11716 do
11717   # Extract the first word of "$ac_prog", so it can be a program name with args.
11718 set dummy $ac_prog; ac_word=$2
11719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if test "${ac_cv_prog_WINDRES+set}" = set; then
11722   $as_echo_n "(cached) " >&6
11723 else
11724   if test -n "$WINDRES"; then
11725   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11726 else
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11729 do
11730   IFS=$as_save_IFS
11731   test -z "$as_dir" && as_dir=.
11732   for ac_exec_ext in '' $ac_executable_extensions; do
11733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11734     ac_cv_prog_WINDRES="$ac_prog"
11735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736     break 2
11737   fi
11738 done
11739 done
11740 IFS=$as_save_IFS
11741
11742 fi
11743 fi
11744 WINDRES=$ac_cv_prog_WINDRES
11745 if test -n "$WINDRES"; then
11746   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11747 $as_echo "$WINDRES" >&6; }
11748 else
11749   { $as_echo "$as_me:$LINENO: result: no" >&5
11750 $as_echo "no" >&6; }
11751 fi
11752
11753
11754   test -n "$WINDRES" && break
11755 done
11756 test -n "$WINDRES" || WINDRES="no"
11757
11758
11759
11760     r="`eval echo '$'"WINDRES"`"
11761     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11762         true
11763     else
11764         ##STEPMAKE_WARN(cannot find . )
11765         false
11766     fi
11767
11768     if test $? -ne 0; then
11769
11770     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11771
11772         if test "x" = "REQUIRED"; then
11773             command="echo ERROR: $target-windres windres not found"
11774             # abort configure process here?
11775         else
11776             command="- echo $target-windres windres not found"
11777         fi
11778         eval "WINDRES"='$command'
11779         false
11780     else
11781         true
11782     fi
11783
11784     if test $? -eq 0 -a -n ""; then
11785
11786     r="`eval echo '$'"WINDRES"`"
11787     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11788 $as_echo_n "checking $r version... " >&6; }
11789     exe=`
11790     ## which doesn't work in ash, if /usr/bin/which isn't installed
11791     ## type -p doesn't work in ash
11792     ## command -v doesn't work in zsh
11793     ## command -v "$r" 2>&1
11794     ## this test should work in ash, bash, pdksh (ksh), zsh
11795     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11796 `
11797     if test -n ""; then
11798         ver=""
11799     else
11800         ver=`
11801     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11802     ##
11803     ## ARG.
11804     ## Workaround for broken Debian gcc version string:
11805     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11806     ##
11807     ## -V: Workaround for python
11808
11809     #dnl
11810
11811     ## Assume and hunt for dotted version multiplet.
11812     ## use eval trickery, because we cannot use multi-level $() instead of ``
11813     ## for compatibility reasons.
11814
11815     ## grab the first version number in  --version output.
11816     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11817                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11818                 head -n 1 |
11819                 tr ' ' '\n' |
11820                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11821                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11822                 head -n 1\`\"
11823
11824     if test -z "$_ver"; then
11825         ## If empty, try date [fontforge]
11826         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11827             | head -n 1 \
11828             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11829     fi
11830     echo "$_ver"
11831     #dnl
11832 `
11833     fi
11834     num=`
11835     echo "$ver" | awk -F. '
11836     {
11837       if ($3) {three = $3}
11838       else {three = 0}
11839     }
11840     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11841 `
11842     req=`
11843     echo "" | awk -F. '
11844     {
11845       if ($3) {three = $3}
11846       else {three = 0}
11847     }
11848     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11849 `
11850     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11851 $as_echo "$ver" >&6; }
11852     if test "$num" -lt "$req"; then
11853
11854     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
11855
11856     fi
11857     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11858     eval `echo $vervar=$num`
11859 ##    AC_SUBST(`eval echo $vervar`)
11860
11861     fi
11862
11863
11864
11865
11866 # guile executable for some scripts
11867
11868     { $as_echo "$as_me:$LINENO: checking for guile" >&5
11869 $as_echo_n "checking for guile... " >&6; }
11870     guile="guile"
11871     found="no"
11872     for r in $GUILE guile guile2 guile2.0 guile-2.0 guile1 guile1.9 guile1.8 guile-1 guile-1.9 guile-1.8; do
11873         exe=`
11874     ## which doesn't work in ash, if /usr/bin/which isn't installed
11875     ## type -p doesn't work in ash
11876     ## command -v doesn't work in zsh
11877     ## command -v "$r" 2>&1
11878     ## this test should work in ash, bash, pdksh (ksh), zsh
11879     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11880 `
11881         if ! $exe --version > /dev/null 2>&1 ; then
11882             continue
11883         fi
11884         ver=`
11885     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11886     ##
11887     ## ARG.
11888     ## Workaround for broken Debian gcc version string:
11889     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11890     ##
11891     ## -V: Workaround for python
11892
11893     #dnl
11894
11895     ## Assume and hunt for dotted version multiplet.
11896     ## use eval trickery, because we cannot use multi-level $() instead of ``
11897     ## for compatibility reasons.
11898
11899     ## grab the first version number in  --version output.
11900     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11901                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11902                 head -n 1 |
11903                 tr ' ' '\n' |
11904                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11905                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11906                 head -n 1\`\"
11907
11908     if test -z "$_ver"; then
11909         ## If empty, try date [fontforge]
11910         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11911             | head -n 1 \
11912             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11913     fi
11914     echo "$_ver"
11915     #dnl
11916 `
11917         num=`
11918     echo "$ver" | awk -F. '
11919     {
11920       if ($3) {three = $3}
11921       else {three = 0}
11922     }
11923     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11924 `
11925         req=`
11926     echo "1.8.2" | awk -F. '
11927     {
11928       if ($3) {three = $3}
11929       else {three = 0}
11930     }
11931     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11932 `
11933         sup=`
11934     echo "1.9.0" | awk -F. '
11935     {
11936       if ($3) {three = $3}
11937       else {three = 0}
11938     }
11939     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11940 `
11941         if test -n "1.8.2" && test "$num" -lt "$req"; then
11942             guile="$r >= 1.8.2 (installed: $ver)"
11943             continue
11944         else
11945             if test -n "1.9.0" && test "$num" -ge "$sup"; then
11946                 guile="$r < 1.9.0 (installed: $ver)"
11947                 continue
11948             else
11949                 guile=$r
11950                 found=$r
11951                 break
11952             fi
11953         fi
11954     done
11955     { $as_echo "$as_me:$LINENO: result: $found" >&5
11956 $as_echo "$found" >&6; }
11957     if test "$found" != "no"; then
11958         { $as_echo "$as_me:$LINENO: checking $guile version" >&5
11959 $as_echo_n "checking $guile version... " >&6; }
11960         { $as_echo "$as_me:$LINENO: result: $ver" >&5
11961 $as_echo "$ver" >&6; }
11962         GUILE=$found
11963     else
11964
11965     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
11966
11967     fi
11968
11969     for ac_prog in $GUILE
11970 do
11971   # Extract the first word of "$ac_prog", so it can be a program name with args.
11972 set dummy $ac_prog; ac_word=$2
11973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if test "${ac_cv_prog_GUILE+set}" = set; then
11976   $as_echo_n "(cached) " >&6
11977 else
11978   if test -n "$GUILE"; then
11979   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11980 else
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11983 do
11984   IFS=$as_save_IFS
11985   test -z "$as_dir" && as_dir=.
11986   for ac_exec_ext in '' $ac_executable_extensions; do
11987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988     ac_cv_prog_GUILE="$ac_prog"
11989     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11990     break 2
11991   fi
11992 done
11993 done
11994 IFS=$as_save_IFS
11995
11996 fi
11997 fi
11998 GUILE=$ac_cv_prog_GUILE
11999 if test -n "$GUILE"; then
12000   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12001 $as_echo "$GUILE" >&6; }
12002 else
12003   { $as_echo "$as_me:$LINENO: result: no" >&5
12004 $as_echo "no" >&6; }
12005 fi
12006
12007
12008   test -n "$GUILE" && break
12009 done
12010 test -n "$GUILE" || GUILE="no"
12011
12012
12013
12014     r="`eval echo '$'"GUILE"`"
12015     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12016         true
12017     else
12018         ##STEPMAKE_WARN(cannot find . )
12019         false
12020     fi
12021
12022     if test $? -ne 0; then
12023
12024     eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12025
12026         if test "" = "REQUIRED"; then
12027             command="echo ERROR: $GUILE not found"
12028             # abort configure process here?
12029         else
12030             command="- echo $GUILE not found"
12031         fi
12032         eval "GUILE"='$command'
12033         false
12034     else
12035         true
12036     fi
12037
12038     if test $? -eq 0; then
12039         for ac_prog in $GUILE
12040 do
12041   # Extract the first word of "$ac_prog", so it can be a program name with args.
12042 set dummy $ac_prog; ac_word=$2
12043 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_path_GUILE+set}" = set; then
12046   $as_echo_n "(cached) " >&6
12047 else
12048   case $GUILE in
12049   [\\/]* | ?:[\\/]*)
12050   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12051   ;;
12052   *)
12053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12055 do
12056   IFS=$as_save_IFS
12057   test -z "$as_dir" && as_dir=.
12058   for ac_exec_ext in '' $ac_executable_extensions; do
12059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12061     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12062     break 2
12063   fi
12064 done
12065 done
12066 IFS=$as_save_IFS
12067
12068   ;;
12069 esac
12070 fi
12071 GUILE=$ac_cv_path_GUILE
12072 if test -n "$GUILE"; then
12073   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12074 $as_echo "$GUILE" >&6; }
12075 else
12076   { $as_echo "$as_me:$LINENO: result: no" >&5
12077 $as_echo "no" >&6; }
12078 fi
12079
12080
12081   test -n "$GUILE" && break
12082 done
12083
12084         if test -n ""; then
12085
12086     r="`eval echo '$'"GUILE"`"
12087     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12088 $as_echo_n "checking $r version... " >&6; }
12089     exe=`
12090     ## which doesn't work in ash, if /usr/bin/which isn't installed
12091     ## type -p doesn't work in ash
12092     ## command -v doesn't work in zsh
12093     ## command -v "$r" 2>&1
12094     ## this test should work in ash, bash, pdksh (ksh), zsh
12095     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12096 `
12097     if test -n ""; then
12098         ver=""
12099     else
12100         ver=`
12101     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12102     ##
12103     ## ARG.
12104     ## Workaround for broken Debian gcc version string:
12105     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12106     ##
12107     ## -V: Workaround for python
12108
12109     #dnl
12110
12111     ## Assume and hunt for dotted version multiplet.
12112     ## use eval trickery, because we cannot use multi-level $() instead of ``
12113     ## for compatibility reasons.
12114
12115     ## grab the first version number in  --version output.
12116     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12117                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12118                 head -n 1 |
12119                 tr ' ' '\n' |
12120                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12121                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12122                 head -n 1\`\"
12123
12124     if test -z "$_ver"; then
12125         ## If empty, try date [fontforge]
12126         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12127             | head -n 1 \
12128             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12129     fi
12130     echo "$_ver"
12131     #dnl
12132 `
12133     fi
12134     num=`
12135     echo "$ver" | awk -F. '
12136     {
12137       if ($3) {three = $3}
12138       else {three = 0}
12139     }
12140     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12141 `
12142     req=`
12143     echo "" | awk -F. '
12144     {
12145       if ($3) {three = $3}
12146       else {three = 0}
12147     }
12148     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12149 `
12150     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12151 $as_echo "$ver" >&6; }
12152     if test "$num" -lt "$req"; then
12153
12154     eval ""=\"`eval echo \"'$'\" \""$r >=  (installed: $ver)"\"`\"
12155
12156     fi
12157     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12158     eval `echo $vervar=$num`
12159 ##    AC_SUBST(`eval echo $vervar`)
12160
12161         fi
12162     fi
12163
12164
12165
12166 # perl for help2man and for mf2pt1.pl
12167
12168
12169     for ac_prog in perl
12170 do
12171   # Extract the first word of "$ac_prog", so it can be a program name with args.
12172 set dummy $ac_prog; ac_word=$2
12173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if test "${ac_cv_prog_PERL+set}" = set; then
12176   $as_echo_n "(cached) " >&6
12177 else
12178   if test -n "$PERL"; then
12179   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186   for ac_exec_ext in '' $ac_executable_extensions; do
12187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12188     ac_cv_prog_PERL="$ac_prog"
12189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12190     break 2
12191   fi
12192 done
12193 done
12194 IFS=$as_save_IFS
12195
12196 fi
12197 fi
12198 PERL=$ac_cv_prog_PERL
12199 if test -n "$PERL"; then
12200   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12201 $as_echo "$PERL" >&6; }
12202 else
12203   { $as_echo "$as_me:$LINENO: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206
12207
12208   test -n "$PERL" && break
12209 done
12210 test -n "$PERL" || PERL="no"
12211
12212
12213
12214     r="`eval echo '$'"PERL"`"
12215     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12216         true
12217     else
12218         ##STEPMAKE_WARN(cannot find . )
12219         false
12220     fi
12221
12222     if test $? -ne 0; then
12223
12224     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12225
12226         if test "REQUIRED" = "REQUIRED"; then
12227             command="echo ERROR: perl not found"
12228             # abort configure process here?
12229         else
12230             command="- echo perl not found"
12231         fi
12232         eval "PERL"='$command'
12233         false
12234     else
12235         true
12236     fi
12237
12238     if test $? -eq 0; then
12239         for ac_prog in perl
12240 do
12241   # Extract the first word of "$ac_prog", so it can be a program name with args.
12242 set dummy $ac_prog; ac_word=$2
12243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if test "${ac_cv_path_PERL+set}" = set; then
12246   $as_echo_n "(cached) " >&6
12247 else
12248   case $PERL in
12249   [\\/]* | ?:[\\/]*)
12250   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12251   ;;
12252   *)
12253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12255 do
12256   IFS=$as_save_IFS
12257   test -z "$as_dir" && as_dir=.
12258   for ac_exec_ext in '' $ac_executable_extensions; do
12259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12262     break 2
12263   fi
12264 done
12265 done
12266 IFS=$as_save_IFS
12267
12268   ;;
12269 esac
12270 fi
12271 PERL=$ac_cv_path_PERL
12272 if test -n "$PERL"; then
12273   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12274 $as_echo "$PERL" >&6; }
12275 else
12276   { $as_echo "$as_me:$LINENO: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279
12280
12281   test -n "$PERL" && break
12282 done
12283
12284         if test -n ""; then
12285
12286     r="`eval echo '$'"PERL"`"
12287     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12288 $as_echo_n "checking $r version... " >&6; }
12289     exe=`
12290     ## which doesn't work in ash, if /usr/bin/which isn't installed
12291     ## type -p doesn't work in ash
12292     ## command -v doesn't work in zsh
12293     ## command -v "$r" 2>&1
12294     ## this test should work in ash, bash, pdksh (ksh), zsh
12295     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12296 `
12297     if test -n ""; then
12298         ver=""
12299     else
12300         ver=`
12301     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12302     ##
12303     ## ARG.
12304     ## Workaround for broken Debian gcc version string:
12305     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12306     ##
12307     ## -V: Workaround for python
12308
12309     #dnl
12310
12311     ## Assume and hunt for dotted version multiplet.
12312     ## use eval trickery, because we cannot use multi-level $() instead of ``
12313     ## for compatibility reasons.
12314
12315     ## grab the first version number in  --version output.
12316     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12317                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12318                 head -n 1 |
12319                 tr ' ' '\n' |
12320                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12321                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12322                 head -n 1\`\"
12323
12324     if test -z "$_ver"; then
12325         ## If empty, try date [fontforge]
12326         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12327             | head -n 1 \
12328             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12329     fi
12330     echo "$_ver"
12331     #dnl
12332 `
12333     fi
12334     num=`
12335     echo "$ver" | awk -F. '
12336     {
12337       if ($3) {three = $3}
12338       else {three = 0}
12339     }
12340     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12341 `
12342     req=`
12343     echo "" | awk -F. '
12344     {
12345       if ($3) {three = $3}
12346       else {three = 0}
12347     }
12348     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12349 `
12350     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12351 $as_echo "$ver" >&6; }
12352     if test "$num" -lt "$req"; then
12353
12354     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
12355
12356     fi
12357     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12358     eval `echo $vervar=$num`
12359 ##    AC_SUBST(`eval echo $vervar`)
12360
12361         fi
12362     fi
12363
12364
12365
12366 ## Optional tools for building documentation, website, extra fonts.
12367 if test "$DOCUMENTATION" = "yes"; then
12368   DOCUMENTATION_REQUIRED=REQUIRED
12369 else
12370   DOCUMENTATION_REQUIRED=OPTIONAL
12371 fi
12372
12373
12374     for ac_prog in gs
12375 do
12376   # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
12381   $as_echo_n "(cached) " >&6
12382 else
12383   if test -n "$GHOSTSCRIPT"; then
12384   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
12385 else
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12388 do
12389   IFS=$as_save_IFS
12390   test -z "$as_dir" && as_dir=.
12391   for ac_exec_ext in '' $ac_executable_extensions; do
12392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12393     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
12394     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12395     break 2
12396   fi
12397 done
12398 done
12399 IFS=$as_save_IFS
12400
12401 fi
12402 fi
12403 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
12404 if test -n "$GHOSTSCRIPT"; then
12405   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
12406 $as_echo "$GHOSTSCRIPT" >&6; }
12407 else
12408   { $as_echo "$as_me:$LINENO: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413   test -n "$GHOSTSCRIPT" && break
12414 done
12415 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
12416
12417
12418
12419     r="`eval echo '$'"GHOSTSCRIPT"`"
12420     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
12421         true
12422     else
12423         ##STEPMAKE_WARN(cannot find . )
12424         false
12425     fi
12426
12427     if test $? -ne 0; then
12428
12429     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
12430
12431         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12432             command="echo ERROR: gs not found"
12433             # abort configure process here?
12434         else
12435             command="- echo gs not found"
12436         fi
12437         eval "GHOSTSCRIPT"='$command'
12438         false
12439     else
12440         true
12441     fi
12442
12443     if test $? -eq 0; then
12444         for ac_prog in gs
12445 do
12446   # Extract the first word of "$ac_prog", so it can be a program name with args.
12447 set dummy $ac_prog; ac_word=$2
12448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
12451   $as_echo_n "(cached) " >&6
12452 else
12453   case $GHOSTSCRIPT in
12454   [\\/]* | ?:[\\/]*)
12455   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
12456   ;;
12457   *)
12458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12460 do
12461   IFS=$as_save_IFS
12462   test -z "$as_dir" && as_dir=.
12463   for ac_exec_ext in '' $ac_executable_extensions; do
12464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
12466     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12467     break 2
12468   fi
12469 done
12470 done
12471 IFS=$as_save_IFS
12472
12473   ;;
12474 esac
12475 fi
12476 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
12477 if test -n "$GHOSTSCRIPT"; then
12478   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
12479 $as_echo "$GHOSTSCRIPT" >&6; }
12480 else
12481   { $as_echo "$as_me:$LINENO: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484
12485
12486   test -n "$GHOSTSCRIPT" && break
12487 done
12488
12489         if test -n "8.60"; then
12490
12491     r="`eval echo '$'"GHOSTSCRIPT"`"
12492     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12493 $as_echo_n "checking $r version... " >&6; }
12494     exe=`
12495     ## which doesn't work in ash, if /usr/bin/which isn't installed
12496     ## type -p doesn't work in ash
12497     ## command -v doesn't work in zsh
12498     ## command -v "$r" 2>&1
12499     ## this test should work in ash, bash, pdksh (ksh), zsh
12500     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12501 `
12502     if test -n ""; then
12503         ver=""
12504     else
12505         ver=`
12506     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12507     ##
12508     ## ARG.
12509     ## Workaround for broken Debian gcc version string:
12510     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12511     ##
12512     ## -V: Workaround for python
12513
12514     #dnl
12515
12516     ## Assume and hunt for dotted version multiplet.
12517     ## use eval trickery, because we cannot use multi-level $() instead of ``
12518     ## for compatibility reasons.
12519
12520     ## grab the first version number in  --version output.
12521     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12522                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12523                 head -n 1 |
12524                 tr ' ' '\n' |
12525                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12526                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12527                 head -n 1\`\"
12528
12529     if test -z "$_ver"; then
12530         ## If empty, try date [fontforge]
12531         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12532             | head -n 1 \
12533             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12534     fi
12535     echo "$_ver"
12536     #dnl
12537 `
12538     fi
12539     num=`
12540     echo "$ver" | awk -F. '
12541     {
12542       if ($3) {three = $3}
12543       else {three = 0}
12544     }
12545     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12546 `
12547     req=`
12548     echo "8.60" | awk -F. '
12549     {
12550       if ($3) {three = $3}
12551       else {three = 0}
12552     }
12553     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12554 `
12555     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12556 $as_echo "$ver" >&6; }
12557     if test "$num" -lt "$req"; then
12558
12559     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
12560
12561     fi
12562     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
12563     eval `echo $vervar=$num`
12564 ##    AC_SUBST(`eval echo $vervar`)
12565
12566         fi
12567     fi
12568
12569
12570
12571     for ac_prog in makeinfo
12572 do
12573   # Extract the first word of "$ac_prog", so it can be a program name with args.
12574 set dummy $ac_prog; ac_word=$2
12575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12578   $as_echo_n "(cached) " >&6
12579 else
12580   if test -n "$MAKEINFO"; then
12581   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12582 else
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12585 do
12586   IFS=$as_save_IFS
12587   test -z "$as_dir" && as_dir=.
12588   for ac_exec_ext in '' $ac_executable_extensions; do
12589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12590     ac_cv_prog_MAKEINFO="$ac_prog"
12591     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12592     break 2
12593   fi
12594 done
12595 done
12596 IFS=$as_save_IFS
12597
12598 fi
12599 fi
12600 MAKEINFO=$ac_cv_prog_MAKEINFO
12601 if test -n "$MAKEINFO"; then
12602   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12603 $as_echo "$MAKEINFO" >&6; }
12604 else
12605   { $as_echo "$as_me:$LINENO: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608
12609
12610   test -n "$MAKEINFO" && break
12611 done
12612 test -n "$MAKEINFO" || MAKEINFO="no"
12613
12614
12615
12616     r="`eval echo '$'"MAKEINFO"`"
12617     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12618         true
12619     else
12620         ##STEPMAKE_WARN(cannot find . )
12621         false
12622     fi
12623
12624     if test $? -ne 0; then
12625
12626     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12627
12628         if test "REQUIRED" = "REQUIRED"; then
12629             command="echo ERROR: makeinfo not found"
12630             # abort configure process here?
12631         else
12632             command="- echo makeinfo not found"
12633         fi
12634         eval "MAKEINFO"='$command'
12635         false
12636     else
12637         true
12638     fi
12639
12640     if test $? -eq 0 -a -n "4.11"; then
12641
12642     r="`eval echo '$'"MAKEINFO"`"
12643     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12644 $as_echo_n "checking $r version... " >&6; }
12645     exe=`
12646     ## which doesn't work in ash, if /usr/bin/which isn't installed
12647     ## type -p doesn't work in ash
12648     ## command -v doesn't work in zsh
12649     ## command -v "$r" 2>&1
12650     ## this test should work in ash, bash, pdksh (ksh), zsh
12651     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12652 `
12653     if test -n ""; then
12654         ver=""
12655     else
12656         ver=`
12657     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12658     ##
12659     ## ARG.
12660     ## Workaround for broken Debian gcc version string:
12661     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12662     ##
12663     ## -V: Workaround for python
12664
12665     #dnl
12666
12667     ## Assume and hunt for dotted version multiplet.
12668     ## use eval trickery, because we cannot use multi-level $() instead of ``
12669     ## for compatibility reasons.
12670
12671     ## grab the first version number in  --version output.
12672     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12673                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12674                 head -n 1 |
12675                 tr ' ' '\n' |
12676                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12677                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12678                 head -n 1\`\"
12679
12680     if test -z "$_ver"; then
12681         ## If empty, try date [fontforge]
12682         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12683             | head -n 1 \
12684             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12685     fi
12686     echo "$_ver"
12687     #dnl
12688 `
12689     fi
12690     num=`
12691     echo "$ver" | awk -F. '
12692     {
12693       if ($3) {three = $3}
12694       else {three = 0}
12695     }
12696     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12697 `
12698     req=`
12699     echo "4.11" | awk -F. '
12700     {
12701       if ($3) {three = $3}
12702       else {three = 0}
12703     }
12704     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12705 `
12706     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12707 $as_echo "$ver" >&6; }
12708     if test "$num" -lt "$req"; then
12709
12710     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12711
12712     fi
12713     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12714     eval `echo $vervar=$num`
12715 ##    AC_SUBST(`eval echo $vervar`)
12716
12717     fi
12718
12719
12720     for ac_prog in texi2html
12721 do
12722   # Extract the first word of "$ac_prog", so it can be a program name with args.
12723 set dummy $ac_prog; ac_word=$2
12724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12727   $as_echo_n "(cached) " >&6
12728 else
12729   if test -n "$TEXI2HTML"; then
12730   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12731 else
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735   IFS=$as_save_IFS
12736   test -z "$as_dir" && as_dir=.
12737   for ac_exec_ext in '' $ac_executable_extensions; do
12738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739     ac_cv_prog_TEXI2HTML="$ac_prog"
12740     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12741     break 2
12742   fi
12743 done
12744 done
12745 IFS=$as_save_IFS
12746
12747 fi
12748 fi
12749 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12750 if test -n "$TEXI2HTML"; then
12751   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12752 $as_echo "$TEXI2HTML" >&6; }
12753 else
12754   { $as_echo "$as_me:$LINENO: result: no" >&5
12755 $as_echo "no" >&6; }
12756 fi
12757
12758
12759   test -n "$TEXI2HTML" && break
12760 done
12761 test -n "$TEXI2HTML" || TEXI2HTML="no"
12762
12763
12764
12765     r="`eval echo '$'"TEXI2HTML"`"
12766     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12767         true
12768     else
12769         ##STEPMAKE_WARN(cannot find . )
12770         false
12771     fi
12772
12773     if test $? -ne 0; then
12774
12775     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
12776
12777         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12778             command="echo ERROR: texi2html not found"
12779             # abort configure process here?
12780         else
12781             command="- echo texi2html not found"
12782         fi
12783         eval "TEXI2HTML"='$command'
12784         false
12785     else
12786         true
12787     fi
12788
12789     if test $? -eq 0 -a -n "1.82"; then
12790
12791     r="`eval echo '$'"TEXI2HTML"`"
12792     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12793 $as_echo_n "checking $r version... " >&6; }
12794     exe=`
12795     ## which doesn't work in ash, if /usr/bin/which isn't installed
12796     ## type -p doesn't work in ash
12797     ## command -v doesn't work in zsh
12798     ## command -v "$r" 2>&1
12799     ## this test should work in ash, bash, pdksh (ksh), zsh
12800     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12801 `
12802     if test -n ""; then
12803         ver=""
12804     else
12805         ver=`
12806     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12807     ##
12808     ## ARG.
12809     ## Workaround for broken Debian gcc version string:
12810     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12811     ##
12812     ## -V: Workaround for python
12813
12814     #dnl
12815
12816     ## Assume and hunt for dotted version multiplet.
12817     ## use eval trickery, because we cannot use multi-level $() instead of ``
12818     ## for compatibility reasons.
12819
12820     ## grab the first version number in  --version output.
12821     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12822                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12823                 head -n 1 |
12824                 tr ' ' '\n' |
12825                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12826                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12827                 head -n 1\`\"
12828
12829     if test -z "$_ver"; then
12830         ## If empty, try date [fontforge]
12831         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12832             | head -n 1 \
12833             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12834     fi
12835     echo "$_ver"
12836     #dnl
12837 `
12838     fi
12839     num=`
12840     echo "$ver" | awk -F. '
12841     {
12842       if ($3) {three = $3}
12843       else {three = 0}
12844     }
12845     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12846 `
12847     req=`
12848     echo "1.82" | awk -F. '
12849     {
12850       if ($3) {three = $3}
12851       else {three = 0}
12852     }
12853     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12854 `
12855     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12856 $as_echo "$ver" >&6; }
12857     if test "$num" -lt "$req"; then
12858
12859     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
12860
12861     fi
12862     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12863     eval `echo $vervar=$num`
12864 ##    AC_SUBST(`eval echo $vervar`)
12865
12866     fi
12867
12868
12869     for ac_prog in dblatex
12870 do
12871   # Extract the first word of "$ac_prog", so it can be a program name with args.
12872 set dummy $ac_prog; ac_word=$2
12873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12876   $as_echo_n "(cached) " >&6
12877 else
12878   if test -n "$DBLATEX"; then
12879   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12880 else
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12883 do
12884   IFS=$as_save_IFS
12885   test -z "$as_dir" && as_dir=.
12886   for ac_exec_ext in '' $ac_executable_extensions; do
12887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888     ac_cv_prog_DBLATEX="$ac_prog"
12889     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12890     break 2
12891   fi
12892 done
12893 done
12894 IFS=$as_save_IFS
12895
12896 fi
12897 fi
12898 DBLATEX=$ac_cv_prog_DBLATEX
12899 if test -n "$DBLATEX"; then
12900   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12901 $as_echo "$DBLATEX" >&6; }
12902 else
12903   { $as_echo "$as_me:$LINENO: result: no" >&5
12904 $as_echo "no" >&6; }
12905 fi
12906
12907
12908   test -n "$DBLATEX" && break
12909 done
12910 test -n "$DBLATEX" || DBLATEX="no"
12911
12912
12913
12914     r="`eval echo '$'"DBLATEX"`"
12915     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12916         true
12917     else
12918         ##STEPMAKE_WARN(cannot find . )
12919         false
12920     fi
12921
12922     if test $? -ne 0; then
12923
12924     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
12925
12926         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12927             command="echo ERROR: dblatex not found"
12928             # abort configure process here?
12929         else
12930             command="- echo dblatex not found"
12931         fi
12932         eval "DBLATEX"='$command'
12933         false
12934     else
12935         true
12936     fi
12937
12938     if test $? -eq 0 -a -n "0.1.4"; then
12939
12940     r="`eval echo '$'"DBLATEX"`"
12941     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12942 $as_echo_n "checking $r version... " >&6; }
12943     exe=`
12944     ## which doesn't work in ash, if /usr/bin/which isn't installed
12945     ## type -p doesn't work in ash
12946     ## command -v doesn't work in zsh
12947     ## command -v "$r" 2>&1
12948     ## this test should work in ash, bash, pdksh (ksh), zsh
12949     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12950 `
12951     if test -n ""; then
12952         ver=""
12953     else
12954         ver=`
12955     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12956     ##
12957     ## ARG.
12958     ## Workaround for broken Debian gcc version string:
12959     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12960     ##
12961     ## -V: Workaround for python
12962
12963     #dnl
12964
12965     ## Assume and hunt for dotted version multiplet.
12966     ## use eval trickery, because we cannot use multi-level $() instead of ``
12967     ## for compatibility reasons.
12968
12969     ## grab the first version number in  --version output.
12970     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12971                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12972                 head -n 1 |
12973                 tr ' ' '\n' |
12974                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12975                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12976                 head -n 1\`\"
12977
12978     if test -z "$_ver"; then
12979         ## If empty, try date [fontforge]
12980         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12981             | head -n 1 \
12982             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12983     fi
12984     echo "$_ver"
12985     #dnl
12986 `
12987     fi
12988     num=`
12989     echo "$ver" | awk -F. '
12990     {
12991       if ($3) {three = $3}
12992       else {three = 0}
12993     }
12994     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12995 `
12996     req=`
12997     echo "0.1.4" | awk -F. '
12998     {
12999       if ($3) {three = $3}
13000       else {three = 0}
13001     }
13002     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13003 `
13004     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13005 $as_echo "$ver" >&6; }
13006     if test "$num" -lt "$req"; then
13007
13008     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13009
13010     fi
13011     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13012     eval `echo $vervar=$num`
13013 ##    AC_SUBST(`eval echo $vervar`)
13014
13015     fi
13016
13017
13018     for ac_prog in bibtex
13019 do
13020   # Extract the first word of "$ac_prog", so it can be a program name with args.
13021 set dummy $ac_prog; ac_word=$2
13022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13025   $as_echo_n "(cached) " >&6
13026 else
13027   if test -n "$BIBTEX"; then
13028   ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13032 do
13033   IFS=$as_save_IFS
13034   test -z "$as_dir" && as_dir=.
13035   for ac_exec_ext in '' $ac_executable_extensions; do
13036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037     ac_cv_prog_BIBTEX="$ac_prog"
13038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13039     break 2
13040   fi
13041 done
13042 done
13043 IFS=$as_save_IFS
13044
13045 fi
13046 fi
13047 BIBTEX=$ac_cv_prog_BIBTEX
13048 if test -n "$BIBTEX"; then
13049   { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
13050 $as_echo "$BIBTEX" >&6; }
13051 else
13052   { $as_echo "$as_me:$LINENO: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055
13056
13057   test -n "$BIBTEX" && break
13058 done
13059 test -n "$BIBTEX" || BIBTEX="no"
13060
13061
13062
13063     r="`eval echo '$'"BIBTEX"`"
13064     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
13065         true
13066     else
13067         ##STEPMAKE_WARN(cannot find . )
13068         false
13069     fi
13070
13071     if test $? -ne 0; then
13072
13073     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
13074
13075         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13076             command="echo ERROR: bibtex not found"
13077             # abort configure process here?
13078         else
13079             command="- echo bibtex not found"
13080         fi
13081         eval "BIBTEX"='$command'
13082         false
13083     else
13084         true
13085     fi
13086
13087     if test $? -eq 0 -a -n ""; then
13088
13089     r="`eval echo '$'"BIBTEX"`"
13090     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13091 $as_echo_n "checking $r version... " >&6; }
13092     exe=`
13093     ## which doesn't work in ash, if /usr/bin/which isn't installed
13094     ## type -p doesn't work in ash
13095     ## command -v doesn't work in zsh
13096     ## command -v "$r" 2>&1
13097     ## this test should work in ash, bash, pdksh (ksh), zsh
13098     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13099 `
13100     if test -n ""; then
13101         ver=""
13102     else
13103         ver=`
13104     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13105     ##
13106     ## ARG.
13107     ## Workaround for broken Debian gcc version string:
13108     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13109     ##
13110     ## -V: Workaround for python
13111
13112     #dnl
13113
13114     ## Assume and hunt for dotted version multiplet.
13115     ## use eval trickery, because we cannot use multi-level $() instead of ``
13116     ## for compatibility reasons.
13117
13118     ## grab the first version number in  --version output.
13119     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13120                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13121                 head -n 1 |
13122                 tr ' ' '\n' |
13123                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13124                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13125                 head -n 1\`\"
13126
13127     if test -z "$_ver"; then
13128         ## If empty, try date [fontforge]
13129         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13130             | head -n 1 \
13131             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13132     fi
13133     echo "$_ver"
13134     #dnl
13135 `
13136     fi
13137     num=`
13138     echo "$ver" | awk -F. '
13139     {
13140       if ($3) {three = $3}
13141       else {three = 0}
13142     }
13143     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13144 `
13145     req=`
13146     echo "" | awk -F. '
13147     {
13148       if ($3) {three = $3}
13149       else {three = 0}
13150     }
13151     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13152 `
13153     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13154 $as_echo "$ver" >&6; }
13155     if test "$num" -lt "$req"; then
13156
13157     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13158
13159     fi
13160     vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
13161     eval `echo $vervar=$num`
13162 ##    AC_SUBST(`eval echo $vervar`)
13163
13164     fi
13165
13166
13167     for ac_prog in pdflatex
13168 do
13169   # Extract the first word of "$ac_prog", so it can be a program name with args.
13170 set dummy $ac_prog; ac_word=$2
13171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
13174   $as_echo_n "(cached) " >&6
13175 else
13176   if test -n "$PDFLATEX"; then
13177   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182   IFS=$as_save_IFS
13183   test -z "$as_dir" && as_dir=.
13184   for ac_exec_ext in '' $ac_executable_extensions; do
13185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186     ac_cv_prog_PDFLATEX="$ac_prog"
13187     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13188     break 2
13189   fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 PDFLATEX=$ac_cv_prog_PDFLATEX
13197 if test -n "$PDFLATEX"; then
13198   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
13199 $as_echo "$PDFLATEX" >&6; }
13200 else
13201   { $as_echo "$as_me:$LINENO: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205
13206   test -n "$PDFLATEX" && break
13207 done
13208 test -n "$PDFLATEX" || PDFLATEX="no"
13209
13210
13211
13212     r="`eval echo '$'"PDFLATEX"`"
13213     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
13214         true
13215     else
13216         ##STEPMAKE_WARN(cannot find . )
13217         false
13218     fi
13219
13220     if test $? -ne 0; then
13221
13222     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdflatex\"`\"
13223
13224         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13225             command="echo ERROR: pdflatex not found"
13226             # abort configure process here?
13227         else
13228             command="- echo pdflatex not found"
13229         fi
13230         eval "PDFLATEX"='$command'
13231         false
13232     else
13233         true
13234     fi
13235
13236     if test $? -eq 0 -a -n ""; then
13237
13238     r="`eval echo '$'"PDFLATEX"`"
13239     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13240 $as_echo_n "checking $r version... " >&6; }
13241     exe=`
13242     ## which doesn't work in ash, if /usr/bin/which isn't installed
13243     ## type -p doesn't work in ash
13244     ## command -v doesn't work in zsh
13245     ## command -v "$r" 2>&1
13246     ## this test should work in ash, bash, pdksh (ksh), zsh
13247     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13248 `
13249     if test -n ""; then
13250         ver=""
13251     else
13252         ver=`
13253     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13254     ##
13255     ## ARG.
13256     ## Workaround for broken Debian gcc version string:
13257     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13258     ##
13259     ## -V: Workaround for python
13260
13261     #dnl
13262
13263     ## Assume and hunt for dotted version multiplet.
13264     ## use eval trickery, because we cannot use multi-level $() instead of ``
13265     ## for compatibility reasons.
13266
13267     ## grab the first version number in  --version output.
13268     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13269                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13270                 head -n 1 |
13271                 tr ' ' '\n' |
13272                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13273                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13274                 head -n 1\`\"
13275
13276     if test -z "$_ver"; then
13277         ## If empty, try date [fontforge]
13278         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13279             | head -n 1 \
13280             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13281     fi
13282     echo "$_ver"
13283     #dnl
13284 `
13285     fi
13286     num=`
13287     echo "$ver" | awk -F. '
13288     {
13289       if ($3) {three = $3}
13290       else {three = 0}
13291     }
13292     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13293 `
13294     req=`
13295     echo "" | awk -F. '
13296     {
13297       if ($3) {three = $3}
13298       else {three = 0}
13299     }
13300     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13301 `
13302     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13303 $as_echo "$ver" >&6; }
13304     if test "$num" -lt "$req"; then
13305
13306     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13307
13308     fi
13309     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13310     eval `echo $vervar=$num`
13311 ##    AC_SUBST(`eval echo $vervar`)
13312
13313     fi
13314
13315
13316     for ac_prog in pdfetex pdftex etex
13317 do
13318   # Extract the first word of "$ac_prog", so it can be a program name with args.
13319 set dummy $ac_prog; ac_word=$2
13320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if test "${ac_cv_prog_PDFTEX+set}" = set; then
13323   $as_echo_n "(cached) " >&6
13324 else
13325   if test -n "$PDFTEX"; then
13326   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
13327 else
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13330 do
13331   IFS=$as_save_IFS
13332   test -z "$as_dir" && as_dir=.
13333   for ac_exec_ext in '' $ac_executable_extensions; do
13334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335     ac_cv_prog_PDFTEX="$ac_prog"
13336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13337     break 2
13338   fi
13339 done
13340 done
13341 IFS=$as_save_IFS
13342
13343 fi
13344 fi
13345 PDFTEX=$ac_cv_prog_PDFTEX
13346 if test -n "$PDFTEX"; then
13347   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
13348 $as_echo "$PDFTEX" >&6; }
13349 else
13350   { $as_echo "$as_me:$LINENO: result: no" >&5
13351 $as_echo "no" >&6; }
13352 fi
13353
13354
13355   test -n "$PDFTEX" && break
13356 done
13357 test -n "$PDFTEX" || PDFTEX="no"
13358
13359
13360
13361     r="`eval echo '$'"PDFTEX"`"
13362     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
13363         true
13364     else
13365         ##STEPMAKE_WARN(cannot find . )
13366         false
13367     fi
13368
13369     if test $? -ne 0; then
13370
13371     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
13372
13373         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13374             command="echo ERROR: pdfetex pdftex etex not found"
13375             # abort configure process here?
13376         else
13377             command="- echo pdfetex pdftex etex not found"
13378         fi
13379         eval "PDFTEX"='$command'
13380         false
13381     else
13382         true
13383     fi
13384
13385     if test $? -eq 0 -a -n ""; then
13386
13387     r="`eval echo '$'"PDFTEX"`"
13388     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13389 $as_echo_n "checking $r version... " >&6; }
13390     exe=`
13391     ## which doesn't work in ash, if /usr/bin/which isn't installed
13392     ## type -p doesn't work in ash
13393     ## command -v doesn't work in zsh
13394     ## command -v "$r" 2>&1
13395     ## this test should work in ash, bash, pdksh (ksh), zsh
13396     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13397 `
13398     if test -n ""; then
13399         ver=""
13400     else
13401         ver=`
13402     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13403     ##
13404     ## ARG.
13405     ## Workaround for broken Debian gcc version string:
13406     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13407     ##
13408     ## -V: Workaround for python
13409
13410     #dnl
13411
13412     ## Assume and hunt for dotted version multiplet.
13413     ## use eval trickery, because we cannot use multi-level $() instead of ``
13414     ## for compatibility reasons.
13415
13416     ## grab the first version number in  --version output.
13417     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13418                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13419                 head -n 1 |
13420                 tr ' ' '\n' |
13421                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13422                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13423                 head -n 1\`\"
13424
13425     if test -z "$_ver"; then
13426         ## If empty, try date [fontforge]
13427         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13428             | head -n 1 \
13429             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13430     fi
13431     echo "$_ver"
13432     #dnl
13433 `
13434     fi
13435     num=`
13436     echo "$ver" | awk -F. '
13437     {
13438       if ($3) {three = $3}
13439       else {three = 0}
13440     }
13441     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13442 `
13443     req=`
13444     echo "" | awk -F. '
13445     {
13446       if ($3) {three = $3}
13447       else {three = 0}
13448     }
13449     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13450 `
13451     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13452 $as_echo "$ver" >&6; }
13453     if test "$num" -lt "$req"; then
13454
13455     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13456
13457     fi
13458     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
13459     eval `echo $vervar=$num`
13460 ##    AC_SUBST(`eval echo $vervar`)
13461
13462     fi
13463
13464
13465     for ac_prog in texi2pdf
13466 do
13467   # Extract the first word of "$ac_prog", so it can be a program name with args.
13468 set dummy $ac_prog; ac_word=$2
13469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
13472   $as_echo_n "(cached) " >&6
13473 else
13474   if test -n "$TEXI2PDF"; then
13475   ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13479 do
13480   IFS=$as_save_IFS
13481   test -z "$as_dir" && as_dir=.
13482   for ac_exec_ext in '' $ac_executable_extensions; do
13483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484     ac_cv_prog_TEXI2PDF="$ac_prog"
13485     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13486     break 2
13487   fi
13488 done
13489 done
13490 IFS=$as_save_IFS
13491
13492 fi
13493 fi
13494 TEXI2PDF=$ac_cv_prog_TEXI2PDF
13495 if test -n "$TEXI2PDF"; then
13496   { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
13497 $as_echo "$TEXI2PDF" >&6; }
13498 else
13499   { $as_echo "$as_me:$LINENO: result: no" >&5
13500 $as_echo "no" >&6; }
13501 fi
13502
13503
13504   test -n "$TEXI2PDF" && break
13505 done
13506 test -n "$TEXI2PDF" || TEXI2PDF="no"
13507
13508
13509
13510     r="`eval echo '$'"TEXI2PDF"`"
13511     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
13512         true
13513     else
13514         ##STEPMAKE_WARN(cannot find . )
13515         false
13516     fi
13517
13518     if test $? -ne 0; then
13519
13520     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
13521
13522         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13523             command="echo ERROR: texi2pdf not found"
13524             # abort configure process here?
13525         else
13526             command="- echo texi2pdf not found"
13527         fi
13528         eval "TEXI2PDF"='$command'
13529         false
13530     else
13531         true
13532     fi
13533
13534     if test $? -eq 0 -a -n ""; then
13535
13536     r="`eval echo '$'"TEXI2PDF"`"
13537     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13538 $as_echo_n "checking $r version... " >&6; }
13539     exe=`
13540     ## which doesn't work in ash, if /usr/bin/which isn't installed
13541     ## type -p doesn't work in ash
13542     ## command -v doesn't work in zsh
13543     ## command -v "$r" 2>&1
13544     ## this test should work in ash, bash, pdksh (ksh), zsh
13545     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13546 `
13547     if test -n ""; then
13548         ver=""
13549     else
13550         ver=`
13551     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13552     ##
13553     ## ARG.
13554     ## Workaround for broken Debian gcc version string:
13555     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13556     ##
13557     ## -V: Workaround for python
13558
13559     #dnl
13560
13561     ## Assume and hunt for dotted version multiplet.
13562     ## use eval trickery, because we cannot use multi-level $() instead of ``
13563     ## for compatibility reasons.
13564
13565     ## grab the first version number in  --version output.
13566     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13567                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13568                 head -n 1 |
13569                 tr ' ' '\n' |
13570                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13571                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13572                 head -n 1\`\"
13573
13574     if test -z "$_ver"; then
13575         ## If empty, try date [fontforge]
13576         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13577             | head -n 1 \
13578             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13579     fi
13580     echo "$_ver"
13581     #dnl
13582 `
13583     fi
13584     num=`
13585     echo "$ver" | awk -F. '
13586     {
13587       if ($3) {three = $3}
13588       else {three = 0}
13589     }
13590     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13591 `
13592     req=`
13593     echo "" | awk -F. '
13594     {
13595       if ($3) {three = $3}
13596       else {three = 0}
13597     }
13598     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13599 `
13600     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13601 $as_echo "$ver" >&6; }
13602     if test "$num" -lt "$req"; then
13603
13604     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13605
13606     fi
13607     vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
13608     eval `echo $vervar=$num`
13609 ##    AC_SUBST(`eval echo $vervar`)
13610
13611     fi
13612
13613
13614     for ac_prog in texindex
13615 do
13616   # Extract the first word of "$ac_prog", so it can be a program name with args.
13617 set dummy $ac_prog; ac_word=$2
13618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
13621   $as_echo_n "(cached) " >&6
13622 else
13623   if test -n "$TEXINDEX"; then
13624   ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629   IFS=$as_save_IFS
13630   test -z "$as_dir" && as_dir=.
13631   for ac_exec_ext in '' $ac_executable_extensions; do
13632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633     ac_cv_prog_TEXINDEX="$ac_prog"
13634     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635     break 2
13636   fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 TEXINDEX=$ac_cv_prog_TEXINDEX
13644 if test -n "$TEXINDEX"; then
13645   { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
13646 $as_echo "$TEXINDEX" >&6; }
13647 else
13648   { $as_echo "$as_me:$LINENO: result: no" >&5
13649 $as_echo "no" >&6; }
13650 fi
13651
13652
13653   test -n "$TEXINDEX" && break
13654 done
13655 test -n "$TEXINDEX" || TEXINDEX="no"
13656
13657
13658
13659     r="`eval echo '$'"TEXINDEX"`"
13660     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
13661         true
13662     else
13663         ##STEPMAKE_WARN(cannot find . )
13664         false
13665     fi
13666
13667     if test $? -ne 0; then
13668
13669     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
13670
13671         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13672             command="echo ERROR: texindex not found"
13673             # abort configure process here?
13674         else
13675             command="- echo texindex not found"
13676         fi
13677         eval "TEXINDEX"='$command'
13678         false
13679     else
13680         true
13681     fi
13682
13683     if test $? -eq 0 -a -n ""; then
13684
13685     r="`eval echo '$'"TEXINDEX"`"
13686     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13687 $as_echo_n "checking $r version... " >&6; }
13688     exe=`
13689     ## which doesn't work in ash, if /usr/bin/which isn't installed
13690     ## type -p doesn't work in ash
13691     ## command -v doesn't work in zsh
13692     ## command -v "$r" 2>&1
13693     ## this test should work in ash, bash, pdksh (ksh), zsh
13694     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13695 `
13696     if test -n ""; then
13697         ver=""
13698     else
13699         ver=`
13700     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13701     ##
13702     ## ARG.
13703     ## Workaround for broken Debian gcc version string:
13704     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13705     ##
13706     ## -V: Workaround for python
13707
13708     #dnl
13709
13710     ## Assume and hunt for dotted version multiplet.
13711     ## use eval trickery, because we cannot use multi-level $() instead of ``
13712     ## for compatibility reasons.
13713
13714     ## grab the first version number in  --version output.
13715     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13716                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13717                 head -n 1 |
13718                 tr ' ' '\n' |
13719                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13720                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13721                 head -n 1\`\"
13722
13723     if test -z "$_ver"; then
13724         ## If empty, try date [fontforge]
13725         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13726             | head -n 1 \
13727             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13728     fi
13729     echo "$_ver"
13730     #dnl
13731 `
13732     fi
13733     num=`
13734     echo "$ver" | awk -F. '
13735     {
13736       if ($3) {three = $3}
13737       else {three = 0}
13738     }
13739     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13740 `
13741     req=`
13742     echo "" | awk -F. '
13743     {
13744       if ($3) {three = $3}
13745       else {three = 0}
13746     }
13747     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13748 `
13749     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13750 $as_echo "$ver" >&6; }
13751     if test "$num" -lt "$req"; then
13752
13753     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13754
13755     fi
13756     vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
13757     eval `echo $vervar=$num`
13758 ##    AC_SUBST(`eval echo $vervar`)
13759
13760     fi
13761
13762 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
13763 $as_echo_n "checking for epsf.tex... " >&6; }
13764 TEX_EPSF=`kpsewhich tex epsf`
13765 if test "$TEX_EPSF" = ""; then
13766     { $as_echo "$as_me:$LINENO: result: not found" >&5
13767 $as_echo "not found" >&6; }
13768
13769     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
13770
13771 else
13772     { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
13773 $as_echo "$TEX_EPSF" >&6; }
13774 fi
13775 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
13776 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
13777 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
13778 if test "$TEX_FIKPARM" = ""; then
13779     { $as_echo "$as_me:$LINENO: result: not found" >&5
13780 $as_echo "not found" >&6; }
13781
13782     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
13783
13784 else
13785     { $as_echo "$as_me:$LINENO: result: yes" >&5
13786 $as_echo "yes" >&6; }
13787 fi
13788
13789     for ac_prog in pngtopnm
13790 do
13791   # Extract the first word of "$ac_prog", so it can be a program name with args.
13792 set dummy $ac_prog; ac_word=$2
13793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if test "${ac_cv_prog_NETPBM+set}" = set; then
13796   $as_echo_n "(cached) " >&6
13797 else
13798   if test -n "$NETPBM"; then
13799   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
13800 else
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804   IFS=$as_save_IFS
13805   test -z "$as_dir" && as_dir=.
13806   for ac_exec_ext in '' $ac_executable_extensions; do
13807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808     ac_cv_prog_NETPBM="$ac_prog"
13809     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810     break 2
13811   fi
13812 done
13813 done
13814 IFS=$as_save_IFS
13815
13816 fi
13817 fi
13818 NETPBM=$ac_cv_prog_NETPBM
13819 if test -n "$NETPBM"; then
13820   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
13821 $as_echo "$NETPBM" >&6; }
13822 else
13823   { $as_echo "$as_me:$LINENO: result: no" >&5
13824 $as_echo "no" >&6; }
13825 fi
13826
13827
13828   test -n "$NETPBM" && break
13829 done
13830 test -n "$NETPBM" || NETPBM="no"
13831
13832
13833
13834     r="`eval echo '$'"NETPBM"`"
13835     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
13836         true
13837     else
13838         ##STEPMAKE_WARN(cannot find . )
13839         false
13840     fi
13841
13842     if test $? -ne 0; then
13843
13844     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
13845
13846         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13847             command="echo ERROR: pngtopnm not found"
13848             # abort configure process here?
13849         else
13850             command="- echo pngtopnm not found"
13851         fi
13852         eval "NETPBM"='$command'
13853         false
13854     else
13855         true
13856     fi
13857
13858     if test $? -eq 0 -a -n ""; then
13859
13860     r="`eval echo '$'"NETPBM"`"
13861     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13862 $as_echo_n "checking $r version... " >&6; }
13863     exe=`
13864     ## which doesn't work in ash, if /usr/bin/which isn't installed
13865     ## type -p doesn't work in ash
13866     ## command -v doesn't work in zsh
13867     ## command -v "$r" 2>&1
13868     ## this test should work in ash, bash, pdksh (ksh), zsh
13869     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13870 `
13871     if test -n ""; then
13872         ver=""
13873     else
13874         ver=`
13875     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13876     ##
13877     ## ARG.
13878     ## Workaround for broken Debian gcc version string:
13879     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13880     ##
13881     ## -V: Workaround for python
13882
13883     #dnl
13884
13885     ## Assume and hunt for dotted version multiplet.
13886     ## use eval trickery, because we cannot use multi-level $() instead of ``
13887     ## for compatibility reasons.
13888
13889     ## grab the first version number in  --version output.
13890     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13891                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13892                 head -n 1 |
13893                 tr ' ' '\n' |
13894                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13895                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13896                 head -n 1\`\"
13897
13898     if test -z "$_ver"; then
13899         ## If empty, try date [fontforge]
13900         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13901             | head -n 1 \
13902             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13903     fi
13904     echo "$_ver"
13905     #dnl
13906 `
13907     fi
13908     num=`
13909     echo "$ver" | awk -F. '
13910     {
13911       if ($3) {three = $3}
13912       else {three = 0}
13913     }
13914     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13915 `
13916     req=`
13917     echo "" | awk -F. '
13918     {
13919       if ($3) {three = $3}
13920       else {three = 0}
13921     }
13922     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13923 `
13924     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13925 $as_echo "$ver" >&6; }
13926     if test "$num" -lt "$req"; then
13927
13928     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13929
13930     fi
13931     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
13932     eval `echo $vervar=$num`
13933 ##    AC_SUBST(`eval echo $vervar`)
13934
13935     fi
13936
13937
13938     for ac_prog in convert
13939 do
13940   # Extract the first word of "$ac_prog", so it can be a program name with args.
13941 set dummy $ac_prog; ac_word=$2
13942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13943 $as_echo_n "checking for $ac_word... " >&6; }
13944 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
13945   $as_echo_n "(cached) " >&6
13946 else
13947   if test -n "$IMAGEMAGICK"; then
13948   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
13949 else
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13952 do
13953   IFS=$as_save_IFS
13954   test -z "$as_dir" && as_dir=.
13955   for ac_exec_ext in '' $ac_executable_extensions; do
13956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13957     ac_cv_prog_IMAGEMAGICK="$ac_prog"
13958     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13959     break 2
13960   fi
13961 done
13962 done
13963 IFS=$as_save_IFS
13964
13965 fi
13966 fi
13967 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
13968 if test -n "$IMAGEMAGICK"; then
13969   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
13970 $as_echo "$IMAGEMAGICK" >&6; }
13971 else
13972   { $as_echo "$as_me:$LINENO: result: no" >&5
13973 $as_echo "no" >&6; }
13974 fi
13975
13976
13977   test -n "$IMAGEMAGICK" && break
13978 done
13979 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
13980
13981
13982
13983     r="`eval echo '$'"IMAGEMAGICK"`"
13984     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
13985         true
13986     else
13987         ##STEPMAKE_WARN(cannot find . )
13988         false
13989     fi
13990
13991     if test $? -ne 0; then
13992
13993     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
13994
13995         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13996             command="echo ERROR: convert not found"
13997             # abort configure process here?
13998         else
13999             command="- echo convert not found"
14000         fi
14001         eval "IMAGEMAGICK"='$command'
14002         false
14003     else
14004         true
14005     fi
14006
14007     if test $? -eq 0 -a -n ""; then
14008
14009     r="`eval echo '$'"IMAGEMAGICK"`"
14010     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14011 $as_echo_n "checking $r version... " >&6; }
14012     exe=`
14013     ## which doesn't work in ash, if /usr/bin/which isn't installed
14014     ## type -p doesn't work in ash
14015     ## command -v doesn't work in zsh
14016     ## command -v "$r" 2>&1
14017     ## this test should work in ash, bash, pdksh (ksh), zsh
14018     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14019 `
14020     if test -n ""; then
14021         ver=""
14022     else
14023         ver=`
14024     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14025     ##
14026     ## ARG.
14027     ## Workaround for broken Debian gcc version string:
14028     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14029     ##
14030     ## -V: Workaround for python
14031
14032     #dnl
14033
14034     ## Assume and hunt for dotted version multiplet.
14035     ## use eval trickery, because we cannot use multi-level $() instead of ``
14036     ## for compatibility reasons.
14037
14038     ## grab the first version number in  --version output.
14039     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14040                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14041                 head -n 1 |
14042                 tr ' ' '\n' |
14043                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14044                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14045                 head -n 1\`\"
14046
14047     if test -z "$_ver"; then
14048         ## If empty, try date [fontforge]
14049         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
14050             | head -n 1 \
14051             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14052     fi
14053     echo "$_ver"
14054     #dnl
14055 `
14056     fi
14057     num=`
14058     echo "$ver" | awk -F. '
14059     {
14060       if ($3) {three = $3}
14061       else {three = 0}
14062     }
14063     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14064 `
14065     req=`
14066     echo "" | awk -F. '
14067     {
14068       if ($3) {three = $3}
14069       else {three = 0}
14070     }
14071     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14072 `
14073     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14074 $as_echo "$ver" >&6; }
14075     if test "$num" -lt "$req"; then
14076
14077     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14078
14079     fi
14080     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
14081     eval `echo $vervar=$num`
14082 ##    AC_SUBST(`eval echo $vervar`)
14083
14084     fi
14085
14086 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
14087
14088     for ac_prog in zip
14089 do
14090   # Extract the first word of "$ac_prog", so it can be a program name with args.
14091 set dummy $ac_prog; ac_word=$2
14092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
14095   $as_echo_n "(cached) " >&6
14096 else
14097   if test -n "$ZIPDOC"; then
14098   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
14099 else
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14102 do
14103   IFS=$as_save_IFS
14104   test -z "$as_dir" && as_dir=.
14105   for ac_exec_ext in '' $ac_executable_extensions; do
14106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107     ac_cv_prog_ZIPDOC="$ac_prog"
14108     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109     break 2
14110   fi
14111 done
14112 done
14113 IFS=$as_save_IFS
14114
14115 fi
14116 fi
14117 ZIPDOC=$ac_cv_prog_ZIPDOC
14118 if test -n "$ZIPDOC"; then
14119   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
14120 $as_echo "$ZIPDOC" >&6; }
14121 else
14122   { $as_echo "$as_me:$LINENO: result: no" >&5
14123 $as_echo "no" >&6; }
14124 fi
14125
14126
14127   test -n "$ZIPDOC" && break
14128 done
14129 test -n "$ZIPDOC" || ZIPDOC="no"
14130
14131
14132
14133     r="`eval echo '$'"ZIPDOC"`"
14134     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
14135         true
14136     else
14137         ##STEPMAKE_WARN(cannot find . )
14138         false
14139     fi
14140
14141     if test $? -ne 0; then
14142
14143     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
14144
14145         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14146             command="echo ERROR: zip not found"
14147             # abort configure process here?
14148         else
14149             command="- echo zip not found"
14150         fi
14151         eval "ZIPDOC"='$command'
14152         false
14153     else
14154         true
14155     fi
14156
14157     if test $? -eq 0 -a -n ""; then
14158
14159     r="`eval echo '$'"ZIPDOC"`"
14160     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14161 $as_echo_n "checking $r version... " >&6; }
14162     exe=`
14163     ## which doesn't work in ash, if /usr/bin/which isn't installed
14164     ## type -p doesn't work in ash
14165     ## command -v doesn't work in zsh
14166     ## command -v "$r" 2>&1
14167     ## this test should work in ash, bash, pdksh (ksh), zsh
14168     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14169 `
14170     if test -n ""; then
14171         ver=""
14172     else
14173         ver=`
14174     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14175     ##
14176     ## ARG.
14177     ## Workaround for broken Debian gcc version string:
14178     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14179     ##
14180     ## -V: Workaround for python
14181
14182     #dnl
14183
14184     ## Assume and hunt for dotted version multiplet.
14185     ## use eval trickery, because we cannot use multi-level $() instead of ``
14186     ## for compatibility reasons.
14187
14188     ## grab the first version number in  --version output.
14189     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14190                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14191                 head -n 1 |
14192                 tr ' ' '\n' |
14193                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14194                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14195                 head -n 1\`\"
14196
14197     if test -z "$_ver"; then
14198         ## If empty, try date [fontforge]
14199         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
14200             | head -n 1 \
14201             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14202     fi
14203     echo "$_ver"
14204     #dnl
14205 `
14206     fi
14207     num=`
14208     echo "$ver" | awk -F. '
14209     {
14210       if ($3) {three = $3}
14211       else {three = 0}
14212     }
14213     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14214 `
14215     req=`
14216     echo "" | awk -F. '
14217     {
14218       if ($3) {three = $3}
14219       else {three = 0}
14220     }
14221     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14222 `
14223     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14224 $as_echo "$ver" >&6; }
14225     if test "$num" -lt "$req"; then
14226
14227     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14228
14229     fi
14230     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
14231     eval `echo $vervar=$num`
14232 ##    AC_SUBST(`eval echo $vervar`)
14233
14234     fi
14235
14236
14237     for ac_prog in rsync
14238 do
14239   # Extract the first word of "$ac_prog", so it can be a program name with args.
14240 set dummy $ac_prog; ac_word=$2
14241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if test "${ac_cv_prog_RSYNC+set}" = set; then
14244   $as_echo_n "(cached) " >&6
14245 else
14246   if test -n "$RSYNC"; then
14247   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252   IFS=$as_save_IFS
14253   test -z "$as_dir" && as_dir=.
14254   for ac_exec_ext in '' $ac_executable_extensions; do
14255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256     ac_cv_prog_RSYNC="$ac_prog"
14257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14258     break 2
14259   fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 RSYNC=$ac_cv_prog_RSYNC
14267 if test -n "$RSYNC"; then
14268   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
14269 $as_echo "$RSYNC" >&6; }
14270 else
14271   { $as_echo "$as_me:$LINENO: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275
14276   test -n "$RSYNC" && break
14277 done
14278 test -n "$RSYNC" || RSYNC="no"
14279
14280
14281
14282     r="`eval echo '$'"RSYNC"`"
14283     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
14284         true
14285     else
14286         ##STEPMAKE_WARN(cannot find . )
14287         false
14288     fi
14289
14290     if test $? -ne 0; then
14291
14292     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
14293
14294         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14295             command="echo ERROR: rsync not found"
14296             # abort configure process here?
14297         else
14298             command="- echo rsync not found"
14299         fi
14300         eval "RSYNC"='$command'
14301         false
14302     else
14303         true
14304     fi
14305
14306     if test $? -eq 0 -a -n ""; then
14307
14308     r="`eval echo '$'"RSYNC"`"
14309     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14310 $as_echo_n "checking $r version... " >&6; }
14311     exe=`
14312     ## which doesn't work in ash, if /usr/bin/which isn't installed
14313     ## type -p doesn't work in ash
14314     ## command -v doesn't work in zsh
14315     ## command -v "$r" 2>&1
14316     ## this test should work in ash, bash, pdksh (ksh), zsh
14317     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14318 `
14319     if test -n ""; then
14320         ver=""
14321     else
14322         ver=`
14323     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14324     ##
14325     ## ARG.
14326     ## Workaround for broken Debian gcc version string:
14327     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14328     ##
14329     ## -V: Workaround for python
14330
14331     #dnl
14332
14333     ## Assume and hunt for dotted version multiplet.
14334     ## use eval trickery, because we cannot use multi-level $() instead of ``
14335     ## for compatibility reasons.
14336
14337     ## grab the first version number in  --version output.
14338     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14339                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14340                 head -n 1 |
14341                 tr ' ' '\n' |
14342                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14343                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14344                 head -n 1\`\"
14345
14346     if test -z "$_ver"; then
14347         ## If empty, try date [fontforge]
14348         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
14349             | head -n 1 \
14350             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14351     fi
14352     echo "$_ver"
14353     #dnl
14354 `
14355     fi
14356     num=`
14357     echo "$ver" | awk -F. '
14358     {
14359       if ($3) {three = $3}
14360       else {three = 0}
14361     }
14362     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14363 `
14364     req=`
14365     echo "" | awk -F. '
14366     {
14367       if ($3) {three = $3}
14368       else {three = 0}
14369     }
14370     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14371 `
14372     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14373 $as_echo "$ver" >&6; }
14374     if test "$num" -lt "$req"; then
14375
14376     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14377
14378     fi
14379     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
14380     eval `echo $vervar=$num`
14381 ##    AC_SUBST(`eval echo $vervar`)
14382
14383     fi
14384
14385
14386 cat >>confdefs.h <<_ACEOF
14387 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
14388 _ACEOF
14389
14390
14391 # must also have local.make if configure fails.
14392 touch local.make
14393
14394 if test "$reloc_b$rpath_b" = "yesno"; then
14395
14396     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
14397 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
14398     warn_b=yes
14399
14400 fi
14401
14402 # Gather requirements and generate output.
14403
14404
14405     # undo expanding of explicit --infodir=/usr/share
14406     # to ease install-time override with prefix=...
14407     strip=`echo $includedir | eval sed s@^$prefix@@`
14408     if test "$includedir" = "`eval echo $prefix$strip`"; then
14409             includedir='${prefix}'$strip''
14410     fi
14411     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
14412     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
14413             libdir='${exec_prefix}'$strip''
14414     fi
14415     strip=`echo $infodir | eval sed s@^$datarootdir@@`
14416     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
14417             infodir='${datarootdir}'$strip''
14418     fi
14419     strip=`echo $mandir | eval sed s@^$datarootdir@@`
14420     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
14421             mandir='${datarootdir}'$strip''
14422     fi
14423
14424
14425
14426
14427
14428     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
14429
14430     cat >confcache <<\_ACEOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs, see configure's option --config-cache.
14434 # It is not useful on other systems.  If it contains results you don't
14435 # want to keep, you may remove or edit it.
14436 #
14437 # config.status only pays attention to the cache file if you give it
14438 # the --recheck option to rerun configure.
14439 #
14440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14442 # following values.
14443
14444 _ACEOF
14445
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, we kill variables containing newlines.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14451 (
14452   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453     eval ac_val=\$$ac_var
14454     case $ac_val in #(
14455     *${as_nl}*)
14456       case $ac_var in #(
14457       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14459       esac
14460       case $ac_var in #(
14461       _ | IFS | as_nl) ;; #(
14462       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14463       *) $as_unset $ac_var ;;
14464       esac ;;
14465     esac
14466   done
14467
14468   (set) 2>&1 |
14469     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470     *${as_nl}ac_space=\ *)
14471       # `set' does not quote correctly, so add quotes (double-quote
14472       # substitution turns \\\\ into \\, and sed turns \\ into \).
14473       sed -n \
14474         "s/'/'\\\\''/g;
14475           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14476       ;; #(
14477     *)
14478       # `set' quotes correctly as required by POSIX, so do not add quotes.
14479       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14480       ;;
14481     esac |
14482     sort
14483 ) |
14484   sed '
14485      /^ac_cv_env_/b end
14486      t clear
14487      :clear
14488      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14489      t end
14490      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14491      :end' >>confcache
14492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14493   if test -w "$cache_file"; then
14494     test "x$cache_file" != "x/dev/null" &&
14495       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14496 $as_echo "$as_me: updating cache $cache_file" >&6;}
14497     cat confcache >$cache_file
14498   else
14499     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14501   fi
14502 fi
14503 rm -f confcache
14504
14505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14506 # Let make expand exec_prefix.
14507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14508
14509 DEFS=-DHAVE_CONFIG_H
14510
14511 ac_libobjs=
14512 ac_ltlibobjs=
14513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14514   # 1. Remove the extension, and $U if already installed.
14515   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14516   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14517   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14518   #    will be set to the directory where LIBOBJS objects are built.
14519   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14520   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14521 done
14522 LIBOBJS=$ac_libobjs
14523
14524 LTLIBOBJS=$ac_ltlibobjs
14525
14526
14527
14528 : ${CONFIG_STATUS=./config.status}
14529 ac_write_fail=0
14530 ac_clean_files_save=$ac_clean_files
14531 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14532 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14533 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14534 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14535 #! $SHELL
14536 # Generated by $as_me.
14537 # Run this file to recreate the current configuration.
14538 # Compiler output produced by configure, useful for debugging
14539 # configure, is in config.log if it exists.
14540
14541 debug=false
14542 ac_cs_recheck=false
14543 ac_cs_silent=false
14544 SHELL=\${CONFIG_SHELL-$SHELL}
14545 _ACEOF
14546
14547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548 ## --------------------- ##
14549 ## M4sh Initialization.  ##
14550 ## --------------------- ##
14551
14552 # Be more Bourne compatible
14553 DUALCASE=1; export DUALCASE # for MKS sh
14554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14555   emulate sh
14556   NULLCMD=:
14557   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14558   # is contrary to our usage.  Disable this feature.
14559   alias -g '${1+"$@"}'='"$@"'
14560   setopt NO_GLOB_SUBST
14561 else
14562   case `(set -o) 2>/dev/null` in
14563   *posix*) set -o posix ;;
14564 esac
14565
14566 fi
14567
14568
14569
14570
14571 # PATH needs CR
14572 # Avoid depending upon Character Ranges.
14573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14576 as_cr_digits='0123456789'
14577 as_cr_alnum=$as_cr_Letters$as_cr_digits
14578
14579 as_nl='
14580 '
14581 export as_nl
14582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14586 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14587   as_echo='printf %s\n'
14588   as_echo_n='printf %s'
14589 else
14590   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14591     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14592     as_echo_n='/usr/ucb/echo -n'
14593   else
14594     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14595     as_echo_n_body='eval
14596       arg=$1;
14597       case $arg in
14598       *"$as_nl"*)
14599         expr "X$arg" : "X\\(.*\\)$as_nl";
14600         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14601       esac;
14602       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14603     '
14604     export as_echo_n_body
14605     as_echo_n='sh -c $as_echo_n_body as_echo'
14606   fi
14607   export as_echo_body
14608   as_echo='sh -c $as_echo_body as_echo'
14609 fi
14610
14611 # The user is always right.
14612 if test "${PATH_SEPARATOR+set}" != set; then
14613   PATH_SEPARATOR=:
14614   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14615     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14616       PATH_SEPARATOR=';'
14617   }
14618 fi
14619
14620 # Support unset when possible.
14621 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14622   as_unset=unset
14623 else
14624   as_unset=false
14625 fi
14626
14627
14628 # IFS
14629 # We need space, tab and new line, in precisely that order.  Quoting is
14630 # there to prevent editors from complaining about space-tab.
14631 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14632 # splitting by setting IFS to empty value.)
14633 IFS=" ""        $as_nl"
14634
14635 # Find who we are.  Look in the path if we contain no directory separator.
14636 case $0 in
14637   *[\\/]* ) as_myself=$0 ;;
14638   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 for as_dir in $PATH
14640 do
14641   IFS=$as_save_IFS
14642   test -z "$as_dir" && as_dir=.
14643   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14644 done
14645 IFS=$as_save_IFS
14646
14647      ;;
14648 esac
14649 # We did not find ourselves, most probably we were run as `sh COMMAND'
14650 # in which case we are not to be found in the path.
14651 if test "x$as_myself" = x; then
14652   as_myself=$0
14653 fi
14654 if test ! -f "$as_myself"; then
14655   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14656   { (exit 1); exit 1; }
14657 fi
14658
14659 # Work around bugs in pre-3.0 UWIN ksh.
14660 for as_var in ENV MAIL MAILPATH
14661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14662 done
14663 PS1='$ '
14664 PS2='> '
14665 PS4='+ '
14666
14667 # NLS nuisances.
14668 LC_ALL=C
14669 export LC_ALL
14670 LANGUAGE=C
14671 export LANGUAGE
14672
14673 # Required to use basename.
14674 if expr a : '\(a\)' >/dev/null 2>&1 &&
14675    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14676   as_expr=expr
14677 else
14678   as_expr=false
14679 fi
14680
14681 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14682   as_basename=basename
14683 else
14684   as_basename=false
14685 fi
14686
14687
14688 # Name of the executable.
14689 as_me=`$as_basename -- "$0" ||
14690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14691          X"$0" : 'X\(//\)$' \| \
14692          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14693 $as_echo X/"$0" |
14694     sed '/^.*\/\([^/][^/]*\)\/*$/{
14695             s//\1/
14696             q
14697           }
14698           /^X\/\(\/\/\)$/{
14699             s//\1/
14700             q
14701           }
14702           /^X\/\(\/\).*/{
14703             s//\1/
14704             q
14705           }
14706           s/.*/./; q'`
14707
14708 # CDPATH.
14709 $as_unset CDPATH
14710
14711
14712
14713   as_lineno_1=$LINENO
14714   as_lineno_2=$LINENO
14715   test "x$as_lineno_1" != "x$as_lineno_2" &&
14716   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14717
14718   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14719   # uniformly replaced by the line number.  The first 'sed' inserts a
14720   # line-number line after each line using $LINENO; the second 'sed'
14721   # does the real work.  The second script uses 'N' to pair each
14722   # line-number line with the line containing $LINENO, and appends
14723   # trailing '-' during substitution so that $LINENO is not a special
14724   # case at line end.
14725   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14726   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14727   # E. McMahon (1931-1989) for sed's syntax.  :-)
14728   sed -n '
14729     p
14730     /[$]LINENO/=
14731   ' <$as_myself |
14732     sed '
14733       s/[$]LINENO.*/&-/
14734       t lineno
14735       b
14736       :lineno
14737       N
14738       :loop
14739       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14740       t loop
14741       s/-\n.*//
14742     ' >$as_me.lineno &&
14743   chmod +x "$as_me.lineno" ||
14744     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14745    { (exit 1); exit 1; }; }
14746
14747   # Don't try to exec as it changes $[0], causing all sort of problems
14748   # (the dirname of $[0] is not the place where we might find the
14749   # original and so on.  Autoconf is especially sensitive to this).
14750   . "./$as_me.lineno"
14751   # Exit status is that of the last command.
14752   exit
14753 }
14754
14755
14756 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14757   as_dirname=dirname
14758 else
14759   as_dirname=false
14760 fi
14761
14762 ECHO_C= ECHO_N= ECHO_T=
14763 case `echo -n x` in
14764 -n*)
14765   case `echo 'x\c'` in
14766   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14767   *)   ECHO_C='\c';;
14768   esac;;
14769 *)
14770   ECHO_N='-n';;
14771 esac
14772 if expr a : '\(a\)' >/dev/null 2>&1 &&
14773    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14774   as_expr=expr
14775 else
14776   as_expr=false
14777 fi
14778
14779 rm -f conf$$ conf$$.exe conf$$.file
14780 if test -d conf$$.dir; then
14781   rm -f conf$$.dir/conf$$.file
14782 else
14783   rm -f conf$$.dir
14784   mkdir conf$$.dir 2>/dev/null
14785 fi
14786 if (echo >conf$$.file) 2>/dev/null; then
14787   if ln -s conf$$.file conf$$ 2>/dev/null; then
14788     as_ln_s='ln -s'
14789     # ... but there are two gotchas:
14790     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14791     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14792     # In both cases, we have to default to `cp -p'.
14793     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14794       as_ln_s='cp -p'
14795   elif ln conf$$.file conf$$ 2>/dev/null; then
14796     as_ln_s=ln
14797   else
14798     as_ln_s='cp -p'
14799   fi
14800 else
14801   as_ln_s='cp -p'
14802 fi
14803 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14804 rmdir conf$$.dir 2>/dev/null
14805
14806 if mkdir -p . 2>/dev/null; then
14807   as_mkdir_p=:
14808 else
14809   test -d ./-p && rmdir ./-p
14810   as_mkdir_p=false
14811 fi
14812
14813 if test -x / >/dev/null 2>&1; then
14814   as_test_x='test -x'
14815 else
14816   if ls -dL / >/dev/null 2>&1; then
14817     as_ls_L_option=L
14818   else
14819     as_ls_L_option=
14820   fi
14821   as_test_x='
14822     eval sh -c '\''
14823       if test -d "$1"; then
14824         test -d "$1/.";
14825       else
14826         case $1 in
14827         -*)set "./$1";;
14828         esac;
14829         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14830         ???[sx]*):;;*)false;;esac;fi
14831     '\'' sh
14832   '
14833 fi
14834 as_executable_p=$as_test_x
14835
14836 # Sed expression to map a string onto a valid CPP name.
14837 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14838
14839 # Sed expression to map a string onto a valid variable name.
14840 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14841
14842
14843 exec 6>&1
14844
14845 # Save the log message, to keep $[0] and so on meaningful, and to
14846 # report actual input values of CONFIG_FILES etc. instead of their
14847 # values after options handling.
14848 ac_log="
14849 This file was extended by $as_me, which was
14850 generated by GNU Autoconf 2.63.  Invocation command line was
14851
14852   CONFIG_FILES    = $CONFIG_FILES
14853   CONFIG_HEADERS  = $CONFIG_HEADERS
14854   CONFIG_LINKS    = $CONFIG_LINKS
14855   CONFIG_COMMANDS = $CONFIG_COMMANDS
14856   $ $0 $@
14857
14858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14859 "
14860
14861 _ACEOF
14862
14863 case $ac_config_files in *"
14864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14865 esac
14866
14867 case $ac_config_headers in *"
14868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14869 esac
14870
14871
14872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14873 # Files that config.status was made for.
14874 config_files="$ac_config_files"
14875 config_headers="$ac_config_headers"
14876
14877 _ACEOF
14878
14879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14880 ac_cs_usage="\
14881 \`$as_me' instantiates files from templates according to the
14882 current configuration.
14883
14884 Usage: $0 [OPTION]... [FILE]...
14885
14886   -h, --help       print this help, then exit
14887   -V, --version    print version number and configuration settings, then exit
14888   -q, --quiet, --silent
14889                    do not print progress messages
14890   -d, --debug      don't remove temporary files
14891       --recheck    update $as_me by reconfiguring in the same conditions
14892       --file=FILE[:TEMPLATE]
14893                    instantiate the configuration file FILE
14894       --header=FILE[:TEMPLATE]
14895                    instantiate the configuration header FILE
14896
14897 Configuration files:
14898 $config_files
14899
14900 Configuration headers:
14901 $config_headers
14902
14903 Report bugs to <bug-autoconf@gnu.org>."
14904
14905 _ACEOF
14906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14907 ac_cs_version="\\
14908 config.status
14909 configured by $0, generated by GNU Autoconf 2.63,
14910   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14911
14912 Copyright (C) 2008 Free Software Foundation, Inc.
14913 This config.status script is free software; the Free Software Foundation
14914 gives unlimited permission to copy, distribute and modify it."
14915
14916 ac_pwd='$ac_pwd'
14917 srcdir='$srcdir'
14918 test -n "\$AWK" || AWK=awk
14919 _ACEOF
14920
14921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14922 # The default lists apply if the user does not specify any file.
14923 ac_need_defaults=:
14924 while test $# != 0
14925 do
14926   case $1 in
14927   --*=*)
14928     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14929     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14930     ac_shift=:
14931     ;;
14932   *)
14933     ac_option=$1
14934     ac_optarg=$2
14935     ac_shift=shift
14936     ;;
14937   esac
14938
14939   case $ac_option in
14940   # Handling of the options.
14941   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14942     ac_cs_recheck=: ;;
14943   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14944     $as_echo "$ac_cs_version"; exit ;;
14945   --debug | --debu | --deb | --de | --d | -d )
14946     debug=: ;;
14947   --file | --fil | --fi | --f )
14948     $ac_shift
14949     case $ac_optarg in
14950     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14951     esac
14952     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14953     ac_need_defaults=false;;
14954   --header | --heade | --head | --hea )
14955     $ac_shift
14956     case $ac_optarg in
14957     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14958     esac
14959     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14960     ac_need_defaults=false;;
14961   --he | --h)
14962     # Conflict between --help and --header
14963     { $as_echo "$as_me: error: ambiguous option: $1
14964 Try \`$0 --help' for more information." >&2
14965    { (exit 1); exit 1; }; };;
14966   --help | --hel | -h )
14967     $as_echo "$ac_cs_usage"; exit ;;
14968   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14969   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14970     ac_cs_silent=: ;;
14971
14972   # This is an error.
14973   -*) { $as_echo "$as_me: error: unrecognized option: $1
14974 Try \`$0 --help' for more information." >&2
14975    { (exit 1); exit 1; }; } ;;
14976
14977   *) ac_config_targets="$ac_config_targets $1"
14978      ac_need_defaults=false ;;
14979
14980   esac
14981   shift
14982 done
14983
14984 ac_configure_extra_args=
14985
14986 if $ac_cs_silent; then
14987   exec 6>/dev/null
14988   ac_configure_extra_args="$ac_configure_extra_args --silent"
14989 fi
14990
14991 _ACEOF
14992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14993 if \$ac_cs_recheck; then
14994   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14995   shift
14996   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14997   CONFIG_SHELL='$SHELL'
14998   export CONFIG_SHELL
14999   exec "\$@"
15000 fi
15001
15002 _ACEOF
15003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15004 exec 5>>config.log
15005 {
15006   echo
15007   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15008 ## Running $as_me. ##
15009 _ASBOX
15010   $as_echo "$ac_log"
15011 } >&5
15012
15013 _ACEOF
15014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15015 _ACEOF
15016
15017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15018
15019 # Handling of arguments.
15020 for ac_config_target in $ac_config_targets
15021 do
15022   case $ac_config_target in
15023     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
15024     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
15025
15026   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15027 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15028    { (exit 1); exit 1; }; };;
15029   esac
15030 done
15031
15032
15033 # If the user did not use the arguments to specify the items to instantiate,
15034 # then the envvar interface is used.  Set only those that are not.
15035 # We use the long form for the default assignment because of an extremely
15036 # bizarre bug on SunOS 4.1.3.
15037 if $ac_need_defaults; then
15038   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15039   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15040 fi
15041
15042 # Have a temporary directory for convenience.  Make it in the build tree
15043 # simply because there is no reason against having it here, and in addition,
15044 # creating and moving files from /tmp can sometimes cause problems.
15045 # Hook for its removal unless debugging.
15046 # Note that there is a small window in which the directory will not be cleaned:
15047 # after its creation but before its name has been assigned to `$tmp'.
15048 $debug ||
15049 {
15050   tmp=
15051   trap 'exit_status=$?
15052   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15053 ' 0
15054   trap '{ (exit 1); exit 1; }' 1 2 13 15
15055 }
15056 # Create a (secure) tmp directory for tmp files.
15057
15058 {
15059   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15060   test -n "$tmp" && test -d "$tmp"
15061 }  ||
15062 {
15063   tmp=./conf$$-$RANDOM
15064   (umask 077 && mkdir "$tmp")
15065 } ||
15066 {
15067    $as_echo "$as_me: cannot create a temporary directory in ." >&2
15068    { (exit 1); exit 1; }
15069 }
15070
15071 # Set up the scripts for CONFIG_FILES section.
15072 # No need to generate them if there are no CONFIG_FILES.
15073 # This happens for instance with `./config.status config.h'.
15074 if test -n "$CONFIG_FILES"; then
15075
15076
15077 ac_cr='\r'
15078 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15079 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15080   ac_cs_awk_cr='\\r'
15081 else
15082   ac_cs_awk_cr=$ac_cr
15083 fi
15084
15085 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15086 _ACEOF
15087
15088
15089 {
15090   echo "cat >conf$$subs.awk <<_ACEOF" &&
15091   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15092   echo "_ACEOF"
15093 } >conf$$subs.sh ||
15094   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15095 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15096    { (exit 1); exit 1; }; }
15097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15098 ac_delim='%!_!# '
15099 for ac_last_try in false false false false false :; do
15100   . ./conf$$subs.sh ||
15101     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15102 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15103    { (exit 1); exit 1; }; }
15104
15105   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15106   if test $ac_delim_n = $ac_delim_num; then
15107     break
15108   elif $ac_last_try; then
15109     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15110 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15111    { (exit 1); exit 1; }; }
15112   else
15113     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15114   fi
15115 done
15116 rm -f conf$$subs.sh
15117
15118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15119 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15120 _ACEOF
15121 sed -n '
15122 h
15123 s/^/S["/; s/!.*/"]=/
15124 p
15125 g
15126 s/^[^!]*!//
15127 :repl
15128 t repl
15129 s/'"$ac_delim"'$//
15130 t delim
15131 :nl
15132 h
15133 s/\(.\{148\}\).*/\1/
15134 t more1
15135 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15136 p
15137 n
15138 b repl
15139 :more1
15140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15141 p
15142 g
15143 s/.\{148\}//
15144 t nl
15145 :delim
15146 h
15147 s/\(.\{148\}\).*/\1/
15148 t more2
15149 s/["\\]/\\&/g; s/^/"/; s/$/"/
15150 p
15151 b
15152 :more2
15153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15154 p
15155 g
15156 s/.\{148\}//
15157 t delim
15158 ' <conf$$subs.awk | sed '
15159 /^[^""]/{
15160   N
15161   s/\n//
15162 }
15163 ' >>$CONFIG_STATUS || ac_write_fail=1
15164 rm -f conf$$subs.awk
15165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15166 _ACAWK
15167 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15168   for (key in S) S_is_set[key] = 1
15169   FS = "\a"
15170
15171 }
15172 {
15173   line = $ 0
15174   nfields = split(line, field, "@")
15175   substed = 0
15176   len = length(field[1])
15177   for (i = 2; i < nfields; i++) {
15178     key = field[i]
15179     keylen = length(key)
15180     if (S_is_set[key]) {
15181       value = S[key]
15182       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15183       len += length(value) + length(field[++i])
15184       substed = 1
15185     } else
15186       len += 1 + keylen
15187   }
15188
15189   print line
15190 }
15191
15192 _ACAWK
15193 _ACEOF
15194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15196   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15197 else
15198   cat
15199 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15200   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15201 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15202    { (exit 1); exit 1; }; }
15203 _ACEOF
15204
15205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15207 # trailing colons and then remove the whole line if VPATH becomes empty
15208 # (actually we leave an empty line to preserve line numbers).
15209 if test "x$srcdir" = x.; then
15210   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15211 s/:*\$(srcdir):*/:/
15212 s/:*\${srcdir}:*/:/
15213 s/:*@srcdir@:*/:/
15214 s/^\([^=]*=[     ]*\):*/\1/
15215 s/:*$//
15216 s/^[^=]*=[       ]*$//
15217 }'
15218 fi
15219
15220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221 fi # test -n "$CONFIG_FILES"
15222
15223 # Set up the scripts for CONFIG_HEADERS section.
15224 # No need to generate them if there are no CONFIG_HEADERS.
15225 # This happens for instance with `./config.status Makefile'.
15226 if test -n "$CONFIG_HEADERS"; then
15227 cat >"$tmp/defines.awk" <<\_ACAWK ||
15228 BEGIN {
15229 _ACEOF
15230
15231 # Transform confdefs.h into an awk script `defines.awk', embedded as
15232 # here-document in config.status, that substitutes the proper values into
15233 # config.h.in to produce config.h.
15234
15235 # Create a delimiter string that does not exist in confdefs.h, to ease
15236 # handling of long lines.
15237 ac_delim='%!_!# '
15238 for ac_last_try in false false :; do
15239   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15240   if test -z "$ac_t"; then
15241     break
15242   elif $ac_last_try; then
15243     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15244 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15245    { (exit 1); exit 1; }; }
15246   else
15247     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15248   fi
15249 done
15250
15251 # For the awk script, D is an array of macro values keyed by name,
15252 # likewise P contains macro parameters if any.  Preserve backslash
15253 # newline sequences.
15254
15255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15256 sed -n '
15257 s/.\{148\}/&'"$ac_delim"'/g
15258 t rset
15259 :rset
15260 s/^[     ]*#[    ]*define[       ][      ]*/ /
15261 t def
15262 d
15263 :def
15264 s/\\$//
15265 t bsnl
15266 s/["\\]/\\&/g
15267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15268 D["\1"]=" \3"/p
15269 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15270 d
15271 :bsnl
15272 s/["\\]/\\&/g
15273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15274 D["\1"]=" \3\\\\\\n"\\/p
15275 t cont
15276 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15277 t cont
15278 d
15279 :cont
15280 n
15281 s/.\{148\}/&'"$ac_delim"'/g
15282 t clear
15283 :clear
15284 s/\\$//
15285 t bsnlc
15286 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15287 d
15288 :bsnlc
15289 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15290 b cont
15291 ' <confdefs.h | sed '
15292 s/'"$ac_delim"'/"\\\
15293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15294
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296   for (key in D) D_is_set[key] = 1
15297   FS = "\a"
15298 }
15299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15300   line = \$ 0
15301   split(line, arg, " ")
15302   if (arg[1] == "#") {
15303     defundef = arg[2]
15304     mac1 = arg[3]
15305   } else {
15306     defundef = substr(arg[1], 2)
15307     mac1 = arg[2]
15308   }
15309   split(mac1, mac2, "(") #)
15310   macro = mac2[1]
15311   prefix = substr(line, 1, index(line, defundef) - 1)
15312   if (D_is_set[macro]) {
15313     # Preserve the white space surrounding the "#".
15314     print prefix "define", macro P[macro] D[macro]
15315     next
15316   } else {
15317     # Replace #undef with comments.  This is necessary, for example,
15318     # in the case of _POSIX_SOURCE, which is predefined and required
15319     # on some systems where configure will not decide to define it.
15320     if (defundef == "undef") {
15321       print "/*", prefix defundef, macro, "*/"
15322       next
15323     }
15324   }
15325 }
15326 { print }
15327 _ACAWK
15328 _ACEOF
15329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15330   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15331 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15332    { (exit 1); exit 1; }; }
15333 fi # test -n "$CONFIG_HEADERS"
15334
15335
15336 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
15337 shift
15338 for ac_tag
15339 do
15340   case $ac_tag in
15341   :[FHLC]) ac_mode=$ac_tag; continue;;
15342   esac
15343   case $ac_mode$ac_tag in
15344   :[FHL]*:*);;
15345   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15346 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15347    { (exit 1); exit 1; }; };;
15348   :[FH]-) ac_tag=-:-;;
15349   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15350   esac
15351   ac_save_IFS=$IFS
15352   IFS=:
15353   set x $ac_tag
15354   IFS=$ac_save_IFS
15355   shift
15356   ac_file=$1
15357   shift
15358
15359   case $ac_mode in
15360   :L) ac_source=$1;;
15361   :[FH])
15362     ac_file_inputs=
15363     for ac_f
15364     do
15365       case $ac_f in
15366       -) ac_f="$tmp/stdin";;
15367       *) # Look for the file first in the build tree, then in the source tree
15368          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15369          # because $ac_f cannot contain `:'.
15370          test -f "$ac_f" ||
15371            case $ac_f in
15372            [\\/$]*) false;;
15373            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15374            esac ||
15375            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15376 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15377    { (exit 1); exit 1; }; };;
15378       esac
15379       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15380       ac_file_inputs="$ac_file_inputs '$ac_f'"
15381     done
15382
15383     # Let's still pretend it is `configure' which instantiates (i.e., don't
15384     # use $as_me), people would be surprised to read:
15385     #    /* config.h.  Generated by config.status.  */
15386     configure_input='Generated from '`
15387           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15388         `' by configure.'
15389     if test x"$ac_file" != x-; then
15390       configure_input="$ac_file.  $configure_input"
15391       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15392 $as_echo "$as_me: creating $ac_file" >&6;}
15393     fi
15394     # Neutralize special characters interpreted by sed in replacement strings.
15395     case $configure_input in #(
15396     *\&* | *\|* | *\\* )
15397        ac_sed_conf_input=`$as_echo "$configure_input" |
15398        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15399     *) ac_sed_conf_input=$configure_input;;
15400     esac
15401
15402     case $ac_tag in
15403     *:-:* | *:-) cat >"$tmp/stdin" \
15404       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15405 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15406    { (exit 1); exit 1; }; } ;;
15407     esac
15408     ;;
15409   esac
15410
15411   ac_dir=`$as_dirname -- "$ac_file" ||
15412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15413          X"$ac_file" : 'X\(//\)[^/]' \| \
15414          X"$ac_file" : 'X\(//\)$' \| \
15415          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15416 $as_echo X"$ac_file" |
15417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15418             s//\1/
15419             q
15420           }
15421           /^X\(\/\/\)[^/].*/{
15422             s//\1/
15423             q
15424           }
15425           /^X\(\/\/\)$/{
15426             s//\1/
15427             q
15428           }
15429           /^X\(\/\).*/{
15430             s//\1/
15431             q
15432           }
15433           s/.*/./; q'`
15434   { as_dir="$ac_dir"
15435   case $as_dir in #(
15436   -*) as_dir=./$as_dir;;
15437   esac
15438   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15439     as_dirs=
15440     while :; do
15441       case $as_dir in #(
15442       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15443       *) as_qdir=$as_dir;;
15444       esac
15445       as_dirs="'$as_qdir' $as_dirs"
15446       as_dir=`$as_dirname -- "$as_dir" ||
15447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15448          X"$as_dir" : 'X\(//\)[^/]' \| \
15449          X"$as_dir" : 'X\(//\)$' \| \
15450          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15451 $as_echo X"$as_dir" |
15452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15453             s//\1/
15454             q
15455           }
15456           /^X\(\/\/\)[^/].*/{
15457             s//\1/
15458             q
15459           }
15460           /^X\(\/\/\)$/{
15461             s//\1/
15462             q
15463           }
15464           /^X\(\/\).*/{
15465             s//\1/
15466             q
15467           }
15468           s/.*/./; q'`
15469       test -d "$as_dir" && break
15470     done
15471     test -z "$as_dirs" || eval "mkdir $as_dirs"
15472   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15473 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15474    { (exit 1); exit 1; }; }; }
15475   ac_builddir=.
15476
15477 case "$ac_dir" in
15478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15479 *)
15480   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15481   # A ".." for each directory in $ac_dir_suffix.
15482   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15483   case $ac_top_builddir_sub in
15484   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15485   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15486   esac ;;
15487 esac
15488 ac_abs_top_builddir=$ac_pwd
15489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15490 # for backward compatibility:
15491 ac_top_builddir=$ac_top_build_prefix
15492
15493 case $srcdir in
15494   .)  # We are building in place.
15495     ac_srcdir=.
15496     ac_top_srcdir=$ac_top_builddir_sub
15497     ac_abs_top_srcdir=$ac_pwd ;;
15498   [\\/]* | ?:[\\/]* )  # Absolute name.
15499     ac_srcdir=$srcdir$ac_dir_suffix;
15500     ac_top_srcdir=$srcdir
15501     ac_abs_top_srcdir=$srcdir ;;
15502   *) # Relative name.
15503     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15504     ac_top_srcdir=$ac_top_build_prefix$srcdir
15505     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15506 esac
15507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15508
15509
15510   case $ac_mode in
15511   :F)
15512   #
15513   # CONFIG_FILE
15514   #
15515
15516 _ACEOF
15517
15518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15519 # If the template does not know about datarootdir, expand it.
15520 # FIXME: This hack should be removed a few years after 2.60.
15521 ac_datarootdir_hack=; ac_datarootdir_seen=
15522
15523 ac_sed_dataroot='
15524 /datarootdir/ {
15525   p
15526   q
15527 }
15528 /@datadir@/p
15529 /@docdir@/p
15530 /@infodir@/p
15531 /@localedir@/p
15532 /@mandir@/p
15533 '
15534 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15535 *datarootdir*) ac_datarootdir_seen=yes;;
15536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15537   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15538 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15539 _ACEOF
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541   ac_datarootdir_hack='
15542   s&@datadir@&$datadir&g
15543   s&@docdir@&$docdir&g
15544   s&@infodir@&$infodir&g
15545   s&@localedir@&$localedir&g
15546   s&@mandir@&$mandir&g
15547     s&\\\${datarootdir}&$datarootdir&g' ;;
15548 esac
15549 _ACEOF
15550
15551 # Neutralize VPATH when `$srcdir' = `.'.
15552 # Shell code in configure.ac might set extrasub.
15553 # FIXME: do we really want to maintain this feature?
15554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555 ac_sed_extra="$ac_vpsub
15556 $extrasub
15557 _ACEOF
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 :t
15560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15561 s|@configure_input@|$ac_sed_conf_input|;t t
15562 s&@top_builddir@&$ac_top_builddir_sub&;t t
15563 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15564 s&@srcdir@&$ac_srcdir&;t t
15565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15566 s&@top_srcdir@&$ac_top_srcdir&;t t
15567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15568 s&@builddir@&$ac_builddir&;t t
15569 s&@abs_builddir@&$ac_abs_builddir&;t t
15570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15571 $ac_datarootdir_hack
15572 "
15573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15574   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15575 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15576    { (exit 1); exit 1; }; }
15577
15578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15579   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15580   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15581   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15582 which seems to be undefined.  Please make sure it is defined." >&5
15583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15584 which seems to be undefined.  Please make sure it is defined." >&2;}
15585
15586   rm -f "$tmp/stdin"
15587   case $ac_file in
15588   -) cat "$tmp/out" && rm -f "$tmp/out";;
15589   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15590   esac \
15591   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15592 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15593    { (exit 1); exit 1; }; }
15594  ;;
15595   :H)
15596   #
15597   # CONFIG_HEADER
15598   #
15599   if test x"$ac_file" != x-; then
15600     {
15601       $as_echo "/* $configure_input  */" \
15602       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15603     } >"$tmp/config.h" \
15604       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15605 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15606    { (exit 1); exit 1; }; }
15607     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15608       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15609 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15610     else
15611       rm -f "$ac_file"
15612       mv "$tmp/config.h" "$ac_file" \
15613         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15614 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15615    { (exit 1); exit 1; }; }
15616     fi
15617   else
15618     $as_echo "/* $configure_input  */" \
15619       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15620       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15621 $as_echo "$as_me: error: could not create -" >&2;}
15622    { (exit 1); exit 1; }; }
15623   fi
15624  ;;
15625
15626
15627   esac
15628
15629 done # for ac_tag
15630
15631
15632 { (exit 0); exit 0; }
15633 _ACEOF
15634 chmod +x $CONFIG_STATUS
15635 ac_clean_files=$ac_clean_files_save
15636
15637 test $ac_write_fail = 0 ||
15638   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15639 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15640    { (exit 1); exit 1; }; }
15641
15642
15643 # configure is writing to config.log, and then calls config.status.
15644 # config.status does its own redirection, appending to config.log.
15645 # Unfortunately, on DOS this fails, as config.log is still kept open
15646 # by configure, so config.status won't be able to write to it; its
15647 # output is simply discarded.  So we exec the FD to /dev/null,
15648 # effectively closing config.log, so it can be properly (re)opened and
15649 # appended to by config.status.  When coming back to configure, we
15650 # need to make the FD available again.
15651 if test "$no_create" != yes; then
15652   ac_cs_success=:
15653   ac_config_status_args=
15654   test "$silent" = yes &&
15655     ac_config_status_args="$ac_config_status_args --quiet"
15656   exec 5>/dev/null
15657   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15658   exec 5>>config.log
15659   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15660   # would make configure fail if this is the last instruction.
15661   $ac_cs_success || { (exit 1); exit 1; }
15662 fi
15663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15664   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15666 fi
15667
15668
15669     if test -n "$OPTIONAL"; then
15670         echo
15671         echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
15672     fi
15673
15674     if test -n "$REQUIRED"; then
15675         echo
15676         echo "ERROR: Please install required programs: $REQUIRED"
15677     fi
15678
15679     if test -n "$UNSUPPORTED"; then
15680         echo
15681         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
15682     fi
15683
15684     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
15685         echo
15686         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
15687         if test -f config.cache ; then
15688             echo "Remove config.cache before rerunning ./configure"
15689         fi
15690     fi
15691
15692     if test -n "$REQUIRED$UNSUPPORTED"; then
15693         rm -f $srcdir/GNUmakefile
15694         exit 1
15695     fi
15696
15697     # regular in-place build
15698     # test for srcdir_build = yes ?
15699     if test "$srcdir_build" = "yes"; then
15700         rm -f $srcdir/GNUmakefile
15701         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
15702         chmod 444 $srcdir/GNUmakefile
15703     else
15704         if test -f $srcdir/GNUmakefile; then
15705             cat <<EOF
15706 Source directory already configured.  Please clean the source directory
15707
15708      make -C $srcdir distclean
15709
15710 and rerun configure.
15711 EOF
15712             exit 2
15713         fi
15714
15715         abssrcdir="`cd $srcdir; pwd`"
15716         absbuilddir="`pwd`"
15717         for d in 2 3 4 5 ; do
15718             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
15719                 case "$abssrcdir" in
15720                     "$absbuilddir"/*)
15721 # source is below build directory, always copy
15722                         ;;
15723                     *)
15724                         case "$abssrcdir/${mf#./}" in
15725                             "$absbuilddir"/*)
15726 # find descended into build directory, don't copy
15727                                 continue
15728                         esac
15729                 esac
15730                 mkdir -p ${mf%/*}
15731                 cat <<EOF | $PYTHON -  > $mf
15732 print 'depth=' + ('../' * ( $d-1 ) )
15733 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15734 print 'include \$(configure-srcdir)/$mf'
15735 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
15736 EOF
15737             done
15738             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
15739                 case "$abssrcdir" in
15740                     "$absbuilddir"/*)
15741 # source is below build directory, always copy
15742                         ;;
15743                     *)
15744                         case "$abssrcdir/${mf#./}" in
15745                             "$absbuilddir"/*)
15746 # find descended into build directory, don't copy
15747                                 continue
15748                         esac
15749                 esac
15750                 mkdir -p ${mf%/*}
15751                 cat <<EOF | $PYTHON -  > $mf
15752 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15753 print 'include \$(configure-srcdir)/$mf'
15754 EOF
15755             done
15756         done
15757
15758         rm -f GNUmakefile
15759         cat <<EOF > GNUmakefile
15760 depth = .
15761 include config\$(if \$(conf),-\$(conf),).make
15762 include \$(configure-srcdir)/GNUmakefile.in
15763 EOF
15764         chmod 444 GNUmakefile
15765
15766     fi
15767
15768
15769 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
15770
15771 if make top-doc 1>/dev/null 2>&1; then
15772     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
15773     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
15774 fi
15775
15776 cat <<EOF
15777
15778 Type:
15779     make$mc all       to build LilyPond
15780     make$mc install   to install LilyPond
15781     make$mc help      to see all possible targets
15782
15783 Edit local.make for local Makefile overrides.
15784
15785
15786 EOF