]> git.donarmstrong.com Git - lilypond.git/blob - configure
Merge tag 'upstream/2.19.51' into debian-experimental
[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_LDFLAGS
671 PYTHON_CFLAGS
672 PYTHON_CONFIG
673 CXXABI_LIBS
674 GUILE_LDFLAGS
675 GUILE_CFLAGS
676 GUILE_CONFIG
677 KPSEWHICH
678 MFMODE
679 METAPOST
680 METAFONT
681 MSGFMT
682 FLEXLEXER_FILE
683 FLEX
684 BISON
685 YFLAGS
686 YACC
687 RANLIB
688 AR
689 EGREP
690 GREP
691 CXXCPP
692 ac_ct_CXX
693 CXXFLAGS
694 CXX
695 URWOTF_FILES
696 URWOTF_DIR
697 TEXGYRE_FILES
698 TEXGYRE_DIR
699 FCLIST
700 EXTRA_LIBS
701 DEFINES
702 cross_compiling
703 LD
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 LINK_GXX_STATICALLY
712 DOCUMENTATION
713 build_package_libdir
714 build_package_datadir
715 ROOTSEP
716 PATHSEP
717 DIRSEP
718 LN_S
719 LN
720 ZIP
721 program_suffix
722 program_prefix
723 PYTHON
724 BASH
725 KSH
726 TAR
727 FIND
728 MAKE
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 CONFIGSUFFIX
738 AUTOGENERATE
739 package_depth
740 TOPLEVEL_VERSION
741 PATCH_LEVEL
742 MICRO_VERSION
743 MINOR_VERSION
744 MAJOR_VERSION
745 VERSION
746 PACKAGE
747 package
748 stepmake
749 srcdir
750 ugh_ugh_autoconf250_builddir
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_config
792 enable_documentation
793 enable_guile2
794 with_texgyre_dir
795 with_urwotf_dir
796 enable_relocation
797 enable_rpath
798 enable_static_gxx
799 enable_debugging
800 enable_checking
801 enable_optimising
802 enable_profiling
803 enable_pipe
804 with_localedir
805 with_lang
806 with_python_include
807 with_python_lib
808 '
809       ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 CXX
818 CXXFLAGS
819 CCC
820 CXXCPP
821 YACC
822 YFLAGS'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877   # If the previous option needs an argument, assign it.
878   if test -n "$ac_prev"; then
879     eval $ac_prev=\$ac_option
880     ac_prev=
881     continue
882   fi
883
884   case $ac_option in
885   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886   *)    ac_optarg=yes ;;
887   esac
888
889   # Accept the important Cygnus configure options, so we can diagnose typos.
890
891   case $ac_dashdash$ac_option in
892   --)
893     ac_dashdash=yes ;;
894
895   -bindir | --bindir | --bindi | --bind | --bin | --bi)
896     ac_prev=bindir ;;
897   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898     bindir=$ac_optarg ;;
899
900   -build | --build | --buil | --bui | --bu)
901     ac_prev=build_alias ;;
902   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903     build_alias=$ac_optarg ;;
904
905   -cache-file | --cache-file | --cache-fil | --cache-fi \
906   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907     ac_prev=cache_file ;;
908   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910     cache_file=$ac_optarg ;;
911
912   --config-cache | -C)
913     cache_file=config.cache ;;
914
915   -datadir | --datadir | --datadi | --datad)
916     ac_prev=datadir ;;
917   -datadir=* | --datadir=* | --datadi=* | --datad=*)
918     datadir=$ac_optarg ;;
919
920   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921   | --dataroo | --dataro | --datar)
922     ac_prev=datarootdir ;;
923   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925     datarootdir=$ac_optarg ;;
926
927   -disable-* | --disable-*)
928     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929     # Reject names that are not valid shell variable names.
930     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
932    { (exit 1); exit 1; }; }
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
959    { (exit 1); exit 1; }; }
960     ac_useropt_orig=$ac_useropt
961     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962     case $ac_user_opts in
963       *"
964 "enable_$ac_useropt"
965 "*) ;;
966       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967          ac_unrecognized_sep=', ';;
968     esac
969     eval enable_$ac_useropt=\$ac_optarg ;;
970
971   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973   | --exec | --exe | --ex)
974     ac_prev=exec_prefix ;;
975   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977   | --exec=* | --exe=* | --ex=*)
978     exec_prefix=$ac_optarg ;;
979
980   -gas | --gas | --ga | --g)
981     # Obsolete; use --with-gas.
982     with_gas=yes ;;
983
984   -help | --help | --hel | --he | -h)
985     ac_init_help=long ;;
986   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987     ac_init_help=recursive ;;
988   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989     ac_init_help=short ;;
990
991   -host | --host | --hos | --ho)
992     ac_prev=host_alias ;;
993   -host=* | --host=* | --hos=* | --ho=*)
994     host_alias=$ac_optarg ;;
995
996   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997     ac_prev=htmldir ;;
998   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999   | --ht=*)
1000     htmldir=$ac_optarg ;;
1001
1002   -includedir | --includedir | --includedi | --included | --include \
1003   | --includ | --inclu | --incl | --inc)
1004     ac_prev=includedir ;;
1005   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006   | --includ=* | --inclu=* | --incl=* | --inc=*)
1007     includedir=$ac_optarg ;;
1008
1009   -infodir | --infodir | --infodi | --infod | --info | --inf)
1010     ac_prev=infodir ;;
1011   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012     infodir=$ac_optarg ;;
1013
1014   -libdir | --libdir | --libdi | --libd)
1015     ac_prev=libdir ;;
1016   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017     libdir=$ac_optarg ;;
1018
1019   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020   | --libexe | --libex | --libe)
1021     ac_prev=libexecdir ;;
1022   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023   | --libexe=* | --libex=* | --libe=*)
1024     libexecdir=$ac_optarg ;;
1025
1026   -localedir | --localedir | --localedi | --localed | --locale)
1027     ac_prev=localedir ;;
1028   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029     localedir=$ac_optarg ;;
1030
1031   -localstatedir | --localstatedir | --localstatedi | --localstated \
1032   | --localstate | --localstat | --localsta | --localst | --locals)
1033     ac_prev=localstatedir ;;
1034   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036     localstatedir=$ac_optarg ;;
1037
1038   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039     ac_prev=mandir ;;
1040   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041     mandir=$ac_optarg ;;
1042
1043   -nfp | --nfp | --nf)
1044     # Obsolete; use --without-fp.
1045     with_fp=no ;;
1046
1047   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048   | --no-cr | --no-c | -n)
1049     no_create=yes ;;
1050
1051   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053     no_recursion=yes ;;
1054
1055   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057   | --oldin | --oldi | --old | --ol | --o)
1058     ac_prev=oldincludedir ;;
1059   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062     oldincludedir=$ac_optarg ;;
1063
1064   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065     ac_prev=prefix ;;
1066   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067     prefix=$ac_optarg ;;
1068
1069   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070   | --program-pre | --program-pr | --program-p)
1071     ac_prev=program_prefix ;;
1072   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074     program_prefix=$ac_optarg ;;
1075
1076   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077   | --program-suf | --program-su | --program-s)
1078     ac_prev=program_suffix ;;
1079   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081     program_suffix=$ac_optarg ;;
1082
1083   -program-transform-name | --program-transform-name \
1084   | --program-transform-nam | --program-transform-na \
1085   | --program-transform-n | --program-transform- \
1086   | --program-transform | --program-transfor \
1087   | --program-transfo | --program-transf \
1088   | --program-trans | --program-tran \
1089   | --progr-tra | --program-tr | --program-t)
1090     ac_prev=program_transform_name ;;
1091   -program-transform-name=* | --program-transform-name=* \
1092   | --program-transform-nam=* | --program-transform-na=* \
1093   | --program-transform-n=* | --program-transform-=* \
1094   | --program-transform=* | --program-transfor=* \
1095   | --program-transfo=* | --program-transf=* \
1096   | --program-trans=* | --program-tran=* \
1097   | --progr-tra=* | --program-tr=* | --program-t=*)
1098     program_transform_name=$ac_optarg ;;
1099
1100   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101     ac_prev=pdfdir ;;
1102   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103     pdfdir=$ac_optarg ;;
1104
1105   -psdir | --psdir | --psdi | --psd | --ps)
1106     ac_prev=psdir ;;
1107   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108     psdir=$ac_optarg ;;
1109
1110   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111   | -silent | --silent | --silen | --sile | --sil)
1112     silent=yes ;;
1113
1114   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115     ac_prev=sbindir ;;
1116   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117   | --sbi=* | --sb=*)
1118     sbindir=$ac_optarg ;;
1119
1120   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122   | --sharedst | --shareds | --shared | --share | --shar \
1123   | --sha | --sh)
1124     ac_prev=sharedstatedir ;;
1125   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128   | --sha=* | --sh=*)
1129     sharedstatedir=$ac_optarg ;;
1130
1131   -site | --site | --sit)
1132     ac_prev=site ;;
1133   -site=* | --site=* | --sit=*)
1134     site=$ac_optarg ;;
1135
1136   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137     ac_prev=srcdir ;;
1138   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139     srcdir=$ac_optarg ;;
1140
1141   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142   | --syscon | --sysco | --sysc | --sys | --sy)
1143     ac_prev=sysconfdir ;;
1144   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146     sysconfdir=$ac_optarg ;;
1147
1148   -target | --target | --targe | --targ | --tar | --ta | --t)
1149     ac_prev=target_alias ;;
1150   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151     target_alias=$ac_optarg ;;
1152
1153   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154     verbose=yes ;;
1155
1156   -version | --version | --versio | --versi | --vers | -V)
1157     ac_init_version=: ;;
1158
1159   -with-* | --with-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_useropt_orig=$ac_useropt
1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167     case $ac_user_opts in
1168       *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172          ac_unrecognized_sep=', ';;
1173     esac
1174     eval with_$ac_useropt=\$ac_optarg ;;
1175
1176   -without-* | --without-*)
1177     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181    { (exit 1); exit 1; }; }
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213    { (exit 1); exit 1; }; }
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221    { (exit 1); exit 1; }; }
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1239    { (exit 1); exit 1; }; }
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243   case $enable_option_checking in
1244     no) ;;
1245     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1246    { (exit 1); exit 1; }; } ;;
1247     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248   esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253                 datadir sysconfdir sharedstatedir localstatedir includedir \
1254                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255                 libdir localedir mandir
1256 do
1257   eval ac_val=\$$ac_var
1258   # Remove trailing slashes.
1259   case $ac_val in
1260     */ )
1261       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262       eval $ac_var=\$ac_val;;
1263   esac
1264   # Be sure to have absolute directory names.
1265   case $ac_val in
1266     [\\/$]* | ?:[\\/]* )  continue;;
1267     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268   esac
1269   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1270    { (exit 1); exit 1; }; }
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282   if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285     If a cross compiler is detected then cross compile mode will be used." >&2
1286   elif test "x$build_alias" != "x$host_alias"; then
1287     cross_compiling=yes
1288   fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1301    { (exit 1); exit 1; }; }
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1304    { (exit 1); exit 1; }; }
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309   ac_srcdir_defaulted=yes
1310   # Try the directory containing this script, then the parent directory.
1311   ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313          X"$as_myself" : 'X\(//\)[^/]' \| \
1314          X"$as_myself" : 'X\(//\)$' \| \
1315          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)[^/].*/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\).*/{
1330             s//\1/
1331             q
1332           }
1333           s/.*/./; q'`
1334   srcdir=$ac_confdir
1335   if test ! -r "$srcdir/$ac_unique_file"; then
1336     srcdir=..
1337   fi
1338 else
1339   ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1344    { (exit 1); exit 1; }; }
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1349    { (exit 1); exit 1; }; }
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures this package to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 System types:
1433   --build=BUILD     configure for building on BUILD [guessed]
1434   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439
1440   cat <<\_ACEOF
1441
1442 Optional Features:
1443   --disable-option-checking  ignore unrecognized --enable/--with options
1444   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1445   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1446   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1447                           do `make conf=CONF' to get output in ./out-CONF
1448   --enable-documentation  build Documentation. Default: on
1449   --enable-guile2         highly experimental GUILE 2 support. Default: off
1450   --enable-relocation     compile with dynamic relocation. Default: off
1451   --enable-rpath          hardcode runtime library path. Default: off
1452   --enable-static-gxx     link libstdc++.a statically. Default: off
1453   --enable-debugging      compile with debugging info. Default: on
1454   --enable-checking       compile with expensive run-time checks. Default: off
1455   --enable-optimising     compile with optimising. Default: on
1456   --enable-profiling      compile with gprof support. Default: off
1457   --enable-pipe           compile with -pipe. Default: on
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-texgyre-dir=DIR  location of TeX Gyre fonts.
1463   --with-urwotf-dir=DIR   location of URW++ OTF fonts.
1464   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1465   --with-lang=LANG        use LANG as language to emit messages
1466   --with-python-include=DIR
1467                           location of the python include dir
1468   --with-python-lib=NAME  name of the python lib
1469
1470 Some influential environment variables:
1471   CC          C compiler command
1472   CFLAGS      C compiler flags
1473   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474               nonstandard directory <lib dir>
1475   LIBS        libraries to pass to the linker, e.g. -l<library>
1476   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477               you have headers in a nonstandard directory <include dir>
1478   CXX         C++ compiler command
1479   CXXFLAGS    C++ compiler flags
1480   CXXCPP      C++ preprocessor
1481   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1482               the first program found out of: `bison -y', `byacc', `yacc'.
1483   YFLAGS      The list of arguments that will be passed by default to $YACC.
1484               This script will default YFLAGS to the empty string to avoid a
1485               default value of `-d' given by some make applications.
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 _ACEOF
1491 ac_status=$?
1492 fi
1493
1494 if test "$ac_init_help" = "recursive"; then
1495   # If there are subdirs, report their specific --help.
1496   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497     test -d "$ac_dir" ||
1498       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499       continue
1500     ac_builddir=.
1501
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *)
1505   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506   # A ".." for each directory in $ac_dir_suffix.
1507   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508   case $ac_top_builddir_sub in
1509   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511   esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1517
1518 case $srcdir in
1519   .)  # We are building in place.
1520     ac_srcdir=.
1521     ac_top_srcdir=$ac_top_builddir_sub
1522     ac_abs_top_srcdir=$ac_pwd ;;
1523   [\\/]* | ?:[\\/]* )  # Absolute name.
1524     ac_srcdir=$srcdir$ac_dir_suffix;
1525     ac_top_srcdir=$srcdir
1526     ac_abs_top_srcdir=$srcdir ;;
1527   *) # Relative name.
1528     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529     ac_top_srcdir=$ac_top_build_prefix$srcdir
1530     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534     cd "$ac_dir" || { ac_status=$?; continue; }
1535     # Check for guested configure.
1536     if test -f "$ac_srcdir/configure.gnu"; then
1537       echo &&
1538       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539     elif test -f "$ac_srcdir/configure"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure" --help=recursive
1542     else
1543       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544     fi || ac_status=$?
1545     cd "$ac_pwd" || { ac_status=$?; break; }
1546   done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551   cat <<\_ACEOF
1552 configure
1553 generated by GNU Autoconf 2.63
1554
1555 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1556 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560   exit
1561 fi
1562 cat >config.log <<_ACEOF
1563 This file contains any messages produced by compilers while
1564 running configure, to aid debugging if configure makes a mistake.
1565
1566 It was created by $as_me, which was
1567 generated by GNU Autoconf 2.63.  Invocation command line was
1568
1569   $ $0 $@
1570
1571 _ACEOF
1572 exec 5>>config.log
1573 {
1574 cat <<_ASUNAME
1575 ## --------- ##
1576 ## Platform. ##
1577 ## --------- ##
1578
1579 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1580 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1581 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1582 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1583 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584
1585 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1586 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1587
1588 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1589 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1590 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1591 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1592 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1593 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1594 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1595
1596 _ASUNAME
1597
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   $as_echo "PATH: $as_dir"
1604 done
1605 IFS=$as_save_IFS
1606
1607 } >&5
1608
1609 cat >&5 <<_ACEOF
1610
1611
1612 ## ----------- ##
1613 ## Core tests. ##
1614 ## ----------- ##
1615
1616 _ACEOF
1617
1618
1619 # Keep a trace of the command line.
1620 # Strip out --no-create and --no-recursion so they do not pile up.
1621 # Strip out --silent because we don't want to record it for future runs.
1622 # Also quote any args containing shell meta-characters.
1623 # Make two passes to allow for proper duplicate-argument suppression.
1624 ac_configure_args=
1625 ac_configure_args0=
1626 ac_configure_args1=
1627 ac_must_keep_next=false
1628 for ac_pass in 1 2
1629 do
1630   for ac_arg
1631   do
1632     case $ac_arg in
1633     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1634     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1635     | -silent | --silent | --silen | --sile | --sil)
1636       continue ;;
1637     *\'*)
1638       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1639     esac
1640     case $ac_pass in
1641     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642     2)
1643       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1644       if test $ac_must_keep_next = true; then
1645         ac_must_keep_next=false # Got value, back to normal.
1646       else
1647         case $ac_arg in
1648           *=* | --config-cache | -C | -disable-* | --disable-* \
1649           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1650           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1651           | -with-* | --with-* | -without-* | --without-* | --x)
1652             case "$ac_configure_args0 " in
1653               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1654             esac
1655             ;;
1656           -* ) ac_must_keep_next=true ;;
1657         esac
1658       fi
1659       ac_configure_args="$ac_configure_args '$ac_arg'"
1660       ;;
1661     esac
1662   done
1663 done
1664 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666
1667 # When interrupted or exit'd, cleanup temporary files, and complete
1668 # config.log.  We remove comments because anyway the quotes in there
1669 # would cause problems or look ugly.
1670 # WARNING: Use '\'' to represent an apostrophe within the trap.
1671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1672 trap 'exit_status=$?
1673   # Save into config.log some information that might help in debugging.
1674   {
1675     echo
1676
1677     cat <<\_ASBOX
1678 ## ---------------- ##
1679 ## Cache variables. ##
1680 ## ---------------- ##
1681 _ASBOX
1682     echo
1683     # The following way of writing the cache mishandles newlines in values,
1684 (
1685   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686     eval ac_val=\$$ac_var
1687     case $ac_val in #(
1688     *${as_nl}*)
1689       case $ac_var in #(
1690       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1691 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1692       esac
1693       case $ac_var in #(
1694       _ | IFS | as_nl) ;; #(
1695       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1696       *) $as_unset $ac_var ;;
1697       esac ;;
1698     esac
1699   done
1700   (set) 2>&1 |
1701     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702     *${as_nl}ac_space=\ *)
1703       sed -n \
1704         "s/'\''/'\''\\\\'\'''\''/g;
1705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706       ;; #(
1707     *)
1708       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709       ;;
1710     esac |
1711     sort
1712 )
1713     echo
1714
1715     cat <<\_ASBOX
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1719 _ASBOX
1720     echo
1721     for ac_var in $ac_subst_vars
1722     do
1723       eval ac_val=\$$ac_var
1724       case $ac_val in
1725       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726       esac
1727       $as_echo "$ac_var='\''$ac_val'\''"
1728     done | sort
1729     echo
1730
1731     if test -n "$ac_subst_files"; then
1732       cat <<\_ASBOX
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1736 _ASBOX
1737       echo
1738       for ac_var in $ac_subst_files
1739       do
1740         eval ac_val=\$$ac_var
1741         case $ac_val in
1742         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743         esac
1744         $as_echo "$ac_var='\''$ac_val'\''"
1745       done | sort
1746       echo
1747     fi
1748
1749     if test -s confdefs.h; then
1750       cat <<\_ASBOX
1751 ## ----------- ##
1752 ## confdefs.h. ##
1753 ## ----------- ##
1754 _ASBOX
1755       echo
1756       cat confdefs.h
1757       echo
1758     fi
1759     test "$ac_signal" != 0 &&
1760       $as_echo "$as_me: caught signal $ac_signal"
1761     $as_echo "$as_me: exit $exit_status"
1762   } >&5
1763   rm -f core *.core core.conftest.* &&
1764     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765     exit $exit_status
1766 ' 0
1767 for ac_signal in 1 2 13 15; do
1768   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1769 done
1770 ac_signal=0
1771
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1774
1775 # Predefined preprocessor variables.
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799 _ACEOF
1800
1801
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer an explicitly selected file to automatically selected ones.
1804 ac_site_file1=NONE
1805 ac_site_file2=NONE
1806 if test -n "$CONFIG_SITE"; then
1807   ac_site_file1=$CONFIG_SITE
1808 elif test "x$prefix" != xNONE; then
1809   ac_site_file1=$prefix/share/config.site
1810   ac_site_file2=$prefix/etc/config.site
1811 else
1812   ac_site_file1=$ac_default_prefix/share/config.site
1813   ac_site_file2=$ac_default_prefix/etc/config.site
1814 fi
1815 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1816 do
1817   test "x$ac_site_file" = xNONE && continue
1818   if test -r "$ac_site_file"; then
1819     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1821     sed 's/^/| /' "$ac_site_file" >&5
1822     . "$ac_site_file"
1823   fi
1824 done
1825
1826 if test -r "$cache_file"; then
1827   # Some versions of bash will fail to source /dev/null (special
1828   # files actually), so we avoid doing that.
1829   if test -f "$cache_file"; then
1830     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 $as_echo "$as_me: loading cache $cache_file" >&6;}
1832     case $cache_file in
1833       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834       *)                      . "./$cache_file";;
1835     esac
1836   fi
1837 else
1838   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 $as_echo "$as_me: creating cache $cache_file" >&6;}
1840   >$cache_file
1841 fi
1842
1843 # Check that the precious variables saved in the cache have kept the same
1844 # value.
1845 ac_cache_corrupted=false
1846 for ac_var in $ac_precious_vars; do
1847   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848   eval ac_new_set=\$ac_env_${ac_var}_set
1849   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850   eval ac_new_val=\$ac_env_${ac_var}_value
1851   case $ac_old_set,$ac_new_set in
1852     set,)
1853       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855       ac_cache_corrupted=: ;;
1856     ,set)
1857       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,);;
1861     *)
1862       if test "x$ac_old_val" != "x$ac_new_val"; then
1863         # differences in whitespace do not lead to failure.
1864         ac_old_val_w=`echo x $ac_old_val`
1865         ac_new_val_w=`echo x $ac_new_val`
1866         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1867           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869           ac_cache_corrupted=:
1870         else
1871           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1872 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1873           eval $ac_var=\$ac_old_val
1874         fi
1875         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1876 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1877         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1878 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1879       fi;;
1880   esac
1881   # Pass precious variables to config.status.
1882   if test "$ac_new_set" = set; then
1883     case $ac_new_val in
1884     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     *) ac_arg=$ac_var=$ac_new_val ;;
1886     esac
1887     case " $ac_configure_args " in
1888       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1889       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890     esac
1891   fi
1892 done
1893 if $ac_cache_corrupted; then
1894   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1896   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900    { (exit 1); exit 1; }; }
1901 fi
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919 ac_ext=c
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925
1926
1927 # Bootstrap StepMake configure
1928 ac_aux_dir=
1929 for ac_dir in config "$srcdir"/config; do
1930   if test -f "$ac_dir/install-sh"; then
1931     ac_aux_dir=$ac_dir
1932     ac_install_sh="$ac_aux_dir/install-sh -c"
1933     break
1934   elif test -f "$ac_dir/install.sh"; then
1935     ac_aux_dir=$ac_dir
1936     ac_install_sh="$ac_aux_dir/install.sh -c"
1937     break
1938   elif test -f "$ac_dir/shtool"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/shtool install -c"
1941     break
1942   fi
1943 done
1944 if test -z "$ac_aux_dir"; then
1945   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1946 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1947    { (exit 1); exit 1; }; }
1948 fi
1949
1950 # These three variables are undocumented and unsupported,
1951 # and are intended to be withdrawn in a future Autoconf release.
1952 # They can cause serious problems if a builder's source tree is in a directory
1953 # whose full name contains unusual characters.
1954 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1955 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1956 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1957
1958
1959
1960 # Make sure we can run config.sub.
1961 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1962   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1963 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1964    { (exit 1); exit 1; }; }
1965
1966 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1967 $as_echo_n "checking build system type... " >&6; }
1968 if test "${ac_cv_build+set}" = set; then
1969   $as_echo_n "(cached) " >&6
1970 else
1971   ac_build_alias=$build_alias
1972 test "x$ac_build_alias" = x &&
1973   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1974 test "x$ac_build_alias" = x &&
1975   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1976 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1977    { (exit 1); exit 1; }; }
1978 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1979   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1980 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1981    { (exit 1); exit 1; }; }
1982
1983 fi
1984 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1985 $as_echo "$ac_cv_build" >&6; }
1986 case $ac_cv_build in
1987 *-*-*) ;;
1988 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1989 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1990    { (exit 1); exit 1; }; };;
1991 esac
1992 build=$ac_cv_build
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_build
1995 shift
1996 build_cpu=$1
1997 build_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 build_os=$*
2002 IFS=$ac_save_IFS
2003 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2004
2005
2006
2007
2008     . $srcdir/VERSION
2009     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2010     MICRO_VERSION=$PATCH_LEVEL
2011     TOPLEVEL_VERSION=$FULL_VERSION
2012     if test x$MY_PATCH_LEVEL != x; then
2013         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2014     fi
2015     VERSION=$FULL_VERSION
2016     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2017     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2018     #dnl
2019     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2020     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2021     #dnl
2022
2023     # No versioning on directory names of sub-packages
2024     # urg, urg
2025     stepmake=${datadir}/stepmake
2026     presome=${prefix}
2027     if test "$prefix" = "NONE"; then
2028             presome=${ac_default_prefix}
2029     fi
2030     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2031
2032     # urg, how is this supposed to work?
2033     if test "$program_prefix" = "NONE"; then
2034           program_prefix=
2035     fi
2036     if test "$program_suffix" = "NONE"; then
2037           program_suffix=
2038     fi
2039
2040     { $as_echo "$as_me:$LINENO: checking Package" >&5
2041 $as_echo_n "checking Package... " >&6; }
2042     if test "$PACKAGE" = "STEPMAKE"; then
2043         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2044 $as_echo "Stepmake package!" >&6; }
2045
2046         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2047 $as_echo_n "checking builddir... " >&6; }
2048
2049         ugh_ugh_autoconf250_builddir="`pwd`"
2050
2051         if test "$srcdir" = "."; then
2052             srcdir_build=yes
2053         else
2054             srcdir_build=no
2055             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2056             package_srcdir="`dirname  $srcdir`"
2057         fi
2058         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2059 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2060
2061         (cd stepmake 2>/dev/null || mkdir stepmake)
2062         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2063         stepmake=stepmake
2064     else
2065         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2066 $as_echo "$PACKAGE" >&6; }
2067
2068         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2069 $as_echo_n "checking builddir... " >&6; }
2070         ugh_ugh_autoconf250_builddir="`pwd`"
2071
2072         here_dir=$(cd . && pwd)
2073         full_src_dir=$(cd $srcdir && pwd)
2074
2075         if test "$full_src_dir" = "$here_dir"; then
2076             srcdir_build=yes
2077         else
2078             srcdir_build=no
2079         fi
2080         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2081 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2082
2083         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2084 $as_echo_n "checking for stepmake... " >&6; }
2085         # Check for installed stepmake
2086         if test -d $stepmake; then
2087             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2088 $as_echo "$stepmake" >&6; }
2089         else
2090             stepmake="`cd $srcdir/stepmake; pwd`"
2091             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2092 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2093         fi
2094     fi
2095
2096
2097
2098     # Use absolute directory for non-srcdir builds, so that build
2099     # dir can be moved.
2100     if test "$srcdir_build" = "no" ;  then
2101         srcdir="`cd $srcdir; pwd`"
2102     fi
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114     # stepmake nonstandard names
2115
2116
2117
2118     # We don't need the upper case variant,
2119     # so stick to macros are uppercase convention.
2120     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2121     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2122     cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE "${package}"
2124 _ACEOF
2125
2126     cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "${PACKAGE_NAME}"
2128 _ACEOF
2129
2130     cat >>confdefs.h <<_ACEOF
2131 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2132 _ACEOF
2133
2134
2135     if test -z "$package_depth"; then
2136         package_depth="."
2137     else
2138         package_depth="../$package_depth"
2139     fi
2140     export package_depth
2141
2142
2143     AUTOGENERATE="This file was automatically generated by configure"
2144
2145
2146     CONFIGSUFFIX=
2147     # Check whether --enable-config was given.
2148 if test "${enable_config+set}" = set; then
2149   enableval=$enable_config; CONFIGURATION=$enableval
2150 fi
2151
2152
2153     ##'`#
2154
2155     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2156     CONFIGFILE=config$CONFIGSUFFIX
2157
2158
2159     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2160 $as_echo_n "checking host system type... " >&6; }
2161 if test "${ac_cv_host+set}" = set; then
2162   $as_echo_n "(cached) " >&6
2163 else
2164   if test "x$host_alias" = x; then
2165   ac_cv_host=$ac_cv_build
2166 else
2167   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2168     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2169 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2170    { (exit 1); exit 1; }; }
2171 fi
2172
2173 fi
2174 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2175 $as_echo "$ac_cv_host" >&6; }
2176 case $ac_cv_host in
2177 *-*-*) ;;
2178 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2179 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2180    { (exit 1); exit 1; }; };;
2181 esac
2182 host=$ac_cv_host
2183 ac_save_IFS=$IFS; IFS='-'
2184 set x $ac_cv_host
2185 shift
2186 host_cpu=$1
2187 host_vendor=$2
2188 shift; shift
2189 # Remember, the first character of IFS is used to create $*,
2190 # except with old shells:
2191 host_os=$*
2192 IFS=$ac_save_IFS
2193 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2194
2195
2196
2197     for ac_prog in gmake make
2198 do
2199   # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 $as_echo_n "checking for $ac_word... " >&6; }
2203 if test "${ac_cv_prog_MAKE+set}" = set; then
2204   $as_echo_n "(cached) " >&6
2205 else
2206   if test -n "$MAKE"; then
2207   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214   for ac_exec_ext in '' $ac_executable_extensions; do
2215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216     ac_cv_prog_MAKE="$ac_prog"
2217     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218     break 2
2219   fi
2220 done
2221 done
2222 IFS=$as_save_IFS
2223
2224 fi
2225 fi
2226 MAKE=$ac_cv_prog_MAKE
2227 if test -n "$MAKE"; then
2228   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2229 $as_echo "$MAKE" >&6; }
2230 else
2231   { $as_echo "$as_me:$LINENO: result: no" >&5
2232 $as_echo "no" >&6; }
2233 fi
2234
2235
2236   test -n "$MAKE" && break
2237 done
2238 test -n "$MAKE" || MAKE="no"
2239
2240
2241
2242     r="`eval echo '$'"MAKE"`"
2243     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2244         true
2245     else
2246         ##STEPMAKE_WARN(cannot find . )
2247         false
2248     fi
2249
2250     if test $? -ne 0; then
2251
2252     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2253
2254         if test "REQUIRED" = "REQUIRED"; then
2255             command="echo ERROR: gmake make not found"
2256             # abort configure process here?
2257         else
2258             command="- echo gmake make not found"
2259         fi
2260         eval "MAKE"='$command'
2261         false
2262     else
2263         true
2264     fi
2265
2266     if test $? -eq 0 -a -n ""; then
2267
2268     r="`eval echo '$'"MAKE"`"
2269     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2270 $as_echo_n "checking $r version... " >&6; }
2271     exe=`
2272     ## which doesn't work in ash, if /usr/bin/which isn't installed
2273     ## type -p doesn't work in ash
2274     ## command -v doesn't work in zsh
2275     ## command -v "$r" 2>&1
2276     ## this test should work in ash, bash, pdksh (ksh), zsh
2277     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2278 `
2279     if test -n ""; then
2280         ver=""
2281     else
2282         ver=`
2283     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2284     ##
2285     ## ARG.
2286     ## Workaround for broken Debian gcc version string:
2287     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2288     ##
2289     ## -V: Workaround for python
2290
2291     #dnl
2292
2293     ## Assume and hunt for dotted version multiplet.
2294     ## use eval trickery, because we cannot use multi-level $() instead of ``
2295     ## for compatibility reasons.
2296
2297     ## grab the first version number in  --version output.
2298     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2299                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2300                 head -n 1 |
2301                 tr ' ' '\n' |
2302                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2303                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2304                 head -n 1\`\"
2305
2306     if test -z "$_ver"; then
2307         ## If empty, try date [fontforge]
2308         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2309             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2310             | head -n 1 \
2311             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2312     fi
2313     echo "$_ver"
2314     #dnl
2315 `
2316     fi
2317     num=`
2318     echo "$ver" | awk -F. '
2319     {
2320       if ($3) {three = $3}
2321       else {three = 0}
2322     }
2323     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2324 `
2325     req=`
2326     echo "" | awk -F. '
2327     {
2328       if ($3) {three = $3}
2329       else {three = 0}
2330     }
2331     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2332 `
2333     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2334 $as_echo "$ver" >&6; }
2335     if test "$num" -lt "$req"; then
2336
2337     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2338
2339     fi
2340     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2341     eval `echo $vervar=$num`
2342 ##    AC_SUBST(`eval echo $vervar`)
2343
2344     fi
2345
2346
2347     for ac_prog in find
2348 do
2349   # Extract the first word of "$ac_prog", so it can be a program name with args.
2350 set dummy $ac_prog; ac_word=$2
2351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if test "${ac_cv_prog_FIND+set}" = set; then
2354   $as_echo_n "(cached) " >&6
2355 else
2356   if test -n "$FIND"; then
2357   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364   for ac_exec_ext in '' $ac_executable_extensions; do
2365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366     ac_cv_prog_FIND="$ac_prog"
2367     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368     break 2
2369   fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 FIND=$ac_cv_prog_FIND
2377 if test -n "$FIND"; then
2378   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2379 $as_echo "$FIND" >&6; }
2380 else
2381   { $as_echo "$as_me:$LINENO: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385
2386   test -n "$FIND" && break
2387 done
2388 test -n "$FIND" || FIND="no"
2389
2390
2391
2392     r="`eval echo '$'"FIND"`"
2393     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2394         true
2395     else
2396         ##STEPMAKE_WARN(cannot find . )
2397         false
2398     fi
2399
2400     if test $? -ne 0; then
2401
2402     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2403
2404         if test "REQUIRED" = "REQUIRED"; then
2405             command="echo ERROR: find not found"
2406             # abort configure process here?
2407         else
2408             command="- echo find not found"
2409         fi
2410         eval "FIND"='$command'
2411         false
2412     else
2413         true
2414     fi
2415
2416     if test $? -eq 0 -a -n ""; then
2417
2418     r="`eval echo '$'"FIND"`"
2419     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2420 $as_echo_n "checking $r version... " >&6; }
2421     exe=`
2422     ## which doesn't work in ash, if /usr/bin/which isn't installed
2423     ## type -p doesn't work in ash
2424     ## command -v doesn't work in zsh
2425     ## command -v "$r" 2>&1
2426     ## this test should work in ash, bash, pdksh (ksh), zsh
2427     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2428 `
2429     if test -n ""; then
2430         ver=""
2431     else
2432         ver=`
2433     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2434     ##
2435     ## ARG.
2436     ## Workaround for broken Debian gcc version string:
2437     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2438     ##
2439     ## -V: Workaround for python
2440
2441     #dnl
2442
2443     ## Assume and hunt for dotted version multiplet.
2444     ## use eval trickery, because we cannot use multi-level $() instead of ``
2445     ## for compatibility reasons.
2446
2447     ## grab the first version number in  --version output.
2448     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2449                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2450                 head -n 1 |
2451                 tr ' ' '\n' |
2452                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2453                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2454                 head -n 1\`\"
2455
2456     if test -z "$_ver"; then
2457         ## If empty, try date [fontforge]
2458         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2459             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2460             | head -n 1 \
2461             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2462     fi
2463     echo "$_ver"
2464     #dnl
2465 `
2466     fi
2467     num=`
2468     echo "$ver" | awk -F. '
2469     {
2470       if ($3) {three = $3}
2471       else {three = 0}
2472     }
2473     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2474 `
2475     req=`
2476     echo "" | awk -F. '
2477     {
2478       if ($3) {three = $3}
2479       else {three = 0}
2480     }
2481     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2482 `
2483     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2484 $as_echo "$ver" >&6; }
2485     if test "$num" -lt "$req"; then
2486
2487     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2488
2489     fi
2490     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2491     eval `echo $vervar=$num`
2492 ##    AC_SUBST(`eval echo $vervar`)
2493
2494     fi
2495
2496
2497
2498     for ac_prog in tar
2499 do
2500   # Extract the first word of "$ac_prog", so it can be a program name with args.
2501 set dummy $ac_prog; ac_word=$2
2502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 $as_echo_n "checking for $ac_word... " >&6; }
2504 if test "${ac_cv_prog_TAR+set}" = set; then
2505   $as_echo_n "(cached) " >&6
2506 else
2507   if test -n "$TAR"; then
2508   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     ac_cv_prog_TAR="$ac_prog"
2518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526 fi
2527 TAR=$ac_cv_prog_TAR
2528 if test -n "$TAR"; then
2529   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2530 $as_echo "$TAR" >&6; }
2531 else
2532   { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2534 fi
2535
2536
2537   test -n "$TAR" && break
2538 done
2539 test -n "$TAR" || TAR="no"
2540
2541
2542
2543     r="`eval echo '$'"TAR"`"
2544     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2545         true
2546     else
2547         ##STEPMAKE_WARN(cannot find . )
2548         false
2549     fi
2550
2551     if test $? -ne 0; then
2552
2553     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2554
2555         if test "REQUIRED" = "REQUIRED"; then
2556             command="echo ERROR: tar not found"
2557             # abort configure process here?
2558         else
2559             command="- echo tar not found"
2560         fi
2561         eval "TAR"='$command'
2562         false
2563     else
2564         true
2565     fi
2566
2567     if test $? -eq 0 -a -n ""; then
2568
2569     r="`eval echo '$'"TAR"`"
2570     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2571 $as_echo_n "checking $r version... " >&6; }
2572     exe=`
2573     ## which doesn't work in ash, if /usr/bin/which isn't installed
2574     ## type -p doesn't work in ash
2575     ## command -v doesn't work in zsh
2576     ## command -v "$r" 2>&1
2577     ## this test should work in ash, bash, pdksh (ksh), zsh
2578     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2579 `
2580     if test -n ""; then
2581         ver=""
2582     else
2583         ver=`
2584     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2585     ##
2586     ## ARG.
2587     ## Workaround for broken Debian gcc version string:
2588     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2589     ##
2590     ## -V: Workaround for python
2591
2592     #dnl
2593
2594     ## Assume and hunt for dotted version multiplet.
2595     ## use eval trickery, because we cannot use multi-level $() instead of ``
2596     ## for compatibility reasons.
2597
2598     ## grab the first version number in  --version output.
2599     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2600                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2601                 head -n 1 |
2602                 tr ' ' '\n' |
2603                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2604                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2605                 head -n 1\`\"
2606
2607     if test -z "$_ver"; then
2608         ## If empty, try date [fontforge]
2609         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2610             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2611             | head -n 1 \
2612             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2613     fi
2614     echo "$_ver"
2615     #dnl
2616 `
2617     fi
2618     num=`
2619     echo "$ver" | awk -F. '
2620     {
2621       if ($3) {three = $3}
2622       else {three = 0}
2623     }
2624     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2625 `
2626     req=`
2627     echo "" | awk -F. '
2628     {
2629       if ($3) {three = $3}
2630       else {three = 0}
2631     }
2632     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2633 `
2634     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2635 $as_echo "$ver" >&6; }
2636     if test "$num" -lt "$req"; then
2637
2638     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2639
2640     fi
2641     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2642     eval `echo $vervar=$num`
2643 ##    AC_SUBST(`eval echo $vervar`)
2644
2645     fi
2646
2647
2648     if test "$(echo 2)" != "2" ||
2649         test "x`uname`" = "xHP-UX"; then
2650         # Extract the first word of "ksh", so it can be a program name with args.
2651 set dummy ksh; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_path_KSH+set}" = set; then
2655   $as_echo_n "(cached) " >&6
2656 else
2657   case $KSH in
2658   [\\/]* | ?:[\\/]*)
2659   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2660   ;;
2661   *)
2662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665   IFS=$as_save_IFS
2666   test -z "$as_dir" && as_dir=.
2667   for ac_exec_ext in '' $ac_executable_extensions; do
2668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2670     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671     break 2
2672   fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2678   ;;
2679 esac
2680 fi
2681 KSH=$ac_cv_path_KSH
2682 if test -n "$KSH"; then
2683   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2684 $as_echo "$KSH" >&6; }
2685 else
2686   { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691         # Extract the first word of "bash", so it can be a program name with args.
2692 set dummy bash; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_path_BASH+set}" = set; then
2696   $as_echo_n "(cached) " >&6
2697 else
2698   case $BASH in
2699   [\\/]* | ?:[\\/]*)
2700   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2701   ;;
2702   *)
2703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for ac_exec_ext in '' $ac_executable_extensions; do
2709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2711     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2719   ;;
2720 esac
2721 fi
2722 BASH=$ac_cv_path_BASH
2723 if test -n "$BASH"; then
2724   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2725 $as_echo "$BASH" >&6; }
2726 else
2727   { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732
2733     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2734 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2735     warn_b=yes
2736
2737         # Extract the first word of "bash", so it can be a program name with args.
2738 set dummy bash; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_path_SHELL+set}" = set; then
2742   $as_echo_n "(cached) " >&6
2743 else
2744   case $SHELL in
2745   [\\/]* | ?:[\\/]*)
2746   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2747   ;;
2748   *)
2749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754   for ac_exec_ext in '' $ac_executable_extensions; do
2755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2757     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759   fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2765   ;;
2766 esac
2767 fi
2768 SHELL=$ac_cv_path_SHELL
2769 if test -n "$SHELL"; then
2770   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2771 $as_echo "$SHELL" >&6; }
2772 else
2773   { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2775 fi
2776
2777
2778     else
2779         SHELL=/bin/sh
2780         # Extract the first word of "bash", so it can be a program name with args.
2781 set dummy bash; ac_word=$2
2782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_path_BASH+set}" = set; then
2785   $as_echo_n "(cached) " >&6
2786 else
2787   case $BASH in
2788   [\\/]* | ?:[\\/]*)
2789   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2790   ;;
2791   *)
2792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2800     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2808   ;;
2809 esac
2810 fi
2811 BASH=$ac_cv_path_BASH
2812 if test -n "$BASH"; then
2813   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2814 $as_echo "$BASH" >&6; }
2815 else
2816   { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2818 fi
2819
2820
2821     fi
2822
2823
2824
2825     { $as_echo "$as_me:$LINENO: checking for python" >&5
2826 $as_echo_n "checking for python... " >&6; }
2827     python="python"
2828     found="no"
2829     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
2830         exe=`
2831     ## which doesn't work in ash, if /usr/bin/which isn't installed
2832     ## type -p doesn't work in ash
2833     ## command -v doesn't work in zsh
2834     ## command -v "$r" 2>&1
2835     ## this test should work in ash, bash, pdksh (ksh), zsh
2836     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2837 `
2838         if ! $exe -V > /dev/null 2>&1 ; then
2839             continue
2840         fi
2841         ver=`
2842     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2843     ##
2844     ## ARG.
2845     ## Workaround for broken Debian gcc version string:
2846     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2847     ##
2848     ## -V: Workaround for python
2849
2850     #dnl
2851
2852     ## Assume and hunt for dotted version multiplet.
2853     ## use eval trickery, because we cannot use multi-level $() instead of ``
2854     ## for compatibility reasons.
2855
2856     ## grab the first version number in  --version output.
2857     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2858                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2859                 head -n 1 |
2860                 tr ' ' '\n' |
2861                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2862                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2863                 head -n 1\`\"
2864
2865     if test -z "$_ver"; then
2866         ## If empty, try date [fontforge]
2867         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2868             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2869             | head -n 1 \
2870             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2871     fi
2872     echo "$_ver"
2873     #dnl
2874 `
2875         num=`
2876     echo "$ver" | awk -F. '
2877     {
2878       if ($3) {three = $3}
2879       else {three = 0}
2880     }
2881     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2882 `
2883         req=`
2884     echo "1.5" | awk -F. '
2885     {
2886       if ($3) {three = $3}
2887       else {three = 0}
2888     }
2889     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2890 `
2891         sup=`
2892     echo "3.0" | awk -F. '
2893     {
2894       if ($3) {three = $3}
2895       else {three = 0}
2896     }
2897     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2898 `
2899         if test -n "1.5" && test "$num" -lt "$req"; then
2900             python="$r >= 1.5 (installed: $ver)"
2901             continue
2902         else
2903             if test -n "3.0" && test "$num" -ge "$sup"; then
2904                 python="$r < 3.0 (installed: $ver)"
2905                 continue
2906             else
2907                 python=$r
2908                 found=$r
2909                 break
2910             fi
2911         fi
2912     done
2913     { $as_echo "$as_me:$LINENO: result: $found" >&5
2914 $as_echo "$found" >&6; }
2915     if test "$found" != "no"; then
2916         { $as_echo "$as_me:$LINENO: checking $python version" >&5
2917 $as_echo_n "checking $python version... " >&6; }
2918         { $as_echo "$as_me:$LINENO: result: $ver" >&5
2919 $as_echo "$ver" >&6; }
2920         PYTHON=$found
2921     else
2922
2923     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2924
2925     fi
2926     # Extract the first word of "$PYTHON", so it can be a program name with args.
2927 set dummy $PYTHON; ac_word=$2
2928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_path_PYTHON+set}" = set; then
2931   $as_echo_n "(cached) " >&6
2932 else
2933   case $PYTHON in
2934   [\\/]* | ?:[\\/]*)
2935   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2936   ;;
2937   *)
2938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943   for ac_exec_ext in '' $ac_executable_extensions; do
2944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2946     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953   ;;
2954 esac
2955 fi
2956 PYTHON=$ac_cv_path_PYTHON
2957 if test -n "$PYTHON"; then
2958   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2959 $as_echo "$PYTHON" >&6; }
2960 else
2961   { $as_echo "$as_me:$LINENO: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966
2967
2968
2969     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2970         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2971         if test "$?" = 1; then
2972             warn='make (Please install *GNU* make)'
2973             # STEPMAKE_WARN($warn)
2974
2975     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2976
2977         fi
2978     fi
2979
2980     ROOTSEP=':'
2981     DIRSEP='/'
2982     PATHSEP=':'
2983     LN=ln
2984     LN_S='ln -s'
2985     ZIP="zip -r -9"
2986
2987
2988
2989
2990
2991
2992     cat >>confdefs.h <<_ACEOF
2993 #define DIRSEP '${DIRSEP}'
2994 _ACEOF
2995
2996     cat >>confdefs.h <<_ACEOF
2997 #define PATHSEP '${PATHSEP}'
2998 _ACEOF
2999
3000
3001
3002
3003
3004
3005     presome=${prefix}
3006     if test "$prefix" = "NONE"; then
3007         presome=${ac_default_prefix}
3008     fi
3009
3010     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3011
3012     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3013     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3014     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3015
3016
3017
3018
3019     cat >>confdefs.h <<_ACEOF
3020 #define DATADIR "${DATADIR}"
3021 _ACEOF
3022
3023     cat >>confdefs.h <<_ACEOF
3024 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3025 _ACEOF
3026
3027
3028
3029     presome=${exec_prefix}
3030     if test "$presome" = "NONE"; then
3031             presome=${prefix}
3032     fi
3033     if test "$presome" = "NONE"; then
3034             presome=${ac_default_prefix}
3035     fi
3036
3037     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3038
3039     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3040     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3041
3042
3043
3044     cat >>confdefs.h <<_ACEOF
3045 #define LIBDIR "${LIBDIR}"
3046 _ACEOF
3047
3048     cat >>confdefs.h <<_ACEOF
3049 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3050 _ACEOF
3051
3052
3053
3054
3055 # List a file that identifies your package.
3056
3057
3058 # Move to aclocal.m4?
3059 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3060
3061
3062 # Uncomment the configuration options your package needs.
3063
3064 DOCUMENTATION=yes
3065 # Check whether --enable-documentation was given.
3066 if test "${enable_documentation+set}" = set; then
3067   enableval=$enable_documentation; DOCUMENTATION=$enableval
3068 fi
3069
3070
3071
3072 GUILEv2=no
3073 # Check whether --enable-guile2 was given.
3074 if test "${enable_guile2+set}" = set; then
3075   enableval=$enable_guile2; GUILEv2=$enableval
3076 fi
3077
3078
3079
3080 # Check whether --with-texgyre-dir was given.
3081 if test "${with_texgyre_dir+set}" = set; then
3082   withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3083 else
3084   TEXGYRE_DIR=""
3085 fi
3086
3087
3088
3089 # Check whether --with-urwotf-dir was given.
3090 if test "${with_urwotf_dir+set}" = set; then
3091   withval=$with_urwotf_dir; URWOTF_DIR=$withval
3092 else
3093   URWOTF_DIR=""
3094 fi
3095
3096
3097 reloc_b=no
3098 # Check whether --enable-relocation was given.
3099 if test "${enable_relocation+set}" = set; then
3100   enableval=$enable_relocation; reloc_b=$enableval
3101 fi
3102
3103
3104 rpath_b=no
3105 # Check whether --enable-rpath was given.
3106 if test "${enable_rpath+set}" = set; then
3107   enableval=$enable_rpath; rpath_b=$enableval
3108 fi
3109
3110
3111 LINK_GXX_STATICALLY=no
3112 # Check whether --enable-static-gxx was given.
3113 if test "${enable_static_gxx+set}" = set; then
3114   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3115 fi
3116
3117
3118
3119 # must come before any header checks
3120
3121     # -O is necessary to get inlining
3122     CFLAGS=${CFLAGS-""}
3123     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3124     LDFLAGS=${LDFLAGS-""}
3125     optimise_b=yes
3126     checks_b=no
3127     profile_b=no
3128     debug_b=yes
3129     pipe_b=yes
3130
3131     # Check whether --enable-debugging was given.
3132 if test "${enable_debugging+set}" = set; then
3133   enableval=$enable_debugging; debug_b=$enableval
3134 fi
3135
3136
3137     # Check whether --enable-checking was given.
3138 if test "${enable_checking+set}" = set; then
3139   enableval=$enable_checking; checks_b=$enableval
3140 fi
3141
3142
3143     # Check whether --enable-optimising was given.
3144 if test "${enable_optimising+set}" = set; then
3145   enableval=$enable_optimising; optimise_b=$enableval
3146 fi
3147
3148
3149     # Check whether --enable-profiling was given.
3150 if test "${enable_profiling+set}" = set; then
3151   enableval=$enable_profiling; profile_b=$enableval
3152 fi
3153
3154
3155     # Check whether --enable-pipe was given.
3156 if test "${enable_pipe+set}" = set; then
3157   enableval=$enable_pipe; pipe_b=$enableval
3158 fi
3159
3160
3161     if test "$optimise_b" = yes; then
3162         OPTIMIZE=" -O2 -finline-functions"
3163         # following two lines are compatibility while Patchy has not
3164         # yet learnt about --enable-checking.  But once it has, we
3165         # don't want -DDEBUG twice, so we omit it here if it is going
3166         # to get added anyway later.
3167     elif test "$checks_b" != yes; then
3168         DEFINES="$DEFINES -DDEBUG"
3169     fi
3170
3171     if test "$checks_b" = yes; then
3172         DEFINES="$DEFINES -DDEBUG"
3173     fi
3174
3175     if test $profile_b = yes; then
3176         EXTRA_LIBS="-pg"
3177         OPTIMIZE="$OPTIMIZE -pg"
3178     fi
3179
3180     if test $debug_b = yes; then
3181         OPTIMIZE="$OPTIMIZE -g"
3182     fi
3183
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$CC"; then
3198   ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222   { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 fi
3228 if test -z "$ac_cv_prog_CC"; then
3229   ac_ct_CC=$CC
3230   # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235   $as_echo_n "(cached) " >&6
3236 else
3237   if test -n "$ac_ct_CC"; then
3238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245   for ac_exec_ext in '' $ac_executable_extensions; do
3246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247     ac_cv_prog_ac_ct_CC="gcc"
3248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252 done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3260 $as_echo "$ac_ct_CC" >&6; }
3261 else
3262   { $as_echo "$as_me:$LINENO: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266   if test "x$ac_ct_CC" = x; then
3267     CC=""
3268   else
3269     case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275     CC=$ac_ct_CC
3276   fi
3277 else
3278   CC="$ac_cv_prog_CC"
3279 fi
3280
3281 if test -z "$CC"; then
3282           if test -n "$ac_tool_prefix"; then
3283     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298   for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     ac_cv_prog_CC="${ac_tool_prefix}cc"
3301     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302     break 2
3303   fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315   { $as_echo "$as_me:$LINENO: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320   fi
3321 fi
3322 if test -z "$CC"; then
3323   # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328   $as_echo_n "(cached) " >&6
3329 else
3330   if test -n "$CC"; then
3331   ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333   ac_prog_rejected=no
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339   for ac_exec_ext in '' $ac_executable_extensions; do
3340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342        ac_prog_rejected=yes
3343        continue
3344      fi
3345     ac_cv_prog_CC="cc"
3346     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 if test $ac_prog_rejected = yes; then
3354   # We found a bogon in the path, so make sure we never use it.
3355   set dummy $ac_cv_prog_CC
3356   shift
3357   if test $# != 0; then
3358     # We chose a different compiler from the bogus one.
3359     # However, it has the same basename, so the bogon will be chosen
3360     # first if we set CC to just the basename; use the full file name.
3361     shift
3362     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3363   fi
3364 fi
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 fi
3378 if test -z "$CC"; then
3379   if test -n "$ac_tool_prefix"; then
3380   for ac_prog in cl.exe
3381   do
3382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then
3387   $as_echo_n "(cached) " >&6
3388 else
3389   if test -n "$CC"; then
3390   ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397   for ac_exec_ext in '' $ac_executable_extensions; do
3398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401     break 2
3402   fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 CC=$ac_cv_prog_CC
3410 if test -n "$CC"; then
3411   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3413 else
3414   { $as_echo "$as_me:$LINENO: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418
3419     test -n "$CC" && break
3420   done
3421 fi
3422 if test -z "$CC"; then
3423   ac_ct_CC=$CC
3424   for ac_prog in cl.exe
3425 do
3426   # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test -n "$ac_ct_CC"; then
3434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443     ac_cv_prog_ac_ct_CC="$ac_prog"
3444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3457 else
3458   { $as_echo "$as_me:$LINENO: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463   test -n "$ac_ct_CC" && break
3464 done
3465
3466   if test "x$ac_ct_CC" = x; then
3467     CC=""
3468   else
3469     case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475     CC=$ac_ct_CC
3476   fi
3477 fi
3478
3479 fi
3480
3481
3482 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&5
3486 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&2;}
3488    { (exit 1); exit 1; }; }; }
3489
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3492 set X $ac_compile
3493 ac_compiler=$2
3494 { (ac_try="$ac_compiler --version >&5"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501   (eval "$ac_compiler --version >&5") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }
3505 { (ac_try="$ac_compiler -v >&5"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512   (eval "$ac_compiler -v >&5") 2>&5
3513   ac_status=$?
3514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); }
3516 { (ac_try="$ac_compiler -V >&5"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523   (eval "$ac_compiler -V >&5") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }
3527
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534
3535 int
3536 main ()
3537 {
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3547 # of exeext.
3548 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3549 $as_echo_n "checking for C compiler default output file name... " >&6; }
3550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3551
3552 # The possible output files:
3553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3554
3555 ac_rmfiles=
3556 for ac_file in $ac_files
3557 do
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3561   esac
3562 done
3563 rm -f $ac_rmfiles
3564
3565 if { (ac_try="$ac_link_default"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3571 $as_echo "$ac_try_echo") >&5
3572   (eval "$ac_link_default") 2>&5
3573   ac_status=$?
3574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; then
3576   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3578 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3579 # so that the user can short-circuit this test for compilers unknown to
3580 # Autoconf.
3581 for ac_file in $ac_files ''
3582 do
3583   test -f "$ac_file" || continue
3584   case $ac_file in
3585     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3586         ;;
3587     [ab].out )
3588         # We found the default executable, but exeext='' is most
3589         # certainly right.
3590         break;;
3591     *.* )
3592         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3593         then :; else
3594            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595         fi
3596         # We set ac_cv_exeext here because the later test for it is not
3597         # safe: cross compilers may not add the suffix if given an `-o'
3598         # argument, so we may need to know it at that point already.
3599         # Even if this section looks crufty: it has the advantage of
3600         # actually working.
3601         break;;
3602     * )
3603         break;;
3604   esac
3605 done
3606 test "$ac_cv_exeext" = no && ac_cv_exeext=
3607
3608 else
3609   ac_file=''
3610 fi
3611
3612 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3613 $as_echo "$ac_file" >&6; }
3614 if test -z "$ac_file"; then
3615   $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3621 See \`config.log' for more details." >&5
3622 $as_echo "$as_me: error: C compiler cannot create executables
3623 See \`config.log' for more details." >&2;}
3624    { (exit 77); exit 77; }; }; }
3625 fi
3626
3627 ac_exeext=$ac_cv_exeext
3628
3629 # Check that the compiler produces executables we can run.  If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3632 $as_echo_n "checking whether the C compiler works... " >&6; }
3633 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3634 # If not cross compiling, check that we can run a simple program.
3635 if test "$cross_compiling" != yes; then
3636   if { ac_try='./$ac_file'
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_try") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647     cross_compiling=no
3648   else
3649     if test "$cross_compiling" = maybe; then
3650         cross_compiling=yes
3651     else
3652         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details." >&5
3657 $as_echo "$as_me: error: cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details." >&2;}
3660    { (exit 1); exit 1; }; }; }
3661     fi
3662   fi
3663 fi
3664 { $as_echo "$as_me:$LINENO: result: yes" >&5
3665 $as_echo "yes" >&6; }
3666
3667 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3668 ac_clean_files=$ac_clean_files_save
3669 # Check that the compiler produces executables we can run.  If not, either
3670 # the compiler is broken, or we cross compile.
3671 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3672 $as_echo_n "checking whether we are cross compiling... " >&6; }
3673 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3674 $as_echo "$cross_compiling" >&6; }
3675
3676 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3677 $as_echo_n "checking for suffix of executables... " >&6; }
3678 if { (ac_try="$ac_link"
3679 case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685   (eval "$ac_link") 2>&5
3686   ac_status=$?
3687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; then
3689   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3690 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3691 # work properly (i.e., refer to `conftest.exe'), while it won't with
3692 # `rm'.
3693 for ac_file in conftest.exe conftest conftest.*; do
3694   test -f "$ac_file" || continue
3695   case $ac_file in
3696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3697     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698           break;;
3699     * ) break;;
3700   esac
3701 done
3702 else
3703   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3706 See \`config.log' for more details." >&5
3707 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3708 See \`config.log' for more details." >&2;}
3709    { (exit 1); exit 1; }; }; }
3710 fi
3711
3712 rm -f conftest$ac_cv_exeext
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3720 $as_echo_n "checking for suffix of object files... " >&6; }
3721 if test "${ac_cv_objext+set}" = set; then
3722   $as_echo_n "(cached) " >&6
3723 else
3724   cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h.  */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 rm -f conftest.o conftest.obj
3740 if { (ac_try="$ac_compile"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746 $as_echo "$ac_try_echo") >&5
3747   (eval "$ac_compile") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; then
3751   for ac_file in conftest.o conftest.obj conftest.*; do
3752   test -f "$ac_file" || continue;
3753   case $ac_file in
3754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3755     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756        break;;
3757   esac
3758 done
3759 else
3760   $as_echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3766 See \`config.log' for more details." >&5
3767 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3768 See \`config.log' for more details." >&2;}
3769    { (exit 1); exit 1; }; }; }
3770 fi
3771
3772 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3773 fi
3774 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3775 $as_echo "$ac_cv_objext" >&6; }
3776 OBJEXT=$ac_cv_objext
3777 ac_objext=$OBJEXT
3778 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3779 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3780 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793 #ifndef __GNUC__
3794        choke me
3795 #endif
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809   (eval "$ac_compile") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } && {
3816          test -z "$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        } && test -s conftest.$ac_objext; then
3819   ac_compiler_gnu=yes
3820 else
3821   $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824         ac_compiler_gnu=no
3825 fi
3826
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3829
3830 fi
3831 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3833 if test $ac_compiler_gnu = yes; then
3834   GCC=yes
3835 else
3836   GCC=
3837 fi
3838 ac_test_CFLAGS=${CFLAGS+set}
3839 ac_save_CFLAGS=$CFLAGS
3840 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3842 if test "${ac_cv_prog_cc_g+set}" = set; then
3843   $as_echo_n "(cached) " >&6
3844 else
3845   ac_save_c_werror_flag=$ac_c_werror_flag
3846    ac_c_werror_flag=yes
3847    ac_cv_prog_cc_g=no
3848    CFLAGS="-g"
3849    cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855
3856 int
3857 main ()
3858 {
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3871 $as_echo "$ac_try_echo") >&5
3872   (eval "$ac_compile") 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } && {
3879          test -z "$ac_c_werror_flag" ||
3880          test ! -s conftest.err
3881        } && test -s conftest.$ac_objext; then
3882   ac_cv_prog_cc_g=yes
3883 else
3884   $as_echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887         CFLAGS=""
3888       cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911   (eval "$ac_compile") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } && {
3918          test -z "$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        } && test -s conftest.$ac_objext; then
3921   :
3922 else
3923   $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926         ac_c_werror_flag=$ac_save_c_werror_flag
3927          CFLAGS="-g"
3928          cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934
3935 int
3936 main ()
3937 {
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.$ac_objext
3944 if { (ac_try="$ac_compile"
3945 case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3950 $as_echo "$ac_try_echo") >&5
3951   (eval "$ac_compile") 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } && {
3958          test -z "$ac_c_werror_flag" ||
3959          test ! -s conftest.err
3960        } && test -s conftest.$ac_objext; then
3961   ac_cv_prog_cc_g=yes
3962 else
3963   $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966
3967 fi
3968
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 fi
3971
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976    ac_c_werror_flag=$ac_save_c_werror_flag
3977 fi
3978 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3979 $as_echo "$ac_cv_prog_cc_g" >&6; }
3980 if test "$ac_test_CFLAGS" = set; then
3981   CFLAGS=$ac_save_CFLAGS
3982 elif test $ac_cv_prog_cc_g = yes; then
3983   if test "$GCC" = yes; then
3984     CFLAGS="-g -O2"
3985   else
3986     CFLAGS="-g"
3987   fi
3988 else
3989   if test "$GCC" = yes; then
3990     CFLAGS="-O2"
3991   else
3992     CFLAGS=
3993   fi
3994 fi
3995 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3997 if test "${ac_cv_prog_cc_c89+set}" = set; then
3998   $as_echo_n "(cached) " >&6
3999 else
4000   ac_cv_prog_cc_c89=no
4001 ac_save_CC=$CC
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008 #include <stdarg.h>
4009 #include <stdio.h>
4010 #include <sys/types.h>
4011 #include <sys/stat.h>
4012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4013 struct buf { int x; };
4014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4015 static char *e (p, i)
4016      char **p;
4017      int i;
4018 {
4019   return p[i];
4020 }
4021 static char *f (char * (*g) (char **, int), char **p, ...)
4022 {
4023   char *s;
4024   va_list v;
4025   va_start (v,p);
4026   s = g (p, va_arg (v,int));
4027   va_end (v);
4028   return s;
4029 }
4030
4031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4032    function prototypes and stuff, but not '\xHH' hex character constants.
4033    These don't provoke an error unfortunately, instead are silently treated
4034    as 'x'.  The following induces an error, until -std is added to get
4035    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4036    array size at least.  It's necessary to write '\x00'==0 to get something
4037    that's true only with -std.  */
4038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4039
4040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4041    inside strings and character constants.  */
4042 #define FOO(x) 'x'
4043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4044
4045 int test (int i, double x);
4046 struct s1 {int (*f) (int a);};
4047 struct s2 {int (*f) (double a);};
4048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4049 int argc;
4050 char **argv;
4051 int
4052 main ()
4053 {
4054 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4060         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4061 do
4062   CC="$ac_save_CC $ac_arg"
4063   rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4070 $as_echo "$ac_try_echo") >&5
4071   (eval "$ac_compile") 2>conftest.er1
4072   ac_status=$?
4073   grep -v '^ *+' conftest.er1 >conftest.err
4074   rm -f conftest.er1
4075   cat conftest.err >&5
4076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); } && {
4078          test -z "$ac_c_werror_flag" ||
4079          test ! -s conftest.err
4080        } && test -s conftest.$ac_objext; then
4081   ac_cv_prog_cc_c89=$ac_arg
4082 else
4083   $as_echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086
4087 fi
4088
4089 rm -f core conftest.err conftest.$ac_objext
4090   test "x$ac_cv_prog_cc_c89" != "xno" && break
4091 done
4092 rm -f conftest.$ac_ext
4093 CC=$ac_save_CC
4094
4095 fi
4096 # AC_CACHE_VAL
4097 case "x$ac_cv_prog_cc_c89" in
4098   x)
4099     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;;
4101   xno)
4102     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;;
4104   *)
4105     CC="$CC $ac_cv_prog_cc_c89"
4106     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108 esac
4109
4110
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116
4117
4118
4119
4120
4121
4122
4123
4124     r="`eval echo '$'"CC"`"
4125     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4126         true
4127     else
4128         ##STEPMAKE_WARN(cannot find . )
4129         false
4130     fi
4131
4132     if test $? -ne 0; then
4133
4134     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4135
4136         if test "" = "REQUIRED"; then
4137             command="echo ERROR: cc not found"
4138             # abort configure process here?
4139         else
4140             command="- echo cc not found"
4141         fi
4142         eval "CC"='$command'
4143         false
4144     else
4145         true
4146     fi
4147
4148     LD='$(CC)'
4149
4150
4151     # If -pipe requested, test if it works and add to CFLAGS.
4152     if test "$pipe_b" = yes; then
4153         save_cflags="$CFLAGS"
4154         CFLAGS=" -pipe $CFLAGS";
4155         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4156 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4157 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4158   $as_echo_n "(cached) " >&6
4159 else
4160
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 /* -pipe test */
4168 int
4169 main ()
4170 {
4171
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest.$ac_objext
4177 if { (ac_try="$ac_compile"
4178 case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4183 $as_echo "$ac_try_echo") >&5
4184   (eval "$ac_compile") 2>conftest.er1
4185   ac_status=$?
4186   grep -v '^ *+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } && {
4191          test -z "$ac_c_werror_flag" ||
4192          test ! -s conftest.err
4193        } && test -s conftest.$ac_objext; then
4194   stepmake_cv_cflags_pipe=yes
4195 else
4196   $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199         stepmake_cv_cflags_pipe=no
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4205 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4206         CFLAGS=$save_cflags
4207         if test $stepmake_cv_cflags_pipe = yes; then
4208             OPTIMIZE="$OPTIMIZE -pipe"
4209         fi
4210     fi
4211
4212     CFLAGS="$CFLAGS $OPTIMIZE"
4213     CPPFLAGS=${CPPFLAGS-""}
4214
4215     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4216 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4217     save_cflags="$CFLAGS"
4218     case "$host" in
4219         alpha*-*-*)
4220                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4221 $as_echo "-mieee" >&6; }
4222             CFLAGS=" -mieee $CFLAGS"
4223             ;;
4224         *)
4225             { $as_echo "$as_me:$LINENO: result: none" >&5
4226 $as_echo "none" >&6; }
4227             ;;
4228     esac
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 # Extract the first word of "fc-list", so it can be a program name with args.
4239 set dummy fc-list; ac_word=$2
4240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_FCLIST+set}" = set; then
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if test -n "$FCLIST"; then
4246   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251   IFS=$as_save_IFS
4252   test -z "$as_dir" && as_dir=.
4253   for ac_exec_ext in '' $ac_executable_extensions; do
4254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255     ac_cv_prog_FCLIST="fc-list"
4256     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257     break 2
4258   fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 FCLIST=$ac_cv_prog_FCLIST
4266 if test -n "$FCLIST"; then
4267   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4268 $as_echo "$FCLIST" >&6; }
4269 else
4270   { $as_echo "$as_me:$LINENO: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4276 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4277
4278
4279 if test "$TEXGYRE_DIR" = ""; then
4280   if test "$FCLIST" != ""; then
4281     TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4282     if test "$TEXGYRE_FILE" != ""; then
4283       TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4284       TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4285       TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4286 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4287          X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4288          X$TEXGYRE_FILE : 'X\(//\)$' \| \
4289          X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4290 $as_echo X$TEXGYRE_FILE |
4291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4292             s//\1/
4293             q
4294           }
4295           /^X\(\/\/\)[^/].*/{
4296             s//\1/
4297             q
4298           }
4299           /^X\(\/\/\)$/{
4300             s//\1/
4301             q
4302           }
4303           /^X\(\/\).*/{
4304             s//\1/
4305             q
4306           }
4307           s/.*/./; q'`
4308     fi
4309   fi
4310 fi
4311 if test "$TEXGYRE_DIR" != "" ;  then
4312   for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4313            texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4314            texgyreheros-regular.otf texgyreheros-italic.otf \
4315            texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4316            texgyrecursor-regular.otf texgyrecursor-italic.otf \
4317            texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4318     if test ! -f "$TEXGYRE_DIR/$f"; then
4319       MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4320     else
4321       TEXGYRE_FILES="$TEXGYRE_FILES $f"
4322     fi
4323   done
4324 fi
4325 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4326   { $as_echo "$as_me:$LINENO: result: no" >&5
4327 $as_echo "no" >&6; }
4328
4329     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4330
4331   if test "$TEXGYRE_DIR" = ""; then
4332     if test "$FCLIST" = ""; then
4333
4334     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4335
4336     else
4337
4338     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""(make sure the fc-list utility can see them, e.g. 'sudo apt-get install fonts-texgyre', or use --with-texgyre-dir)"\"`\"
4339
4340     fi
4341   else
4342
4343     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4344
4345   fi
4346 else
4347   { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 fi
4350 { $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
4351 $as_echo_n "checking for URW++ OTF files... " >&6; }
4352
4353
4354 if test "$URWOTF_DIR" = ""; then
4355   if test "$FCLIST" != ""; then
4356     URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
4357     if test "$URWOTF_FILE" != ""; then
4358       URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
4359       URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
4360       URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
4361 $as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4362          X$URWOTF_FILE : 'X\(//\)[^/]' \| \
4363          X$URWOTF_FILE : 'X\(//\)$' \| \
4364          X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
4365 $as_echo X$URWOTF_FILE |
4366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4367             s//\1/
4368             q
4369           }
4370           /^X\(\/\/\)[^/].*/{
4371             s//\1/
4372             q
4373           }
4374           /^X\(\/\/\)$/{
4375             s//\1/
4376             q
4377           }
4378           /^X\(\/\).*/{
4379             s//\1/
4380             q
4381           }
4382           s/.*/./; q'`
4383     fi
4384   fi
4385 fi
4386 if test "$URWOTF_DIR" != "" ;  then
4387   for f in C059-BdIta.otf C059-Bold.otf \
4388            C059-Italic.otf C059-Roman.otf \
4389            NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
4390            NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
4391            NimbusSans-Bold.otf NimbusSans-BoldOblique.otf \
4392            NimbusSans-Oblique.otf NimbusSans-Regular.otf; do
4393     if test ! -f "$URWOTF_DIR/$f"; then
4394       MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
4395     else
4396       URWOTF_FILES="$URWOTF_FILES $f"
4397     fi
4398   done
4399 fi
4400 if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
4401   { $as_echo "$as_me:$LINENO: result: no" >&5
4402 $as_echo "no" >&6; }
4403
4404     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
4405
4406   if test "$URWOTF_DIR" = ""; then
4407     if test "$FCLIST" = ""; then
4408
4409     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
4410
4411     else
4412
4413     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=commit;h=79bcdfb34fbce12b592cce389fa7a19da6b5b018' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
4414
4415     fi
4416   else
4417
4418     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
4419
4420   fi
4421 else
4422   { $as_echo "$as_me:$LINENO: result: yes" >&5
4423 $as_echo "yes" >&6; }
4424 fi
4425
4426 ac_ext=cpp
4427 ac_cpp='$CXXCPP $CPPFLAGS'
4428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4431
4432
4433
4434     { $as_echo "$as_me:$LINENO: checking for python" >&5
4435 $as_echo_n "checking for python... " >&6; }
4436     python="python"
4437     found="no"
4438     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
4439         exe=`
4440     ## which doesn't work in ash, if /usr/bin/which isn't installed
4441     ## type -p doesn't work in ash
4442     ## command -v doesn't work in zsh
4443     ## command -v "$r" 2>&1
4444     ## this test should work in ash, bash, pdksh (ksh), zsh
4445     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4446 `
4447         if ! $exe -V > /dev/null 2>&1 ; then
4448             continue
4449         fi
4450         ver=`
4451     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4452     ##
4453     ## ARG.
4454     ## Workaround for broken Debian gcc version string:
4455     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4456     ##
4457     ## -V: Workaround for python
4458
4459     #dnl
4460
4461     ## Assume and hunt for dotted version multiplet.
4462     ## use eval trickery, because we cannot use multi-level $() instead of ``
4463     ## for compatibility reasons.
4464
4465     ## grab the first version number in  --version output.
4466     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4467                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4468                 head -n 1 |
4469                 tr ' ' '\n' |
4470                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4471                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4472                 head -n 1\`\"
4473
4474     if test -z "$_ver"; then
4475         ## If empty, try date [fontforge]
4476         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4477             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4478             | head -n 1 \
4479             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4480     fi
4481     echo "$_ver"
4482     #dnl
4483 `
4484         num=`
4485     echo "$ver" | awk -F. '
4486     {
4487       if ($3) {three = $3}
4488       else {three = 0}
4489     }
4490     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4491 `
4492         req=`
4493     echo "2.4" | awk -F. '
4494     {
4495       if ($3) {three = $3}
4496       else {three = 0}
4497     }
4498     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4499 `
4500         sup=`
4501     echo "3.0" | awk -F. '
4502     {
4503       if ($3) {three = $3}
4504       else {three = 0}
4505     }
4506     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4507 `
4508         if test -n "2.4" && test "$num" -lt "$req"; then
4509             python="$r >= 2.4 (installed: $ver)"
4510             continue
4511         else
4512             if test -n "3.0" && test "$num" -ge "$sup"; then
4513                 python="$r < 3.0 (installed: $ver)"
4514                 continue
4515             else
4516                 python=$r
4517                 found=$r
4518                 break
4519             fi
4520         fi
4521     done
4522     { $as_echo "$as_me:$LINENO: result: $found" >&5
4523 $as_echo "$found" >&6; }
4524     if test "$found" != "no"; then
4525         { $as_echo "$as_me:$LINENO: checking $python version" >&5
4526 $as_echo_n "checking $python version... " >&6; }
4527         { $as_echo "$as_me:$LINENO: result: $ver" >&5
4528 $as_echo "$ver" >&6; }
4529         PYTHON=$found
4530     else
4531
4532     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4533
4534     fi
4535     # Extract the first word of "$PYTHON", so it can be a program name with args.
4536 set dummy $PYTHON; ac_word=$2
4537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_path_PYTHON+set}" = set; then
4540   $as_echo_n "(cached) " >&6
4541 else
4542   case $PYTHON in
4543   [\\/]* | ?:[\\/]*)
4544   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4545   ;;
4546   *)
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552   for ac_exec_ext in '' $ac_executable_extensions; do
4553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556     break 2
4557   fi
4558 done
4559 done
4560 IFS=$as_save_IFS
4561
4562   ;;
4563 esac
4564 fi
4565 PYTHON=$ac_cv_path_PYTHON
4566 if test -n "$PYTHON"; then
4567   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4568 $as_echo "$PYTHON" >&6; }
4569 else
4570   { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575
4576
4577 # this checks if we have GNU C by compiling a program with
4578 # __GNUC__, but that macro now unofficially means "the compiler
4579 # supports the GNU C extensions" -- the intel C compiler and clang
4580 # both support __GNUC__!
4581 ac_ext=cpp
4582 ac_cpp='$CXXCPP $CPPFLAGS'
4583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4586 if test -z "$CXX"; then
4587   if test -n "$CCC"; then
4588     CXX=$CCC
4589   else
4590     if test -n "$ac_tool_prefix"; then
4591   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592   do
4593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_CXX+set}" = set; then
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$CXX"; then
4601   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 CXX=$ac_cv_prog_CXX
4621 if test -n "$CXX"; then
4622   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4623 $as_echo "$CXX" >&6; }
4624 else
4625   { $as_echo "$as_me:$LINENO: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630     test -n "$CXX" && break
4631   done
4632 fi
4633 if test -z "$CXX"; then
4634   ac_ct_CXX=$CXX
4635   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4636 do
4637   # Extract the first word of "$ac_prog", so it can be a program name with args.
4638 set dummy $ac_prog; ac_word=$2
4639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if test -n "$ac_ct_CXX"; then
4645   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652   for ac_exec_ext in '' $ac_executable_extensions; do
4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654     ac_cv_prog_ac_ct_CXX="$ac_prog"
4655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4665 if test -n "$ac_ct_CXX"; then
4666   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4667 $as_echo "$ac_ct_CXX" >&6; }
4668 else
4669   { $as_echo "$as_me:$LINENO: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673
4674   test -n "$ac_ct_CXX" && break
4675 done
4676
4677   if test "x$ac_ct_CXX" = x; then
4678     CXX="g++"
4679   else
4680     case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686     CXX=$ac_ct_CXX
4687   fi
4688 fi
4689
4690   fi
4691 fi
4692 # Provide some information about the compiler.
4693 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4694 set X $ac_compile
4695 ac_compiler=$2
4696 { (ac_try="$ac_compiler --version >&5"
4697 case "(($ac_try" in
4698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699   *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702 $as_echo "$ac_try_echo") >&5
4703   (eval "$ac_compiler --version >&5") 2>&5
4704   ac_status=$?
4705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }
4707 { (ac_try="$ac_compiler -v >&5"
4708 case "(($ac_try" in
4709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710   *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714   (eval "$ac_compiler -v >&5") 2>&5
4715   ac_status=$?
4716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }
4718 { (ac_try="$ac_compiler -V >&5"
4719 case "(($ac_try" in
4720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721   *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725   (eval "$ac_compiler -V >&5") 2>&5
4726   ac_status=$?
4727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); }
4729
4730 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4731 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4732 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4733   $as_echo_n "(cached) " >&6
4734 else
4735   cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741
4742 int
4743 main ()
4744 {
4745 #ifndef __GNUC__
4746        choke me
4747 #endif
4748
4749   ;
4750   return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (ac_try="$ac_compile"
4755 case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761   (eval "$ac_compile") 2>conftest.er1
4762   ac_status=$?
4763   grep -v '^ *+' conftest.er1 >conftest.err
4764   rm -f conftest.er1
4765   cat conftest.err >&5
4766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); } && {
4768          test -z "$ac_cxx_werror_flag" ||
4769          test ! -s conftest.err
4770        } && test -s conftest.$ac_objext; then
4771   ac_compiler_gnu=yes
4772 else
4773   $as_echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776         ac_compiler_gnu=no
4777 fi
4778
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4781
4782 fi
4783 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4784 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4785 if test $ac_compiler_gnu = yes; then
4786   GXX=yes
4787 else
4788   GXX=
4789 fi
4790 ac_test_CXXFLAGS=${CXXFLAGS+set}
4791 ac_save_CXXFLAGS=$CXXFLAGS
4792 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4793 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4794 if test "${ac_cv_prog_cxx_g+set}" = set; then
4795   $as_echo_n "(cached) " >&6
4796 else
4797   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4798    ac_cxx_werror_flag=yes
4799    ac_cv_prog_cxx_g=no
4800    CXXFLAGS="-g"
4801    cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807
4808 int
4809 main ()
4810 {
4811
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (ac_try="$ac_compile"
4818 case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823 $as_echo "$ac_try_echo") >&5
4824   (eval "$ac_compile") 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } && {
4831          test -z "$ac_cxx_werror_flag" ||
4832          test ! -s conftest.err
4833        } && test -s conftest.$ac_objext; then
4834   ac_cv_prog_cxx_g=yes
4835 else
4836   $as_echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839         CXXFLAGS=""
4840       cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846
4847 int
4848 main ()
4849 {
4850
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863   (eval "$ac_compile") 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } && {
4870          test -z "$ac_cxx_werror_flag" ||
4871          test ! -s conftest.err
4872        } && test -s conftest.$ac_objext; then
4873   :
4874 else
4875   $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4879          CXXFLAGS="-g"
4880          cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886
4887 int
4888 main ()
4889 {
4890
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899   *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903   (eval "$ac_compile") 2>conftest.er1
4904   ac_status=$?
4905   grep -v '^ *+' conftest.er1 >conftest.err
4906   rm -f conftest.er1
4907   cat conftest.err >&5
4908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } && {
4910          test -z "$ac_cxx_werror_flag" ||
4911          test ! -s conftest.err
4912        } && test -s conftest.$ac_objext; then
4913   ac_cv_prog_cxx_g=yes
4914 else
4915   $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918
4919 fi
4920
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 fi
4923
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4929 fi
4930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4931 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4932 if test "$ac_test_CXXFLAGS" = set; then
4933   CXXFLAGS=$ac_save_CXXFLAGS
4934 elif test $ac_cv_prog_cxx_g = yes; then
4935   if test "$GXX" = yes; then
4936     CXXFLAGS="-g -O2"
4937   else
4938     CXXFLAGS="-g"
4939   fi
4940 else
4941   if test "$GXX" = yes; then
4942     CXXFLAGS="-O2"
4943   else
4944     CXXFLAGS=
4945   fi
4946 fi
4947 ac_ext=cpp
4948 ac_cpp='$CXXCPP $CPPFLAGS'
4949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4952
4953
4954 ac_ext=cpp
4955 ac_cpp='$CXXCPP $CPPFLAGS'
4956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4959 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4961 if test -z "$CXXCPP"; then
4962   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4963   $as_echo_n "(cached) " >&6
4964 else
4965       # Double quotes because CXXCPP needs to be expanded
4966     for CXXCPP in "$CXX -E" "/lib/cpp"
4967     do
4968       ac_preproc_ok=false
4969 for ac_cxx_preproc_warn_flag in '' yes
4970 do
4971   # Use a header file that comes with gcc, so configuring glibc
4972   # with a fresh cross-compiler works.
4973   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4974   # <limits.h> exists even on freestanding compilers.
4975   # On the NeXT, cc -E runs the code through the compiler's parser,
4976   # not just through cpp. "Syntax error" is here to catch this case.
4977   cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4983 #ifdef __STDC__
4984 # include <limits.h>
4985 #else
4986 # include <assert.h>
4987 #endif
4988                      Syntax error
4989 _ACEOF
4990 if { (ac_try="$ac_cpp conftest.$ac_ext"
4991 case "(($ac_try" in
4992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993   *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } >/dev/null && {
5004          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5005          test ! -s conftest.err
5006        }; then
5007   :
5008 else
5009   $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   # Broken: fails on valid input.
5013 continue
5014 fi
5015
5016 rm -f conftest.err conftest.$ac_ext
5017
5018   # OK, works on sane cases.  Now check whether nonexistent headers
5019   # can be detected and how.
5020   cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <ac_nonexistent.h>
5027 _ACEOF
5028 if { (ac_try="$ac_cpp conftest.$ac_ext"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5034 $as_echo "$ac_try_echo") >&5
5035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } >/dev/null && {
5042          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5043          test ! -s conftest.err
5044        }; then
5045   # Broken: success on invalid input.
5046 continue
5047 else
5048   $as_echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051   # Passes both tests.
5052 ac_preproc_ok=:
5053 break
5054 fi
5055
5056 rm -f conftest.err conftest.$ac_ext
5057
5058 done
5059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5060 rm -f conftest.err conftest.$ac_ext
5061 if $ac_preproc_ok; then
5062   break
5063 fi
5064
5065     done
5066     ac_cv_prog_CXXCPP=$CXXCPP
5067
5068 fi
5069   CXXCPP=$ac_cv_prog_CXXCPP
5070 else
5071   ac_cv_prog_CXXCPP=$CXXCPP
5072 fi
5073 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5074 $as_echo "$CXXCPP" >&6; }
5075 ac_preproc_ok=false
5076 for ac_cxx_preproc_warn_flag in '' yes
5077 do
5078   # Use a header file that comes with gcc, so configuring glibc
5079   # with a fresh cross-compiler works.
5080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5081   # <limits.h> exists even on freestanding compilers.
5082   # On the NeXT, cc -E runs the code through the compiler's parser,
5083   # not just through cpp. "Syntax error" is here to catch this case.
5084   cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 #ifdef __STDC__
5091 # include <limits.h>
5092 #else
5093 # include <assert.h>
5094 #endif
5095                      Syntax error
5096 _ACEOF
5097 if { (ac_try="$ac_cpp conftest.$ac_ext"
5098 case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5103 $as_echo "$ac_try_echo") >&5
5104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } >/dev/null && {
5111          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5112          test ! -s conftest.err
5113        }; then
5114   :
5115 else
5116   $as_echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Broken: fails on valid input.
5120 continue
5121 fi
5122
5123 rm -f conftest.err conftest.$ac_ext
5124
5125   # OK, works on sane cases.  Now check whether nonexistent headers
5126   # can be detected and how.
5127   cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 #include <ac_nonexistent.h>
5134 _ACEOF
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5141 $as_echo "$ac_try_echo") >&5
5142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } >/dev/null && {
5149          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5150          test ! -s conftest.err
5151        }; then
5152   # Broken: success on invalid input.
5153 continue
5154 else
5155   $as_echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158   # Passes both tests.
5159 ac_preproc_ok=:
5160 break
5161 fi
5162
5163 rm -f conftest.err conftest.$ac_ext
5164
5165 done
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then
5169   :
5170 else
5171   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5174 See \`config.log' for more details." >&5
5175 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5176 See \`config.log' for more details." >&2;}
5177    { (exit 1); exit 1; }; }; }
5178 fi
5179
5180 ac_ext=cpp
5181 ac_cpp='$CXXCPP $CPPFLAGS'
5182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5185
5186
5187 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5188 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5189 if test "${ac_cv_path_GREP+set}" = set; then
5190   $as_echo_n "(cached) " >&6
5191 else
5192   if test -z "$GREP"; then
5193   ac_path_GREP_found=false
5194   # Loop through the user's path and test for each of PROGNAME-LIST
5195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_prog in grep ggrep; do
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5203       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5204 # Check for GNU ac_path_GREP and select it if it is found.
5205   # Check for GNU $ac_path_GREP
5206 case `"$ac_path_GREP" --version 2>&1` in
5207 *GNU*)
5208   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5209 *)
5210   ac_count=0
5211   $as_echo_n 0123456789 >"conftest.in"
5212   while :
5213   do
5214     cat "conftest.in" "conftest.in" >"conftest.tmp"
5215     mv "conftest.tmp" "conftest.in"
5216     cp "conftest.in" "conftest.nl"
5217     $as_echo 'GREP' >> "conftest.nl"
5218     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220     ac_count=`expr $ac_count + 1`
5221     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5222       # Best one so far, save it but keep looking for a better one
5223       ac_cv_path_GREP="$ac_path_GREP"
5224       ac_path_GREP_max=$ac_count
5225     fi
5226     # 10*(2^10) chars as input seems more than enough
5227     test $ac_count -gt 10 && break
5228   done
5229   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5230 esac
5231
5232       $ac_path_GREP_found && break 3
5233     done
5234   done
5235 done
5236 IFS=$as_save_IFS
5237   if test -z "$ac_cv_path_GREP"; then
5238     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5239 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5240    { (exit 1); exit 1; }; }
5241   fi
5242 else
5243   ac_cv_path_GREP=$GREP
5244 fi
5245
5246 fi
5247 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5248 $as_echo "$ac_cv_path_GREP" >&6; }
5249  GREP="$ac_cv_path_GREP"
5250
5251
5252 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5253 $as_echo_n "checking for egrep... " >&6; }
5254 if test "${ac_cv_path_EGREP+set}" = set; then
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5258    then ac_cv_path_EGREP="$GREP -E"
5259    else
5260      if test -z "$EGREP"; then
5261   ac_path_EGREP_found=false
5262   # Loop through the user's path and test for each of PROGNAME-LIST
5263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268   for ac_prog in egrep; do
5269     for ac_exec_ext in '' $ac_executable_extensions; do
5270       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5271       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5272 # Check for GNU ac_path_EGREP and select it if it is found.
5273   # Check for GNU $ac_path_EGREP
5274 case `"$ac_path_EGREP" --version 2>&1` in
5275 *GNU*)
5276   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5277 *)
5278   ac_count=0
5279   $as_echo_n 0123456789 >"conftest.in"
5280   while :
5281   do
5282     cat "conftest.in" "conftest.in" >"conftest.tmp"
5283     mv "conftest.tmp" "conftest.in"
5284     cp "conftest.in" "conftest.nl"
5285     $as_echo 'EGREP' >> "conftest.nl"
5286     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288     ac_count=`expr $ac_count + 1`
5289     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5290       # Best one so far, save it but keep looking for a better one
5291       ac_cv_path_EGREP="$ac_path_EGREP"
5292       ac_path_EGREP_max=$ac_count
5293     fi
5294     # 10*(2^10) chars as input seems more than enough
5295     test $ac_count -gt 10 && break
5296   done
5297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298 esac
5299
5300       $ac_path_EGREP_found && break 3
5301     done
5302   done
5303 done
5304 IFS=$as_save_IFS
5305   if test -z "$ac_cv_path_EGREP"; then
5306     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5307 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5308    { (exit 1); exit 1; }; }
5309   fi
5310 else
5311   ac_cv_path_EGREP=$EGREP
5312 fi
5313
5314    fi
5315 fi
5316 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5317 $as_echo "$ac_cv_path_EGREP" >&6; }
5318  EGREP="$ac_cv_path_EGREP"
5319
5320
5321
5322
5323     cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 #ifdef __clang__
5330        yes
5331        #endif
5332
5333 _ACEOF
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335   $EGREP "yes" >/dev/null 2>&1; then
5336   HAS_CLANG=yes
5337 else
5338   HAS_CLANG=no
5339 fi
5340 rm -f conftest*
5341
5342
5343     if test "$HAS_CLANG" = "no"; then
5344         if test "$GCC" = "yes"; then
5345
5346     r="`eval echo '$'"CC"`"
5347     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5348 $as_echo_n "checking $r version... " >&6; }
5349     exe=`
5350     ## which doesn't work in ash, if /usr/bin/which isn't installed
5351     ## type -p doesn't work in ash
5352     ## command -v doesn't work in zsh
5353     ## command -v "$r" 2>&1
5354     ## this test should work in ash, bash, pdksh (ksh), zsh
5355     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5356 `
5357     if test -n ""; then
5358         ver=""
5359     else
5360         ver=`
5361     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5362     ##
5363     ## ARG.
5364     ## Workaround for broken Debian gcc version string:
5365     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5366     ##
5367     ## -V: Workaround for python
5368
5369     #dnl
5370
5371     ## Assume and hunt for dotted version multiplet.
5372     ## use eval trickery, because we cannot use multi-level $() instead of ``
5373     ## for compatibility reasons.
5374
5375     ## grab the first version number in  --version output.
5376     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5377                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5378                 head -n 1 |
5379                 tr ' ' '\n' |
5380                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5381                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5382                 head -n 1\`\"
5383
5384     if test -z "$_ver"; then
5385         ## If empty, try date [fontforge]
5386         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5387             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5388             | head -n 1 \
5389             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5390     fi
5391     echo "$_ver"
5392     #dnl
5393 `
5394     fi
5395     num=`
5396     echo "$ver" | awk -F. '
5397     {
5398       if ($3) {three = $3}
5399       else {three = 0}
5400     }
5401     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5402 `
5403     req=`
5404     echo "3.4" | awk -F. '
5405     {
5406       if ($3) {three = $3}
5407       else {three = 0}
5408     }
5409     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5410 `
5411     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5412 $as_echo "$ver" >&6; }
5413     if test "$num" -lt "$req"; then
5414
5415     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5416
5417     fi
5418     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5419     eval `echo $vervar=$num`
5420 ##    AC_SUBST(`eval echo $vervar`)
5421
5422         else
5423             warn="$CC (Please install *GNU* cc)"
5424
5425     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5426
5427         fi
5428     fi
5429     # no else, we're fine with any clang
5430
5431
5432
5433     ac_ext=cpp
5434 ac_cpp='$CXXCPP $CPPFLAGS'
5435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5438 if test -z "$CXX"; then
5439   if test -n "$CCC"; then
5440     CXX=$CCC
5441   else
5442     if test -n "$ac_tool_prefix"; then
5443   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5444   do
5445     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_CXX+set}" = set; then
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$CXX"; then
5453   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460   for ac_exec_ext in '' $ac_executable_extensions; do
5461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5463     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467 done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 CXX=$ac_cv_prog_CXX
5473 if test -n "$CXX"; then
5474   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5475 $as_echo "$CXX" >&6; }
5476 else
5477   { $as_echo "$as_me:$LINENO: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482     test -n "$CXX" && break
5483   done
5484 fi
5485 if test -z "$CXX"; then
5486   ac_ct_CXX=$CXX
5487   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5488 do
5489   # Extract the first word of "$ac_prog", so it can be a program name with args.
5490 set dummy $ac_prog; ac_word=$2
5491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5494   $as_echo_n "(cached) " >&6
5495 else
5496   if test -n "$ac_ct_CXX"; then
5497   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502   IFS=$as_save_IFS
5503   test -z "$as_dir" && as_dir=.
5504   for ac_exec_ext in '' $ac_executable_extensions; do
5505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506     ac_cv_prog_ac_ct_CXX="$ac_prog"
5507     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508     break 2
5509   fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5517 if test -n "$ac_ct_CXX"; then
5518   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5519 $as_echo "$ac_ct_CXX" >&6; }
5520 else
5521   { $as_echo "$as_me:$LINENO: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525
5526   test -n "$ac_ct_CXX" && break
5527 done
5528
5529   if test "x$ac_ct_CXX" = x; then
5530     CXX="g++"
5531   else
5532     case $cross_compiling:$ac_tool_warned in
5533 yes:)
5534 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5537 esac
5538     CXX=$ac_ct_CXX
5539   fi
5540 fi
5541
5542   fi
5543 fi
5544 # Provide some information about the compiler.
5545 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5546 set X $ac_compile
5547 ac_compiler=$2
5548 { (ac_try="$ac_compiler --version >&5"
5549 case "(($ac_try" in
5550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551   *) ac_try_echo=$ac_try;;
5552 esac
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555   (eval "$ac_compiler --version >&5") 2>&5
5556   ac_status=$?
5557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }
5559 { (ac_try="$ac_compiler -v >&5"
5560 case "(($ac_try" in
5561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562   *) ac_try_echo=$ac_try;;
5563 esac
5564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5565 $as_echo "$ac_try_echo") >&5
5566   (eval "$ac_compiler -v >&5") 2>&5
5567   ac_status=$?
5568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }
5570 { (ac_try="$ac_compiler -V >&5"
5571 case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576 $as_echo "$ac_try_echo") >&5
5577   (eval "$ac_compiler -V >&5") 2>&5
5578   ac_status=$?
5579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }
5581
5582 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5583 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5584 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5585   $as_echo_n "(cached) " >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593
5594 int
5595 main ()
5596 {
5597 #ifndef __GNUC__
5598        choke me
5599 #endif
5600
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5607 case "(($ac_try" in
5608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609   *) ac_try_echo=$ac_try;;
5610 esac
5611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5612 $as_echo "$ac_try_echo") >&5
5613   (eval "$ac_compile") 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } && {
5620          test -z "$ac_cxx_werror_flag" ||
5621          test ! -s conftest.err
5622        } && test -s conftest.$ac_objext; then
5623   ac_compiler_gnu=yes
5624 else
5625   $as_echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628         ac_compiler_gnu=no
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5633
5634 fi
5635 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5636 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5637 if test $ac_compiler_gnu = yes; then
5638   GXX=yes
5639 else
5640   GXX=
5641 fi
5642 ac_test_CXXFLAGS=${CXXFLAGS+set}
5643 ac_save_CXXFLAGS=$CXXFLAGS
5644 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5645 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5646 if test "${ac_cv_prog_cxx_g+set}" = set; then
5647   $as_echo_n "(cached) " >&6
5648 else
5649   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5650    ac_cxx_werror_flag=yes
5651    ac_cv_prog_cxx_g=no
5652    CXXFLAGS="-g"
5653    cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659
5660 int
5661 main ()
5662 {
5663
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5670 case "(($ac_try" in
5671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672   *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5675 $as_echo "$ac_try_echo") >&5
5676   (eval "$ac_compile") 2>conftest.er1
5677   ac_status=$?
5678   grep -v '^ *+' conftest.er1 >conftest.err
5679   rm -f conftest.er1
5680   cat conftest.err >&5
5681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } && {
5683          test -z "$ac_cxx_werror_flag" ||
5684          test ! -s conftest.err
5685        } && test -s conftest.$ac_objext; then
5686   ac_cv_prog_cxx_g=yes
5687 else
5688   $as_echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691         CXXFLAGS=""
5692       cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698
5699 int
5700 main ()
5701 {
5702
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (ac_try="$ac_compile"
5709 case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5714 $as_echo "$ac_try_echo") >&5
5715   (eval "$ac_compile") 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } && {
5722          test -z "$ac_cxx_werror_flag" ||
5723          test ! -s conftest.err
5724        } && test -s conftest.$ac_objext; then
5725   :
5726 else
5727   $as_echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5731          CXXFLAGS="-g"
5732          cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h.  */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h.  */
5738
5739 int
5740 main ()
5741 {
5742
5743   ;
5744   return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5754 $as_echo "$ac_try_echo") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } && {
5762          test -z "$ac_cxx_werror_flag" ||
5763          test ! -s conftest.err
5764        } && test -s conftest.$ac_objext; then
5765   ac_cv_prog_cxx_g=yes
5766 else
5767   $as_echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771 fi
5772
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5781 fi
5782 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5783 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5784 if test "$ac_test_CXXFLAGS" = set; then
5785   CXXFLAGS=$ac_save_CXXFLAGS
5786 elif test $ac_cv_prog_cxx_g = yes; then
5787   if test "$GXX" = yes; then
5788     CXXFLAGS="-g -O2"
5789   else
5790     CXXFLAGS="-g"
5791   fi
5792 else
5793   if test "$GXX" = yes; then
5794     CXXFLAGS="-O2"
5795   else
5796     CXXFLAGS=
5797   fi
5798 fi
5799 ac_ext=cpp
5800 ac_cpp='$CXXCPP $CPPFLAGS'
5801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5804
5805
5806
5807     r="`eval echo '$'"CXX"`"
5808     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5809         true
5810     else
5811         ##STEPMAKE_WARN(cannot find . )
5812         false
5813     fi
5814
5815     if test $? -ne 0; then
5816
5817     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5818
5819         if test "REQUIRED" = "REQUIRED"; then
5820             command="echo ERROR: c++ not found"
5821             # abort configure process here?
5822         else
5823             command="- echo c++ not found"
5824         fi
5825         eval "CXX"='$command'
5826         false
5827     else
5828         true
5829     fi
5830
5831
5832     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5833
5834
5835
5836
5837
5838
5839     cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 #ifdef __clang__
5846        yes
5847        #endif
5848
5849 _ACEOF
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851   $EGREP "yes" >/dev/null 2>&1; then
5852   HAS_CLANG=yes
5853 else
5854   HAS_CLANG=no
5855 fi
5856 rm -f conftest*
5857
5858
5859     if test "$HAS_CLANG" = "no"; then
5860         if test "$GXX" = "yes"; then
5861
5862     r="`eval echo '$'"CXX"`"
5863     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5864 $as_echo_n "checking $r version... " >&6; }
5865     exe=`
5866     ## which doesn't work in ash, if /usr/bin/which isn't installed
5867     ## type -p doesn't work in ash
5868     ## command -v doesn't work in zsh
5869     ## command -v "$r" 2>&1
5870     ## this test should work in ash, bash, pdksh (ksh), zsh
5871     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5872 `
5873     if test -n ""; then
5874         ver=""
5875     else
5876         ver=`
5877     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5878     ##
5879     ## ARG.
5880     ## Workaround for broken Debian gcc version string:
5881     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5882     ##
5883     ## -V: Workaround for python
5884
5885     #dnl
5886
5887     ## Assume and hunt for dotted version multiplet.
5888     ## use eval trickery, because we cannot use multi-level $() instead of ``
5889     ## for compatibility reasons.
5890
5891     ## grab the first version number in  --version output.
5892     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5893                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5894                 head -n 1 |
5895                 tr ' ' '\n' |
5896                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5897                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5898                 head -n 1\`\"
5899
5900     if test -z "$_ver"; then
5901         ## If empty, try date [fontforge]
5902         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5903             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5904             | head -n 1 \
5905             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5906     fi
5907     echo "$_ver"
5908     #dnl
5909 `
5910     fi
5911     num=`
5912     echo "$ver" | awk -F. '
5913     {
5914       if ($3) {three = $3}
5915       else {three = 0}
5916     }
5917     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5918 `
5919     req=`
5920     echo "3.4" | awk -F. '
5921     {
5922       if ($3) {three = $3}
5923       else {three = 0}
5924     }
5925     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5926 `
5927     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5928 $as_echo "$ver" >&6; }
5929     if test "$num" -lt "$req"; then
5930
5931     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5932
5933     fi
5934     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5935     eval `echo $vervar=$num`
5936 ##    AC_SUBST(`eval echo $vervar`)
5937
5938         else
5939             warn="$CXX (Please install *GNU* c++)"
5940
5941     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5942
5943         fi
5944     fi
5945     # no else, we're fine with any clang
5946
5947
5948     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5949 $as_echo_n "checking options for known g++ bugs... " >&6; }
5950     case "$GXX:$CXX_VERSION" in
5951         yes:400600[0-2])
5952             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5953 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5954             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5955             ;;
5956         yes:400700?)
5957             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5958 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5959             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5960             ;;
5961         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5962 $as_echo "none" >&6; }
5963     esac
5964
5965
5966
5967     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5968 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5969 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5970   $as_echo_n "(cached) " >&6
5971 else
5972   cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978
5979     template <class T> struct foo { static int baz; };
5980     template <class T> int foo<T>::baz = 1;
5981
5982 int
5983 main ()
5984 {
5985  return foo<int>::baz;
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5992 case "(($ac_try" in
5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994   *) ac_try_echo=$ac_try;;
5995 esac
5996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5997 $as_echo "$ac_try_echo") >&5
5998   (eval "$ac_link") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } && {
6005          test -z "$ac_cxx_werror_flag" ||
6006          test ! -s conftest.err
6007        } && test -s conftest$ac_exeext && {
6008          test "$cross_compiling" = yes ||
6009          $as_test_x conftest$ac_exeext
6010        }; then
6011   stepmake_cv_need_explicit_instantiation=no
6012 else
6013   $as_echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016         stepmake_cv_need_explicit_instantiation=yes
6017 fi
6018
6019 rm -rf conftest.dSYM
6020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6021       conftest$ac_exeext conftest.$ac_ext
6022 fi
6023 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
6024 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
6025     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
6026         cat >>confdefs.h <<\_ACEOF
6027 #define NEED_EXPLICIT_INSTANTIATION 1
6028 _ACEOF
6029
6030     fi
6031
6032
6033     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
6034 $as_echo_n "checking for stl.data () method... " >&6; }
6035 if test "${stepmake_cv_stl_data_method+set}" = set; then
6036   $as_echo_n "(cached) " >&6
6037 else
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044
6045 #include <vector>
6046 using namespace std;
6047 vector <int> v;
6048 void *p = v.data ();
6049
6050 int
6051 main ()
6052 {
6053
6054   ;
6055   return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6060 case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6065 $as_echo "$ac_try_echo") >&5
6066   (eval "$ac_compile") 2>conftest.er1
6067   ac_status=$?
6068   grep -v '^ *+' conftest.er1 >conftest.err
6069   rm -f conftest.er1
6070   cat conftest.err >&5
6071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } && {
6073          test -z "$ac_cxx_werror_flag" ||
6074          test ! -s conftest.err
6075        } && test -s conftest.$ac_objext; then
6076   stepmake_cv_stl_data_method=yes
6077 else
6078   $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081         stepmake_cv_stl_data_method=no
6082 fi
6083
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 fi
6086 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
6087 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6088     if test $stepmake_cv_stl_data_method = yes; then
6089
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_STL_DATA_METHOD 1
6092 _ACEOF
6093
6094     fi
6095
6096
6097
6098     for ac_prog in ar
6099 do
6100   # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if test "${ac_cv_prog_AR+set}" = set; then
6105   $as_echo_n "(cached) " >&6
6106 else
6107   if test -n "$AR"; then
6108   ac_cv_prog_AR="$AR" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115   for ac_exec_ext in '' $ac_executable_extensions; do
6116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117     ac_cv_prog_AR="$ac_prog"
6118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122 done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 AR=$ac_cv_prog_AR
6128 if test -n "$AR"; then
6129   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6130 $as_echo "$AR" >&6; }
6131 else
6132   { $as_echo "$as_me:$LINENO: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136
6137   test -n "$AR" && break
6138 done
6139 test -n "$AR" || AR="no"
6140
6141
6142
6143     r="`eval echo '$'"AR"`"
6144     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6145         true
6146     else
6147         ##STEPMAKE_WARN(cannot find . )
6148         false
6149     fi
6150
6151     if test $? -ne 0; then
6152
6153     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6154
6155         if test "REQUIRED" = "REQUIRED"; then
6156             command="echo ERROR: ar not found"
6157             # abort configure process here?
6158         else
6159             command="- echo ar not found"
6160         fi
6161         eval "AR"='$command'
6162         false
6163     else
6164         true
6165     fi
6166
6167     if test $? -eq 0 -a -n ""; then
6168
6169     r="`eval echo '$'"AR"`"
6170     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6171 $as_echo_n "checking $r version... " >&6; }
6172     exe=`
6173     ## which doesn't work in ash, if /usr/bin/which isn't installed
6174     ## type -p doesn't work in ash
6175     ## command -v doesn't work in zsh
6176     ## command -v "$r" 2>&1
6177     ## this test should work in ash, bash, pdksh (ksh), zsh
6178     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6179 `
6180     if test -n ""; then
6181         ver=""
6182     else
6183         ver=`
6184     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6185     ##
6186     ## ARG.
6187     ## Workaround for broken Debian gcc version string:
6188     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6189     ##
6190     ## -V: Workaround for python
6191
6192     #dnl
6193
6194     ## Assume and hunt for dotted version multiplet.
6195     ## use eval trickery, because we cannot use multi-level $() instead of ``
6196     ## for compatibility reasons.
6197
6198     ## grab the first version number in  --version output.
6199     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6200                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6201                 head -n 1 |
6202                 tr ' ' '\n' |
6203                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6204                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6205                 head -n 1\`\"
6206
6207     if test -z "$_ver"; then
6208         ## If empty, try date [fontforge]
6209         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6210             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6211             | head -n 1 \
6212             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6213     fi
6214     echo "$_ver"
6215     #dnl
6216 `
6217     fi
6218     num=`
6219     echo "$ver" | awk -F. '
6220     {
6221       if ($3) {three = $3}
6222       else {three = 0}
6223     }
6224     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6225 `
6226     req=`
6227     echo "" | awk -F. '
6228     {
6229       if ($3) {three = $3}
6230       else {three = 0}
6231     }
6232     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6233 `
6234     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6235 $as_echo "$ver" >&6; }
6236     if test "$num" -lt "$req"; then
6237
6238     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6239
6240     fi
6241     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6242     eval `echo $vervar=$num`
6243 ##    AC_SUBST(`eval echo $vervar`)
6244
6245     fi
6246
6247     if test -n "$ac_tool_prefix"; then
6248   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_RANLIB+set}" = set; then
6253   $as_echo_n "(cached) " >&6
6254 else
6255   if test -n "$RANLIB"; then
6256   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263   for ac_exec_ext in '' $ac_executable_extensions; do
6264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6266     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 RANLIB=$ac_cv_prog_RANLIB
6276 if test -n "$RANLIB"; then
6277   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6278 $as_echo "$RANLIB" >&6; }
6279 else
6280   { $as_echo "$as_me:$LINENO: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_RANLIB"; then
6287   ac_ct_RANLIB=$RANLIB
6288   # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$ac_ct_RANLIB"; then
6296   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_RANLIB="ranlib"
6306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6316 if test -n "$ac_ct_RANLIB"; then
6317   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6318 $as_echo "$ac_ct_RANLIB" >&6; }
6319 else
6320   { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324   if test "x$ac_ct_RANLIB" = x; then
6325     RANLIB=":"
6326   else
6327     case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333     RANLIB=$ac_ct_RANLIB
6334   fi
6335 else
6336   RANLIB="$ac_cv_prog_RANLIB"
6337 fi
6338
6339
6340
6341     r="`eval echo '$'"RANLIB"`"
6342     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6343         true
6344     else
6345         ##STEPMAKE_WARN(cannot find . )
6346         false
6347     fi
6348
6349     if test $? -ne 0; then
6350
6351     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6352
6353         if test "REQUIRED" = "REQUIRED"; then
6354             command="echo ERROR: ranlib not found"
6355             # abort configure process here?
6356         else
6357             command="- echo ranlib not found"
6358         fi
6359         eval "RANLIB"='$command'
6360         false
6361     else
6362         true
6363     fi
6364
6365
6366
6367
6368 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6371   $as_echo_n "(cached) " >&6
6372 else
6373   ac_check_lib_save_LIBS=$LIBS
6374 LIBS="-ldl  $LIBS"
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h.  */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h.  */
6381
6382 /* Override any GCC internal prototype to avoid an error.
6383    Use char because int might match the return type of a GCC
6384    builtin and then its argument prototype would still apply.  */
6385 #ifdef __cplusplus
6386 extern "C"
6387 #endif
6388 char dlopen ();
6389 int
6390 main ()
6391 {
6392 return dlopen ();
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (ac_try="$ac_link"
6399 case "(($ac_try" in
6400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401   *) ac_try_echo=$ac_try;;
6402 esac
6403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6404 $as_echo "$ac_try_echo") >&5
6405   (eval "$ac_link") 2>conftest.er1
6406   ac_status=$?
6407   grep -v '^ *+' conftest.er1 >conftest.err
6408   rm -f conftest.er1
6409   cat conftest.err >&5
6410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } && {
6412          test -z "$ac_cxx_werror_flag" ||
6413          test ! -s conftest.err
6414        } && test -s conftest$ac_exeext && {
6415          test "$cross_compiling" = yes ||
6416          $as_test_x conftest$ac_exeext
6417        }; then
6418   ac_cv_lib_dl_dlopen=yes
6419 else
6420   $as_echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6422
6423         ac_cv_lib_dl_dlopen=no
6424 fi
6425
6426 rm -rf conftest.dSYM
6427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6428       conftest$ac_exeext conftest.$ac_ext
6429 LIBS=$ac_check_lib_save_LIBS
6430 fi
6431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6433 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6434   cat >>confdefs.h <<_ACEOF
6435 #define HAVE_LIBDL 1
6436 _ACEOF
6437
6438   LIBS="-ldl $LIBS"
6439
6440 fi
6441
6442
6443 for ac_func in dlopen
6444 do
6445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6447 $as_echo_n "checking for $ac_func... " >&6; }
6448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6449   $as_echo_n "(cached) " >&6
6450 else
6451   cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h.  */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h.  */
6457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6459 #define $ac_func innocuous_$ac_func
6460
6461 /* System header to define __stub macros and hopefully few prototypes,
6462     which can conflict with char $ac_func (); below.
6463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6464     <limits.h> exists even on freestanding compilers.  */
6465
6466 #ifdef __STDC__
6467 # include <limits.h>
6468 #else
6469 # include <assert.h>
6470 #endif
6471
6472 #undef $ac_func
6473
6474 /* Override any GCC internal prototype to avoid an error.
6475    Use char because int might match the return type of a GCC
6476    builtin and then its argument prototype would still apply.  */
6477 #ifdef __cplusplus
6478 extern "C"
6479 #endif
6480 char $ac_func ();
6481 /* The GNU C library defines this for functions which it implements
6482     to always fail with ENOSYS.  Some functions are actually named
6483     something starting with __ and the normal name is an alias.  */
6484 #if defined __stub_$ac_func || defined __stub___$ac_func
6485 choke me
6486 #endif
6487
6488 int
6489 main ()
6490 {
6491 return $ac_func ();
6492   ;
6493   return 0;
6494 }
6495 _ACEOF
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (ac_try="$ac_link"
6498 case "(($ac_try" in
6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500   *) ac_try_echo=$ac_try;;
6501 esac
6502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6503 $as_echo "$ac_try_echo") >&5
6504   (eval "$ac_link") 2>conftest.er1
6505   ac_status=$?
6506   grep -v '^ *+' conftest.er1 >conftest.err
6507   rm -f conftest.er1
6508   cat conftest.err >&5
6509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); } && {
6511          test -z "$ac_cxx_werror_flag" ||
6512          test ! -s conftest.err
6513        } && test -s conftest$ac_exeext && {
6514          test "$cross_compiling" = yes ||
6515          $as_test_x conftest$ac_exeext
6516        }; then
6517   eval "$as_ac_var=yes"
6518 else
6519   $as_echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522         eval "$as_ac_var=no"
6523 fi
6524
6525 rm -rf conftest.dSYM
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527       conftest$ac_exeext conftest.$ac_ext
6528 fi
6529 ac_res=`eval 'as_val=${'$as_ac_var'}
6530                  $as_echo "$as_val"'`
6531                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6532 $as_echo "$ac_res" >&6; }
6533 as_val=`eval 'as_val=${'$as_ac_var'}
6534                  $as_echo "$as_val"'`
6535    if test "x$as_val" = x""yes; then
6536   cat >>confdefs.h <<_ACEOF
6537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6538 _ACEOF
6539
6540 fi
6541 done
6542
6543
6544 # Do not use bison 1.50 and 1.75.
6545 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6546
6547     # ugh, automake: we want (and check for) bison
6548     for ac_prog in 'bison -y' byacc
6549 do
6550   # Extract the first word of "$ac_prog", so it can be a program name with args.
6551 set dummy $ac_prog; ac_word=$2
6552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if test "${ac_cv_prog_YACC+set}" = set; then
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$YACC"; then
6558   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565   for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_YACC="$ac_prog"
6568     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 YACC=$ac_cv_prog_YACC
6578 if test -n "$YACC"; then
6579   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6580 $as_echo "$YACC" >&6; }
6581 else
6582   { $as_echo "$as_me:$LINENO: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587   test -n "$YACC" && break
6588 done
6589 test -n "$YACC" || YACC="yacc"
6590
6591
6592
6593     for ac_prog in bison
6594 do
6595   # Extract the first word of "$ac_prog", so it can be a program name with args.
6596 set dummy $ac_prog; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_BISON+set}" = set; then
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$BISON"; then
6603   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_BISON="$ac_prog"
6613     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 BISON=$ac_cv_prog_BISON
6623 if test -n "$BISON"; then
6624   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6625 $as_echo "$BISON" >&6; }
6626 else
6627   { $as_echo "$as_me:$LINENO: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632   test -n "$BISON" && break
6633 done
6634 test -n "$BISON" || BISON="no"
6635
6636
6637
6638     r="`eval echo '$'"BISON"`"
6639     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6640         true
6641     else
6642         ##STEPMAKE_WARN(cannot find . )
6643         false
6644     fi
6645
6646     if test $? -ne 0; then
6647
6648     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6649
6650         if test "REQUIRED" = "REQUIRED"; then
6651             command="echo ERROR: bison not found"
6652             # abort configure process here?
6653         else
6654             command="- echo bison not found"
6655         fi
6656         eval "BISON"='$command'
6657         false
6658     else
6659         true
6660     fi
6661
6662     if test $? -eq 0 -a -n ""; then
6663
6664     r="`eval echo '$'"BISON"`"
6665     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6666 $as_echo_n "checking $r version... " >&6; }
6667     exe=`
6668     ## which doesn't work in ash, if /usr/bin/which isn't installed
6669     ## type -p doesn't work in ash
6670     ## command -v doesn't work in zsh
6671     ## command -v "$r" 2>&1
6672     ## this test should work in ash, bash, pdksh (ksh), zsh
6673     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6674 `
6675     if test -n ""; then
6676         ver=""
6677     else
6678         ver=`
6679     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6680     ##
6681     ## ARG.
6682     ## Workaround for broken Debian gcc version string:
6683     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6684     ##
6685     ## -V: Workaround for python
6686
6687     #dnl
6688
6689     ## Assume and hunt for dotted version multiplet.
6690     ## use eval trickery, because we cannot use multi-level $() instead of ``
6691     ## for compatibility reasons.
6692
6693     ## grab the first version number in  --version output.
6694     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6695                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6696                 head -n 1 |
6697                 tr ' ' '\n' |
6698                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6699                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6700                 head -n 1\`\"
6701
6702     if test -z "$_ver"; then
6703         ## If empty, try date [fontforge]
6704         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6705             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6706             | head -n 1 \
6707             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6708     fi
6709     echo "$_ver"
6710     #dnl
6711 `
6712     fi
6713     num=`
6714     echo "$ver" | awk -F. '
6715     {
6716       if ($3) {three = $3}
6717       else {three = 0}
6718     }
6719     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6720 `
6721     req=`
6722     echo "" | awk -F. '
6723     {
6724       if ($3) {three = $3}
6725       else {three = 0}
6726     }
6727     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6728 `
6729     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6730 $as_echo "$ver" >&6; }
6731     if test "$num" -lt "$req"; then
6732
6733     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6734
6735     fi
6736     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6737     eval `echo $vervar=$num`
6738 ##    AC_SUBST(`eval echo $vervar`)
6739
6740     fi
6741
6742
6743     # urg.  should test functionality rather than version.
6744     if test "$BISON" = "bison" -a -n "1.29"; then
6745
6746     r="`eval echo '$'"BISON"`"
6747     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6748 $as_echo_n "checking $r version... " >&6; }
6749     exe=`
6750     ## which doesn't work in ash, if /usr/bin/which isn't installed
6751     ## type -p doesn't work in ash
6752     ## command -v doesn't work in zsh
6753     ## command -v "$r" 2>&1
6754     ## this test should work in ash, bash, pdksh (ksh), zsh
6755     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6756 `
6757     if test -n ""; then
6758         ver=""
6759     else
6760         ver=`
6761     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6762     ##
6763     ## ARG.
6764     ## Workaround for broken Debian gcc version string:
6765     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6766     ##
6767     ## -V: Workaround for python
6768
6769     #dnl
6770
6771     ## Assume and hunt for dotted version multiplet.
6772     ## use eval trickery, because we cannot use multi-level $() instead of ``
6773     ## for compatibility reasons.
6774
6775     ## grab the first version number in  --version output.
6776     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6777                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6778                 head -n 1 |
6779                 tr ' ' '\n' |
6780                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6781                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6782                 head -n 1\`\"
6783
6784     if test -z "$_ver"; then
6785         ## If empty, try date [fontforge]
6786         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6787             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6788             | head -n 1 \
6789             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6790     fi
6791     echo "$_ver"
6792     #dnl
6793 `
6794     fi
6795     num=`
6796     echo "$ver" | awk -F. '
6797     {
6798       if ($3) {three = $3}
6799       else {three = 0}
6800     }
6801     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6802 `
6803     req=`
6804     echo "1.29" | awk -F. '
6805     {
6806       if ($3) {three = $3}
6807       else {three = 0}
6808     }
6809     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6810 `
6811     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6812 $as_echo "$ver" >&6; }
6813     if test "$num" -lt "$req"; then
6814
6815     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6816
6817     fi
6818     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6819     eval `echo $vervar=$num`
6820 ##    AC_SUBST(`eval echo $vervar`)
6821
6822     fi
6823
6824
6825     # ugh, automake: we want (and check for) flex
6826     # AC_PROG_LEX
6827     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6828
6829     # AC_PROG_LEX()
6830     # ugh, ugh
6831     ac_cv_prog_lex_root=lex.yy
6832
6833     for ac_prog in flex
6834 do
6835   # Extract the first word of "$ac_prog", so it can be a program name with args.
6836 set dummy $ac_prog; ac_word=$2
6837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_FLEX+set}" = set; then
6840   $as_echo_n "(cached) " >&6
6841 else
6842   if test -n "$FLEX"; then
6843   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848   IFS=$as_save_IFS
6849   test -z "$as_dir" && as_dir=.
6850   for ac_exec_ext in '' $ac_executable_extensions; do
6851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852     ac_cv_prog_FLEX="$ac_prog"
6853     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854     break 2
6855   fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 FLEX=$ac_cv_prog_FLEX
6863 if test -n "$FLEX"; then
6864   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6865 $as_echo "$FLEX" >&6; }
6866 else
6867   { $as_echo "$as_me:$LINENO: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871
6872   test -n "$FLEX" && break
6873 done
6874 test -n "$FLEX" || FLEX="no"
6875
6876
6877
6878     r="`eval echo '$'"FLEX"`"
6879     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6880         true
6881     else
6882         ##STEPMAKE_WARN(cannot find . )
6883         false
6884     fi
6885
6886     if test $? -ne 0; then
6887
6888     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6889
6890         if test "REQUIRED" = "REQUIRED"; then
6891             command="echo ERROR: flex not found"
6892             # abort configure process here?
6893         else
6894             command="- echo flex not found"
6895         fi
6896         eval "FLEX"='$command'
6897         false
6898     else
6899         true
6900     fi
6901
6902     if test $? -eq 0 -a -n ""; then
6903
6904     r="`eval echo '$'"FLEX"`"
6905     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6906 $as_echo_n "checking $r version... " >&6; }
6907     exe=`
6908     ## which doesn't work in ash, if /usr/bin/which isn't installed
6909     ## type -p doesn't work in ash
6910     ## command -v doesn't work in zsh
6911     ## command -v "$r" 2>&1
6912     ## this test should work in ash, bash, pdksh (ksh), zsh
6913     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6914 `
6915     if test -n ""; then
6916         ver=""
6917     else
6918         ver=`
6919     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6920     ##
6921     ## ARG.
6922     ## Workaround for broken Debian gcc version string:
6923     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6924     ##
6925     ## -V: Workaround for python
6926
6927     #dnl
6928
6929     ## Assume and hunt for dotted version multiplet.
6930     ## use eval trickery, because we cannot use multi-level $() instead of ``
6931     ## for compatibility reasons.
6932
6933     ## grab the first version number in  --version output.
6934     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6935                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6936                 head -n 1 |
6937                 tr ' ' '\n' |
6938                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6939                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6940                 head -n 1\`\"
6941
6942     if test -z "$_ver"; then
6943         ## If empty, try date [fontforge]
6944         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6945             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6946             | head -n 1 \
6947             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6948     fi
6949     echo "$_ver"
6950     #dnl
6951 `
6952     fi
6953     num=`
6954     echo "$ver" | awk -F. '
6955     {
6956       if ($3) {three = $3}
6957       else {three = 0}
6958     }
6959     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6960 `
6961     req=`
6962     echo "" | awk -F. '
6963     {
6964       if ($3) {three = $3}
6965       else {three = 0}
6966     }
6967     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6968 `
6969     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6970 $as_echo "$ver" >&6; }
6971     if test "$num" -lt "$req"; then
6972
6973     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6974
6975     fi
6976     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6977     eval `echo $vervar=$num`
6978 ##    AC_SUBST(`eval echo $vervar`)
6979
6980     fi
6981
6982
6983 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6984 $as_echo_n "checking for ANSI C header files... " >&6; }
6985 if test "${ac_cv_header_stdc+set}" = set; then
6986   $as_echo_n "(cached) " >&6
6987 else
6988   cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 #include <stdlib.h>
6995 #include <stdarg.h>
6996 #include <string.h>
6997 #include <float.h>
6998
6999 int
7000 main ()
7001 {
7002
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } && {
7022          test -z "$ac_cxx_werror_flag" ||
7023          test ! -s conftest.err
7024        } && test -s conftest.$ac_objext; then
7025   ac_cv_header_stdc=yes
7026 else
7027   $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030         ac_cv_header_stdc=no
7031 fi
7032
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034
7035 if test $ac_cv_header_stdc = yes; then
7036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7037   cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 #include <string.h>
7044
7045 _ACEOF
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047   $EGREP "memchr" >/dev/null 2>&1; then
7048   :
7049 else
7050   ac_cv_header_stdc=no
7051 fi
7052 rm -f conftest*
7053
7054 fi
7055
7056 if test $ac_cv_header_stdc = yes; then
7057   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 #include <stdlib.h>
7065
7066 _ACEOF
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068   $EGREP "free" >/dev/null 2>&1; then
7069   :
7070 else
7071   ac_cv_header_stdc=no
7072 fi
7073 rm -f conftest*
7074
7075 fi
7076
7077 if test $ac_cv_header_stdc = yes; then
7078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7079   if test "$cross_compiling" = yes; then
7080   :
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 #include <ctype.h>
7089 #include <stdlib.h>
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7093 #else
7094 # define ISLOWER(c) \
7095                    (('a' <= (c) && (c) <= 'i') \
7096                      || ('j' <= (c) && (c) <= 'r') \
7097                      || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7099 #endif
7100
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7102 int
7103 main ()
7104 {
7105   int i;
7106   for (i = 0; i < 256; i++)
7107     if (XOR (islower (i), ISLOWER (i))
7108         || toupper (i) != TOUPPER (i))
7109       return 2;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121   (eval "$ac_link") 2>&5
7122   ac_status=$?
7123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125   { (case "(($ac_try" in
7126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127   *) ac_try_echo=$ac_try;;
7128 esac
7129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$ac_try_echo") >&5
7131   (eval "$ac_try") 2>&5
7132   ac_status=$?
7133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; }; then
7135   :
7136 else
7137   $as_echo "$as_me: program exited with status $ac_status" >&5
7138 $as_echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141 ( exit $ac_status )
7142 ac_cv_header_stdc=no
7143 fi
7144 rm -rf conftest.dSYM
7145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7146 fi
7147
7148
7149 fi
7150 fi
7151 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7152 $as_echo "$ac_cv_header_stdc" >&6; }
7153 if test $ac_cv_header_stdc = yes; then
7154
7155 cat >>confdefs.h <<\_ACEOF
7156 #define STDC_HEADERS 1
7157 _ACEOF
7158
7159 fi
7160
7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7172                   inttypes.h stdint.h unistd.h
7173 do
7174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7176 $as_echo_n "checking for $ac_header... " >&6; }
7177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7178   $as_echo_n "(cached) " >&6
7179 else
7180   cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 $ac_includes_default
7187
7188 #include <$ac_header>
7189 _ACEOF
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7192 case "(($ac_try" in
7193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194   *) ac_try_echo=$ac_try;;
7195 esac
7196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7197 $as_echo "$ac_try_echo") >&5
7198   (eval "$ac_compile") 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } && {
7205          test -z "$ac_cxx_werror_flag" ||
7206          test ! -s conftest.err
7207        } && test -s conftest.$ac_objext; then
7208   eval "$as_ac_Header=yes"
7209 else
7210   $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213         eval "$as_ac_Header=no"
7214 fi
7215
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 ac_res=`eval 'as_val=${'$as_ac_Header'}
7219                  $as_echo "$as_val"'`
7220                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7221 $as_echo "$ac_res" >&6; }
7222 as_val=`eval 'as_val=${'$as_ac_Header'}
7223                  $as_echo "$as_val"'`
7224    if test "x$as_val" = x""yes; then
7225   cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230
7231 done
7232
7233
7234
7235
7236 for ac_header in FlexLexer.h
7237 do
7238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 $as_echo_n "checking for $ac_header... " >&6; }
7242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7243   $as_echo_n "(cached) " >&6
7244 fi
7245 ac_res=`eval 'as_val=${'$as_ac_Header'}
7246                  $as_echo "$as_val"'`
7247                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7248 $as_echo "$ac_res" >&6; }
7249 else
7250   # Is the header compilable?
7251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 $as_echo_n "checking $ac_header usability... " >&6; }
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259 $ac_includes_default
7260 #include <$ac_header>
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266   *) ac_try_echo=$ac_try;;
7267 esac
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270   (eval "$ac_compile") 2>conftest.er1
7271   ac_status=$?
7272   grep -v '^ *+' conftest.er1 >conftest.err
7273   rm -f conftest.er1
7274   cat conftest.err >&5
7275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); } && {
7277          test -z "$ac_cxx_werror_flag" ||
7278          test ! -s conftest.err
7279        } && test -s conftest.$ac_objext; then
7280   ac_header_compiler=yes
7281 else
7282   $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285         ac_header_compiler=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7290 $as_echo "$ac_header_compiler" >&6; }
7291
7292 # Is the header present?
7293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7294 $as_echo_n "checking $ac_header presence... " >&6; }
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h.  */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h.  */
7301 #include <$ac_header>
7302 _ACEOF
7303 if { (ac_try="$ac_cpp conftest.$ac_ext"
7304 case "(($ac_try" in
7305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306   *) ac_try_echo=$ac_try;;
7307 esac
7308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7309 $as_echo "$ac_try_echo") >&5
7310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7311   ac_status=$?
7312   grep -v '^ *+' conftest.er1 >conftest.err
7313   rm -f conftest.er1
7314   cat conftest.err >&5
7315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } >/dev/null && {
7317          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7318          test ! -s conftest.err
7319        }; then
7320   ac_header_preproc=yes
7321 else
7322   $as_echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325   ac_header_preproc=no
7326 fi
7327
7328 rm -f conftest.err conftest.$ac_ext
7329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7330 $as_echo "$ac_header_preproc" >&6; }
7331
7332 # So?  What about this header?
7333 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7334   yes:no: )
7335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7339     ac_header_preproc=yes
7340     ;;
7341   no:yes:* )
7342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7345 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7349 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7354
7355     ;;
7356 esac
7357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 $as_echo_n "checking for $ac_header... " >&6; }
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360   $as_echo_n "(cached) " >&6
7361 else
7362   eval "$as_ac_Header=\$ac_header_preproc"
7363 fi
7364 ac_res=`eval 'as_val=${'$as_ac_Header'}
7365                  $as_echo "$as_val"'`
7366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7367 $as_echo "$ac_res" >&6; }
7368
7369 fi
7370 as_val=`eval 'as_val=${'$as_ac_Header'}
7371                  $as_echo "$as_val"'`
7372    if test "x$as_val" = x""yes; then
7373   cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376  true
7377 else
7378   false
7379 fi
7380
7381 done
7382
7383     if test $? -ne 0; then
7384         warn='FlexLexer.h (flex package)'
7385
7386     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7387
7388     fi
7389     # check for yyFlexLexer.yy_current_buffer,
7390     # in 2.5.4 <= flex < 2.5.29
7391     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7392 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7393 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7394   $as_echo_n "(cached) " >&6
7395 else
7396   cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402
7403 using namespace std;
7404 #include <FlexLexer.h>
7405 class yy_flex_lexer: public yyFlexLexer
7406 {
7407   public:
7408     yy_flex_lexer ()
7409     {
7410       yy_current_buffer = 0;
7411     }
7412 };
7413
7414 int
7415 main ()
7416 {
7417
7418   ;
7419   return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7424 case "(($ac_try" in
7425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426   *) ac_try_echo=$ac_try;;
7427 esac
7428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7429 $as_echo "$ac_try_echo") >&5
7430   (eval "$ac_compile") 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
7434   cat conftest.err >&5
7435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } && {
7437          test -z "$ac_cxx_werror_flag" ||
7438          test ! -s conftest.err
7439        } && test -s conftest.$ac_objext; then
7440   stepmake_cv_flexlexer_yy_current_buffer=yes
7441 else
7442   $as_echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445         stepmake_cv_flexlexer_yy_current_buffer=no
7446 fi
7447
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 fi
7450 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7451 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7452     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7456 _ACEOF
7457
7458     fi
7459
7460
7461         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7462 $as_echo_n "checking FlexLexer.h location... " >&6; }
7463
7464         # ugh.
7465         cat <<EOF > conftest.cc
7466 using namespace std;
7467 #include <FlexLexer.h>
7468 EOF
7469         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7470           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7471           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7472         rm conftest.cc
7473
7474         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7475 $as_echo "$FLEXLEXER_FILE" >&6; }
7476
7477
7478     lang=English
7479     ALL_LINGUAS="en nl"
7480
7481     # with/enable ??
7482
7483 # Check whether --with-localedir was given.
7484 if test "${with_localedir+set}" = set; then
7485   withval=$with_localedir; localedir=$with_localedir
7486 else
7487   localedir='${prefix}/share/locale'
7488 fi
7489
7490
7491
7492 # Check whether --with-lang was given.
7493 if test "${with_lang+set}" = set; then
7494   withval=$with_lang; language=$with_lang
7495 else
7496   language=English
7497 fi
7498
7499
7500     { $as_echo "$as_me:$LINENO: checking language" >&5
7501 $as_echo_n "checking language... " >&6; }
7502     case "$language" in
7503       En* | en* | Am* | am* | US* | us*)
7504             lang=English;;
7505       NL | nl | Du* | du* | Ned* | ned*)
7506             lang=Dutch;;
7507       "")
7508             lang=English;;
7509       *)
7510             lang=unknown;;
7511     esac
7512     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7513 $as_echo "$lang" >&6; }
7514
7515     if test "$lang" = "unknown" ; then
7516
7517     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7518 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7519     warn_b=yes
7520
7521     fi
7522
7523
7524
7525     presome=${prefix}
7526     if test "$prefix" = "NONE"; then
7527             presome=${ac_default_prefix}
7528     fi
7529     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7530
7531
7532     cat >>confdefs.h <<_ACEOF
7533 #define LOCALEDIR "${LOCALEDIR}"
7534 _ACEOF
7535
7536
7537 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7538 $as_echo_n "checking for gettext in -lintl... " >&6; }
7539 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7540   $as_echo_n "(cached) " >&6
7541 else
7542   ac_check_lib_save_LIBS=$LIBS
7543 LIBS="-lintl  $LIBS"
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550
7551 /* Override any GCC internal prototype to avoid an error.
7552    Use char because int might match the return type of a GCC
7553    builtin and then its argument prototype would still apply.  */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 char gettext ();
7558 int
7559 main ()
7560 {
7561 return gettext ();
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (ac_try="$ac_link"
7568 case "(($ac_try" in
7569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570   *) ac_try_echo=$ac_try;;
7571 esac
7572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7573 $as_echo "$ac_try_echo") >&5
7574   (eval "$ac_link") 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } && {
7581          test -z "$ac_cxx_werror_flag" ||
7582          test ! -s conftest.err
7583        } && test -s conftest$ac_exeext && {
7584          test "$cross_compiling" = yes ||
7585          $as_test_x conftest$ac_exeext
7586        }; then
7587   ac_cv_lib_intl_gettext=yes
7588 else
7589   $as_echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592         ac_cv_lib_intl_gettext=no
7593 fi
7594
7595 rm -rf conftest.dSYM
7596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7597       conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7599 fi
7600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7601 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7602 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7603   cat >>confdefs.h <<_ACEOF
7604 #define HAVE_LIBINTL 1
7605 _ACEOF
7606
7607   LIBS="-lintl $LIBS"
7608
7609 fi
7610
7611
7612 for ac_func in gettext
7613 do
7614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7615 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7616 $as_echo_n "checking for $ac_func... " >&6; }
7617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7618   $as_echo_n "(cached) " >&6
7619 else
7620   cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h.  */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h.  */
7626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7628 #define $ac_func innocuous_$ac_func
7629
7630 /* System header to define __stub macros and hopefully few prototypes,
7631     which can conflict with char $ac_func (); below.
7632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633     <limits.h> exists even on freestanding compilers.  */
7634
7635 #ifdef __STDC__
7636 # include <limits.h>
7637 #else
7638 # include <assert.h>
7639 #endif
7640
7641 #undef $ac_func
7642
7643 /* Override any GCC internal prototype to avoid an error.
7644    Use char because int might match the return type of a GCC
7645    builtin and then its argument prototype would still apply.  */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char $ac_func ();
7650 /* The GNU C library defines this for functions which it implements
7651     to always fail with ENOSYS.  Some functions are actually named
7652     something starting with __ and the normal name is an alias.  */
7653 #if defined __stub_$ac_func || defined __stub___$ac_func
7654 choke me
7655 #endif
7656
7657 int
7658 main ()
7659 {
7660 return $ac_func ();
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (ac_try="$ac_link"
7667 case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7672 $as_echo "$ac_try_echo") >&5
7673   (eval "$ac_link") 2>conftest.er1
7674   ac_status=$?
7675   grep -v '^ *+' conftest.er1 >conftest.err
7676   rm -f conftest.er1
7677   cat conftest.err >&5
7678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } && {
7680          test -z "$ac_cxx_werror_flag" ||
7681          test ! -s conftest.err
7682        } && test -s conftest$ac_exeext && {
7683          test "$cross_compiling" = yes ||
7684          $as_test_x conftest$ac_exeext
7685        }; then
7686   eval "$as_ac_var=yes"
7687 else
7688   $as_echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691         eval "$as_ac_var=no"
7692 fi
7693
7694 rm -rf conftest.dSYM
7695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7696       conftest$ac_exeext conftest.$ac_ext
7697 fi
7698 ac_res=`eval 'as_val=${'$as_ac_var'}
7699                  $as_echo "$as_val"'`
7700                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7701 $as_echo "$ac_res" >&6; }
7702 as_val=`eval 'as_val=${'$as_ac_var'}
7703                  $as_echo "$as_val"'`
7704    if test "x$as_val" = x""yes; then
7705   cat >>confdefs.h <<_ACEOF
7706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7707 _ACEOF
7708
7709 fi
7710 done
7711
7712
7713
7714
7715     for ac_prog in msgfmt
7716 do
7717   # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$MSGFMT"; then
7725   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732   for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_MSGFMT="$ac_prog"
7735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 MSGFMT=$ac_cv_prog_MSGFMT
7745 if test -n "$MSGFMT"; then
7746   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7747 $as_echo "$MSGFMT" >&6; }
7748 else
7749   { $as_echo "$as_me:$LINENO: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   test -n "$MSGFMT" && break
7755 done
7756 test -n "$MSGFMT" || MSGFMT="no"
7757
7758
7759
7760     r="`eval echo '$'"MSGFMT"`"
7761     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7762         true
7763     else
7764         ##STEPMAKE_WARN(cannot find . )
7765         false
7766     fi
7767
7768     if test $? -ne 0; then
7769
7770     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7771
7772         if test "REQUIRED" = "REQUIRED"; then
7773             command="echo ERROR: msgfmt not found"
7774             # abort configure process here?
7775         else
7776             command="- echo msgfmt not found"
7777         fi
7778         eval "MSGFMT"='$command'
7779         false
7780     else
7781         true
7782     fi
7783
7784     if test $? -eq 0 -a -n ""; then
7785
7786     r="`eval echo '$'"MSGFMT"`"
7787     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7788 $as_echo_n "checking $r version... " >&6; }
7789     exe=`
7790     ## which doesn't work in ash, if /usr/bin/which isn't installed
7791     ## type -p doesn't work in ash
7792     ## command -v doesn't work in zsh
7793     ## command -v "$r" 2>&1
7794     ## this test should work in ash, bash, pdksh (ksh), zsh
7795     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7796 `
7797     if test -n ""; then
7798         ver=""
7799     else
7800         ver=`
7801     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7802     ##
7803     ## ARG.
7804     ## Workaround for broken Debian gcc version string:
7805     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7806     ##
7807     ## -V: Workaround for python
7808
7809     #dnl
7810
7811     ## Assume and hunt for dotted version multiplet.
7812     ## use eval trickery, because we cannot use multi-level $() instead of ``
7813     ## for compatibility reasons.
7814
7815     ## grab the first version number in  --version output.
7816     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7817                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7818                 head -n 1 |
7819                 tr ' ' '\n' |
7820                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7821                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7822                 head -n 1\`\"
7823
7824     if test -z "$_ver"; then
7825         ## If empty, try date [fontforge]
7826         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7827             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7828             | head -n 1 \
7829             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7830     fi
7831     echo "$_ver"
7832     #dnl
7833 `
7834     fi
7835     num=`
7836     echo "$ver" | awk -F. '
7837     {
7838       if ($3) {three = $3}
7839       else {three = 0}
7840     }
7841     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7842 `
7843     req=`
7844     echo "" | awk -F. '
7845     {
7846       if ($3) {three = $3}
7847       else {three = 0}
7848     }
7849     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7850 `
7851     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7852 $as_echo "$ver" >&6; }
7853     if test "$num" -lt "$req"; then
7854
7855     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7856
7857     fi
7858     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7859     eval `echo $vervar=$num`
7860 ##    AC_SUBST(`eval echo $vervar`)
7861
7862     fi
7863
7864
7865
7866
7867     for ac_prog in mf-nowin mf mfw mfont
7868 do
7869   # Extract the first word of "$ac_prog", so it can be a program name with args.
7870 set dummy $ac_prog; ac_word=$2
7871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if test "${ac_cv_prog_METAFONT+set}" = set; then
7874   $as_echo_n "(cached) " >&6
7875 else
7876   if test -n "$METAFONT"; then
7877   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882   IFS=$as_save_IFS
7883   test -z "$as_dir" && as_dir=.
7884   for ac_exec_ext in '' $ac_executable_extensions; do
7885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886     ac_cv_prog_METAFONT="$ac_prog"
7887     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888     break 2
7889   fi
7890 done
7891 done
7892 IFS=$as_save_IFS
7893
7894 fi
7895 fi
7896 METAFONT=$ac_cv_prog_METAFONT
7897 if test -n "$METAFONT"; then
7898   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7899 $as_echo "$METAFONT" >&6; }
7900 else
7901   { $as_echo "$as_me:$LINENO: result: no" >&5
7902 $as_echo "no" >&6; }
7903 fi
7904
7905
7906   test -n "$METAFONT" && break
7907 done
7908 test -n "$METAFONT" || METAFONT="no"
7909
7910
7911
7912     r="`eval echo '$'"METAFONT"`"
7913     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7914         true
7915     else
7916         ##STEPMAKE_WARN(cannot find . )
7917         false
7918     fi
7919
7920     if test $? -ne 0; then
7921
7922     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7923
7924         if test "REQUIRED" = "REQUIRED"; then
7925             command="echo ERROR: mf-nowin mf mfw mfont not found"
7926             # abort configure process here?
7927         else
7928             command="- echo mf-nowin mf mfw mfont not found"
7929         fi
7930         eval "METAFONT"='$command'
7931         false
7932     else
7933         true
7934     fi
7935
7936     if test $? -eq 0 -a -n ""; then
7937
7938     r="`eval echo '$'"METAFONT"`"
7939     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7940 $as_echo_n "checking $r version... " >&6; }
7941     exe=`
7942     ## which doesn't work in ash, if /usr/bin/which isn't installed
7943     ## type -p doesn't work in ash
7944     ## command -v doesn't work in zsh
7945     ## command -v "$r" 2>&1
7946     ## this test should work in ash, bash, pdksh (ksh), zsh
7947     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7948 `
7949     if test -n ""; then
7950         ver=""
7951     else
7952         ver=`
7953     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7954     ##
7955     ## ARG.
7956     ## Workaround for broken Debian gcc version string:
7957     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7958     ##
7959     ## -V: Workaround for python
7960
7961     #dnl
7962
7963     ## Assume and hunt for dotted version multiplet.
7964     ## use eval trickery, because we cannot use multi-level $() instead of ``
7965     ## for compatibility reasons.
7966
7967     ## grab the first version number in  --version output.
7968     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7969                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7970                 head -n 1 |
7971                 tr ' ' '\n' |
7972                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7973                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7974                 head -n 1\`\"
7975
7976     if test -z "$_ver"; then
7977         ## If empty, try date [fontforge]
7978         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7979             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7980             | head -n 1 \
7981             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7982     fi
7983     echo "$_ver"
7984     #dnl
7985 `
7986     fi
7987     num=`
7988     echo "$ver" | awk -F. '
7989     {
7990       if ($3) {three = $3}
7991       else {three = 0}
7992     }
7993     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7994 `
7995     req=`
7996     echo "" | awk -F. '
7997     {
7998       if ($3) {three = $3}
7999       else {three = 0}
8000     }
8001     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8002 `
8003     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8004 $as_echo "$ver" >&6; }
8005     if test "$num" -lt "$req"; then
8006
8007     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8008
8009     fi
8010     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
8011     eval `echo $vervar=$num`
8012 ##    AC_SUBST(`eval echo $vervar`)
8013
8014     fi
8015
8016
8017     for ac_prog in mpost
8018 do
8019   # Extract the first word of "$ac_prog", so it can be a program name with args.
8020 set dummy $ac_prog; ac_word=$2
8021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if test "${ac_cv_prog_METAPOST+set}" = set; then
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$METAPOST"; then
8027   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034   for ac_exec_ext in '' $ac_executable_extensions; do
8035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036     ac_cv_prog_METAPOST="$ac_prog"
8037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 METAPOST=$ac_cv_prog_METAPOST
8047 if test -n "$METAPOST"; then
8048   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
8049 $as_echo "$METAPOST" >&6; }
8050 else
8051   { $as_echo "$as_me:$LINENO: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055
8056   test -n "$METAPOST" && break
8057 done
8058 test -n "$METAPOST" || METAPOST="no"
8059
8060
8061
8062     r="`eval echo '$'"METAPOST"`"
8063     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
8064         true
8065     else
8066         ##STEPMAKE_WARN(cannot find . )
8067         false
8068     fi
8069
8070     if test $? -ne 0; then
8071
8072     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
8073
8074         if test "REQUIRED" = "REQUIRED"; then
8075             command="echo ERROR: mpost not found"
8076             # abort configure process here?
8077         else
8078             command="- echo mpost not found"
8079         fi
8080         eval "METAPOST"='$command'
8081         false
8082     else
8083         true
8084     fi
8085
8086     if test $? -eq 0 -a -n ""; then
8087
8088     r="`eval echo '$'"METAPOST"`"
8089     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8090 $as_echo_n "checking $r version... " >&6; }
8091     exe=`
8092     ## which doesn't work in ash, if /usr/bin/which isn't installed
8093     ## type -p doesn't work in ash
8094     ## command -v doesn't work in zsh
8095     ## command -v "$r" 2>&1
8096     ## this test should work in ash, bash, pdksh (ksh), zsh
8097     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8098 `
8099     if test -n ""; then
8100         ver=""
8101     else
8102         ver=`
8103     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8104     ##
8105     ## ARG.
8106     ## Workaround for broken Debian gcc version string:
8107     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8108     ##
8109     ## -V: Workaround for python
8110
8111     #dnl
8112
8113     ## Assume and hunt for dotted version multiplet.
8114     ## use eval trickery, because we cannot use multi-level $() instead of ``
8115     ## for compatibility reasons.
8116
8117     ## grab the first version number in  --version output.
8118     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8119                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8120                 head -n 1 |
8121                 tr ' ' '\n' |
8122                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8123                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8124                 head -n 1\`\"
8125
8126     if test -z "$_ver"; then
8127         ## If empty, try date [fontforge]
8128         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8129             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8130             | head -n 1 \
8131             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8132     fi
8133     echo "$_ver"
8134     #dnl
8135 `
8136     fi
8137     num=`
8138     echo "$ver" | awk -F. '
8139     {
8140       if ($3) {three = $3}
8141       else {three = 0}
8142     }
8143     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8144 `
8145     req=`
8146     echo "" | awk -F. '
8147     {
8148       if ($3) {three = $3}
8149       else {three = 0}
8150     }
8151     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8152 `
8153     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8154 $as_echo "$ver" >&6; }
8155     if test "$num" -lt "$req"; then
8156
8157     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8158
8159     fi
8160     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8161     eval `echo $vervar=$num`
8162 ##    AC_SUBST(`eval echo $vervar`)
8163
8164     fi
8165
8166     if test "$METAPOST" != ""; then
8167         ver=`
8168     ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8169     ##
8170     ## ARG.
8171     ## Workaround for broken Debian gcc version string:
8172     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8173     ##
8174     ## -V: Workaround for python
8175
8176     #dnl
8177
8178     ## Assume and hunt for dotted version multiplet.
8179     ## use eval trickery, because we cannot use multi-level $() instead of ``
8180     ## for compatibility reasons.
8181
8182     ## grab the first version number in  --version output.
8183     eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8184                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8185                 head -n 1 |
8186                 tr ' ' '\n' |
8187                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8188                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8189                 head -n 1\`\"
8190
8191     if test -z "$_ver"; then
8192         ## If empty, try date [fontforge]
8193         eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8194             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8195             | head -n 1 \
8196             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8197     fi
8198     echo "$_ver"
8199     #dnl
8200 `
8201         num=`
8202     echo "$ver" | awk -F. '
8203     {
8204       if ($3) {three = $3}
8205       else {three = 0}
8206     }
8207     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8208 `
8209         # Avoid buggy metapost versions: 1.600 <= x < 1.803
8210         if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8211
8212     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8213
8214         fi
8215     fi
8216
8217     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8218 $as_echo_n "checking for working metafont mode... " >&6; }
8219     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8220     for MFMODE in $modelist; do
8221         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8222         if test -f mfput.tfm; then
8223             break;
8224         fi
8225     done
8226     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8227 $as_echo "$MFMODE" >&6; }
8228
8229     rm -f mfput.*
8230
8231
8232
8233
8234
8235     for ac_prog in kpsewhich
8236 do
8237   # Extract the first word of "$ac_prog", so it can be a program name with args.
8238 set dummy $ac_prog; ac_word=$2
8239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8242   $as_echo_n "(cached) " >&6
8243 else
8244   if test -n "$KPSEWHICH"; then
8245   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250   IFS=$as_save_IFS
8251   test -z "$as_dir" && as_dir=.
8252   for ac_exec_ext in '' $ac_executable_extensions; do
8253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254     ac_cv_prog_KPSEWHICH="$ac_prog"
8255     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256     break 2
8257   fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261
8262 fi
8263 fi
8264 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8265 if test -n "$KPSEWHICH"; then
8266   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8267 $as_echo "$KPSEWHICH" >&6; }
8268 else
8269   { $as_echo "$as_me:$LINENO: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274   test -n "$KPSEWHICH" && break
8275 done
8276 test -n "$KPSEWHICH" || KPSEWHICH="no"
8277
8278
8279
8280     r="`eval echo '$'"KPSEWHICH"`"
8281     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8282         true
8283     else
8284         ##STEPMAKE_WARN(cannot find . )
8285         false
8286     fi
8287
8288     if test $? -ne 0; then
8289
8290     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8291
8292         if test "REQUIRED" = "REQUIRED"; then
8293             command="echo ERROR: kpsewhich not found"
8294             # abort configure process here?
8295         else
8296             command="- echo kpsewhich not found"
8297         fi
8298         eval "KPSEWHICH"='$command'
8299         false
8300     else
8301         true
8302     fi
8303
8304     if test $? -eq 0 -a -n ""; then
8305
8306     r="`eval echo '$'"KPSEWHICH"`"
8307     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8308 $as_echo_n "checking $r version... " >&6; }
8309     exe=`
8310     ## which doesn't work in ash, if /usr/bin/which isn't installed
8311     ## type -p doesn't work in ash
8312     ## command -v doesn't work in zsh
8313     ## command -v "$r" 2>&1
8314     ## this test should work in ash, bash, pdksh (ksh), zsh
8315     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8316 `
8317     if test -n ""; then
8318         ver=""
8319     else
8320         ver=`
8321     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8322     ##
8323     ## ARG.
8324     ## Workaround for broken Debian gcc version string:
8325     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8326     ##
8327     ## -V: Workaround for python
8328
8329     #dnl
8330
8331     ## Assume and hunt for dotted version multiplet.
8332     ## use eval trickery, because we cannot use multi-level $() instead of ``
8333     ## for compatibility reasons.
8334
8335     ## grab the first version number in  --version output.
8336     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8337                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8338                 head -n 1 |
8339                 tr ' ' '\n' |
8340                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8341                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8342                 head -n 1\`\"
8343
8344     if test -z "$_ver"; then
8345         ## If empty, try date [fontforge]
8346         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8347             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8348             | head -n 1 \
8349             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8350     fi
8351     echo "$_ver"
8352     #dnl
8353 `
8354     fi
8355     num=`
8356     echo "$ver" | awk -F. '
8357     {
8358       if ($3) {three = $3}
8359       else {three = 0}
8360     }
8361     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8362 `
8363     req=`
8364     echo "" | awk -F. '
8365     {
8366       if ($3) {three = $3}
8367       else {three = 0}
8368     }
8369     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8370 `
8371     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8372 $as_echo "$ver" >&6; }
8373     if test "$num" -lt "$req"; then
8374
8375     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8376
8377     fi
8378     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8379     eval `echo $vervar=$num`
8380 ##    AC_SUBST(`eval echo $vervar`)
8381
8382     fi
8383
8384
8385     { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8386 $as_echo_n "checking for metapost required files... " >&6; }
8387     if test "$MFPLAIN_MP" = ""; then
8388         MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8389     fi
8390     if test "$MFPLAIN_MP" = ""; then
8391         { $as_echo "$as_me:$LINENO: result: no" >&5
8392 $as_echo "no" >&6; }
8393
8394     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8395
8396     else
8397         { $as_echo "$as_me:$LINENO: result: yes" >&5
8398 $as_echo "yes" >&6; }
8399     fi
8400
8401 if test "$GUILEv2" = "yes"
8402 then
8403
8404     ## First, let's just see if we can find Guile at all.
8405     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8406     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8407     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8408 $as_echo_n "checking for guile-config... " >&6; }
8409     guile_config="guile-config"
8410     found="no"
8411     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
8412         exe=`
8413     ## which doesn't work in ash, if /usr/bin/which isn't installed
8414     ## type -p doesn't work in ash
8415     ## command -v doesn't work in zsh
8416     ## command -v "$r" 2>&1
8417     ## this test should work in ash, bash, pdksh (ksh), zsh
8418     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8419 `
8420         if ! $exe --version > /dev/null 2>&1 ; then
8421             continue
8422         fi
8423         ver=`
8424     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8425     ##
8426     ## ARG.
8427     ## Workaround for broken Debian gcc version string:
8428     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8429     ##
8430     ## -V: Workaround for python
8431
8432     #dnl
8433
8434     ## Assume and hunt for dotted version multiplet.
8435     ## use eval trickery, because we cannot use multi-level $() instead of ``
8436     ## for compatibility reasons.
8437
8438     ## grab the first version number in  --version output.
8439     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8440                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8441                 head -n 1 |
8442                 tr ' ' '\n' |
8443                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8444                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8445                 head -n 1\`\"
8446
8447     if test -z "$_ver"; then
8448         ## If empty, try date [fontforge]
8449         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8450             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8451             | head -n 1 \
8452             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8453     fi
8454     echo "$_ver"
8455     #dnl
8456 `
8457         num=`
8458     echo "$ver" | awk -F. '
8459     {
8460       if ($3) {three = $3}
8461       else {three = 0}
8462     }
8463     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8464 `
8465         req=`
8466     echo "2.0.7" | awk -F. '
8467     {
8468       if ($3) {three = $3}
8469       else {three = 0}
8470     }
8471     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8472 `
8473         sup=`
8474     echo "2.2.0" | awk -F. '
8475     {
8476       if ($3) {three = $3}
8477       else {three = 0}
8478     }
8479     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8480 `
8481         if test -n "2.0.7" -a "$num" -lt "$req"; then
8482             guile_config="$r >= 2.0.7 (installed: $ver)"
8483             continue
8484         else
8485             if test -n "2.2.0" -a "$num" -ge "$sup"; then
8486                 guile_config="$r < 2.2.0 (installed: $ver)"
8487                 continue
8488             else
8489                 guile_config=$r
8490                 found=$r
8491                 break
8492             fi
8493         fi
8494     done
8495     { $as_echo "$as_me:$LINENO: result: $found" >&5
8496 $as_echo "$found" >&6; }
8497     if test "$found" != "no"; then
8498         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8499 $as_echo_n "checking $guile_config version... " >&6; }
8500         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8501 $as_echo "$ver" >&6; }
8502         GUILE_CONFIG=$found
8503     else
8504
8505     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8506
8507     fi
8508
8509
8510
8511     guile_version="$ver"
8512     #dnl
8513     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8514     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8515     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8516     #dnl
8517
8518     exe=`
8519     ## which doesn't work in ash, if /usr/bin/which isn't installed
8520     ## type -p doesn't work in ash
8521     ## command -v doesn't work in zsh
8522     ## command -v "$guile_config" 2>&1
8523     ## this test should work in ash, bash, pdksh (ksh), zsh
8524     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8525 `
8526     if test -x $exe; then
8527         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8528 $as_echo_n "checking guile compile flags... " >&6; }
8529         GUILE_CFLAGS="`$guile_config compile`"
8530         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8531 $as_echo "$GUILE_CFLAGS" >&6; }
8532         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8533 $as_echo_n "checking guile link flags... " >&6; }
8534         GUILE_LDFLAGS="`$guile_config link`"
8535         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8536 $as_echo "$GUILE_LDFLAGS" >&6; }
8537     fi
8538
8539
8540
8541     save_CPPFLAGS="$CPPFLAGS"
8542     save_LIBS="$LIBS"
8543     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8544     LIBS="$GUILE_LDFLAGS $LIBS"
8545
8546 for ac_header in libguile.h
8547 do
8548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 $as_echo_n "checking for $ac_header... " >&6; }
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553   $as_echo_n "(cached) " >&6
8554 fi
8555 ac_res=`eval 'as_val=${'$as_ac_Header'}
8556                  $as_echo "$as_val"'`
8557                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8558 $as_echo "$ac_res" >&6; }
8559 else
8560   # Is the header compilable?
8561 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 $as_echo_n "checking $ac_header usability... " >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569 $ac_includes_default
8570 #include <$ac_header>
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8579 $as_echo "$ac_try_echo") >&5
8580   (eval "$ac_compile") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } && {
8587          test -z "$ac_cxx_werror_flag" ||
8588          test ! -s conftest.err
8589        } && test -s conftest.$ac_objext; then
8590   ac_header_compiler=yes
8591 else
8592   $as_echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595         ac_header_compiler=no
8596 fi
8597
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8600 $as_echo "$ac_header_compiler" >&6; }
8601
8602 # Is the header present?
8603 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8604 $as_echo_n "checking $ac_header presence... " >&6; }
8605 cat >conftest.$ac_ext <<_ACEOF
8606 /* confdefs.h.  */
8607 _ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h.  */
8611 #include <$ac_header>
8612 _ACEOF
8613 if { (ac_try="$ac_cpp conftest.$ac_ext"
8614 case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619 $as_echo "$ac_try_echo") >&5
8620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } >/dev/null && {
8627          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8628          test ! -s conftest.err
8629        }; then
8630   ac_header_preproc=yes
8631 else
8632   $as_echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635   ac_header_preproc=no
8636 fi
8637
8638 rm -f conftest.err conftest.$ac_ext
8639 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8640 $as_echo "$ac_header_preproc" >&6; }
8641
8642 # So?  What about this header?
8643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8644   yes:no: )
8645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8646 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8647     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8649     ac_header_preproc=yes
8650     ;;
8651   no:yes:* )
8652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8653 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8655 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8656     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8657 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8658     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8659 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8662     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8663 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8664
8665     ;;
8666 esac
8667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8668 $as_echo_n "checking for $ac_header... " >&6; }
8669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8670   $as_echo_n "(cached) " >&6
8671 else
8672   eval "$as_ac_Header=\$ac_header_preproc"
8673 fi
8674 ac_res=`eval 'as_val=${'$as_ac_Header'}
8675                  $as_echo "$as_val"'`
8676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8677 $as_echo "$ac_res" >&6; }
8678
8679 fi
8680 as_val=`eval 'as_val=${'$as_ac_Header'}
8681                  $as_echo "$as_val"'`
8682    if test "x$as_val" = x""yes; then
8683   cat >>confdefs.h <<_ACEOF
8684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8685 _ACEOF
8686
8687 fi
8688
8689 done
8690
8691
8692 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8693 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8694 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8695   $as_echo_n "(cached) " >&6
8696 else
8697   ac_check_lib_save_LIBS=$LIBS
8698 LIBS="-lguile  $LIBS"
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705
8706 /* Override any GCC internal prototype to avoid an error.
8707    Use char because int might match the return type of a GCC
8708    builtin and then its argument prototype would still apply.  */
8709 #ifdef __cplusplus
8710 extern "C"
8711 #endif
8712 char scm_boot_guile ();
8713 int
8714 main ()
8715 {
8716 return scm_boot_guile ();
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (ac_try="$ac_link"
8723 case "(($ac_try" in
8724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725   *) ac_try_echo=$ac_try;;
8726 esac
8727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8728 $as_echo "$ac_try_echo") >&5
8729   (eval "$ac_link") 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } && {
8736          test -z "$ac_cxx_werror_flag" ||
8737          test ! -s conftest.err
8738        } && test -s conftest$ac_exeext && {
8739          test "$cross_compiling" = yes ||
8740          $as_test_x conftest$ac_exeext
8741        }; then
8742   ac_cv_lib_guile_scm_boot_guile=yes
8743 else
8744   $as_echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747         ac_cv_lib_guile_scm_boot_guile=no
8748 fi
8749
8750 rm -rf conftest.dSYM
8751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8752       conftest$ac_exeext conftest.$ac_ext
8753 LIBS=$ac_check_lib_save_LIBS
8754 fi
8755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8756 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8757 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8758   cat >>confdefs.h <<_ACEOF
8759 #define HAVE_LIBGUILE 1
8760 _ACEOF
8761
8762   LIBS="-lguile $LIBS"
8763
8764 fi
8765
8766
8767 for ac_func in scm_boot_guile
8768 do
8769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8771 $as_echo_n "checking for $ac_func... " >&6; }
8772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8773   $as_echo_n "(cached) " >&6
8774 else
8775   cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h.  */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h.  */
8781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8783 #define $ac_func innocuous_$ac_func
8784
8785 /* System header to define __stub macros and hopefully few prototypes,
8786     which can conflict with char $ac_func (); below.
8787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8788     <limits.h> exists even on freestanding compilers.  */
8789
8790 #ifdef __STDC__
8791 # include <limits.h>
8792 #else
8793 # include <assert.h>
8794 #endif
8795
8796 #undef $ac_func
8797
8798 /* Override any GCC internal prototype to avoid an error.
8799    Use char because int might match the return type of a GCC
8800    builtin and then its argument prototype would still apply.  */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 char $ac_func ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined __stub_$ac_func || defined __stub___$ac_func
8809 choke me
8810 #endif
8811
8812 int
8813 main ()
8814 {
8815 return $ac_func ();
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8822 case "(($ac_try" in
8823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824   *) ac_try_echo=$ac_try;;
8825 esac
8826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8827 $as_echo "$ac_try_echo") >&5
8828   (eval "$ac_link") 2>conftest.er1
8829   ac_status=$?
8830   grep -v '^ *+' conftest.er1 >conftest.err
8831   rm -f conftest.er1
8832   cat conftest.err >&5
8833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } && {
8835          test -z "$ac_cxx_werror_flag" ||
8836          test ! -s conftest.err
8837        } && test -s conftest$ac_exeext && {
8838          test "$cross_compiling" = yes ||
8839          $as_test_x conftest$ac_exeext
8840        }; then
8841   eval "$as_ac_var=yes"
8842 else
8843   $as_echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846         eval "$as_ac_var=no"
8847 fi
8848
8849 rm -rf conftest.dSYM
8850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8851       conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 ac_res=`eval 'as_val=${'$as_ac_var'}
8854                  $as_echo "$as_val"'`
8855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8856 $as_echo "$ac_res" >&6; }
8857 as_val=`eval 'as_val=${'$as_ac_var'}
8858                  $as_echo "$as_val"'`
8859    if test "x$as_val" = x""yes; then
8860   cat >>confdefs.h <<_ACEOF
8861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862 _ACEOF
8863
8864 else
8865   libguile_b=no
8866 fi
8867 done
8868
8869     if test "$libguile_b" = "no"; then
8870             warn='libguile (libguile-dev, guile-devel or guile-dev
8871    package).'
8872
8873     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8874
8875     fi
8876     CPPFLAGS="$save_CPPFLAGS"
8877     LIBS="$save_LIBS"
8878     cat >>confdefs.h <<_ACEOF
8879 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8880 _ACEOF
8881
8882     cat >>confdefs.h <<_ACEOF
8883 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8884 _ACEOF
8885
8886     cat >>confdefs.h <<_ACEOF
8887 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8888 _ACEOF
8889
8890
8891 else
8892
8893     ## First, let's just see if we can find Guile at all.
8894     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8895     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8896     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8897 $as_echo_n "checking for guile-config... " >&6; }
8898     guile_config="guile-config"
8899     found="no"
8900     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
8901         exe=`
8902     ## which doesn't work in ash, if /usr/bin/which isn't installed
8903     ## type -p doesn't work in ash
8904     ## command -v doesn't work in zsh
8905     ## command -v "$r" 2>&1
8906     ## this test should work in ash, bash, pdksh (ksh), zsh
8907     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8908 `
8909         if ! $exe --version > /dev/null 2>&1 ; then
8910             continue
8911         fi
8912         ver=`
8913     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8914     ##
8915     ## ARG.
8916     ## Workaround for broken Debian gcc version string:
8917     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8918     ##
8919     ## -V: Workaround for python
8920
8921     #dnl
8922
8923     ## Assume and hunt for dotted version multiplet.
8924     ## use eval trickery, because we cannot use multi-level $() instead of ``
8925     ## for compatibility reasons.
8926
8927     ## grab the first version number in  --version output.
8928     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8929                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8930                 head -n 1 |
8931                 tr ' ' '\n' |
8932                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8933                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8934                 head -n 1\`\"
8935
8936     if test -z "$_ver"; then
8937         ## If empty, try date [fontforge]
8938         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8939             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8940             | head -n 1 \
8941             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8942     fi
8943     echo "$_ver"
8944     #dnl
8945 `
8946         num=`
8947     echo "$ver" | awk -F. '
8948     {
8949       if ($3) {three = $3}
8950       else {three = 0}
8951     }
8952     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8953 `
8954         req=`
8955     echo "1.8.2" | awk -F. '
8956     {
8957       if ($3) {three = $3}
8958       else {three = 0}
8959     }
8960     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8961 `
8962         sup=`
8963     echo "1.9.0" | awk -F. '
8964     {
8965       if ($3) {three = $3}
8966       else {three = 0}
8967     }
8968     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8969 `
8970         if test -n "1.8.2" -a "$num" -lt "$req"; then
8971             guile_config="$r >= 1.8.2 (installed: $ver)"
8972             continue
8973         else
8974             if test -n "1.9.0" -a "$num" -ge "$sup"; then
8975                 guile_config="$r < 1.9.0 (installed: $ver)"
8976                 continue
8977             else
8978                 guile_config=$r
8979                 found=$r
8980                 break
8981             fi
8982         fi
8983     done
8984     { $as_echo "$as_me:$LINENO: result: $found" >&5
8985 $as_echo "$found" >&6; }
8986     if test "$found" != "no"; then
8987         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8988 $as_echo_n "checking $guile_config version... " >&6; }
8989         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8990 $as_echo "$ver" >&6; }
8991         GUILE_CONFIG=$found
8992     else
8993
8994     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8995
8996     fi
8997
8998
8999
9000     guile_version="$ver"
9001     #dnl
9002     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
9003     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
9004     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9005     #dnl
9006
9007     exe=`
9008     ## which doesn't work in ash, if /usr/bin/which isn't installed
9009     ## type -p doesn't work in ash
9010     ## command -v doesn't work in zsh
9011     ## command -v "$guile_config" 2>&1
9012     ## this test should work in ash, bash, pdksh (ksh), zsh
9013     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
9014 `
9015     if test -x $exe; then
9016         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
9017 $as_echo_n "checking guile compile flags... " >&6; }
9018         GUILE_CFLAGS="`$guile_config compile`"
9019         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
9020 $as_echo "$GUILE_CFLAGS" >&6; }
9021         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
9022 $as_echo_n "checking guile link flags... " >&6; }
9023         GUILE_LDFLAGS="`$guile_config link`"
9024         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
9025 $as_echo "$GUILE_LDFLAGS" >&6; }
9026     fi
9027
9028
9029
9030     save_CPPFLAGS="$CPPFLAGS"
9031     save_LIBS="$LIBS"
9032     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9033     LIBS="$GUILE_LDFLAGS $LIBS"
9034
9035 for ac_header in libguile.h
9036 do
9037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9039   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9040 $as_echo_n "checking for $ac_header... " >&6; }
9041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042   $as_echo_n "(cached) " >&6
9043 fi
9044 ac_res=`eval 'as_val=${'$as_ac_Header'}
9045                  $as_echo "$as_val"'`
9046                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9047 $as_echo "$ac_res" >&6; }
9048 else
9049   # Is the header compilable?
9050 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9051 $as_echo_n "checking $ac_header usability... " >&6; }
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h.  */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h.  */
9058 $ac_includes_default
9059 #include <$ac_header>
9060 _ACEOF
9061 rm -f conftest.$ac_objext
9062 if { (ac_try="$ac_compile"
9063 case "(($ac_try" in
9064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065   *) ac_try_echo=$ac_try;;
9066 esac
9067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9068 $as_echo "$ac_try_echo") >&5
9069   (eval "$ac_compile") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } && {
9076          test -z "$ac_cxx_werror_flag" ||
9077          test ! -s conftest.err
9078        } && test -s conftest.$ac_objext; then
9079   ac_header_compiler=yes
9080 else
9081   $as_echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084         ac_header_compiler=no
9085 fi
9086
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9089 $as_echo "$ac_header_compiler" >&6; }
9090
9091 # Is the header present?
9092 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9093 $as_echo_n "checking $ac_header presence... " >&6; }
9094 cat >conftest.$ac_ext <<_ACEOF
9095 /* confdefs.h.  */
9096 _ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h.  */
9100 #include <$ac_header>
9101 _ACEOF
9102 if { (ac_try="$ac_cpp conftest.$ac_ext"
9103 case "(($ac_try" in
9104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105   *) ac_try_echo=$ac_try;;
9106 esac
9107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9108 $as_echo "$ac_try_echo") >&5
9109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9110   ac_status=$?
9111   grep -v '^ *+' conftest.er1 >conftest.err
9112   rm -f conftest.er1
9113   cat conftest.err >&5
9114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } >/dev/null && {
9116          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9117          test ! -s conftest.err
9118        }; then
9119   ac_header_preproc=yes
9120 else
9121   $as_echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124   ac_header_preproc=no
9125 fi
9126
9127 rm -f conftest.err conftest.$ac_ext
9128 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9129 $as_echo "$ac_header_preproc" >&6; }
9130
9131 # So?  What about this header?
9132 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9133   yes:no: )
9134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9135 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9138     ac_header_preproc=yes
9139     ;;
9140   no:yes:* )
9141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9142 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9144 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9145     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9146 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9148 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9152 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9153
9154     ;;
9155 esac
9156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 $as_echo_n "checking for $ac_header... " >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159   $as_echo_n "(cached) " >&6
9160 else
9161   eval "$as_ac_Header=\$ac_header_preproc"
9162 fi
9163 ac_res=`eval 'as_val=${'$as_ac_Header'}
9164                  $as_echo "$as_val"'`
9165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9166 $as_echo "$ac_res" >&6; }
9167
9168 fi
9169 as_val=`eval 'as_val=${'$as_ac_Header'}
9170                  $as_echo "$as_val"'`
9171    if test "x$as_val" = x""yes; then
9172   cat >>confdefs.h <<_ACEOF
9173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9174 _ACEOF
9175
9176 fi
9177
9178 done
9179
9180
9181 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9182 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9183 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9184   $as_echo_n "(cached) " >&6
9185 else
9186   ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lguile  $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194
9195 /* Override any GCC internal prototype to avoid an error.
9196    Use char because int might match the return type of a GCC
9197    builtin and then its argument prototype would still apply.  */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 char scm_boot_guile ();
9202 int
9203 main ()
9204 {
9205 return scm_boot_guile ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9212 case "(($ac_try" in
9213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214   *) ac_try_echo=$ac_try;;
9215 esac
9216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9217 $as_echo "$ac_try_echo") >&5
9218   (eval "$ac_link") 2>conftest.er1
9219   ac_status=$?
9220   grep -v '^ *+' conftest.er1 >conftest.err
9221   rm -f conftest.er1
9222   cat conftest.err >&5
9223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } && {
9225          test -z "$ac_cxx_werror_flag" ||
9226          test ! -s conftest.err
9227        } && test -s conftest$ac_exeext && {
9228          test "$cross_compiling" = yes ||
9229          $as_test_x conftest$ac_exeext
9230        }; then
9231   ac_cv_lib_guile_scm_boot_guile=yes
9232 else
9233   $as_echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236         ac_cv_lib_guile_scm_boot_guile=no
9237 fi
9238
9239 rm -rf conftest.dSYM
9240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9241       conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9243 fi
9244 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9245 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9246 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9247   cat >>confdefs.h <<_ACEOF
9248 #define HAVE_LIBGUILE 1
9249 _ACEOF
9250
9251   LIBS="-lguile $LIBS"
9252
9253 fi
9254
9255
9256 for ac_func in scm_boot_guile
9257 do
9258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9260 $as_echo_n "checking for $ac_func... " >&6; }
9261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262   $as_echo_n "(cached) " >&6
9263 else
9264   cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9272 #define $ac_func innocuous_$ac_func
9273
9274 /* System header to define __stub macros and hopefully few prototypes,
9275     which can conflict with char $ac_func (); below.
9276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277     <limits.h> exists even on freestanding compilers.  */
9278
9279 #ifdef __STDC__
9280 # include <limits.h>
9281 #else
9282 # include <assert.h>
9283 #endif
9284
9285 #undef $ac_func
9286
9287 /* Override any GCC internal prototype to avoid an error.
9288    Use char because int might match the return type of a GCC
9289    builtin and then its argument prototype would still apply.  */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 char $ac_func ();
9294 /* The GNU C library defines this for functions which it implements
9295     to always fail with ENOSYS.  Some functions are actually named
9296     something starting with __ and the normal name is an alias.  */
9297 #if defined __stub_$ac_func || defined __stub___$ac_func
9298 choke me
9299 #endif
9300
9301 int
9302 main ()
9303 {
9304 return $ac_func ();
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9311 case "(($ac_try" in
9312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313   *) ac_try_echo=$ac_try;;
9314 esac
9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316 $as_echo "$ac_try_echo") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && {
9324          test -z "$ac_cxx_werror_flag" ||
9325          test ! -s conftest.err
9326        } && test -s conftest$ac_exeext && {
9327          test "$cross_compiling" = yes ||
9328          $as_test_x conftest$ac_exeext
9329        }; then
9330   eval "$as_ac_var=yes"
9331 else
9332   $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335         eval "$as_ac_var=no"
9336 fi
9337
9338 rm -rf conftest.dSYM
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340       conftest$ac_exeext conftest.$ac_ext
9341 fi
9342 ac_res=`eval 'as_val=${'$as_ac_var'}
9343                  $as_echo "$as_val"'`
9344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9345 $as_echo "$ac_res" >&6; }
9346 as_val=`eval 'as_val=${'$as_ac_var'}
9347                  $as_echo "$as_val"'`
9348    if test "x$as_val" = x""yes; then
9349   cat >>confdefs.h <<_ACEOF
9350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9351 _ACEOF
9352
9353 else
9354   libguile_b=no
9355 fi
9356 done
9357
9358     if test "$libguile_b" = "no"; then
9359             warn='libguile (libguile-dev, guile-devel or guile-dev
9360    package).'
9361
9362     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9363
9364     fi
9365     CPPFLAGS="$save_CPPFLAGS"
9366     LIBS="$save_LIBS"
9367     cat >>confdefs.h <<_ACEOF
9368 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9369 _ACEOF
9370
9371     cat >>confdefs.h <<_ACEOF
9372 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9373 _ACEOF
9374
9375     cat >>confdefs.h <<_ACEOF
9376 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9377 _ACEOF
9378
9379
9380 fi
9381
9382 # check for 3 typedefs added in Guile 1.9
9383 save_CXXFLAGS="$CXXFLAGS"
9384 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9385 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9386 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9387 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9388   $as_echo_n "(cached) " >&6
9389 else
9390   ac_cv_type_scm_t_hash_fold_fn=no
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397 #include <libguile.h>
9398
9399 int
9400 main ()
9401 {
9402 if (sizeof (scm_t_hash_fold_fn))
9403        return 0;
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext
9409 if { (ac_try="$ac_compile"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9415 $as_echo "$ac_try_echo") >&5
9416   (eval "$ac_compile") 2>conftest.er1
9417   ac_status=$?
9418   grep -v '^ *+' conftest.er1 >conftest.err
9419   rm -f conftest.er1
9420   cat conftest.err >&5
9421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } && {
9423          test -z "$ac_cxx_werror_flag" ||
9424          test ! -s conftest.err
9425        } && test -s conftest.$ac_objext; then
9426   cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h.  */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h.  */
9432 #include <libguile.h>
9433
9434 int
9435 main ()
9436 {
9437 if (sizeof ((scm_t_hash_fold_fn)))
9438           return 0;
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (ac_try="$ac_compile"
9445 case "(($ac_try" in
9446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447   *) ac_try_echo=$ac_try;;
9448 esac
9449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450 $as_echo "$ac_try_echo") >&5
9451   (eval "$ac_compile") 2>conftest.er1
9452   ac_status=$?
9453   grep -v '^ *+' conftest.er1 >conftest.err
9454   rm -f conftest.er1
9455   cat conftest.err >&5
9456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } && {
9458          test -z "$ac_cxx_werror_flag" ||
9459          test ! -s conftest.err
9460        } && test -s conftest.$ac_objext; then
9461   :
9462 else
9463   $as_echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466         ac_cv_type_scm_t_hash_fold_fn=yes
9467 fi
9468
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 else
9471   $as_echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 fi
9479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9480 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9481 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9482
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_SCM_T_HASH_FOLD_FN 1
9485 _ACEOF
9486
9487 cat >>confdefs.h <<\_ACEOF
9488 #define HAVE_GUILE_HASH_FUNC 1
9489 _ACEOF
9490
9491 fi
9492 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9493 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9494 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9495   $as_echo_n "(cached) " >&6
9496 else
9497   ac_cv_type_scm_t_hash_handle_fn=no
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504 #include <libguile.h>
9505
9506 int
9507 main ()
9508 {
9509 if (sizeof (scm_t_hash_handle_fn))
9510        return 0;
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9517 case "(($ac_try" in
9518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519   *) ac_try_echo=$ac_try;;
9520 esac
9521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9522 $as_echo "$ac_try_echo") >&5
9523   (eval "$ac_compile") 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } && {
9530          test -z "$ac_cxx_werror_flag" ||
9531          test ! -s conftest.err
9532        } && test -s conftest.$ac_objext; then
9533   cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 #include <libguile.h>
9540
9541 int
9542 main ()
9543 {
9544 if (sizeof ((scm_t_hash_handle_fn)))
9545           return 0;
9546   ;
9547   return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9552 case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9557 $as_echo "$ac_try_echo") >&5
9558   (eval "$ac_compile") 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } && {
9565          test -z "$ac_cxx_werror_flag" ||
9566          test ! -s conftest.err
9567        } && test -s conftest.$ac_objext; then
9568   :
9569 else
9570   $as_echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573         ac_cv_type_scm_t_hash_handle_fn=yes
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 else
9578   $as_echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581
9582 fi
9583
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 fi
9586 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9587 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9588 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9589
9590 cat >>confdefs.h <<_ACEOF
9591 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9592 _ACEOF
9593
9594 cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_GUILE_HASH_FUNC 1
9596 _ACEOF
9597
9598 fi
9599
9600 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9601 $as_echo_n "checking for scm_t_subr... " >&6; }
9602 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9603   $as_echo_n "(cached) " >&6
9604 else
9605   ac_cv_type_scm_t_subr=no
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h.  */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h.  */
9612 #include <libguile.h>
9613
9614 int
9615 main ()
9616 {
9617 if (sizeof (scm_t_subr))
9618        return 0;
9619   ;
9620   return 0;
9621 }
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (ac_try="$ac_compile"
9625 case "(($ac_try" in
9626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627   *) ac_try_echo=$ac_try;;
9628 esac
9629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9630 $as_echo "$ac_try_echo") >&5
9631   (eval "$ac_compile") 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
9635   cat conftest.err >&5
9636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } && {
9638          test -z "$ac_cxx_werror_flag" ||
9639          test ! -s conftest.err
9640        } && test -s conftest.$ac_objext; then
9641   cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647 #include <libguile.h>
9648
9649 int
9650 main ()
9651 {
9652 if (sizeof ((scm_t_subr)))
9653           return 0;
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9665 $as_echo "$ac_try_echo") >&5
9666   (eval "$ac_compile") 2>conftest.er1
9667   ac_status=$?
9668   grep -v '^ *+' conftest.er1 >conftest.err
9669   rm -f conftest.er1
9670   cat conftest.err >&5
9671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } && {
9673          test -z "$ac_cxx_werror_flag" ||
9674          test ! -s conftest.err
9675        } && test -s conftest.$ac_objext; then
9676   :
9677 else
9678   $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_type_scm_t_subr=yes
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 else
9686   $as_echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 fi
9694 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9695 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9696 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9697
9698 cat >>confdefs.h <<_ACEOF
9699 #define HAVE_SCM_T_SUBR 1
9700 _ACEOF
9701
9702 cat >>confdefs.h <<\_ACEOF
9703 #define HAVE_GUILE_SUBR_TYPE 1
9704 _ACEOF
9705
9706 fi
9707
9708 CXXFLAGS="$save_CXXFLAGS"
9709
9710 ## Check for usable cxxabi
9711 save_LIBS="$LIBS"
9712 LIBS="$LIBS $CXXABI_LIBS"
9713 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9714 $as_echo_n "checking for usable C++ demangler... " >&6; }
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 #include <cxxabi.h>
9722 int
9723 main ()
9724 {
9725 abi::__cxa_demangle ("", 0, 0, 0)
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (ac_try="$ac_link"
9732 case "(($ac_try" in
9733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734   *) ac_try_echo=$ac_try;;
9735 esac
9736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9737 $as_echo "$ac_try_echo") >&5
9738   (eval "$ac_link") 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } && {
9745          test -z "$ac_cxx_werror_flag" ||
9746          test ! -s conftest.err
9747        } && test -s conftest$ac_exeext && {
9748          test "$cross_compiling" = yes ||
9749          $as_test_x conftest$ac_exeext
9750        }; then
9751   cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_CXA_DEMANGLE 1
9753 _ACEOF
9754
9755         { $as_echo "$as_me:$LINENO: result: yes" >&5
9756 $as_echo "yes" >&6; }
9757 else
9758   $as_echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761
9762         LIBS="$LIBS -lsupc++"
9763         cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 #include <cxxabi.h>
9770 int
9771 main ()
9772 {
9773 abi::__cxa_demangle ("", 0, 0, 0)
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9785 $as_echo "$ac_try_echo") >&5
9786   (eval "$ac_link") 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } && {
9793          test -z "$ac_cxx_werror_flag" ||
9794          test ! -s conftest.err
9795        } && test -s conftest$ac_exeext && {
9796          test "$cross_compiling" = yes ||
9797          $as_test_x conftest$ac_exeext
9798        }; then
9799   cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_CXA_DEMANGLE 1
9801 _ACEOF
9802
9803                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9804 $as_echo "yes, using -lsupc++" >&6; }
9805                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9806 else
9807   $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9811 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9812 fi
9813
9814 rm -rf conftest.dSYM
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816       conftest$ac_exeext conftest.$ac_ext
9817 fi
9818
9819 rm -rf conftest.dSYM
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821       conftest$ac_exeext conftest.$ac_ext
9822 LIBS="$save_LIBS"
9823
9824
9825 ## check rational bugfix.
9826 save_CPPFLAGS="$CPPFLAGS"
9827 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9828 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9829 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <libguile.h>
9837 #ifdef SCM_FRACTION_REDUCED_BIT
9838 #error
9839 #endif
9840
9841 _ACEOF
9842 if { (ac_try="$ac_cpp conftest.$ac_ext"
9843 case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9848 $as_echo "$ac_try_echo") >&5
9849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } >/dev/null && {
9856          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9857          test ! -s conftest.err
9858        }; then
9859   { $as_echo "$as_me:$LINENO: result: ok" >&5
9860 $as_echo "ok" >&6; }
9861 else
9862   $as_echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9866 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9867 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9868 fi
9869
9870 rm -f conftest.err conftest.$ac_ext
9871 CPPFLAGS="$save_CPPFLAGS"
9872
9873
9874
9875
9876 # Check whether --with-python-include was given.
9877 if test "${with_python_include+set}" = set; then
9878   withval=$with_python_include;
9879         if test "$withval" = "yes" -o "$withval" = "no"; then
9880             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9881 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9882         else
9883             PYTHON_CFLAGS="-I${withval}"
9884         fi
9885
9886 fi
9887
9888
9889
9890 # Check whether --with-python-lib was given.
9891 if test "${with_python_lib+set}" = set; then
9892   withval=$with_python_lib;
9893         if test "$withval" = "yes" -o "$withval" = "no"; then
9894             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9895 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9896         else
9897             LDFLAGS="$LDFLAGS -l${withval}"
9898         fi
9899
9900 fi
9901
9902
9903
9904     { $as_echo "$as_me:$LINENO: checking for python" >&5
9905 $as_echo_n "checking for python... " >&6; }
9906     python="python"
9907     found="no"
9908     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
9909         exe=`
9910     ## which doesn't work in ash, if /usr/bin/which isn't installed
9911     ## type -p doesn't work in ash
9912     ## command -v doesn't work in zsh
9913     ## command -v "$r" 2>&1
9914     ## this test should work in ash, bash, pdksh (ksh), zsh
9915     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9916 `
9917         if ! $exe -V > /dev/null 2>&1 ; then
9918             continue
9919         fi
9920         ver=`
9921     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9922     ##
9923     ## ARG.
9924     ## Workaround for broken Debian gcc version string:
9925     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9926     ##
9927     ## -V: Workaround for python
9928
9929     #dnl
9930
9931     ## Assume and hunt for dotted version multiplet.
9932     ## use eval trickery, because we cannot use multi-level $() instead of ``
9933     ## for compatibility reasons.
9934
9935     ## grab the first version number in  --version output.
9936     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9937                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9938                 head -n 1 |
9939                 tr ' ' '\n' |
9940                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9941                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9942                 head -n 1\`\"
9943
9944     if test -z "$_ver"; then
9945         ## If empty, try date [fontforge]
9946         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9947             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9948             | head -n 1 \
9949             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9950     fi
9951     echo "$_ver"
9952     #dnl
9953 `
9954         num=`
9955     echo "$ver" | awk -F. '
9956     {
9957       if ($3) {three = $3}
9958       else {three = 0}
9959     }
9960     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9961 `
9962         req=`
9963     echo "2.4" | awk -F. '
9964     {
9965       if ($3) {three = $3}
9966       else {three = 0}
9967     }
9968     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9969 `
9970         sup=`
9971     echo "3.0" | awk -F. '
9972     {
9973       if ($3) {three = $3}
9974       else {three = 0}
9975     }
9976     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9977 `
9978         if test -n "2.4" && test "$num" -lt "$req"; then
9979             python="$r >= 2.4 (installed: $ver)"
9980             continue
9981         else
9982             if test -n "3.0" && test "$num" -ge "$sup"; then
9983                 python="$r < 3.0 (installed: $ver)"
9984                 continue
9985             else
9986                 python=$r
9987                 found=$r
9988                 break
9989             fi
9990         fi
9991     done
9992     { $as_echo "$as_me:$LINENO: result: $found" >&5
9993 $as_echo "$found" >&6; }
9994     if test "$found" != "no"; then
9995         { $as_echo "$as_me:$LINENO: checking $python version" >&5
9996 $as_echo_n "checking $python version... " >&6; }
9997         { $as_echo "$as_me:$LINENO: result: $ver" >&5
9998 $as_echo "$ver" >&6; }
9999         PYTHON=$found
10000     else
10001
10002     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
10003
10004     fi
10005     # Extract the first word of "$PYTHON", so it can be a program name with args.
10006 set dummy $PYTHON; ac_word=$2
10007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if test "${ac_cv_path_PYTHON+set}" = set; then
10010   $as_echo_n "(cached) " >&6
10011 else
10012   case $PYTHON in
10013   [\\/]* | ?:[\\/]*)
10014   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10015   ;;
10016   *)
10017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020   IFS=$as_save_IFS
10021   test -z "$as_dir" && as_dir=.
10022   for ac_exec_ext in '' $ac_executable_extensions; do
10023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10025     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10026     break 2
10027   fi
10028 done
10029 done
10030 IFS=$as_save_IFS
10031
10032   ;;
10033 esac
10034 fi
10035 PYTHON=$ac_cv_path_PYTHON
10036 if test -n "$PYTHON"; then
10037   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
10038 $as_echo "$PYTHON" >&6; }
10039 else
10040   { $as_echo "$as_me:$LINENO: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043
10044
10045
10046
10047     for ac_prog in `basename $PYTHON`-config
10048 do
10049   # Extract the first word of "$ac_prog", so it can be a program name with args.
10050 set dummy $ac_prog; ac_word=$2
10051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
10054   $as_echo_n "(cached) " >&6
10055 else
10056   if test -n "$PYTHON_CONFIG"; then
10057   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062   IFS=$as_save_IFS
10063   test -z "$as_dir" && as_dir=.
10064   for ac_exec_ext in '' $ac_executable_extensions; do
10065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
10067     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10068     break 2
10069   fi
10070 done
10071 done
10072 IFS=$as_save_IFS
10073
10074 fi
10075 fi
10076 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
10077 if test -n "$PYTHON_CONFIG"; then
10078   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
10079 $as_echo "$PYTHON_CONFIG" >&6; }
10080 else
10081   { $as_echo "$as_me:$LINENO: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084
10085
10086   test -n "$PYTHON_CONFIG" && break
10087 done
10088 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10089
10090
10091     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10092         # Clean out junk: http://bugs.python.org/issue3290
10093         # Python headers may need some -f* flags, leave them in.
10094         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10095          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10096          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10097          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10098          # 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.
10099          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10100         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10101     fi
10102
10103     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10104         #dnl
10105         # alternatively, for python >= 2.0
10106         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10107         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10108         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10109         #dnl
10110     fi
10111
10112     if test -z "$PYTHON_HEADER"; then
10113         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10114
10115 for ac_header in Python.h
10116 do
10117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10119   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 $as_echo_n "checking for $ac_header... " >&6; }
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122   $as_echo_n "(cached) " >&6
10123 fi
10124 ac_res=`eval 'as_val=${'$as_ac_Header'}
10125                  $as_echo "$as_val"'`
10126                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10127 $as_echo "$ac_res" >&6; }
10128 else
10129   # Is the header compilable?
10130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10131 $as_echo_n "checking $ac_header usability... " >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h.  */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h.  */
10138 $ac_includes_default
10139 #include <$ac_header>
10140 _ACEOF
10141 rm -f conftest.$ac_objext
10142 if { (ac_try="$ac_compile"
10143 case "(($ac_try" in
10144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145   *) ac_try_echo=$ac_try;;
10146 esac
10147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10148 $as_echo "$ac_try_echo") >&5
10149   (eval "$ac_compile") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } && {
10156          test -z "$ac_cxx_werror_flag" ||
10157          test ! -s conftest.err
10158        } && test -s conftest.$ac_objext; then
10159   ac_header_compiler=yes
10160 else
10161   $as_echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164         ac_header_compiler=no
10165 fi
10166
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10169 $as_echo "$ac_header_compiler" >&6; }
10170
10171 # Is the header present?
10172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10173 $as_echo_n "checking $ac_header presence... " >&6; }
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h.  */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h.  */
10180 #include <$ac_header>
10181 _ACEOF
10182 if { (ac_try="$ac_cpp conftest.$ac_ext"
10183 case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188 $as_echo "$ac_try_echo") >&5
10189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10190   ac_status=$?
10191   grep -v '^ *+' conftest.er1 >conftest.err
10192   rm -f conftest.er1
10193   cat conftest.err >&5
10194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } >/dev/null && {
10196          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10197          test ! -s conftest.err
10198        }; then
10199   ac_header_preproc=yes
10200 else
10201   $as_echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10203
10204   ac_header_preproc=no
10205 fi
10206
10207 rm -f conftest.err conftest.$ac_ext
10208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10209 $as_echo "$ac_header_preproc" >&6; }
10210
10211 # So?  What about this header?
10212 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10213   yes:no: )
10214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10218     ac_header_preproc=yes
10219     ;;
10220   no:yes:* )
10221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10224 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10228 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10233
10234     ;;
10235 esac
10236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10237 $as_echo_n "checking for $ac_header... " >&6; }
10238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10239   $as_echo_n "(cached) " >&6
10240 else
10241   eval "$as_ac_Header=\$ac_header_preproc"
10242 fi
10243 ac_res=`eval 'as_val=${'$as_ac_Header'}
10244                  $as_echo "$as_val"'`
10245                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10246 $as_echo "$ac_res" >&6; }
10247
10248 fi
10249 as_val=`eval 'as_val=${'$as_ac_Header'}
10250                  $as_echo "$as_val"'`
10251    if test "x$as_val" = x""yes; then
10252   cat >>confdefs.h <<_ACEOF
10253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10254 _ACEOF
10255  PYTHON_HEADER=yes
10256 fi
10257
10258 done
10259
10260     fi
10261
10262     if test -z "$PYTHON_HEADER"; then
10263         warn="Python.h (python-devel, python-dev or libpython-dev package)"
10264
10265     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10266
10267     fi
10268
10269
10270
10271
10272
10273     for ac_prog in fontforge
10274 do
10275   # Extract the first word of "$ac_prog", so it can be a program name with args.
10276 set dummy $ac_prog; ac_word=$2
10277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10280   $as_echo_n "(cached) " >&6
10281 else
10282   if test -n "$FONTFORGE"; then
10283   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10284 else
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10287 do
10288   IFS=$as_save_IFS
10289   test -z "$as_dir" && as_dir=.
10290   for ac_exec_ext in '' $ac_executable_extensions; do
10291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292     ac_cv_prog_FONTFORGE="$ac_prog"
10293     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294     break 2
10295   fi
10296 done
10297 done
10298 IFS=$as_save_IFS
10299
10300 fi
10301 fi
10302 FONTFORGE=$ac_cv_prog_FONTFORGE
10303 if test -n "$FONTFORGE"; then
10304   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10305 $as_echo "$FONTFORGE" >&6; }
10306 else
10307   { $as_echo "$as_me:$LINENO: result: no" >&5
10308 $as_echo "no" >&6; }
10309 fi
10310
10311
10312   test -n "$FONTFORGE" && break
10313 done
10314 test -n "$FONTFORGE" || FONTFORGE="no"
10315
10316
10317
10318     r="`eval echo '$'"FONTFORGE"`"
10319     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10320         true
10321     else
10322         ##STEPMAKE_WARN(cannot find . )
10323         false
10324     fi
10325
10326     if test $? -ne 0; then
10327
10328     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10329
10330         if test "REQUIRED" = "REQUIRED"; then
10331             command="echo ERROR: fontforge not found"
10332             # abort configure process here?
10333         else
10334             command="- echo fontforge not found"
10335         fi
10336         eval "FONTFORGE"='$command'
10337         false
10338     else
10339         true
10340     fi
10341
10342     if test $? -eq 0; then
10343         for ac_prog in fontforge
10344 do
10345   # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10350   $as_echo_n "(cached) " >&6
10351 else
10352   case $FONTFORGE in
10353   [\\/]* | ?:[\\/]*)
10354   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10355   ;;
10356   *)
10357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360   IFS=$as_save_IFS
10361   test -z "$as_dir" && as_dir=.
10362   for ac_exec_ext in '' $ac_executable_extensions; do
10363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10364     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366     break 2
10367   fi
10368 done
10369 done
10370 IFS=$as_save_IFS
10371
10372   ;;
10373 esac
10374 fi
10375 FONTFORGE=$ac_cv_path_FONTFORGE
10376 if test -n "$FONTFORGE"; then
10377   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10378 $as_echo "$FONTFORGE" >&6; }
10379 else
10380   { $as_echo "$as_me:$LINENO: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383
10384
10385   test -n "$FONTFORGE" && break
10386 done
10387
10388         if test -n "20110222"; then
10389
10390     r="`eval echo '$'"FONTFORGE"`"
10391     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10392 $as_echo_n "checking $r version... " >&6; }
10393     exe=`
10394     ## which doesn't work in ash, if /usr/bin/which isn't installed
10395     ## type -p doesn't work in ash
10396     ## command -v doesn't work in zsh
10397     ## command -v "$r" 2>&1
10398     ## this test should work in ash, bash, pdksh (ksh), zsh
10399     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10400 `
10401     if test -n ""; then
10402         ver=""
10403     else
10404         ver=`
10405     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10406     ##
10407     ## ARG.
10408     ## Workaround for broken Debian gcc version string:
10409     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10410     ##
10411     ## -V: Workaround for python
10412
10413     #dnl
10414
10415     ## Assume and hunt for dotted version multiplet.
10416     ## use eval trickery, because we cannot use multi-level $() instead of ``
10417     ## for compatibility reasons.
10418
10419     ## grab the first version number in  --version output.
10420     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10421                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10422                 head -n 1 |
10423                 tr ' ' '\n' |
10424                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10425                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10426                 head -n 1\`\"
10427
10428     if test -z "$_ver"; then
10429         ## If empty, try date [fontforge]
10430         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10431             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10432             | head -n 1 \
10433             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10434     fi
10435     echo "$_ver"
10436     #dnl
10437 `
10438     fi
10439     num=`
10440     echo "$ver" | awk -F. '
10441     {
10442       if ($3) {three = $3}
10443       else {three = 0}
10444     }
10445     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10446 `
10447     req=`
10448     echo "20110222" | awk -F. '
10449     {
10450       if ($3) {three = $3}
10451       else {three = 0}
10452     }
10453     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10454 `
10455     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10456 $as_echo "$ver" >&6; }
10457     if test "$num" -lt "$req"; then
10458
10459     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10460
10461     fi
10462     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10463     eval `echo $vervar=$num`
10464 ##    AC_SUBST(`eval echo $vervar`)
10465
10466         fi
10467     fi
10468
10469
10470
10471     for ac_prog in t1asm
10472 do
10473   # Extract the first word of "$ac_prog", so it can be a program name with args.
10474 set dummy $ac_prog; ac_word=$2
10475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if test "${ac_cv_prog_T1ASM+set}" = set; then
10478   $as_echo_n "(cached) " >&6
10479 else
10480   if test -n "$T1ASM"; then
10481   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10485 do
10486   IFS=$as_save_IFS
10487   test -z "$as_dir" && as_dir=.
10488   for ac_exec_ext in '' $ac_executable_extensions; do
10489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10490     ac_cv_prog_T1ASM="$ac_prog"
10491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492     break 2
10493   fi
10494 done
10495 done
10496 IFS=$as_save_IFS
10497
10498 fi
10499 fi
10500 T1ASM=$ac_cv_prog_T1ASM
10501 if test -n "$T1ASM"; then
10502   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10503 $as_echo "$T1ASM" >&6; }
10504 else
10505   { $as_echo "$as_me:$LINENO: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508
10509
10510   test -n "$T1ASM" && break
10511 done
10512 test -n "$T1ASM" || T1ASM="no"
10513
10514
10515
10516     r="`eval echo '$'"T1ASM"`"
10517     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10518         true
10519     else
10520         ##STEPMAKE_WARN(cannot find . )
10521         false
10522     fi
10523
10524     if test $? -ne 0; then
10525
10526     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10527
10528         if test "REQUIRED" = "REQUIRED"; then
10529             command="echo ERROR: t1asm not found"
10530             # abort configure process here?
10531         else
10532             command="- echo t1asm not found"
10533         fi
10534         eval "T1ASM"='$command'
10535         false
10536     else
10537         true
10538     fi
10539
10540     if test $? -eq 0; then
10541         for ac_prog in t1asm
10542 do
10543   # Extract the first word of "$ac_prog", so it can be a program name with args.
10544 set dummy $ac_prog; ac_word=$2
10545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10546 $as_echo_n "checking for $ac_word... " >&6; }
10547 if test "${ac_cv_path_T1ASM+set}" = set; then
10548   $as_echo_n "(cached) " >&6
10549 else
10550   case $T1ASM in
10551   [\\/]* | ?:[\\/]*)
10552   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10553   ;;
10554   *)
10555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558   IFS=$as_save_IFS
10559   test -z "$as_dir" && as_dir=.
10560   for ac_exec_ext in '' $ac_executable_extensions; do
10561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10562     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10563     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10564     break 2
10565   fi
10566 done
10567 done
10568 IFS=$as_save_IFS
10569
10570   ;;
10571 esac
10572 fi
10573 T1ASM=$ac_cv_path_T1ASM
10574 if test -n "$T1ASM"; then
10575   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10576 $as_echo "$T1ASM" >&6; }
10577 else
10578   { $as_echo "$as_me:$LINENO: result: no" >&5
10579 $as_echo "no" >&6; }
10580 fi
10581
10582
10583   test -n "$T1ASM" && break
10584 done
10585
10586         if test -n ""; then
10587
10588     r="`eval echo '$'"T1ASM"`"
10589     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10590 $as_echo_n "checking $r version... " >&6; }
10591     exe=`
10592     ## which doesn't work in ash, if /usr/bin/which isn't installed
10593     ## type -p doesn't work in ash
10594     ## command -v doesn't work in zsh
10595     ## command -v "$r" 2>&1
10596     ## this test should work in ash, bash, pdksh (ksh), zsh
10597     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10598 `
10599     if test -n ""; then
10600         ver=""
10601     else
10602         ver=`
10603     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10604     ##
10605     ## ARG.
10606     ## Workaround for broken Debian gcc version string:
10607     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10608     ##
10609     ## -V: Workaround for python
10610
10611     #dnl
10612
10613     ## Assume and hunt for dotted version multiplet.
10614     ## use eval trickery, because we cannot use multi-level $() instead of ``
10615     ## for compatibility reasons.
10616
10617     ## grab the first version number in  --version output.
10618     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10619                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10620                 head -n 1 |
10621                 tr ' ' '\n' |
10622                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10623                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10624                 head -n 1\`\"
10625
10626     if test -z "$_ver"; then
10627         ## If empty, try date [fontforge]
10628         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10629             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10630             | head -n 1 \
10631             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10632     fi
10633     echo "$_ver"
10634     #dnl
10635 `
10636     fi
10637     num=`
10638     echo "$ver" | awk -F. '
10639     {
10640       if ($3) {three = $3}
10641       else {three = 0}
10642     }
10643     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10644 `
10645     req=`
10646     echo "" | awk -F. '
10647     {
10648       if ($3) {three = $3}
10649       else {three = 0}
10650     }
10651     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10652 `
10653     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10654 $as_echo "$ver" >&6; }
10655     if test "$num" -lt "$req"; then
10656
10657     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10658
10659     fi
10660     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10661     eval `echo $vervar=$num`
10662 ##    AC_SUBST(`eval echo $vervar`)
10663
10664         fi
10665     fi
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10676 do
10677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10679   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 $as_echo_n "checking for $ac_header... " >&6; }
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682   $as_echo_n "(cached) " >&6
10683 fi
10684 ac_res=`eval 'as_val=${'$as_ac_Header'}
10685                  $as_echo "$as_val"'`
10686                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10687 $as_echo "$ac_res" >&6; }
10688 else
10689   # Is the header compilable?
10690 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10691 $as_echo_n "checking $ac_header usability... " >&6; }
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 $ac_includes_default
10699 #include <$ac_header>
10700 _ACEOF
10701 rm -f conftest.$ac_objext
10702 if { (ac_try="$ac_compile"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709   (eval "$ac_compile") 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } && {
10716          test -z "$ac_cxx_werror_flag" ||
10717          test ! -s conftest.err
10718        } && test -s conftest.$ac_objext; then
10719   ac_header_compiler=yes
10720 else
10721   $as_echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724         ac_header_compiler=no
10725 fi
10726
10727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 $as_echo "$ac_header_compiler" >&6; }
10730
10731 # Is the header present?
10732 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733 $as_echo_n "checking $ac_header presence... " >&6; }
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <$ac_header>
10741 _ACEOF
10742 if { (ac_try="$ac_cpp conftest.$ac_ext"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10748 $as_echo "$ac_try_echo") >&5
10749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10750   ac_status=$?
10751   grep -v '^ *+' conftest.er1 >conftest.err
10752   rm -f conftest.er1
10753   cat conftest.err >&5
10754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } >/dev/null && {
10756          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10757          test ! -s conftest.err
10758        }; then
10759   ac_header_preproc=yes
10760 else
10761   $as_echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764   ac_header_preproc=no
10765 fi
10766
10767 rm -f conftest.err conftest.$ac_ext
10768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 $as_echo "$ac_header_preproc" >&6; }
10770
10771 # So?  What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10773   yes:no: )
10774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10775 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10778     ac_header_preproc=yes
10779     ;;
10780   no:yes:* )
10781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10782 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10784 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10786 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10788 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10792 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10793
10794     ;;
10795 esac
10796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 $as_echo_n "checking for $ac_header... " >&6; }
10798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10799   $as_echo_n "(cached) " >&6
10800 else
10801   eval "$as_ac_Header=\$ac_header_preproc"
10802 fi
10803 ac_res=`eval 'as_val=${'$as_ac_Header'}
10804                  $as_echo "$as_val"'`
10805                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10806 $as_echo "$ac_res" >&6; }
10807
10808 fi
10809 as_val=`eval 'as_val=${'$as_ac_Header'}
10810                  $as_echo "$as_val"'`
10811    if test "x$as_val" = x""yes; then
10812   cat >>confdefs.h <<_ACEOF
10813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817
10818 done
10819
10820
10821 for ac_header in sstream
10822 do
10823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10825   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10826 $as_echo_n "checking for $ac_header... " >&6; }
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828   $as_echo_n "(cached) " >&6
10829 fi
10830 ac_res=`eval 'as_val=${'$as_ac_Header'}
10831                  $as_echo "$as_val"'`
10832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10833 $as_echo "$ac_res" >&6; }
10834 else
10835   # Is the header compilable?
10836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837 $as_echo_n "checking $ac_header usability... " >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844 $ac_includes_default
10845 #include <$ac_header>
10846 _ACEOF
10847 rm -f conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855   (eval "$ac_compile") 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } && {
10862          test -z "$ac_cxx_werror_flag" ||
10863          test ! -s conftest.err
10864        } && test -s conftest.$ac_objext; then
10865   ac_header_compiler=yes
10866 else
10867   $as_echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870         ac_header_compiler=no
10871 fi
10872
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10875 $as_echo "$ac_header_compiler" >&6; }
10876
10877 # Is the header present?
10878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10879 $as_echo_n "checking $ac_header presence... " >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h.  */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h.  */
10886 #include <$ac_header>
10887 _ACEOF
10888 if { (ac_try="$ac_cpp conftest.$ac_ext"
10889 case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10894 $as_echo "$ac_try_echo") >&5
10895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } >/dev/null && {
10902          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10903          test ! -s conftest.err
10904        }; then
10905   ac_header_preproc=yes
10906 else
10907   $as_echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910   ac_header_preproc=no
10911 fi
10912
10913 rm -f conftest.err conftest.$ac_ext
10914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915 $as_echo "$ac_header_preproc" >&6; }
10916
10917 # So?  What about this header?
10918 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10919   yes:no: )
10920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10924     ac_header_preproc=yes
10925     ;;
10926   no:yes:* )
10927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10930 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10934 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10939
10940     ;;
10941 esac
10942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10943 $as_echo_n "checking for $ac_header... " >&6; }
10944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945   $as_echo_n "(cached) " >&6
10946 else
10947   eval "$as_ac_Header=\$ac_header_preproc"
10948 fi
10949 ac_res=`eval 'as_val=${'$as_ac_Header'}
10950                  $as_echo "$as_val"'`
10951                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10952 $as_echo "$ac_res" >&6; }
10953
10954 fi
10955 as_val=`eval 'as_val=${'$as_ac_Header'}
10956                  $as_echo "$as_val"'`
10957    if test "x$as_val" = x""yes; then
10958   cat >>confdefs.h <<_ACEOF
10959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10960 _ACEOF
10961
10962 fi
10963
10964 done
10965
10966 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10967 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10968 if test "${ac_cv_header_stat_broken+set}" = set; then
10969   $as_echo_n "(cached) " >&6
10970 else
10971   cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h.  */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h.  */
10977 #include <sys/types.h>
10978 #include <sys/stat.h>
10979
10980 #if defined S_ISBLK && defined S_IFDIR
10981 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10982 #endif
10983
10984 #if defined S_ISBLK && defined S_IFCHR
10985 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10986 #endif
10987
10988 #if defined S_ISLNK && defined S_IFREG
10989 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10990 #endif
10991
10992 #if defined S_ISSOCK && defined S_IFREG
10993 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10994 #endif
10995
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11004 $as_echo "$ac_try_echo") >&5
11005   (eval "$ac_compile") 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } && {
11012          test -z "$ac_cxx_werror_flag" ||
11013          test ! -s conftest.err
11014        } && test -s conftest.$ac_objext; then
11015   ac_cv_header_stat_broken=no
11016 else
11017   $as_echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020         ac_cv_header_stat_broken=yes
11021 fi
11022
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 fi
11025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11026 $as_echo "$ac_cv_header_stat_broken" >&6; }
11027 if test $ac_cv_header_stat_broken = yes; then
11028
11029 cat >>confdefs.h <<\_ACEOF
11030 #define STAT_MACROS_BROKEN 1
11031 _ACEOF
11032
11033 fi
11034
11035 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11036 $as_echo_n "checking for working memcmp... " >&6; }
11037 if test "${ac_cv_func_memcmp_working+set}" = set; then
11038   $as_echo_n "(cached) " >&6
11039 else
11040   if test "$cross_compiling" = yes; then
11041   ac_cv_func_memcmp_working=no
11042 else
11043   cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049 $ac_includes_default
11050 int
11051 main ()
11052 {
11053
11054   /* Some versions of memcmp are not 8-bit clean.  */
11055   char c0 = '\100', c1 = '\200', c2 = '\201';
11056   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11057     return 1;
11058
11059   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11060      or more and with at least one buffer not starting on a 4-byte boundary.
11061      William Lewis provided this test program.   */
11062   {
11063     char foo[21];
11064     char bar[21];
11065     int i;
11066     for (i = 0; i < 4; i++)
11067       {
11068         char *a = foo + i;
11069         char *b = bar + i;
11070         strcpy (a, "--------01111111");
11071         strcpy (b, "--------10000000");
11072         if (memcmp (a, b, 16) >= 0)
11073           return 1;
11074       }
11075     return 0;
11076   }
11077
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086   *) ac_try_echo=$ac_try;;
11087 esac
11088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089 $as_echo "$ac_try_echo") >&5
11090   (eval "$ac_link") 2>&5
11091   ac_status=$?
11092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11094   { (case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11099 $as_echo "$ac_try_echo") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }; then
11104   ac_cv_func_memcmp_working=yes
11105 else
11106   $as_echo "$as_me: program exited with status $ac_status" >&5
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ( exit $ac_status )
11111 ac_cv_func_memcmp_working=no
11112 fi
11113 rm -rf conftest.dSYM
11114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11115 fi
11116
11117
11118 fi
11119 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11120 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11121 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11122   *" memcmp.$ac_objext "* ) ;;
11123   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11124  ;;
11125 esac
11126
11127
11128
11129 for ac_func in vprintf
11130 do
11131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11133 $as_echo_n "checking for $ac_func... " >&6; }
11134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11135   $as_echo_n "(cached) " >&6
11136 else
11137   cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h.  */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h.  */
11143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11145 #define $ac_func innocuous_$ac_func
11146
11147 /* System header to define __stub macros and hopefully few prototypes,
11148     which can conflict with char $ac_func (); below.
11149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150     <limits.h> exists even on freestanding compilers.  */
11151
11152 #ifdef __STDC__
11153 # include <limits.h>
11154 #else
11155 # include <assert.h>
11156 #endif
11157
11158 #undef $ac_func
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161    Use char because int might match the return type of a GCC
11162    builtin and then its argument prototype would still apply.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char $ac_func ();
11167 /* The GNU C library defines this for functions which it implements
11168     to always fail with ENOSYS.  Some functions are actually named
11169     something starting with __ and the normal name is an alias.  */
11170 #if defined __stub_$ac_func || defined __stub___$ac_func
11171 choke me
11172 #endif
11173
11174 int
11175 main ()
11176 {
11177 return $ac_func ();
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (ac_try="$ac_link"
11184 case "(($ac_try" in
11185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186   *) ac_try_echo=$ac_try;;
11187 esac
11188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11189 $as_echo "$ac_try_echo") >&5
11190   (eval "$ac_link") 2>conftest.er1
11191   ac_status=$?
11192   grep -v '^ *+' conftest.er1 >conftest.err
11193   rm -f conftest.er1
11194   cat conftest.err >&5
11195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); } && {
11197          test -z "$ac_cxx_werror_flag" ||
11198          test ! -s conftest.err
11199        } && test -s conftest$ac_exeext && {
11200          test "$cross_compiling" = yes ||
11201          $as_test_x conftest$ac_exeext
11202        }; then
11203   eval "$as_ac_var=yes"
11204 else
11205   $as_echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208         eval "$as_ac_var=no"
11209 fi
11210
11211 rm -rf conftest.dSYM
11212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11213       conftest$ac_exeext conftest.$ac_ext
11214 fi
11215 ac_res=`eval 'as_val=${'$as_ac_var'}
11216                  $as_echo "$as_val"'`
11217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11218 $as_echo "$ac_res" >&6; }
11219 as_val=`eval 'as_val=${'$as_ac_var'}
11220                  $as_echo "$as_val"'`
11221    if test "x$as_val" = x""yes; then
11222   cat >>confdefs.h <<_ACEOF
11223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 _ACEOF
11225
11226 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11227 $as_echo_n "checking for _doprnt... " >&6; }
11228 if test "${ac_cv_func__doprnt+set}" = set; then
11229   $as_echo_n "(cached) " >&6
11230 else
11231   cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11239 #define _doprnt innocuous__doprnt
11240
11241 /* System header to define __stub macros and hopefully few prototypes,
11242     which can conflict with char _doprnt (); below.
11243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244     <limits.h> exists even on freestanding compilers.  */
11245
11246 #ifdef __STDC__
11247 # include <limits.h>
11248 #else
11249 # include <assert.h>
11250 #endif
11251
11252 #undef _doprnt
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255    Use char because int might match the return type of a GCC
11256    builtin and then its argument prototype would still apply.  */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char _doprnt ();
11261 /* The GNU C library defines this for functions which it implements
11262     to always fail with ENOSYS.  Some functions are actually named
11263     something starting with __ and the normal name is an alias.  */
11264 #if defined __stub__doprnt || defined __stub____doprnt
11265 choke me
11266 #endif
11267
11268 int
11269 main ()
11270 {
11271 return _doprnt ();
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11283 $as_echo "$ac_try_echo") >&5
11284   (eval "$ac_link") 2>conftest.er1
11285   ac_status=$?
11286   grep -v '^ *+' conftest.er1 >conftest.err
11287   rm -f conftest.er1
11288   cat conftest.err >&5
11289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } && {
11291          test -z "$ac_cxx_werror_flag" ||
11292          test ! -s conftest.err
11293        } && test -s conftest$ac_exeext && {
11294          test "$cross_compiling" = yes ||
11295          $as_test_x conftest$ac_exeext
11296        }; then
11297   ac_cv_func__doprnt=yes
11298 else
11299   $as_echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302         ac_cv_func__doprnt=no
11303 fi
11304
11305 rm -rf conftest.dSYM
11306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11307       conftest$ac_exeext conftest.$ac_ext
11308 fi
11309 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11310 $as_echo "$ac_cv_func__doprnt" >&6; }
11311 if test "x$ac_cv_func__doprnt" = x""yes; then
11312
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_DOPRNT 1
11315 _ACEOF
11316
11317 fi
11318
11319 fi
11320 done
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11331 do
11332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11334 $as_echo_n "checking for $ac_func... " >&6; }
11335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11336   $as_echo_n "(cached) " >&6
11337 else
11338   cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11346 #define $ac_func innocuous_$ac_func
11347
11348 /* System header to define __stub macros and hopefully few prototypes,
11349     which can conflict with char $ac_func (); below.
11350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11351     <limits.h> exists even on freestanding compilers.  */
11352
11353 #ifdef __STDC__
11354 # include <limits.h>
11355 #else
11356 # include <assert.h>
11357 #endif
11358
11359 #undef $ac_func
11360
11361 /* Override any GCC internal prototype to avoid an error.
11362    Use char because int might match the return type of a GCC
11363    builtin and then its argument prototype would still apply.  */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char $ac_func ();
11368 /* The GNU C library defines this for functions which it implements
11369     to always fail with ENOSYS.  Some functions are actually named
11370     something starting with __ and the normal name is an alias.  */
11371 #if defined __stub_$ac_func || defined __stub___$ac_func
11372 choke me
11373 #endif
11374
11375 int
11376 main ()
11377 {
11378 return $ac_func ();
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (ac_try="$ac_link"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11390 $as_echo "$ac_try_echo") >&5
11391   (eval "$ac_link") 2>conftest.er1
11392   ac_status=$?
11393   grep -v '^ *+' conftest.er1 >conftest.err
11394   rm -f conftest.er1
11395   cat conftest.err >&5
11396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } && {
11398          test -z "$ac_cxx_werror_flag" ||
11399          test ! -s conftest.err
11400        } && test -s conftest$ac_exeext && {
11401          test "$cross_compiling" = yes ||
11402          $as_test_x conftest$ac_exeext
11403        }; then
11404   eval "$as_ac_var=yes"
11405 else
11406   $as_echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409         eval "$as_ac_var=no"
11410 fi
11411
11412 rm -rf conftest.dSYM
11413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11414       conftest$ac_exeext conftest.$ac_ext
11415 fi
11416 ac_res=`eval 'as_val=${'$as_ac_var'}
11417                  $as_echo "$as_val"'`
11418                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11419 $as_echo "$ac_res" >&6; }
11420 as_val=`eval 'as_val=${'$as_ac_var'}
11421                  $as_echo "$as_val"'`
11422    if test "x$as_val" = x""yes; then
11423   cat >>confdefs.h <<_ACEOF
11424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11425 _ACEOF
11426
11427 fi
11428 done
11429
11430
11431
11432     for ac_prog in pkg-config
11433 do
11434   # Extract the first word of "$ac_prog", so it can be a program name with args.
11435 set dummy $ac_prog; ac_word=$2
11436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11439   $as_echo_n "(cached) " >&6
11440 else
11441   if test -n "$PKG_CONFIG"; then
11442   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447   IFS=$as_save_IFS
11448   test -z "$as_dir" && as_dir=.
11449   for ac_exec_ext in '' $ac_executable_extensions; do
11450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11451     ac_cv_prog_PKG_CONFIG="$ac_prog"
11452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11453     break 2
11454   fi
11455 done
11456 done
11457 IFS=$as_save_IFS
11458
11459 fi
11460 fi
11461 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11462 if test -n "$PKG_CONFIG"; then
11463   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11464 $as_echo "$PKG_CONFIG" >&6; }
11465 else
11466   { $as_echo "$as_me:$LINENO: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469
11470
11471   test -n "$PKG_CONFIG" && break
11472 done
11473 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11474
11475
11476
11477     r="`eval echo '$'"PKG_CONFIG"`"
11478     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11479         true
11480     else
11481         ##STEPMAKE_WARN(cannot find . )
11482         false
11483     fi
11484
11485     if test $? -ne 0; then
11486
11487     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11488
11489         if test "REQUIRED" = "REQUIRED"; then
11490             command="echo ERROR: pkg-config not found"
11491             # abort configure process here?
11492         else
11493             command="- echo pkg-config not found"
11494         fi
11495         eval "PKG_CONFIG"='$command'
11496         false
11497     else
11498         true
11499     fi
11500
11501     if test $? -eq 0 -a -n "0.9.0"; then
11502
11503     r="`eval echo '$'"PKG_CONFIG"`"
11504     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11505 $as_echo_n "checking $r version... " >&6; }
11506     exe=`
11507     ## which doesn't work in ash, if /usr/bin/which isn't installed
11508     ## type -p doesn't work in ash
11509     ## command -v doesn't work in zsh
11510     ## command -v "$r" 2>&1
11511     ## this test should work in ash, bash, pdksh (ksh), zsh
11512     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11513 `
11514     if test -n ""; then
11515         ver=""
11516     else
11517         ver=`
11518     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11519     ##
11520     ## ARG.
11521     ## Workaround for broken Debian gcc version string:
11522     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11523     ##
11524     ## -V: Workaround for python
11525
11526     #dnl
11527
11528     ## Assume and hunt for dotted version multiplet.
11529     ## use eval trickery, because we cannot use multi-level $() instead of ``
11530     ## for compatibility reasons.
11531
11532     ## grab the first version number in  --version output.
11533     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11534                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11535                 head -n 1 |
11536                 tr ' ' '\n' |
11537                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11538                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11539                 head -n 1\`\"
11540
11541     if test -z "$_ver"; then
11542         ## If empty, try date [fontforge]
11543         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11544             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11545             | head -n 1 \
11546             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11547     fi
11548     echo "$_ver"
11549     #dnl
11550 `
11551     fi
11552     num=`
11553     echo "$ver" | awk -F. '
11554     {
11555       if ($3) {three = $3}
11556       else {three = 0}
11557     }
11558     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11559 `
11560     req=`
11561     echo "0.9.0" | awk -F. '
11562     {
11563       if ($3) {three = $3}
11564       else {three = 0}
11565     }
11566     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11567 `
11568     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11569 $as_echo "$ver" >&6; }
11570     if test "$num" -lt "$req"; then
11571
11572     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11573
11574     fi
11575     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11576     eval `echo $vervar=$num`
11577 ##    AC_SUBST(`eval echo $vervar`)
11578
11579     fi
11580
11581
11582 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11583 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11584 if test "$reloc_b" = "yes"; then
11585     cat >>confdefs.h <<\_ACEOF
11586 #define ARGV0_RELOCATION 1
11587 _ACEOF
11588
11589 fi
11590 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11591 $as_echo "$reloc_b" >&6; }
11592
11593 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11594 $as_echo_n "checking for rpath linkage... " >&6; }
11595 if test "$rpath_b" = "yes"; then
11596     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11597 elif test "$rpath_b" != "no"; then
11598     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11599 fi
11600 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11601 $as_echo "$rpath_b" >&6; }
11602
11603 HOST_ARCH=`$CC -dumpmachine`
11604
11605
11606
11607
11608   succeeded=no
11609
11610   if test -z "$PKG_CONFIG"; then
11611     # Extract the first word of "pkg-config", so it can be a program name with args.
11612 set dummy pkg-config; ac_word=$2
11613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11616   $as_echo_n "(cached) " >&6
11617 else
11618   case $PKG_CONFIG in
11619   [\\/]* | ?:[\\/]*)
11620   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11621   ;;
11622   *)
11623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11625 do
11626   IFS=$as_save_IFS
11627   test -z "$as_dir" && as_dir=.
11628   for ac_exec_ext in '' $ac_executable_extensions; do
11629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11631     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632     break 2
11633   fi
11634 done
11635 done
11636 IFS=$as_save_IFS
11637
11638   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11639   ;;
11640 esac
11641 fi
11642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11643 if test -n "$PKG_CONFIG"; then
11644   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11645 $as_echo "$PKG_CONFIG" >&6; }
11646 else
11647   { $as_echo "$as_me:$LINENO: result: no" >&5
11648 $as_echo "no" >&6; }
11649 fi
11650
11651
11652   fi
11653
11654   if test "$PKG_CONFIG" = "no" ; then
11655      echo "*** The pkg-config script could not be found. Make sure it is"
11656      echo "*** in your path, or set the PKG_CONFIG environment variable"
11657      echo "*** to the full path to pkg-config."
11658      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11659   else
11660      PKG_CONFIG_MIN_VERSION=0.9.0
11661      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11662         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11663 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11664
11665         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11666             { $as_echo "$as_me:$LINENO: result: yes" >&5
11667 $as_echo "yes" >&6; }
11668             succeeded=yes
11669
11670             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11671 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11672             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11673             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11674 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11675
11676             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11677 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11678             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11679             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11680 $as_echo "$PANGO_FT2_LIBS" >&6; }
11681         else
11682             PANGO_FT2_CFLAGS=""
11683             PANGO_FT2_LIBS=""
11684             ## If we have a custom action on failure, don't print errors, but
11685             ## do set a variable so people can do so.
11686             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11687
11688         fi
11689
11690
11691
11692      fi
11693   fi
11694
11695   if test $succeeded = yes; then
11696      have_pangoft2=yes
11697   else
11698      true
11699   fi
11700
11701     if test "$have_pangoft2" = yes ; then
11702         cat >>confdefs.h <<\_ACEOF
11703 #define HAVE_PANGO16 1
11704 _ACEOF
11705
11706         cat >>confdefs.h <<\_ACEOF
11707 #define HAVE_PANGO_FT2 1
11708 _ACEOF
11709
11710         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11711         save_CPPFLAGS="$CPPFLAGS"
11712         save_LIBS="$LIBS"
11713         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11714         LIBS="$PANGO_FT2_LIBS $LIBS"
11715
11716 for ac_header in pango/pangoft2.h
11717 do
11718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 $as_echo_n "checking for $ac_header... " >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723   $as_echo_n "(cached) " >&6
11724 fi
11725 ac_res=`eval 'as_val=${'$as_ac_Header'}
11726                  $as_echo "$as_val"'`
11727                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11728 $as_echo "$ac_res" >&6; }
11729 else
11730   # Is the header compilable?
11731 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11732 $as_echo_n "checking $ac_header usability... " >&6; }
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739 $ac_includes_default
11740 #include <$ac_header>
11741 _ACEOF
11742 rm -f conftest.$ac_objext
11743 if { (ac_try="$ac_compile"
11744 case "(($ac_try" in
11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746   *) ac_try_echo=$ac_try;;
11747 esac
11748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11749 $as_echo "$ac_try_echo") >&5
11750   (eval "$ac_compile") 2>conftest.er1
11751   ac_status=$?
11752   grep -v '^ *+' conftest.er1 >conftest.err
11753   rm -f conftest.er1
11754   cat conftest.err >&5
11755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); } && {
11757          test -z "$ac_cxx_werror_flag" ||
11758          test ! -s conftest.err
11759        } && test -s conftest.$ac_objext; then
11760   ac_header_compiler=yes
11761 else
11762   $as_echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765         ac_header_compiler=no
11766 fi
11767
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11770 $as_echo "$ac_header_compiler" >&6; }
11771
11772 # Is the header present?
11773 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11774 $as_echo_n "checking $ac_header presence... " >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h.  */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h.  */
11781 #include <$ac_header>
11782 _ACEOF
11783 if { (ac_try="$ac_cpp conftest.$ac_ext"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11789 $as_echo "$ac_try_echo") >&5
11790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } >/dev/null && {
11797          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11798          test ! -s conftest.err
11799        }; then
11800   ac_header_preproc=yes
11801 else
11802   $as_echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805   ac_header_preproc=no
11806 fi
11807
11808 rm -f conftest.err conftest.$ac_ext
11809 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810 $as_echo "$ac_header_preproc" >&6; }
11811
11812 # So?  What about this header?
11813 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11814   yes:no: )
11815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819     ac_header_preproc=yes
11820     ;;
11821   no:yes:* )
11822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11825 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11829 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11834
11835     ;;
11836 esac
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840   $as_echo_n "(cached) " >&6
11841 else
11842   eval "$as_ac_Header=\$ac_header_preproc"
11843 fi
11844 ac_res=`eval 'as_val=${'$as_ac_Header'}
11845                  $as_echo "$as_val"'`
11846                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11847 $as_echo "$ac_res" >&6; }
11848
11849 fi
11850 as_val=`eval 'as_val=${'$as_ac_Header'}
11851                  $as_echo "$as_val"'`
11852    if test "x$as_val" = x""yes; then
11853   cat >>confdefs.h <<_ACEOF
11854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11855 _ACEOF
11856
11857 fi
11858
11859 done
11860
11861
11862 for ac_func in pango_ft2_font_map_create_context
11863 do
11864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11866 $as_echo_n "checking for $ac_func... " >&6; }
11867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868   $as_echo_n "(cached) " >&6
11869 else
11870   cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11878 #define $ac_func innocuous_$ac_func
11879
11880 /* System header to define __stub macros and hopefully few prototypes,
11881     which can conflict with char $ac_func (); below.
11882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883     <limits.h> exists even on freestanding compilers.  */
11884
11885 #ifdef __STDC__
11886 # include <limits.h>
11887 #else
11888 # include <assert.h>
11889 #endif
11890
11891 #undef $ac_func
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894    Use char because int might match the return type of a GCC
11895    builtin and then its argument prototype would still apply.  */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char $ac_func ();
11900 /* The GNU C library defines this for functions which it implements
11901     to always fail with ENOSYS.  Some functions are actually named
11902     something starting with __ and the normal name is an alias.  */
11903 #if defined __stub_$ac_func || defined __stub___$ac_func
11904 choke me
11905 #endif
11906
11907 int
11908 main ()
11909 {
11910 return $ac_func ();
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922 $as_echo "$ac_try_echo") >&5
11923   (eval "$ac_link") 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } && {
11930          test -z "$ac_cxx_werror_flag" ||
11931          test ! -s conftest.err
11932        } && test -s conftest$ac_exeext && {
11933          test "$cross_compiling" = yes ||
11934          $as_test_x conftest$ac_exeext
11935        }; then
11936   eval "$as_ac_var=yes"
11937 else
11938   $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941         eval "$as_ac_var=no"
11942 fi
11943
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946       conftest$ac_exeext conftest.$ac_ext
11947 fi
11948 ac_res=`eval 'as_val=${'$as_ac_var'}
11949                  $as_echo "$as_val"'`
11950                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11951 $as_echo "$ac_res" >&6; }
11952 as_val=`eval 'as_val=${'$as_ac_var'}
11953                  $as_echo "$as_val"'`
11954    if test "x$as_val" = x""yes; then
11955   cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 _ACEOF
11958
11959 fi
11960 done
11961
11962
11963
11964         CPPFLAGS="$save_CPPFLAGS"
11965         LIBS="$save_LIBS"
11966     else
11967         # UGR
11968         #r="libpangoft2-dev or pangoft2-devel"e
11969         r="libpango1.0-dev or pango?-devel"
11970         ver="`pkg-config --modversion pangoft2`"
11971
11972     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11973
11974     fi
11975
11976
11977
11978   succeeded=no
11979
11980   if test -z "$PKG_CONFIG"; then
11981     # Extract the first word of "pkg-config", so it can be a program name with args.
11982 set dummy pkg-config; ac_word=$2
11983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11986   $as_echo_n "(cached) " >&6
11987 else
11988   case $PKG_CONFIG in
11989   [\\/]* | ?:[\\/]*)
11990   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11991   ;;
11992   *)
11993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11995 do
11996   IFS=$as_save_IFS
11997   test -z "$as_dir" && as_dir=.
11998   for ac_exec_ext in '' $ac_executable_extensions; do
11999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12000     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12001     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12002     break 2
12003   fi
12004 done
12005 done
12006 IFS=$as_save_IFS
12007
12008   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12009   ;;
12010 esac
12011 fi
12012 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12013 if test -n "$PKG_CONFIG"; then
12014   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12015 $as_echo "$PKG_CONFIG" >&6; }
12016 else
12017   { $as_echo "$as_me:$LINENO: result: no" >&5
12018 $as_echo "no" >&6; }
12019 fi
12020
12021
12022   fi
12023
12024   if test "$PKG_CONFIG" = "no" ; then
12025      echo "*** The pkg-config script could not be found. Make sure it is"
12026      echo "*** in your path, or set the PKG_CONFIG environment variable"
12027      echo "*** to the full path to pkg-config."
12028      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12029   else
12030      PKG_CONFIG_MIN_VERSION=0.9.0
12031      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12032         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
12033 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
12034
12035         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
12036             { $as_echo "$as_me:$LINENO: result: yes" >&5
12037 $as_echo "yes" >&6; }
12038             succeeded=yes
12039
12040             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12041 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12042             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
12043             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12044 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12045
12046             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12047 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12048             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
12049             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12050 $as_echo "$FONTCONFIG_LIBS" >&6; }
12051         else
12052             FONTCONFIG_CFLAGS=""
12053             FONTCONFIG_LIBS=""
12054             ## If we have a custom action on failure, don't print errors, but
12055             ## do set a variable so people can do so.
12056             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
12057
12058         fi
12059
12060
12061
12062      fi
12063   fi
12064
12065   if test $succeeded = yes; then
12066      have_fontconfig=yes
12067   else
12068      true
12069   fi
12070
12071     if test "$have_fontconfig" = yes ; then
12072         cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_FONTCONFIG 1
12074 _ACEOF
12075
12076         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12077         save_CPPFLAGS="$CPPFLAGS"
12078         save_LIBS="$LIBS"
12079         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
12080         LIBS="$FONTCONFIG_LIBS $LIBS"
12081
12082
12083         CPPFLAGS="$save_CPPFLAGS"
12084         LIBS="$save_LIBS"
12085     else
12086         r="libfontconfig-dev or fontconfig-devel"
12087         ver="`pkg-config --modversion fontconfig`"
12088
12089     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12090
12091     fi
12092
12093
12094
12095   succeeded=no
12096
12097   if test -z "$PKG_CONFIG"; then
12098     # Extract the first word of "pkg-config", so it can be a program name with args.
12099 set dummy pkg-config; ac_word=$2
12100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12103   $as_echo_n "(cached) " >&6
12104 else
12105   case $PKG_CONFIG in
12106   [\\/]* | ?:[\\/]*)
12107   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12108   ;;
12109   *)
12110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113   IFS=$as_save_IFS
12114   test -z "$as_dir" && as_dir=.
12115   for ac_exec_ext in '' $ac_executable_extensions; do
12116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12119     break 2
12120   fi
12121 done
12122 done
12123 IFS=$as_save_IFS
12124
12125   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12126   ;;
12127 esac
12128 fi
12129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12130 if test -n "$PKG_CONFIG"; then
12131   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12132 $as_echo "$PKG_CONFIG" >&6; }
12133 else
12134   { $as_echo "$as_me:$LINENO: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137
12138
12139   fi
12140
12141   if test "$PKG_CONFIG" = "no" ; then
12142      echo "*** The pkg-config script could not be found. Make sure it is"
12143      echo "*** in your path, or set the PKG_CONFIG environment variable"
12144      echo "*** to the full path to pkg-config."
12145      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12146   else
12147      PKG_CONFIG_MIN_VERSION=0.9.0
12148      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12149         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12150 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12151
12152         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12153             { $as_echo "$as_me:$LINENO: result: yes" >&5
12154 $as_echo "yes" >&6; }
12155             succeeded=yes
12156
12157             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12158 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12159             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12160             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12161 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12162
12163             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12164 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12165             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12166             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12167 $as_echo "$FREETYPE2_LIBS" >&6; }
12168         else
12169             FREETYPE2_CFLAGS=""
12170             FREETYPE2_LIBS=""
12171             ## If we have a custom action on failure, don't print errors, but
12172             ## do set a variable so people can do so.
12173             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12174
12175         fi
12176
12177
12178
12179      fi
12180   fi
12181
12182   if test $succeeded = yes; then
12183      have_freetype2=yes
12184   else
12185      true
12186   fi
12187
12188     if test "$have_freetype2" = yes; then
12189         cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_FREETYPE2 1
12191 _ACEOF
12192
12193         save_CPPFLAGS="$CPPFLAGS"
12194         save_LIBS="$LIBS"
12195         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12196         LIBS="$FREETYPE2_LIBS $LIBS"
12197
12198
12199         CPPFLAGS="$save_CPPFLAGS"
12200         LIBS="$save_LIBS"
12201     else
12202         # UGR
12203         #r="libfreetype2-dev or freetype2-devel"
12204         r="libfreetype6-dev or freetype?-devel"
12205         ver="`pkg-config --modversion freetype2`"
12206
12207     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12208
12209     fi
12210
12211
12212
12213     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12214 $as_echo_n "checking host system type... " >&6; }
12215 if test "${ac_cv_host+set}" = set; then
12216   $as_echo_n "(cached) " >&6
12217 else
12218   if test "x$host_alias" = x; then
12219   ac_cv_host=$ac_cv_build
12220 else
12221   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12222     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12223 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12224    { (exit 1); exit 1; }; }
12225 fi
12226
12227 fi
12228 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12229 $as_echo "$ac_cv_host" >&6; }
12230 case $ac_cv_host in
12231 *-*-*) ;;
12232 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12233 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12234    { (exit 1); exit 1; }; };;
12235 esac
12236 host=$ac_cv_host
12237 ac_save_IFS=$IFS; IFS='-'
12238 set x $ac_cv_host
12239 shift
12240 host_cpu=$1
12241 host_vendor=$2
12242 shift; shift
12243 # Remember, the first character of IFS is used to create $*,
12244 # except with old shells:
12245 host_os=$*
12246 IFS=$ac_save_IFS
12247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12248
12249
12250 case $host_os in
12251   *cygwin* ) CYGWIN=yes;;
12252          * ) CYGWIN=no;;
12253 esac
12254
12255     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12256 $as_echo_n "checking host system type... " >&6; }
12257 if test "${ac_cv_host+set}" = set; then
12258   $as_echo_n "(cached) " >&6
12259 else
12260   if test "x$host_alias" = x; then
12261   ac_cv_host=$ac_cv_build
12262 else
12263   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12264     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12265 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12266    { (exit 1); exit 1; }; }
12267 fi
12268
12269 fi
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12271 $as_echo "$ac_cv_host" >&6; }
12272 case $ac_cv_host in
12273 *-*-*) ;;
12274 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12275 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12276    { (exit 1); exit 1; }; };;
12277 esac
12278 host=$ac_cv_host
12279 ac_save_IFS=$IFS; IFS='-'
12280 set x $ac_cv_host
12281 shift
12282 host_cpu=$1
12283 host_vendor=$2
12284 shift; shift
12285 # Remember, the first character of IFS is used to create $*,
12286 # except with old shells:
12287 host_os=$*
12288 IFS=$ac_save_IFS
12289 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12290
12291
12292 case $host_os in
12293   *mingw32* ) MINGW32=yes;;
12294           * ) MINGW32=no;;
12295 esac
12296
12297
12298     if test "$CYGWIN" = "yes"; then
12299         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12300         program_suffix=.exe
12301         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12302     elif test "$MINGW32" = "yes"; then
12303         LN='cp -r'
12304         LN_S='cp -r'
12305         program_suffix=.exe
12306         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12307         PATHSEP=';'
12308     fi
12309
12310
12311
12312     cat >>confdefs.h <<_ACEOF
12313 #define DIRSEP '${DIRSEP}'
12314 _ACEOF
12315
12316     cat >>confdefs.h <<_ACEOF
12317 #define PATHSEP '${PATHSEP}'
12318 _ACEOF
12319
12320
12321
12322
12323
12324     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12325 $as_echo_n "checking for some flavor of Windows... " >&6; }
12326     if test "$CYGWIN$MINGW32" = "nono"; then
12327         PLATFORM_WINDOWS=no
12328     else
12329         PLATFORM_WINDOWS=yes
12330     fi
12331     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12332 $as_echo "$PLATFORM_WINDOWS" >&6; }
12333
12334
12335     for ac_prog in $target-windres windres
12336 do
12337   # Extract the first word of "$ac_prog", so it can be a program name with args.
12338 set dummy $ac_prog; ac_word=$2
12339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_WINDRES+set}" = set; then
12342   $as_echo_n "(cached) " >&6
12343 else
12344   if test -n "$WINDRES"; then
12345   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350   IFS=$as_save_IFS
12351   test -z "$as_dir" && as_dir=.
12352   for ac_exec_ext in '' $ac_executable_extensions; do
12353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354     ac_cv_prog_WINDRES="$ac_prog"
12355     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12356     break 2
12357   fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 WINDRES=$ac_cv_prog_WINDRES
12365 if test -n "$WINDRES"; then
12366   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12367 $as_echo "$WINDRES" >&6; }
12368 else
12369   { $as_echo "$as_me:$LINENO: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374   test -n "$WINDRES" && break
12375 done
12376 test -n "$WINDRES" || WINDRES="no"
12377
12378
12379
12380     r="`eval echo '$'"WINDRES"`"
12381     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12382         true
12383     else
12384         ##STEPMAKE_WARN(cannot find . )
12385         false
12386     fi
12387
12388     if test $? -ne 0; then
12389
12390     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12391
12392         if test "x" = "REQUIRED"; then
12393             command="echo ERROR: $target-windres windres not found"
12394             # abort configure process here?
12395         else
12396             command="- echo $target-windres windres not found"
12397         fi
12398         eval "WINDRES"='$command'
12399         false
12400     else
12401         true
12402     fi
12403
12404     if test $? -eq 0 -a -n ""; then
12405
12406     r="`eval echo '$'"WINDRES"`"
12407     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12408 $as_echo_n "checking $r version... " >&6; }
12409     exe=`
12410     ## which doesn't work in ash, if /usr/bin/which isn't installed
12411     ## type -p doesn't work in ash
12412     ## command -v doesn't work in zsh
12413     ## command -v "$r" 2>&1
12414     ## this test should work in ash, bash, pdksh (ksh), zsh
12415     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12416 `
12417     if test -n ""; then
12418         ver=""
12419     else
12420         ver=`
12421     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12422     ##
12423     ## ARG.
12424     ## Workaround for broken Debian gcc version string:
12425     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12426     ##
12427     ## -V: Workaround for python
12428
12429     #dnl
12430
12431     ## Assume and hunt for dotted version multiplet.
12432     ## use eval trickery, because we cannot use multi-level $() instead of ``
12433     ## for compatibility reasons.
12434
12435     ## grab the first version number in  --version output.
12436     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12437                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12438                 head -n 1 |
12439                 tr ' ' '\n' |
12440                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12441                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12442                 head -n 1\`\"
12443
12444     if test -z "$_ver"; then
12445         ## If empty, try date [fontforge]
12446         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12447             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12448             | head -n 1 \
12449             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12450     fi
12451     echo "$_ver"
12452     #dnl
12453 `
12454     fi
12455     num=`
12456     echo "$ver" | awk -F. '
12457     {
12458       if ($3) {three = $3}
12459       else {three = 0}
12460     }
12461     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12462 `
12463     req=`
12464     echo "" | awk -F. '
12465     {
12466       if ($3) {three = $3}
12467       else {three = 0}
12468     }
12469     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12470 `
12471     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12472 $as_echo "$ver" >&6; }
12473     if test "$num" -lt "$req"; then
12474
12475     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
12476
12477     fi
12478     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12479     eval `echo $vervar=$num`
12480 ##    AC_SUBST(`eval echo $vervar`)
12481
12482     fi
12483
12484
12485
12486
12487 # guile executable for some scripts
12488
12489     { $as_echo "$as_me:$LINENO: checking for guile" >&5
12490 $as_echo_n "checking for guile... " >&6; }
12491     guile="guile"
12492     found="no"
12493     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
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 ! $exe --version > /dev/null 2>&1 ; then
12503             continue
12504         fi
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 \
12532             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12533             | head -n 1 \
12534             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12535     fi
12536     echo "$_ver"
12537     #dnl
12538 `
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 "1.8.2" | awk -F. '
12549     {
12550       if ($3) {three = $3}
12551       else {three = 0}
12552     }
12553     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12554 `
12555         sup=`
12556     echo "1.9.0" | awk -F. '
12557     {
12558       if ($3) {three = $3}
12559       else {three = 0}
12560     }
12561     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12562 `
12563         if test -n "1.8.2" && test "$num" -lt "$req"; then
12564             guile="$r >= 1.8.2 (installed: $ver)"
12565             continue
12566         else
12567             if test -n "1.9.0" && test "$num" -ge "$sup"; then
12568                 guile="$r < 1.9.0 (installed: $ver)"
12569                 continue
12570             else
12571                 guile=$r
12572                 found=$r
12573                 break
12574             fi
12575         fi
12576     done
12577     { $as_echo "$as_me:$LINENO: result: $found" >&5
12578 $as_echo "$found" >&6; }
12579     if test "$found" != "no"; then
12580         { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12581 $as_echo_n "checking $guile version... " >&6; }
12582         { $as_echo "$as_me:$LINENO: result: $ver" >&5
12583 $as_echo "$ver" >&6; }
12584         GUILE=$found
12585     else
12586
12587     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12588
12589     fi
12590
12591     for ac_prog in $GUILE
12592 do
12593   # Extract the first word of "$ac_prog", so it can be a program name with args.
12594 set dummy $ac_prog; ac_word=$2
12595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12596 $as_echo_n "checking for $ac_word... " >&6; }
12597 if test "${ac_cv_prog_GUILE+set}" = set; then
12598   $as_echo_n "(cached) " >&6
12599 else
12600   if test -n "$GUILE"; then
12601   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12602 else
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12605 do
12606   IFS=$as_save_IFS
12607   test -z "$as_dir" && as_dir=.
12608   for ac_exec_ext in '' $ac_executable_extensions; do
12609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12610     ac_cv_prog_GUILE="$ac_prog"
12611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12612     break 2
12613   fi
12614 done
12615 done
12616 IFS=$as_save_IFS
12617
12618 fi
12619 fi
12620 GUILE=$ac_cv_prog_GUILE
12621 if test -n "$GUILE"; then
12622   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12623 $as_echo "$GUILE" >&6; }
12624 else
12625   { $as_echo "$as_me:$LINENO: result: no" >&5
12626 $as_echo "no" >&6; }
12627 fi
12628
12629
12630   test -n "$GUILE" && break
12631 done
12632 test -n "$GUILE" || GUILE="no"
12633
12634
12635
12636     r="`eval echo '$'"GUILE"`"
12637     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12638         true
12639     else
12640         ##STEPMAKE_WARN(cannot find . )
12641         false
12642     fi
12643
12644     if test $? -ne 0; then
12645
12646     eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12647
12648         if test "" = "REQUIRED"; then
12649             command="echo ERROR: $GUILE not found"
12650             # abort configure process here?
12651         else
12652             command="- echo $GUILE not found"
12653         fi
12654         eval "GUILE"='$command'
12655         false
12656     else
12657         true
12658     fi
12659
12660     if test $? -eq 0; then
12661         for ac_prog in $GUILE
12662 do
12663   # Extract the first word of "$ac_prog", so it can be a program name with args.
12664 set dummy $ac_prog; ac_word=$2
12665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12666 $as_echo_n "checking for $ac_word... " >&6; }
12667 if test "${ac_cv_path_GUILE+set}" = set; then
12668   $as_echo_n "(cached) " >&6
12669 else
12670   case $GUILE in
12671   [\\/]* | ?:[\\/]*)
12672   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12673   ;;
12674   *)
12675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $PATH
12677 do
12678   IFS=$as_save_IFS
12679   test -z "$as_dir" && as_dir=.
12680   for ac_exec_ext in '' $ac_executable_extensions; do
12681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12683     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12684     break 2
12685   fi
12686 done
12687 done
12688 IFS=$as_save_IFS
12689
12690   ;;
12691 esac
12692 fi
12693 GUILE=$ac_cv_path_GUILE
12694 if test -n "$GUILE"; then
12695   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12696 $as_echo "$GUILE" >&6; }
12697 else
12698   { $as_echo "$as_me:$LINENO: result: no" >&5
12699 $as_echo "no" >&6; }
12700 fi
12701
12702
12703   test -n "$GUILE" && break
12704 done
12705
12706         if test -n ""; then
12707
12708     r="`eval echo '$'"GUILE"`"
12709     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12710 $as_echo_n "checking $r version... " >&6; }
12711     exe=`
12712     ## which doesn't work in ash, if /usr/bin/which isn't installed
12713     ## type -p doesn't work in ash
12714     ## command -v doesn't work in zsh
12715     ## command -v "$r" 2>&1
12716     ## this test should work in ash, bash, pdksh (ksh), zsh
12717     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12718 `
12719     if test -n ""; then
12720         ver=""
12721     else
12722         ver=`
12723     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12724     ##
12725     ## ARG.
12726     ## Workaround for broken Debian gcc version string:
12727     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12728     ##
12729     ## -V: Workaround for python
12730
12731     #dnl
12732
12733     ## Assume and hunt for dotted version multiplet.
12734     ## use eval trickery, because we cannot use multi-level $() instead of ``
12735     ## for compatibility reasons.
12736
12737     ## grab the first version number in  --version output.
12738     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12739                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12740                 head -n 1 |
12741                 tr ' ' '\n' |
12742                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12743                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12744                 head -n 1\`\"
12745
12746     if test -z "$_ver"; then
12747         ## If empty, try date [fontforge]
12748         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12749             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12750             | head -n 1 \
12751             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12752     fi
12753     echo "$_ver"
12754     #dnl
12755 `
12756     fi
12757     num=`
12758     echo "$ver" | awk -F. '
12759     {
12760       if ($3) {three = $3}
12761       else {three = 0}
12762     }
12763     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12764 `
12765     req=`
12766     echo "" | awk -F. '
12767     {
12768       if ($3) {three = $3}
12769       else {three = 0}
12770     }
12771     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12772 `
12773     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12774 $as_echo "$ver" >&6; }
12775     if test "$num" -lt "$req"; then
12776
12777     eval ""=\"`eval echo \"'$'\" \""$r >=  (installed: $ver)"\"`\"
12778
12779     fi
12780     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12781     eval `echo $vervar=$num`
12782 ##    AC_SUBST(`eval echo $vervar`)
12783
12784         fi
12785     fi
12786
12787
12788
12789 # perl for help2man and for mf2pt1.pl
12790
12791
12792     for ac_prog in perl
12793 do
12794   # Extract the first word of "$ac_prog", so it can be a program name with args.
12795 set dummy $ac_prog; ac_word=$2
12796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_PERL+set}" = set; then
12799   $as_echo_n "(cached) " >&6
12800 else
12801   if test -n "$PERL"; then
12802   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807   IFS=$as_save_IFS
12808   test -z "$as_dir" && as_dir=.
12809   for ac_exec_ext in '' $ac_executable_extensions; do
12810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811     ac_cv_prog_PERL="$ac_prog"
12812     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12813     break 2
12814   fi
12815 done
12816 done
12817 IFS=$as_save_IFS
12818
12819 fi
12820 fi
12821 PERL=$ac_cv_prog_PERL
12822 if test -n "$PERL"; then
12823   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12824 $as_echo "$PERL" >&6; }
12825 else
12826   { $as_echo "$as_me:$LINENO: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830
12831   test -n "$PERL" && break
12832 done
12833 test -n "$PERL" || PERL="no"
12834
12835
12836
12837     r="`eval echo '$'"PERL"`"
12838     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12839         true
12840     else
12841         ##STEPMAKE_WARN(cannot find . )
12842         false
12843     fi
12844
12845     if test $? -ne 0; then
12846
12847     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12848
12849         if test "REQUIRED" = "REQUIRED"; then
12850             command="echo ERROR: perl not found"
12851             # abort configure process here?
12852         else
12853             command="- echo perl not found"
12854         fi
12855         eval "PERL"='$command'
12856         false
12857     else
12858         true
12859     fi
12860
12861     if test $? -eq 0; then
12862         for ac_prog in perl
12863 do
12864   # Extract the first word of "$ac_prog", so it can be a program name with args.
12865 set dummy $ac_prog; ac_word=$2
12866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if test "${ac_cv_path_PERL+set}" = set; then
12869   $as_echo_n "(cached) " >&6
12870 else
12871   case $PERL in
12872   [\\/]* | ?:[\\/]*)
12873   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12874   ;;
12875   *)
12876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879   IFS=$as_save_IFS
12880   test -z "$as_dir" && as_dir=.
12881   for ac_exec_ext in '' $ac_executable_extensions; do
12882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12885     break 2
12886   fi
12887 done
12888 done
12889 IFS=$as_save_IFS
12890
12891   ;;
12892 esac
12893 fi
12894 PERL=$ac_cv_path_PERL
12895 if test -n "$PERL"; then
12896   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12897 $as_echo "$PERL" >&6; }
12898 else
12899   { $as_echo "$as_me:$LINENO: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902
12903
12904   test -n "$PERL" && break
12905 done
12906
12907         if test -n ""; then
12908
12909     r="`eval echo '$'"PERL"`"
12910     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12911 $as_echo_n "checking $r version... " >&6; }
12912     exe=`
12913     ## which doesn't work in ash, if /usr/bin/which isn't installed
12914     ## type -p doesn't work in ash
12915     ## command -v doesn't work in zsh
12916     ## command -v "$r" 2>&1
12917     ## this test should work in ash, bash, pdksh (ksh), zsh
12918     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12919 `
12920     if test -n ""; then
12921         ver=""
12922     else
12923         ver=`
12924     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12925     ##
12926     ## ARG.
12927     ## Workaround for broken Debian gcc version string:
12928     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12929     ##
12930     ## -V: Workaround for python
12931
12932     #dnl
12933
12934     ## Assume and hunt for dotted version multiplet.
12935     ## use eval trickery, because we cannot use multi-level $() instead of ``
12936     ## for compatibility reasons.
12937
12938     ## grab the first version number in  --version output.
12939     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12940                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12941                 head -n 1 |
12942                 tr ' ' '\n' |
12943                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12944                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12945                 head -n 1\`\"
12946
12947     if test -z "$_ver"; then
12948         ## If empty, try date [fontforge]
12949         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12950             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12951             | head -n 1 \
12952             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12953     fi
12954     echo "$_ver"
12955     #dnl
12956 `
12957     fi
12958     num=`
12959     echo "$ver" | awk -F. '
12960     {
12961       if ($3) {three = $3}
12962       else {three = 0}
12963     }
12964     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12965 `
12966     req=`
12967     echo "" | awk -F. '
12968     {
12969       if ($3) {three = $3}
12970       else {three = 0}
12971     }
12972     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12973 `
12974     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12975 $as_echo "$ver" >&6; }
12976     if test "$num" -lt "$req"; then
12977
12978     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
12979
12980     fi
12981     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12982     eval `echo $vervar=$num`
12983 ##    AC_SUBST(`eval echo $vervar`)
12984
12985         fi
12986     fi
12987
12988
12989
12990 ## Optional tools for building documentation, website, extra fonts.
12991 if test "$DOCUMENTATION" = "yes"; then
12992   DOCUMENTATION_REQUIRED=REQUIRED
12993 else
12994   DOCUMENTATION_REQUIRED=OPTIONAL
12995 fi
12996
12997
12998     for ac_prog in gs
12999 do
13000   # Extract the first word of "$ac_prog", so it can be a program name with args.
13001 set dummy $ac_prog; ac_word=$2
13002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
13005   $as_echo_n "(cached) " >&6
13006 else
13007   if test -n "$GHOSTSCRIPT"; then
13008   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
13009 else
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13012 do
13013   IFS=$as_save_IFS
13014   test -z "$as_dir" && as_dir=.
13015   for ac_exec_ext in '' $ac_executable_extensions; do
13016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
13018     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13019     break 2
13020   fi
13021 done
13022 done
13023 IFS=$as_save_IFS
13024
13025 fi
13026 fi
13027 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
13028 if test -n "$GHOSTSCRIPT"; then
13029   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13030 $as_echo "$GHOSTSCRIPT" >&6; }
13031 else
13032   { $as_echo "$as_me:$LINENO: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036
13037   test -n "$GHOSTSCRIPT" && break
13038 done
13039 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
13040
13041
13042
13043     r="`eval echo '$'"GHOSTSCRIPT"`"
13044     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
13045         true
13046     else
13047         ##STEPMAKE_WARN(cannot find . )
13048         false
13049     fi
13050
13051     if test $? -ne 0; then
13052
13053     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
13054
13055         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13056             command="echo ERROR: gs not found"
13057             # abort configure process here?
13058         else
13059             command="- echo gs not found"
13060         fi
13061         eval "GHOSTSCRIPT"='$command'
13062         false
13063     else
13064         true
13065     fi
13066
13067     if test $? -eq 0; then
13068         for ac_prog in gs
13069 do
13070   # Extract the first word of "$ac_prog", so it can be a program name with args.
13071 set dummy $ac_prog; ac_word=$2
13072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
13075   $as_echo_n "(cached) " >&6
13076 else
13077   case $GHOSTSCRIPT in
13078   [\\/]* | ?:[\\/]*)
13079   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
13080   ;;
13081   *)
13082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087   for ac_exec_ext in '' $ac_executable_extensions; do
13088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097   ;;
13098 esac
13099 fi
13100 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13101 if test -n "$GHOSTSCRIPT"; then
13102   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13103 $as_echo "$GHOSTSCRIPT" >&6; }
13104 else
13105   { $as_echo "$as_me:$LINENO: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108
13109
13110   test -n "$GHOSTSCRIPT" && break
13111 done
13112
13113         if test -n "8.60"; then
13114
13115     r="`eval echo '$'"GHOSTSCRIPT"`"
13116     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13117 $as_echo_n "checking $r version... " >&6; }
13118     exe=`
13119     ## which doesn't work in ash, if /usr/bin/which isn't installed
13120     ## type -p doesn't work in ash
13121     ## command -v doesn't work in zsh
13122     ## command -v "$r" 2>&1
13123     ## this test should work in ash, bash, pdksh (ksh), zsh
13124     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13125 `
13126     if test -n ""; then
13127         ver=""
13128     else
13129         ver=`
13130     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13131     ##
13132     ## ARG.
13133     ## Workaround for broken Debian gcc version string:
13134     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13135     ##
13136     ## -V: Workaround for python
13137
13138     #dnl
13139
13140     ## Assume and hunt for dotted version multiplet.
13141     ## use eval trickery, because we cannot use multi-level $() instead of ``
13142     ## for compatibility reasons.
13143
13144     ## grab the first version number in  --version output.
13145     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13146                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13147                 head -n 1 |
13148                 tr ' ' '\n' |
13149                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13150                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13151                 head -n 1\`\"
13152
13153     if test -z "$_ver"; then
13154         ## If empty, try date [fontforge]
13155         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13156             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13157             | head -n 1 \
13158             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13159     fi
13160     echo "$_ver"
13161     #dnl
13162 `
13163     fi
13164     num=`
13165     echo "$ver" | awk -F. '
13166     {
13167       if ($3) {three = $3}
13168       else {three = 0}
13169     }
13170     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13171 `
13172     req=`
13173     echo "8.60" | awk -F. '
13174     {
13175       if ($3) {three = $3}
13176       else {three = 0}
13177     }
13178     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13179 `
13180     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13181 $as_echo "$ver" >&6; }
13182     if test "$num" -lt "$req"; then
13183
13184     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13185
13186     fi
13187     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13188     eval `echo $vervar=$num`
13189 ##    AC_SUBST(`eval echo $vervar`)
13190
13191         fi
13192     fi
13193
13194
13195
13196     for ac_prog in makeinfo
13197 do
13198   # Extract the first word of "$ac_prog", so it can be a program name with args.
13199 set dummy $ac_prog; ac_word=$2
13200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
13203   $as_echo_n "(cached) " >&6
13204 else
13205   if test -n "$MAKEINFO"; then
13206   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211   IFS=$as_save_IFS
13212   test -z "$as_dir" && as_dir=.
13213   for ac_exec_ext in '' $ac_executable_extensions; do
13214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215     ac_cv_prog_MAKEINFO="$ac_prog"
13216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13217     break 2
13218   fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 fi
13224 fi
13225 MAKEINFO=$ac_cv_prog_MAKEINFO
13226 if test -n "$MAKEINFO"; then
13227   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
13228 $as_echo "$MAKEINFO" >&6; }
13229 else
13230   { $as_echo "$as_me:$LINENO: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233
13234
13235   test -n "$MAKEINFO" && break
13236 done
13237 test -n "$MAKEINFO" || MAKEINFO="no"
13238
13239
13240
13241     r="`eval echo '$'"MAKEINFO"`"
13242     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
13243         true
13244     else
13245         ##STEPMAKE_WARN(cannot find . )
13246         false
13247     fi
13248
13249     if test $? -ne 0; then
13250
13251     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
13252
13253         if test "REQUIRED" = "REQUIRED"; then
13254             command="echo ERROR: makeinfo not found"
13255             # abort configure process here?
13256         else
13257             command="- echo makeinfo not found"
13258         fi
13259         eval "MAKEINFO"='$command'
13260         false
13261     else
13262         true
13263     fi
13264
13265     if test $? -eq 0 -a -n "4.11"; then
13266
13267     r="`eval echo '$'"MAKEINFO"`"
13268     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13269 $as_echo_n "checking $r version... " >&6; }
13270     exe=`
13271     ## which doesn't work in ash, if /usr/bin/which isn't installed
13272     ## type -p doesn't work in ash
13273     ## command -v doesn't work in zsh
13274     ## command -v "$r" 2>&1
13275     ## this test should work in ash, bash, pdksh (ksh), zsh
13276     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13277 `
13278     if test -n ""; then
13279         ver=""
13280     else
13281         ver=`
13282     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13283     ##
13284     ## ARG.
13285     ## Workaround for broken Debian gcc version string:
13286     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13287     ##
13288     ## -V: Workaround for python
13289
13290     #dnl
13291
13292     ## Assume and hunt for dotted version multiplet.
13293     ## use eval trickery, because we cannot use multi-level $() instead of ``
13294     ## for compatibility reasons.
13295
13296     ## grab the first version number in  --version output.
13297     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13298                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13299                 head -n 1 |
13300                 tr ' ' '\n' |
13301                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13302                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13303                 head -n 1\`\"
13304
13305     if test -z "$_ver"; then
13306         ## If empty, try date [fontforge]
13307         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13308             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13309             | head -n 1 \
13310             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13311     fi
13312     echo "$_ver"
13313     #dnl
13314 `
13315     fi
13316     num=`
13317     echo "$ver" | awk -F. '
13318     {
13319       if ($3) {three = $3}
13320       else {three = 0}
13321     }
13322     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13323 `
13324     req=`
13325     echo "4.11" | awk -F. '
13326     {
13327       if ($3) {three = $3}
13328       else {three = 0}
13329     }
13330     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13331 `
13332     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13333 $as_echo "$ver" >&6; }
13334     if test "$num" -lt "$req"; then
13335
13336     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
13337
13338     fi
13339     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
13340     eval `echo $vervar=$num`
13341 ##    AC_SUBST(`eval echo $vervar`)
13342
13343     fi
13344
13345
13346     for ac_prog in texi2html
13347 do
13348   # Extract the first word of "$ac_prog", so it can be a program name with args.
13349 set dummy $ac_prog; ac_word=$2
13350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
13353   $as_echo_n "(cached) " >&6
13354 else
13355   if test -n "$TEXI2HTML"; then
13356   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13360 do
13361   IFS=$as_save_IFS
13362   test -z "$as_dir" && as_dir=.
13363   for ac_exec_ext in '' $ac_executable_extensions; do
13364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365     ac_cv_prog_TEXI2HTML="$ac_prog"
13366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13367     break 2
13368   fi
13369 done
13370 done
13371 IFS=$as_save_IFS
13372
13373 fi
13374 fi
13375 TEXI2HTML=$ac_cv_prog_TEXI2HTML
13376 if test -n "$TEXI2HTML"; then
13377   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
13378 $as_echo "$TEXI2HTML" >&6; }
13379 else
13380   { $as_echo "$as_me:$LINENO: result: no" >&5
13381 $as_echo "no" >&6; }
13382 fi
13383
13384
13385   test -n "$TEXI2HTML" && break
13386 done
13387 test -n "$TEXI2HTML" || TEXI2HTML="no"
13388
13389
13390
13391     r="`eval echo '$'"TEXI2HTML"`"
13392     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
13393         true
13394     else
13395         ##STEPMAKE_WARN(cannot find . )
13396         false
13397     fi
13398
13399     if test $? -ne 0; then
13400
13401     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
13402
13403         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13404             command="echo ERROR: texi2html not found"
13405             # abort configure process here?
13406         else
13407             command="- echo texi2html not found"
13408         fi
13409         eval "TEXI2HTML"='$command'
13410         false
13411     else
13412         true
13413     fi
13414
13415     if test $? -eq 0 -a -n "1.82"; then
13416
13417     r="`eval echo '$'"TEXI2HTML"`"
13418     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13419 $as_echo_n "checking $r version... " >&6; }
13420     exe=`
13421     ## which doesn't work in ash, if /usr/bin/which isn't installed
13422     ## type -p doesn't work in ash
13423     ## command -v doesn't work in zsh
13424     ## command -v "$r" 2>&1
13425     ## this test should work in ash, bash, pdksh (ksh), zsh
13426     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13427 `
13428     if test -n ""; then
13429         ver=""
13430     else
13431         ver=`
13432     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13433     ##
13434     ## ARG.
13435     ## Workaround for broken Debian gcc version string:
13436     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13437     ##
13438     ## -V: Workaround for python
13439
13440     #dnl
13441
13442     ## Assume and hunt for dotted version multiplet.
13443     ## use eval trickery, because we cannot use multi-level $() instead of ``
13444     ## for compatibility reasons.
13445
13446     ## grab the first version number in  --version output.
13447     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13448                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13449                 head -n 1 |
13450                 tr ' ' '\n' |
13451                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13452                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13453                 head -n 1\`\"
13454
13455     if test -z "$_ver"; then
13456         ## If empty, try date [fontforge]
13457         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13458             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13459             | head -n 1 \
13460             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13461     fi
13462     echo "$_ver"
13463     #dnl
13464 `
13465     fi
13466     num=`
13467     echo "$ver" | awk -F. '
13468     {
13469       if ($3) {three = $3}
13470       else {three = 0}
13471     }
13472     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13473 `
13474     req=`
13475     echo "1.82" | awk -F. '
13476     {
13477       if ($3) {three = $3}
13478       else {three = 0}
13479     }
13480     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13481 `
13482     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13483 $as_echo "$ver" >&6; }
13484     if test "$num" -lt "$req"; then
13485
13486     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
13487
13488     fi
13489     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
13490     eval `echo $vervar=$num`
13491 ##    AC_SUBST(`eval echo $vervar`)
13492
13493     fi
13494
13495
13496     for ac_prog in dblatex
13497 do
13498   # Extract the first word of "$ac_prog", so it can be a program name with args.
13499 set dummy $ac_prog; ac_word=$2
13500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 $as_echo_n "checking for $ac_word... " >&6; }
13502 if test "${ac_cv_prog_DBLATEX+set}" = set; then
13503   $as_echo_n "(cached) " >&6
13504 else
13505   if test -n "$DBLATEX"; then
13506   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13510 do
13511   IFS=$as_save_IFS
13512   test -z "$as_dir" && as_dir=.
13513   for ac_exec_ext in '' $ac_executable_extensions; do
13514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13515     ac_cv_prog_DBLATEX="$ac_prog"
13516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13517     break 2
13518   fi
13519 done
13520 done
13521 IFS=$as_save_IFS
13522
13523 fi
13524 fi
13525 DBLATEX=$ac_cv_prog_DBLATEX
13526 if test -n "$DBLATEX"; then
13527   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
13528 $as_echo "$DBLATEX" >&6; }
13529 else
13530   { $as_echo "$as_me:$LINENO: result: no" >&5
13531 $as_echo "no" >&6; }
13532 fi
13533
13534
13535   test -n "$DBLATEX" && break
13536 done
13537 test -n "$DBLATEX" || DBLATEX="no"
13538
13539
13540
13541     r="`eval echo '$'"DBLATEX"`"
13542     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
13543         true
13544     else
13545         ##STEPMAKE_WARN(cannot find . )
13546         false
13547     fi
13548
13549     if test $? -ne 0; then
13550
13551     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
13552
13553         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13554             command="echo ERROR: dblatex not found"
13555             # abort configure process here?
13556         else
13557             command="- echo dblatex not found"
13558         fi
13559         eval "DBLATEX"='$command'
13560         false
13561     else
13562         true
13563     fi
13564
13565     if test $? -eq 0 -a -n "0.1.4"; then
13566
13567     r="`eval echo '$'"DBLATEX"`"
13568     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13569 $as_echo_n "checking $r version... " >&6; }
13570     exe=`
13571     ## which doesn't work in ash, if /usr/bin/which isn't installed
13572     ## type -p doesn't work in ash
13573     ## command -v doesn't work in zsh
13574     ## command -v "$r" 2>&1
13575     ## this test should work in ash, bash, pdksh (ksh), zsh
13576     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13577 `
13578     if test -n ""; then
13579         ver=""
13580     else
13581         ver=`
13582     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13583     ##
13584     ## ARG.
13585     ## Workaround for broken Debian gcc version string:
13586     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13587     ##
13588     ## -V: Workaround for python
13589
13590     #dnl
13591
13592     ## Assume and hunt for dotted version multiplet.
13593     ## use eval trickery, because we cannot use multi-level $() instead of ``
13594     ## for compatibility reasons.
13595
13596     ## grab the first version number in  --version output.
13597     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13598                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13599                 head -n 1 |
13600                 tr ' ' '\n' |
13601                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13602                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13603                 head -n 1\`\"
13604
13605     if test -z "$_ver"; then
13606         ## If empty, try date [fontforge]
13607         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13608             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13609             | head -n 1 \
13610             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13611     fi
13612     echo "$_ver"
13613     #dnl
13614 `
13615     fi
13616     num=`
13617     echo "$ver" | awk -F. '
13618     {
13619       if ($3) {three = $3}
13620       else {three = 0}
13621     }
13622     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13623 `
13624     req=`
13625     echo "0.1.4" | awk -F. '
13626     {
13627       if ($3) {three = $3}
13628       else {three = 0}
13629     }
13630     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13631 `
13632     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13633 $as_echo "$ver" >&6; }
13634     if test "$num" -lt "$req"; then
13635
13636     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13637
13638     fi
13639     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13640     eval `echo $vervar=$num`
13641 ##    AC_SUBST(`eval echo $vervar`)
13642
13643     fi
13644
13645
13646     for ac_prog in bibtex
13647 do
13648   # Extract the first word of "$ac_prog", so it can be a program name with args.
13649 set dummy $ac_prog; ac_word=$2
13650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13653   $as_echo_n "(cached) " >&6
13654 else
13655   if test -n "$BIBTEX"; then
13656   ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663   for ac_exec_ext in '' $ac_executable_extensions; do
13664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13665     ac_cv_prog_BIBTEX="$ac_prog"
13666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13667     break 2
13668   fi
13669 done
13670 done
13671 IFS=$as_save_IFS
13672
13673 fi
13674 fi
13675 BIBTEX=$ac_cv_prog_BIBTEX
13676 if test -n "$BIBTEX"; then
13677   { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
13678 $as_echo "$BIBTEX" >&6; }
13679 else
13680   { $as_echo "$as_me:$LINENO: result: no" >&5
13681 $as_echo "no" >&6; }
13682 fi
13683
13684
13685   test -n "$BIBTEX" && break
13686 done
13687 test -n "$BIBTEX" || BIBTEX="no"
13688
13689
13690
13691     r="`eval echo '$'"BIBTEX"`"
13692     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
13693         true
13694     else
13695         ##STEPMAKE_WARN(cannot find . )
13696         false
13697     fi
13698
13699     if test $? -ne 0; then
13700
13701     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
13702
13703         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13704             command="echo ERROR: bibtex not found"
13705             # abort configure process here?
13706         else
13707             command="- echo bibtex not found"
13708         fi
13709         eval "BIBTEX"='$command'
13710         false
13711     else
13712         true
13713     fi
13714
13715     if test $? -eq 0 -a -n ""; then
13716
13717     r="`eval echo '$'"BIBTEX"`"
13718     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13719 $as_echo_n "checking $r version... " >&6; }
13720     exe=`
13721     ## which doesn't work in ash, if /usr/bin/which isn't installed
13722     ## type -p doesn't work in ash
13723     ## command -v doesn't work in zsh
13724     ## command -v "$r" 2>&1
13725     ## this test should work in ash, bash, pdksh (ksh), zsh
13726     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13727 `
13728     if test -n ""; then
13729         ver=""
13730     else
13731         ver=`
13732     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13733     ##
13734     ## ARG.
13735     ## Workaround for broken Debian gcc version string:
13736     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13737     ##
13738     ## -V: Workaround for python
13739
13740     #dnl
13741
13742     ## Assume and hunt for dotted version multiplet.
13743     ## use eval trickery, because we cannot use multi-level $() instead of ``
13744     ## for compatibility reasons.
13745
13746     ## grab the first version number in  --version output.
13747     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13748                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13749                 head -n 1 |
13750                 tr ' ' '\n' |
13751                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13752                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13753                 head -n 1\`\"
13754
13755     if test -z "$_ver"; then
13756         ## If empty, try date [fontforge]
13757         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13758             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13759             | head -n 1 \
13760             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13761     fi
13762     echo "$_ver"
13763     #dnl
13764 `
13765     fi
13766     num=`
13767     echo "$ver" | awk -F. '
13768     {
13769       if ($3) {three = $3}
13770       else {three = 0}
13771     }
13772     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13773 `
13774     req=`
13775     echo "" | awk -F. '
13776     {
13777       if ($3) {three = $3}
13778       else {three = 0}
13779     }
13780     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13781 `
13782     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13783 $as_echo "$ver" >&6; }
13784     if test "$num" -lt "$req"; then
13785
13786     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13787
13788     fi
13789     vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
13790     eval `echo $vervar=$num`
13791 ##    AC_SUBST(`eval echo $vervar`)
13792
13793     fi
13794
13795
13796     for ac_prog in xelatex pdflatex
13797 do
13798   # Extract the first word of "$ac_prog", so it can be a program name with args.
13799 set dummy $ac_prog; ac_word=$2
13800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
13803   $as_echo_n "(cached) " >&6
13804 else
13805   if test -n "$PDFLATEX"; then
13806   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
13807 else
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811   IFS=$as_save_IFS
13812   test -z "$as_dir" && as_dir=.
13813   for ac_exec_ext in '' $ac_executable_extensions; do
13814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13815     ac_cv_prog_PDFLATEX="$ac_prog"
13816     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817     break 2
13818   fi
13819 done
13820 done
13821 IFS=$as_save_IFS
13822
13823 fi
13824 fi
13825 PDFLATEX=$ac_cv_prog_PDFLATEX
13826 if test -n "$PDFLATEX"; then
13827   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
13828 $as_echo "$PDFLATEX" >&6; }
13829 else
13830   { $as_echo "$as_me:$LINENO: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833
13834
13835   test -n "$PDFLATEX" && break
13836 done
13837 test -n "$PDFLATEX" || PDFLATEX="no"
13838
13839
13840
13841     r="`eval echo '$'"PDFLATEX"`"
13842     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
13843         true
13844     else
13845         ##STEPMAKE_WARN(cannot find . )
13846         false
13847     fi
13848
13849     if test $? -ne 0; then
13850
13851     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
13852
13853         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13854             command="echo ERROR: xelatex pdflatex not found"
13855             # abort configure process here?
13856         else
13857             command="- echo xelatex pdflatex not found"
13858         fi
13859         eval "PDFLATEX"='$command'
13860         false
13861     else
13862         true
13863     fi
13864
13865     if test $? -eq 0 -a -n ""; then
13866
13867     r="`eval echo '$'"PDFLATEX"`"
13868     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13869 $as_echo_n "checking $r version... " >&6; }
13870     exe=`
13871     ## which doesn't work in ash, if /usr/bin/which isn't installed
13872     ## type -p doesn't work in ash
13873     ## command -v doesn't work in zsh
13874     ## command -v "$r" 2>&1
13875     ## this test should work in ash, bash, pdksh (ksh), zsh
13876     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13877 `
13878     if test -n ""; then
13879         ver=""
13880     else
13881         ver=`
13882     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13883     ##
13884     ## ARG.
13885     ## Workaround for broken Debian gcc version string:
13886     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13887     ##
13888     ## -V: Workaround for python
13889
13890     #dnl
13891
13892     ## Assume and hunt for dotted version multiplet.
13893     ## use eval trickery, because we cannot use multi-level $() instead of ``
13894     ## for compatibility reasons.
13895
13896     ## grab the first version number in  --version output.
13897     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13898                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13899                 head -n 1 |
13900                 tr ' ' '\n' |
13901                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13902                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13903                 head -n 1\`\"
13904
13905     if test -z "$_ver"; then
13906         ## If empty, try date [fontforge]
13907         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13908             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13909             | head -n 1 \
13910             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13911     fi
13912     echo "$_ver"
13913     #dnl
13914 `
13915     fi
13916     num=`
13917     echo "$ver" | awk -F. '
13918     {
13919       if ($3) {three = $3}
13920       else {three = 0}
13921     }
13922     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13923 `
13924     req=`
13925     echo "" | awk -F. '
13926     {
13927       if ($3) {three = $3}
13928       else {three = 0}
13929     }
13930     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13931 `
13932     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13933 $as_echo "$ver" >&6; }
13934     if test "$num" -lt "$req"; then
13935
13936     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13937
13938     fi
13939     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13940     eval `echo $vervar=$num`
13941 ##    AC_SUBST(`eval echo $vervar`)
13942
13943     fi
13944
13945 if test "$PDFLATEX" = "xelatex"; then
13946
13947     for ac_prog in xetex
13948 do
13949   # Extract the first word of "$ac_prog", so it can be a program name with args.
13950 set dummy $ac_prog; ac_word=$2
13951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_PDFTEX+set}" = set; then
13954   $as_echo_n "(cached) " >&6
13955 else
13956   if test -n "$PDFTEX"; then
13957   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962   IFS=$as_save_IFS
13963   test -z "$as_dir" && as_dir=.
13964   for ac_exec_ext in '' $ac_executable_extensions; do
13965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966     ac_cv_prog_PDFTEX="$ac_prog"
13967     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13968     break 2
13969   fi
13970 done
13971 done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 PDFTEX=$ac_cv_prog_PDFTEX
13977 if test -n "$PDFTEX"; then
13978   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
13979 $as_echo "$PDFTEX" >&6; }
13980 else
13981   { $as_echo "$as_me:$LINENO: result: no" >&5
13982 $as_echo "no" >&6; }
13983 fi
13984
13985
13986   test -n "$PDFTEX" && break
13987 done
13988 test -n "$PDFTEX" || PDFTEX="no"
13989
13990
13991
13992     r="`eval echo '$'"PDFTEX"`"
13993     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
13994         true
13995     else
13996         ##STEPMAKE_WARN(cannot find . )
13997         false
13998     fi
13999
14000     if test $? -ne 0; then
14001
14002     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
14003
14004         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14005             command="echo ERROR: xetex not found"
14006             # abort configure process here?
14007         else
14008             command="- echo xetex not found"
14009         fi
14010         eval "PDFTEX"='$command'
14011         false
14012     else
14013         true
14014     fi
14015
14016     if test $? -eq 0 -a -n ""; then
14017
14018     r="`eval echo '$'"PDFTEX"`"
14019     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14020 $as_echo_n "checking $r version... " >&6; }
14021     exe=`
14022     ## which doesn't work in ash, if /usr/bin/which isn't installed
14023     ## type -p doesn't work in ash
14024     ## command -v doesn't work in zsh
14025     ## command -v "$r" 2>&1
14026     ## this test should work in ash, bash, pdksh (ksh), zsh
14027     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14028 `
14029     if test -n ""; then
14030         ver=""
14031     else
14032         ver=`
14033     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14034     ##
14035     ## ARG.
14036     ## Workaround for broken Debian gcc version string:
14037     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14038     ##
14039     ## -V: Workaround for python
14040
14041     #dnl
14042
14043     ## Assume and hunt for dotted version multiplet.
14044     ## use eval trickery, because we cannot use multi-level $() instead of ``
14045     ## for compatibility reasons.
14046
14047     ## grab the first version number in  --version output.
14048     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14049                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14050                 head -n 1 |
14051                 tr ' ' '\n' |
14052                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14053                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14054                 head -n 1\`\"
14055
14056     if test -z "$_ver"; then
14057         ## If empty, try date [fontforge]
14058         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14059             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14060             | head -n 1 \
14061             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14062     fi
14063     echo "$_ver"
14064     #dnl
14065 `
14066     fi
14067     num=`
14068     echo "$ver" | awk -F. '
14069     {
14070       if ($3) {three = $3}
14071       else {three = 0}
14072     }
14073     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14074 `
14075     req=`
14076     echo "" | awk -F. '
14077     {
14078       if ($3) {three = $3}
14079       else {three = 0}
14080     }
14081     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14082 `
14083     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14084 $as_echo "$ver" >&6; }
14085     if test "$num" -lt "$req"; then
14086
14087     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14088
14089     fi
14090     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14091     eval `echo $vervar=$num`
14092 ##    AC_SUBST(`eval echo $vervar`)
14093
14094     fi
14095
14096     if test "$PDFTEX" = "xetex"; then
14097         # For avoiding PDF destination name replacement.
14098         PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
14099         PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
14100     fi
14101 else
14102
14103     for ac_prog in pdfetex pdftex etex
14104 do
14105   # Extract the first word of "$ac_prog", so it can be a program name with args.
14106 set dummy $ac_prog; ac_word=$2
14107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14110   $as_echo_n "(cached) " >&6
14111 else
14112   if test -n "$PDFTEX"; then
14113   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14117 do
14118   IFS=$as_save_IFS
14119   test -z "$as_dir" && as_dir=.
14120   for ac_exec_ext in '' $ac_executable_extensions; do
14121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122     ac_cv_prog_PDFTEX="$ac_prog"
14123     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14124     break 2
14125   fi
14126 done
14127 done
14128 IFS=$as_save_IFS
14129
14130 fi
14131 fi
14132 PDFTEX=$ac_cv_prog_PDFTEX
14133 if test -n "$PDFTEX"; then
14134   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14135 $as_echo "$PDFTEX" >&6; }
14136 else
14137   { $as_echo "$as_me:$LINENO: result: no" >&5
14138 $as_echo "no" >&6; }
14139 fi
14140
14141
14142   test -n "$PDFTEX" && break
14143 done
14144 test -n "$PDFTEX" || PDFTEX="no"
14145
14146
14147
14148     r="`eval echo '$'"PDFTEX"`"
14149     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14150         true
14151     else
14152         ##STEPMAKE_WARN(cannot find . )
14153         false
14154     fi
14155
14156     if test $? -ne 0; then
14157
14158     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
14159
14160         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14161             command="echo ERROR: pdfetex pdftex etex not found"
14162             # abort configure process here?
14163         else
14164             command="- echo pdfetex pdftex etex not found"
14165         fi
14166         eval "PDFTEX"='$command'
14167         false
14168     else
14169         true
14170     fi
14171
14172     if test $? -eq 0 -a -n ""; then
14173
14174     r="`eval echo '$'"PDFTEX"`"
14175     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14176 $as_echo_n "checking $r version... " >&6; }
14177     exe=`
14178     ## which doesn't work in ash, if /usr/bin/which isn't installed
14179     ## type -p doesn't work in ash
14180     ## command -v doesn't work in zsh
14181     ## command -v "$r" 2>&1
14182     ## this test should work in ash, bash, pdksh (ksh), zsh
14183     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14184 `
14185     if test -n ""; then
14186         ver=""
14187     else
14188         ver=`
14189     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14190     ##
14191     ## ARG.
14192     ## Workaround for broken Debian gcc version string:
14193     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14194     ##
14195     ## -V: Workaround for python
14196
14197     #dnl
14198
14199     ## Assume and hunt for dotted version multiplet.
14200     ## use eval trickery, because we cannot use multi-level $() instead of ``
14201     ## for compatibility reasons.
14202
14203     ## grab the first version number in  --version output.
14204     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14205                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14206                 head -n 1 |
14207                 tr ' ' '\n' |
14208                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14209                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14210                 head -n 1\`\"
14211
14212     if test -z "$_ver"; then
14213         ## If empty, try date [fontforge]
14214         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14215             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14216             | head -n 1 \
14217             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14218     fi
14219     echo "$_ver"
14220     #dnl
14221 `
14222     fi
14223     num=`
14224     echo "$ver" | awk -F. '
14225     {
14226       if ($3) {three = $3}
14227       else {three = 0}
14228     }
14229     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14230 `
14231     req=`
14232     echo "" | awk -F. '
14233     {
14234       if ($3) {three = $3}
14235       else {three = 0}
14236     }
14237     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14238 `
14239     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14240 $as_echo "$ver" >&6; }
14241     if test "$num" -lt "$req"; then
14242
14243     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14244
14245     fi
14246     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14247     eval `echo $vervar=$num`
14248 ##    AC_SUBST(`eval echo $vervar`)
14249
14250     fi
14251
14252 fi
14253
14254     for ac_prog in texi2pdf
14255 do
14256   # Extract the first word of "$ac_prog", so it can be a program name with args.
14257 set dummy $ac_prog; ac_word=$2
14258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
14261   $as_echo_n "(cached) " >&6
14262 else
14263   if test -n "$TEXI2PDF"; then
14264   ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
14265 else
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14268 do
14269   IFS=$as_save_IFS
14270   test -z "$as_dir" && as_dir=.
14271   for ac_exec_ext in '' $ac_executable_extensions; do
14272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273     ac_cv_prog_TEXI2PDF="$ac_prog"
14274     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14275     break 2
14276   fi
14277 done
14278 done
14279 IFS=$as_save_IFS
14280
14281 fi
14282 fi
14283 TEXI2PDF=$ac_cv_prog_TEXI2PDF
14284 if test -n "$TEXI2PDF"; then
14285   { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
14286 $as_echo "$TEXI2PDF" >&6; }
14287 else
14288   { $as_echo "$as_me:$LINENO: result: no" >&5
14289 $as_echo "no" >&6; }
14290 fi
14291
14292
14293   test -n "$TEXI2PDF" && break
14294 done
14295 test -n "$TEXI2PDF" || TEXI2PDF="no"
14296
14297
14298
14299     r="`eval echo '$'"TEXI2PDF"`"
14300     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
14301         true
14302     else
14303         ##STEPMAKE_WARN(cannot find . )
14304         false
14305     fi
14306
14307     if test $? -ne 0; then
14308
14309     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
14310
14311         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14312             command="echo ERROR: texi2pdf not found"
14313             # abort configure process here?
14314         else
14315             command="- echo texi2pdf not found"
14316         fi
14317         eval "TEXI2PDF"='$command'
14318         false
14319     else
14320         true
14321     fi
14322
14323     if test $? -eq 0 -a -n ""; then
14324
14325     r="`eval echo '$'"TEXI2PDF"`"
14326     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14327 $as_echo_n "checking $r version... " >&6; }
14328     exe=`
14329     ## which doesn't work in ash, if /usr/bin/which isn't installed
14330     ## type -p doesn't work in ash
14331     ## command -v doesn't work in zsh
14332     ## command -v "$r" 2>&1
14333     ## this test should work in ash, bash, pdksh (ksh), zsh
14334     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14335 `
14336     if test -n ""; then
14337         ver=""
14338     else
14339         ver=`
14340     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14341     ##
14342     ## ARG.
14343     ## Workaround for broken Debian gcc version string:
14344     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14345     ##
14346     ## -V: Workaround for python
14347
14348     #dnl
14349
14350     ## Assume and hunt for dotted version multiplet.
14351     ## use eval trickery, because we cannot use multi-level $() instead of ``
14352     ## for compatibility reasons.
14353
14354     ## grab the first version number in  --version output.
14355     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14356                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14357                 head -n 1 |
14358                 tr ' ' '\n' |
14359                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14360                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14361                 head -n 1\`\"
14362
14363     if test -z "$_ver"; then
14364         ## If empty, try date [fontforge]
14365         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14366             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14367             | head -n 1 \
14368             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14369     fi
14370     echo "$_ver"
14371     #dnl
14372 `
14373     fi
14374     num=`
14375     echo "$ver" | awk -F. '
14376     {
14377       if ($3) {three = $3}
14378       else {three = 0}
14379     }
14380     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14381 `
14382     req=`
14383     echo "" | awk -F. '
14384     {
14385       if ($3) {three = $3}
14386       else {three = 0}
14387     }
14388     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14389 `
14390     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14391 $as_echo "$ver" >&6; }
14392     if test "$num" -lt "$req"; then
14393
14394     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14395
14396     fi
14397     vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
14398     eval `echo $vervar=$num`
14399 ##    AC_SUBST(`eval echo $vervar`)
14400
14401     fi
14402
14403
14404     for ac_prog in texindex
14405 do
14406   # Extract the first word of "$ac_prog", so it can be a program name with args.
14407 set dummy $ac_prog; ac_word=$2
14408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14409 $as_echo_n "checking for $ac_word... " >&6; }
14410 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
14411   $as_echo_n "(cached) " >&6
14412 else
14413   if test -n "$TEXINDEX"; then
14414   ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
14415 else
14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417 for as_dir in $PATH
14418 do
14419   IFS=$as_save_IFS
14420   test -z "$as_dir" && as_dir=.
14421   for ac_exec_ext in '' $ac_executable_extensions; do
14422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14423     ac_cv_prog_TEXINDEX="$ac_prog"
14424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14425     break 2
14426   fi
14427 done
14428 done
14429 IFS=$as_save_IFS
14430
14431 fi
14432 fi
14433 TEXINDEX=$ac_cv_prog_TEXINDEX
14434 if test -n "$TEXINDEX"; then
14435   { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
14436 $as_echo "$TEXINDEX" >&6; }
14437 else
14438   { $as_echo "$as_me:$LINENO: result: no" >&5
14439 $as_echo "no" >&6; }
14440 fi
14441
14442
14443   test -n "$TEXINDEX" && break
14444 done
14445 test -n "$TEXINDEX" || TEXINDEX="no"
14446
14447
14448
14449     r="`eval echo '$'"TEXINDEX"`"
14450     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
14451         true
14452     else
14453         ##STEPMAKE_WARN(cannot find . )
14454         false
14455     fi
14456
14457     if test $? -ne 0; then
14458
14459     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
14460
14461         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14462             command="echo ERROR: texindex not found"
14463             # abort configure process here?
14464         else
14465             command="- echo texindex not found"
14466         fi
14467         eval "TEXINDEX"='$command'
14468         false
14469     else
14470         true
14471     fi
14472
14473     if test $? -eq 0 -a -n ""; then
14474
14475     r="`eval echo '$'"TEXINDEX"`"
14476     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14477 $as_echo_n "checking $r version... " >&6; }
14478     exe=`
14479     ## which doesn't work in ash, if /usr/bin/which isn't installed
14480     ## type -p doesn't work in ash
14481     ## command -v doesn't work in zsh
14482     ## command -v "$r" 2>&1
14483     ## this test should work in ash, bash, pdksh (ksh), zsh
14484     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14485 `
14486     if test -n ""; then
14487         ver=""
14488     else
14489         ver=`
14490     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14491     ##
14492     ## ARG.
14493     ## Workaround for broken Debian gcc version string:
14494     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14495     ##
14496     ## -V: Workaround for python
14497
14498     #dnl
14499
14500     ## Assume and hunt for dotted version multiplet.
14501     ## use eval trickery, because we cannot use multi-level $() instead of ``
14502     ## for compatibility reasons.
14503
14504     ## grab the first version number in  --version output.
14505     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14506                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14507                 head -n 1 |
14508                 tr ' ' '\n' |
14509                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14510                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14511                 head -n 1\`\"
14512
14513     if test -z "$_ver"; then
14514         ## If empty, try date [fontforge]
14515         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14516             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14517             | head -n 1 \
14518             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14519     fi
14520     echo "$_ver"
14521     #dnl
14522 `
14523     fi
14524     num=`
14525     echo "$ver" | awk -F. '
14526     {
14527       if ($3) {three = $3}
14528       else {three = 0}
14529     }
14530     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14531 `
14532     req=`
14533     echo "" | awk -F. '
14534     {
14535       if ($3) {three = $3}
14536       else {three = 0}
14537     }
14538     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14539 `
14540     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14541 $as_echo "$ver" >&6; }
14542     if test "$num" -lt "$req"; then
14543
14544     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14545
14546     fi
14547     vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
14548     eval `echo $vervar=$num`
14549 ##    AC_SUBST(`eval echo $vervar`)
14550
14551     fi
14552
14553 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
14554 $as_echo_n "checking for epsf.tex... " >&6; }
14555 TEX_EPSF=`kpsewhich tex epsf`
14556 if test "$TEX_EPSF" = ""; then
14557     { $as_echo "$as_me:$LINENO: result: not found" >&5
14558 $as_echo "not found" >&6; }
14559
14560     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
14561
14562 else
14563     { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
14564 $as_echo "$TEX_EPSF" >&6; }
14565 fi
14566 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
14567 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
14568 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
14569 if test "$TEX_FIKPARM" = ""; then
14570     { $as_echo "$as_me:$LINENO: result: not found" >&5
14571 $as_echo "not found" >&6; }
14572
14573     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
14574
14575 else
14576     { $as_echo "$as_me:$LINENO: result: yes" >&5
14577 $as_echo "yes" >&6; }
14578 fi
14579
14580     for ac_prog in pngtopnm
14581 do
14582   # Extract the first word of "$ac_prog", so it can be a program name with args.
14583 set dummy $ac_prog; ac_word=$2
14584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14585 $as_echo_n "checking for $ac_word... " >&6; }
14586 if test "${ac_cv_prog_NETPBM+set}" = set; then
14587   $as_echo_n "(cached) " >&6
14588 else
14589   if test -n "$NETPBM"; then
14590   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
14591 else
14592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14593 for as_dir in $PATH
14594 do
14595   IFS=$as_save_IFS
14596   test -z "$as_dir" && as_dir=.
14597   for ac_exec_ext in '' $ac_executable_extensions; do
14598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14599     ac_cv_prog_NETPBM="$ac_prog"
14600     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14601     break 2
14602   fi
14603 done
14604 done
14605 IFS=$as_save_IFS
14606
14607 fi
14608 fi
14609 NETPBM=$ac_cv_prog_NETPBM
14610 if test -n "$NETPBM"; then
14611   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
14612 $as_echo "$NETPBM" >&6; }
14613 else
14614   { $as_echo "$as_me:$LINENO: result: no" >&5
14615 $as_echo "no" >&6; }
14616 fi
14617
14618
14619   test -n "$NETPBM" && break
14620 done
14621 test -n "$NETPBM" || NETPBM="no"
14622
14623
14624
14625     r="`eval echo '$'"NETPBM"`"
14626     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
14627         true
14628     else
14629         ##STEPMAKE_WARN(cannot find . )
14630         false
14631     fi
14632
14633     if test $? -ne 0; then
14634
14635     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
14636
14637         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14638             command="echo ERROR: pngtopnm not found"
14639             # abort configure process here?
14640         else
14641             command="- echo pngtopnm not found"
14642         fi
14643         eval "NETPBM"='$command'
14644         false
14645     else
14646         true
14647     fi
14648
14649     if test $? -eq 0 -a -n ""; then
14650
14651     r="`eval echo '$'"NETPBM"`"
14652     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14653 $as_echo_n "checking $r version... " >&6; }
14654     exe=`
14655     ## which doesn't work in ash, if /usr/bin/which isn't installed
14656     ## type -p doesn't work in ash
14657     ## command -v doesn't work in zsh
14658     ## command -v "$r" 2>&1
14659     ## this test should work in ash, bash, pdksh (ksh), zsh
14660     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14661 `
14662     if test -n ""; then
14663         ver=""
14664     else
14665         ver=`
14666     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14667     ##
14668     ## ARG.
14669     ## Workaround for broken Debian gcc version string:
14670     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14671     ##
14672     ## -V: Workaround for python
14673
14674     #dnl
14675
14676     ## Assume and hunt for dotted version multiplet.
14677     ## use eval trickery, because we cannot use multi-level $() instead of ``
14678     ## for compatibility reasons.
14679
14680     ## grab the first version number in  --version output.
14681     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14682                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14683                 head -n 1 |
14684                 tr ' ' '\n' |
14685                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14686                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14687                 head -n 1\`\"
14688
14689     if test -z "$_ver"; then
14690         ## If empty, try date [fontforge]
14691         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14692             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14693             | head -n 1 \
14694             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14695     fi
14696     echo "$_ver"
14697     #dnl
14698 `
14699     fi
14700     num=`
14701     echo "$ver" | awk -F. '
14702     {
14703       if ($3) {three = $3}
14704       else {three = 0}
14705     }
14706     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14707 `
14708     req=`
14709     echo "" | awk -F. '
14710     {
14711       if ($3) {three = $3}
14712       else {three = 0}
14713     }
14714     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14715 `
14716     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14717 $as_echo "$ver" >&6; }
14718     if test "$num" -lt "$req"; then
14719
14720     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14721
14722     fi
14723     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
14724     eval `echo $vervar=$num`
14725 ##    AC_SUBST(`eval echo $vervar`)
14726
14727     fi
14728
14729
14730     for ac_prog in convert
14731 do
14732   # Extract the first word of "$ac_prog", so it can be a program name with args.
14733 set dummy $ac_prog; ac_word=$2
14734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14735 $as_echo_n "checking for $ac_word... " >&6; }
14736 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
14737   $as_echo_n "(cached) " >&6
14738 else
14739   if test -n "$IMAGEMAGICK"; then
14740   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
14741 else
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14744 do
14745   IFS=$as_save_IFS
14746   test -z "$as_dir" && as_dir=.
14747   for ac_exec_ext in '' $ac_executable_extensions; do
14748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14749     ac_cv_prog_IMAGEMAGICK="$ac_prog"
14750     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14751     break 2
14752   fi
14753 done
14754 done
14755 IFS=$as_save_IFS
14756
14757 fi
14758 fi
14759 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
14760 if test -n "$IMAGEMAGICK"; then
14761   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
14762 $as_echo "$IMAGEMAGICK" >&6; }
14763 else
14764   { $as_echo "$as_me:$LINENO: result: no" >&5
14765 $as_echo "no" >&6; }
14766 fi
14767
14768
14769   test -n "$IMAGEMAGICK" && break
14770 done
14771 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
14772
14773
14774
14775     r="`eval echo '$'"IMAGEMAGICK"`"
14776     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
14777         true
14778     else
14779         ##STEPMAKE_WARN(cannot find . )
14780         false
14781     fi
14782
14783     if test $? -ne 0; then
14784
14785     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
14786
14787         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14788             command="echo ERROR: convert not found"
14789             # abort configure process here?
14790         else
14791             command="- echo convert not found"
14792         fi
14793         eval "IMAGEMAGICK"='$command'
14794         false
14795     else
14796         true
14797     fi
14798
14799     if test $? -eq 0 -a -n ""; then
14800
14801     r="`eval echo '$'"IMAGEMAGICK"`"
14802     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14803 $as_echo_n "checking $r version... " >&6; }
14804     exe=`
14805     ## which doesn't work in ash, if /usr/bin/which isn't installed
14806     ## type -p doesn't work in ash
14807     ## command -v doesn't work in zsh
14808     ## command -v "$r" 2>&1
14809     ## this test should work in ash, bash, pdksh (ksh), zsh
14810     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14811 `
14812     if test -n ""; then
14813         ver=""
14814     else
14815         ver=`
14816     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14817     ##
14818     ## ARG.
14819     ## Workaround for broken Debian gcc version string:
14820     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14821     ##
14822     ## -V: Workaround for python
14823
14824     #dnl
14825
14826     ## Assume and hunt for dotted version multiplet.
14827     ## use eval trickery, because we cannot use multi-level $() instead of ``
14828     ## for compatibility reasons.
14829
14830     ## grab the first version number in  --version output.
14831     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14832                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14833                 head -n 1 |
14834                 tr ' ' '\n' |
14835                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14836                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14837                 head -n 1\`\"
14838
14839     if test -z "$_ver"; then
14840         ## If empty, try date [fontforge]
14841         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14842             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14843             | head -n 1 \
14844             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14845     fi
14846     echo "$_ver"
14847     #dnl
14848 `
14849     fi
14850     num=`
14851     echo "$ver" | awk -F. '
14852     {
14853       if ($3) {three = $3}
14854       else {three = 0}
14855     }
14856     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14857 `
14858     req=`
14859     echo "" | awk -F. '
14860     {
14861       if ($3) {three = $3}
14862       else {three = 0}
14863     }
14864     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14865 `
14866     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14867 $as_echo "$ver" >&6; }
14868     if test "$num" -lt "$req"; then
14869
14870     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14871
14872     fi
14873     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
14874     eval `echo $vervar=$num`
14875 ##    AC_SUBST(`eval echo $vervar`)
14876
14877     fi
14878
14879 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
14880
14881     for ac_prog in zip
14882 do
14883   # Extract the first word of "$ac_prog", so it can be a program name with args.
14884 set dummy $ac_prog; ac_word=$2
14885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14886 $as_echo_n "checking for $ac_word... " >&6; }
14887 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
14888   $as_echo_n "(cached) " >&6
14889 else
14890   if test -n "$ZIPDOC"; then
14891   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
14892 else
14893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894 for as_dir in $PATH
14895 do
14896   IFS=$as_save_IFS
14897   test -z "$as_dir" && as_dir=.
14898   for ac_exec_ext in '' $ac_executable_extensions; do
14899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14900     ac_cv_prog_ZIPDOC="$ac_prog"
14901     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14902     break 2
14903   fi
14904 done
14905 done
14906 IFS=$as_save_IFS
14907
14908 fi
14909 fi
14910 ZIPDOC=$ac_cv_prog_ZIPDOC
14911 if test -n "$ZIPDOC"; then
14912   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
14913 $as_echo "$ZIPDOC" >&6; }
14914 else
14915   { $as_echo "$as_me:$LINENO: result: no" >&5
14916 $as_echo "no" >&6; }
14917 fi
14918
14919
14920   test -n "$ZIPDOC" && break
14921 done
14922 test -n "$ZIPDOC" || ZIPDOC="no"
14923
14924
14925
14926     r="`eval echo '$'"ZIPDOC"`"
14927     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
14928         true
14929     else
14930         ##STEPMAKE_WARN(cannot find . )
14931         false
14932     fi
14933
14934     if test $? -ne 0; then
14935
14936     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
14937
14938         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14939             command="echo ERROR: zip not found"
14940             # abort configure process here?
14941         else
14942             command="- echo zip not found"
14943         fi
14944         eval "ZIPDOC"='$command'
14945         false
14946     else
14947         true
14948     fi
14949
14950     if test $? -eq 0 -a -n ""; then
14951
14952     r="`eval echo '$'"ZIPDOC"`"
14953     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14954 $as_echo_n "checking $r version... " >&6; }
14955     exe=`
14956     ## which doesn't work in ash, if /usr/bin/which isn't installed
14957     ## type -p doesn't work in ash
14958     ## command -v doesn't work in zsh
14959     ## command -v "$r" 2>&1
14960     ## this test should work in ash, bash, pdksh (ksh), zsh
14961     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14962 `
14963     if test -n ""; then
14964         ver=""
14965     else
14966         ver=`
14967     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14968     ##
14969     ## ARG.
14970     ## Workaround for broken Debian gcc version string:
14971     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14972     ##
14973     ## -V: Workaround for python
14974
14975     #dnl
14976
14977     ## Assume and hunt for dotted version multiplet.
14978     ## use eval trickery, because we cannot use multi-level $() instead of ``
14979     ## for compatibility reasons.
14980
14981     ## grab the first version number in  --version output.
14982     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14983                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14984                 head -n 1 |
14985                 tr ' ' '\n' |
14986                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14987                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14988                 head -n 1\`\"
14989
14990     if test -z "$_ver"; then
14991         ## If empty, try date [fontforge]
14992         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14993             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14994             | head -n 1 \
14995             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14996     fi
14997     echo "$_ver"
14998     #dnl
14999 `
15000     fi
15001     num=`
15002     echo "$ver" | awk -F. '
15003     {
15004       if ($3) {three = $3}
15005       else {three = 0}
15006     }
15007     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15008 `
15009     req=`
15010     echo "" | awk -F. '
15011     {
15012       if ($3) {three = $3}
15013       else {three = 0}
15014     }
15015     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15016 `
15017     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15018 $as_echo "$ver" >&6; }
15019     if test "$num" -lt "$req"; then
15020
15021     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15022
15023     fi
15024     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
15025     eval `echo $vervar=$num`
15026 ##    AC_SUBST(`eval echo $vervar`)
15027
15028     fi
15029
15030
15031     for ac_prog in rsync
15032 do
15033   # Extract the first word of "$ac_prog", so it can be a program name with args.
15034 set dummy $ac_prog; ac_word=$2
15035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15036 $as_echo_n "checking for $ac_word... " >&6; }
15037 if test "${ac_cv_prog_RSYNC+set}" = set; then
15038   $as_echo_n "(cached) " >&6
15039 else
15040   if test -n "$RSYNC"; then
15041   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
15042 else
15043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044 for as_dir in $PATH
15045 do
15046   IFS=$as_save_IFS
15047   test -z "$as_dir" && as_dir=.
15048   for ac_exec_ext in '' $ac_executable_extensions; do
15049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15050     ac_cv_prog_RSYNC="$ac_prog"
15051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15052     break 2
15053   fi
15054 done
15055 done
15056 IFS=$as_save_IFS
15057
15058 fi
15059 fi
15060 RSYNC=$ac_cv_prog_RSYNC
15061 if test -n "$RSYNC"; then
15062   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
15063 $as_echo "$RSYNC" >&6; }
15064 else
15065   { $as_echo "$as_me:$LINENO: result: no" >&5
15066 $as_echo "no" >&6; }
15067 fi
15068
15069
15070   test -n "$RSYNC" && break
15071 done
15072 test -n "$RSYNC" || RSYNC="no"
15073
15074
15075
15076     r="`eval echo '$'"RSYNC"`"
15077     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
15078         true
15079     else
15080         ##STEPMAKE_WARN(cannot find . )
15081         false
15082     fi
15083
15084     if test $? -ne 0; then
15085
15086     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
15087
15088         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15089             command="echo ERROR: rsync not found"
15090             # abort configure process here?
15091         else
15092             command="- echo rsync not found"
15093         fi
15094         eval "RSYNC"='$command'
15095         false
15096     else
15097         true
15098     fi
15099
15100     if test $? -eq 0 -a -n ""; then
15101
15102     r="`eval echo '$'"RSYNC"`"
15103     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15104 $as_echo_n "checking $r version... " >&6; }
15105     exe=`
15106     ## which doesn't work in ash, if /usr/bin/which isn't installed
15107     ## type -p doesn't work in ash
15108     ## command -v doesn't work in zsh
15109     ## command -v "$r" 2>&1
15110     ## this test should work in ash, bash, pdksh (ksh), zsh
15111     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15112 `
15113     if test -n ""; then
15114         ver=""
15115     else
15116         ver=`
15117     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15118     ##
15119     ## ARG.
15120     ## Workaround for broken Debian gcc version string:
15121     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15122     ##
15123     ## -V: Workaround for python
15124
15125     #dnl
15126
15127     ## Assume and hunt for dotted version multiplet.
15128     ## use eval trickery, because we cannot use multi-level $() instead of ``
15129     ## for compatibility reasons.
15130
15131     ## grab the first version number in  --version output.
15132     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15133                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15134                 head -n 1 |
15135                 tr ' ' '\n' |
15136                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15137                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15138                 head -n 1\`\"
15139
15140     if test -z "$_ver"; then
15141         ## If empty, try date [fontforge]
15142         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15143             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15144             | head -n 1 \
15145             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15146     fi
15147     echo "$_ver"
15148     #dnl
15149 `
15150     fi
15151     num=`
15152     echo "$ver" | awk -F. '
15153     {
15154       if ($3) {three = $3}
15155       else {three = 0}
15156     }
15157     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15158 `
15159     req=`
15160     echo "" | awk -F. '
15161     {
15162       if ($3) {three = $3}
15163       else {three = 0}
15164     }
15165     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15166 `
15167     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15168 $as_echo "$ver" >&6; }
15169     if test "$num" -lt "$req"; then
15170
15171     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15172
15173     fi
15174     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
15175     eval `echo $vervar=$num`
15176 ##    AC_SUBST(`eval echo $vervar`)
15177
15178     fi
15179
15180
15181 cat >>confdefs.h <<_ACEOF
15182 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
15183 _ACEOF
15184
15185
15186 # must also have local.make if configure fails.
15187 touch local.make
15188
15189 if test "$reloc_b$rpath_b" = "yesno"; then
15190
15191     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
15192 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
15193     warn_b=yes
15194
15195 fi
15196
15197 # Gather requirements and generate output.
15198
15199
15200     # undo expanding of explicit --infodir=/usr/share
15201     # to ease install-time override with prefix=...
15202     strip=`echo $includedir | eval sed s@^$prefix@@`
15203     if test "$includedir" = "`eval echo $prefix$strip`"; then
15204             includedir='${prefix}'$strip''
15205     fi
15206     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
15207     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
15208             libdir='${exec_prefix}'$strip''
15209     fi
15210     strip=`echo $infodir | eval sed s@^$datarootdir@@`
15211     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
15212             infodir='${datarootdir}'$strip''
15213     fi
15214     strip=`echo $mandir | eval sed s@^$datarootdir@@`
15215     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
15216             mandir='${datarootdir}'$strip''
15217     fi
15218
15219
15220
15221
15222
15223     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
15224
15225     cat >confcache <<\_ACEOF
15226 # This file is a shell script that caches the results of configure
15227 # tests run on this system so they can be shared between configure
15228 # scripts and configure runs, see configure's option --config-cache.
15229 # It is not useful on other systems.  If it contains results you don't
15230 # want to keep, you may remove or edit it.
15231 #
15232 # config.status only pays attention to the cache file if you give it
15233 # the --recheck option to rerun configure.
15234 #
15235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15237 # following values.
15238
15239 _ACEOF
15240
15241 # The following way of writing the cache mishandles newlines in values,
15242 # but we know of no workaround that is simple, portable, and efficient.
15243 # So, we kill variables containing newlines.
15244 # Ultrix sh set writes to stderr and can't be redirected directly,
15245 # and sets the high bit in the cache file unless we assign to the vars.
15246 (
15247   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15248     eval ac_val=\$$ac_var
15249     case $ac_val in #(
15250     *${as_nl}*)
15251       case $ac_var in #(
15252       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15254       esac
15255       case $ac_var in #(
15256       _ | IFS | as_nl) ;; #(
15257       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15258       *) $as_unset $ac_var ;;
15259       esac ;;
15260     esac
15261   done
15262
15263   (set) 2>&1 |
15264     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15265     *${as_nl}ac_space=\ *)
15266       # `set' does not quote correctly, so add quotes (double-quote
15267       # substitution turns \\\\ into \\, and sed turns \\ into \).
15268       sed -n \
15269         "s/'/'\\\\''/g;
15270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15271       ;; #(
15272     *)
15273       # `set' quotes correctly as required by POSIX, so do not add quotes.
15274       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15275       ;;
15276     esac |
15277     sort
15278 ) |
15279   sed '
15280      /^ac_cv_env_/b end
15281      t clear
15282      :clear
15283      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15284      t end
15285      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15286      :end' >>confcache
15287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15288   if test -w "$cache_file"; then
15289     test "x$cache_file" != "x/dev/null" &&
15290       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15291 $as_echo "$as_me: updating cache $cache_file" >&6;}
15292     cat confcache >$cache_file
15293   else
15294     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15296   fi
15297 fi
15298 rm -f confcache
15299
15300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15301 # Let make expand exec_prefix.
15302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15303
15304 DEFS=-DHAVE_CONFIG_H
15305
15306 ac_libobjs=
15307 ac_ltlibobjs=
15308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15309   # 1. Remove the extension, and $U if already installed.
15310   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15311   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15312   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15313   #    will be set to the directory where LIBOBJS objects are built.
15314   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15315   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15316 done
15317 LIBOBJS=$ac_libobjs
15318
15319 LTLIBOBJS=$ac_ltlibobjs
15320
15321
15322
15323 : ${CONFIG_STATUS=./config.status}
15324 ac_write_fail=0
15325 ac_clean_files_save=$ac_clean_files
15326 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15327 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15328 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15329 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330 #! $SHELL
15331 # Generated by $as_me.
15332 # Run this file to recreate the current configuration.
15333 # Compiler output produced by configure, useful for debugging
15334 # configure, is in config.log if it exists.
15335
15336 debug=false
15337 ac_cs_recheck=false
15338 ac_cs_silent=false
15339 SHELL=\${CONFIG_SHELL-$SHELL}
15340 _ACEOF
15341
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 ## --------------------- ##
15344 ## M4sh Initialization.  ##
15345 ## --------------------- ##
15346
15347 # Be more Bourne compatible
15348 DUALCASE=1; export DUALCASE # for MKS sh
15349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15350   emulate sh
15351   NULLCMD=:
15352   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15353   # is contrary to our usage.  Disable this feature.
15354   alias -g '${1+"$@"}'='"$@"'
15355   setopt NO_GLOB_SUBST
15356 else
15357   case `(set -o) 2>/dev/null` in
15358   *posix*) set -o posix ;;
15359 esac
15360
15361 fi
15362
15363
15364
15365
15366 # PATH needs CR
15367 # Avoid depending upon Character Ranges.
15368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15371 as_cr_digits='0123456789'
15372 as_cr_alnum=$as_cr_Letters$as_cr_digits
15373
15374 as_nl='
15375 '
15376 export as_nl
15377 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15378 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15380 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15381 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15382   as_echo='printf %s\n'
15383   as_echo_n='printf %s'
15384 else
15385   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15386     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15387     as_echo_n='/usr/ucb/echo -n'
15388   else
15389     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15390     as_echo_n_body='eval
15391       arg=$1;
15392       case $arg in
15393       *"$as_nl"*)
15394         expr "X$arg" : "X\\(.*\\)$as_nl";
15395         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15396       esac;
15397       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15398     '
15399     export as_echo_n_body
15400     as_echo_n='sh -c $as_echo_n_body as_echo'
15401   fi
15402   export as_echo_body
15403   as_echo='sh -c $as_echo_body as_echo'
15404 fi
15405
15406 # The user is always right.
15407 if test "${PATH_SEPARATOR+set}" != set; then
15408   PATH_SEPARATOR=:
15409   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15410     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15411       PATH_SEPARATOR=';'
15412   }
15413 fi
15414
15415 # Support unset when possible.
15416 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15417   as_unset=unset
15418 else
15419   as_unset=false
15420 fi
15421
15422
15423 # IFS
15424 # We need space, tab and new line, in precisely that order.  Quoting is
15425 # there to prevent editors from complaining about space-tab.
15426 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15427 # splitting by setting IFS to empty value.)
15428 IFS=" ""        $as_nl"
15429
15430 # Find who we are.  Look in the path if we contain no directory separator.
15431 case $0 in
15432   *[\\/]* ) as_myself=$0 ;;
15433   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15434 for as_dir in $PATH
15435 do
15436   IFS=$as_save_IFS
15437   test -z "$as_dir" && as_dir=.
15438   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15439 done
15440 IFS=$as_save_IFS
15441
15442      ;;
15443 esac
15444 # We did not find ourselves, most probably we were run as `sh COMMAND'
15445 # in which case we are not to be found in the path.
15446 if test "x$as_myself" = x; then
15447   as_myself=$0
15448 fi
15449 if test ! -f "$as_myself"; then
15450   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15451   { (exit 1); exit 1; }
15452 fi
15453
15454 # Work around bugs in pre-3.0 UWIN ksh.
15455 for as_var in ENV MAIL MAILPATH
15456 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15457 done
15458 PS1='$ '
15459 PS2='> '
15460 PS4='+ '
15461
15462 # NLS nuisances.
15463 LC_ALL=C
15464 export LC_ALL
15465 LANGUAGE=C
15466 export LANGUAGE
15467
15468 # Required to use basename.
15469 if expr a : '\(a\)' >/dev/null 2>&1 &&
15470    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15471   as_expr=expr
15472 else
15473   as_expr=false
15474 fi
15475
15476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15477   as_basename=basename
15478 else
15479   as_basename=false
15480 fi
15481
15482
15483 # Name of the executable.
15484 as_me=`$as_basename -- "$0" ||
15485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15486          X"$0" : 'X\(//\)$' \| \
15487          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15488 $as_echo X/"$0" |
15489     sed '/^.*\/\([^/][^/]*\)\/*$/{
15490             s//\1/
15491             q
15492           }
15493           /^X\/\(\/\/\)$/{
15494             s//\1/
15495             q
15496           }
15497           /^X\/\(\/\).*/{
15498             s//\1/
15499             q
15500           }
15501           s/.*/./; q'`
15502
15503 # CDPATH.
15504 $as_unset CDPATH
15505
15506
15507
15508   as_lineno_1=$LINENO
15509   as_lineno_2=$LINENO
15510   test "x$as_lineno_1" != "x$as_lineno_2" &&
15511   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15512
15513   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15514   # uniformly replaced by the line number.  The first 'sed' inserts a
15515   # line-number line after each line using $LINENO; the second 'sed'
15516   # does the real work.  The second script uses 'N' to pair each
15517   # line-number line with the line containing $LINENO, and appends
15518   # trailing '-' during substitution so that $LINENO is not a special
15519   # case at line end.
15520   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15521   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15522   # E. McMahon (1931-1989) for sed's syntax.  :-)
15523   sed -n '
15524     p
15525     /[$]LINENO/=
15526   ' <$as_myself |
15527     sed '
15528       s/[$]LINENO.*/&-/
15529       t lineno
15530       b
15531       :lineno
15532       N
15533       :loop
15534       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15535       t loop
15536       s/-\n.*//
15537     ' >$as_me.lineno &&
15538   chmod +x "$as_me.lineno" ||
15539     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15540    { (exit 1); exit 1; }; }
15541
15542   # Don't try to exec as it changes $[0], causing all sort of problems
15543   # (the dirname of $[0] is not the place where we might find the
15544   # original and so on.  Autoconf is especially sensitive to this).
15545   . "./$as_me.lineno"
15546   # Exit status is that of the last command.
15547   exit
15548 }
15549
15550
15551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15552   as_dirname=dirname
15553 else
15554   as_dirname=false
15555 fi
15556
15557 ECHO_C= ECHO_N= ECHO_T=
15558 case `echo -n x` in
15559 -n*)
15560   case `echo 'x\c'` in
15561   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15562   *)   ECHO_C='\c';;
15563   esac;;
15564 *)
15565   ECHO_N='-n';;
15566 esac
15567 if expr a : '\(a\)' >/dev/null 2>&1 &&
15568    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15569   as_expr=expr
15570 else
15571   as_expr=false
15572 fi
15573
15574 rm -f conf$$ conf$$.exe conf$$.file
15575 if test -d conf$$.dir; then
15576   rm -f conf$$.dir/conf$$.file
15577 else
15578   rm -f conf$$.dir
15579   mkdir conf$$.dir 2>/dev/null
15580 fi
15581 if (echo >conf$$.file) 2>/dev/null; then
15582   if ln -s conf$$.file conf$$ 2>/dev/null; then
15583     as_ln_s='ln -s'
15584     # ... but there are two gotchas:
15585     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15586     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15587     # In both cases, we have to default to `cp -p'.
15588     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15589       as_ln_s='cp -p'
15590   elif ln conf$$.file conf$$ 2>/dev/null; then
15591     as_ln_s=ln
15592   else
15593     as_ln_s='cp -p'
15594   fi
15595 else
15596   as_ln_s='cp -p'
15597 fi
15598 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15599 rmdir conf$$.dir 2>/dev/null
15600
15601 if mkdir -p . 2>/dev/null; then
15602   as_mkdir_p=:
15603 else
15604   test -d ./-p && rmdir ./-p
15605   as_mkdir_p=false
15606 fi
15607
15608 if test -x / >/dev/null 2>&1; then
15609   as_test_x='test -x'
15610 else
15611   if ls -dL / >/dev/null 2>&1; then
15612     as_ls_L_option=L
15613   else
15614     as_ls_L_option=
15615   fi
15616   as_test_x='
15617     eval sh -c '\''
15618       if test -d "$1"; then
15619         test -d "$1/.";
15620       else
15621         case $1 in
15622         -*)set "./$1";;
15623         esac;
15624         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15625         ???[sx]*):;;*)false;;esac;fi
15626     '\'' sh
15627   '
15628 fi
15629 as_executable_p=$as_test_x
15630
15631 # Sed expression to map a string onto a valid CPP name.
15632 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15633
15634 # Sed expression to map a string onto a valid variable name.
15635 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15636
15637
15638 exec 6>&1
15639
15640 # Save the log message, to keep $[0] and so on meaningful, and to
15641 # report actual input values of CONFIG_FILES etc. instead of their
15642 # values after options handling.
15643 ac_log="
15644 This file was extended by $as_me, which was
15645 generated by GNU Autoconf 2.63.  Invocation command line was
15646
15647   CONFIG_FILES    = $CONFIG_FILES
15648   CONFIG_HEADERS  = $CONFIG_HEADERS
15649   CONFIG_LINKS    = $CONFIG_LINKS
15650   CONFIG_COMMANDS = $CONFIG_COMMANDS
15651   $ $0 $@
15652
15653 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15654 "
15655
15656 _ACEOF
15657
15658 case $ac_config_files in *"
15659 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15660 esac
15661
15662 case $ac_config_headers in *"
15663 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15664 esac
15665
15666
15667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15668 # Files that config.status was made for.
15669 config_files="$ac_config_files"
15670 config_headers="$ac_config_headers"
15671
15672 _ACEOF
15673
15674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15675 ac_cs_usage="\
15676 \`$as_me' instantiates files from templates according to the
15677 current configuration.
15678
15679 Usage: $0 [OPTION]... [FILE]...
15680
15681   -h, --help       print this help, then exit
15682   -V, --version    print version number and configuration settings, then exit
15683   -q, --quiet, --silent
15684                    do not print progress messages
15685   -d, --debug      don't remove temporary files
15686       --recheck    update $as_me by reconfiguring in the same conditions
15687       --file=FILE[:TEMPLATE]
15688                    instantiate the configuration file FILE
15689       --header=FILE[:TEMPLATE]
15690                    instantiate the configuration header FILE
15691
15692 Configuration files:
15693 $config_files
15694
15695 Configuration headers:
15696 $config_headers
15697
15698 Report bugs to <bug-autoconf@gnu.org>."
15699
15700 _ACEOF
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15702 ac_cs_version="\\
15703 config.status
15704 configured by $0, generated by GNU Autoconf 2.63,
15705   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15706
15707 Copyright (C) 2008 Free Software Foundation, Inc.
15708 This config.status script is free software; the Free Software Foundation
15709 gives unlimited permission to copy, distribute and modify it."
15710
15711 ac_pwd='$ac_pwd'
15712 srcdir='$srcdir'
15713 test -n "\$AWK" || AWK=awk
15714 _ACEOF
15715
15716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15717 # The default lists apply if the user does not specify any file.
15718 ac_need_defaults=:
15719 while test $# != 0
15720 do
15721   case $1 in
15722   --*=*)
15723     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15724     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15725     ac_shift=:
15726     ;;
15727   *)
15728     ac_option=$1
15729     ac_optarg=$2
15730     ac_shift=shift
15731     ;;
15732   esac
15733
15734   case $ac_option in
15735   # Handling of the options.
15736   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15737     ac_cs_recheck=: ;;
15738   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15739     $as_echo "$ac_cs_version"; exit ;;
15740   --debug | --debu | --deb | --de | --d | -d )
15741     debug=: ;;
15742   --file | --fil | --fi | --f )
15743     $ac_shift
15744     case $ac_optarg in
15745     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15746     esac
15747     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15748     ac_need_defaults=false;;
15749   --header | --heade | --head | --hea )
15750     $ac_shift
15751     case $ac_optarg in
15752     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15753     esac
15754     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15755     ac_need_defaults=false;;
15756   --he | --h)
15757     # Conflict between --help and --header
15758     { $as_echo "$as_me: error: ambiguous option: $1
15759 Try \`$0 --help' for more information." >&2
15760    { (exit 1); exit 1; }; };;
15761   --help | --hel | -h )
15762     $as_echo "$ac_cs_usage"; exit ;;
15763   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15764   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15765     ac_cs_silent=: ;;
15766
15767   # This is an error.
15768   -*) { $as_echo "$as_me: error: unrecognized option: $1
15769 Try \`$0 --help' for more information." >&2
15770    { (exit 1); exit 1; }; } ;;
15771
15772   *) ac_config_targets="$ac_config_targets $1"
15773      ac_need_defaults=false ;;
15774
15775   esac
15776   shift
15777 done
15778
15779 ac_configure_extra_args=
15780
15781 if $ac_cs_silent; then
15782   exec 6>/dev/null
15783   ac_configure_extra_args="$ac_configure_extra_args --silent"
15784 fi
15785
15786 _ACEOF
15787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15788 if \$ac_cs_recheck; then
15789   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15790   shift
15791   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15792   CONFIG_SHELL='$SHELL'
15793   export CONFIG_SHELL
15794   exec "\$@"
15795 fi
15796
15797 _ACEOF
15798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15799 exec 5>>config.log
15800 {
15801   echo
15802   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15803 ## Running $as_me. ##
15804 _ASBOX
15805   $as_echo "$ac_log"
15806 } >&5
15807
15808 _ACEOF
15809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15810 _ACEOF
15811
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813
15814 # Handling of arguments.
15815 for ac_config_target in $ac_config_targets
15816 do
15817   case $ac_config_target in
15818     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
15819     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
15820
15821   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15822 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15823    { (exit 1); exit 1; }; };;
15824   esac
15825 done
15826
15827
15828 # If the user did not use the arguments to specify the items to instantiate,
15829 # then the envvar interface is used.  Set only those that are not.
15830 # We use the long form for the default assignment because of an extremely
15831 # bizarre bug on SunOS 4.1.3.
15832 if $ac_need_defaults; then
15833   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15834   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15835 fi
15836
15837 # Have a temporary directory for convenience.  Make it in the build tree
15838 # simply because there is no reason against having it here, and in addition,
15839 # creating and moving files from /tmp can sometimes cause problems.
15840 # Hook for its removal unless debugging.
15841 # Note that there is a small window in which the directory will not be cleaned:
15842 # after its creation but before its name has been assigned to `$tmp'.
15843 $debug ||
15844 {
15845   tmp=
15846   trap 'exit_status=$?
15847   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15848 ' 0
15849   trap '{ (exit 1); exit 1; }' 1 2 13 15
15850 }
15851 # Create a (secure) tmp directory for tmp files.
15852
15853 {
15854   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15855   test -n "$tmp" && test -d "$tmp"
15856 }  ||
15857 {
15858   tmp=./conf$$-$RANDOM
15859   (umask 077 && mkdir "$tmp")
15860 } ||
15861 {
15862    $as_echo "$as_me: cannot create a temporary directory in ." >&2
15863    { (exit 1); exit 1; }
15864 }
15865
15866 # Set up the scripts for CONFIG_FILES section.
15867 # No need to generate them if there are no CONFIG_FILES.
15868 # This happens for instance with `./config.status config.h'.
15869 if test -n "$CONFIG_FILES"; then
15870
15871
15872 ac_cr='\r'
15873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15875   ac_cs_awk_cr='\\r'
15876 else
15877   ac_cs_awk_cr=$ac_cr
15878 fi
15879
15880 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15881 _ACEOF
15882
15883
15884 {
15885   echo "cat >conf$$subs.awk <<_ACEOF" &&
15886   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15887   echo "_ACEOF"
15888 } >conf$$subs.sh ||
15889   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15890 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15891    { (exit 1); exit 1; }; }
15892 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15893 ac_delim='%!_!# '
15894 for ac_last_try in false false false false false :; do
15895   . ./conf$$subs.sh ||
15896     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15897 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15898    { (exit 1); exit 1; }; }
15899
15900   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15901   if test $ac_delim_n = $ac_delim_num; then
15902     break
15903   elif $ac_last_try; then
15904     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15905 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15906    { (exit 1); exit 1; }; }
15907   else
15908     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15909   fi
15910 done
15911 rm -f conf$$subs.sh
15912
15913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15914 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15915 _ACEOF
15916 sed -n '
15917 h
15918 s/^/S["/; s/!.*/"]=/
15919 p
15920 g
15921 s/^[^!]*!//
15922 :repl
15923 t repl
15924 s/'"$ac_delim"'$//
15925 t delim
15926 :nl
15927 h
15928 s/\(.\{148\}\).*/\1/
15929 t more1
15930 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15931 p
15932 n
15933 b repl
15934 :more1
15935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15936 p
15937 g
15938 s/.\{148\}//
15939 t nl
15940 :delim
15941 h
15942 s/\(.\{148\}\).*/\1/
15943 t more2
15944 s/["\\]/\\&/g; s/^/"/; s/$/"/
15945 p
15946 b
15947 :more2
15948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15949 p
15950 g
15951 s/.\{148\}//
15952 t delim
15953 ' <conf$$subs.awk | sed '
15954 /^[^""]/{
15955   N
15956   s/\n//
15957 }
15958 ' >>$CONFIG_STATUS || ac_write_fail=1
15959 rm -f conf$$subs.awk
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 _ACAWK
15962 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15963   for (key in S) S_is_set[key] = 1
15964   FS = "\a"
15965
15966 }
15967 {
15968   line = $ 0
15969   nfields = split(line, field, "@")
15970   substed = 0
15971   len = length(field[1])
15972   for (i = 2; i < nfields; i++) {
15973     key = field[i]
15974     keylen = length(key)
15975     if (S_is_set[key]) {
15976       value = S[key]
15977       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15978       len += length(value) + length(field[++i])
15979       substed = 1
15980     } else
15981       len += 1 + keylen
15982   }
15983
15984   print line
15985 }
15986
15987 _ACAWK
15988 _ACEOF
15989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15990 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15991   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15992 else
15993   cat
15994 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15995   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15996 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15997    { (exit 1); exit 1; }; }
15998 _ACEOF
15999
16000 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16001 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16002 # trailing colons and then remove the whole line if VPATH becomes empty
16003 # (actually we leave an empty line to preserve line numbers).
16004 if test "x$srcdir" = x.; then
16005   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16006 s/:*\$(srcdir):*/:/
16007 s/:*\${srcdir}:*/:/
16008 s/:*@srcdir@:*/:/
16009 s/^\([^=]*=[     ]*\):*/\1/
16010 s/:*$//
16011 s/^[^=]*=[       ]*$//
16012 }'
16013 fi
16014
16015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16016 fi # test -n "$CONFIG_FILES"
16017
16018 # Set up the scripts for CONFIG_HEADERS section.
16019 # No need to generate them if there are no CONFIG_HEADERS.
16020 # This happens for instance with `./config.status Makefile'.
16021 if test -n "$CONFIG_HEADERS"; then
16022 cat >"$tmp/defines.awk" <<\_ACAWK ||
16023 BEGIN {
16024 _ACEOF
16025
16026 # Transform confdefs.h into an awk script `defines.awk', embedded as
16027 # here-document in config.status, that substitutes the proper values into
16028 # config.h.in to produce config.h.
16029
16030 # Create a delimiter string that does not exist in confdefs.h, to ease
16031 # handling of long lines.
16032 ac_delim='%!_!# '
16033 for ac_last_try in false false :; do
16034   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16035   if test -z "$ac_t"; then
16036     break
16037   elif $ac_last_try; then
16038     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16039 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16040    { (exit 1); exit 1; }; }
16041   else
16042     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16043   fi
16044 done
16045
16046 # For the awk script, D is an array of macro values keyed by name,
16047 # likewise P contains macro parameters if any.  Preserve backslash
16048 # newline sequences.
16049
16050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16051 sed -n '
16052 s/.\{148\}/&'"$ac_delim"'/g
16053 t rset
16054 :rset
16055 s/^[     ]*#[    ]*define[       ][      ]*/ /
16056 t def
16057 d
16058 :def
16059 s/\\$//
16060 t bsnl
16061 s/["\\]/\\&/g
16062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16063 D["\1"]=" \3"/p
16064 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16065 d
16066 :bsnl
16067 s/["\\]/\\&/g
16068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16069 D["\1"]=" \3\\\\\\n"\\/p
16070 t cont
16071 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16072 t cont
16073 d
16074 :cont
16075 n
16076 s/.\{148\}/&'"$ac_delim"'/g
16077 t clear
16078 :clear
16079 s/\\$//
16080 t bsnlc
16081 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16082 d
16083 :bsnlc
16084 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16085 b cont
16086 ' <confdefs.h | sed '
16087 s/'"$ac_delim"'/"\\\
16088 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16089
16090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16091   for (key in D) D_is_set[key] = 1
16092   FS = "\a"
16093 }
16094 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16095   line = \$ 0
16096   split(line, arg, " ")
16097   if (arg[1] == "#") {
16098     defundef = arg[2]
16099     mac1 = arg[3]
16100   } else {
16101     defundef = substr(arg[1], 2)
16102     mac1 = arg[2]
16103   }
16104   split(mac1, mac2, "(") #)
16105   macro = mac2[1]
16106   prefix = substr(line, 1, index(line, defundef) - 1)
16107   if (D_is_set[macro]) {
16108     # Preserve the white space surrounding the "#".
16109     print prefix "define", macro P[macro] D[macro]
16110     next
16111   } else {
16112     # Replace #undef with comments.  This is necessary, for example,
16113     # in the case of _POSIX_SOURCE, which is predefined and required
16114     # on some systems where configure will not decide to define it.
16115     if (defundef == "undef") {
16116       print "/*", prefix defundef, macro, "*/"
16117       next
16118     }
16119   }
16120 }
16121 { print }
16122 _ACAWK
16123 _ACEOF
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16126 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16127    { (exit 1); exit 1; }; }
16128 fi # test -n "$CONFIG_HEADERS"
16129
16130
16131 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16132 shift
16133 for ac_tag
16134 do
16135   case $ac_tag in
16136   :[FHLC]) ac_mode=$ac_tag; continue;;
16137   esac
16138   case $ac_mode$ac_tag in
16139   :[FHL]*:*);;
16140   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16141 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16142    { (exit 1); exit 1; }; };;
16143   :[FH]-) ac_tag=-:-;;
16144   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16145   esac
16146   ac_save_IFS=$IFS
16147   IFS=:
16148   set x $ac_tag
16149   IFS=$ac_save_IFS
16150   shift
16151   ac_file=$1
16152   shift
16153
16154   case $ac_mode in
16155   :L) ac_source=$1;;
16156   :[FH])
16157     ac_file_inputs=
16158     for ac_f
16159     do
16160       case $ac_f in
16161       -) ac_f="$tmp/stdin";;
16162       *) # Look for the file first in the build tree, then in the source tree
16163          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16164          # because $ac_f cannot contain `:'.
16165          test -f "$ac_f" ||
16166            case $ac_f in
16167            [\\/$]*) false;;
16168            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16169            esac ||
16170            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16171 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16172    { (exit 1); exit 1; }; };;
16173       esac
16174       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16175       ac_file_inputs="$ac_file_inputs '$ac_f'"
16176     done
16177
16178     # Let's still pretend it is `configure' which instantiates (i.e., don't
16179     # use $as_me), people would be surprised to read:
16180     #    /* config.h.  Generated by config.status.  */
16181     configure_input='Generated from '`
16182           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16183         `' by configure.'
16184     if test x"$ac_file" != x-; then
16185       configure_input="$ac_file.  $configure_input"
16186       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16187 $as_echo "$as_me: creating $ac_file" >&6;}
16188     fi
16189     # Neutralize special characters interpreted by sed in replacement strings.
16190     case $configure_input in #(
16191     *\&* | *\|* | *\\* )
16192        ac_sed_conf_input=`$as_echo "$configure_input" |
16193        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16194     *) ac_sed_conf_input=$configure_input;;
16195     esac
16196
16197     case $ac_tag in
16198     *:-:* | *:-) cat >"$tmp/stdin" \
16199       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16200 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16201    { (exit 1); exit 1; }; } ;;
16202     esac
16203     ;;
16204   esac
16205
16206   ac_dir=`$as_dirname -- "$ac_file" ||
16207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208          X"$ac_file" : 'X\(//\)[^/]' \| \
16209          X"$ac_file" : 'X\(//\)$' \| \
16210          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16211 $as_echo X"$ac_file" |
16212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16213             s//\1/
16214             q
16215           }
16216           /^X\(\/\/\)[^/].*/{
16217             s//\1/
16218             q
16219           }
16220           /^X\(\/\/\)$/{
16221             s//\1/
16222             q
16223           }
16224           /^X\(\/\).*/{
16225             s//\1/
16226             q
16227           }
16228           s/.*/./; q'`
16229   { as_dir="$ac_dir"
16230   case $as_dir in #(
16231   -*) as_dir=./$as_dir;;
16232   esac
16233   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16234     as_dirs=
16235     while :; do
16236       case $as_dir in #(
16237       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16238       *) as_qdir=$as_dir;;
16239       esac
16240       as_dirs="'$as_qdir' $as_dirs"
16241       as_dir=`$as_dirname -- "$as_dir" ||
16242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16243          X"$as_dir" : 'X\(//\)[^/]' \| \
16244          X"$as_dir" : 'X\(//\)$' \| \
16245          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16246 $as_echo X"$as_dir" |
16247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16248             s//\1/
16249             q
16250           }
16251           /^X\(\/\/\)[^/].*/{
16252             s//\1/
16253             q
16254           }
16255           /^X\(\/\/\)$/{
16256             s//\1/
16257             q
16258           }
16259           /^X\(\/\).*/{
16260             s//\1/
16261             q
16262           }
16263           s/.*/./; q'`
16264       test -d "$as_dir" && break
16265     done
16266     test -z "$as_dirs" || eval "mkdir $as_dirs"
16267   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16268 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16269    { (exit 1); exit 1; }; }; }
16270   ac_builddir=.
16271
16272 case "$ac_dir" in
16273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16274 *)
16275   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16276   # A ".." for each directory in $ac_dir_suffix.
16277   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16278   case $ac_top_builddir_sub in
16279   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16280   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16281   esac ;;
16282 esac
16283 ac_abs_top_builddir=$ac_pwd
16284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16285 # for backward compatibility:
16286 ac_top_builddir=$ac_top_build_prefix
16287
16288 case $srcdir in
16289   .)  # We are building in place.
16290     ac_srcdir=.
16291     ac_top_srcdir=$ac_top_builddir_sub
16292     ac_abs_top_srcdir=$ac_pwd ;;
16293   [\\/]* | ?:[\\/]* )  # Absolute name.
16294     ac_srcdir=$srcdir$ac_dir_suffix;
16295     ac_top_srcdir=$srcdir
16296     ac_abs_top_srcdir=$srcdir ;;
16297   *) # Relative name.
16298     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16299     ac_top_srcdir=$ac_top_build_prefix$srcdir
16300     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16301 esac
16302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16303
16304
16305   case $ac_mode in
16306   :F)
16307   #
16308   # CONFIG_FILE
16309   #
16310
16311 _ACEOF
16312
16313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16314 # If the template does not know about datarootdir, expand it.
16315 # FIXME: This hack should be removed a few years after 2.60.
16316 ac_datarootdir_hack=; ac_datarootdir_seen=
16317
16318 ac_sed_dataroot='
16319 /datarootdir/ {
16320   p
16321   q
16322 }
16323 /@datadir@/p
16324 /@docdir@/p
16325 /@infodir@/p
16326 /@localedir@/p
16327 /@mandir@/p
16328 '
16329 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16330 *datarootdir*) ac_datarootdir_seen=yes;;
16331 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16332   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16333 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16334 _ACEOF
16335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16336   ac_datarootdir_hack='
16337   s&@datadir@&$datadir&g
16338   s&@docdir@&$docdir&g
16339   s&@infodir@&$infodir&g
16340   s&@localedir@&$localedir&g
16341   s&@mandir@&$mandir&g
16342     s&\\\${datarootdir}&$datarootdir&g' ;;
16343 esac
16344 _ACEOF
16345
16346 # Neutralize VPATH when `$srcdir' = `.'.
16347 # Shell code in configure.ac might set extrasub.
16348 # FIXME: do we really want to maintain this feature?
16349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16350 ac_sed_extra="$ac_vpsub
16351 $extrasub
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16354 :t
16355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16356 s|@configure_input@|$ac_sed_conf_input|;t t
16357 s&@top_builddir@&$ac_top_builddir_sub&;t t
16358 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16359 s&@srcdir@&$ac_srcdir&;t t
16360 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16361 s&@top_srcdir@&$ac_top_srcdir&;t t
16362 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16363 s&@builddir@&$ac_builddir&;t t
16364 s&@abs_builddir@&$ac_abs_builddir&;t t
16365 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16366 $ac_datarootdir_hack
16367 "
16368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16369   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16370 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16371    { (exit 1); exit 1; }; }
16372
16373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16374   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16375   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16376   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16377 which seems to be undefined.  Please make sure it is defined." >&5
16378 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16379 which seems to be undefined.  Please make sure it is defined." >&2;}
16380
16381   rm -f "$tmp/stdin"
16382   case $ac_file in
16383   -) cat "$tmp/out" && rm -f "$tmp/out";;
16384   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16385   esac \
16386   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16387 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16388    { (exit 1); exit 1; }; }
16389  ;;
16390   :H)
16391   #
16392   # CONFIG_HEADER
16393   #
16394   if test x"$ac_file" != x-; then
16395     {
16396       $as_echo "/* $configure_input  */" \
16397       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16398     } >"$tmp/config.h" \
16399       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16400 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16401    { (exit 1); exit 1; }; }
16402     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16403       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16405     else
16406       rm -f "$ac_file"
16407       mv "$tmp/config.h" "$ac_file" \
16408         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16409 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16410    { (exit 1); exit 1; }; }
16411     fi
16412   else
16413     $as_echo "/* $configure_input  */" \
16414       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16415       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16416 $as_echo "$as_me: error: could not create -" >&2;}
16417    { (exit 1); exit 1; }; }
16418   fi
16419  ;;
16420
16421
16422   esac
16423
16424 done # for ac_tag
16425
16426
16427 { (exit 0); exit 0; }
16428 _ACEOF
16429 chmod +x $CONFIG_STATUS
16430 ac_clean_files=$ac_clean_files_save
16431
16432 test $ac_write_fail = 0 ||
16433   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16434 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16435    { (exit 1); exit 1; }; }
16436
16437
16438 # configure is writing to config.log, and then calls config.status.
16439 # config.status does its own redirection, appending to config.log.
16440 # Unfortunately, on DOS this fails, as config.log is still kept open
16441 # by configure, so config.status won't be able to write to it; its
16442 # output is simply discarded.  So we exec the FD to /dev/null,
16443 # effectively closing config.log, so it can be properly (re)opened and
16444 # appended to by config.status.  When coming back to configure, we
16445 # need to make the FD available again.
16446 if test "$no_create" != yes; then
16447   ac_cs_success=:
16448   ac_config_status_args=
16449   test "$silent" = yes &&
16450     ac_config_status_args="$ac_config_status_args --quiet"
16451   exec 5>/dev/null
16452   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16453   exec 5>>config.log
16454   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16455   # would make configure fail if this is the last instruction.
16456   $ac_cs_success || { (exit 1); exit 1; }
16457 fi
16458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16459   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16461 fi
16462
16463
16464     if test -n "$OPTIONAL"; then
16465         echo
16466         echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
16467     fi
16468
16469     if test -n "$REQUIRED"; then
16470         echo
16471         echo "ERROR: Please install required programs: $REQUIRED"
16472     fi
16473
16474     if test -n "$UNSUPPORTED"; then
16475         echo
16476         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
16477     fi
16478
16479     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
16480         echo
16481         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
16482         if test -f config.cache ; then
16483             echo "Remove config.cache before rerunning ./configure"
16484         fi
16485     fi
16486
16487     if test -n "$REQUIRED$UNSUPPORTED"; then
16488         rm -f $srcdir/GNUmakefile
16489         exit 1
16490     fi
16491
16492     # regular in-place build
16493     # test for srcdir_build = yes ?
16494     if test "$srcdir_build" = "yes"; then
16495         rm -f $srcdir/GNUmakefile
16496         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
16497         chmod 444 $srcdir/GNUmakefile
16498     else
16499         if test -f $srcdir/GNUmakefile; then
16500             cat <<EOF
16501 Source directory already configured.  Please clean the source directory
16502
16503      make -C $srcdir distclean
16504
16505 and rerun configure.
16506 EOF
16507             exit 2
16508         fi
16509
16510         abssrcdir="`cd $srcdir; pwd`"
16511         absbuilddir="`pwd`"
16512         for d in 2 3 4 5 ; do
16513             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
16514                 case "$abssrcdir" in
16515                     "$absbuilddir"/*)
16516 # source is below build directory, always copy
16517                         ;;
16518                     *)
16519                         case "$abssrcdir/${mf#./}" in
16520                             "$absbuilddir"/*)
16521 # find descended into build directory, don't copy
16522                                 continue
16523                         esac
16524                 esac
16525                 mkdir -p ${mf%/*}
16526                 cat <<EOF | $PYTHON -  > $mf
16527 print 'depth=' + ('../' * ( $d-1 ) )
16528 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16529 print 'include \$(configure-srcdir)/$mf'
16530 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
16531 EOF
16532             done
16533             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
16534                 case "$abssrcdir" in
16535                     "$absbuilddir"/*)
16536 # source is below build directory, always copy
16537                         ;;
16538                     *)
16539                         case "$abssrcdir/${mf#./}" in
16540                             "$absbuilddir"/*)
16541 # find descended into build directory, don't copy
16542                                 continue
16543                         esac
16544                 esac
16545                 mkdir -p ${mf%/*}
16546                 cat <<EOF | $PYTHON -  > $mf
16547 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16548 print 'include \$(configure-srcdir)/$mf'
16549 EOF
16550             done
16551         done
16552
16553         rm -f GNUmakefile
16554         cat <<EOF > GNUmakefile
16555 depth = .
16556 include config\$(if \$(conf),-\$(conf),).make
16557 include \$(configure-srcdir)/GNUmakefile.in
16558 EOF
16559         chmod 444 GNUmakefile
16560
16561     fi
16562
16563
16564 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
16565
16566 if make top-doc 1>/dev/null 2>&1; then
16567     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
16568     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
16569 fi
16570
16571 cat <<EOF
16572
16573 Type:
16574     make$mc all       to build LilyPond
16575     make$mc install   to install LilyPond
16576     make$mc help      to see all possible targets
16577
16578 Edit local.make for local Makefile overrides.
16579
16580
16581 EOF