]> git.donarmstrong.com Git - lilypond.git/blob - configure
fe4de2b53c8053504bc134b8689eb2932b2925c1
[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 TEXGYRE_FILES
696 TEXGYRE_DIR
697 FCLIST
698 EXTRA_LIBS
699 DEFINES
700 cross_compiling
701 LD
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 LINK_GXX_STATICALLY
710 DOCUMENTATION
711 build_package_libdir
712 build_package_datadir
713 ROOTSEP
714 PATHSEP
715 DIRSEP
716 LN_S
717 LN
718 ZIP
719 program_suffix
720 program_prefix
721 PYTHON
722 BASH
723 KSH
724 TAR
725 FIND
726 MAKE
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 CONFIGSUFFIX
736 AUTOGENERATE
737 package_depth
738 TOPLEVEL_VERSION
739 PATCH_LEVEL
740 MICRO_VERSION
741 MINOR_VERSION
742 MAJOR_VERSION
743 VERSION
744 PACKAGE
745 package
746 stepmake
747 srcdir
748 ugh_ugh_autoconf250_builddir
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_config
790 enable_documentation
791 enable_guile2
792 with_texgyre_dir
793 enable_relocation
794 enable_rpath
795 enable_static_gxx
796 enable_debugging
797 enable_checking
798 enable_optimising
799 enable_profiling
800 enable_pipe
801 with_localedir
802 with_lang
803 with_python_include
804 with_python_lib
805 '
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CXXCPP
818 YACC
819 YFLAGS'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *)    ac_optarg=yes ;;
884   esac
885
886   # Accept the important Cygnus configure options, so we can diagnose typos.
887
888   case $ac_dashdash$ac_option in
889   --)
890     ac_dashdash=yes ;;
891
892   -bindir | --bindir | --bindi | --bind | --bin | --bi)
893     ac_prev=bindir ;;
894   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895     bindir=$ac_optarg ;;
896
897   -build | --build | --buil | --bui | --bu)
898     ac_prev=build_alias ;;
899   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900     build_alias=$ac_optarg ;;
901
902   -cache-file | --cache-file | --cache-fil | --cache-fi \
903   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904     ac_prev=cache_file ;;
905   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907     cache_file=$ac_optarg ;;
908
909   --config-cache | -C)
910     cache_file=config.cache ;;
911
912   -datadir | --datadir | --datadi | --datad)
913     ac_prev=datadir ;;
914   -datadir=* | --datadir=* | --datadi=* | --datad=*)
915     datadir=$ac_optarg ;;
916
917   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918   | --dataroo | --dataro | --datar)
919     ac_prev=datarootdir ;;
920   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922     datarootdir=$ac_optarg ;;
923
924   -disable-* | --disable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
929    { (exit 1); exit 1; }; }
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
956    { (exit 1); exit 1; }; }
957     ac_useropt_orig=$ac_useropt
958     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959     case $ac_user_opts in
960       *"
961 "enable_$ac_useropt"
962 "*) ;;
963       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964          ac_unrecognized_sep=', ';;
965     esac
966     eval enable_$ac_useropt=\$ac_optarg ;;
967
968   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970   | --exec | --exe | --ex)
971     ac_prev=exec_prefix ;;
972   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974   | --exec=* | --exe=* | --ex=*)
975     exec_prefix=$ac_optarg ;;
976
977   -gas | --gas | --ga | --g)
978     # Obsolete; use --with-gas.
979     with_gas=yes ;;
980
981   -help | --help | --hel | --he | -h)
982     ac_init_help=long ;;
983   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984     ac_init_help=recursive ;;
985   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986     ac_init_help=short ;;
987
988   -host | --host | --hos | --ho)
989     ac_prev=host_alias ;;
990   -host=* | --host=* | --hos=* | --ho=*)
991     host_alias=$ac_optarg ;;
992
993   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994     ac_prev=htmldir ;;
995   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996   | --ht=*)
997     htmldir=$ac_optarg ;;
998
999   -includedir | --includedir | --includedi | --included | --include \
1000   | --includ | --inclu | --incl | --inc)
1001     ac_prev=includedir ;;
1002   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003   | --includ=* | --inclu=* | --incl=* | --inc=*)
1004     includedir=$ac_optarg ;;
1005
1006   -infodir | --infodir | --infodi | --infod | --info | --inf)
1007     ac_prev=infodir ;;
1008   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009     infodir=$ac_optarg ;;
1010
1011   -libdir | --libdir | --libdi | --libd)
1012     ac_prev=libdir ;;
1013   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014     libdir=$ac_optarg ;;
1015
1016   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017   | --libexe | --libex | --libe)
1018     ac_prev=libexecdir ;;
1019   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020   | --libexe=* | --libex=* | --libe=*)
1021     libexecdir=$ac_optarg ;;
1022
1023   -localedir | --localedir | --localedi | --localed | --locale)
1024     ac_prev=localedir ;;
1025   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026     localedir=$ac_optarg ;;
1027
1028   -localstatedir | --localstatedir | --localstatedi | --localstated \
1029   | --localstate | --localstat | --localsta | --localst | --locals)
1030     ac_prev=localstatedir ;;
1031   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033     localstatedir=$ac_optarg ;;
1034
1035   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036     ac_prev=mandir ;;
1037   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038     mandir=$ac_optarg ;;
1039
1040   -nfp | --nfp | --nf)
1041     # Obsolete; use --without-fp.
1042     with_fp=no ;;
1043
1044   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045   | --no-cr | --no-c | -n)
1046     no_create=yes ;;
1047
1048   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050     no_recursion=yes ;;
1051
1052   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054   | --oldin | --oldi | --old | --ol | --o)
1055     ac_prev=oldincludedir ;;
1056   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059     oldincludedir=$ac_optarg ;;
1060
1061   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062     ac_prev=prefix ;;
1063   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064     prefix=$ac_optarg ;;
1065
1066   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067   | --program-pre | --program-pr | --program-p)
1068     ac_prev=program_prefix ;;
1069   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071     program_prefix=$ac_optarg ;;
1072
1073   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074   | --program-suf | --program-su | --program-s)
1075     ac_prev=program_suffix ;;
1076   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078     program_suffix=$ac_optarg ;;
1079
1080   -program-transform-name | --program-transform-name \
1081   | --program-transform-nam | --program-transform-na \
1082   | --program-transform-n | --program-transform- \
1083   | --program-transform | --program-transfor \
1084   | --program-transfo | --program-transf \
1085   | --program-trans | --program-tran \
1086   | --progr-tra | --program-tr | --program-t)
1087     ac_prev=program_transform_name ;;
1088   -program-transform-name=* | --program-transform-name=* \
1089   | --program-transform-nam=* | --program-transform-na=* \
1090   | --program-transform-n=* | --program-transform-=* \
1091   | --program-transform=* | --program-transfor=* \
1092   | --program-transfo=* | --program-transf=* \
1093   | --program-trans=* | --program-tran=* \
1094   | --progr-tra=* | --program-tr=* | --program-t=*)
1095     program_transform_name=$ac_optarg ;;
1096
1097   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098     ac_prev=pdfdir ;;
1099   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100     pdfdir=$ac_optarg ;;
1101
1102   -psdir | --psdir | --psdi | --psd | --ps)
1103     ac_prev=psdir ;;
1104   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105     psdir=$ac_optarg ;;
1106
1107   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108   | -silent | --silent | --silen | --sile | --sil)
1109     silent=yes ;;
1110
1111   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112     ac_prev=sbindir ;;
1113   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114   | --sbi=* | --sb=*)
1115     sbindir=$ac_optarg ;;
1116
1117   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119   | --sharedst | --shareds | --shared | --share | --shar \
1120   | --sha | --sh)
1121     ac_prev=sharedstatedir ;;
1122   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125   | --sha=* | --sh=*)
1126     sharedstatedir=$ac_optarg ;;
1127
1128   -site | --site | --sit)
1129     ac_prev=site ;;
1130   -site=* | --site=* | --sit=*)
1131     site=$ac_optarg ;;
1132
1133   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134     ac_prev=srcdir ;;
1135   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136     srcdir=$ac_optarg ;;
1137
1138   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139   | --syscon | --sysco | --sysc | --sys | --sy)
1140     ac_prev=sysconfdir ;;
1141   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143     sysconfdir=$ac_optarg ;;
1144
1145   -target | --target | --targe | --targ | --tar | --ta | --t)
1146     ac_prev=target_alias ;;
1147   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148     target_alias=$ac_optarg ;;
1149
1150   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151     verbose=yes ;;
1152
1153   -version | --version | --versio | --versi | --vers | -V)
1154     ac_init_version=: ;;
1155
1156   -with-* | --with-*)
1157     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1161    { (exit 1); exit 1; }; }
1162     ac_useropt_orig=$ac_useropt
1163     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164     case $ac_user_opts in
1165       *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169          ac_unrecognized_sep=', ';;
1170     esac
1171     eval with_$ac_useropt=\$ac_optarg ;;
1172
1173   -without-* | --without-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178    { (exit 1); exit 1; }; }
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=no ;;
1189
1190   --x)
1191     # Obsolete; use --with-x.
1192     with_x=yes ;;
1193
1194   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195   | --x-incl | --x-inc | --x-in | --x-i)
1196     ac_prev=x_includes ;;
1197   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199     x_includes=$ac_optarg ;;
1200
1201   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203     ac_prev=x_libraries ;;
1204   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206     x_libraries=$ac_optarg ;;
1207
1208   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1209 Try \`$0 --help' for more information." >&2
1210    { (exit 1); exit 1; }; }
1211     ;;
1212
1213   *=*)
1214     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1217       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1218    { (exit 1); exit 1; }; }
1219     eval $ac_envvar=\$ac_optarg
1220     export $ac_envvar ;;
1221
1222   *)
1223     # FIXME: should be removed in autoconf 3.0.
1224     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228     ;;
1229
1230   esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1236    { (exit 1); exit 1; }; }
1237 fi
1238
1239 if test -n "$ac_unrecognized_opts"; then
1240   case $enable_option_checking in
1241     no) ;;
1242     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1243    { (exit 1); exit 1; }; } ;;
1244     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245   esac
1246 fi
1247
1248 # Check all directory arguments for consistency.
1249 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250                 datadir sysconfdir sharedstatedir localstatedir includedir \
1251                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252                 libdir localedir mandir
1253 do
1254   eval ac_val=\$$ac_var
1255   # Remove trailing slashes.
1256   case $ac_val in
1257     */ )
1258       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259       eval $ac_var=\$ac_val;;
1260   esac
1261   # Be sure to have absolute directory names.
1262   case $ac_val in
1263     [\\/$]* | ?:[\\/]* )  continue;;
1264     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265   esac
1266   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267    { (exit 1); exit 1; }; }
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279   if test "x$build_alias" = x; then
1280     cross_compiling=maybe
1281     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282     If a cross compiler is detected then cross compile mode will be used." >&2
1283   elif test "x$build_alias" != "x$host_alias"; then
1284     cross_compiling=yes
1285   fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1298    { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1301    { (exit 1); exit 1; }; }
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306   ac_srcdir_defaulted=yes
1307   # Try the directory containing this script, then the parent directory.
1308   ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310          X"$as_myself" : 'X\(//\)[^/]' \| \
1311          X"$as_myself" : 'X\(//\)$' \| \
1312          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)[^/].*/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\).*/{
1327             s//\1/
1328             q
1329           }
1330           s/.*/./; q'`
1331   srcdir=$ac_confdir
1332   if test ! -r "$srcdir/$ac_unique_file"; then
1333     srcdir=..
1334   fi
1335 else
1336   ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1346    { (exit 1); exit 1; }; }
1347         pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350   srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_env_${ac_var}_value=\$${ac_var}
1361   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369   # Omit some internal or obsolete options to make the list less imposing.
1370   # This message is too long to be a string in the A/UX 3.1 sh.
1371   cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382   -h, --help              display this help and exit
1383       --help=short        display options specific to this package
1384       --help=recursive    display the short help of all the included packages
1385   -V, --version           display version information and exit
1386   -q, --quiet, --silent   do not print \`checking...' messages
1387       --cache-file=FILE   cache test results in FILE [disabled]
1388   -C, --config-cache      alias for \`--cache-file=config.cache'
1389   -n, --no-create         do not create output files
1390       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393   --prefix=PREFIX         install architecture-independent files in PREFIX
1394                           [$ac_default_prefix]
1395   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                           [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406   --bindir=DIR            user executables [EPREFIX/bin]
1407   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408   --libexecdir=DIR        program executables [EPREFIX/libexec]
1409   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412   --libdir=DIR            object code libraries [EPREFIX/lib]
1413   --includedir=DIR        C header files [PREFIX/include]
1414   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417   --infodir=DIR           info documentation [DATAROOTDIR/info]
1418   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419   --mandir=DIR            man documentation [DATAROOTDIR/man]
1420   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1421   --htmldir=DIR           html documentation [DOCDIR]
1422   --dvidir=DIR            dvi documentation [DOCDIR]
1423   --pdfdir=DIR            pdf documentation [DOCDIR]
1424   --psdir=DIR             ps documentation [DOCDIR]
1425 _ACEOF
1426
1427   cat <<\_ACEOF
1428
1429 System types:
1430   --build=BUILD     configure for building on BUILD [guessed]
1431   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432 _ACEOF
1433 fi
1434
1435 if test -n "$ac_init_help"; then
1436
1437   cat <<\_ACEOF
1438
1439 Optional Features:
1440   --disable-option-checking  ignore unrecognized --enable/--with options
1441   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1442   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1443   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1444                           do `make conf=CONF' to get output in ./out-CONF
1445   --enable-documentation  build Documentation. Default: on
1446   --enable-guile2         highly experimental GUILE 2 support. Default: off
1447   --enable-relocation     compile with dynamic relocation. Default: off
1448   --enable-rpath          hardcode runtime library path. Default: off
1449   --enable-static-gxx     link libstdc++.a statically. Default: off
1450   --enable-debugging      compile with debugging info. Default: on
1451   --enable-checking       compile with expensive run-time checks. Default: off
1452   --enable-optimising     compile with optimising. Default: on
1453   --enable-profiling      compile with gprof support. Default: off
1454   --enable-pipe           compile with -pipe. Default: on
1455
1456 Optional Packages:
1457   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459   --with-texgyre-dir=DIR  location of TeX Gyre fonts.
1460   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1461   --with-lang=LANG        use LANG as language to emit messages
1462   --with-python-include=DIR
1463                           location of the python include dir
1464   --with-python-lib=NAME  name of the python lib
1465
1466 Some influential environment variables:
1467   CC          C compiler command
1468   CFLAGS      C compiler flags
1469   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470               nonstandard directory <lib dir>
1471   LIBS        libraries to pass to the linker, e.g. -l<library>
1472   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473               you have headers in a nonstandard directory <include dir>
1474   CXX         C++ compiler command
1475   CXXFLAGS    C++ compiler flags
1476   CXXCPP      C++ preprocessor
1477   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1478               the first program found out of: `bison -y', `byacc', `yacc'.
1479   YFLAGS      The list of arguments that will be passed by default to $YACC.
1480               This script will default YFLAGS to the empty string to avoid a
1481               default value of `-d' given by some make applications.
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491   # If there are subdirs, report their specific --help.
1492   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493     test -d "$ac_dir" ||
1494       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495       continue
1496     ac_builddir=.
1497
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *)
1501   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502   # A ".." for each directory in $ac_dir_suffix.
1503   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504   case $ac_top_builddir_sub in
1505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507   esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1513
1514 case $srcdir in
1515   .)  # We are building in place.
1516     ac_srcdir=.
1517     ac_top_srcdir=$ac_top_builddir_sub
1518     ac_abs_top_srcdir=$ac_pwd ;;
1519   [\\/]* | ?:[\\/]* )  # Absolute name.
1520     ac_srcdir=$srcdir$ac_dir_suffix;
1521     ac_top_srcdir=$srcdir
1522     ac_abs_top_srcdir=$srcdir ;;
1523   *) # Relative name.
1524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525     ac_top_srcdir=$ac_top_build_prefix$srcdir
1526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530     cd "$ac_dir" || { ac_status=$?; continue; }
1531     # Check for guested configure.
1532     if test -f "$ac_srcdir/configure.gnu"; then
1533       echo &&
1534       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535     elif test -f "$ac_srcdir/configure"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure" --help=recursive
1538     else
1539       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540     fi || ac_status=$?
1541     cd "$ac_pwd" || { ac_status=$?; break; }
1542   done
1543 fi
1544
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547   cat <<\_ACEOF
1548 configure
1549 generated by GNU Autoconf 2.63
1550
1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1552 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556   exit
1557 fi
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1561
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.63.  Invocation command line was
1564
1565   $ $0 $@
1566
1567 _ACEOF
1568 exec 5>>config.log
1569 {
1570 cat <<_ASUNAME
1571 ## --------- ##
1572 ## Platform. ##
1573 ## --------- ##
1574
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1583
1584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1591
1592 _ASUNAME
1593
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   $as_echo "PATH: $as_dir"
1600 done
1601 IFS=$as_save_IFS
1602
1603 } >&5
1604
1605 cat >&5 <<_ACEOF
1606
1607
1608 ## ----------- ##
1609 ## Core tests. ##
1610 ## ----------- ##
1611
1612 _ACEOF
1613
1614
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_configure_args=
1621 ac_configure_args0=
1622 ac_configure_args1=
1623 ac_must_keep_next=false
1624 for ac_pass in 1 2
1625 do
1626   for ac_arg
1627   do
1628     case $ac_arg in
1629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631     | -silent | --silent | --silen | --sile | --sil)
1632       continue ;;
1633     *\'*)
1634       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635     esac
1636     case $ac_pass in
1637     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638     2)
1639       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640       if test $ac_must_keep_next = true; then
1641         ac_must_keep_next=false # Got value, back to normal.
1642       else
1643         case $ac_arg in
1644           *=* | --config-cache | -C | -disable-* | --disable-* \
1645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647           | -with-* | --with-* | -without-* | --without-* | --x)
1648             case "$ac_configure_args0 " in
1649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650             esac
1651             ;;
1652           -* ) ac_must_keep_next=true ;;
1653         esac
1654       fi
1655       ac_configure_args="$ac_configure_args '$ac_arg'"
1656       ;;
1657     esac
1658   done
1659 done
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log.  We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669   # Save into config.log some information that might help in debugging.
1670   {
1671     echo
1672
1673     cat <<\_ASBOX
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1677 _ASBOX
1678     echo
1679     # The following way of writing the cache mishandles newlines in values,
1680 (
1681   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682     eval ac_val=\$$ac_var
1683     case $ac_val in #(
1684     *${as_nl}*)
1685       case $ac_var in #(
1686       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1687 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1688       esac
1689       case $ac_var in #(
1690       _ | IFS | as_nl) ;; #(
1691       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1692       *) $as_unset $ac_var ;;
1693       esac ;;
1694     esac
1695   done
1696   (set) 2>&1 |
1697     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698     *${as_nl}ac_space=\ *)
1699       sed -n \
1700         "s/'\''/'\''\\\\'\'''\''/g;
1701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702       ;; #(
1703     *)
1704       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705       ;;
1706     esac |
1707     sort
1708 )
1709     echo
1710
1711     cat <<\_ASBOX
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1715 _ASBOX
1716     echo
1717     for ac_var in $ac_subst_vars
1718     do
1719       eval ac_val=\$$ac_var
1720       case $ac_val in
1721       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722       esac
1723       $as_echo "$ac_var='\''$ac_val'\''"
1724     done | sort
1725     echo
1726
1727     if test -n "$ac_subst_files"; then
1728       cat <<\_ASBOX
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1732 _ASBOX
1733       echo
1734       for ac_var in $ac_subst_files
1735       do
1736         eval ac_val=\$$ac_var
1737         case $ac_val in
1738         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739         esac
1740         $as_echo "$ac_var='\''$ac_val'\''"
1741       done | sort
1742       echo
1743     fi
1744
1745     if test -s confdefs.h; then
1746       cat <<\_ASBOX
1747 ## ----------- ##
1748 ## confdefs.h. ##
1749 ## ----------- ##
1750 _ASBOX
1751       echo
1752       cat confdefs.h
1753       echo
1754     fi
1755     test "$ac_signal" != 0 &&
1756       $as_echo "$as_me: caught signal $ac_signal"
1757     $as_echo "$as_me: exit $exit_status"
1758   } >&5
1759   rm -f core *.core core.conftest.* &&
1760     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761     exit $exit_status
1762 ' 0
1763 for ac_signal in 1 2 13 15; do
1764   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 done
1766 ac_signal=0
1767
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1770
1771 # Predefined preprocessor variables.
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 _ACEOF
1796
1797
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer an explicitly selected file to automatically selected ones.
1800 ac_site_file1=NONE
1801 ac_site_file2=NONE
1802 if test -n "$CONFIG_SITE"; then
1803   ac_site_file1=$CONFIG_SITE
1804 elif test "x$prefix" != xNONE; then
1805   ac_site_file1=$prefix/share/config.site
1806   ac_site_file2=$prefix/etc/config.site
1807 else
1808   ac_site_file1=$ac_default_prefix/share/config.site
1809   ac_site_file2=$ac_default_prefix/etc/config.site
1810 fi
1811 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1812 do
1813   test "x$ac_site_file" = xNONE && continue
1814   if test -r "$ac_site_file"; then
1815     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1816 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1817     sed 's/^/| /' "$ac_site_file" >&5
1818     . "$ac_site_file"
1819   fi
1820 done
1821
1822 if test -r "$cache_file"; then
1823   # Some versions of bash will fail to source /dev/null (special
1824   # files actually), so we avoid doing that.
1825   if test -f "$cache_file"; then
1826     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1827 $as_echo "$as_me: loading cache $cache_file" >&6;}
1828     case $cache_file in
1829       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1830       *)                      . "./$cache_file";;
1831     esac
1832   fi
1833 else
1834   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1835 $as_echo "$as_me: creating cache $cache_file" >&6;}
1836   >$cache_file
1837 fi
1838
1839 # Check that the precious variables saved in the cache have kept the same
1840 # value.
1841 ac_cache_corrupted=false
1842 for ac_var in $ac_precious_vars; do
1843   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1844   eval ac_new_set=\$ac_env_${ac_var}_set
1845   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1846   eval ac_new_val=\$ac_env_${ac_var}_value
1847   case $ac_old_set,$ac_new_set in
1848     set,)
1849       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1850 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1851       ac_cache_corrupted=: ;;
1852     ,set)
1853       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1854 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1855       ac_cache_corrupted=: ;;
1856     ,);;
1857     *)
1858       if test "x$ac_old_val" != "x$ac_new_val"; then
1859         # differences in whitespace do not lead to failure.
1860         ac_old_val_w=`echo x $ac_old_val`
1861         ac_new_val_w=`echo x $ac_new_val`
1862         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1863           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865           ac_cache_corrupted=:
1866         else
1867           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1868 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1869           eval $ac_var=\$ac_old_val
1870         fi
1871         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1872 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1873         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1874 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1875       fi;;
1876   esac
1877   # Pass precious variables to config.status.
1878   if test "$ac_new_set" = set; then
1879     case $ac_new_val in
1880     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881     *) ac_arg=$ac_var=$ac_new_val ;;
1882     esac
1883     case " $ac_configure_args " in
1884       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1885       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886     esac
1887   fi
1888 done
1889 if $ac_cache_corrupted; then
1890   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1892   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1893 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1894   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1895 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1896    { (exit 1); exit 1; }; }
1897 fi
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923 # Bootstrap StepMake configure
1924 ac_aux_dir=
1925 for ac_dir in config "$srcdir"/config; do
1926   if test -f "$ac_dir/install-sh"; then
1927     ac_aux_dir=$ac_dir
1928     ac_install_sh="$ac_aux_dir/install-sh -c"
1929     break
1930   elif 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/shtool"; then
1935     ac_aux_dir=$ac_dir
1936     ac_install_sh="$ac_aux_dir/shtool install -c"
1937     break
1938   fi
1939 done
1940 if test -z "$ac_aux_dir"; then
1941   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1942 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1953
1954
1955
1956 # Make sure we can run config.sub.
1957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1958   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1959 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1960    { (exit 1); exit 1; }; }
1961
1962 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1963 $as_echo_n "checking build system type... " >&6; }
1964 if test "${ac_cv_build+set}" = set; then
1965   $as_echo_n "(cached) " >&6
1966 else
1967   ac_build_alias=$build_alias
1968 test "x$ac_build_alias" = x &&
1969   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1970 test "x$ac_build_alias" = x &&
1971   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1972 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1973    { (exit 1); exit 1; }; }
1974 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1975   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1976 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1977    { (exit 1); exit 1; }; }
1978
1979 fi
1980 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1981 $as_echo "$ac_cv_build" >&6; }
1982 case $ac_cv_build in
1983 *-*-*) ;;
1984 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1985 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1986    { (exit 1); exit 1; }; };;
1987 esac
1988 build=$ac_cv_build
1989 ac_save_IFS=$IFS; IFS='-'
1990 set x $ac_cv_build
1991 shift
1992 build_cpu=$1
1993 build_vendor=$2
1994 shift; shift
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1997 build_os=$*
1998 IFS=$ac_save_IFS
1999 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2000
2001
2002
2003
2004     . $srcdir/VERSION
2005     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2006     MICRO_VERSION=$PATCH_LEVEL
2007     TOPLEVEL_VERSION=$FULL_VERSION
2008     if test x$MY_PATCH_LEVEL != x; then
2009         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2010     fi
2011     VERSION=$FULL_VERSION
2012     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2013     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2014     #dnl
2015     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2016     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2017     #dnl
2018
2019     # No versioning on directory names of sub-packages
2020     # urg, urg
2021     stepmake=${datadir}/stepmake
2022     presome=${prefix}
2023     if test "$prefix" = "NONE"; then
2024             presome=${ac_default_prefix}
2025     fi
2026     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2027
2028     # urg, how is this supposed to work?
2029     if test "$program_prefix" = "NONE"; then
2030           program_prefix=
2031     fi
2032     if test "$program_suffix" = "NONE"; then
2033           program_suffix=
2034     fi
2035
2036     { $as_echo "$as_me:$LINENO: checking Package" >&5
2037 $as_echo_n "checking Package... " >&6; }
2038     if test "$PACKAGE" = "STEPMAKE"; then
2039         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2040 $as_echo "Stepmake package!" >&6; }
2041
2042         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2043 $as_echo_n "checking builddir... " >&6; }
2044
2045         ugh_ugh_autoconf250_builddir="`pwd`"
2046
2047         if test "$srcdir" = "."; then
2048             srcdir_build=yes
2049         else
2050             srcdir_build=no
2051             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2052             package_srcdir="`dirname  $srcdir`"
2053         fi
2054         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2055 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2056
2057         (cd stepmake 2>/dev/null || mkdir stepmake)
2058         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2059         stepmake=stepmake
2060     else
2061         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2062 $as_echo "$PACKAGE" >&6; }
2063
2064         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2065 $as_echo_n "checking builddir... " >&6; }
2066         ugh_ugh_autoconf250_builddir="`pwd`"
2067
2068         here_dir=$(cd . && pwd)
2069         full_src_dir=$(cd $srcdir && pwd)
2070
2071         if test "$full_src_dir" = "$here_dir"; then
2072             srcdir_build=yes
2073         else
2074             srcdir_build=no
2075         fi
2076         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2077 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2078
2079         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2080 $as_echo_n "checking for stepmake... " >&6; }
2081         # Check for installed stepmake
2082         if test -d $stepmake; then
2083             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2084 $as_echo "$stepmake" >&6; }
2085         else
2086             stepmake="`cd $srcdir/stepmake; pwd`"
2087             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2088 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2089         fi
2090     fi
2091
2092
2093
2094     # Use absolute directory for non-srcdir builds, so that build
2095     # dir can be moved.
2096     if test "$srcdir_build" = "no" ;  then
2097         srcdir="`cd $srcdir; pwd`"
2098     fi
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110     # stepmake nonstandard names
2111
2112
2113
2114     # We don't need the upper case variant,
2115     # so stick to macros are uppercase convention.
2116     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2117     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2118     cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE "${package}"
2120 _ACEOF
2121
2122     cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_NAME "${PACKAGE_NAME}"
2124 _ACEOF
2125
2126     cat >>confdefs.h <<_ACEOF
2127 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2128 _ACEOF
2129
2130
2131     if test -z "$package_depth"; then
2132         package_depth="."
2133     else
2134         package_depth="../$package_depth"
2135     fi
2136     export package_depth
2137
2138
2139     AUTOGENERATE="This file was automatically generated by configure"
2140
2141
2142     CONFIGSUFFIX=
2143     # Check whether --enable-config was given.
2144 if test "${enable_config+set}" = set; then
2145   enableval=$enable_config; CONFIGURATION=$enableval
2146 fi
2147
2148
2149     ##'`#
2150
2151     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2152     CONFIGFILE=config$CONFIGSUFFIX
2153
2154
2155     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2156 $as_echo_n "checking host system type... " >&6; }
2157 if test "${ac_cv_host+set}" = set; then
2158   $as_echo_n "(cached) " >&6
2159 else
2160   if test "x$host_alias" = x; then
2161   ac_cv_host=$ac_cv_build
2162 else
2163   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2164     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2165 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169 fi
2170 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2171 $as_echo "$ac_cv_host" >&6; }
2172 case $ac_cv_host in
2173 *-*-*) ;;
2174 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2175 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2176    { (exit 1); exit 1; }; };;
2177 esac
2178 host=$ac_cv_host
2179 ac_save_IFS=$IFS; IFS='-'
2180 set x $ac_cv_host
2181 shift
2182 host_cpu=$1
2183 host_vendor=$2
2184 shift; shift
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2187 host_os=$*
2188 IFS=$ac_save_IFS
2189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2190
2191
2192
2193     for ac_prog in gmake make
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 $as_echo_n "checking for $ac_word... " >&6; }
2199 if test "${ac_cv_prog_MAKE+set}" = set; then
2200   $as_echo_n "(cached) " >&6
2201 else
2202   if test -n "$MAKE"; then
2203   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_MAKE="$ac_prog"
2213     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 MAKE=$ac_cv_prog_MAKE
2223 if test -n "$MAKE"; then
2224   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2225 $as_echo "$MAKE" >&6; }
2226 else
2227   { $as_echo "$as_me:$LINENO: result: no" >&5
2228 $as_echo "no" >&6; }
2229 fi
2230
2231
2232   test -n "$MAKE" && break
2233 done
2234 test -n "$MAKE" || MAKE="no"
2235
2236
2237
2238     r="`eval echo '$'"MAKE"`"
2239     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2240         true
2241     else
2242         ##STEPMAKE_WARN(cannot find . )
2243         false
2244     fi
2245
2246     if test $? -ne 0; then
2247
2248     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2249
2250         if test "REQUIRED" = "REQUIRED"; then
2251             command="echo ERROR: gmake make not found"
2252             # abort configure process here?
2253         else
2254             command="- echo gmake make not found"
2255         fi
2256         eval "MAKE"='$command'
2257         false
2258     else
2259         true
2260     fi
2261
2262     if test $? -eq 0 -a -n ""; then
2263
2264     r="`eval echo '$'"MAKE"`"
2265     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2266 $as_echo_n "checking $r version... " >&6; }
2267     exe=`
2268     ## which doesn't work in ash, if /usr/bin/which isn't installed
2269     ## type -p doesn't work in ash
2270     ## command -v doesn't work in zsh
2271     ## command -v "$r" 2>&1
2272     ## this test should work in ash, bash, pdksh (ksh), zsh
2273     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2274 `
2275     if test -n ""; then
2276         ver=""
2277     else
2278         ver=`
2279     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2280     ##
2281     ## ARG.
2282     ## Workaround for broken Debian gcc version string:
2283     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2284     ##
2285     ## -V: Workaround for python
2286
2287     #dnl
2288
2289     ## Assume and hunt for dotted version multiplet.
2290     ## use eval trickery, because we cannot use multi-level $() instead of ``
2291     ## for compatibility reasons.
2292
2293     ## grab the first version number in  --version output.
2294     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2295                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2296                 head -n 1 |
2297                 tr ' ' '\n' |
2298                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2299                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2300                 head -n 1\`\"
2301
2302     if test -z "$_ver"; then
2303         ## If empty, try date [fontforge]
2304         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2305             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2306             | head -n 1 \
2307             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2308     fi
2309     echo "$_ver"
2310     #dnl
2311 `
2312     fi
2313     num=`
2314     echo "$ver" | awk -F. '
2315     {
2316       if ($3) {three = $3}
2317       else {three = 0}
2318     }
2319     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2320 `
2321     req=`
2322     echo "" | awk -F. '
2323     {
2324       if ($3) {three = $3}
2325       else {three = 0}
2326     }
2327     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2328 `
2329     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2330 $as_echo "$ver" >&6; }
2331     if test "$num" -lt "$req"; then
2332
2333     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2334
2335     fi
2336     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2337     eval `echo $vervar=$num`
2338 ##    AC_SUBST(`eval echo $vervar`)
2339
2340     fi
2341
2342
2343     for ac_prog in find
2344 do
2345   # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if test "${ac_cv_prog_FIND+set}" = set; then
2350   $as_echo_n "(cached) " >&6
2351 else
2352   if test -n "$FIND"; then
2353   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_FIND="$ac_prog"
2363     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 FIND=$ac_cv_prog_FIND
2373 if test -n "$FIND"; then
2374   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2375 $as_echo "$FIND" >&6; }
2376 else
2377   { $as_echo "$as_me:$LINENO: result: no" >&5
2378 $as_echo "no" >&6; }
2379 fi
2380
2381
2382   test -n "$FIND" && break
2383 done
2384 test -n "$FIND" || FIND="no"
2385
2386
2387
2388     r="`eval echo '$'"FIND"`"
2389     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2390         true
2391     else
2392         ##STEPMAKE_WARN(cannot find . )
2393         false
2394     fi
2395
2396     if test $? -ne 0; then
2397
2398     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2399
2400         if test "REQUIRED" = "REQUIRED"; then
2401             command="echo ERROR: find not found"
2402             # abort configure process here?
2403         else
2404             command="- echo find not found"
2405         fi
2406         eval "FIND"='$command'
2407         false
2408     else
2409         true
2410     fi
2411
2412     if test $? -eq 0 -a -n ""; then
2413
2414     r="`eval echo '$'"FIND"`"
2415     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2416 $as_echo_n "checking $r version... " >&6; }
2417     exe=`
2418     ## which doesn't work in ash, if /usr/bin/which isn't installed
2419     ## type -p doesn't work in ash
2420     ## command -v doesn't work in zsh
2421     ## command -v "$r" 2>&1
2422     ## this test should work in ash, bash, pdksh (ksh), zsh
2423     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2424 `
2425     if test -n ""; then
2426         ver=""
2427     else
2428         ver=`
2429     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2430     ##
2431     ## ARG.
2432     ## Workaround for broken Debian gcc version string:
2433     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2434     ##
2435     ## -V: Workaround for python
2436
2437     #dnl
2438
2439     ## Assume and hunt for dotted version multiplet.
2440     ## use eval trickery, because we cannot use multi-level $() instead of ``
2441     ## for compatibility reasons.
2442
2443     ## grab the first version number in  --version output.
2444     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2445                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2446                 head -n 1 |
2447                 tr ' ' '\n' |
2448                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2449                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2450                 head -n 1\`\"
2451
2452     if test -z "$_ver"; then
2453         ## If empty, try date [fontforge]
2454         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2455             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2456             | head -n 1 \
2457             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2458     fi
2459     echo "$_ver"
2460     #dnl
2461 `
2462     fi
2463     num=`
2464     echo "$ver" | awk -F. '
2465     {
2466       if ($3) {three = $3}
2467       else {three = 0}
2468     }
2469     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2470 `
2471     req=`
2472     echo "" | awk -F. '
2473     {
2474       if ($3) {three = $3}
2475       else {three = 0}
2476     }
2477     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2478 `
2479     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2480 $as_echo "$ver" >&6; }
2481     if test "$num" -lt "$req"; then
2482
2483     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2484
2485     fi
2486     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2487     eval `echo $vervar=$num`
2488 ##    AC_SUBST(`eval echo $vervar`)
2489
2490     fi
2491
2492
2493
2494     for ac_prog in tar
2495 do
2496   # Extract the first word of "$ac_prog", so it can be a program name with args.
2497 set dummy $ac_prog; ac_word=$2
2498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if test "${ac_cv_prog_TAR+set}" = set; then
2501   $as_echo_n "(cached) " >&6
2502 else
2503   if test -n "$TAR"; then
2504   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511   for ac_exec_ext in '' $ac_executable_extensions; do
2512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513     ac_cv_prog_TAR="$ac_prog"
2514     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 TAR=$ac_cv_prog_TAR
2524 if test -n "$TAR"; then
2525   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2526 $as_echo "$TAR" >&6; }
2527 else
2528   { $as_echo "$as_me:$LINENO: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533   test -n "$TAR" && break
2534 done
2535 test -n "$TAR" || TAR="no"
2536
2537
2538
2539     r="`eval echo '$'"TAR"`"
2540     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2541         true
2542     else
2543         ##STEPMAKE_WARN(cannot find . )
2544         false
2545     fi
2546
2547     if test $? -ne 0; then
2548
2549     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2550
2551         if test "REQUIRED" = "REQUIRED"; then
2552             command="echo ERROR: tar not found"
2553             # abort configure process here?
2554         else
2555             command="- echo tar not found"
2556         fi
2557         eval "TAR"='$command'
2558         false
2559     else
2560         true
2561     fi
2562
2563     if test $? -eq 0 -a -n ""; then
2564
2565     r="`eval echo '$'"TAR"`"
2566     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2567 $as_echo_n "checking $r version... " >&6; }
2568     exe=`
2569     ## which doesn't work in ash, if /usr/bin/which isn't installed
2570     ## type -p doesn't work in ash
2571     ## command -v doesn't work in zsh
2572     ## command -v "$r" 2>&1
2573     ## this test should work in ash, bash, pdksh (ksh), zsh
2574     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2575 `
2576     if test -n ""; then
2577         ver=""
2578     else
2579         ver=`
2580     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2581     ##
2582     ## ARG.
2583     ## Workaround for broken Debian gcc version string:
2584     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2585     ##
2586     ## -V: Workaround for python
2587
2588     #dnl
2589
2590     ## Assume and hunt for dotted version multiplet.
2591     ## use eval trickery, because we cannot use multi-level $() instead of ``
2592     ## for compatibility reasons.
2593
2594     ## grab the first version number in  --version output.
2595     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2596                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2597                 head -n 1 |
2598                 tr ' ' '\n' |
2599                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2600                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2601                 head -n 1\`\"
2602
2603     if test -z "$_ver"; then
2604         ## If empty, try date [fontforge]
2605         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2606             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2607             | head -n 1 \
2608             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2609     fi
2610     echo "$_ver"
2611     #dnl
2612 `
2613     fi
2614     num=`
2615     echo "$ver" | awk -F. '
2616     {
2617       if ($3) {three = $3}
2618       else {three = 0}
2619     }
2620     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2621 `
2622     req=`
2623     echo "" | awk -F. '
2624     {
2625       if ($3) {three = $3}
2626       else {three = 0}
2627     }
2628     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2629 `
2630     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2631 $as_echo "$ver" >&6; }
2632     if test "$num" -lt "$req"; then
2633
2634     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2635
2636     fi
2637     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2638     eval `echo $vervar=$num`
2639 ##    AC_SUBST(`eval echo $vervar`)
2640
2641     fi
2642
2643
2644     if test "$(echo 2)" != "2" ||
2645         test "x`uname`" = "xHP-UX"; then
2646         # Extract the first word of "ksh", so it can be a program name with args.
2647 set dummy ksh; ac_word=$2
2648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_path_KSH+set}" = set; then
2651   $as_echo_n "(cached) " >&6
2652 else
2653   case $KSH in
2654   [\\/]* | ?:[\\/]*)
2655   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2656   ;;
2657   *)
2658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2674   ;;
2675 esac
2676 fi
2677 KSH=$ac_cv_path_KSH
2678 if test -n "$KSH"; then
2679   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2680 $as_echo "$KSH" >&6; }
2681 else
2682   { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687         # Extract the first word of "bash", so it can be a program name with args.
2688 set dummy bash; ac_word=$2
2689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_path_BASH+set}" = set; then
2692   $as_echo_n "(cached) " >&6
2693 else
2694   case $BASH in
2695   [\\/]* | ?:[\\/]*)
2696   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2697   ;;
2698   *)
2699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2715   ;;
2716 esac
2717 fi
2718 BASH=$ac_cv_path_BASH
2719 if test -n "$BASH"; then
2720   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2721 $as_echo "$BASH" >&6; }
2722 else
2723   { $as_echo "$as_me:$LINENO: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728
2729     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2730 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2731     warn_b=yes
2732
2733         # Extract the first word of "bash", so it can be a program name with args.
2734 set dummy bash; ac_word=$2
2735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_path_SHELL+set}" = set; then
2738   $as_echo_n "(cached) " >&6
2739 else
2740   case $SHELL in
2741   [\\/]* | ?:[\\/]*)
2742   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2743   ;;
2744   *)
2745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2761   ;;
2762 esac
2763 fi
2764 SHELL=$ac_cv_path_SHELL
2765 if test -n "$SHELL"; then
2766   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2767 $as_echo "$SHELL" >&6; }
2768 else
2769   { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774     else
2775         SHELL=/bin/sh
2776         # Extract the first word of "bash", so it can be a program name with args.
2777 set dummy bash; ac_word=$2
2778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_path_BASH+set}" = set; then
2781   $as_echo_n "(cached) " >&6
2782 else
2783   case $BASH in
2784   [\\/]* | ?:[\\/]*)
2785   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2786   ;;
2787   *)
2788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2796     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2804   ;;
2805 esac
2806 fi
2807 BASH=$ac_cv_path_BASH
2808 if test -n "$BASH"; then
2809   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2810 $as_echo "$BASH" >&6; }
2811 else
2812   { $as_echo "$as_me:$LINENO: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817     fi
2818
2819
2820
2821     { $as_echo "$as_me:$LINENO: checking for python" >&5
2822 $as_echo_n "checking for python... " >&6; }
2823     python="python"
2824     found="no"
2825     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
2826         exe=`
2827     ## which doesn't work in ash, if /usr/bin/which isn't installed
2828     ## type -p doesn't work in ash
2829     ## command -v doesn't work in zsh
2830     ## command -v "$r" 2>&1
2831     ## this test should work in ash, bash, pdksh (ksh), zsh
2832     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2833 `
2834         if ! $exe -V > /dev/null 2>&1 ; then
2835             continue
2836         fi
2837         ver=`
2838     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2839     ##
2840     ## ARG.
2841     ## Workaround for broken Debian gcc version string:
2842     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2843     ##
2844     ## -V: Workaround for python
2845
2846     #dnl
2847
2848     ## Assume and hunt for dotted version multiplet.
2849     ## use eval trickery, because we cannot use multi-level $() instead of ``
2850     ## for compatibility reasons.
2851
2852     ## grab the first version number in  --version output.
2853     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2854                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2855                 head -n 1 |
2856                 tr ' ' '\n' |
2857                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2858                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2859                 head -n 1\`\"
2860
2861     if test -z "$_ver"; then
2862         ## If empty, try date [fontforge]
2863         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2864             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2865             | head -n 1 \
2866             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2867     fi
2868     echo "$_ver"
2869     #dnl
2870 `
2871         num=`
2872     echo "$ver" | awk -F. '
2873     {
2874       if ($3) {three = $3}
2875       else {three = 0}
2876     }
2877     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2878 `
2879         req=`
2880     echo "1.5" | awk -F. '
2881     {
2882       if ($3) {three = $3}
2883       else {three = 0}
2884     }
2885     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2886 `
2887         sup=`
2888     echo "3.0" | awk -F. '
2889     {
2890       if ($3) {three = $3}
2891       else {three = 0}
2892     }
2893     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2894 `
2895         if test -n "1.5" && test "$num" -lt "$req"; then
2896             python="$r >= 1.5 (installed: $ver)"
2897             continue
2898         else
2899             if test -n "3.0" && test "$num" -ge "$sup"; then
2900                 python="$r < 3.0 (installed: $ver)"
2901                 continue
2902             else
2903                 python=$r
2904                 found=$r
2905                 break
2906             fi
2907         fi
2908     done
2909     { $as_echo "$as_me:$LINENO: result: $found" >&5
2910 $as_echo "$found" >&6; }
2911     if test "$found" != "no"; then
2912         { $as_echo "$as_me:$LINENO: checking $python version" >&5
2913 $as_echo_n "checking $python version... " >&6; }
2914         { $as_echo "$as_me:$LINENO: result: $ver" >&5
2915 $as_echo "$ver" >&6; }
2916         PYTHON=$found
2917     else
2918
2919     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2920
2921     fi
2922     # Extract the first word of "$PYTHON", so it can be a program name with args.
2923 set dummy $PYTHON; ac_word=$2
2924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_path_PYTHON+set}" = set; then
2927   $as_echo_n "(cached) " >&6
2928 else
2929   case $PYTHON in
2930   [\\/]* | ?:[\\/]*)
2931   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2932   ;;
2933   *)
2934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2942     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949   ;;
2950 esac
2951 fi
2952 PYTHON=$ac_cv_path_PYTHON
2953 if test -n "$PYTHON"; then
2954   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2955 $as_echo "$PYTHON" >&6; }
2956 else
2957   { $as_echo "$as_me:$LINENO: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962
2963
2964
2965     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2966         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2967         if test "$?" = 1; then
2968             warn='make (Please install *GNU* make)'
2969             # STEPMAKE_WARN($warn)
2970
2971     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2972
2973         fi
2974     fi
2975
2976     ROOTSEP=':'
2977     DIRSEP='/'
2978     PATHSEP=':'
2979     LN=ln
2980     LN_S='ln -s'
2981     ZIP="zip -r -9"
2982
2983
2984
2985
2986
2987
2988     cat >>confdefs.h <<_ACEOF
2989 #define DIRSEP '${DIRSEP}'
2990 _ACEOF
2991
2992     cat >>confdefs.h <<_ACEOF
2993 #define PATHSEP '${PATHSEP}'
2994 _ACEOF
2995
2996
2997
2998
2999
3000
3001     presome=${prefix}
3002     if test "$prefix" = "NONE"; then
3003         presome=${ac_default_prefix}
3004     fi
3005
3006     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3007
3008     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3009     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3010     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3011
3012
3013
3014
3015     cat >>confdefs.h <<_ACEOF
3016 #define DATADIR "${DATADIR}"
3017 _ACEOF
3018
3019     cat >>confdefs.h <<_ACEOF
3020 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3021 _ACEOF
3022
3023
3024
3025     presome=${exec_prefix}
3026     if test "$presome" = "NONE"; then
3027             presome=${prefix}
3028     fi
3029     if test "$presome" = "NONE"; then
3030             presome=${ac_default_prefix}
3031     fi
3032
3033     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3034
3035     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3036     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3037
3038
3039
3040     cat >>confdefs.h <<_ACEOF
3041 #define LIBDIR "${LIBDIR}"
3042 _ACEOF
3043
3044     cat >>confdefs.h <<_ACEOF
3045 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3046 _ACEOF
3047
3048
3049
3050
3051 # List a file that identifies your package.
3052
3053
3054 # Move to aclocal.m4?
3055 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3056
3057
3058 # Uncomment the configuration options your package needs.
3059
3060 DOCUMENTATION=yes
3061 # Check whether --enable-documentation was given.
3062 if test "${enable_documentation+set}" = set; then
3063   enableval=$enable_documentation; DOCUMENTATION=$enableval
3064 fi
3065
3066
3067
3068 GUILEv2=no
3069 # Check whether --enable-guile2 was given.
3070 if test "${enable_guile2+set}" = set; then
3071   enableval=$enable_guile2; GUILEv2=$enableval
3072 fi
3073
3074
3075
3076 # Check whether --with-texgyre-dir was given.
3077 if test "${with_texgyre_dir+set}" = set; then
3078   withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3079 else
3080   TEXGYRE_DIR=""
3081 fi
3082
3083
3084 reloc_b=no
3085 # Check whether --enable-relocation was given.
3086 if test "${enable_relocation+set}" = set; then
3087   enableval=$enable_relocation; reloc_b=$enableval
3088 fi
3089
3090
3091 rpath_b=no
3092 # Check whether --enable-rpath was given.
3093 if test "${enable_rpath+set}" = set; then
3094   enableval=$enable_rpath; rpath_b=$enableval
3095 fi
3096
3097
3098 LINK_GXX_STATICALLY=no
3099 # Check whether --enable-static-gxx was given.
3100 if test "${enable_static_gxx+set}" = set; then
3101   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3102 fi
3103
3104
3105
3106 # must come before any header checks
3107
3108     # -O is necessary to get inlining
3109     CFLAGS=${CFLAGS-""}
3110     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3111     LDFLAGS=${LDFLAGS-""}
3112     optimise_b=yes
3113     checks_b=no
3114     profile_b=no
3115     debug_b=yes
3116     pipe_b=yes
3117
3118     # Check whether --enable-debugging was given.
3119 if test "${enable_debugging+set}" = set; then
3120   enableval=$enable_debugging; debug_b=$enableval
3121 fi
3122
3123
3124     # Check whether --enable-checking was given.
3125 if test "${enable_checking+set}" = set; then
3126   enableval=$enable_checking; checks_b=$enableval
3127 fi
3128
3129
3130     # Check whether --enable-optimising was given.
3131 if test "${enable_optimising+set}" = set; then
3132   enableval=$enable_optimising; optimise_b=$enableval
3133 fi
3134
3135
3136     # Check whether --enable-profiling was given.
3137 if test "${enable_profiling+set}" = set; then
3138   enableval=$enable_profiling; profile_b=$enableval
3139 fi
3140
3141
3142     # Check whether --enable-pipe was given.
3143 if test "${enable_pipe+set}" = set; then
3144   enableval=$enable_pipe; pipe_b=$enableval
3145 fi
3146
3147
3148     if test "$optimise_b" = yes; then
3149         OPTIMIZE=" -O2 -finline-functions"
3150         # following two lines are compatibility while Patchy has not
3151         # yet learnt about --enable-checking.  But once it has, we
3152         # don't want -DDEBUG twice, so we omit it here if it is going
3153         # to get added anyway later.
3154     elif test "$checks_b" != yes; then
3155         DEFINES="$DEFINES -DDEBUG"
3156     fi
3157
3158     if test "$checks_b" = yes; then
3159         DEFINES="$DEFINES -DDEBUG"
3160     fi
3161
3162     if test $profile_b = yes; then
3163         EXTRA_LIBS="-pg"
3164         OPTIMIZE="$OPTIMIZE -pg"
3165     fi
3166
3167     if test $debug_b = yes; then
3168         OPTIMIZE="$OPTIMIZE -g"
3169     fi
3170
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176 if test -n "$ac_tool_prefix"; then
3177   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$CC"; then
3185   ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209   { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$ac_cv_prog_CC"; then
3216   ac_ct_CC=$CC
3217   # Extract the first word of "gcc", so it can be a program name with args.
3218 set dummy gcc; ac_word=$2
3219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3222   $as_echo_n "(cached) " >&6
3223 else
3224   if test -n "$ac_ct_CC"; then
3225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234     ac_cv_prog_ac_ct_CC="gcc"
3235     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3248 else
3249   { $as_echo "$as_me:$LINENO: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253   if test "x$ac_ct_CC" = x; then
3254     CC=""
3255   else
3256     case $cross_compiling:$ac_tool_warned in
3257 yes:)
3258 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3260 ac_tool_warned=yes ;;
3261 esac
3262     CC=$ac_ct_CC
3263   fi
3264 else
3265   CC="$ac_cv_prog_CC"
3266 fi
3267
3268 if test -z "$CC"; then
3269           if test -n "$ac_tool_prefix"; then
3270     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}cc; ac_word=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275   $as_echo_n "(cached) " >&6
3276 else
3277   if test -n "$CC"; then
3278   ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287     ac_cv_prog_CC="${ac_tool_prefix}cc"
3288     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3301 else
3302   { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306
3307   fi
3308 fi
3309 if test -z "$CC"; then
3310   # Extract the first word of "cc", so it can be a program name with args.
3311 set dummy cc; ac_word=$2
3312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if test "${ac_cv_prog_CC+set}" = set; then
3315   $as_echo_n "(cached) " >&6
3316 else
3317   if test -n "$CC"; then
3318   ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320   ac_prog_rejected=no
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_exec_ext in '' $ac_executable_extensions; do
3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3329        ac_prog_rejected=yes
3330        continue
3331      fi
3332     ac_cv_prog_CC="cc"
3333     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 if test $ac_prog_rejected = yes; then
3341   # We found a bogon in the path, so make sure we never use it.
3342   set dummy $ac_cv_prog_CC
3343   shift
3344   if test $# != 0; then
3345     # We chose a different compiler from the bogus one.
3346     # However, it has the same basename, so the bogon will be chosen
3347     # first if we set CC to just the basename; use the full file name.
3348     shift
3349     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3350   fi
3351 fi
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359   { $as_echo "$as_me:$LINENO: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 if test -z "$CC"; then
3366   if test -n "$ac_tool_prefix"; then
3367   for ac_prog in cl.exe
3368   do
3369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_CC+set}" = set; then
3374   $as_echo_n "(cached) " >&6
3375 else
3376   if test -n "$CC"; then
3377   ac_cv_prog_CC="$CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384   for ac_exec_ext in '' $ac_executable_extensions; do
3385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391 done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 CC=$ac_cv_prog_CC
3397 if test -n "$CC"; then
3398   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3400 else
3401   { $as_echo "$as_me:$LINENO: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406     test -n "$CC" && break
3407   done
3408 fi
3409 if test -z "$CC"; then
3410   ac_ct_CC=$CC
3411   for ac_prog in cl.exe
3412 do
3413   # Extract the first word of "$ac_prog", so it can be a program name with args.
3414 set dummy $ac_prog; ac_word=$2
3415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$ac_ct_CC"; then
3421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430     ac_cv_prog_ac_ct_CC="$ac_prog"
3431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3441 if test -n "$ac_ct_CC"; then
3442   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3443 $as_echo "$ac_ct_CC" >&6; }
3444 else
3445   { $as_echo "$as_me:$LINENO: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450   test -n "$ac_ct_CC" && break
3451 done
3452
3453   if test "x$ac_ct_CC" = x; then
3454     CC=""
3455   else
3456     case $cross_compiling:$ac_tool_warned in
3457 yes:)
3458 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned=yes ;;
3461 esac
3462     CC=$ac_ct_CC
3463   fi
3464 fi
3465
3466 fi
3467
3468
3469 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3472 See \`config.log' for more details." >&5
3473 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3474 See \`config.log' for more details." >&2;}
3475    { (exit 1); exit 1; }; }; }
3476
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 { (ac_try="$ac_compiler --version >&5"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488   (eval "$ac_compiler --version >&5") 2>&5
3489   ac_status=$?
3490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }
3492 { (ac_try="$ac_compiler -v >&5"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499   (eval "$ac_compiler -v >&5") 2>&5
3500   ac_status=$?
3501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }
3503 { (ac_try="$ac_compiler -V >&5"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509 $as_echo "$ac_try_echo") >&5
3510   (eval "$ac_compiler -V >&5") 2>&5
3511   ac_status=$?
3512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); }
3514
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 ac_clean_files_save=$ac_clean_files
3531 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3532 # Try to create an executable without -o first, disregard a.out.
3533 # It will help us diagnose broken compilers, and finding out an intuition
3534 # of exeext.
3535 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3536 $as_echo_n "checking for C compiler default output file name... " >&6; }
3537 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3538
3539 # The possible output files:
3540 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3541
3542 ac_rmfiles=
3543 for ac_file in $ac_files
3544 do
3545   case $ac_file in
3546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3548   esac
3549 done
3550 rm -f $ac_rmfiles
3551
3552 if { (ac_try="$ac_link_default"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559   (eval "$ac_link_default") 2>&5
3560   ac_status=$?
3561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; then
3563   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3564 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3565 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3566 # so that the user can short-circuit this test for compilers unknown to
3567 # Autoconf.
3568 for ac_file in $ac_files ''
3569 do
3570   test -f "$ac_file" || continue
3571   case $ac_file in
3572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3573         ;;
3574     [ab].out )
3575         # We found the default executable, but exeext='' is most
3576         # certainly right.
3577         break;;
3578     *.* )
3579         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3580         then :; else
3581            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582         fi
3583         # We set ac_cv_exeext here because the later test for it is not
3584         # safe: cross compilers may not add the suffix if given an `-o'
3585         # argument, so we may need to know it at that point already.
3586         # Even if this section looks crufty: it has the advantage of
3587         # actually working.
3588         break;;
3589     * )
3590         break;;
3591   esac
3592 done
3593 test "$ac_cv_exeext" = no && ac_cv_exeext=
3594
3595 else
3596   ac_file=''
3597 fi
3598
3599 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3600 $as_echo "$ac_file" >&6; }
3601 if test -z "$ac_file"; then
3602   $as_echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3608 See \`config.log' for more details." >&5
3609 $as_echo "$as_me: error: C compiler cannot create executables
3610 See \`config.log' for more details." >&2;}
3611    { (exit 77); exit 77; }; }; }
3612 fi
3613
3614 ac_exeext=$ac_cv_exeext
3615
3616 # Check that the compiler produces executables we can run.  If not, either
3617 # the compiler is broken, or we cross compile.
3618 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3619 $as_echo_n "checking whether the C compiler works... " >&6; }
3620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3621 # If not cross compiling, check that we can run a simple program.
3622 if test "$cross_compiling" != yes; then
3623   if { ac_try='./$ac_file'
3624   { (case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634     cross_compiling=no
3635   else
3636     if test "$cross_compiling" = maybe; then
3637         cross_compiling=yes
3638     else
3639         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3642 If you meant to cross compile, use \`--host'.
3643 See \`config.log' for more details." >&5
3644 $as_echo "$as_me: error: cannot run C compiled programs.
3645 If you meant to cross compile, use \`--host'.
3646 See \`config.log' for more details." >&2;}
3647    { (exit 1); exit 1; }; }; }
3648     fi
3649   fi
3650 fi
3651 { $as_echo "$as_me:$LINENO: result: yes" >&5
3652 $as_echo "yes" >&6; }
3653
3654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3655 ac_clean_files=$ac_clean_files_save
3656 # Check that the compiler produces executables we can run.  If not, either
3657 # the compiler is broken, or we cross compile.
3658 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3659 $as_echo_n "checking whether we are cross compiling... " >&6; }
3660 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3661 $as_echo "$cross_compiling" >&6; }
3662
3663 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3664 $as_echo_n "checking for suffix of executables... " >&6; }
3665 if { (ac_try="$ac_link"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671 $as_echo "$ac_try_echo") >&5
3672   (eval "$ac_link") 2>&5
3673   ac_status=$?
3674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; then
3676   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3679 # `rm'.
3680 for ac_file in conftest.exe conftest conftest.*; do
3681   test -f "$ac_file" || continue
3682   case $ac_file in
3683     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685           break;;
3686     * ) break;;
3687   esac
3688 done
3689 else
3690   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&5
3694 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3695 See \`config.log' for more details." >&2;}
3696    { (exit 1); exit 1; }; }; }
3697 fi
3698
3699 rm -f conftest$ac_cv_exeext
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3701 $as_echo "$ac_cv_exeext" >&6; }
3702
3703 rm -f conftest.$ac_ext
3704 EXEEXT=$ac_cv_exeext
3705 ac_exeext=$EXEEXT
3706 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3707 $as_echo_n "checking for suffix of object files... " >&6; }
3708 if test "${ac_cv_objext+set}" = set; then
3709   $as_echo_n "(cached) " >&6
3710 else
3711   cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h.  */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h.  */
3717
3718 int
3719 main ()
3720 {
3721
3722   ;
3723   return 0;
3724 }
3725 _ACEOF
3726 rm -f conftest.o conftest.obj
3727 if { (ac_try="$ac_compile"
3728 case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3733 $as_echo "$ac_try_echo") >&5
3734   (eval "$ac_compile") 2>&5
3735   ac_status=$?
3736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); }; then
3738   for ac_file in conftest.o conftest.obj conftest.*; do
3739   test -f "$ac_file" || continue;
3740   case $ac_file in
3741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3742     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3743        break;;
3744   esac
3745 done
3746 else
3747   $as_echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3753 See \`config.log' for more details." >&5
3754 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." >&2;}
3756    { (exit 1); exit 1; }; }; }
3757 fi
3758
3759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3760 fi
3761 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3762 $as_echo "$ac_cv_objext" >&6; }
3763 OBJEXT=$ac_cv_objext
3764 ac_objext=$OBJEXT
3765 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3766 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3768   $as_echo_n "(cached) " >&6
3769 else
3770   cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780 #ifndef __GNUC__
3781        choke me
3782 #endif
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3795 $as_echo "$ac_try_echo") >&5
3796   (eval "$ac_compile") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } && {
3803          test -z "$ac_c_werror_flag" ||
3804          test ! -s conftest.err
3805        } && test -s conftest.$ac_objext; then
3806   ac_compiler_gnu=yes
3807 else
3808   $as_echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811         ac_compiler_gnu=no
3812 fi
3813
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3816
3817 fi
3818 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3819 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3820 if test $ac_compiler_gnu = yes; then
3821   GCC=yes
3822 else
3823   GCC=
3824 fi
3825 ac_test_CFLAGS=${CFLAGS+set}
3826 ac_save_CFLAGS=$CFLAGS
3827 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3828 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3829 if test "${ac_cv_prog_cc_g+set}" = set; then
3830   $as_echo_n "(cached) " >&6
3831 else
3832   ac_save_c_werror_flag=$ac_c_werror_flag
3833    ac_c_werror_flag=yes
3834    ac_cv_prog_cc_g=no
3835    CFLAGS="-g"
3836    cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3858 $as_echo "$ac_try_echo") >&5
3859   (eval "$ac_compile") 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } && {
3866          test -z "$ac_c_werror_flag" ||
3867          test ! -s conftest.err
3868        } && test -s conftest.$ac_objext; then
3869   ac_cv_prog_cc_g=yes
3870 else
3871   $as_echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874         CFLAGS=""
3875       cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881
3882 int
3883 main ()
3884 {
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898   (eval "$ac_compile") 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } && {
3905          test -z "$ac_c_werror_flag" ||
3906          test ! -s conftest.err
3907        } && test -s conftest.$ac_objext; then
3908   :
3909 else
3910   $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913         ac_c_werror_flag=$ac_save_c_werror_flag
3914          CFLAGS="-g"
3915          cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 rm -f conftest.$ac_objext
3931 if { (ac_try="$ac_compile"
3932 case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3937 $as_echo "$ac_try_echo") >&5
3938   (eval "$ac_compile") 2>conftest.er1
3939   ac_status=$?
3940   grep -v '^ *+' conftest.er1 >conftest.err
3941   rm -f conftest.er1
3942   cat conftest.err >&5
3943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); } && {
3945          test -z "$ac_c_werror_flag" ||
3946          test ! -s conftest.err
3947        } && test -s conftest.$ac_objext; then
3948   ac_cv_prog_cc_g=yes
3949 else
3950   $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953
3954 fi
3955
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963    ac_c_werror_flag=$ac_save_c_werror_flag
3964 fi
3965 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
3967 if test "$ac_test_CFLAGS" = set; then
3968   CFLAGS=$ac_save_CFLAGS
3969 elif test $ac_cv_prog_cc_g = yes; then
3970   if test "$GCC" = yes; then
3971     CFLAGS="-g -O2"
3972   else
3973     CFLAGS="-g"
3974   fi
3975 else
3976   if test "$GCC" = yes; then
3977     CFLAGS="-O2"
3978   else
3979     CFLAGS=
3980   fi
3981 fi
3982 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984 if test "${ac_cv_prog_cc_c89+set}" = set; then
3985   $as_echo_n "(cached) " >&6
3986 else
3987   ac_cv_prog_cc_c89=no
3988 ac_save_CC=$CC
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h.  */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h.  */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4003      char **p;
4004      int i;
4005 {
4006   return p[i];
4007 }
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4009 {
4010   char *s;
4011   va_list v;
4012   va_start (v,p);
4013   s = g (p, va_arg (v,int));
4014   va_end (v);
4015   return s;
4016 }
4017
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4019    function prototypes and stuff, but not '\xHH' hex character constants.
4020    These don't provoke an error unfortunately, instead are silently treated
4021    as 'x'.  The following induces an error, until -std is added to get
4022    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4023    array size at least.  It's necessary to write '\x00'==0 to get something
4024    that's true only with -std.  */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4026
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028    inside strings and character constants.  */
4029 #define FOO(x) 'x'
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4031
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 int argc;
4037 char **argv;
4038 int
4039 main ()
4040 {
4041 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4048 do
4049   CC="$ac_save_CC $ac_arg"
4050   rm -f conftest.$ac_objext
4051 if { (ac_try="$ac_compile"
4052 case "(($ac_try" in
4053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054   *) ac_try_echo=$ac_try;;
4055 esac
4056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4057 $as_echo "$ac_try_echo") >&5
4058   (eval "$ac_compile") 2>conftest.er1
4059   ac_status=$?
4060   grep -v '^ *+' conftest.er1 >conftest.err
4061   rm -f conftest.er1
4062   cat conftest.err >&5
4063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); } && {
4065          test -z "$ac_c_werror_flag" ||
4066          test ! -s conftest.err
4067        } && test -s conftest.$ac_objext; then
4068   ac_cv_prog_cc_c89=$ac_arg
4069 else
4070   $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073
4074 fi
4075
4076 rm -f core conftest.err conftest.$ac_objext
4077   test "x$ac_cv_prog_cc_c89" != "xno" && break
4078 done
4079 rm -f conftest.$ac_ext
4080 CC=$ac_save_CC
4081
4082 fi
4083 # AC_CACHE_VAL
4084 case "x$ac_cv_prog_cc_c89" in
4085   x)
4086     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4087 $as_echo "none needed" >&6; } ;;
4088   xno)
4089     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4090 $as_echo "unsupported" >&6; } ;;
4091   *)
4092     CC="$CC $ac_cv_prog_cc_c89"
4093     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4094 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4095 esac
4096
4097
4098 ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105
4106
4107
4108
4109
4110
4111     r="`eval echo '$'"CC"`"
4112     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4113         true
4114     else
4115         ##STEPMAKE_WARN(cannot find . )
4116         false
4117     fi
4118
4119     if test $? -ne 0; then
4120
4121     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4122
4123         if test "" = "REQUIRED"; then
4124             command="echo ERROR: cc not found"
4125             # abort configure process here?
4126         else
4127             command="- echo cc not found"
4128         fi
4129         eval "CC"='$command'
4130         false
4131     else
4132         true
4133     fi
4134
4135     LD='$(CC)'
4136
4137
4138     # If -pipe requested, test if it works and add to CFLAGS.
4139     if test "$pipe_b" = yes; then
4140         save_cflags="$CFLAGS"
4141         CFLAGS=" -pipe $CFLAGS";
4142         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4143 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4144 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4145   $as_echo_n "(cached) " >&6
4146 else
4147
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 /* -pipe test */
4155 int
4156 main ()
4157 {
4158
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4165 case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4170 $as_echo "$ac_try_echo") >&5
4171   (eval "$ac_compile") 2>conftest.er1
4172   ac_status=$?
4173   grep -v '^ *+' conftest.er1 >conftest.err
4174   rm -f conftest.er1
4175   cat conftest.err >&5
4176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } && {
4178          test -z "$ac_c_werror_flag" ||
4179          test ! -s conftest.err
4180        } && test -s conftest.$ac_objext; then
4181   stepmake_cv_cflags_pipe=yes
4182 else
4183   $as_echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186         stepmake_cv_cflags_pipe=no
4187 fi
4188
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 fi
4191 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4192 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4193         CFLAGS=$save_cflags
4194         if test $stepmake_cv_cflags_pipe = yes; then
4195             OPTIMIZE="$OPTIMIZE -pipe"
4196         fi
4197     fi
4198
4199     CFLAGS="$CFLAGS $OPTIMIZE"
4200     CPPFLAGS=${CPPFLAGS-""}
4201
4202     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4203 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4204     save_cflags="$CFLAGS"
4205     case "$host" in
4206         alpha*-*-*)
4207                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4208 $as_echo "-mieee" >&6; }
4209             CFLAGS=" -mieee $CFLAGS"
4210             ;;
4211         *)
4212             { $as_echo "$as_me:$LINENO: result: none" >&5
4213 $as_echo "none" >&6; }
4214             ;;
4215     esac
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225 # Extract the first word of "fc-list", so it can be a program name with args.
4226 set dummy fc-list; ac_word=$2
4227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_FCLIST+set}" = set; then
4230   $as_echo_n "(cached) " >&6
4231 else
4232   if test -n "$FCLIST"; then
4233   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240   for ac_exec_ext in '' $ac_executable_extensions; do
4241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242     ac_cv_prog_FCLIST="fc-list"
4243     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244     break 2
4245   fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 FCLIST=$ac_cv_prog_FCLIST
4253 if test -n "$FCLIST"; then
4254   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4255 $as_echo "$FCLIST" >&6; }
4256 else
4257   { $as_echo "$as_me:$LINENO: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260
4261
4262 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4263 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4264
4265
4266 if test "$TEXGYRE_DIR" = ""; then
4267   if test "$FCLIST" != ""; then
4268     TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4269     if test "$TEXGYRE_FILE" != ""; then
4270       TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4271       TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4272       TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4273 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4274          X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4275          X$TEXGYRE_FILE : 'X\(//\)$' \| \
4276          X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4277 $as_echo X$TEXGYRE_FILE |
4278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4279             s//\1/
4280             q
4281           }
4282           /^X\(\/\/\)[^/].*/{
4283             s//\1/
4284             q
4285           }
4286           /^X\(\/\/\)$/{
4287             s//\1/
4288             q
4289           }
4290           /^X\(\/\).*/{
4291             s//\1/
4292             q
4293           }
4294           s/.*/./; q'`
4295     fi
4296   fi
4297 fi
4298 if test "$TEXGYRE_DIR" != "" ;  then
4299   for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4300            texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4301            texgyreheros-regular.otf texgyreheros-italic.otf \
4302            texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4303            texgyrecursor-regular.otf texgyrecursor-italic.otf \
4304            texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4305     if test ! -f "$TEXGYRE_DIR/$f"; then
4306       MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4307     else
4308       TEXGYRE_FILES="$TEXGYRE_FILES $f"
4309     fi
4310   done
4311 fi
4312 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4313   { $as_echo "$as_me:$LINENO: result: no" >&5
4314 $as_echo "no" >&6; }
4315
4316     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4317
4318   if test "$TEXGYRE_DIR" = ""; then
4319     if test "$FCLIST" = ""; then
4320
4321     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4322
4323     else
4324
4325     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)"\"`\"
4326
4327     fi
4328   else
4329
4330     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4331
4332   fi
4333 else
4334   { $as_echo "$as_me:$LINENO: result: yes" >&5
4335 $as_echo "yes" >&6; }
4336 fi
4337
4338 ac_ext=cpp
4339 ac_cpp='$CXXCPP $CPPFLAGS'
4340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4343
4344
4345
4346     { $as_echo "$as_me:$LINENO: checking for python" >&5
4347 $as_echo_n "checking for python... " >&6; }
4348     python="python"
4349     found="no"
4350     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
4351         exe=`
4352     ## which doesn't work in ash, if /usr/bin/which isn't installed
4353     ## type -p doesn't work in ash
4354     ## command -v doesn't work in zsh
4355     ## command -v "$r" 2>&1
4356     ## this test should work in ash, bash, pdksh (ksh), zsh
4357     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4358 `
4359         if ! $exe -V > /dev/null 2>&1 ; then
4360             continue
4361         fi
4362         ver=`
4363     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4364     ##
4365     ## ARG.
4366     ## Workaround for broken Debian gcc version string:
4367     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4368     ##
4369     ## -V: Workaround for python
4370
4371     #dnl
4372
4373     ## Assume and hunt for dotted version multiplet.
4374     ## use eval trickery, because we cannot use multi-level $() instead of ``
4375     ## for compatibility reasons.
4376
4377     ## grab the first version number in  --version output.
4378     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4379                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4380                 head -n 1 |
4381                 tr ' ' '\n' |
4382                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4383                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4384                 head -n 1\`\"
4385
4386     if test -z "$_ver"; then
4387         ## If empty, try date [fontforge]
4388         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4389             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4390             | head -n 1 \
4391             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4392     fi
4393     echo "$_ver"
4394     #dnl
4395 `
4396         num=`
4397     echo "$ver" | awk -F. '
4398     {
4399       if ($3) {three = $3}
4400       else {three = 0}
4401     }
4402     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4403 `
4404         req=`
4405     echo "2.4" | awk -F. '
4406     {
4407       if ($3) {three = $3}
4408       else {three = 0}
4409     }
4410     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4411 `
4412         sup=`
4413     echo "3.0" | awk -F. '
4414     {
4415       if ($3) {three = $3}
4416       else {three = 0}
4417     }
4418     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4419 `
4420         if test -n "2.4" && test "$num" -lt "$req"; then
4421             python="$r >= 2.4 (installed: $ver)"
4422             continue
4423         else
4424             if test -n "3.0" && test "$num" -ge "$sup"; then
4425                 python="$r < 3.0 (installed: $ver)"
4426                 continue
4427             else
4428                 python=$r
4429                 found=$r
4430                 break
4431             fi
4432         fi
4433     done
4434     { $as_echo "$as_me:$LINENO: result: $found" >&5
4435 $as_echo "$found" >&6; }
4436     if test "$found" != "no"; then
4437         { $as_echo "$as_me:$LINENO: checking $python version" >&5
4438 $as_echo_n "checking $python version... " >&6; }
4439         { $as_echo "$as_me:$LINENO: result: $ver" >&5
4440 $as_echo "$ver" >&6; }
4441         PYTHON=$found
4442     else
4443
4444     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4445
4446     fi
4447     # Extract the first word of "$PYTHON", so it can be a program name with args.
4448 set dummy $PYTHON; ac_word=$2
4449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_path_PYTHON+set}" = set; then
4452   $as_echo_n "(cached) " >&6
4453 else
4454   case $PYTHON in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4467     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474   ;;
4475 esac
4476 fi
4477 PYTHON=$ac_cv_path_PYTHON
4478 if test -n "$PYTHON"; then
4479   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4480 $as_echo "$PYTHON" >&6; }
4481 else
4482   { $as_echo "$as_me:$LINENO: result: no" >&5
4483 $as_echo "no" >&6; }
4484 fi
4485
4486
4487
4488
4489 # this checks if we have GNU C by compiling a program with
4490 # __GNUC__, but that macro now unofficially means "the compiler
4491 # supports the GNU C extensions" -- the intel C compiler and clang
4492 # both support __GNUC__!
4493 ac_ext=cpp
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498 if test -z "$CXX"; then
4499   if test -n "$CCC"; then
4500     CXX=$CCC
4501   else
4502     if test -n "$ac_tool_prefix"; then
4503   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4504   do
4505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_CXX+set}" = set; then
4510   $as_echo_n "(cached) " >&6
4511 else
4512   if test -n "$CXX"; then
4513   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520   for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4529
4530 fi
4531 fi
4532 CXX=$ac_cv_prog_CXX
4533 if test -n "$CXX"; then
4534   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4535 $as_echo "$CXX" >&6; }
4536 else
4537   { $as_echo "$as_me:$LINENO: result: no" >&5
4538 $as_echo "no" >&6; }
4539 fi
4540
4541
4542     test -n "$CXX" && break
4543   done
4544 fi
4545 if test -z "$CXX"; then
4546   ac_ct_CXX=$CXX
4547   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548 do
4549   # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$ac_ct_CXX"; then
4557   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_ac_ct_CXX="$ac_prog"
4567     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4577 if test -n "$ac_ct_CXX"; then
4578   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4579 $as_echo "$ac_ct_CXX" >&6; }
4580 else
4581   { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586   test -n "$ac_ct_CXX" && break
4587 done
4588
4589   if test "x$ac_ct_CXX" = x; then
4590     CXX="g++"
4591   else
4592     case $cross_compiling:$ac_tool_warned in
4593 yes:)
4594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4597 esac
4598     CXX=$ac_ct_CXX
4599   fi
4600 fi
4601
4602   fi
4603 fi
4604 # Provide some information about the compiler.
4605 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4606 set X $ac_compile
4607 ac_compiler=$2
4608 { (ac_try="$ac_compiler --version >&5"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615   (eval "$ac_compiler --version >&5") 2>&5
4616   ac_status=$?
4617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }
4619 { (ac_try="$ac_compiler -v >&5"
4620 case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626   (eval "$ac_compiler -v >&5") 2>&5
4627   ac_status=$?
4628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }
4630 { (ac_try="$ac_compiler -V >&5"
4631 case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637   (eval "$ac_compiler -V >&5") 2>&5
4638   ac_status=$?
4639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }
4641
4642 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4645   $as_echo_n "(cached) " >&6
4646 else
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653
4654 int
4655 main ()
4656 {
4657 #ifndef __GNUC__
4658        choke me
4659 #endif
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (ac_try="$ac_compile"
4667 case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673   (eval "$ac_compile") 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } && {
4680          test -z "$ac_cxx_werror_flag" ||
4681          test ! -s conftest.err
4682        } && test -s conftest.$ac_objext; then
4683   ac_compiler_gnu=yes
4684 else
4685   $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688         ac_compiler_gnu=no
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693
4694 fi
4695 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4697 if test $ac_compiler_gnu = yes; then
4698   GXX=yes
4699 else
4700   GXX=
4701 fi
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then
4707   $as_echo_n "(cached) " >&6
4708 else
4709   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4710    ac_cxx_werror_flag=yes
4711    ac_cv_prog_cxx_g=no
4712    CXXFLAGS="-g"
4713    cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719
4720 int
4721 main ()
4722 {
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4730 case "(($ac_try" in
4731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732   *) ac_try_echo=$ac_try;;
4733 esac
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736   (eval "$ac_compile") 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && {
4743          test -z "$ac_cxx_werror_flag" ||
4744          test ! -s conftest.err
4745        } && test -s conftest.$ac_objext; then
4746   ac_cv_prog_cxx_g=yes
4747 else
4748   $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751         CXXFLAGS=""
4752       cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775   (eval "$ac_compile") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_cxx_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest.$ac_objext; then
4785   :
4786 else
4787   $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4791          CXXFLAGS="-g"
4792          cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4809 case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815   (eval "$ac_compile") 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } && {
4822          test -z "$ac_cxx_werror_flag" ||
4823          test ! -s conftest.err
4824        } && test -s conftest.$ac_objext; then
4825   ac_cv_prog_cxx_g=yes
4826 else
4827   $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830
4831 fi
4832
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 fi
4835
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 fi
4838
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4841 fi
4842 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4843 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4844 if test "$ac_test_CXXFLAGS" = set; then
4845   CXXFLAGS=$ac_save_CXXFLAGS
4846 elif test $ac_cv_prog_cxx_g = yes; then
4847   if test "$GXX" = yes; then
4848     CXXFLAGS="-g -O2"
4849   else
4850     CXXFLAGS="-g"
4851   fi
4852 else
4853   if test "$GXX" = yes; then
4854     CXXFLAGS="-O2"
4855   else
4856     CXXFLAGS=
4857   fi
4858 fi
4859 ac_ext=cpp
4860 ac_cpp='$CXXCPP $CPPFLAGS'
4861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4864
4865
4866 ac_ext=cpp
4867 ac_cpp='$CXXCPP $CPPFLAGS'
4868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4871 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4872 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4873 if test -z "$CXXCPP"; then
4874   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4875   $as_echo_n "(cached) " >&6
4876 else
4877       # Double quotes because CXXCPP needs to be expanded
4878     for CXXCPP in "$CXX -E" "/lib/cpp"
4879     do
4880       ac_preproc_ok=false
4881 for ac_cxx_preproc_warn_flag in '' yes
4882 do
4883   # Use a header file that comes with gcc, so configuring glibc
4884   # with a fresh cross-compiler works.
4885   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886   # <limits.h> exists even on freestanding compilers.
4887   # On the NeXT, cc -E runs the code through the compiler's parser,
4888   # not just through cpp. "Syntax error" is here to catch this case.
4889   cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h.  */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h.  */
4895 #ifdef __STDC__
4896 # include <limits.h>
4897 #else
4898 # include <assert.h>
4899 #endif
4900                      Syntax error
4901 _ACEOF
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4903 case "(($ac_try" in
4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905   *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } >/dev/null && {
4916          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4917          test ! -s conftest.err
4918        }; then
4919   :
4920 else
4921   $as_echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924   # Broken: fails on valid input.
4925 continue
4926 fi
4927
4928 rm -f conftest.err conftest.$ac_ext
4929
4930   # OK, works on sane cases.  Now check whether nonexistent headers
4931   # can be detected and how.
4932   cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938 #include <ac_nonexistent.h>
4939 _ACEOF
4940 if { (ac_try="$ac_cpp conftest.$ac_ext"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946 $as_echo "$ac_try_echo") >&5
4947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } >/dev/null && {
4954          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4955          test ! -s conftest.err
4956        }; then
4957   # Broken: success on invalid input.
4958 continue
4959 else
4960   $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963   # Passes both tests.
4964 ac_preproc_ok=:
4965 break
4966 fi
4967
4968 rm -f conftest.err conftest.$ac_ext
4969
4970 done
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.err conftest.$ac_ext
4973 if $ac_preproc_ok; then
4974   break
4975 fi
4976
4977     done
4978     ac_cv_prog_CXXCPP=$CXXCPP
4979
4980 fi
4981   CXXCPP=$ac_cv_prog_CXXCPP
4982 else
4983   ac_cv_prog_CXXCPP=$CXXCPP
4984 fi
4985 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4986 $as_echo "$CXXCPP" >&6; }
4987 ac_preproc_ok=false
4988 for ac_cxx_preproc_warn_flag in '' yes
4989 do
4990   # Use a header file that comes with gcc, so configuring glibc
4991   # with a fresh cross-compiler works.
4992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993   # <limits.h> exists even on freestanding compilers.
4994   # On the NeXT, cc -E runs the code through the compiler's parser,
4995   # not just through cpp. "Syntax error" is here to catch this case.
4996   cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 #ifdef __STDC__
5003 # include <limits.h>
5004 #else
5005 # include <assert.h>
5006 #endif
5007                      Syntax error
5008 _ACEOF
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5010 case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015 $as_echo "$ac_try_echo") >&5
5016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } >/dev/null && {
5023          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5024          test ! -s conftest.err
5025        }; then
5026   :
5027 else
5028   $as_echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031   # Broken: fails on valid input.
5032 continue
5033 fi
5034
5035 rm -f conftest.err conftest.$ac_ext
5036
5037   # OK, works on sane cases.  Now check whether nonexistent headers
5038   # can be detected and how.
5039   cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045 #include <ac_nonexistent.h>
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } >/dev/null && {
5061          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5062          test ! -s conftest.err
5063        }; then
5064   # Broken: success on invalid input.
5065 continue
5066 else
5067   $as_echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070   # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5073 fi
5074
5075 rm -f conftest.err conftest.$ac_ext
5076
5077 done
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.err conftest.$ac_ext
5080 if $ac_preproc_ok; then
5081   :
5082 else
5083   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5085 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5086 See \`config.log' for more details." >&5
5087 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5088 See \`config.log' for more details." >&2;}
5089    { (exit 1); exit 1; }; }; }
5090 fi
5091
5092 ac_ext=cpp
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097
5098
5099 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if test "${ac_cv_path_GREP+set}" = set; then
5102   $as_echo_n "(cached) " >&6
5103 else
5104   if test -z "$GREP"; then
5105   ac_path_GREP_found=false
5106   # Loop through the user's path and test for each of PROGNAME-LIST
5107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112   for ac_prog in grep ggrep; do
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5115       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117   # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5119 *GNU*)
5120   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5121 *)
5122   ac_count=0
5123   $as_echo_n 0123456789 >"conftest.in"
5124   while :
5125   do
5126     cat "conftest.in" "conftest.in" >"conftest.tmp"
5127     mv "conftest.tmp" "conftest.in"
5128     cp "conftest.in" "conftest.nl"
5129     $as_echo 'GREP' >> "conftest.nl"
5130     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132     ac_count=`expr $ac_count + 1`
5133     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134       # Best one so far, save it but keep looking for a better one
5135       ac_cv_path_GREP="$ac_path_GREP"
5136       ac_path_GREP_max=$ac_count
5137     fi
5138     # 10*(2^10) chars as input seems more than enough
5139     test $ac_count -gt 10 && break
5140   done
5141   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142 esac
5143
5144       $ac_path_GREP_found && break 3
5145     done
5146   done
5147 done
5148 IFS=$as_save_IFS
5149   if test -z "$ac_cv_path_GREP"; then
5150     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5151 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5152    { (exit 1); exit 1; }; }
5153   fi
5154 else
5155   ac_cv_path_GREP=$GREP
5156 fi
5157
5158 fi
5159 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161  GREP="$ac_cv_path_GREP"
5162
5163
5164 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170    then ac_cv_path_EGREP="$GREP -E"
5171    else
5172      if test -z "$EGREP"; then
5173   ac_path_EGREP_found=false
5174   # Loop through the user's path and test for each of PROGNAME-LIST
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_prog in egrep; do
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185   # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5187 *GNU*)
5188   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 *)
5190   ac_count=0
5191   $as_echo_n 0123456789 >"conftest.in"
5192   while :
5193   do
5194     cat "conftest.in" "conftest.in" >"conftest.tmp"
5195     mv "conftest.tmp" "conftest.in"
5196     cp "conftest.in" "conftest.nl"
5197     $as_echo 'EGREP' >> "conftest.nl"
5198     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200     ac_count=`expr $ac_count + 1`
5201     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202       # Best one so far, save it but keep looking for a better one
5203       ac_cv_path_EGREP="$ac_path_EGREP"
5204       ac_path_EGREP_max=$ac_count
5205     fi
5206     # 10*(2^10) chars as input seems more than enough
5207     test $ac_count -gt 10 && break
5208   done
5209   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212       $ac_path_EGREP_found && break 3
5213     done
5214   done
5215 done
5216 IFS=$as_save_IFS
5217   if test -z "$ac_cv_path_EGREP"; then
5218     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5219 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5220    { (exit 1); exit 1; }; }
5221   fi
5222 else
5223   ac_cv_path_EGREP=$EGREP
5224 fi
5225
5226    fi
5227 fi
5228 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5229 $as_echo "$ac_cv_path_EGREP" >&6; }
5230  EGREP="$ac_cv_path_EGREP"
5231
5232
5233
5234
5235     cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h.  */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h.  */
5241 #ifdef __clang__
5242        yes
5243        #endif
5244
5245 _ACEOF
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247   $EGREP "yes" >/dev/null 2>&1; then
5248   HAS_CLANG=yes
5249 else
5250   HAS_CLANG=no
5251 fi
5252 rm -f conftest*
5253
5254
5255     if test "$HAS_CLANG" = "no"; then
5256         if test "$GCC" = "yes"; then
5257
5258     r="`eval echo '$'"CC"`"
5259     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5260 $as_echo_n "checking $r version... " >&6; }
5261     exe=`
5262     ## which doesn't work in ash, if /usr/bin/which isn't installed
5263     ## type -p doesn't work in ash
5264     ## command -v doesn't work in zsh
5265     ## command -v "$r" 2>&1
5266     ## this test should work in ash, bash, pdksh (ksh), zsh
5267     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5268 `
5269     if test -n ""; then
5270         ver=""
5271     else
5272         ver=`
5273     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5274     ##
5275     ## ARG.
5276     ## Workaround for broken Debian gcc version string:
5277     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5278     ##
5279     ## -V: Workaround for python
5280
5281     #dnl
5282
5283     ## Assume and hunt for dotted version multiplet.
5284     ## use eval trickery, because we cannot use multi-level $() instead of ``
5285     ## for compatibility reasons.
5286
5287     ## grab the first version number in  --version output.
5288     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5289                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5290                 head -n 1 |
5291                 tr ' ' '\n' |
5292                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5293                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5294                 head -n 1\`\"
5295
5296     if test -z "$_ver"; then
5297         ## If empty, try date [fontforge]
5298         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5299             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5300             | head -n 1 \
5301             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5302     fi
5303     echo "$_ver"
5304     #dnl
5305 `
5306     fi
5307     num=`
5308     echo "$ver" | awk -F. '
5309     {
5310       if ($3) {three = $3}
5311       else {three = 0}
5312     }
5313     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5314 `
5315     req=`
5316     echo "3.4" | awk -F. '
5317     {
5318       if ($3) {three = $3}
5319       else {three = 0}
5320     }
5321     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5322 `
5323     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5324 $as_echo "$ver" >&6; }
5325     if test "$num" -lt "$req"; then
5326
5327     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5328
5329     fi
5330     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5331     eval `echo $vervar=$num`
5332 ##    AC_SUBST(`eval echo $vervar`)
5333
5334         else
5335             warn="$CC (Please install *GNU* cc)"
5336
5337     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5338
5339         fi
5340     fi
5341     # no else, we're fine with any clang
5342
5343
5344
5345     ac_ext=cpp
5346 ac_cpp='$CXXCPP $CPPFLAGS'
5347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5350 if test -z "$CXX"; then
5351   if test -n "$CCC"; then
5352     CXX=$CCC
5353   else
5354     if test -n "$ac_tool_prefix"; then
5355   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5356   do
5357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_CXX+set}" = set; then
5362   $as_echo_n "(cached) " >&6
5363 else
5364   if test -n "$CXX"; then
5365   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370   IFS=$as_save_IFS
5371   test -z "$as_dir" && as_dir=.
5372   for ac_exec_ext in '' $ac_executable_extensions; do
5373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376     break 2
5377   fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 CXX=$ac_cv_prog_CXX
5385 if test -n "$CXX"; then
5386   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5387 $as_echo "$CXX" >&6; }
5388 else
5389   { $as_echo "$as_me:$LINENO: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394     test -n "$CXX" && break
5395   done
5396 fi
5397 if test -z "$CXX"; then
5398   ac_ct_CXX=$CXX
5399   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5400 do
5401   # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -n "$ac_ct_CXX"; then
5409   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418     ac_cv_prog_ac_ct_CXX="$ac_prog"
5419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5429 if test -n "$ac_ct_CXX"; then
5430   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5431 $as_echo "$ac_ct_CXX" >&6; }
5432 else
5433   { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438   test -n "$ac_ct_CXX" && break
5439 done
5440
5441   if test "x$ac_ct_CXX" = x; then
5442     CXX="g++"
5443   else
5444     case $cross_compiling:$ac_tool_warned in
5445 yes:)
5446 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450     CXX=$ac_ct_CXX
5451   fi
5452 fi
5453
5454   fi
5455 fi
5456 # Provide some information about the compiler.
5457 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5458 set X $ac_compile
5459 ac_compiler=$2
5460 { (ac_try="$ac_compiler --version >&5"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5466 $as_echo "$ac_try_echo") >&5
5467   (eval "$ac_compiler --version >&5") 2>&5
5468   ac_status=$?
5469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }
5471 { (ac_try="$ac_compiler -v >&5"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478   (eval "$ac_compiler -v >&5") 2>&5
5479   ac_status=$?
5480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); }
5482 { (ac_try="$ac_compiler -V >&5"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488 $as_echo "$ac_try_echo") >&5
5489   (eval "$ac_compiler -V >&5") 2>&5
5490   ac_status=$?
5491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }
5493
5494 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5495 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5496 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5497   $as_echo_n "(cached) " >&6
5498 else
5499   cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505
5506 int
5507 main ()
5508 {
5509 #ifndef __GNUC__
5510        choke me
5511 #endif
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5524 $as_echo "$ac_try_echo") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && {
5532          test -z "$ac_cxx_werror_flag" ||
5533          test ! -s conftest.err
5534        } && test -s conftest.$ac_objext; then
5535   ac_compiler_gnu=yes
5536 else
5537   $as_echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540         ac_compiler_gnu=no
5541 fi
5542
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5545
5546 fi
5547 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5549 if test $ac_compiler_gnu = yes; then
5550   GXX=yes
5551 else
5552   GXX=
5553 fi
5554 ac_test_CXXFLAGS=${CXXFLAGS+set}
5555 ac_save_CXXFLAGS=$CXXFLAGS
5556 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5558 if test "${ac_cv_prog_cxx_g+set}" = set; then
5559   $as_echo_n "(cached) " >&6
5560 else
5561   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5562    ac_cxx_werror_flag=yes
5563    ac_cv_prog_cxx_g=no
5564    CXXFLAGS="-g"
5565    cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571
5572 int
5573 main ()
5574 {
5575
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587 $as_echo "$ac_try_echo") >&5
5588   (eval "$ac_compile") 2>conftest.er1
5589   ac_status=$?
5590   grep -v '^ *+' conftest.er1 >conftest.err
5591   rm -f conftest.er1
5592   cat conftest.err >&5
5593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && {
5595          test -z "$ac_cxx_werror_flag" ||
5596          test ! -s conftest.err
5597        } && test -s conftest.$ac_objext; then
5598   ac_cv_prog_cxx_g=yes
5599 else
5600   $as_echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603         CXXFLAGS=""
5604       cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h.  */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h.  */
5610
5611 int
5612 main ()
5613 {
5614
5615   ;
5616   return 0;
5617 }
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5621 case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626 $as_echo "$ac_try_echo") >&5
5627   (eval "$ac_compile") 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } && {
5634          test -z "$ac_cxx_werror_flag" ||
5635          test ! -s conftest.err
5636        } && test -s conftest.$ac_objext; then
5637   :
5638 else
5639   $as_echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5643          CXXFLAGS="-g"
5644          cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650
5651 int
5652 main ()
5653 {
5654
5655   ;
5656   return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5661 case "(($ac_try" in
5662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663   *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5666 $as_echo "$ac_try_echo") >&5
5667   (eval "$ac_compile") 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } && {
5674          test -z "$ac_cxx_werror_flag" ||
5675          test ! -s conftest.err
5676        } && test -s conftest.$ac_objext; then
5677   ac_cv_prog_cxx_g=yes
5678 else
5679   $as_echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682
5683 fi
5684
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 fi
5690
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5693 fi
5694 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5695 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5696 if test "$ac_test_CXXFLAGS" = set; then
5697   CXXFLAGS=$ac_save_CXXFLAGS
5698 elif test $ac_cv_prog_cxx_g = yes; then
5699   if test "$GXX" = yes; then
5700     CXXFLAGS="-g -O2"
5701   else
5702     CXXFLAGS="-g"
5703   fi
5704 else
5705   if test "$GXX" = yes; then
5706     CXXFLAGS="-O2"
5707   else
5708     CXXFLAGS=
5709   fi
5710 fi
5711 ac_ext=cpp
5712 ac_cpp='$CXXCPP $CPPFLAGS'
5713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5716
5717
5718
5719     r="`eval echo '$'"CXX"`"
5720     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5721         true
5722     else
5723         ##STEPMAKE_WARN(cannot find . )
5724         false
5725     fi
5726
5727     if test $? -ne 0; then
5728
5729     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5730
5731         if test "REQUIRED" = "REQUIRED"; then
5732             command="echo ERROR: c++ not found"
5733             # abort configure process here?
5734         else
5735             command="- echo c++ not found"
5736         fi
5737         eval "CXX"='$command'
5738         false
5739     else
5740         true
5741     fi
5742
5743
5744     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5745
5746
5747
5748
5749
5750
5751     cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h.  */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h.  */
5757 #ifdef __clang__
5758        yes
5759        #endif
5760
5761 _ACEOF
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763   $EGREP "yes" >/dev/null 2>&1; then
5764   HAS_CLANG=yes
5765 else
5766   HAS_CLANG=no
5767 fi
5768 rm -f conftest*
5769
5770
5771     if test "$HAS_CLANG" = "no"; then
5772         if test "$GXX" = "yes"; then
5773
5774     r="`eval echo '$'"CXX"`"
5775     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5776 $as_echo_n "checking $r version... " >&6; }
5777     exe=`
5778     ## which doesn't work in ash, if /usr/bin/which isn't installed
5779     ## type -p doesn't work in ash
5780     ## command -v doesn't work in zsh
5781     ## command -v "$r" 2>&1
5782     ## this test should work in ash, bash, pdksh (ksh), zsh
5783     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5784 `
5785     if test -n ""; then
5786         ver=""
5787     else
5788         ver=`
5789     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5790     ##
5791     ## ARG.
5792     ## Workaround for broken Debian gcc version string:
5793     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5794     ##
5795     ## -V: Workaround for python
5796
5797     #dnl
5798
5799     ## Assume and hunt for dotted version multiplet.
5800     ## use eval trickery, because we cannot use multi-level $() instead of ``
5801     ## for compatibility reasons.
5802
5803     ## grab the first version number in  --version output.
5804     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5805                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5806                 head -n 1 |
5807                 tr ' ' '\n' |
5808                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5809                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5810                 head -n 1\`\"
5811
5812     if test -z "$_ver"; then
5813         ## If empty, try date [fontforge]
5814         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5815             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5816             | head -n 1 \
5817             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5818     fi
5819     echo "$_ver"
5820     #dnl
5821 `
5822     fi
5823     num=`
5824     echo "$ver" | awk -F. '
5825     {
5826       if ($3) {three = $3}
5827       else {three = 0}
5828     }
5829     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5830 `
5831     req=`
5832     echo "3.4" | awk -F. '
5833     {
5834       if ($3) {three = $3}
5835       else {three = 0}
5836     }
5837     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5838 `
5839     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5840 $as_echo "$ver" >&6; }
5841     if test "$num" -lt "$req"; then
5842
5843     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5844
5845     fi
5846     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5847     eval `echo $vervar=$num`
5848 ##    AC_SUBST(`eval echo $vervar`)
5849
5850         else
5851             warn="$CXX (Please install *GNU* c++)"
5852
5853     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5854
5855         fi
5856     fi
5857     # no else, we're fine with any clang
5858
5859
5860     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5861 $as_echo_n "checking options for known g++ bugs... " >&6; }
5862     case "$GXX:$CXX_VERSION" in
5863         yes:400600[0-2])
5864             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5865 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5866             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5867             ;;
5868         yes:400700?)
5869             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5870 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5871             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5872             ;;
5873         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5874 $as_echo "none" >&6; }
5875     esac
5876
5877
5878
5879     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5880 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5881 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5882   $as_echo_n "(cached) " >&6
5883 else
5884   cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890
5891     template <class T> struct foo { static int baz; };
5892     template <class T> int foo<T>::baz = 1;
5893
5894 int
5895 main ()
5896 {
5897  return foo<int>::baz;
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext conftest$ac_exeext
5903 if { (ac_try="$ac_link"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910   (eval "$ac_link") 2>conftest.er1
5911   ac_status=$?
5912   grep -v '^ *+' conftest.er1 >conftest.err
5913   rm -f conftest.er1
5914   cat conftest.err >&5
5915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); } && {
5917          test -z "$ac_cxx_werror_flag" ||
5918          test ! -s conftest.err
5919        } && test -s conftest$ac_exeext && {
5920          test "$cross_compiling" = yes ||
5921          $as_test_x conftest$ac_exeext
5922        }; then
5923   stepmake_cv_need_explicit_instantiation=no
5924 else
5925   $as_echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928         stepmake_cv_need_explicit_instantiation=yes
5929 fi
5930
5931 rm -rf conftest.dSYM
5932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5933       conftest$ac_exeext conftest.$ac_ext
5934 fi
5935 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5936 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5937     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5938         cat >>confdefs.h <<\_ACEOF
5939 #define NEED_EXPLICIT_INSTANTIATION 1
5940 _ACEOF
5941
5942     fi
5943
5944
5945     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5946 $as_echo_n "checking for stl.data () method... " >&6; }
5947 if test "${stepmake_cv_stl_data_method+set}" = set; then
5948   $as_echo_n "(cached) " >&6
5949 else
5950   cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h.  */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h.  */
5956
5957 #include <vector>
5958 using namespace std;
5959 vector <int> v;
5960 void *p = v.data ();
5961
5962 int
5963 main ()
5964 {
5965
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977 $as_echo "$ac_try_echo") >&5
5978   (eval "$ac_compile") 2>conftest.er1
5979   ac_status=$?
5980   grep -v '^ *+' conftest.er1 >conftest.err
5981   rm -f conftest.er1
5982   cat conftest.err >&5
5983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); } && {
5985          test -z "$ac_cxx_werror_flag" ||
5986          test ! -s conftest.err
5987        } && test -s conftest.$ac_objext; then
5988   stepmake_cv_stl_data_method=yes
5989 else
5990   $as_echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993         stepmake_cv_stl_data_method=no
5994 fi
5995
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5999 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6000     if test $stepmake_cv_stl_data_method = yes; then
6001
6002 cat >>confdefs.h <<\_ACEOF
6003 #define HAVE_STL_DATA_METHOD 1
6004 _ACEOF
6005
6006     fi
6007
6008
6009
6010     for ac_prog in ar
6011 do
6012   # Extract the first word of "$ac_prog", so it can be a program name with args.
6013 set dummy $ac_prog; ac_word=$2
6014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_AR+set}" = set; then
6017   $as_echo_n "(cached) " >&6
6018 else
6019   if test -n "$AR"; then
6020   ac_cv_prog_AR="$AR" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027   for ac_exec_ext in '' $ac_executable_extensions; do
6028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029     ac_cv_prog_AR="$ac_prog"
6030     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031     break 2
6032   fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 AR=$ac_cv_prog_AR
6040 if test -n "$AR"; then
6041   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6043 else
6044   { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049   test -n "$AR" && break
6050 done
6051 test -n "$AR" || AR="no"
6052
6053
6054
6055     r="`eval echo '$'"AR"`"
6056     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6057         true
6058     else
6059         ##STEPMAKE_WARN(cannot find . )
6060         false
6061     fi
6062
6063     if test $? -ne 0; then
6064
6065     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6066
6067         if test "REQUIRED" = "REQUIRED"; then
6068             command="echo ERROR: ar not found"
6069             # abort configure process here?
6070         else
6071             command="- echo ar not found"
6072         fi
6073         eval "AR"='$command'
6074         false
6075     else
6076         true
6077     fi
6078
6079     if test $? -eq 0 -a -n ""; then
6080
6081     r="`eval echo '$'"AR"`"
6082     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6083 $as_echo_n "checking $r version... " >&6; }
6084     exe=`
6085     ## which doesn't work in ash, if /usr/bin/which isn't installed
6086     ## type -p doesn't work in ash
6087     ## command -v doesn't work in zsh
6088     ## command -v "$r" 2>&1
6089     ## this test should work in ash, bash, pdksh (ksh), zsh
6090     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6091 `
6092     if test -n ""; then
6093         ver=""
6094     else
6095         ver=`
6096     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6097     ##
6098     ## ARG.
6099     ## Workaround for broken Debian gcc version string:
6100     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6101     ##
6102     ## -V: Workaround for python
6103
6104     #dnl
6105
6106     ## Assume and hunt for dotted version multiplet.
6107     ## use eval trickery, because we cannot use multi-level $() instead of ``
6108     ## for compatibility reasons.
6109
6110     ## grab the first version number in  --version output.
6111     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6112                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6113                 head -n 1 |
6114                 tr ' ' '\n' |
6115                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6116                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6117                 head -n 1\`\"
6118
6119     if test -z "$_ver"; then
6120         ## If empty, try date [fontforge]
6121         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6122             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6123             | head -n 1 \
6124             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6125     fi
6126     echo "$_ver"
6127     #dnl
6128 `
6129     fi
6130     num=`
6131     echo "$ver" | awk -F. '
6132     {
6133       if ($3) {three = $3}
6134       else {three = 0}
6135     }
6136     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6137 `
6138     req=`
6139     echo "" | awk -F. '
6140     {
6141       if ($3) {three = $3}
6142       else {three = 0}
6143     }
6144     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6145 `
6146     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6147 $as_echo "$ver" >&6; }
6148     if test "$num" -lt "$req"; then
6149
6150     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6151
6152     fi
6153     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6154     eval `echo $vervar=$num`
6155 ##    AC_SUBST(`eval echo $vervar`)
6156
6157     fi
6158
6159     if test -n "$ac_tool_prefix"; then
6160   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_RANLIB+set}" = set; then
6165   $as_echo_n "(cached) " >&6
6166 else
6167   if test -n "$RANLIB"; then
6168   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175   for ac_exec_ext in '' $ac_executable_extensions; do
6176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6178     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179     break 2
6180   fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 RANLIB=$ac_cv_prog_RANLIB
6188 if test -n "$RANLIB"; then
6189   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6190 $as_echo "$RANLIB" >&6; }
6191 else
6192   { $as_echo "$as_me:$LINENO: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197 fi
6198 if test -z "$ac_cv_prog_RANLIB"; then
6199   ac_ct_RANLIB=$RANLIB
6200   # Extract the first word of "ranlib", so it can be a program name with args.
6201 set dummy ranlib; ac_word=$2
6202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6205   $as_echo_n "(cached) " >&6
6206 else
6207   if test -n "$ac_ct_RANLIB"; then
6208   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_ac_ct_RANLIB="ranlib"
6218     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228 if test -n "$ac_ct_RANLIB"; then
6229   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6230 $as_echo "$ac_ct_RANLIB" >&6; }
6231 else
6232   { $as_echo "$as_me:$LINENO: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236   if test "x$ac_ct_RANLIB" = x; then
6237     RANLIB=":"
6238   else
6239     case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245     RANLIB=$ac_ct_RANLIB
6246   fi
6247 else
6248   RANLIB="$ac_cv_prog_RANLIB"
6249 fi
6250
6251
6252
6253     r="`eval echo '$'"RANLIB"`"
6254     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6255         true
6256     else
6257         ##STEPMAKE_WARN(cannot find . )
6258         false
6259     fi
6260
6261     if test $? -ne 0; then
6262
6263     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6264
6265         if test "REQUIRED" = "REQUIRED"; then
6266             command="echo ERROR: ranlib not found"
6267             # abort configure process here?
6268         else
6269             command="- echo ranlib not found"
6270         fi
6271         eval "RANLIB"='$command'
6272         false
6273     else
6274         true
6275     fi
6276
6277
6278
6279
6280 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6281 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6283   $as_echo_n "(cached) " >&6
6284 else
6285   ac_check_lib_save_LIBS=$LIBS
6286 LIBS="-ldl  $LIBS"
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293
6294 /* Override any GCC internal prototype to avoid an error.
6295    Use char because int might match the return type of a GCC
6296    builtin and then its argument prototype would still apply.  */
6297 #ifdef __cplusplus
6298 extern "C"
6299 #endif
6300 char dlopen ();
6301 int
6302 main ()
6303 {
6304 return dlopen ();
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (ac_try="$ac_link"
6311 case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316 $as_echo "$ac_try_echo") >&5
6317   (eval "$ac_link") 2>conftest.er1
6318   ac_status=$?
6319   grep -v '^ *+' conftest.er1 >conftest.err
6320   rm -f conftest.er1
6321   cat conftest.err >&5
6322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } && {
6324          test -z "$ac_cxx_werror_flag" ||
6325          test ! -s conftest.err
6326        } && test -s conftest$ac_exeext && {
6327          test "$cross_compiling" = yes ||
6328          $as_test_x conftest$ac_exeext
6329        }; then
6330   ac_cv_lib_dl_dlopen=yes
6331 else
6332   $as_echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335         ac_cv_lib_dl_dlopen=no
6336 fi
6337
6338 rm -rf conftest.dSYM
6339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6340       conftest$ac_exeext conftest.$ac_ext
6341 LIBS=$ac_check_lib_save_LIBS
6342 fi
6343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6345 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6346   cat >>confdefs.h <<_ACEOF
6347 #define HAVE_LIBDL 1
6348 _ACEOF
6349
6350   LIBS="-ldl $LIBS"
6351
6352 fi
6353
6354
6355 for ac_func in dlopen
6356 do
6357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6359 $as_echo_n "checking for $ac_func... " >&6; }
6360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6361   $as_echo_n "(cached) " >&6
6362 else
6363   cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6371 #define $ac_func innocuous_$ac_func
6372
6373 /* System header to define __stub macros and hopefully few prototypes,
6374     which can conflict with char $ac_func (); below.
6375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6376     <limits.h> exists even on freestanding compilers.  */
6377
6378 #ifdef __STDC__
6379 # include <limits.h>
6380 #else
6381 # include <assert.h>
6382 #endif
6383
6384 #undef $ac_func
6385
6386 /* Override any GCC internal prototype to avoid an error.
6387    Use char because int might match the return type of a GCC
6388    builtin and then its argument prototype would still apply.  */
6389 #ifdef __cplusplus
6390 extern "C"
6391 #endif
6392 char $ac_func ();
6393 /* The GNU C library defines this for functions which it implements
6394     to always fail with ENOSYS.  Some functions are actually named
6395     something starting with __ and the normal name is an alias.  */
6396 #if defined __stub_$ac_func || defined __stub___$ac_func
6397 choke me
6398 #endif
6399
6400 int
6401 main ()
6402 {
6403 return $ac_func ();
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (ac_try="$ac_link"
6410 case "(($ac_try" in
6411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412   *) ac_try_echo=$ac_try;;
6413 esac
6414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6415 $as_echo "$ac_try_echo") >&5
6416   (eval "$ac_link") 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } && {
6423          test -z "$ac_cxx_werror_flag" ||
6424          test ! -s conftest.err
6425        } && test -s conftest$ac_exeext && {
6426          test "$cross_compiling" = yes ||
6427          $as_test_x conftest$ac_exeext
6428        }; then
6429   eval "$as_ac_var=yes"
6430 else
6431   $as_echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434         eval "$as_ac_var=no"
6435 fi
6436
6437 rm -rf conftest.dSYM
6438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6439       conftest$ac_exeext conftest.$ac_ext
6440 fi
6441 ac_res=`eval 'as_val=${'$as_ac_var'}
6442                  $as_echo "$as_val"'`
6443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 as_val=`eval 'as_val=${'$as_ac_var'}
6446                  $as_echo "$as_val"'`
6447    if test "x$as_val" = x""yes; then
6448   cat >>confdefs.h <<_ACEOF
6449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6450 _ACEOF
6451
6452 fi
6453 done
6454
6455
6456 # Do not use bison 1.50 and 1.75.
6457 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6458
6459     # ugh, automake: we want (and check for) bison
6460     for ac_prog in 'bison -y' byacc
6461 do
6462   # Extract the first word of "$ac_prog", so it can be a program name with args.
6463 set dummy $ac_prog; ac_word=$2
6464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if test "${ac_cv_prog_YACC+set}" = set; then
6467   $as_echo_n "(cached) " >&6
6468 else
6469   if test -n "$YACC"; then
6470   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477   for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_prog_YACC="$ac_prog"
6480     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 YACC=$ac_cv_prog_YACC
6490 if test -n "$YACC"; then
6491   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6492 $as_echo "$YACC" >&6; }
6493 else
6494   { $as_echo "$as_me:$LINENO: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498
6499   test -n "$YACC" && break
6500 done
6501 test -n "$YACC" || YACC="yacc"
6502
6503
6504
6505     for ac_prog in bison
6506 do
6507   # Extract the first word of "$ac_prog", so it can be a program name with args.
6508 set dummy $ac_prog; ac_word=$2
6509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if test "${ac_cv_prog_BISON+set}" = set; then
6512   $as_echo_n "(cached) " >&6
6513 else
6514   if test -n "$BISON"; then
6515   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522   for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_prog_BISON="$ac_prog"
6525     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 BISON=$ac_cv_prog_BISON
6535 if test -n "$BISON"; then
6536   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6537 $as_echo "$BISON" >&6; }
6538 else
6539   { $as_echo "$as_me:$LINENO: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544   test -n "$BISON" && break
6545 done
6546 test -n "$BISON" || BISON="no"
6547
6548
6549
6550     r="`eval echo '$'"BISON"`"
6551     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6552         true
6553     else
6554         ##STEPMAKE_WARN(cannot find . )
6555         false
6556     fi
6557
6558     if test $? -ne 0; then
6559
6560     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6561
6562         if test "REQUIRED" = "REQUIRED"; then
6563             command="echo ERROR: bison not found"
6564             # abort configure process here?
6565         else
6566             command="- echo bison not found"
6567         fi
6568         eval "BISON"='$command'
6569         false
6570     else
6571         true
6572     fi
6573
6574     if test $? -eq 0 -a -n ""; then
6575
6576     r="`eval echo '$'"BISON"`"
6577     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6578 $as_echo_n "checking $r version... " >&6; }
6579     exe=`
6580     ## which doesn't work in ash, if /usr/bin/which isn't installed
6581     ## type -p doesn't work in ash
6582     ## command -v doesn't work in zsh
6583     ## command -v "$r" 2>&1
6584     ## this test should work in ash, bash, pdksh (ksh), zsh
6585     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6586 `
6587     if test -n ""; then
6588         ver=""
6589     else
6590         ver=`
6591     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6592     ##
6593     ## ARG.
6594     ## Workaround for broken Debian gcc version string:
6595     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6596     ##
6597     ## -V: Workaround for python
6598
6599     #dnl
6600
6601     ## Assume and hunt for dotted version multiplet.
6602     ## use eval trickery, because we cannot use multi-level $() instead of ``
6603     ## for compatibility reasons.
6604
6605     ## grab the first version number in  --version output.
6606     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6607                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6608                 head -n 1 |
6609                 tr ' ' '\n' |
6610                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6611                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6612                 head -n 1\`\"
6613
6614     if test -z "$_ver"; then
6615         ## If empty, try date [fontforge]
6616         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6617             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6618             | head -n 1 \
6619             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6620     fi
6621     echo "$_ver"
6622     #dnl
6623 `
6624     fi
6625     num=`
6626     echo "$ver" | awk -F. '
6627     {
6628       if ($3) {three = $3}
6629       else {three = 0}
6630     }
6631     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6632 `
6633     req=`
6634     echo "" | awk -F. '
6635     {
6636       if ($3) {three = $3}
6637       else {three = 0}
6638     }
6639     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6640 `
6641     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6642 $as_echo "$ver" >&6; }
6643     if test "$num" -lt "$req"; then
6644
6645     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6646
6647     fi
6648     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6649     eval `echo $vervar=$num`
6650 ##    AC_SUBST(`eval echo $vervar`)
6651
6652     fi
6653
6654
6655     # urg.  should test functionality rather than version.
6656     if test "$BISON" = "bison" -a -n "1.29"; then
6657
6658     r="`eval echo '$'"BISON"`"
6659     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6660 $as_echo_n "checking $r version... " >&6; }
6661     exe=`
6662     ## which doesn't work in ash, if /usr/bin/which isn't installed
6663     ## type -p doesn't work in ash
6664     ## command -v doesn't work in zsh
6665     ## command -v "$r" 2>&1
6666     ## this test should work in ash, bash, pdksh (ksh), zsh
6667     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6668 `
6669     if test -n ""; then
6670         ver=""
6671     else
6672         ver=`
6673     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6674     ##
6675     ## ARG.
6676     ## Workaround for broken Debian gcc version string:
6677     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6678     ##
6679     ## -V: Workaround for python
6680
6681     #dnl
6682
6683     ## Assume and hunt for dotted version multiplet.
6684     ## use eval trickery, because we cannot use multi-level $() instead of ``
6685     ## for compatibility reasons.
6686
6687     ## grab the first version number in  --version output.
6688     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6689                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6690                 head -n 1 |
6691                 tr ' ' '\n' |
6692                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6693                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6694                 head -n 1\`\"
6695
6696     if test -z "$_ver"; then
6697         ## If empty, try date [fontforge]
6698         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6699             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6700             | head -n 1 \
6701             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6702     fi
6703     echo "$_ver"
6704     #dnl
6705 `
6706     fi
6707     num=`
6708     echo "$ver" | awk -F. '
6709     {
6710       if ($3) {three = $3}
6711       else {three = 0}
6712     }
6713     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6714 `
6715     req=`
6716     echo "1.29" | awk -F. '
6717     {
6718       if ($3) {three = $3}
6719       else {three = 0}
6720     }
6721     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6722 `
6723     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6724 $as_echo "$ver" >&6; }
6725     if test "$num" -lt "$req"; then
6726
6727     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6728
6729     fi
6730     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6731     eval `echo $vervar=$num`
6732 ##    AC_SUBST(`eval echo $vervar`)
6733
6734     fi
6735
6736
6737     # ugh, automake: we want (and check for) flex
6738     # AC_PROG_LEX
6739     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6740
6741     # AC_PROG_LEX()
6742     # ugh, ugh
6743     ac_cv_prog_lex_root=lex.yy
6744
6745     for ac_prog in flex
6746 do
6747   # Extract the first word of "$ac_prog", so it can be a program name with args.
6748 set dummy $ac_prog; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_FLEX+set}" = set; then
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$FLEX"; then
6755   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_FLEX="$ac_prog"
6765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 FLEX=$ac_cv_prog_FLEX
6775 if test -n "$FLEX"; then
6776   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6777 $as_echo "$FLEX" >&6; }
6778 else
6779   { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783
6784   test -n "$FLEX" && break
6785 done
6786 test -n "$FLEX" || FLEX="no"
6787
6788
6789
6790     r="`eval echo '$'"FLEX"`"
6791     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6792         true
6793     else
6794         ##STEPMAKE_WARN(cannot find . )
6795         false
6796     fi
6797
6798     if test $? -ne 0; then
6799
6800     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6801
6802         if test "REQUIRED" = "REQUIRED"; then
6803             command="echo ERROR: flex not found"
6804             # abort configure process here?
6805         else
6806             command="- echo flex not found"
6807         fi
6808         eval "FLEX"='$command'
6809         false
6810     else
6811         true
6812     fi
6813
6814     if test $? -eq 0 -a -n ""; then
6815
6816     r="`eval echo '$'"FLEX"`"
6817     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6818 $as_echo_n "checking $r version... " >&6; }
6819     exe=`
6820     ## which doesn't work in ash, if /usr/bin/which isn't installed
6821     ## type -p doesn't work in ash
6822     ## command -v doesn't work in zsh
6823     ## command -v "$r" 2>&1
6824     ## this test should work in ash, bash, pdksh (ksh), zsh
6825     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6826 `
6827     if test -n ""; then
6828         ver=""
6829     else
6830         ver=`
6831     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6832     ##
6833     ## ARG.
6834     ## Workaround for broken Debian gcc version string:
6835     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6836     ##
6837     ## -V: Workaround for python
6838
6839     #dnl
6840
6841     ## Assume and hunt for dotted version multiplet.
6842     ## use eval trickery, because we cannot use multi-level $() instead of ``
6843     ## for compatibility reasons.
6844
6845     ## grab the first version number in  --version output.
6846     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6847                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6848                 head -n 1 |
6849                 tr ' ' '\n' |
6850                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6851                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6852                 head -n 1\`\"
6853
6854     if test -z "$_ver"; then
6855         ## If empty, try date [fontforge]
6856         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6857             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6858             | head -n 1 \
6859             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6860     fi
6861     echo "$_ver"
6862     #dnl
6863 `
6864     fi
6865     num=`
6866     echo "$ver" | awk -F. '
6867     {
6868       if ($3) {three = $3}
6869       else {three = 0}
6870     }
6871     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6872 `
6873     req=`
6874     echo "" | awk -F. '
6875     {
6876       if ($3) {three = $3}
6877       else {three = 0}
6878     }
6879     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6880 `
6881     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6882 $as_echo "$ver" >&6; }
6883     if test "$num" -lt "$req"; then
6884
6885     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6886
6887     fi
6888     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6889     eval `echo $vervar=$num`
6890 ##    AC_SUBST(`eval echo $vervar`)
6891
6892     fi
6893
6894
6895 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6896 $as_echo_n "checking for ANSI C header files... " >&6; }
6897 if test "${ac_cv_header_stdc+set}" = set; then
6898   $as_echo_n "(cached) " >&6
6899 else
6900   cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906 #include <stdlib.h>
6907 #include <stdarg.h>
6908 #include <string.h>
6909 #include <float.h>
6910
6911 int
6912 main ()
6913 {
6914
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext
6920 if { (ac_try="$ac_compile"
6921 case "(($ac_try" in
6922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6923   *) ac_try_echo=$ac_try;;
6924 esac
6925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6926 $as_echo "$ac_try_echo") >&5
6927   (eval "$ac_compile") 2>conftest.er1
6928   ac_status=$?
6929   grep -v '^ *+' conftest.er1 >conftest.err
6930   rm -f conftest.er1
6931   cat conftest.err >&5
6932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } && {
6934          test -z "$ac_cxx_werror_flag" ||
6935          test ! -s conftest.err
6936        } && test -s conftest.$ac_objext; then
6937   ac_cv_header_stdc=yes
6938 else
6939   $as_echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942         ac_cv_header_stdc=no
6943 fi
6944
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946
6947 if test $ac_cv_header_stdc = yes; then
6948   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6949   cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955 #include <string.h>
6956
6957 _ACEOF
6958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6959   $EGREP "memchr" >/dev/null 2>&1; then
6960   :
6961 else
6962   ac_cv_header_stdc=no
6963 fi
6964 rm -f conftest*
6965
6966 fi
6967
6968 if test $ac_cv_header_stdc = yes; then
6969   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6970   cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h.  */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h.  */
6976 #include <stdlib.h>
6977
6978 _ACEOF
6979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980   $EGREP "free" >/dev/null 2>&1; then
6981   :
6982 else
6983   ac_cv_header_stdc=no
6984 fi
6985 rm -f conftest*
6986
6987 fi
6988
6989 if test $ac_cv_header_stdc = yes; then
6990   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6991   if test "$cross_compiling" = yes; then
6992   :
6993 else
6994   cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000 #include <ctype.h>
7001 #include <stdlib.h>
7002 #if ((' ' & 0x0FF) == 0x020)
7003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7005 #else
7006 # define ISLOWER(c) \
7007                    (('a' <= (c) && (c) <= 'i') \
7008                      || ('j' <= (c) && (c) <= 'r') \
7009                      || ('s' <= (c) && (c) <= 'z'))
7010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7011 #endif
7012
7013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7014 int
7015 main ()
7016 {
7017   int i;
7018   for (i = 0; i < 256; i++)
7019     if (XOR (islower (i), ISLOWER (i))
7020         || toupper (i) != TOUPPER (i))
7021       return 2;
7022   return 0;
7023 }
7024 _ACEOF
7025 rm -f conftest$ac_exeext
7026 if { (ac_try="$ac_link"
7027 case "(($ac_try" in
7028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029   *) ac_try_echo=$ac_try;;
7030 esac
7031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033   (eval "$ac_link") 2>&5
7034   ac_status=$?
7035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7037   { (case "(($ac_try" in
7038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039   *) ac_try_echo=$ac_try;;
7040 esac
7041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7042 $as_echo "$ac_try_echo") >&5
7043   (eval "$ac_try") 2>&5
7044   ac_status=$?
7045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; }; then
7047   :
7048 else
7049   $as_echo "$as_me: program exited with status $ac_status" >&5
7050 $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053 ( exit $ac_status )
7054 ac_cv_header_stdc=no
7055 fi
7056 rm -rf conftest.dSYM
7057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7058 fi
7059
7060
7061 fi
7062 fi
7063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7064 $as_echo "$ac_cv_header_stdc" >&6; }
7065 if test $ac_cv_header_stdc = yes; then
7066
7067 cat >>confdefs.h <<\_ACEOF
7068 #define STDC_HEADERS 1
7069 _ACEOF
7070
7071 fi
7072
7073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7084                   inttypes.h stdint.h unistd.h
7085 do
7086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7088 $as_echo_n "checking for $ac_header... " >&6; }
7089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7090   $as_echo_n "(cached) " >&6
7091 else
7092   cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h.  */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h.  */
7098 $ac_includes_default
7099
7100 #include <$ac_header>
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7104 case "(($ac_try" in
7105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106   *) ac_try_echo=$ac_try;;
7107 esac
7108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110   (eval "$ac_compile") 2>conftest.er1
7111   ac_status=$?
7112   grep -v '^ *+' conftest.er1 >conftest.err
7113   rm -f conftest.er1
7114   cat conftest.err >&5
7115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } && {
7117          test -z "$ac_cxx_werror_flag" ||
7118          test ! -s conftest.err
7119        } && test -s conftest.$ac_objext; then
7120   eval "$as_ac_Header=yes"
7121 else
7122   $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7124
7125         eval "$as_ac_Header=no"
7126 fi
7127
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 fi
7130 ac_res=`eval 'as_val=${'$as_ac_Header'}
7131                  $as_echo "$as_val"'`
7132                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7133 $as_echo "$ac_res" >&6; }
7134 as_val=`eval 'as_val=${'$as_ac_Header'}
7135                  $as_echo "$as_val"'`
7136    if test "x$as_val" = x""yes; then
7137   cat >>confdefs.h <<_ACEOF
7138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7139 _ACEOF
7140
7141 fi
7142
7143 done
7144
7145
7146
7147
7148 for ac_header in FlexLexer.h
7149 do
7150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7152   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7153 $as_echo_n "checking for $ac_header... " >&6; }
7154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7155   $as_echo_n "(cached) " >&6
7156 fi
7157 ac_res=`eval 'as_val=${'$as_ac_Header'}
7158                  $as_echo "$as_val"'`
7159                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7160 $as_echo "$ac_res" >&6; }
7161 else
7162   # Is the header compilable?
7163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7164 $as_echo_n "checking $ac_header usability... " >&6; }
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h.  */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h.  */
7171 $ac_includes_default
7172 #include <$ac_header>
7173 _ACEOF
7174 rm -f conftest.$ac_objext
7175 if { (ac_try="$ac_compile"
7176 case "(($ac_try" in
7177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178   *) ac_try_echo=$ac_try;;
7179 esac
7180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7181 $as_echo "$ac_try_echo") >&5
7182   (eval "$ac_compile") 2>conftest.er1
7183   ac_status=$?
7184   grep -v '^ *+' conftest.er1 >conftest.err
7185   rm -f conftest.er1
7186   cat conftest.err >&5
7187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); } && {
7189          test -z "$ac_cxx_werror_flag" ||
7190          test ! -s conftest.err
7191        } && test -s conftest.$ac_objext; then
7192   ac_header_compiler=yes
7193 else
7194   $as_echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197         ac_header_compiler=no
7198 fi
7199
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7202 $as_echo "$ac_header_compiler" >&6; }
7203
7204 # Is the header present?
7205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7206 $as_echo_n "checking $ac_header presence... " >&6; }
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213 #include <$ac_header>
7214 _ACEOF
7215 if { (ac_try="$ac_cpp conftest.$ac_ext"
7216 case "(($ac_try" in
7217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218   *) ac_try_echo=$ac_try;;
7219 esac
7220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7221 $as_echo "$ac_try_echo") >&5
7222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } >/dev/null && {
7229          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7230          test ! -s conftest.err
7231        }; then
7232   ac_header_preproc=yes
7233 else
7234   $as_echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237   ac_header_preproc=no
7238 fi
7239
7240 rm -f conftest.err conftest.$ac_ext
7241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242 $as_echo "$ac_header_preproc" >&6; }
7243
7244 # So?  What about this header?
7245 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7246   yes:no: )
7247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7251     ac_header_preproc=yes
7252     ;;
7253   no:yes:* )
7254     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7257 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7258     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7260     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7261 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7262     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7264     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7266
7267     ;;
7268 esac
7269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 $as_echo_n "checking for $ac_header... " >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272   $as_echo_n "(cached) " >&6
7273 else
7274   eval "$as_ac_Header=\$ac_header_preproc"
7275 fi
7276 ac_res=`eval 'as_val=${'$as_ac_Header'}
7277                  $as_echo "$as_val"'`
7278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7279 $as_echo "$ac_res" >&6; }
7280
7281 fi
7282 as_val=`eval 'as_val=${'$as_ac_Header'}
7283                  $as_echo "$as_val"'`
7284    if test "x$as_val" = x""yes; then
7285   cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287 _ACEOF
7288  true
7289 else
7290   false
7291 fi
7292
7293 done
7294
7295     if test $? -ne 0; then
7296         warn='FlexLexer.h (flex package)'
7297
7298     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7299
7300     fi
7301     # check for yyFlexLexer.yy_current_buffer,
7302     # in 2.5.4 <= flex < 2.5.29
7303     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7304 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7305 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7306   $as_echo_n "(cached) " >&6
7307 else
7308   cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314
7315 using namespace std;
7316 #include <FlexLexer.h>
7317 class yy_flex_lexer: public yyFlexLexer
7318 {
7319   public:
7320     yy_flex_lexer ()
7321     {
7322       yy_current_buffer = 0;
7323     }
7324 };
7325
7326 int
7327 main ()
7328 {
7329
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (ac_try="$ac_compile"
7336 case "(($ac_try" in
7337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338   *) ac_try_echo=$ac_try;;
7339 esac
7340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7341 $as_echo "$ac_try_echo") >&5
7342   (eval "$ac_compile") 2>conftest.er1
7343   ac_status=$?
7344   grep -v '^ *+' conftest.er1 >conftest.err
7345   rm -f conftest.er1
7346   cat conftest.err >&5
7347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } && {
7349          test -z "$ac_cxx_werror_flag" ||
7350          test ! -s conftest.err
7351        } && test -s conftest.$ac_objext; then
7352   stepmake_cv_flexlexer_yy_current_buffer=yes
7353 else
7354   $as_echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357         stepmake_cv_flexlexer_yy_current_buffer=no
7358 fi
7359
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 fi
7362 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7363 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7364     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7365
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7368 _ACEOF
7369
7370     fi
7371
7372
7373         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7374 $as_echo_n "checking FlexLexer.h location... " >&6; }
7375
7376         # ugh.
7377         cat <<EOF > conftest.cc
7378 using namespace std;
7379 #include <FlexLexer.h>
7380 EOF
7381         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7382           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7383           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7384         rm conftest.cc
7385
7386         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7387 $as_echo "$FLEXLEXER_FILE" >&6; }
7388
7389
7390     lang=English
7391     ALL_LINGUAS="en nl"
7392
7393     # with/enable ??
7394
7395 # Check whether --with-localedir was given.
7396 if test "${with_localedir+set}" = set; then
7397   withval=$with_localedir; localedir=$with_localedir
7398 else
7399   localedir='${prefix}/share/locale'
7400 fi
7401
7402
7403
7404 # Check whether --with-lang was given.
7405 if test "${with_lang+set}" = set; then
7406   withval=$with_lang; language=$with_lang
7407 else
7408   language=English
7409 fi
7410
7411
7412     { $as_echo "$as_me:$LINENO: checking language" >&5
7413 $as_echo_n "checking language... " >&6; }
7414     case "$language" in
7415       En* | en* | Am* | am* | US* | us*)
7416             lang=English;;
7417       NL | nl | Du* | du* | Ned* | ned*)
7418             lang=Dutch;;
7419       "")
7420             lang=English;;
7421       *)
7422             lang=unknown;;
7423     esac
7424     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7425 $as_echo "$lang" >&6; }
7426
7427     if test "$lang" = "unknown" ; then
7428
7429     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7430 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7431     warn_b=yes
7432
7433     fi
7434
7435
7436
7437     presome=${prefix}
7438     if test "$prefix" = "NONE"; then
7439             presome=${ac_default_prefix}
7440     fi
7441     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7442
7443
7444     cat >>confdefs.h <<_ACEOF
7445 #define LOCALEDIR "${LOCALEDIR}"
7446 _ACEOF
7447
7448
7449 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7450 $as_echo_n "checking for gettext in -lintl... " >&6; }
7451 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7452   $as_echo_n "(cached) " >&6
7453 else
7454   ac_check_lib_save_LIBS=$LIBS
7455 LIBS="-lintl  $LIBS"
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462
7463 /* Override any GCC internal prototype to avoid an error.
7464    Use char because int might match the return type of a GCC
7465    builtin and then its argument prototype would still apply.  */
7466 #ifdef __cplusplus
7467 extern "C"
7468 #endif
7469 char gettext ();
7470 int
7471 main ()
7472 {
7473 return gettext ();
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7480 case "(($ac_try" in
7481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482   *) ac_try_echo=$ac_try;;
7483 esac
7484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486   (eval "$ac_link") 2>conftest.er1
7487   ac_status=$?
7488   grep -v '^ *+' conftest.er1 >conftest.err
7489   rm -f conftest.er1
7490   cat conftest.err >&5
7491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); } && {
7493          test -z "$ac_cxx_werror_flag" ||
7494          test ! -s conftest.err
7495        } && test -s conftest$ac_exeext && {
7496          test "$cross_compiling" = yes ||
7497          $as_test_x conftest$ac_exeext
7498        }; then
7499   ac_cv_lib_intl_gettext=yes
7500 else
7501   $as_echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504         ac_cv_lib_intl_gettext=no
7505 fi
7506
7507 rm -rf conftest.dSYM
7508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7509       conftest$ac_exeext conftest.$ac_ext
7510 LIBS=$ac_check_lib_save_LIBS
7511 fi
7512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7513 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7514 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7515   cat >>confdefs.h <<_ACEOF
7516 #define HAVE_LIBINTL 1
7517 _ACEOF
7518
7519   LIBS="-lintl $LIBS"
7520
7521 fi
7522
7523
7524 for ac_func in gettext
7525 do
7526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7528 $as_echo_n "checking for $ac_func... " >&6; }
7529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7530   $as_echo_n "(cached) " >&6
7531 else
7532   cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7540 #define $ac_func innocuous_$ac_func
7541
7542 /* System header to define __stub macros and hopefully few prototypes,
7543     which can conflict with char $ac_func (); below.
7544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7545     <limits.h> exists even on freestanding compilers.  */
7546
7547 #ifdef __STDC__
7548 # include <limits.h>
7549 #else
7550 # include <assert.h>
7551 #endif
7552
7553 #undef $ac_func
7554
7555 /* Override any GCC internal prototype to avoid an error.
7556    Use char because int might match the return type of a GCC
7557    builtin and then its argument prototype would still apply.  */
7558 #ifdef __cplusplus
7559 extern "C"
7560 #endif
7561 char $ac_func ();
7562 /* The GNU C library defines this for functions which it implements
7563     to always fail with ENOSYS.  Some functions are actually named
7564     something starting with __ and the normal name is an alias.  */
7565 #if defined __stub_$ac_func || defined __stub___$ac_func
7566 choke me
7567 #endif
7568
7569 int
7570 main ()
7571 {
7572 return $ac_func ();
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext conftest$ac_exeext
7578 if { (ac_try="$ac_link"
7579 case "(($ac_try" in
7580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581   *) ac_try_echo=$ac_try;;
7582 esac
7583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7584 $as_echo "$ac_try_echo") >&5
7585   (eval "$ac_link") 2>conftest.er1
7586   ac_status=$?
7587   grep -v '^ *+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } && {
7592          test -z "$ac_cxx_werror_flag" ||
7593          test ! -s conftest.err
7594        } && test -s conftest$ac_exeext && {
7595          test "$cross_compiling" = yes ||
7596          $as_test_x conftest$ac_exeext
7597        }; then
7598   eval "$as_ac_var=yes"
7599 else
7600   $as_echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603         eval "$as_ac_var=no"
7604 fi
7605
7606 rm -rf conftest.dSYM
7607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7608       conftest$ac_exeext conftest.$ac_ext
7609 fi
7610 ac_res=`eval 'as_val=${'$as_ac_var'}
7611                  $as_echo "$as_val"'`
7612                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7613 $as_echo "$ac_res" >&6; }
7614 as_val=`eval 'as_val=${'$as_ac_var'}
7615                  $as_echo "$as_val"'`
7616    if test "x$as_val" = x""yes; then
7617   cat >>confdefs.h <<_ACEOF
7618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7619 _ACEOF
7620
7621 fi
7622 done
7623
7624
7625
7626
7627     for ac_prog in msgfmt
7628 do
7629   # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7634   $as_echo_n "(cached) " >&6
7635 else
7636   if test -n "$MSGFMT"; then
7637   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644   for ac_exec_ext in '' $ac_executable_extensions; do
7645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646     ac_cv_prog_MSGFMT="$ac_prog"
7647     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651 done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 MSGFMT=$ac_cv_prog_MSGFMT
7657 if test -n "$MSGFMT"; then
7658   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7659 $as_echo "$MSGFMT" >&6; }
7660 else
7661   { $as_echo "$as_me:$LINENO: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666   test -n "$MSGFMT" && break
7667 done
7668 test -n "$MSGFMT" || MSGFMT="no"
7669
7670
7671
7672     r="`eval echo '$'"MSGFMT"`"
7673     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7674         true
7675     else
7676         ##STEPMAKE_WARN(cannot find . )
7677         false
7678     fi
7679
7680     if test $? -ne 0; then
7681
7682     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7683
7684         if test "REQUIRED" = "REQUIRED"; then
7685             command="echo ERROR: msgfmt not found"
7686             # abort configure process here?
7687         else
7688             command="- echo msgfmt not found"
7689         fi
7690         eval "MSGFMT"='$command'
7691         false
7692     else
7693         true
7694     fi
7695
7696     if test $? -eq 0 -a -n ""; then
7697
7698     r="`eval echo '$'"MSGFMT"`"
7699     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7700 $as_echo_n "checking $r version... " >&6; }
7701     exe=`
7702     ## which doesn't work in ash, if /usr/bin/which isn't installed
7703     ## type -p doesn't work in ash
7704     ## command -v doesn't work in zsh
7705     ## command -v "$r" 2>&1
7706     ## this test should work in ash, bash, pdksh (ksh), zsh
7707     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7708 `
7709     if test -n ""; then
7710         ver=""
7711     else
7712         ver=`
7713     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7714     ##
7715     ## ARG.
7716     ## Workaround for broken Debian gcc version string:
7717     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7718     ##
7719     ## -V: Workaround for python
7720
7721     #dnl
7722
7723     ## Assume and hunt for dotted version multiplet.
7724     ## use eval trickery, because we cannot use multi-level $() instead of ``
7725     ## for compatibility reasons.
7726
7727     ## grab the first version number in  --version output.
7728     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7729                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7730                 head -n 1 |
7731                 tr ' ' '\n' |
7732                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7733                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7734                 head -n 1\`\"
7735
7736     if test -z "$_ver"; then
7737         ## If empty, try date [fontforge]
7738         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7739             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7740             | head -n 1 \
7741             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7742     fi
7743     echo "$_ver"
7744     #dnl
7745 `
7746     fi
7747     num=`
7748     echo "$ver" | awk -F. '
7749     {
7750       if ($3) {three = $3}
7751       else {three = 0}
7752     }
7753     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7754 `
7755     req=`
7756     echo "" | awk -F. '
7757     {
7758       if ($3) {three = $3}
7759       else {three = 0}
7760     }
7761     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7762 `
7763     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7764 $as_echo "$ver" >&6; }
7765     if test "$num" -lt "$req"; then
7766
7767     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7768
7769     fi
7770     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7771     eval `echo $vervar=$num`
7772 ##    AC_SUBST(`eval echo $vervar`)
7773
7774     fi
7775
7776
7777
7778
7779     for ac_prog in mf-nowin mf mfw mfont
7780 do
7781   # Extract the first word of "$ac_prog", so it can be a program name with args.
7782 set dummy $ac_prog; ac_word=$2
7783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_prog_METAFONT+set}" = set; then
7786   $as_echo_n "(cached) " >&6
7787 else
7788   if test -n "$METAFONT"; then
7789   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794   IFS=$as_save_IFS
7795   test -z "$as_dir" && as_dir=.
7796   for ac_exec_ext in '' $ac_executable_extensions; do
7797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798     ac_cv_prog_METAFONT="$ac_prog"
7799     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800     break 2
7801   fi
7802 done
7803 done
7804 IFS=$as_save_IFS
7805
7806 fi
7807 fi
7808 METAFONT=$ac_cv_prog_METAFONT
7809 if test -n "$METAFONT"; then
7810   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7811 $as_echo "$METAFONT" >&6; }
7812 else
7813   { $as_echo "$as_me:$LINENO: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817
7818   test -n "$METAFONT" && break
7819 done
7820 test -n "$METAFONT" || METAFONT="no"
7821
7822
7823
7824     r="`eval echo '$'"METAFONT"`"
7825     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7826         true
7827     else
7828         ##STEPMAKE_WARN(cannot find . )
7829         false
7830     fi
7831
7832     if test $? -ne 0; then
7833
7834     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7835
7836         if test "REQUIRED" = "REQUIRED"; then
7837             command="echo ERROR: mf-nowin mf mfw mfont not found"
7838             # abort configure process here?
7839         else
7840             command="- echo mf-nowin mf mfw mfont not found"
7841         fi
7842         eval "METAFONT"='$command'
7843         false
7844     else
7845         true
7846     fi
7847
7848     if test $? -eq 0 -a -n ""; then
7849
7850     r="`eval echo '$'"METAFONT"`"
7851     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7852 $as_echo_n "checking $r version... " >&6; }
7853     exe=`
7854     ## which doesn't work in ash, if /usr/bin/which isn't installed
7855     ## type -p doesn't work in ash
7856     ## command -v doesn't work in zsh
7857     ## command -v "$r" 2>&1
7858     ## this test should work in ash, bash, pdksh (ksh), zsh
7859     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7860 `
7861     if test -n ""; then
7862         ver=""
7863     else
7864         ver=`
7865     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7866     ##
7867     ## ARG.
7868     ## Workaround for broken Debian gcc version string:
7869     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7870     ##
7871     ## -V: Workaround for python
7872
7873     #dnl
7874
7875     ## Assume and hunt for dotted version multiplet.
7876     ## use eval trickery, because we cannot use multi-level $() instead of ``
7877     ## for compatibility reasons.
7878
7879     ## grab the first version number in  --version output.
7880     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7881                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7882                 head -n 1 |
7883                 tr ' ' '\n' |
7884                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7885                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7886                 head -n 1\`\"
7887
7888     if test -z "$_ver"; then
7889         ## If empty, try date [fontforge]
7890         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7891             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7892             | head -n 1 \
7893             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7894     fi
7895     echo "$_ver"
7896     #dnl
7897 `
7898     fi
7899     num=`
7900     echo "$ver" | awk -F. '
7901     {
7902       if ($3) {three = $3}
7903       else {three = 0}
7904     }
7905     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7906 `
7907     req=`
7908     echo "" | awk -F. '
7909     {
7910       if ($3) {three = $3}
7911       else {three = 0}
7912     }
7913     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7914 `
7915     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7916 $as_echo "$ver" >&6; }
7917     if test "$num" -lt "$req"; then
7918
7919     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7920
7921     fi
7922     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7923     eval `echo $vervar=$num`
7924 ##    AC_SUBST(`eval echo $vervar`)
7925
7926     fi
7927
7928
7929     for ac_prog in mpost
7930 do
7931   # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_METAPOST+set}" = set; then
7936   $as_echo_n "(cached) " >&6
7937 else
7938   if test -n "$METAPOST"; then
7939   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946   for ac_exec_ext in '' $ac_executable_extensions; do
7947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948     ac_cv_prog_METAPOST="$ac_prog"
7949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 METAPOST=$ac_cv_prog_METAPOST
7959 if test -n "$METAPOST"; then
7960   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7961 $as_echo "$METAPOST" >&6; }
7962 else
7963   { $as_echo "$as_me:$LINENO: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968   test -n "$METAPOST" && break
7969 done
7970 test -n "$METAPOST" || METAPOST="no"
7971
7972
7973
7974     r="`eval echo '$'"METAPOST"`"
7975     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7976         true
7977     else
7978         ##STEPMAKE_WARN(cannot find . )
7979         false
7980     fi
7981
7982     if test $? -ne 0; then
7983
7984     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7985
7986         if test "REQUIRED" = "REQUIRED"; then
7987             command="echo ERROR: mpost not found"
7988             # abort configure process here?
7989         else
7990             command="- echo mpost not found"
7991         fi
7992         eval "METAPOST"='$command'
7993         false
7994     else
7995         true
7996     fi
7997
7998     if test $? -eq 0 -a -n ""; then
7999
8000     r="`eval echo '$'"METAPOST"`"
8001     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8002 $as_echo_n "checking $r version... " >&6; }
8003     exe=`
8004     ## which doesn't work in ash, if /usr/bin/which isn't installed
8005     ## type -p doesn't work in ash
8006     ## command -v doesn't work in zsh
8007     ## command -v "$r" 2>&1
8008     ## this test should work in ash, bash, pdksh (ksh), zsh
8009     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8010 `
8011     if test -n ""; then
8012         ver=""
8013     else
8014         ver=`
8015     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8016     ##
8017     ## ARG.
8018     ## Workaround for broken Debian gcc version string:
8019     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8020     ##
8021     ## -V: Workaround for python
8022
8023     #dnl
8024
8025     ## Assume and hunt for dotted version multiplet.
8026     ## use eval trickery, because we cannot use multi-level $() instead of ``
8027     ## for compatibility reasons.
8028
8029     ## grab the first version number in  --version output.
8030     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8031                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8032                 head -n 1 |
8033                 tr ' ' '\n' |
8034                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8035                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8036                 head -n 1\`\"
8037
8038     if test -z "$_ver"; then
8039         ## If empty, try date [fontforge]
8040         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8041             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8042             | head -n 1 \
8043             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8044     fi
8045     echo "$_ver"
8046     #dnl
8047 `
8048     fi
8049     num=`
8050     echo "$ver" | awk -F. '
8051     {
8052       if ($3) {three = $3}
8053       else {three = 0}
8054     }
8055     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8056 `
8057     req=`
8058     echo "" | awk -F. '
8059     {
8060       if ($3) {three = $3}
8061       else {three = 0}
8062     }
8063     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8064 `
8065     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8066 $as_echo "$ver" >&6; }
8067     if test "$num" -lt "$req"; then
8068
8069     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8070
8071     fi
8072     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8073     eval `echo $vervar=$num`
8074 ##    AC_SUBST(`eval echo $vervar`)
8075
8076     fi
8077
8078     if test "$METAPOST" != ""; then
8079         ver=`
8080     ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8081     ##
8082     ## ARG.
8083     ## Workaround for broken Debian gcc version string:
8084     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8085     ##
8086     ## -V: Workaround for python
8087
8088     #dnl
8089
8090     ## Assume and hunt for dotted version multiplet.
8091     ## use eval trickery, because we cannot use multi-level $() instead of ``
8092     ## for compatibility reasons.
8093
8094     ## grab the first version number in  --version output.
8095     eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8096                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8097                 head -n 1 |
8098                 tr ' ' '\n' |
8099                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8100                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8101                 head -n 1\`\"
8102
8103     if test -z "$_ver"; then
8104         ## If empty, try date [fontforge]
8105         eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8106             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8107             | head -n 1 \
8108             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8109     fi
8110     echo "$_ver"
8111     #dnl
8112 `
8113         num=`
8114     echo "$ver" | awk -F. '
8115     {
8116       if ($3) {three = $3}
8117       else {three = 0}
8118     }
8119     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8120 `
8121         # Avoid buggy metapost versions: 1.600 <= x < 1.803
8122         if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8123
8124     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8125
8126         fi
8127     fi
8128
8129     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8130 $as_echo_n "checking for working metafont mode... " >&6; }
8131     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8132     for MFMODE in $modelist; do
8133         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8134         if test -f mfput.tfm; then
8135             break;
8136         fi
8137     done
8138     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8139 $as_echo "$MFMODE" >&6; }
8140
8141     rm -f mfput.*
8142
8143
8144
8145
8146
8147     for ac_prog in kpsewhich
8148 do
8149   # Extract the first word of "$ac_prog", so it can be a program name with args.
8150 set dummy $ac_prog; ac_word=$2
8151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -n "$KPSEWHICH"; then
8157   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164   for ac_exec_ext in '' $ac_executable_extensions; do
8165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166     ac_cv_prog_KPSEWHICH="$ac_prog"
8167     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8177 if test -n "$KPSEWHICH"; then
8178   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8179 $as_echo "$KPSEWHICH" >&6; }
8180 else
8181   { $as_echo "$as_me:$LINENO: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185
8186   test -n "$KPSEWHICH" && break
8187 done
8188 test -n "$KPSEWHICH" || KPSEWHICH="no"
8189
8190
8191
8192     r="`eval echo '$'"KPSEWHICH"`"
8193     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8194         true
8195     else
8196         ##STEPMAKE_WARN(cannot find . )
8197         false
8198     fi
8199
8200     if test $? -ne 0; then
8201
8202     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8203
8204         if test "REQUIRED" = "REQUIRED"; then
8205             command="echo ERROR: kpsewhich not found"
8206             # abort configure process here?
8207         else
8208             command="- echo kpsewhich not found"
8209         fi
8210         eval "KPSEWHICH"='$command'
8211         false
8212     else
8213         true
8214     fi
8215
8216     if test $? -eq 0 -a -n ""; then
8217
8218     r="`eval echo '$'"KPSEWHICH"`"
8219     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8220 $as_echo_n "checking $r version... " >&6; }
8221     exe=`
8222     ## which doesn't work in ash, if /usr/bin/which isn't installed
8223     ## type -p doesn't work in ash
8224     ## command -v doesn't work in zsh
8225     ## command -v "$r" 2>&1
8226     ## this test should work in ash, bash, pdksh (ksh), zsh
8227     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8228 `
8229     if test -n ""; then
8230         ver=""
8231     else
8232         ver=`
8233     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8234     ##
8235     ## ARG.
8236     ## Workaround for broken Debian gcc version string:
8237     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8238     ##
8239     ## -V: Workaround for python
8240
8241     #dnl
8242
8243     ## Assume and hunt for dotted version multiplet.
8244     ## use eval trickery, because we cannot use multi-level $() instead of ``
8245     ## for compatibility reasons.
8246
8247     ## grab the first version number in  --version output.
8248     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8249                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8250                 head -n 1 |
8251                 tr ' ' '\n' |
8252                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8253                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8254                 head -n 1\`\"
8255
8256     if test -z "$_ver"; then
8257         ## If empty, try date [fontforge]
8258         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8259             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8260             | head -n 1 \
8261             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8262     fi
8263     echo "$_ver"
8264     #dnl
8265 `
8266     fi
8267     num=`
8268     echo "$ver" | awk -F. '
8269     {
8270       if ($3) {three = $3}
8271       else {three = 0}
8272     }
8273     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8274 `
8275     req=`
8276     echo "" | awk -F. '
8277     {
8278       if ($3) {three = $3}
8279       else {three = 0}
8280     }
8281     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8282 `
8283     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8284 $as_echo "$ver" >&6; }
8285     if test "$num" -lt "$req"; then
8286
8287     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8288
8289     fi
8290     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8291     eval `echo $vervar=$num`
8292 ##    AC_SUBST(`eval echo $vervar`)
8293
8294     fi
8295
8296
8297     { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8298 $as_echo_n "checking for metapost required files... " >&6; }
8299     if test "$MFPLAIN_MP" = ""; then
8300         MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8301     fi
8302     if test "$MFPLAIN_MP" = ""; then
8303         { $as_echo "$as_me:$LINENO: result: no" >&5
8304 $as_echo "no" >&6; }
8305
8306     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8307
8308     else
8309         { $as_echo "$as_me:$LINENO: result: yes" >&5
8310 $as_echo "yes" >&6; }
8311     fi
8312
8313 if test "$GUILEv2" = "yes"
8314 then
8315
8316     ## First, let's just see if we can find Guile at all.
8317     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8318     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8319     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8320 $as_echo_n "checking for guile-config... " >&6; }
8321     guile_config="guile-config"
8322     found="no"
8323     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
8324         exe=`
8325     ## which doesn't work in ash, if /usr/bin/which isn't installed
8326     ## type -p doesn't work in ash
8327     ## command -v doesn't work in zsh
8328     ## command -v "$r" 2>&1
8329     ## this test should work in ash, bash, pdksh (ksh), zsh
8330     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8331 `
8332         if ! $exe --version > /dev/null 2>&1 ; then
8333             continue
8334         fi
8335         ver=`
8336     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8337     ##
8338     ## ARG.
8339     ## Workaround for broken Debian gcc version string:
8340     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8341     ##
8342     ## -V: Workaround for python
8343
8344     #dnl
8345
8346     ## Assume and hunt for dotted version multiplet.
8347     ## use eval trickery, because we cannot use multi-level $() instead of ``
8348     ## for compatibility reasons.
8349
8350     ## grab the first version number in  --version output.
8351     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8352                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8353                 head -n 1 |
8354                 tr ' ' '\n' |
8355                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8356                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8357                 head -n 1\`\"
8358
8359     if test -z "$_ver"; then
8360         ## If empty, try date [fontforge]
8361         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8362             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8363             | head -n 1 \
8364             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8365     fi
8366     echo "$_ver"
8367     #dnl
8368 `
8369         num=`
8370     echo "$ver" | awk -F. '
8371     {
8372       if ($3) {three = $3}
8373       else {three = 0}
8374     }
8375     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8376 `
8377         req=`
8378     echo "2.0.7" | awk -F. '
8379     {
8380       if ($3) {three = $3}
8381       else {three = 0}
8382     }
8383     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8384 `
8385         sup=`
8386     echo "2.2.0" | awk -F. '
8387     {
8388       if ($3) {three = $3}
8389       else {three = 0}
8390     }
8391     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8392 `
8393         if test -n "2.0.7" -a "$num" -lt "$req"; then
8394             guile_config="$r >= 2.0.7 (installed: $ver)"
8395             continue
8396         else
8397             if test -n "2.2.0" -a "$num" -ge "$sup"; then
8398                 guile_config="$r < 2.2.0 (installed: $ver)"
8399                 continue
8400             else
8401                 guile_config=$r
8402                 found=$r
8403                 break
8404             fi
8405         fi
8406     done
8407     { $as_echo "$as_me:$LINENO: result: $found" >&5
8408 $as_echo "$found" >&6; }
8409     if test "$found" != "no"; then
8410         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8411 $as_echo_n "checking $guile_config version... " >&6; }
8412         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8413 $as_echo "$ver" >&6; }
8414         GUILE_CONFIG=$found
8415     else
8416
8417     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8418
8419     fi
8420
8421
8422
8423     guile_version="$ver"
8424     #dnl
8425     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8426     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8427     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8428     #dnl
8429
8430     exe=`
8431     ## which doesn't work in ash, if /usr/bin/which isn't installed
8432     ## type -p doesn't work in ash
8433     ## command -v doesn't work in zsh
8434     ## command -v "$guile_config" 2>&1
8435     ## this test should work in ash, bash, pdksh (ksh), zsh
8436     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8437 `
8438     if test -x $exe; then
8439         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8440 $as_echo_n "checking guile compile flags... " >&6; }
8441         GUILE_CFLAGS="`$guile_config compile`"
8442         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8443 $as_echo "$GUILE_CFLAGS" >&6; }
8444         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8445 $as_echo_n "checking guile link flags... " >&6; }
8446         GUILE_LDFLAGS="`$guile_config link`"
8447         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8448 $as_echo "$GUILE_LDFLAGS" >&6; }
8449     fi
8450
8451
8452
8453     save_CPPFLAGS="$CPPFLAGS"
8454     save_LIBS="$LIBS"
8455     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8456     LIBS="$GUILE_LDFLAGS $LIBS"
8457
8458 for ac_header in libguile.h
8459 do
8460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8462   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 $as_echo_n "checking for $ac_header... " >&6; }
8464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8465   $as_echo_n "(cached) " >&6
8466 fi
8467 ac_res=`eval 'as_val=${'$as_ac_Header'}
8468                  $as_echo "$as_val"'`
8469                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8470 $as_echo "$ac_res" >&6; }
8471 else
8472   # Is the header compilable?
8473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474 $as_echo_n "checking $ac_header usability... " >&6; }
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 $ac_includes_default
8482 #include <$ac_header>
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492   (eval "$ac_compile") 2>conftest.er1
8493   ac_status=$?
8494   grep -v '^ *+' conftest.er1 >conftest.err
8495   rm -f conftest.er1
8496   cat conftest.err >&5
8497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } && {
8499          test -z "$ac_cxx_werror_flag" ||
8500          test ! -s conftest.err
8501        } && test -s conftest.$ac_objext; then
8502   ac_header_compiler=yes
8503 else
8504   $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507         ac_header_compiler=no
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 $as_echo "$ac_header_compiler" >&6; }
8513
8514 # Is the header present?
8515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 $as_echo_n "checking $ac_header presence... " >&6; }
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523 #include <$ac_header>
8524 _ACEOF
8525 if { (ac_try="$ac_cpp conftest.$ac_ext"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531 $as_echo "$ac_try_echo") >&5
8532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } >/dev/null && {
8539          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8540          test ! -s conftest.err
8541        }; then
8542   ac_header_preproc=yes
8543 else
8544   $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547   ac_header_preproc=no
8548 fi
8549
8550 rm -f conftest.err conftest.$ac_ext
8551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 $as_echo "$ac_header_preproc" >&6; }
8553
8554 # So?  What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8556   yes:no: )
8557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8561     ac_header_preproc=yes
8562     ;;
8563   no:yes:* )
8564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8567 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8568     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8571 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8576
8577     ;;
8578 esac
8579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8580 $as_echo_n "checking for $ac_header... " >&6; }
8581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8582   $as_echo_n "(cached) " >&6
8583 else
8584   eval "$as_ac_Header=\$ac_header_preproc"
8585 fi
8586 ac_res=`eval 'as_val=${'$as_ac_Header'}
8587                  $as_echo "$as_val"'`
8588                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8589 $as_echo "$ac_res" >&6; }
8590
8591 fi
8592 as_val=`eval 'as_val=${'$as_ac_Header'}
8593                  $as_echo "$as_val"'`
8594    if test "x$as_val" = x""yes; then
8595   cat >>confdefs.h <<_ACEOF
8596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8597 _ACEOF
8598
8599 fi
8600
8601 done
8602
8603
8604 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8605 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8606 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8607   $as_echo_n "(cached) " >&6
8608 else
8609   ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-lguile  $LIBS"
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617
8618 /* Override any GCC internal prototype to avoid an error.
8619    Use char because int might match the return type of a GCC
8620    builtin and then its argument prototype would still apply.  */
8621 #ifdef __cplusplus
8622 extern "C"
8623 #endif
8624 char scm_boot_guile ();
8625 int
8626 main ()
8627 {
8628 return scm_boot_guile ();
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637   *) ac_try_echo=$ac_try;;
8638 esac
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641   (eval "$ac_link") 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } && {
8648          test -z "$ac_cxx_werror_flag" ||
8649          test ! -s conftest.err
8650        } && test -s conftest$ac_exeext && {
8651          test "$cross_compiling" = yes ||
8652          $as_test_x conftest$ac_exeext
8653        }; then
8654   ac_cv_lib_guile_scm_boot_guile=yes
8655 else
8656   $as_echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659         ac_cv_lib_guile_scm_boot_guile=no
8660 fi
8661
8662 rm -rf conftest.dSYM
8663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8664       conftest$ac_exeext conftest.$ac_ext
8665 LIBS=$ac_check_lib_save_LIBS
8666 fi
8667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8668 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8669 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8670   cat >>confdefs.h <<_ACEOF
8671 #define HAVE_LIBGUILE 1
8672 _ACEOF
8673
8674   LIBS="-lguile $LIBS"
8675
8676 fi
8677
8678
8679 for ac_func in scm_boot_guile
8680 do
8681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8682 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8683 $as_echo_n "checking for $ac_func... " >&6; }
8684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8685   $as_echo_n "(cached) " >&6
8686 else
8687   cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8695 #define $ac_func innocuous_$ac_func
8696
8697 /* System header to define __stub macros and hopefully few prototypes,
8698     which can conflict with char $ac_func (); below.
8699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8700     <limits.h> exists even on freestanding compilers.  */
8701
8702 #ifdef __STDC__
8703 # include <limits.h>
8704 #else
8705 # include <assert.h>
8706 #endif
8707
8708 #undef $ac_func
8709
8710 /* Override any GCC internal prototype to avoid an error.
8711    Use char because int might match the return type of a GCC
8712    builtin and then its argument prototype would still apply.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 char $ac_func ();
8717 /* The GNU C library defines this for functions which it implements
8718     to always fail with ENOSYS.  Some functions are actually named
8719     something starting with __ and the normal name is an alias.  */
8720 #if defined __stub_$ac_func || defined __stub___$ac_func
8721 choke me
8722 #endif
8723
8724 int
8725 main ()
8726 {
8727 return $ac_func ();
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (ac_try="$ac_link"
8734 case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8739 $as_echo "$ac_try_echo") >&5
8740   (eval "$ac_link") 2>conftest.er1
8741   ac_status=$?
8742   grep -v '^ *+' conftest.er1 >conftest.err
8743   rm -f conftest.er1
8744   cat conftest.err >&5
8745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } && {
8747          test -z "$ac_cxx_werror_flag" ||
8748          test ! -s conftest.err
8749        } && test -s conftest$ac_exeext && {
8750          test "$cross_compiling" = yes ||
8751          $as_test_x conftest$ac_exeext
8752        }; then
8753   eval "$as_ac_var=yes"
8754 else
8755   $as_echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758         eval "$as_ac_var=no"
8759 fi
8760
8761 rm -rf conftest.dSYM
8762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8763       conftest$ac_exeext conftest.$ac_ext
8764 fi
8765 ac_res=`eval 'as_val=${'$as_ac_var'}
8766                  $as_echo "$as_val"'`
8767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8768 $as_echo "$ac_res" >&6; }
8769 as_val=`eval 'as_val=${'$as_ac_var'}
8770                  $as_echo "$as_val"'`
8771    if test "x$as_val" = x""yes; then
8772   cat >>confdefs.h <<_ACEOF
8773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8774 _ACEOF
8775
8776 else
8777   libguile_b=no
8778 fi
8779 done
8780
8781     if test "$libguile_b" = "no"; then
8782             warn='libguile (libguile-dev, guile-devel or guile-dev
8783    package).'
8784
8785     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8786
8787     fi
8788     CPPFLAGS="$save_CPPFLAGS"
8789     LIBS="$save_LIBS"
8790     cat >>confdefs.h <<_ACEOF
8791 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8792 _ACEOF
8793
8794     cat >>confdefs.h <<_ACEOF
8795 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8796 _ACEOF
8797
8798     cat >>confdefs.h <<_ACEOF
8799 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8800 _ACEOF
8801
8802
8803 else
8804
8805     ## First, let's just see if we can find Guile at all.
8806     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8807     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8808     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8809 $as_echo_n "checking for guile-config... " >&6; }
8810     guile_config="guile-config"
8811     found="no"
8812     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
8813         exe=`
8814     ## which doesn't work in ash, if /usr/bin/which isn't installed
8815     ## type -p doesn't work in ash
8816     ## command -v doesn't work in zsh
8817     ## command -v "$r" 2>&1
8818     ## this test should work in ash, bash, pdksh (ksh), zsh
8819     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8820 `
8821         if ! $exe --version > /dev/null 2>&1 ; then
8822             continue
8823         fi
8824         ver=`
8825     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8826     ##
8827     ## ARG.
8828     ## Workaround for broken Debian gcc version string:
8829     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8830     ##
8831     ## -V: Workaround for python
8832
8833     #dnl
8834
8835     ## Assume and hunt for dotted version multiplet.
8836     ## use eval trickery, because we cannot use multi-level $() instead of ``
8837     ## for compatibility reasons.
8838
8839     ## grab the first version number in  --version output.
8840     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8841                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8842                 head -n 1 |
8843                 tr ' ' '\n' |
8844                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8845                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8846                 head -n 1\`\"
8847
8848     if test -z "$_ver"; then
8849         ## If empty, try date [fontforge]
8850         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8851             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8852             | head -n 1 \
8853             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8854     fi
8855     echo "$_ver"
8856     #dnl
8857 `
8858         num=`
8859     echo "$ver" | awk -F. '
8860     {
8861       if ($3) {three = $3}
8862       else {three = 0}
8863     }
8864     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8865 `
8866         req=`
8867     echo "1.8.2" | awk -F. '
8868     {
8869       if ($3) {three = $3}
8870       else {three = 0}
8871     }
8872     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8873 `
8874         sup=`
8875     echo "1.9.0" | awk -F. '
8876     {
8877       if ($3) {three = $3}
8878       else {three = 0}
8879     }
8880     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8881 `
8882         if test -n "1.8.2" -a "$num" -lt "$req"; then
8883             guile_config="$r >= 1.8.2 (installed: $ver)"
8884             continue
8885         else
8886             if test -n "1.9.0" -a "$num" -ge "$sup"; then
8887                 guile_config="$r < 1.9.0 (installed: $ver)"
8888                 continue
8889             else
8890                 guile_config=$r
8891                 found=$r
8892                 break
8893             fi
8894         fi
8895     done
8896     { $as_echo "$as_me:$LINENO: result: $found" >&5
8897 $as_echo "$found" >&6; }
8898     if test "$found" != "no"; then
8899         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8900 $as_echo_n "checking $guile_config version... " >&6; }
8901         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8902 $as_echo "$ver" >&6; }
8903         GUILE_CONFIG=$found
8904     else
8905
8906     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8907
8908     fi
8909
8910
8911
8912     guile_version="$ver"
8913     #dnl
8914     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8915     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8916     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8917     #dnl
8918
8919     exe=`
8920     ## which doesn't work in ash, if /usr/bin/which isn't installed
8921     ## type -p doesn't work in ash
8922     ## command -v doesn't work in zsh
8923     ## command -v "$guile_config" 2>&1
8924     ## this test should work in ash, bash, pdksh (ksh), zsh
8925     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8926 `
8927     if test -x $exe; then
8928         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8929 $as_echo_n "checking guile compile flags... " >&6; }
8930         GUILE_CFLAGS="`$guile_config compile`"
8931         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8932 $as_echo "$GUILE_CFLAGS" >&6; }
8933         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8934 $as_echo_n "checking guile link flags... " >&6; }
8935         GUILE_LDFLAGS="`$guile_config link`"
8936         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8937 $as_echo "$GUILE_LDFLAGS" >&6; }
8938     fi
8939
8940
8941
8942     save_CPPFLAGS="$CPPFLAGS"
8943     save_LIBS="$LIBS"
8944     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8945     LIBS="$GUILE_LDFLAGS $LIBS"
8946
8947 for ac_header in libguile.h
8948 do
8949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8951   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8952 $as_echo_n "checking for $ac_header... " >&6; }
8953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8954   $as_echo_n "(cached) " >&6
8955 fi
8956 ac_res=`eval 'as_val=${'$as_ac_Header'}
8957                  $as_echo "$as_val"'`
8958                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8959 $as_echo "$ac_res" >&6; }
8960 else
8961   # Is the header compilable?
8962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8963 $as_echo_n "checking $ac_header usability... " >&6; }
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970 $ac_includes_default
8971 #include <$ac_header>
8972 _ACEOF
8973 rm -f conftest.$ac_objext
8974 if { (ac_try="$ac_compile"
8975 case "(($ac_try" in
8976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977   *) ac_try_echo=$ac_try;;
8978 esac
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981   (eval "$ac_compile") 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } && {
8988          test -z "$ac_cxx_werror_flag" ||
8989          test ! -s conftest.err
8990        } && test -s conftest.$ac_objext; then
8991   ac_header_compiler=yes
8992 else
8993   $as_echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996         ac_header_compiler=no
8997 fi
8998
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9001 $as_echo "$ac_header_compiler" >&6; }
9002
9003 # Is the header present?
9004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9005 $as_echo_n "checking $ac_header presence... " >&6; }
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012 #include <$ac_header>
9013 _ACEOF
9014 if { (ac_try="$ac_cpp conftest.$ac_ext"
9015 case "(($ac_try" in
9016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017   *) ac_try_echo=$ac_try;;
9018 esac
9019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9020 $as_echo "$ac_try_echo") >&5
9021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } >/dev/null && {
9028          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9029          test ! -s conftest.err
9030        }; then
9031   ac_header_preproc=yes
9032 else
9033   $as_echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036   ac_header_preproc=no
9037 fi
9038
9039 rm -f conftest.err conftest.$ac_ext
9040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 $as_echo "$ac_header_preproc" >&6; }
9042
9043 # So?  What about this header?
9044 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9045   yes:no: )
9046     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9050     ac_header_preproc=yes
9051     ;;
9052   no:yes:* )
9053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9056 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9057     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9059     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9060 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9065
9066     ;;
9067 esac
9068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9069 $as_echo_n "checking for $ac_header... " >&6; }
9070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9071   $as_echo_n "(cached) " >&6
9072 else
9073   eval "$as_ac_Header=\$ac_header_preproc"
9074 fi
9075 ac_res=`eval 'as_val=${'$as_ac_Header'}
9076                  $as_echo "$as_val"'`
9077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9078 $as_echo "$ac_res" >&6; }
9079
9080 fi
9081 as_val=`eval 'as_val=${'$as_ac_Header'}
9082                  $as_echo "$as_val"'`
9083    if test "x$as_val" = x""yes; then
9084   cat >>confdefs.h <<_ACEOF
9085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9086 _ACEOF
9087
9088 fi
9089
9090 done
9091
9092
9093 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9094 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9095 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9096   $as_echo_n "(cached) " >&6
9097 else
9098   ac_check_lib_save_LIBS=$LIBS
9099 LIBS="-lguile  $LIBS"
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h.  */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h.  */
9106
9107 /* Override any GCC internal prototype to avoid an error.
9108    Use char because int might match the return type of a GCC
9109    builtin and then its argument prototype would still apply.  */
9110 #ifdef __cplusplus
9111 extern "C"
9112 #endif
9113 char scm_boot_guile ();
9114 int
9115 main ()
9116 {
9117 return scm_boot_guile ();
9118   ;
9119   return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (ac_try="$ac_link"
9124 case "(($ac_try" in
9125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126   *) ac_try_echo=$ac_try;;
9127 esac
9128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9129 $as_echo "$ac_try_echo") >&5
9130   (eval "$ac_link") 2>conftest.er1
9131   ac_status=$?
9132   grep -v '^ *+' conftest.er1 >conftest.err
9133   rm -f conftest.er1
9134   cat conftest.err >&5
9135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); } && {
9137          test -z "$ac_cxx_werror_flag" ||
9138          test ! -s conftest.err
9139        } && test -s conftest$ac_exeext && {
9140          test "$cross_compiling" = yes ||
9141          $as_test_x conftest$ac_exeext
9142        }; then
9143   ac_cv_lib_guile_scm_boot_guile=yes
9144 else
9145   $as_echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147
9148         ac_cv_lib_guile_scm_boot_guile=no
9149 fi
9150
9151 rm -rf conftest.dSYM
9152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9153       conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9155 fi
9156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9157 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9158 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9159   cat >>confdefs.h <<_ACEOF
9160 #define HAVE_LIBGUILE 1
9161 _ACEOF
9162
9163   LIBS="-lguile $LIBS"
9164
9165 fi
9166
9167
9168 for ac_func in scm_boot_guile
9169 do
9170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9172 $as_echo_n "checking for $ac_func... " >&6; }
9173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9174   $as_echo_n "(cached) " >&6
9175 else
9176   cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9184 #define $ac_func innocuous_$ac_func
9185
9186 /* System header to define __stub macros and hopefully few prototypes,
9187     which can conflict with char $ac_func (); below.
9188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9189     <limits.h> exists even on freestanding compilers.  */
9190
9191 #ifdef __STDC__
9192 # include <limits.h>
9193 #else
9194 # include <assert.h>
9195 #endif
9196
9197 #undef $ac_func
9198
9199 /* Override any GCC internal prototype to avoid an error.
9200    Use char because int might match the return type of a GCC
9201    builtin and then its argument prototype would still apply.  */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char $ac_func ();
9206 /* The GNU C library defines this for functions which it implements
9207     to always fail with ENOSYS.  Some functions are actually named
9208     something starting with __ and the normal name is an alias.  */
9209 #if defined __stub_$ac_func || defined __stub___$ac_func
9210 choke me
9211 #endif
9212
9213 int
9214 main ()
9215 {
9216 return $ac_func ();
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (ac_try="$ac_link"
9223 case "(($ac_try" in
9224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225   *) ac_try_echo=$ac_try;;
9226 esac
9227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9228 $as_echo "$ac_try_echo") >&5
9229   (eval "$ac_link") 2>conftest.er1
9230   ac_status=$?
9231   grep -v '^ *+' conftest.er1 >conftest.err
9232   rm -f conftest.er1
9233   cat conftest.err >&5
9234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } && {
9236          test -z "$ac_cxx_werror_flag" ||
9237          test ! -s conftest.err
9238        } && test -s conftest$ac_exeext && {
9239          test "$cross_compiling" = yes ||
9240          $as_test_x conftest$ac_exeext
9241        }; then
9242   eval "$as_ac_var=yes"
9243 else
9244   $as_echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247         eval "$as_ac_var=no"
9248 fi
9249
9250 rm -rf conftest.dSYM
9251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9252       conftest$ac_exeext conftest.$ac_ext
9253 fi
9254 ac_res=`eval 'as_val=${'$as_ac_var'}
9255                  $as_echo "$as_val"'`
9256                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9257 $as_echo "$ac_res" >&6; }
9258 as_val=`eval 'as_val=${'$as_ac_var'}
9259                  $as_echo "$as_val"'`
9260    if test "x$as_val" = x""yes; then
9261   cat >>confdefs.h <<_ACEOF
9262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9263 _ACEOF
9264
9265 else
9266   libguile_b=no
9267 fi
9268 done
9269
9270     if test "$libguile_b" = "no"; then
9271             warn='libguile (libguile-dev, guile-devel or guile-dev
9272    package).'
9273
9274     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9275
9276     fi
9277     CPPFLAGS="$save_CPPFLAGS"
9278     LIBS="$save_LIBS"
9279     cat >>confdefs.h <<_ACEOF
9280 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9281 _ACEOF
9282
9283     cat >>confdefs.h <<_ACEOF
9284 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9285 _ACEOF
9286
9287     cat >>confdefs.h <<_ACEOF
9288 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9289 _ACEOF
9290
9291
9292 fi
9293
9294 # check for 3 typedefs added in Guile 1.9
9295 save_CXXFLAGS="$CXXFLAGS"
9296 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9297 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9298 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9299 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9300   $as_echo_n "(cached) " >&6
9301 else
9302   ac_cv_type_scm_t_hash_fold_fn=no
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309 #include <libguile.h>
9310
9311 int
9312 main ()
9313 {
9314 if (sizeof (scm_t_hash_fold_fn))
9315        return 0;
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext
9321 if { (ac_try="$ac_compile"
9322 case "(($ac_try" in
9323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324   *) ac_try_echo=$ac_try;;
9325 esac
9326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9327 $as_echo "$ac_try_echo") >&5
9328   (eval "$ac_compile") 2>conftest.er1
9329   ac_status=$?
9330   grep -v '^ *+' conftest.er1 >conftest.err
9331   rm -f conftest.er1
9332   cat conftest.err >&5
9333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } && {
9335          test -z "$ac_cxx_werror_flag" ||
9336          test ! -s conftest.err
9337        } && test -s conftest.$ac_objext; then
9338   cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h.  */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h.  */
9344 #include <libguile.h>
9345
9346 int
9347 main ()
9348 {
9349 if (sizeof ((scm_t_hash_fold_fn)))
9350           return 0;
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9357 case "(($ac_try" in
9358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359   *) ac_try_echo=$ac_try;;
9360 esac
9361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9362 $as_echo "$ac_try_echo") >&5
9363   (eval "$ac_compile") 2>conftest.er1
9364   ac_status=$?
9365   grep -v '^ *+' conftest.er1 >conftest.err
9366   rm -f conftest.er1
9367   cat conftest.err >&5
9368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } && {
9370          test -z "$ac_cxx_werror_flag" ||
9371          test ! -s conftest.err
9372        } && test -s conftest.$ac_objext; then
9373   :
9374 else
9375   $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9377
9378         ac_cv_type_scm_t_hash_fold_fn=yes
9379 fi
9380
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9382 else
9383   $as_echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386
9387 fi
9388
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 fi
9391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9392 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9393 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9394
9395 cat >>confdefs.h <<_ACEOF
9396 #define HAVE_SCM_T_HASH_FOLD_FN 1
9397 _ACEOF
9398
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_GUILE_HASH_FUNC 1
9401 _ACEOF
9402
9403 fi
9404 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9405 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9406 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9407   $as_echo_n "(cached) " >&6
9408 else
9409   ac_cv_type_scm_t_hash_handle_fn=no
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416 #include <libguile.h>
9417
9418 int
9419 main ()
9420 {
9421 if (sizeof (scm_t_hash_handle_fn))
9422        return 0;
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext
9428 if { (ac_try="$ac_compile"
9429 case "(($ac_try" in
9430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431   *) ac_try_echo=$ac_try;;
9432 esac
9433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9434 $as_echo "$ac_try_echo") >&5
9435   (eval "$ac_compile") 2>conftest.er1
9436   ac_status=$?
9437   grep -v '^ *+' conftest.er1 >conftest.err
9438   rm -f conftest.er1
9439   cat conftest.err >&5
9440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } && {
9442          test -z "$ac_cxx_werror_flag" ||
9443          test ! -s conftest.err
9444        } && test -s conftest.$ac_objext; then
9445   cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 #include <libguile.h>
9452
9453 int
9454 main ()
9455 {
9456 if (sizeof ((scm_t_hash_handle_fn)))
9457           return 0;
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466   *) ac_try_echo=$ac_try;;
9467 esac
9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9469 $as_echo "$ac_try_echo") >&5
9470   (eval "$ac_compile") 2>conftest.er1
9471   ac_status=$?
9472   grep -v '^ *+' conftest.er1 >conftest.err
9473   rm -f conftest.er1
9474   cat conftest.err >&5
9475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); } && {
9477          test -z "$ac_cxx_werror_flag" ||
9478          test ! -s conftest.err
9479        } && test -s conftest.$ac_objext; then
9480   :
9481 else
9482   $as_echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485         ac_cv_type_scm_t_hash_handle_fn=yes
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 else
9490   $as_echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 fi
9498 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9499 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9500 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9501
9502 cat >>confdefs.h <<_ACEOF
9503 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9504 _ACEOF
9505
9506 cat >>confdefs.h <<\_ACEOF
9507 #define HAVE_GUILE_HASH_FUNC 1
9508 _ACEOF
9509
9510 fi
9511
9512 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9513 $as_echo_n "checking for scm_t_subr... " >&6; }
9514 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9515   $as_echo_n "(cached) " >&6
9516 else
9517   ac_cv_type_scm_t_subr=no
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h.  */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h.  */
9524 #include <libguile.h>
9525
9526 int
9527 main ()
9528 {
9529 if (sizeof (scm_t_subr))
9530        return 0;
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext
9536 if { (ac_try="$ac_compile"
9537 case "(($ac_try" in
9538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539   *) ac_try_echo=$ac_try;;
9540 esac
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543   (eval "$ac_compile") 2>conftest.er1
9544   ac_status=$?
9545   grep -v '^ *+' conftest.er1 >conftest.err
9546   rm -f conftest.er1
9547   cat conftest.err >&5
9548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); } && {
9550          test -z "$ac_cxx_werror_flag" ||
9551          test ! -s conftest.err
9552        } && test -s conftest.$ac_objext; then
9553   cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559 #include <libguile.h>
9560
9561 int
9562 main ()
9563 {
9564 if (sizeof ((scm_t_subr)))
9565           return 0;
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext
9571 if { (ac_try="$ac_compile"
9572 case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9577 $as_echo "$ac_try_echo") >&5
9578   (eval "$ac_compile") 2>conftest.er1
9579   ac_status=$?
9580   grep -v '^ *+' conftest.er1 >conftest.err
9581   rm -f conftest.er1
9582   cat conftest.err >&5
9583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } && {
9585          test -z "$ac_cxx_werror_flag" ||
9586          test ! -s conftest.err
9587        } && test -s conftest.$ac_objext; then
9588   :
9589 else
9590   $as_echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593         ac_cv_type_scm_t_subr=yes
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 else
9598   $as_echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9607 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9608 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9609
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_SCM_T_SUBR 1
9612 _ACEOF
9613
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_GUILE_SUBR_TYPE 1
9616 _ACEOF
9617
9618 fi
9619
9620 CXXFLAGS="$save_CXXFLAGS"
9621
9622 ## Check for usable cxxabi
9623 save_LIBS="$LIBS"
9624 LIBS="$LIBS $CXXABI_LIBS"
9625 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9626 $as_echo_n "checking for usable C++ demangler... " >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633 #include <cxxabi.h>
9634 int
9635 main ()
9636 {
9637 abi::__cxa_demangle ("", 0, 0, 0)
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9644 case "(($ac_try" in
9645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646   *) ac_try_echo=$ac_try;;
9647 esac
9648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9649 $as_echo "$ac_try_echo") >&5
9650   (eval "$ac_link") 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } && {
9657          test -z "$ac_cxx_werror_flag" ||
9658          test ! -s conftest.err
9659        } && test -s conftest$ac_exeext && {
9660          test "$cross_compiling" = yes ||
9661          $as_test_x conftest$ac_exeext
9662        }; then
9663   cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_CXA_DEMANGLE 1
9665 _ACEOF
9666
9667         { $as_echo "$as_me:$LINENO: result: yes" >&5
9668 $as_echo "yes" >&6; }
9669 else
9670   $as_echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673
9674         LIBS="$LIBS -lsupc++"
9675         cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h.  */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h.  */
9681 #include <cxxabi.h>
9682 int
9683 main ()
9684 {
9685 abi::__cxa_demangle ("", 0, 0, 0)
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694   *) ac_try_echo=$ac_try;;
9695 esac
9696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9697 $as_echo "$ac_try_echo") >&5
9698   (eval "$ac_link") 2>conftest.er1
9699   ac_status=$?
9700   grep -v '^ *+' conftest.er1 >conftest.err
9701   rm -f conftest.er1
9702   cat conftest.err >&5
9703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } && {
9705          test -z "$ac_cxx_werror_flag" ||
9706          test ! -s conftest.err
9707        } && test -s conftest$ac_exeext && {
9708          test "$cross_compiling" = yes ||
9709          $as_test_x conftest$ac_exeext
9710        }; then
9711   cat >>confdefs.h <<\_ACEOF
9712 #define HAVE_CXA_DEMANGLE 1
9713 _ACEOF
9714
9715                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9716 $as_echo "yes, using -lsupc++" >&6; }
9717                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9718 else
9719   $as_echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9723 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9724 fi
9725
9726 rm -rf conftest.dSYM
9727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9728       conftest$ac_exeext conftest.$ac_ext
9729 fi
9730
9731 rm -rf conftest.dSYM
9732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9733       conftest$ac_exeext conftest.$ac_ext
9734 LIBS="$save_LIBS"
9735
9736
9737 ## check rational bugfix.
9738 save_CPPFLAGS="$CPPFLAGS"
9739 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9740 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9741 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9742 cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748 #include <libguile.h>
9749 #ifdef SCM_FRACTION_REDUCED_BIT
9750 #error
9751 #endif
9752
9753 _ACEOF
9754 if { (ac_try="$ac_cpp conftest.$ac_ext"
9755 case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } >/dev/null && {
9768          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9769          test ! -s conftest.err
9770        }; then
9771   { $as_echo "$as_me:$LINENO: result: ok" >&5
9772 $as_echo "ok" >&6; }
9773 else
9774   $as_echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9778 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9779 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9780 fi
9781
9782 rm -f conftest.err conftest.$ac_ext
9783 CPPFLAGS="$save_CPPFLAGS"
9784
9785
9786
9787
9788 # Check whether --with-python-include was given.
9789 if test "${with_python_include+set}" = set; then
9790   withval=$with_python_include;
9791         if test "$withval" = "yes" -o "$withval" = "no"; then
9792             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9793 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9794         else
9795             PYTHON_CFLAGS="-I${withval}"
9796         fi
9797
9798 fi
9799
9800
9801
9802 # Check whether --with-python-lib was given.
9803 if test "${with_python_lib+set}" = set; then
9804   withval=$with_python_lib;
9805         if test "$withval" = "yes" -o "$withval" = "no"; then
9806             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9807 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9808         else
9809             LDFLAGS="$LDFLAGS -l${withval}"
9810         fi
9811
9812 fi
9813
9814
9815
9816     { $as_echo "$as_me:$LINENO: checking for python" >&5
9817 $as_echo_n "checking for python... " >&6; }
9818     python="python"
9819     found="no"
9820     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
9821         exe=`
9822     ## which doesn't work in ash, if /usr/bin/which isn't installed
9823     ## type -p doesn't work in ash
9824     ## command -v doesn't work in zsh
9825     ## command -v "$r" 2>&1
9826     ## this test should work in ash, bash, pdksh (ksh), zsh
9827     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9828 `
9829         if ! $exe -V > /dev/null 2>&1 ; then
9830             continue
9831         fi
9832         ver=`
9833     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9834     ##
9835     ## ARG.
9836     ## Workaround for broken Debian gcc version string:
9837     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9838     ##
9839     ## -V: Workaround for python
9840
9841     #dnl
9842
9843     ## Assume and hunt for dotted version multiplet.
9844     ## use eval trickery, because we cannot use multi-level $() instead of ``
9845     ## for compatibility reasons.
9846
9847     ## grab the first version number in  --version output.
9848     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9849                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9850                 head -n 1 |
9851                 tr ' ' '\n' |
9852                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9853                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9854                 head -n 1\`\"
9855
9856     if test -z "$_ver"; then
9857         ## If empty, try date [fontforge]
9858         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9859             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9860             | head -n 1 \
9861             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9862     fi
9863     echo "$_ver"
9864     #dnl
9865 `
9866         num=`
9867     echo "$ver" | awk -F. '
9868     {
9869       if ($3) {three = $3}
9870       else {three = 0}
9871     }
9872     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9873 `
9874         req=`
9875     echo "2.4" | awk -F. '
9876     {
9877       if ($3) {three = $3}
9878       else {three = 0}
9879     }
9880     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9881 `
9882         sup=`
9883     echo "3.0" | awk -F. '
9884     {
9885       if ($3) {three = $3}
9886       else {three = 0}
9887     }
9888     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9889 `
9890         if test -n "2.4" && test "$num" -lt "$req"; then
9891             python="$r >= 2.4 (installed: $ver)"
9892             continue
9893         else
9894             if test -n "3.0" && test "$num" -ge "$sup"; then
9895                 python="$r < 3.0 (installed: $ver)"
9896                 continue
9897             else
9898                 python=$r
9899                 found=$r
9900                 break
9901             fi
9902         fi
9903     done
9904     { $as_echo "$as_me:$LINENO: result: $found" >&5
9905 $as_echo "$found" >&6; }
9906     if test "$found" != "no"; then
9907         { $as_echo "$as_me:$LINENO: checking $python version" >&5
9908 $as_echo_n "checking $python version... " >&6; }
9909         { $as_echo "$as_me:$LINENO: result: $ver" >&5
9910 $as_echo "$ver" >&6; }
9911         PYTHON=$found
9912     else
9913
9914     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
9915
9916     fi
9917     # Extract the first word of "$PYTHON", so it can be a program name with args.
9918 set dummy $PYTHON; ac_word=$2
9919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if test "${ac_cv_path_PYTHON+set}" = set; then
9922   $as_echo_n "(cached) " >&6
9923 else
9924   case $PYTHON in
9925   [\\/]* | ?:[\\/]*)
9926   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9927   ;;
9928   *)
9929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9931 do
9932   IFS=$as_save_IFS
9933   test -z "$as_dir" && as_dir=.
9934   for ac_exec_ext in '' $ac_executable_extensions; do
9935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9937     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9938     break 2
9939   fi
9940 done
9941 done
9942 IFS=$as_save_IFS
9943
9944   ;;
9945 esac
9946 fi
9947 PYTHON=$ac_cv_path_PYTHON
9948 if test -n "$PYTHON"; then
9949   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
9950 $as_echo "$PYTHON" >&6; }
9951 else
9952   { $as_echo "$as_me:$LINENO: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955
9956
9957
9958
9959     for ac_prog in `basename $PYTHON`-config
9960 do
9961   # Extract the first word of "$ac_prog", so it can be a program name with args.
9962 set dummy $ac_prog; ac_word=$2
9963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9966   $as_echo_n "(cached) " >&6
9967 else
9968   if test -n "$PYTHON_CONFIG"; then
9969   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9970 else
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976   for ac_exec_ext in '' $ac_executable_extensions; do
9977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9979     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9980     break 2
9981   fi
9982 done
9983 done
9984 IFS=$as_save_IFS
9985
9986 fi
9987 fi
9988 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9989 if test -n "$PYTHON_CONFIG"; then
9990   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9991 $as_echo "$PYTHON_CONFIG" >&6; }
9992 else
9993   { $as_echo "$as_me:$LINENO: result: no" >&5
9994 $as_echo "no" >&6; }
9995 fi
9996
9997
9998   test -n "$PYTHON_CONFIG" && break
9999 done
10000 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10001
10002
10003     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10004         # Clean out junk: http://bugs.python.org/issue3290
10005         # Python headers may need some -f* flags, leave them in.
10006         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10007          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10008          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10009          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10010          # 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.
10011          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10012         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10013     fi
10014
10015     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10016         #dnl
10017         # alternatively, for python >= 2.0
10018         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10019         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10020         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10021         #dnl
10022     fi
10023
10024     if test -z "$PYTHON_HEADER"; then
10025         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10026
10027 for ac_header in Python.h
10028 do
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10031   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034   $as_echo_n "(cached) " >&6
10035 fi
10036 ac_res=`eval 'as_val=${'$as_ac_Header'}
10037                  $as_echo "$as_val"'`
10038                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10039 $as_echo "$ac_res" >&6; }
10040 else
10041   # Is the header compilable?
10042 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10043 $as_echo_n "checking $ac_header usability... " >&6; }
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050 $ac_includes_default
10051 #include <$ac_header>
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (ac_try="$ac_compile"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10060 $as_echo "$ac_try_echo") >&5
10061   (eval "$ac_compile") 2>conftest.er1
10062   ac_status=$?
10063   grep -v '^ *+' conftest.er1 >conftest.err
10064   rm -f conftest.er1
10065   cat conftest.err >&5
10066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); } && {
10068          test -z "$ac_cxx_werror_flag" ||
10069          test ! -s conftest.err
10070        } && test -s conftest.$ac_objext; then
10071   ac_header_compiler=yes
10072 else
10073   $as_echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076         ac_header_compiler=no
10077 fi
10078
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10081 $as_echo "$ac_header_compiler" >&6; }
10082
10083 # Is the header present?
10084 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10085 $as_echo_n "checking $ac_header presence... " >&6; }
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h.  */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h.  */
10092 #include <$ac_header>
10093 _ACEOF
10094 if { (ac_try="$ac_cpp conftest.$ac_ext"
10095 case "(($ac_try" in
10096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097   *) ac_try_echo=$ac_try;;
10098 esac
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10102   ac_status=$?
10103   grep -v '^ *+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } >/dev/null && {
10108          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10109          test ! -s conftest.err
10110        }; then
10111   ac_header_preproc=yes
10112 else
10113   $as_echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116   ac_header_preproc=no
10117 fi
10118
10119 rm -f conftest.err conftest.$ac_ext
10120 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10121 $as_echo "$ac_header_preproc" >&6; }
10122
10123 # So?  What about this header?
10124 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10125   yes:no: )
10126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10127 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10130     ac_header_preproc=yes
10131     ;;
10132   no:yes:* )
10133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10134 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10136 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10138 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10140 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10142 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10144 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10145
10146     ;;
10147 esac
10148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10149 $as_echo_n "checking for $ac_header... " >&6; }
10150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10151   $as_echo_n "(cached) " >&6
10152 else
10153   eval "$as_ac_Header=\$ac_header_preproc"
10154 fi
10155 ac_res=`eval 'as_val=${'$as_ac_Header'}
10156                  $as_echo "$as_val"'`
10157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10158 $as_echo "$ac_res" >&6; }
10159
10160 fi
10161 as_val=`eval 'as_val=${'$as_ac_Header'}
10162                  $as_echo "$as_val"'`
10163    if test "x$as_val" = x""yes; then
10164   cat >>confdefs.h <<_ACEOF
10165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10166 _ACEOF
10167  PYTHON_HEADER=yes
10168 fi
10169
10170 done
10171
10172     fi
10173
10174     if test -z "$PYTHON_HEADER"; then
10175         warn="Python.h (python-devel, python-dev or libpython-dev package)"
10176
10177     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10178
10179     fi
10180
10181
10182
10183
10184
10185     for ac_prog in fontforge
10186 do
10187   # Extract the first word of "$ac_prog", so it can be a program name with args.
10188 set dummy $ac_prog; ac_word=$2
10189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10192   $as_echo_n "(cached) " >&6
10193 else
10194   if test -n "$FONTFORGE"; then
10195   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10196 else
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10199 do
10200   IFS=$as_save_IFS
10201   test -z "$as_dir" && as_dir=.
10202   for ac_exec_ext in '' $ac_executable_extensions; do
10203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10204     ac_cv_prog_FONTFORGE="$ac_prog"
10205     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206     break 2
10207   fi
10208 done
10209 done
10210 IFS=$as_save_IFS
10211
10212 fi
10213 fi
10214 FONTFORGE=$ac_cv_prog_FONTFORGE
10215 if test -n "$FONTFORGE"; then
10216   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10217 $as_echo "$FONTFORGE" >&6; }
10218 else
10219   { $as_echo "$as_me:$LINENO: result: no" >&5
10220 $as_echo "no" >&6; }
10221 fi
10222
10223
10224   test -n "$FONTFORGE" && break
10225 done
10226 test -n "$FONTFORGE" || FONTFORGE="no"
10227
10228
10229
10230     r="`eval echo '$'"FONTFORGE"`"
10231     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10232         true
10233     else
10234         ##STEPMAKE_WARN(cannot find . )
10235         false
10236     fi
10237
10238     if test $? -ne 0; then
10239
10240     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10241
10242         if test "REQUIRED" = "REQUIRED"; then
10243             command="echo ERROR: fontforge not found"
10244             # abort configure process here?
10245         else
10246             command="- echo fontforge not found"
10247         fi
10248         eval "FONTFORGE"='$command'
10249         false
10250     else
10251         true
10252     fi
10253
10254     if test $? -eq 0; then
10255         for ac_prog in fontforge
10256 do
10257   # Extract the first word of "$ac_prog", so it can be a program name with args.
10258 set dummy $ac_prog; ac_word=$2
10259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10262   $as_echo_n "(cached) " >&6
10263 else
10264   case $FONTFORGE in
10265   [\\/]* | ?:[\\/]*)
10266   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10267   ;;
10268   *)
10269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10271 do
10272   IFS=$as_save_IFS
10273   test -z "$as_dir" && as_dir=.
10274   for ac_exec_ext in '' $ac_executable_extensions; do
10275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10277     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10278     break 2
10279   fi
10280 done
10281 done
10282 IFS=$as_save_IFS
10283
10284   ;;
10285 esac
10286 fi
10287 FONTFORGE=$ac_cv_path_FONTFORGE
10288 if test -n "$FONTFORGE"; then
10289   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10290 $as_echo "$FONTFORGE" >&6; }
10291 else
10292   { $as_echo "$as_me:$LINENO: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296
10297   test -n "$FONTFORGE" && break
10298 done
10299
10300         if test -n "20110222"; then
10301
10302     r="`eval echo '$'"FONTFORGE"`"
10303     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10304 $as_echo_n "checking $r version... " >&6; }
10305     exe=`
10306     ## which doesn't work in ash, if /usr/bin/which isn't installed
10307     ## type -p doesn't work in ash
10308     ## command -v doesn't work in zsh
10309     ## command -v "$r" 2>&1
10310     ## this test should work in ash, bash, pdksh (ksh), zsh
10311     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10312 `
10313     if test -n ""; then
10314         ver=""
10315     else
10316         ver=`
10317     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10318     ##
10319     ## ARG.
10320     ## Workaround for broken Debian gcc version string:
10321     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10322     ##
10323     ## -V: Workaround for python
10324
10325     #dnl
10326
10327     ## Assume and hunt for dotted version multiplet.
10328     ## use eval trickery, because we cannot use multi-level $() instead of ``
10329     ## for compatibility reasons.
10330
10331     ## grab the first version number in  --version output.
10332     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10333                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10334                 head -n 1 |
10335                 tr ' ' '\n' |
10336                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10337                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10338                 head -n 1\`\"
10339
10340     if test -z "$_ver"; then
10341         ## If empty, try date [fontforge]
10342         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10343             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10344             | head -n 1 \
10345             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10346     fi
10347     echo "$_ver"
10348     #dnl
10349 `
10350     fi
10351     num=`
10352     echo "$ver" | awk -F. '
10353     {
10354       if ($3) {three = $3}
10355       else {three = 0}
10356     }
10357     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10358 `
10359     req=`
10360     echo "20110222" | awk -F. '
10361     {
10362       if ($3) {three = $3}
10363       else {three = 0}
10364     }
10365     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10366 `
10367     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10368 $as_echo "$ver" >&6; }
10369     if test "$num" -lt "$req"; then
10370
10371     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10372
10373     fi
10374     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10375     eval `echo $vervar=$num`
10376 ##    AC_SUBST(`eval echo $vervar`)
10377
10378         fi
10379     fi
10380
10381
10382
10383     for ac_prog in t1asm
10384 do
10385   # Extract the first word of "$ac_prog", so it can be a program name with args.
10386 set dummy $ac_prog; ac_word=$2
10387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 $as_echo_n "checking for $ac_word... " >&6; }
10389 if test "${ac_cv_prog_T1ASM+set}" = set; then
10390   $as_echo_n "(cached) " >&6
10391 else
10392   if test -n "$T1ASM"; then
10393   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10394 else
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10397 do
10398   IFS=$as_save_IFS
10399   test -z "$as_dir" && as_dir=.
10400   for ac_exec_ext in '' $ac_executable_extensions; do
10401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402     ac_cv_prog_T1ASM="$ac_prog"
10403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404     break 2
10405   fi
10406 done
10407 done
10408 IFS=$as_save_IFS
10409
10410 fi
10411 fi
10412 T1ASM=$ac_cv_prog_T1ASM
10413 if test -n "$T1ASM"; then
10414   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10415 $as_echo "$T1ASM" >&6; }
10416 else
10417   { $as_echo "$as_me:$LINENO: result: no" >&5
10418 $as_echo "no" >&6; }
10419 fi
10420
10421
10422   test -n "$T1ASM" && break
10423 done
10424 test -n "$T1ASM" || T1ASM="no"
10425
10426
10427
10428     r="`eval echo '$'"T1ASM"`"
10429     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10430         true
10431     else
10432         ##STEPMAKE_WARN(cannot find . )
10433         false
10434     fi
10435
10436     if test $? -ne 0; then
10437
10438     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10439
10440         if test "REQUIRED" = "REQUIRED"; then
10441             command="echo ERROR: t1asm not found"
10442             # abort configure process here?
10443         else
10444             command="- echo t1asm not found"
10445         fi
10446         eval "T1ASM"='$command'
10447         false
10448     else
10449         true
10450     fi
10451
10452     if test $? -eq 0; then
10453         for ac_prog in t1asm
10454 do
10455   # Extract the first word of "$ac_prog", so it can be a program name with args.
10456 set dummy $ac_prog; ac_word=$2
10457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if test "${ac_cv_path_T1ASM+set}" = set; then
10460   $as_echo_n "(cached) " >&6
10461 else
10462   case $T1ASM in
10463   [\\/]* | ?:[\\/]*)
10464   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10465   ;;
10466   *)
10467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10469 do
10470   IFS=$as_save_IFS
10471   test -z "$as_dir" && as_dir=.
10472   for ac_exec_ext in '' $ac_executable_extensions; do
10473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10474     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10475     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476     break 2
10477   fi
10478 done
10479 done
10480 IFS=$as_save_IFS
10481
10482   ;;
10483 esac
10484 fi
10485 T1ASM=$ac_cv_path_T1ASM
10486 if test -n "$T1ASM"; then
10487   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10488 $as_echo "$T1ASM" >&6; }
10489 else
10490   { $as_echo "$as_me:$LINENO: result: no" >&5
10491 $as_echo "no" >&6; }
10492 fi
10493
10494
10495   test -n "$T1ASM" && break
10496 done
10497
10498         if test -n ""; then
10499
10500     r="`eval echo '$'"T1ASM"`"
10501     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10502 $as_echo_n "checking $r version... " >&6; }
10503     exe=`
10504     ## which doesn't work in ash, if /usr/bin/which isn't installed
10505     ## type -p doesn't work in ash
10506     ## command -v doesn't work in zsh
10507     ## command -v "$r" 2>&1
10508     ## this test should work in ash, bash, pdksh (ksh), zsh
10509     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10510 `
10511     if test -n ""; then
10512         ver=""
10513     else
10514         ver=`
10515     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10516     ##
10517     ## ARG.
10518     ## Workaround for broken Debian gcc version string:
10519     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10520     ##
10521     ## -V: Workaround for python
10522
10523     #dnl
10524
10525     ## Assume and hunt for dotted version multiplet.
10526     ## use eval trickery, because we cannot use multi-level $() instead of ``
10527     ## for compatibility reasons.
10528
10529     ## grab the first version number in  --version output.
10530     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10531                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10532                 head -n 1 |
10533                 tr ' ' '\n' |
10534                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10535                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10536                 head -n 1\`\"
10537
10538     if test -z "$_ver"; then
10539         ## If empty, try date [fontforge]
10540         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10541             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10542             | head -n 1 \
10543             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10544     fi
10545     echo "$_ver"
10546     #dnl
10547 `
10548     fi
10549     num=`
10550     echo "$ver" | awk -F. '
10551     {
10552       if ($3) {three = $3}
10553       else {three = 0}
10554     }
10555     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10556 `
10557     req=`
10558     echo "" | awk -F. '
10559     {
10560       if ($3) {three = $3}
10561       else {three = 0}
10562     }
10563     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10564 `
10565     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10566 $as_echo "$ver" >&6; }
10567     if test "$num" -lt "$req"; then
10568
10569     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10570
10571     fi
10572     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10573     eval `echo $vervar=$num`
10574 ##    AC_SUBST(`eval echo $vervar`)
10575
10576         fi
10577     fi
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10588 do
10589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10592 $as_echo_n "checking for $ac_header... " >&6; }
10593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594   $as_echo_n "(cached) " >&6
10595 fi
10596 ac_res=`eval 'as_val=${'$as_ac_Header'}
10597                  $as_echo "$as_val"'`
10598                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10599 $as_echo "$ac_res" >&6; }
10600 else
10601   # Is the header compilable?
10602 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10603 $as_echo_n "checking $ac_header usability... " >&6; }
10604 cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610 $ac_includes_default
10611 #include <$ac_header>
10612 _ACEOF
10613 rm -f conftest.$ac_objext
10614 if { (ac_try="$ac_compile"
10615 case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621   (eval "$ac_compile") 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } && {
10628          test -z "$ac_cxx_werror_flag" ||
10629          test ! -s conftest.err
10630        } && test -s conftest.$ac_objext; then
10631   ac_header_compiler=yes
10632 else
10633   $as_echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         ac_header_compiler=no
10637 fi
10638
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10641 $as_echo "$ac_header_compiler" >&6; }
10642
10643 # Is the header present?
10644 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10645 $as_echo_n "checking $ac_header presence... " >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 #include <$ac_header>
10653 _ACEOF
10654 if { (ac_try="$ac_cpp conftest.$ac_ext"
10655 case "(($ac_try" in
10656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657   *) ac_try_echo=$ac_try;;
10658 esac
10659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660 $as_echo "$ac_try_echo") >&5
10661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } >/dev/null && {
10668          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10669          test ! -s conftest.err
10670        }; then
10671   ac_header_preproc=yes
10672 else
10673   $as_echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676   ac_header_preproc=no
10677 fi
10678
10679 rm -f conftest.err conftest.$ac_ext
10680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10681 $as_echo "$ac_header_preproc" >&6; }
10682
10683 # So?  What about this header?
10684 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10685   yes:no: )
10686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10690     ac_header_preproc=yes
10691     ;;
10692   no:yes:* )
10693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10696 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10700 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10704 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10705
10706     ;;
10707 esac
10708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 $as_echo_n "checking for $ac_header... " >&6; }
10710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10711   $as_echo_n "(cached) " >&6
10712 else
10713   eval "$as_ac_Header=\$ac_header_preproc"
10714 fi
10715 ac_res=`eval 'as_val=${'$as_ac_Header'}
10716                  $as_echo "$as_val"'`
10717                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10718 $as_echo "$ac_res" >&6; }
10719
10720 fi
10721 as_val=`eval 'as_val=${'$as_ac_Header'}
10722                  $as_echo "$as_val"'`
10723    if test "x$as_val" = x""yes; then
10724   cat >>confdefs.h <<_ACEOF
10725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10726 _ACEOF
10727
10728 fi
10729
10730 done
10731
10732
10733 for ac_header in sstream
10734 do
10735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10738 $as_echo_n "checking for $ac_header... " >&6; }
10739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10740   $as_echo_n "(cached) " >&6
10741 fi
10742 ac_res=`eval 'as_val=${'$as_ac_Header'}
10743                  $as_echo "$as_val"'`
10744                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10745 $as_echo "$ac_res" >&6; }
10746 else
10747   # Is the header compilable?
10748 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10749 $as_echo_n "checking $ac_header usability... " >&6; }
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h.  */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h.  */
10756 $ac_includes_default
10757 #include <$ac_header>
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10766 $as_echo "$ac_try_echo") >&5
10767   (eval "$ac_compile") 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } && {
10774          test -z "$ac_cxx_werror_flag" ||
10775          test ! -s conftest.err
10776        } && test -s conftest.$ac_objext; then
10777   ac_header_compiler=yes
10778 else
10779   $as_echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10781
10782         ac_header_compiler=no
10783 fi
10784
10785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10787 $as_echo "$ac_header_compiler" >&6; }
10788
10789 # Is the header present?
10790 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10791 $as_echo_n "checking $ac_header presence... " >&6; }
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 #include <$ac_header>
10799 _ACEOF
10800 if { (ac_try="$ac_cpp conftest.$ac_ext"
10801 case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806 $as_echo "$ac_try_echo") >&5
10807   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } >/dev/null && {
10814          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10815          test ! -s conftest.err
10816        }; then
10817   ac_header_preproc=yes
10818 else
10819   $as_echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822   ac_header_preproc=no
10823 fi
10824
10825 rm -f conftest.err conftest.$ac_ext
10826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10827 $as_echo "$ac_header_preproc" >&6; }
10828
10829 # So?  What about this header?
10830 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10831   yes:no: )
10832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10833 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10836     ac_header_preproc=yes
10837     ;;
10838   no:yes:* )
10839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10840 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10842 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10844 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10845     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10846 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10847     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10850 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10851
10852     ;;
10853 esac
10854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10855 $as_echo_n "checking for $ac_header... " >&6; }
10856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10857   $as_echo_n "(cached) " >&6
10858 else
10859   eval "$as_ac_Header=\$ac_header_preproc"
10860 fi
10861 ac_res=`eval 'as_val=${'$as_ac_Header'}
10862                  $as_echo "$as_val"'`
10863                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10864 $as_echo "$ac_res" >&6; }
10865
10866 fi
10867 as_val=`eval 'as_val=${'$as_ac_Header'}
10868                  $as_echo "$as_val"'`
10869    if test "x$as_val" = x""yes; then
10870   cat >>confdefs.h <<_ACEOF
10871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10872 _ACEOF
10873
10874 fi
10875
10876 done
10877
10878 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10879 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10880 if test "${ac_cv_header_stat_broken+set}" = set; then
10881   $as_echo_n "(cached) " >&6
10882 else
10883   cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889 #include <sys/types.h>
10890 #include <sys/stat.h>
10891
10892 #if defined S_ISBLK && defined S_IFDIR
10893 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10894 #endif
10895
10896 #if defined S_ISBLK && defined S_IFCHR
10897 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10898 #endif
10899
10900 #if defined S_ISLNK && defined S_IFREG
10901 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10902 #endif
10903
10904 #if defined S_ISSOCK && defined S_IFREG
10905 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10906 #endif
10907
10908 _ACEOF
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913   *) ac_try_echo=$ac_try;;
10914 esac
10915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10916 $as_echo "$ac_try_echo") >&5
10917   (eval "$ac_compile") 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } && {
10924          test -z "$ac_cxx_werror_flag" ||
10925          test ! -s conftest.err
10926        } && test -s conftest.$ac_objext; then
10927   ac_cv_header_stat_broken=no
10928 else
10929   $as_echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932         ac_cv_header_stat_broken=yes
10933 fi
10934
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 fi
10937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10938 $as_echo "$ac_cv_header_stat_broken" >&6; }
10939 if test $ac_cv_header_stat_broken = yes; then
10940
10941 cat >>confdefs.h <<\_ACEOF
10942 #define STAT_MACROS_BROKEN 1
10943 _ACEOF
10944
10945 fi
10946
10947 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10948 $as_echo_n "checking for working memcmp... " >&6; }
10949 if test "${ac_cv_func_memcmp_working+set}" = set; then
10950   $as_echo_n "(cached) " >&6
10951 else
10952   if test "$cross_compiling" = yes; then
10953   ac_cv_func_memcmp_working=no
10954 else
10955   cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961 $ac_includes_default
10962 int
10963 main ()
10964 {
10965
10966   /* Some versions of memcmp are not 8-bit clean.  */
10967   char c0 = '\100', c1 = '\200', c2 = '\201';
10968   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10969     return 1;
10970
10971   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10972      or more and with at least one buffer not starting on a 4-byte boundary.
10973      William Lewis provided this test program.   */
10974   {
10975     char foo[21];
10976     char bar[21];
10977     int i;
10978     for (i = 0; i < 4; i++)
10979       {
10980         char *a = foo + i;
10981         char *b = bar + i;
10982         strcpy (a, "--------01111111");
10983         strcpy (b, "--------10000000");
10984         if (memcmp (a, b, 16) >= 0)
10985           return 1;
10986       }
10987     return 0;
10988   }
10989
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11001 $as_echo "$ac_try_echo") >&5
11002   (eval "$ac_link") 2>&5
11003   ac_status=$?
11004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11006   { (case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11011 $as_echo "$ac_try_echo") >&5
11012   (eval "$ac_try") 2>&5
11013   ac_status=$?
11014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   ac_cv_func_memcmp_working=yes
11017 else
11018   $as_echo "$as_me: program exited with status $ac_status" >&5
11019 $as_echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022 ( exit $ac_status )
11023 ac_cv_func_memcmp_working=no
11024 fi
11025 rm -rf conftest.dSYM
11026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11027 fi
11028
11029
11030 fi
11031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11032 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11033 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11034   *" memcmp.$ac_objext "* ) ;;
11035   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11036  ;;
11037 esac
11038
11039
11040
11041 for ac_func in vprintf
11042 do
11043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11045 $as_echo_n "checking for $ac_func... " >&6; }
11046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11047   $as_echo_n "(cached) " >&6
11048 else
11049   cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11057 #define $ac_func innocuous_$ac_func
11058
11059 /* System header to define __stub macros and hopefully few prototypes,
11060     which can conflict with char $ac_func (); below.
11061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062     <limits.h> exists even on freestanding compilers.  */
11063
11064 #ifdef __STDC__
11065 # include <limits.h>
11066 #else
11067 # include <assert.h>
11068 #endif
11069
11070 #undef $ac_func
11071
11072 /* Override any GCC internal prototype to avoid an error.
11073    Use char because int might match the return type of a GCC
11074    builtin and then its argument prototype would still apply.  */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char $ac_func ();
11079 /* The GNU C library defines this for functions which it implements
11080     to always fail with ENOSYS.  Some functions are actually named
11081     something starting with __ and the normal name is an alias.  */
11082 #if defined __stub_$ac_func || defined __stub___$ac_func
11083 choke me
11084 #endif
11085
11086 int
11087 main ()
11088 {
11089 return $ac_func ();
11090   ;
11091   return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (ac_try="$ac_link"
11096 case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102   (eval "$ac_link") 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } && {
11109          test -z "$ac_cxx_werror_flag" ||
11110          test ! -s conftest.err
11111        } && test -s conftest$ac_exeext && {
11112          test "$cross_compiling" = yes ||
11113          $as_test_x conftest$ac_exeext
11114        }; then
11115   eval "$as_ac_var=yes"
11116 else
11117   $as_echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120         eval "$as_ac_var=no"
11121 fi
11122
11123 rm -rf conftest.dSYM
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125       conftest$ac_exeext conftest.$ac_ext
11126 fi
11127 ac_res=`eval 'as_val=${'$as_ac_var'}
11128                  $as_echo "$as_val"'`
11129                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11130 $as_echo "$ac_res" >&6; }
11131 as_val=`eval 'as_val=${'$as_ac_var'}
11132                  $as_echo "$as_val"'`
11133    if test "x$as_val" = x""yes; then
11134   cat >>confdefs.h <<_ACEOF
11135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11136 _ACEOF
11137
11138 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11139 $as_echo_n "checking for _doprnt... " >&6; }
11140 if test "${ac_cv_func__doprnt+set}" = set; then
11141   $as_echo_n "(cached) " >&6
11142 else
11143   cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11151 #define _doprnt innocuous__doprnt
11152
11153 /* System header to define __stub macros and hopefully few prototypes,
11154     which can conflict with char _doprnt (); below.
11155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156     <limits.h> exists even on freestanding compilers.  */
11157
11158 #ifdef __STDC__
11159 # include <limits.h>
11160 #else
11161 # include <assert.h>
11162 #endif
11163
11164 #undef _doprnt
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167    Use char because int might match the return type of a GCC
11168    builtin and then its argument prototype would still apply.  */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char _doprnt ();
11173 /* The GNU C library defines this for functions which it implements
11174     to always fail with ENOSYS.  Some functions are actually named
11175     something starting with __ and the normal name is an alias.  */
11176 #if defined __stub__doprnt || defined __stub____doprnt
11177 choke me
11178 #endif
11179
11180 int
11181 main ()
11182 {
11183 return _doprnt ();
11184   ;
11185   return 0;
11186 }
11187 _ACEOF
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192   *) ac_try_echo=$ac_try;;
11193 esac
11194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11195 $as_echo "$ac_try_echo") >&5
11196   (eval "$ac_link") 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && {
11203          test -z "$ac_cxx_werror_flag" ||
11204          test ! -s conftest.err
11205        } && test -s conftest$ac_exeext && {
11206          test "$cross_compiling" = yes ||
11207          $as_test_x conftest$ac_exeext
11208        }; then
11209   ac_cv_func__doprnt=yes
11210 else
11211   $as_echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214         ac_cv_func__doprnt=no
11215 fi
11216
11217 rm -rf conftest.dSYM
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219       conftest$ac_exeext conftest.$ac_ext
11220 fi
11221 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11222 $as_echo "$ac_cv_func__doprnt" >&6; }
11223 if test "x$ac_cv_func__doprnt" = x""yes; then
11224
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_DOPRNT 1
11227 _ACEOF
11228
11229 fi
11230
11231 fi
11232 done
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11243 do
11244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11246 $as_echo_n "checking for $ac_func... " >&6; }
11247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11248   $as_echo_n "(cached) " >&6
11249 else
11250   cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h.  */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h.  */
11256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11258 #define $ac_func innocuous_$ac_func
11259
11260 /* System header to define __stub macros and hopefully few prototypes,
11261     which can conflict with char $ac_func (); below.
11262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263     <limits.h> exists even on freestanding compilers.  */
11264
11265 #ifdef __STDC__
11266 # include <limits.h>
11267 #else
11268 # include <assert.h>
11269 #endif
11270
11271 #undef $ac_func
11272
11273 /* Override any GCC internal prototype to avoid an error.
11274    Use char because int might match the return type of a GCC
11275    builtin and then its argument prototype would still apply.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 #endif
11279 char $ac_func ();
11280 /* The GNU C library defines this for functions which it implements
11281     to always fail with ENOSYS.  Some functions are actually named
11282     something starting with __ and the normal name is an alias.  */
11283 #if defined __stub_$ac_func || defined __stub___$ac_func
11284 choke me
11285 #endif
11286
11287 int
11288 main ()
11289 {
11290 return $ac_func ();
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303   (eval "$ac_link") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } && {
11310          test -z "$ac_cxx_werror_flag" ||
11311          test ! -s conftest.err
11312        } && test -s conftest$ac_exeext && {
11313          test "$cross_compiling" = yes ||
11314          $as_test_x conftest$ac_exeext
11315        }; then
11316   eval "$as_ac_var=yes"
11317 else
11318   $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321         eval "$as_ac_var=no"
11322 fi
11323
11324 rm -rf conftest.dSYM
11325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326       conftest$ac_exeext conftest.$ac_ext
11327 fi
11328 ac_res=`eval 'as_val=${'$as_ac_var'}
11329                  $as_echo "$as_val"'`
11330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11332 as_val=`eval 'as_val=${'$as_ac_var'}
11333                  $as_echo "$as_val"'`
11334    if test "x$as_val" = x""yes; then
11335   cat >>confdefs.h <<_ACEOF
11336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 _ACEOF
11338
11339 fi
11340 done
11341
11342
11343
11344     for ac_prog in pkg-config
11345 do
11346   # Extract the first word of "$ac_prog", so it can be a program name with args.
11347 set dummy $ac_prog; ac_word=$2
11348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11351   $as_echo_n "(cached) " >&6
11352 else
11353   if test -n "$PKG_CONFIG"; then
11354   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359   IFS=$as_save_IFS
11360   test -z "$as_dir" && as_dir=.
11361   for ac_exec_ext in '' $ac_executable_extensions; do
11362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363     ac_cv_prog_PKG_CONFIG="$ac_prog"
11364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365     break 2
11366   fi
11367 done
11368 done
11369 IFS=$as_save_IFS
11370
11371 fi
11372 fi
11373 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11374 if test -n "$PKG_CONFIG"; then
11375   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11376 $as_echo "$PKG_CONFIG" >&6; }
11377 else
11378   { $as_echo "$as_me:$LINENO: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381
11382
11383   test -n "$PKG_CONFIG" && break
11384 done
11385 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11386
11387
11388
11389     r="`eval echo '$'"PKG_CONFIG"`"
11390     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11391         true
11392     else
11393         ##STEPMAKE_WARN(cannot find . )
11394         false
11395     fi
11396
11397     if test $? -ne 0; then
11398
11399     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11400
11401         if test "REQUIRED" = "REQUIRED"; then
11402             command="echo ERROR: pkg-config not found"
11403             # abort configure process here?
11404         else
11405             command="- echo pkg-config not found"
11406         fi
11407         eval "PKG_CONFIG"='$command'
11408         false
11409     else
11410         true
11411     fi
11412
11413     if test $? -eq 0 -a -n "0.9.0"; then
11414
11415     r="`eval echo '$'"PKG_CONFIG"`"
11416     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11417 $as_echo_n "checking $r version... " >&6; }
11418     exe=`
11419     ## which doesn't work in ash, if /usr/bin/which isn't installed
11420     ## type -p doesn't work in ash
11421     ## command -v doesn't work in zsh
11422     ## command -v "$r" 2>&1
11423     ## this test should work in ash, bash, pdksh (ksh), zsh
11424     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11425 `
11426     if test -n ""; then
11427         ver=""
11428     else
11429         ver=`
11430     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11431     ##
11432     ## ARG.
11433     ## Workaround for broken Debian gcc version string:
11434     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11435     ##
11436     ## -V: Workaround for python
11437
11438     #dnl
11439
11440     ## Assume and hunt for dotted version multiplet.
11441     ## use eval trickery, because we cannot use multi-level $() instead of ``
11442     ## for compatibility reasons.
11443
11444     ## grab the first version number in  --version output.
11445     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11446                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11447                 head -n 1 |
11448                 tr ' ' '\n' |
11449                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11450                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11451                 head -n 1\`\"
11452
11453     if test -z "$_ver"; then
11454         ## If empty, try date [fontforge]
11455         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11456             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11457             | head -n 1 \
11458             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11459     fi
11460     echo "$_ver"
11461     #dnl
11462 `
11463     fi
11464     num=`
11465     echo "$ver" | awk -F. '
11466     {
11467       if ($3) {three = $3}
11468       else {three = 0}
11469     }
11470     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11471 `
11472     req=`
11473     echo "0.9.0" | awk -F. '
11474     {
11475       if ($3) {three = $3}
11476       else {three = 0}
11477     }
11478     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11479 `
11480     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11481 $as_echo "$ver" >&6; }
11482     if test "$num" -lt "$req"; then
11483
11484     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11485
11486     fi
11487     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11488     eval `echo $vervar=$num`
11489 ##    AC_SUBST(`eval echo $vervar`)
11490
11491     fi
11492
11493
11494 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11495 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11496 if test "$reloc_b" = "yes"; then
11497     cat >>confdefs.h <<\_ACEOF
11498 #define ARGV0_RELOCATION 1
11499 _ACEOF
11500
11501 fi
11502 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11503 $as_echo "$reloc_b" >&6; }
11504
11505 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11506 $as_echo_n "checking for rpath linkage... " >&6; }
11507 if test "$rpath_b" = "yes"; then
11508     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11509 elif test "$rpath_b" != "no"; then
11510     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11511 fi
11512 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11513 $as_echo "$rpath_b" >&6; }
11514
11515 HOST_ARCH=`$CC -dumpmachine`
11516
11517
11518
11519
11520   succeeded=no
11521
11522   if test -z "$PKG_CONFIG"; then
11523     # Extract the first word of "pkg-config", so it can be a program name with args.
11524 set dummy pkg-config; ac_word=$2
11525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11528   $as_echo_n "(cached) " >&6
11529 else
11530   case $PKG_CONFIG in
11531   [\\/]* | ?:[\\/]*)
11532   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11533   ;;
11534   *)
11535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536 for as_dir in $PATH
11537 do
11538   IFS=$as_save_IFS
11539   test -z "$as_dir" && as_dir=.
11540   for ac_exec_ext in '' $ac_executable_extensions; do
11541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11543     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11544     break 2
11545   fi
11546 done
11547 done
11548 IFS=$as_save_IFS
11549
11550   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11551   ;;
11552 esac
11553 fi
11554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11555 if test -n "$PKG_CONFIG"; then
11556   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11557 $as_echo "$PKG_CONFIG" >&6; }
11558 else
11559   { $as_echo "$as_me:$LINENO: result: no" >&5
11560 $as_echo "no" >&6; }
11561 fi
11562
11563
11564   fi
11565
11566   if test "$PKG_CONFIG" = "no" ; then
11567      echo "*** The pkg-config script could not be found. Make sure it is"
11568      echo "*** in your path, or set the PKG_CONFIG environment variable"
11569      echo "*** to the full path to pkg-config."
11570      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11571   else
11572      PKG_CONFIG_MIN_VERSION=0.9.0
11573      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11574         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11575 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11576
11577         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11578             { $as_echo "$as_me:$LINENO: result: yes" >&5
11579 $as_echo "yes" >&6; }
11580             succeeded=yes
11581
11582             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11583 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11584             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11585             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11586 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11587
11588             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11589 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11590             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11591             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11592 $as_echo "$PANGO_FT2_LIBS" >&6; }
11593         else
11594             PANGO_FT2_CFLAGS=""
11595             PANGO_FT2_LIBS=""
11596             ## If we have a custom action on failure, don't print errors, but
11597             ## do set a variable so people can do so.
11598             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11599
11600         fi
11601
11602
11603
11604      fi
11605   fi
11606
11607   if test $succeeded = yes; then
11608      have_pangoft2=yes
11609   else
11610      true
11611   fi
11612
11613     if test "$have_pangoft2" = yes ; then
11614         cat >>confdefs.h <<\_ACEOF
11615 #define HAVE_PANGO16 1
11616 _ACEOF
11617
11618         cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_PANGO_FT2 1
11620 _ACEOF
11621
11622         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11623         save_CPPFLAGS="$CPPFLAGS"
11624         save_LIBS="$LIBS"
11625         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11626         LIBS="$PANGO_FT2_LIBS $LIBS"
11627
11628 for ac_header in pango/pangoft2.h
11629 do
11630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 $as_echo_n "checking for $ac_header... " >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635   $as_echo_n "(cached) " >&6
11636 fi
11637 ac_res=`eval 'as_val=${'$as_ac_Header'}
11638                  $as_echo "$as_val"'`
11639                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11640 $as_echo "$ac_res" >&6; }
11641 else
11642   # Is the header compilable?
11643 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644 $as_echo_n "checking $ac_header usability... " >&6; }
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 $ac_includes_default
11652 #include <$ac_header>
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658   *) ac_try_echo=$ac_try;;
11659 esac
11660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11661 $as_echo "$ac_try_echo") >&5
11662   (eval "$ac_compile") 2>conftest.er1
11663   ac_status=$?
11664   grep -v '^ *+' conftest.er1 >conftest.err
11665   rm -f conftest.er1
11666   cat conftest.err >&5
11667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } && {
11669          test -z "$ac_cxx_werror_flag" ||
11670          test ! -s conftest.err
11671        } && test -s conftest.$ac_objext; then
11672   ac_header_compiler=yes
11673 else
11674   $as_echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677         ac_header_compiler=no
11678 fi
11679
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11682 $as_echo "$ac_header_compiler" >&6; }
11683
11684 # Is the header present?
11685 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11686 $as_echo_n "checking $ac_header presence... " >&6; }
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 #include <$ac_header>
11694 _ACEOF
11695 if { (ac_try="$ac_cpp conftest.$ac_ext"
11696 case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701 $as_echo "$ac_try_echo") >&5
11702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } >/dev/null && {
11709          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11710          test ! -s conftest.err
11711        }; then
11712   ac_header_preproc=yes
11713 else
11714   $as_echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717   ac_header_preproc=no
11718 fi
11719
11720 rm -f conftest.err conftest.$ac_ext
11721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 $as_echo "$ac_header_preproc" >&6; }
11723
11724 # So?  What about this header?
11725 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11726   yes:no: )
11727     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731     ac_header_preproc=yes
11732     ;;
11733   no:yes:* )
11734     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11737 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11741 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11746
11747     ;;
11748 esac
11749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 $as_echo_n "checking for $ac_header... " >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752   $as_echo_n "(cached) " >&6
11753 else
11754   eval "$as_ac_Header=\$ac_header_preproc"
11755 fi
11756 ac_res=`eval 'as_val=${'$as_ac_Header'}
11757                  $as_echo "$as_val"'`
11758                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11759 $as_echo "$ac_res" >&6; }
11760
11761 fi
11762 as_val=`eval 'as_val=${'$as_ac_Header'}
11763                  $as_echo "$as_val"'`
11764    if test "x$as_val" = x""yes; then
11765   cat >>confdefs.h <<_ACEOF
11766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11767 _ACEOF
11768
11769 fi
11770
11771 done
11772
11773
11774 for ac_func in pango_ft2_font_map_create_context
11775 do
11776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11778 $as_echo_n "checking for $ac_func... " >&6; }
11779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11780   $as_echo_n "(cached) " >&6
11781 else
11782   cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h.  */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h.  */
11788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11790 #define $ac_func innocuous_$ac_func
11791
11792 /* System header to define __stub macros and hopefully few prototypes,
11793     which can conflict with char $ac_func (); below.
11794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11795     <limits.h> exists even on freestanding compilers.  */
11796
11797 #ifdef __STDC__
11798 # include <limits.h>
11799 #else
11800 # include <assert.h>
11801 #endif
11802
11803 #undef $ac_func
11804
11805 /* Override any GCC internal prototype to avoid an error.
11806    Use char because int might match the return type of a GCC
11807    builtin and then its argument prototype would still apply.  */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 char $ac_func ();
11812 /* The GNU C library defines this for functions which it implements
11813     to always fail with ENOSYS.  Some functions are actually named
11814     something starting with __ and the normal name is an alias.  */
11815 #if defined __stub_$ac_func || defined __stub___$ac_func
11816 choke me
11817 #endif
11818
11819 int
11820 main ()
11821 {
11822 return $ac_func ();
11823   ;
11824   return 0;
11825 }
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (ac_try="$ac_link"
11829 case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11834 $as_echo "$ac_try_echo") >&5
11835   (eval "$ac_link") 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } && {
11842          test -z "$ac_cxx_werror_flag" ||
11843          test ! -s conftest.err
11844        } && test -s conftest$ac_exeext && {
11845          test "$cross_compiling" = yes ||
11846          $as_test_x conftest$ac_exeext
11847        }; then
11848   eval "$as_ac_var=yes"
11849 else
11850   $as_echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853         eval "$as_ac_var=no"
11854 fi
11855
11856 rm -rf conftest.dSYM
11857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11858       conftest$ac_exeext conftest.$ac_ext
11859 fi
11860 ac_res=`eval 'as_val=${'$as_ac_var'}
11861                  $as_echo "$as_val"'`
11862                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11863 $as_echo "$ac_res" >&6; }
11864 as_val=`eval 'as_val=${'$as_ac_var'}
11865                  $as_echo "$as_val"'`
11866    if test "x$as_val" = x""yes; then
11867   cat >>confdefs.h <<_ACEOF
11868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11869 _ACEOF
11870
11871 fi
11872 done
11873
11874
11875
11876         CPPFLAGS="$save_CPPFLAGS"
11877         LIBS="$save_LIBS"
11878     else
11879         # UGR
11880         #r="libpangoft2-dev or pangoft2-devel"e
11881         r="libpango1.0-dev or pango?-devel"
11882         ver="`pkg-config --modversion pangoft2`"
11883
11884     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11885
11886     fi
11887
11888
11889
11890   succeeded=no
11891
11892   if test -z "$PKG_CONFIG"; then
11893     # Extract the first word of "pkg-config", so it can be a program name with args.
11894 set dummy pkg-config; ac_word=$2
11895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11898   $as_echo_n "(cached) " >&6
11899 else
11900   case $PKG_CONFIG in
11901   [\\/]* | ?:[\\/]*)
11902   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11903   ;;
11904   *)
11905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910   for ac_exec_ext in '' $ac_executable_extensions; do
11911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11913     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11914     break 2
11915   fi
11916 done
11917 done
11918 IFS=$as_save_IFS
11919
11920   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11921   ;;
11922 esac
11923 fi
11924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11925 if test -n "$PKG_CONFIG"; then
11926   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11927 $as_echo "$PKG_CONFIG" >&6; }
11928 else
11929   { $as_echo "$as_me:$LINENO: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932
11933
11934   fi
11935
11936   if test "$PKG_CONFIG" = "no" ; then
11937      echo "*** The pkg-config script could not be found. Make sure it is"
11938      echo "*** in your path, or set the PKG_CONFIG environment variable"
11939      echo "*** to the full path to pkg-config."
11940      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11941   else
11942      PKG_CONFIG_MIN_VERSION=0.9.0
11943      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11944         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11945 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11946
11947         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11948             { $as_echo "$as_me:$LINENO: result: yes" >&5
11949 $as_echo "yes" >&6; }
11950             succeeded=yes
11951
11952             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11953 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11954             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11955             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11956 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11957
11958             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11959 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11960             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11961             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11962 $as_echo "$FONTCONFIG_LIBS" >&6; }
11963         else
11964             FONTCONFIG_CFLAGS=""
11965             FONTCONFIG_LIBS=""
11966             ## If we have a custom action on failure, don't print errors, but
11967             ## do set a variable so people can do so.
11968             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11969
11970         fi
11971
11972
11973
11974      fi
11975   fi
11976
11977   if test $succeeded = yes; then
11978      have_fontconfig=yes
11979   else
11980      true
11981   fi
11982
11983     if test "$have_fontconfig" = yes ; then
11984         cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_FONTCONFIG 1
11986 _ACEOF
11987
11988         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11989         save_CPPFLAGS="$CPPFLAGS"
11990         save_LIBS="$LIBS"
11991         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11992         LIBS="$FONTCONFIG_LIBS $LIBS"
11993
11994
11995         CPPFLAGS="$save_CPPFLAGS"
11996         LIBS="$save_LIBS"
11997     else
11998         r="libfontconfig-dev or fontconfig-devel"
11999         ver="`pkg-config --modversion fontconfig`"
12000
12001     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12002
12003     fi
12004
12005
12006
12007   succeeded=no
12008
12009   if test -z "$PKG_CONFIG"; then
12010     # Extract the first word of "pkg-config", so it can be a program name with args.
12011 set dummy pkg-config; ac_word=$2
12012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12015   $as_echo_n "(cached) " >&6
12016 else
12017   case $PKG_CONFIG in
12018   [\\/]* | ?:[\\/]*)
12019   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12020   ;;
12021   *)
12022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12024 do
12025   IFS=$as_save_IFS
12026   test -z "$as_dir" && as_dir=.
12027   for ac_exec_ext in '' $ac_executable_extensions; do
12028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12030     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12031     break 2
12032   fi
12033 done
12034 done
12035 IFS=$as_save_IFS
12036
12037   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12038   ;;
12039 esac
12040 fi
12041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12042 if test -n "$PKG_CONFIG"; then
12043   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12044 $as_echo "$PKG_CONFIG" >&6; }
12045 else
12046   { $as_echo "$as_me:$LINENO: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051   fi
12052
12053   if test "$PKG_CONFIG" = "no" ; then
12054      echo "*** The pkg-config script could not be found. Make sure it is"
12055      echo "*** in your path, or set the PKG_CONFIG environment variable"
12056      echo "*** to the full path to pkg-config."
12057      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12058   else
12059      PKG_CONFIG_MIN_VERSION=0.9.0
12060      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12061         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12062 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12063
12064         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12065             { $as_echo "$as_me:$LINENO: result: yes" >&5
12066 $as_echo "yes" >&6; }
12067             succeeded=yes
12068
12069             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12070 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12071             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12072             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12073 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12074
12075             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12076 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12077             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12078             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12079 $as_echo "$FREETYPE2_LIBS" >&6; }
12080         else
12081             FREETYPE2_CFLAGS=""
12082             FREETYPE2_LIBS=""
12083             ## If we have a custom action on failure, don't print errors, but
12084             ## do set a variable so people can do so.
12085             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12086
12087         fi
12088
12089
12090
12091      fi
12092   fi
12093
12094   if test $succeeded = yes; then
12095      have_freetype2=yes
12096   else
12097      true
12098   fi
12099
12100     if test "$have_freetype2" = yes; then
12101         cat >>confdefs.h <<\_ACEOF
12102 #define HAVE_FREETYPE2 1
12103 _ACEOF
12104
12105         save_CPPFLAGS="$CPPFLAGS"
12106         save_LIBS="$LIBS"
12107         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12108         LIBS="$FREETYPE2_LIBS $LIBS"
12109
12110
12111         CPPFLAGS="$save_CPPFLAGS"
12112         LIBS="$save_LIBS"
12113     else
12114         # UGR
12115         #r="libfreetype2-dev or freetype2-devel"
12116         r="libfreetype6-dev or freetype?-devel"
12117         ver="`pkg-config --modversion freetype2`"
12118
12119     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12120
12121     fi
12122
12123
12124
12125     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12126 $as_echo_n "checking host system type... " >&6; }
12127 if test "${ac_cv_host+set}" = set; then
12128   $as_echo_n "(cached) " >&6
12129 else
12130   if test "x$host_alias" = x; then
12131   ac_cv_host=$ac_cv_build
12132 else
12133   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12134     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12135 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12136    { (exit 1); exit 1; }; }
12137 fi
12138
12139 fi
12140 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12141 $as_echo "$ac_cv_host" >&6; }
12142 case $ac_cv_host in
12143 *-*-*) ;;
12144 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12145 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12146    { (exit 1); exit 1; }; };;
12147 esac
12148 host=$ac_cv_host
12149 ac_save_IFS=$IFS; IFS='-'
12150 set x $ac_cv_host
12151 shift
12152 host_cpu=$1
12153 host_vendor=$2
12154 shift; shift
12155 # Remember, the first character of IFS is used to create $*,
12156 # except with old shells:
12157 host_os=$*
12158 IFS=$ac_save_IFS
12159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12160
12161
12162 case $host_os in
12163   *cygwin* ) CYGWIN=yes;;
12164          * ) CYGWIN=no;;
12165 esac
12166
12167     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12168 $as_echo_n "checking host system type... " >&6; }
12169 if test "${ac_cv_host+set}" = set; then
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if test "x$host_alias" = x; then
12173   ac_cv_host=$ac_cv_build
12174 else
12175   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12176     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12177 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12178    { (exit 1); exit 1; }; }
12179 fi
12180
12181 fi
12182 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12183 $as_echo "$ac_cv_host" >&6; }
12184 case $ac_cv_host in
12185 *-*-*) ;;
12186 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12187 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12188    { (exit 1); exit 1; }; };;
12189 esac
12190 host=$ac_cv_host
12191 ac_save_IFS=$IFS; IFS='-'
12192 set x $ac_cv_host
12193 shift
12194 host_cpu=$1
12195 host_vendor=$2
12196 shift; shift
12197 # Remember, the first character of IFS is used to create $*,
12198 # except with old shells:
12199 host_os=$*
12200 IFS=$ac_save_IFS
12201 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12202
12203
12204 case $host_os in
12205   *mingw32* ) MINGW32=yes;;
12206           * ) MINGW32=no;;
12207 esac
12208
12209
12210     if test "$CYGWIN" = "yes"; then
12211         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12212         program_suffix=.exe
12213         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12214     elif test "$MINGW32" = "yes"; then
12215         LN='cp -r'
12216         LN_S='cp -r'
12217         program_suffix=.exe
12218         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12219         PATHSEP=';'
12220     fi
12221
12222
12223
12224     cat >>confdefs.h <<_ACEOF
12225 #define DIRSEP '${DIRSEP}'
12226 _ACEOF
12227
12228     cat >>confdefs.h <<_ACEOF
12229 #define PATHSEP '${PATHSEP}'
12230 _ACEOF
12231
12232
12233
12234
12235
12236     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12237 $as_echo_n "checking for some flavor of Windows... " >&6; }
12238     if test "$CYGWIN$MINGW32" = "nono"; then
12239         PLATFORM_WINDOWS=no
12240     else
12241         PLATFORM_WINDOWS=yes
12242     fi
12243     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12244 $as_echo "$PLATFORM_WINDOWS" >&6; }
12245
12246
12247     for ac_prog in $target-windres windres
12248 do
12249   # Extract the first word of "$ac_prog", so it can be a program name with args.
12250 set dummy $ac_prog; ac_word=$2
12251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_prog_WINDRES+set}" = set; then
12254   $as_echo_n "(cached) " >&6
12255 else
12256   if test -n "$WINDRES"; then
12257   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12258 else
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12261 do
12262   IFS=$as_save_IFS
12263   test -z "$as_dir" && as_dir=.
12264   for ac_exec_ext in '' $ac_executable_extensions; do
12265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266     ac_cv_prog_WINDRES="$ac_prog"
12267     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12268     break 2
12269   fi
12270 done
12271 done
12272 IFS=$as_save_IFS
12273
12274 fi
12275 fi
12276 WINDRES=$ac_cv_prog_WINDRES
12277 if test -n "$WINDRES"; then
12278   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12279 $as_echo "$WINDRES" >&6; }
12280 else
12281   { $as_echo "$as_me:$LINENO: result: no" >&5
12282 $as_echo "no" >&6; }
12283 fi
12284
12285
12286   test -n "$WINDRES" && break
12287 done
12288 test -n "$WINDRES" || WINDRES="no"
12289
12290
12291
12292     r="`eval echo '$'"WINDRES"`"
12293     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12294         true
12295     else
12296         ##STEPMAKE_WARN(cannot find . )
12297         false
12298     fi
12299
12300     if test $? -ne 0; then
12301
12302     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12303
12304         if test "x" = "REQUIRED"; then
12305             command="echo ERROR: $target-windres windres not found"
12306             # abort configure process here?
12307         else
12308             command="- echo $target-windres windres not found"
12309         fi
12310         eval "WINDRES"='$command'
12311         false
12312     else
12313         true
12314     fi
12315
12316     if test $? -eq 0 -a -n ""; then
12317
12318     r="`eval echo '$'"WINDRES"`"
12319     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12320 $as_echo_n "checking $r version... " >&6; }
12321     exe=`
12322     ## which doesn't work in ash, if /usr/bin/which isn't installed
12323     ## type -p doesn't work in ash
12324     ## command -v doesn't work in zsh
12325     ## command -v "$r" 2>&1
12326     ## this test should work in ash, bash, pdksh (ksh), zsh
12327     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12328 `
12329     if test -n ""; then
12330         ver=""
12331     else
12332         ver=`
12333     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12334     ##
12335     ## ARG.
12336     ## Workaround for broken Debian gcc version string:
12337     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12338     ##
12339     ## -V: Workaround for python
12340
12341     #dnl
12342
12343     ## Assume and hunt for dotted version multiplet.
12344     ## use eval trickery, because we cannot use multi-level $() instead of ``
12345     ## for compatibility reasons.
12346
12347     ## grab the first version number in  --version output.
12348     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12349                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12350                 head -n 1 |
12351                 tr ' ' '\n' |
12352                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12353                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12354                 head -n 1\`\"
12355
12356     if test -z "$_ver"; then
12357         ## If empty, try date [fontforge]
12358         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12359             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12360             | head -n 1 \
12361             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12362     fi
12363     echo "$_ver"
12364     #dnl
12365 `
12366     fi
12367     num=`
12368     echo "$ver" | awk -F. '
12369     {
12370       if ($3) {three = $3}
12371       else {three = 0}
12372     }
12373     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12374 `
12375     req=`
12376     echo "" | awk -F. '
12377     {
12378       if ($3) {three = $3}
12379       else {three = 0}
12380     }
12381     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12382 `
12383     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12384 $as_echo "$ver" >&6; }
12385     if test "$num" -lt "$req"; then
12386
12387     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
12388
12389     fi
12390     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12391     eval `echo $vervar=$num`
12392 ##    AC_SUBST(`eval echo $vervar`)
12393
12394     fi
12395
12396
12397
12398
12399 # guile executable for some scripts
12400
12401     { $as_echo "$as_me:$LINENO: checking for guile" >&5
12402 $as_echo_n "checking for guile... " >&6; }
12403     guile="guile"
12404     found="no"
12405     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
12406         exe=`
12407     ## which doesn't work in ash, if /usr/bin/which isn't installed
12408     ## type -p doesn't work in ash
12409     ## command -v doesn't work in zsh
12410     ## command -v "$r" 2>&1
12411     ## this test should work in ash, bash, pdksh (ksh), zsh
12412     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12413 `
12414         if ! $exe --version > /dev/null 2>&1 ; then
12415             continue
12416         fi
12417         ver=`
12418     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12419     ##
12420     ## ARG.
12421     ## Workaround for broken Debian gcc version string:
12422     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12423     ##
12424     ## -V: Workaround for python
12425
12426     #dnl
12427
12428     ## Assume and hunt for dotted version multiplet.
12429     ## use eval trickery, because we cannot use multi-level $() instead of ``
12430     ## for compatibility reasons.
12431
12432     ## grab the first version number in  --version output.
12433     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12434                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12435                 head -n 1 |
12436                 tr ' ' '\n' |
12437                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12438                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12439                 head -n 1\`\"
12440
12441     if test -z "$_ver"; then
12442         ## If empty, try date [fontforge]
12443         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12444             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12445             | head -n 1 \
12446             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12447     fi
12448     echo "$_ver"
12449     #dnl
12450 `
12451         num=`
12452     echo "$ver" | awk -F. '
12453     {
12454       if ($3) {three = $3}
12455       else {three = 0}
12456     }
12457     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12458 `
12459         req=`
12460     echo "1.8.2" | awk -F. '
12461     {
12462       if ($3) {three = $3}
12463       else {three = 0}
12464     }
12465     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12466 `
12467         sup=`
12468     echo "1.9.0" | awk -F. '
12469     {
12470       if ($3) {three = $3}
12471       else {three = 0}
12472     }
12473     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12474 `
12475         if test -n "1.8.2" && test "$num" -lt "$req"; then
12476             guile="$r >= 1.8.2 (installed: $ver)"
12477             continue
12478         else
12479             if test -n "1.9.0" && test "$num" -ge "$sup"; then
12480                 guile="$r < 1.9.0 (installed: $ver)"
12481                 continue
12482             else
12483                 guile=$r
12484                 found=$r
12485                 break
12486             fi
12487         fi
12488     done
12489     { $as_echo "$as_me:$LINENO: result: $found" >&5
12490 $as_echo "$found" >&6; }
12491     if test "$found" != "no"; then
12492         { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12493 $as_echo_n "checking $guile version... " >&6; }
12494         { $as_echo "$as_me:$LINENO: result: $ver" >&5
12495 $as_echo "$ver" >&6; }
12496         GUILE=$found
12497     else
12498
12499     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12500
12501     fi
12502
12503     for ac_prog in $GUILE
12504 do
12505   # Extract the first word of "$ac_prog", so it can be a program name with args.
12506 set dummy $ac_prog; ac_word=$2
12507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if test "${ac_cv_prog_GUILE+set}" = set; then
12510   $as_echo_n "(cached) " >&6
12511 else
12512   if test -n "$GUILE"; then
12513   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12514 else
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12517 do
12518   IFS=$as_save_IFS
12519   test -z "$as_dir" && as_dir=.
12520   for ac_exec_ext in '' $ac_executable_extensions; do
12521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12522     ac_cv_prog_GUILE="$ac_prog"
12523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12524     break 2
12525   fi
12526 done
12527 done
12528 IFS=$as_save_IFS
12529
12530 fi
12531 fi
12532 GUILE=$ac_cv_prog_GUILE
12533 if test -n "$GUILE"; then
12534   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12535 $as_echo "$GUILE" >&6; }
12536 else
12537   { $as_echo "$as_me:$LINENO: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540
12541
12542   test -n "$GUILE" && break
12543 done
12544 test -n "$GUILE" || GUILE="no"
12545
12546
12547
12548     r="`eval echo '$'"GUILE"`"
12549     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12550         true
12551     else
12552         ##STEPMAKE_WARN(cannot find . )
12553         false
12554     fi
12555
12556     if test $? -ne 0; then
12557
12558     eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12559
12560         if test "" = "REQUIRED"; then
12561             command="echo ERROR: $GUILE not found"
12562             # abort configure process here?
12563         else
12564             command="- echo $GUILE not found"
12565         fi
12566         eval "GUILE"='$command'
12567         false
12568     else
12569         true
12570     fi
12571
12572     if test $? -eq 0; then
12573         for ac_prog in $GUILE
12574 do
12575   # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy $ac_prog; ac_word=$2
12577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if test "${ac_cv_path_GUILE+set}" = set; then
12580   $as_echo_n "(cached) " >&6
12581 else
12582   case $GUILE in
12583   [\\/]* | ?:[\\/]*)
12584   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12585   ;;
12586   *)
12587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590   IFS=$as_save_IFS
12591   test -z "$as_dir" && as_dir=.
12592   for ac_exec_ext in '' $ac_executable_extensions; do
12593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12594     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12595     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12596     break 2
12597   fi
12598 done
12599 done
12600 IFS=$as_save_IFS
12601
12602   ;;
12603 esac
12604 fi
12605 GUILE=$ac_cv_path_GUILE
12606 if test -n "$GUILE"; then
12607   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12608 $as_echo "$GUILE" >&6; }
12609 else
12610   { $as_echo "$as_me:$LINENO: result: no" >&5
12611 $as_echo "no" >&6; }
12612 fi
12613
12614
12615   test -n "$GUILE" && break
12616 done
12617
12618         if test -n ""; then
12619
12620     r="`eval echo '$'"GUILE"`"
12621     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12622 $as_echo_n "checking $r version... " >&6; }
12623     exe=`
12624     ## which doesn't work in ash, if /usr/bin/which isn't installed
12625     ## type -p doesn't work in ash
12626     ## command -v doesn't work in zsh
12627     ## command -v "$r" 2>&1
12628     ## this test should work in ash, bash, pdksh (ksh), zsh
12629     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12630 `
12631     if test -n ""; then
12632         ver=""
12633     else
12634         ver=`
12635     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12636     ##
12637     ## ARG.
12638     ## Workaround for broken Debian gcc version string:
12639     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12640     ##
12641     ## -V: Workaround for python
12642
12643     #dnl
12644
12645     ## Assume and hunt for dotted version multiplet.
12646     ## use eval trickery, because we cannot use multi-level $() instead of ``
12647     ## for compatibility reasons.
12648
12649     ## grab the first version number in  --version output.
12650     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12651                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12652                 head -n 1 |
12653                 tr ' ' '\n' |
12654                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12655                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12656                 head -n 1\`\"
12657
12658     if test -z "$_ver"; then
12659         ## If empty, try date [fontforge]
12660         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12661             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12662             | head -n 1 \
12663             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12664     fi
12665     echo "$_ver"
12666     #dnl
12667 `
12668     fi
12669     num=`
12670     echo "$ver" | awk -F. '
12671     {
12672       if ($3) {three = $3}
12673       else {three = 0}
12674     }
12675     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12676 `
12677     req=`
12678     echo "" | awk -F. '
12679     {
12680       if ($3) {three = $3}
12681       else {three = 0}
12682     }
12683     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12684 `
12685     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12686 $as_echo "$ver" >&6; }
12687     if test "$num" -lt "$req"; then
12688
12689     eval ""=\"`eval echo \"'$'\" \""$r >=  (installed: $ver)"\"`\"
12690
12691     fi
12692     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12693     eval `echo $vervar=$num`
12694 ##    AC_SUBST(`eval echo $vervar`)
12695
12696         fi
12697     fi
12698
12699
12700
12701 # perl for help2man and for mf2pt1.pl
12702
12703
12704     for ac_prog in perl
12705 do
12706   # Extract the first word of "$ac_prog", so it can be a program name with args.
12707 set dummy $ac_prog; ac_word=$2
12708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_PERL+set}" = set; then
12711   $as_echo_n "(cached) " >&6
12712 else
12713   if test -n "$PERL"; then
12714   ac_cv_prog_PERL="$PERL" # Let the user override the test.
12715 else
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721   for ac_exec_ext in '' $ac_executable_extensions; do
12722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723     ac_cv_prog_PERL="$ac_prog"
12724     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12725     break 2
12726   fi
12727 done
12728 done
12729 IFS=$as_save_IFS
12730
12731 fi
12732 fi
12733 PERL=$ac_cv_prog_PERL
12734 if test -n "$PERL"; then
12735   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12736 $as_echo "$PERL" >&6; }
12737 else
12738   { $as_echo "$as_me:$LINENO: result: no" >&5
12739 $as_echo "no" >&6; }
12740 fi
12741
12742
12743   test -n "$PERL" && break
12744 done
12745 test -n "$PERL" || PERL="no"
12746
12747
12748
12749     r="`eval echo '$'"PERL"`"
12750     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12751         true
12752     else
12753         ##STEPMAKE_WARN(cannot find . )
12754         false
12755     fi
12756
12757     if test $? -ne 0; then
12758
12759     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12760
12761         if test "REQUIRED" = "REQUIRED"; then
12762             command="echo ERROR: perl not found"
12763             # abort configure process here?
12764         else
12765             command="- echo perl not found"
12766         fi
12767         eval "PERL"='$command'
12768         false
12769     else
12770         true
12771     fi
12772
12773     if test $? -eq 0; then
12774         for ac_prog in perl
12775 do
12776   # Extract the first word of "$ac_prog", so it can be a program name with args.
12777 set dummy $ac_prog; ac_word=$2
12778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12779 $as_echo_n "checking for $ac_word... " >&6; }
12780 if test "${ac_cv_path_PERL+set}" = set; then
12781   $as_echo_n "(cached) " >&6
12782 else
12783   case $PERL in
12784   [\\/]* | ?:[\\/]*)
12785   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12786   ;;
12787   *)
12788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12790 do
12791   IFS=$as_save_IFS
12792   test -z "$as_dir" && as_dir=.
12793   for ac_exec_ext in '' $ac_executable_extensions; do
12794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12796     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12797     break 2
12798   fi
12799 done
12800 done
12801 IFS=$as_save_IFS
12802
12803   ;;
12804 esac
12805 fi
12806 PERL=$ac_cv_path_PERL
12807 if test -n "$PERL"; then
12808   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12809 $as_echo "$PERL" >&6; }
12810 else
12811   { $as_echo "$as_me:$LINENO: result: no" >&5
12812 $as_echo "no" >&6; }
12813 fi
12814
12815
12816   test -n "$PERL" && break
12817 done
12818
12819         if test -n ""; then
12820
12821     r="`eval echo '$'"PERL"`"
12822     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12823 $as_echo_n "checking $r version... " >&6; }
12824     exe=`
12825     ## which doesn't work in ash, if /usr/bin/which isn't installed
12826     ## type -p doesn't work in ash
12827     ## command -v doesn't work in zsh
12828     ## command -v "$r" 2>&1
12829     ## this test should work in ash, bash, pdksh (ksh), zsh
12830     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12831 `
12832     if test -n ""; then
12833         ver=""
12834     else
12835         ver=`
12836     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12837     ##
12838     ## ARG.
12839     ## Workaround for broken Debian gcc version string:
12840     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12841     ##
12842     ## -V: Workaround for python
12843
12844     #dnl
12845
12846     ## Assume and hunt for dotted version multiplet.
12847     ## use eval trickery, because we cannot use multi-level $() instead of ``
12848     ## for compatibility reasons.
12849
12850     ## grab the first version number in  --version output.
12851     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12852                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12853                 head -n 1 |
12854                 tr ' ' '\n' |
12855                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12856                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12857                 head -n 1\`\"
12858
12859     if test -z "$_ver"; then
12860         ## If empty, try date [fontforge]
12861         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12862             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12863             | head -n 1 \
12864             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12865     fi
12866     echo "$_ver"
12867     #dnl
12868 `
12869     fi
12870     num=`
12871     echo "$ver" | awk -F. '
12872     {
12873       if ($3) {three = $3}
12874       else {three = 0}
12875     }
12876     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12877 `
12878     req=`
12879     echo "" | awk -F. '
12880     {
12881       if ($3) {three = $3}
12882       else {three = 0}
12883     }
12884     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12885 `
12886     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12887 $as_echo "$ver" >&6; }
12888     if test "$num" -lt "$req"; then
12889
12890     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
12891
12892     fi
12893     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12894     eval `echo $vervar=$num`
12895 ##    AC_SUBST(`eval echo $vervar`)
12896
12897         fi
12898     fi
12899
12900
12901
12902 ## Optional tools for building documentation, website, extra fonts.
12903 if test "$DOCUMENTATION" = "yes"; then
12904   DOCUMENTATION_REQUIRED=REQUIRED
12905 else
12906   DOCUMENTATION_REQUIRED=OPTIONAL
12907 fi
12908
12909
12910     for ac_prog in gs
12911 do
12912   # Extract the first word of "$ac_prog", so it can be a program name with args.
12913 set dummy $ac_prog; ac_word=$2
12914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
12917   $as_echo_n "(cached) " >&6
12918 else
12919   if test -n "$GHOSTSCRIPT"; then
12920   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925   IFS=$as_save_IFS
12926   test -z "$as_dir" && as_dir=.
12927   for ac_exec_ext in '' $ac_executable_extensions; do
12928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
12930     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931     break 2
12932   fi
12933 done
12934 done
12935 IFS=$as_save_IFS
12936
12937 fi
12938 fi
12939 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
12940 if test -n "$GHOSTSCRIPT"; then
12941   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
12942 $as_echo "$GHOSTSCRIPT" >&6; }
12943 else
12944   { $as_echo "$as_me:$LINENO: result: no" >&5
12945 $as_echo "no" >&6; }
12946 fi
12947
12948
12949   test -n "$GHOSTSCRIPT" && break
12950 done
12951 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
12952
12953
12954
12955     r="`eval echo '$'"GHOSTSCRIPT"`"
12956     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
12957         true
12958     else
12959         ##STEPMAKE_WARN(cannot find . )
12960         false
12961     fi
12962
12963     if test $? -ne 0; then
12964
12965     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
12966
12967         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
12968             command="echo ERROR: gs not found"
12969             # abort configure process here?
12970         else
12971             command="- echo gs not found"
12972         fi
12973         eval "GHOSTSCRIPT"='$command'
12974         false
12975     else
12976         true
12977     fi
12978
12979     if test $? -eq 0; then
12980         for ac_prog in gs
12981 do
12982   # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
12987   $as_echo_n "(cached) " >&6
12988 else
12989   case $GHOSTSCRIPT in
12990   [\\/]* | ?:[\\/]*)
12991   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
12992   ;;
12993   *)
12994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999   for ac_exec_ext in '' $ac_executable_extensions; do
13000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13001     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13002     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13003     break 2
13004   fi
13005 done
13006 done
13007 IFS=$as_save_IFS
13008
13009   ;;
13010 esac
13011 fi
13012 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13013 if test -n "$GHOSTSCRIPT"; then
13014   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13015 $as_echo "$GHOSTSCRIPT" >&6; }
13016 else
13017   { $as_echo "$as_me:$LINENO: result: no" >&5
13018 $as_echo "no" >&6; }
13019 fi
13020
13021
13022   test -n "$GHOSTSCRIPT" && break
13023 done
13024
13025         if test -n "8.60"; then
13026
13027     r="`eval echo '$'"GHOSTSCRIPT"`"
13028     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13029 $as_echo_n "checking $r version... " >&6; }
13030     exe=`
13031     ## which doesn't work in ash, if /usr/bin/which isn't installed
13032     ## type -p doesn't work in ash
13033     ## command -v doesn't work in zsh
13034     ## command -v "$r" 2>&1
13035     ## this test should work in ash, bash, pdksh (ksh), zsh
13036     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13037 `
13038     if test -n ""; then
13039         ver=""
13040     else
13041         ver=`
13042     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13043     ##
13044     ## ARG.
13045     ## Workaround for broken Debian gcc version string:
13046     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13047     ##
13048     ## -V: Workaround for python
13049
13050     #dnl
13051
13052     ## Assume and hunt for dotted version multiplet.
13053     ## use eval trickery, because we cannot use multi-level $() instead of ``
13054     ## for compatibility reasons.
13055
13056     ## grab the first version number in  --version output.
13057     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13058                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13059                 head -n 1 |
13060                 tr ' ' '\n' |
13061                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13062                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13063                 head -n 1\`\"
13064
13065     if test -z "$_ver"; then
13066         ## If empty, try date [fontforge]
13067         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13068             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13069             | head -n 1 \
13070             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13071     fi
13072     echo "$_ver"
13073     #dnl
13074 `
13075     fi
13076     num=`
13077     echo "$ver" | awk -F. '
13078     {
13079       if ($3) {three = $3}
13080       else {three = 0}
13081     }
13082     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13083 `
13084     req=`
13085     echo "8.60" | awk -F. '
13086     {
13087       if ($3) {three = $3}
13088       else {three = 0}
13089     }
13090     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13091 `
13092     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13093 $as_echo "$ver" >&6; }
13094     if test "$num" -lt "$req"; then
13095
13096     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13097
13098     fi
13099     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13100     eval `echo $vervar=$num`
13101 ##    AC_SUBST(`eval echo $vervar`)
13102
13103         fi
13104     fi
13105
13106
13107
13108     for ac_prog in makeinfo
13109 do
13110   # Extract the first word of "$ac_prog", so it can be a program name with args.
13111 set dummy $ac_prog; ac_word=$2
13112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
13115   $as_echo_n "(cached) " >&6
13116 else
13117   if test -n "$MAKEINFO"; then
13118   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13122 do
13123   IFS=$as_save_IFS
13124   test -z "$as_dir" && as_dir=.
13125   for ac_exec_ext in '' $ac_executable_extensions; do
13126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127     ac_cv_prog_MAKEINFO="$ac_prog"
13128     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13129     break 2
13130   fi
13131 done
13132 done
13133 IFS=$as_save_IFS
13134
13135 fi
13136 fi
13137 MAKEINFO=$ac_cv_prog_MAKEINFO
13138 if test -n "$MAKEINFO"; then
13139   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
13140 $as_echo "$MAKEINFO" >&6; }
13141 else
13142   { $as_echo "$as_me:$LINENO: result: no" >&5
13143 $as_echo "no" >&6; }
13144 fi
13145
13146
13147   test -n "$MAKEINFO" && break
13148 done
13149 test -n "$MAKEINFO" || MAKEINFO="no"
13150
13151
13152
13153     r="`eval echo '$'"MAKEINFO"`"
13154     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
13155         true
13156     else
13157         ##STEPMAKE_WARN(cannot find . )
13158         false
13159     fi
13160
13161     if test $? -ne 0; then
13162
13163     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
13164
13165         if test "REQUIRED" = "REQUIRED"; then
13166             command="echo ERROR: makeinfo not found"
13167             # abort configure process here?
13168         else
13169             command="- echo makeinfo not found"
13170         fi
13171         eval "MAKEINFO"='$command'
13172         false
13173     else
13174         true
13175     fi
13176
13177     if test $? -eq 0 -a -n "4.11"; then
13178
13179     r="`eval echo '$'"MAKEINFO"`"
13180     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13181 $as_echo_n "checking $r version... " >&6; }
13182     exe=`
13183     ## which doesn't work in ash, if /usr/bin/which isn't installed
13184     ## type -p doesn't work in ash
13185     ## command -v doesn't work in zsh
13186     ## command -v "$r" 2>&1
13187     ## this test should work in ash, bash, pdksh (ksh), zsh
13188     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13189 `
13190     if test -n ""; then
13191         ver=""
13192     else
13193         ver=`
13194     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13195     ##
13196     ## ARG.
13197     ## Workaround for broken Debian gcc version string:
13198     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13199     ##
13200     ## -V: Workaround for python
13201
13202     #dnl
13203
13204     ## Assume and hunt for dotted version multiplet.
13205     ## use eval trickery, because we cannot use multi-level $() instead of ``
13206     ## for compatibility reasons.
13207
13208     ## grab the first version number in  --version output.
13209     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13210                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13211                 head -n 1 |
13212                 tr ' ' '\n' |
13213                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13214                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13215                 head -n 1\`\"
13216
13217     if test -z "$_ver"; then
13218         ## If empty, try date [fontforge]
13219         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13220             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13221             | head -n 1 \
13222             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13223     fi
13224     echo "$_ver"
13225     #dnl
13226 `
13227     fi
13228     num=`
13229     echo "$ver" | awk -F. '
13230     {
13231       if ($3) {three = $3}
13232       else {three = 0}
13233     }
13234     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13235 `
13236     req=`
13237     echo "4.11" | awk -F. '
13238     {
13239       if ($3) {three = $3}
13240       else {three = 0}
13241     }
13242     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13243 `
13244     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13245 $as_echo "$ver" >&6; }
13246     if test "$num" -lt "$req"; then
13247
13248     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
13249
13250     fi
13251     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
13252     eval `echo $vervar=$num`
13253 ##    AC_SUBST(`eval echo $vervar`)
13254
13255     fi
13256
13257
13258     for ac_prog in texi2html
13259 do
13260   # Extract the first word of "$ac_prog", so it can be a program name with args.
13261 set dummy $ac_prog; ac_word=$2
13262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
13265   $as_echo_n "(cached) " >&6
13266 else
13267   if test -n "$TEXI2HTML"; then
13268   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
13269 else
13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271 for as_dir in $PATH
13272 do
13273   IFS=$as_save_IFS
13274   test -z "$as_dir" && as_dir=.
13275   for ac_exec_ext in '' $ac_executable_extensions; do
13276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277     ac_cv_prog_TEXI2HTML="$ac_prog"
13278     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13279     break 2
13280   fi
13281 done
13282 done
13283 IFS=$as_save_IFS
13284
13285 fi
13286 fi
13287 TEXI2HTML=$ac_cv_prog_TEXI2HTML
13288 if test -n "$TEXI2HTML"; then
13289   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
13290 $as_echo "$TEXI2HTML" >&6; }
13291 else
13292   { $as_echo "$as_me:$LINENO: result: no" >&5
13293 $as_echo "no" >&6; }
13294 fi
13295
13296
13297   test -n "$TEXI2HTML" && break
13298 done
13299 test -n "$TEXI2HTML" || TEXI2HTML="no"
13300
13301
13302
13303     r="`eval echo '$'"TEXI2HTML"`"
13304     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
13305         true
13306     else
13307         ##STEPMAKE_WARN(cannot find . )
13308         false
13309     fi
13310
13311     if test $? -ne 0; then
13312
13313     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
13314
13315         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13316             command="echo ERROR: texi2html not found"
13317             # abort configure process here?
13318         else
13319             command="- echo texi2html not found"
13320         fi
13321         eval "TEXI2HTML"='$command'
13322         false
13323     else
13324         true
13325     fi
13326
13327     if test $? -eq 0 -a -n "1.82"; then
13328
13329     r="`eval echo '$'"TEXI2HTML"`"
13330     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13331 $as_echo_n "checking $r version... " >&6; }
13332     exe=`
13333     ## which doesn't work in ash, if /usr/bin/which isn't installed
13334     ## type -p doesn't work in ash
13335     ## command -v doesn't work in zsh
13336     ## command -v "$r" 2>&1
13337     ## this test should work in ash, bash, pdksh (ksh), zsh
13338     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13339 `
13340     if test -n ""; then
13341         ver=""
13342     else
13343         ver=`
13344     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13345     ##
13346     ## ARG.
13347     ## Workaround for broken Debian gcc version string:
13348     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13349     ##
13350     ## -V: Workaround for python
13351
13352     #dnl
13353
13354     ## Assume and hunt for dotted version multiplet.
13355     ## use eval trickery, because we cannot use multi-level $() instead of ``
13356     ## for compatibility reasons.
13357
13358     ## grab the first version number in  --version output.
13359     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13360                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13361                 head -n 1 |
13362                 tr ' ' '\n' |
13363                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13364                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13365                 head -n 1\`\"
13366
13367     if test -z "$_ver"; then
13368         ## If empty, try date [fontforge]
13369         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13370             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13371             | head -n 1 \
13372             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13373     fi
13374     echo "$_ver"
13375     #dnl
13376 `
13377     fi
13378     num=`
13379     echo "$ver" | awk -F. '
13380     {
13381       if ($3) {three = $3}
13382       else {three = 0}
13383     }
13384     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13385 `
13386     req=`
13387     echo "1.82" | awk -F. '
13388     {
13389       if ($3) {three = $3}
13390       else {three = 0}
13391     }
13392     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13393 `
13394     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13395 $as_echo "$ver" >&6; }
13396     if test "$num" -lt "$req"; then
13397
13398     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
13399
13400     fi
13401     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
13402     eval `echo $vervar=$num`
13403 ##    AC_SUBST(`eval echo $vervar`)
13404
13405     fi
13406
13407
13408     for ac_prog in dblatex
13409 do
13410   # Extract the first word of "$ac_prog", so it can be a program name with args.
13411 set dummy $ac_prog; ac_word=$2
13412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_DBLATEX+set}" = set; then
13415   $as_echo_n "(cached) " >&6
13416 else
13417   if test -n "$DBLATEX"; then
13418   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13422 do
13423   IFS=$as_save_IFS
13424   test -z "$as_dir" && as_dir=.
13425   for ac_exec_ext in '' $ac_executable_extensions; do
13426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427     ac_cv_prog_DBLATEX="$ac_prog"
13428     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13429     break 2
13430   fi
13431 done
13432 done
13433 IFS=$as_save_IFS
13434
13435 fi
13436 fi
13437 DBLATEX=$ac_cv_prog_DBLATEX
13438 if test -n "$DBLATEX"; then
13439   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
13440 $as_echo "$DBLATEX" >&6; }
13441 else
13442   { $as_echo "$as_me:$LINENO: result: no" >&5
13443 $as_echo "no" >&6; }
13444 fi
13445
13446
13447   test -n "$DBLATEX" && break
13448 done
13449 test -n "$DBLATEX" || DBLATEX="no"
13450
13451
13452
13453     r="`eval echo '$'"DBLATEX"`"
13454     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
13455         true
13456     else
13457         ##STEPMAKE_WARN(cannot find . )
13458         false
13459     fi
13460
13461     if test $? -ne 0; then
13462
13463     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
13464
13465         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13466             command="echo ERROR: dblatex not found"
13467             # abort configure process here?
13468         else
13469             command="- echo dblatex not found"
13470         fi
13471         eval "DBLATEX"='$command'
13472         false
13473     else
13474         true
13475     fi
13476
13477     if test $? -eq 0 -a -n "0.1.4"; then
13478
13479     r="`eval echo '$'"DBLATEX"`"
13480     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13481 $as_echo_n "checking $r version... " >&6; }
13482     exe=`
13483     ## which doesn't work in ash, if /usr/bin/which isn't installed
13484     ## type -p doesn't work in ash
13485     ## command -v doesn't work in zsh
13486     ## command -v "$r" 2>&1
13487     ## this test should work in ash, bash, pdksh (ksh), zsh
13488     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13489 `
13490     if test -n ""; then
13491         ver=""
13492     else
13493         ver=`
13494     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13495     ##
13496     ## ARG.
13497     ## Workaround for broken Debian gcc version string:
13498     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13499     ##
13500     ## -V: Workaround for python
13501
13502     #dnl
13503
13504     ## Assume and hunt for dotted version multiplet.
13505     ## use eval trickery, because we cannot use multi-level $() instead of ``
13506     ## for compatibility reasons.
13507
13508     ## grab the first version number in  --version output.
13509     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13510                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13511                 head -n 1 |
13512                 tr ' ' '\n' |
13513                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13514                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13515                 head -n 1\`\"
13516
13517     if test -z "$_ver"; then
13518         ## If empty, try date [fontforge]
13519         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13520             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13521             | head -n 1 \
13522             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13523     fi
13524     echo "$_ver"
13525     #dnl
13526 `
13527     fi
13528     num=`
13529     echo "$ver" | awk -F. '
13530     {
13531       if ($3) {three = $3}
13532       else {three = 0}
13533     }
13534     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13535 `
13536     req=`
13537     echo "0.1.4" | awk -F. '
13538     {
13539       if ($3) {three = $3}
13540       else {three = 0}
13541     }
13542     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13543 `
13544     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13545 $as_echo "$ver" >&6; }
13546     if test "$num" -lt "$req"; then
13547
13548     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13549
13550     fi
13551     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13552     eval `echo $vervar=$num`
13553 ##    AC_SUBST(`eval echo $vervar`)
13554
13555     fi
13556
13557
13558     for ac_prog in bibtex
13559 do
13560   # Extract the first word of "$ac_prog", so it can be a program name with args.
13561 set dummy $ac_prog; ac_word=$2
13562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13565   $as_echo_n "(cached) " >&6
13566 else
13567   if test -n "$BIBTEX"; then
13568   ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13572 do
13573   IFS=$as_save_IFS
13574   test -z "$as_dir" && as_dir=.
13575   for ac_exec_ext in '' $ac_executable_extensions; do
13576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577     ac_cv_prog_BIBTEX="$ac_prog"
13578     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579     break 2
13580   fi
13581 done
13582 done
13583 IFS=$as_save_IFS
13584
13585 fi
13586 fi
13587 BIBTEX=$ac_cv_prog_BIBTEX
13588 if test -n "$BIBTEX"; then
13589   { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
13590 $as_echo "$BIBTEX" >&6; }
13591 else
13592   { $as_echo "$as_me:$LINENO: result: no" >&5
13593 $as_echo "no" >&6; }
13594 fi
13595
13596
13597   test -n "$BIBTEX" && break
13598 done
13599 test -n "$BIBTEX" || BIBTEX="no"
13600
13601
13602
13603     r="`eval echo '$'"BIBTEX"`"
13604     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
13605         true
13606     else
13607         ##STEPMAKE_WARN(cannot find . )
13608         false
13609     fi
13610
13611     if test $? -ne 0; then
13612
13613     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
13614
13615         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13616             command="echo ERROR: bibtex not found"
13617             # abort configure process here?
13618         else
13619             command="- echo bibtex not found"
13620         fi
13621         eval "BIBTEX"='$command'
13622         false
13623     else
13624         true
13625     fi
13626
13627     if test $? -eq 0 -a -n ""; then
13628
13629     r="`eval echo '$'"BIBTEX"`"
13630     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13631 $as_echo_n "checking $r version... " >&6; }
13632     exe=`
13633     ## which doesn't work in ash, if /usr/bin/which isn't installed
13634     ## type -p doesn't work in ash
13635     ## command -v doesn't work in zsh
13636     ## command -v "$r" 2>&1
13637     ## this test should work in ash, bash, pdksh (ksh), zsh
13638     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13639 `
13640     if test -n ""; then
13641         ver=""
13642     else
13643         ver=`
13644     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13645     ##
13646     ## ARG.
13647     ## Workaround for broken Debian gcc version string:
13648     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13649     ##
13650     ## -V: Workaround for python
13651
13652     #dnl
13653
13654     ## Assume and hunt for dotted version multiplet.
13655     ## use eval trickery, because we cannot use multi-level $() instead of ``
13656     ## for compatibility reasons.
13657
13658     ## grab the first version number in  --version output.
13659     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13660                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13661                 head -n 1 |
13662                 tr ' ' '\n' |
13663                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13664                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13665                 head -n 1\`\"
13666
13667     if test -z "$_ver"; then
13668         ## If empty, try date [fontforge]
13669         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13670             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13671             | head -n 1 \
13672             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13673     fi
13674     echo "$_ver"
13675     #dnl
13676 `
13677     fi
13678     num=`
13679     echo "$ver" | awk -F. '
13680     {
13681       if ($3) {three = $3}
13682       else {three = 0}
13683     }
13684     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13685 `
13686     req=`
13687     echo "" | awk -F. '
13688     {
13689       if ($3) {three = $3}
13690       else {three = 0}
13691     }
13692     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13693 `
13694     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13695 $as_echo "$ver" >&6; }
13696     if test "$num" -lt "$req"; then
13697
13698     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13699
13700     fi
13701     vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
13702     eval `echo $vervar=$num`
13703 ##    AC_SUBST(`eval echo $vervar`)
13704
13705     fi
13706
13707
13708     for ac_prog in xelatex pdflatex
13709 do
13710   # Extract the first word of "$ac_prog", so it can be a program name with args.
13711 set dummy $ac_prog; ac_word=$2
13712 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
13715   $as_echo_n "(cached) " >&6
13716 else
13717   if test -n "$PDFLATEX"; then
13718   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
13719 else
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13722 do
13723   IFS=$as_save_IFS
13724   test -z "$as_dir" && as_dir=.
13725   for ac_exec_ext in '' $ac_executable_extensions; do
13726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13727     ac_cv_prog_PDFLATEX="$ac_prog"
13728     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13729     break 2
13730   fi
13731 done
13732 done
13733 IFS=$as_save_IFS
13734
13735 fi
13736 fi
13737 PDFLATEX=$ac_cv_prog_PDFLATEX
13738 if test -n "$PDFLATEX"; then
13739   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
13740 $as_echo "$PDFLATEX" >&6; }
13741 else
13742   { $as_echo "$as_me:$LINENO: result: no" >&5
13743 $as_echo "no" >&6; }
13744 fi
13745
13746
13747   test -n "$PDFLATEX" && break
13748 done
13749 test -n "$PDFLATEX" || PDFLATEX="no"
13750
13751
13752
13753     r="`eval echo '$'"PDFLATEX"`"
13754     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
13755         true
13756     else
13757         ##STEPMAKE_WARN(cannot find . )
13758         false
13759     fi
13760
13761     if test $? -ne 0; then
13762
13763     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
13764
13765         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13766             command="echo ERROR: xelatex pdflatex not found"
13767             # abort configure process here?
13768         else
13769             command="- echo xelatex pdflatex not found"
13770         fi
13771         eval "PDFLATEX"='$command'
13772         false
13773     else
13774         true
13775     fi
13776
13777     if test $? -eq 0 -a -n ""; then
13778
13779     r="`eval echo '$'"PDFLATEX"`"
13780     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13781 $as_echo_n "checking $r version... " >&6; }
13782     exe=`
13783     ## which doesn't work in ash, if /usr/bin/which isn't installed
13784     ## type -p doesn't work in ash
13785     ## command -v doesn't work in zsh
13786     ## command -v "$r" 2>&1
13787     ## this test should work in ash, bash, pdksh (ksh), zsh
13788     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13789 `
13790     if test -n ""; then
13791         ver=""
13792     else
13793         ver=`
13794     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13795     ##
13796     ## ARG.
13797     ## Workaround for broken Debian gcc version string:
13798     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13799     ##
13800     ## -V: Workaround for python
13801
13802     #dnl
13803
13804     ## Assume and hunt for dotted version multiplet.
13805     ## use eval trickery, because we cannot use multi-level $() instead of ``
13806     ## for compatibility reasons.
13807
13808     ## grab the first version number in  --version output.
13809     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13810                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13811                 head -n 1 |
13812                 tr ' ' '\n' |
13813                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13814                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13815                 head -n 1\`\"
13816
13817     if test -z "$_ver"; then
13818         ## If empty, try date [fontforge]
13819         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13820             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13821             | head -n 1 \
13822             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13823     fi
13824     echo "$_ver"
13825     #dnl
13826 `
13827     fi
13828     num=`
13829     echo "$ver" | awk -F. '
13830     {
13831       if ($3) {three = $3}
13832       else {three = 0}
13833     }
13834     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13835 `
13836     req=`
13837     echo "" | awk -F. '
13838     {
13839       if ($3) {three = $3}
13840       else {three = 0}
13841     }
13842     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13843 `
13844     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13845 $as_echo "$ver" >&6; }
13846     if test "$num" -lt "$req"; then
13847
13848     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13849
13850     fi
13851     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13852     eval `echo $vervar=$num`
13853 ##    AC_SUBST(`eval echo $vervar`)
13854
13855     fi
13856
13857 if test "$PDFLATEX" = "xelatex"; then
13858
13859     for ac_prog in xetex
13860 do
13861   # Extract the first word of "$ac_prog", so it can be a program name with args.
13862 set dummy $ac_prog; ac_word=$2
13863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13864 $as_echo_n "checking for $ac_word... " >&6; }
13865 if test "${ac_cv_prog_PDFTEX+set}" = set; then
13866   $as_echo_n "(cached) " >&6
13867 else
13868   if test -n "$PDFTEX"; then
13869   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
13870 else
13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872 for as_dir in $PATH
13873 do
13874   IFS=$as_save_IFS
13875   test -z "$as_dir" && as_dir=.
13876   for ac_exec_ext in '' $ac_executable_extensions; do
13877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13878     ac_cv_prog_PDFTEX="$ac_prog"
13879     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13880     break 2
13881   fi
13882 done
13883 done
13884 IFS=$as_save_IFS
13885
13886 fi
13887 fi
13888 PDFTEX=$ac_cv_prog_PDFTEX
13889 if test -n "$PDFTEX"; then
13890   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
13891 $as_echo "$PDFTEX" >&6; }
13892 else
13893   { $as_echo "$as_me:$LINENO: result: no" >&5
13894 $as_echo "no" >&6; }
13895 fi
13896
13897
13898   test -n "$PDFTEX" && break
13899 done
13900 test -n "$PDFTEX" || PDFTEX="no"
13901
13902
13903
13904     r="`eval echo '$'"PDFTEX"`"
13905     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
13906         true
13907     else
13908         ##STEPMAKE_WARN(cannot find . )
13909         false
13910     fi
13911
13912     if test $? -ne 0; then
13913
13914     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
13915
13916         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13917             command="echo ERROR: xetex not found"
13918             # abort configure process here?
13919         else
13920             command="- echo xetex not found"
13921         fi
13922         eval "PDFTEX"='$command'
13923         false
13924     else
13925         true
13926     fi
13927
13928     if test $? -eq 0 -a -n ""; then
13929
13930     r="`eval echo '$'"PDFTEX"`"
13931     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13932 $as_echo_n "checking $r version... " >&6; }
13933     exe=`
13934     ## which doesn't work in ash, if /usr/bin/which isn't installed
13935     ## type -p doesn't work in ash
13936     ## command -v doesn't work in zsh
13937     ## command -v "$r" 2>&1
13938     ## this test should work in ash, bash, pdksh (ksh), zsh
13939     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13940 `
13941     if test -n ""; then
13942         ver=""
13943     else
13944         ver=`
13945     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13946     ##
13947     ## ARG.
13948     ## Workaround for broken Debian gcc version string:
13949     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13950     ##
13951     ## -V: Workaround for python
13952
13953     #dnl
13954
13955     ## Assume and hunt for dotted version multiplet.
13956     ## use eval trickery, because we cannot use multi-level $() instead of ``
13957     ## for compatibility reasons.
13958
13959     ## grab the first version number in  --version output.
13960     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13961                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13962                 head -n 1 |
13963                 tr ' ' '\n' |
13964                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13965                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13966                 head -n 1\`\"
13967
13968     if test -z "$_ver"; then
13969         ## If empty, try date [fontforge]
13970         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13971             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13972             | head -n 1 \
13973             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13974     fi
13975     echo "$_ver"
13976     #dnl
13977 `
13978     fi
13979     num=`
13980     echo "$ver" | awk -F. '
13981     {
13982       if ($3) {three = $3}
13983       else {three = 0}
13984     }
13985     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13986 `
13987     req=`
13988     echo "" | awk -F. '
13989     {
13990       if ($3) {three = $3}
13991       else {three = 0}
13992     }
13993     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13994 `
13995     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13996 $as_echo "$ver" >&6; }
13997     if test "$num" -lt "$req"; then
13998
13999     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14000
14001     fi
14002     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14003     eval `echo $vervar=$num`
14004 ##    AC_SUBST(`eval echo $vervar`)
14005
14006     fi
14007
14008     if test "$PDFTEX" = "xetex"; then
14009         # For avoiding PDF destination name replacement.
14010         PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
14011         PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
14012     fi
14013 else
14014
14015     for ac_prog in pdfetex pdftex etex
14016 do
14017   # Extract the first word of "$ac_prog", so it can be a program name with args.
14018 set dummy $ac_prog; ac_word=$2
14019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14022   $as_echo_n "(cached) " >&6
14023 else
14024   if test -n "$PDFTEX"; then
14025   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14026 else
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14029 do
14030   IFS=$as_save_IFS
14031   test -z "$as_dir" && as_dir=.
14032   for ac_exec_ext in '' $ac_executable_extensions; do
14033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14034     ac_cv_prog_PDFTEX="$ac_prog"
14035     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14036     break 2
14037   fi
14038 done
14039 done
14040 IFS=$as_save_IFS
14041
14042 fi
14043 fi
14044 PDFTEX=$ac_cv_prog_PDFTEX
14045 if test -n "$PDFTEX"; then
14046   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14047 $as_echo "$PDFTEX" >&6; }
14048 else
14049   { $as_echo "$as_me:$LINENO: result: no" >&5
14050 $as_echo "no" >&6; }
14051 fi
14052
14053
14054   test -n "$PDFTEX" && break
14055 done
14056 test -n "$PDFTEX" || PDFTEX="no"
14057
14058
14059
14060     r="`eval echo '$'"PDFTEX"`"
14061     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14062         true
14063     else
14064         ##STEPMAKE_WARN(cannot find . )
14065         false
14066     fi
14067
14068     if test $? -ne 0; then
14069
14070     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
14071
14072         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14073             command="echo ERROR: pdfetex pdftex etex not found"
14074             # abort configure process here?
14075         else
14076             command="- echo pdfetex pdftex etex not found"
14077         fi
14078         eval "PDFTEX"='$command'
14079         false
14080     else
14081         true
14082     fi
14083
14084     if test $? -eq 0 -a -n ""; then
14085
14086     r="`eval echo '$'"PDFTEX"`"
14087     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14088 $as_echo_n "checking $r version... " >&6; }
14089     exe=`
14090     ## which doesn't work in ash, if /usr/bin/which isn't installed
14091     ## type -p doesn't work in ash
14092     ## command -v doesn't work in zsh
14093     ## command -v "$r" 2>&1
14094     ## this test should work in ash, bash, pdksh (ksh), zsh
14095     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14096 `
14097     if test -n ""; then
14098         ver=""
14099     else
14100         ver=`
14101     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14102     ##
14103     ## ARG.
14104     ## Workaround for broken Debian gcc version string:
14105     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14106     ##
14107     ## -V: Workaround for python
14108
14109     #dnl
14110
14111     ## Assume and hunt for dotted version multiplet.
14112     ## use eval trickery, because we cannot use multi-level $() instead of ``
14113     ## for compatibility reasons.
14114
14115     ## grab the first version number in  --version output.
14116     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14117                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14118                 head -n 1 |
14119                 tr ' ' '\n' |
14120                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14121                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14122                 head -n 1\`\"
14123
14124     if test -z "$_ver"; then
14125         ## If empty, try date [fontforge]
14126         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14127             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14128             | head -n 1 \
14129             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14130     fi
14131     echo "$_ver"
14132     #dnl
14133 `
14134     fi
14135     num=`
14136     echo "$ver" | awk -F. '
14137     {
14138       if ($3) {three = $3}
14139       else {three = 0}
14140     }
14141     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14142 `
14143     req=`
14144     echo "" | awk -F. '
14145     {
14146       if ($3) {three = $3}
14147       else {three = 0}
14148     }
14149     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14150 `
14151     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14152 $as_echo "$ver" >&6; }
14153     if test "$num" -lt "$req"; then
14154
14155     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14156
14157     fi
14158     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14159     eval `echo $vervar=$num`
14160 ##    AC_SUBST(`eval echo $vervar`)
14161
14162     fi
14163
14164 fi
14165
14166     for ac_prog in texi2pdf
14167 do
14168   # Extract the first word of "$ac_prog", so it can be a program name with args.
14169 set dummy $ac_prog; ac_word=$2
14170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
14173   $as_echo_n "(cached) " >&6
14174 else
14175   if test -n "$TEXI2PDF"; then
14176   ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
14177 else
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14180 do
14181   IFS=$as_save_IFS
14182   test -z "$as_dir" && as_dir=.
14183   for ac_exec_ext in '' $ac_executable_extensions; do
14184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185     ac_cv_prog_TEXI2PDF="$ac_prog"
14186     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14187     break 2
14188   fi
14189 done
14190 done
14191 IFS=$as_save_IFS
14192
14193 fi
14194 fi
14195 TEXI2PDF=$ac_cv_prog_TEXI2PDF
14196 if test -n "$TEXI2PDF"; then
14197   { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
14198 $as_echo "$TEXI2PDF" >&6; }
14199 else
14200   { $as_echo "$as_me:$LINENO: result: no" >&5
14201 $as_echo "no" >&6; }
14202 fi
14203
14204
14205   test -n "$TEXI2PDF" && break
14206 done
14207 test -n "$TEXI2PDF" || TEXI2PDF="no"
14208
14209
14210
14211     r="`eval echo '$'"TEXI2PDF"`"
14212     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
14213         true
14214     else
14215         ##STEPMAKE_WARN(cannot find . )
14216         false
14217     fi
14218
14219     if test $? -ne 0; then
14220
14221     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
14222
14223         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14224             command="echo ERROR: texi2pdf not found"
14225             # abort configure process here?
14226         else
14227             command="- echo texi2pdf not found"
14228         fi
14229         eval "TEXI2PDF"='$command'
14230         false
14231     else
14232         true
14233     fi
14234
14235     if test $? -eq 0 -a -n ""; then
14236
14237     r="`eval echo '$'"TEXI2PDF"`"
14238     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14239 $as_echo_n "checking $r version... " >&6; }
14240     exe=`
14241     ## which doesn't work in ash, if /usr/bin/which isn't installed
14242     ## type -p doesn't work in ash
14243     ## command -v doesn't work in zsh
14244     ## command -v "$r" 2>&1
14245     ## this test should work in ash, bash, pdksh (ksh), zsh
14246     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14247 `
14248     if test -n ""; then
14249         ver=""
14250     else
14251         ver=`
14252     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14253     ##
14254     ## ARG.
14255     ## Workaround for broken Debian gcc version string:
14256     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14257     ##
14258     ## -V: Workaround for python
14259
14260     #dnl
14261
14262     ## Assume and hunt for dotted version multiplet.
14263     ## use eval trickery, because we cannot use multi-level $() instead of ``
14264     ## for compatibility reasons.
14265
14266     ## grab the first version number in  --version output.
14267     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14268                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14269                 head -n 1 |
14270                 tr ' ' '\n' |
14271                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14272                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14273                 head -n 1\`\"
14274
14275     if test -z "$_ver"; then
14276         ## If empty, try date [fontforge]
14277         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14278             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14279             | head -n 1 \
14280             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14281     fi
14282     echo "$_ver"
14283     #dnl
14284 `
14285     fi
14286     num=`
14287     echo "$ver" | awk -F. '
14288     {
14289       if ($3) {three = $3}
14290       else {three = 0}
14291     }
14292     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14293 `
14294     req=`
14295     echo "" | awk -F. '
14296     {
14297       if ($3) {three = $3}
14298       else {three = 0}
14299     }
14300     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14301 `
14302     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14303 $as_echo "$ver" >&6; }
14304     if test "$num" -lt "$req"; then
14305
14306     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14307
14308     fi
14309     vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
14310     eval `echo $vervar=$num`
14311 ##    AC_SUBST(`eval echo $vervar`)
14312
14313     fi
14314
14315
14316     for ac_prog in texindex
14317 do
14318   # Extract the first word of "$ac_prog", so it can be a program name with args.
14319 set dummy $ac_prog; ac_word=$2
14320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
14323   $as_echo_n "(cached) " >&6
14324 else
14325   if test -n "$TEXINDEX"; then
14326   ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
14327 else
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14330 do
14331   IFS=$as_save_IFS
14332   test -z "$as_dir" && as_dir=.
14333   for ac_exec_ext in '' $ac_executable_extensions; do
14334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14335     ac_cv_prog_TEXINDEX="$ac_prog"
14336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14337     break 2
14338   fi
14339 done
14340 done
14341 IFS=$as_save_IFS
14342
14343 fi
14344 fi
14345 TEXINDEX=$ac_cv_prog_TEXINDEX
14346 if test -n "$TEXINDEX"; then
14347   { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
14348 $as_echo "$TEXINDEX" >&6; }
14349 else
14350   { $as_echo "$as_me:$LINENO: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353
14354
14355   test -n "$TEXINDEX" && break
14356 done
14357 test -n "$TEXINDEX" || TEXINDEX="no"
14358
14359
14360
14361     r="`eval echo '$'"TEXINDEX"`"
14362     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
14363         true
14364     else
14365         ##STEPMAKE_WARN(cannot find . )
14366         false
14367     fi
14368
14369     if test $? -ne 0; then
14370
14371     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
14372
14373         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14374             command="echo ERROR: texindex not found"
14375             # abort configure process here?
14376         else
14377             command="- echo texindex not found"
14378         fi
14379         eval "TEXINDEX"='$command'
14380         false
14381     else
14382         true
14383     fi
14384
14385     if test $? -eq 0 -a -n ""; then
14386
14387     r="`eval echo '$'"TEXINDEX"`"
14388     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14389 $as_echo_n "checking $r version... " >&6; }
14390     exe=`
14391     ## which doesn't work in ash, if /usr/bin/which isn't installed
14392     ## type -p doesn't work in ash
14393     ## command -v doesn't work in zsh
14394     ## command -v "$r" 2>&1
14395     ## this test should work in ash, bash, pdksh (ksh), zsh
14396     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14397 `
14398     if test -n ""; then
14399         ver=""
14400     else
14401         ver=`
14402     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14403     ##
14404     ## ARG.
14405     ## Workaround for broken Debian gcc version string:
14406     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14407     ##
14408     ## -V: Workaround for python
14409
14410     #dnl
14411
14412     ## Assume and hunt for dotted version multiplet.
14413     ## use eval trickery, because we cannot use multi-level $() instead of ``
14414     ## for compatibility reasons.
14415
14416     ## grab the first version number in  --version output.
14417     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14418                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14419                 head -n 1 |
14420                 tr ' ' '\n' |
14421                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14422                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14423                 head -n 1\`\"
14424
14425     if test -z "$_ver"; then
14426         ## If empty, try date [fontforge]
14427         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14428             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14429             | head -n 1 \
14430             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14431     fi
14432     echo "$_ver"
14433     #dnl
14434 `
14435     fi
14436     num=`
14437     echo "$ver" | awk -F. '
14438     {
14439       if ($3) {three = $3}
14440       else {three = 0}
14441     }
14442     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14443 `
14444     req=`
14445     echo "" | awk -F. '
14446     {
14447       if ($3) {three = $3}
14448       else {three = 0}
14449     }
14450     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14451 `
14452     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14453 $as_echo "$ver" >&6; }
14454     if test "$num" -lt "$req"; then
14455
14456     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14457
14458     fi
14459     vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
14460     eval `echo $vervar=$num`
14461 ##    AC_SUBST(`eval echo $vervar`)
14462
14463     fi
14464
14465 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
14466 $as_echo_n "checking for epsf.tex... " >&6; }
14467 TEX_EPSF=`kpsewhich tex epsf`
14468 if test "$TEX_EPSF" = ""; then
14469     { $as_echo "$as_me:$LINENO: result: not found" >&5
14470 $as_echo "not found" >&6; }
14471
14472     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
14473
14474 else
14475     { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
14476 $as_echo "$TEX_EPSF" >&6; }
14477 fi
14478 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
14479 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
14480 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
14481 if test "$TEX_FIKPARM" = ""; then
14482     { $as_echo "$as_me:$LINENO: result: not found" >&5
14483 $as_echo "not found" >&6; }
14484
14485     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
14486
14487 else
14488     { $as_echo "$as_me:$LINENO: result: yes" >&5
14489 $as_echo "yes" >&6; }
14490 fi
14491
14492     for ac_prog in pngtopnm
14493 do
14494   # Extract the first word of "$ac_prog", so it can be a program name with args.
14495 set dummy $ac_prog; ac_word=$2
14496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14497 $as_echo_n "checking for $ac_word... " >&6; }
14498 if test "${ac_cv_prog_NETPBM+set}" = set; then
14499   $as_echo_n "(cached) " >&6
14500 else
14501   if test -n "$NETPBM"; then
14502   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
14503 else
14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505 for as_dir in $PATH
14506 do
14507   IFS=$as_save_IFS
14508   test -z "$as_dir" && as_dir=.
14509   for ac_exec_ext in '' $ac_executable_extensions; do
14510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14511     ac_cv_prog_NETPBM="$ac_prog"
14512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14513     break 2
14514   fi
14515 done
14516 done
14517 IFS=$as_save_IFS
14518
14519 fi
14520 fi
14521 NETPBM=$ac_cv_prog_NETPBM
14522 if test -n "$NETPBM"; then
14523   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
14524 $as_echo "$NETPBM" >&6; }
14525 else
14526   { $as_echo "$as_me:$LINENO: result: no" >&5
14527 $as_echo "no" >&6; }
14528 fi
14529
14530
14531   test -n "$NETPBM" && break
14532 done
14533 test -n "$NETPBM" || NETPBM="no"
14534
14535
14536
14537     r="`eval echo '$'"NETPBM"`"
14538     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
14539         true
14540     else
14541         ##STEPMAKE_WARN(cannot find . )
14542         false
14543     fi
14544
14545     if test $? -ne 0; then
14546
14547     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
14548
14549         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14550             command="echo ERROR: pngtopnm not found"
14551             # abort configure process here?
14552         else
14553             command="- echo pngtopnm not found"
14554         fi
14555         eval "NETPBM"='$command'
14556         false
14557     else
14558         true
14559     fi
14560
14561     if test $? -eq 0 -a -n ""; then
14562
14563     r="`eval echo '$'"NETPBM"`"
14564     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14565 $as_echo_n "checking $r version... " >&6; }
14566     exe=`
14567     ## which doesn't work in ash, if /usr/bin/which isn't installed
14568     ## type -p doesn't work in ash
14569     ## command -v doesn't work in zsh
14570     ## command -v "$r" 2>&1
14571     ## this test should work in ash, bash, pdksh (ksh), zsh
14572     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14573 `
14574     if test -n ""; then
14575         ver=""
14576     else
14577         ver=`
14578     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14579     ##
14580     ## ARG.
14581     ## Workaround for broken Debian gcc version string:
14582     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14583     ##
14584     ## -V: Workaround for python
14585
14586     #dnl
14587
14588     ## Assume and hunt for dotted version multiplet.
14589     ## use eval trickery, because we cannot use multi-level $() instead of ``
14590     ## for compatibility reasons.
14591
14592     ## grab the first version number in  --version output.
14593     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14594                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14595                 head -n 1 |
14596                 tr ' ' '\n' |
14597                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14598                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14599                 head -n 1\`\"
14600
14601     if test -z "$_ver"; then
14602         ## If empty, try date [fontforge]
14603         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14604             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14605             | head -n 1 \
14606             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14607     fi
14608     echo "$_ver"
14609     #dnl
14610 `
14611     fi
14612     num=`
14613     echo "$ver" | awk -F. '
14614     {
14615       if ($3) {three = $3}
14616       else {three = 0}
14617     }
14618     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14619 `
14620     req=`
14621     echo "" | awk -F. '
14622     {
14623       if ($3) {three = $3}
14624       else {three = 0}
14625     }
14626     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14627 `
14628     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14629 $as_echo "$ver" >&6; }
14630     if test "$num" -lt "$req"; then
14631
14632     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14633
14634     fi
14635     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
14636     eval `echo $vervar=$num`
14637 ##    AC_SUBST(`eval echo $vervar`)
14638
14639     fi
14640
14641
14642     for ac_prog in convert
14643 do
14644   # Extract the first word of "$ac_prog", so it can be a program name with args.
14645 set dummy $ac_prog; ac_word=$2
14646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14647 $as_echo_n "checking for $ac_word... " >&6; }
14648 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
14649   $as_echo_n "(cached) " >&6
14650 else
14651   if test -n "$IMAGEMAGICK"; then
14652   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
14653 else
14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14656 do
14657   IFS=$as_save_IFS
14658   test -z "$as_dir" && as_dir=.
14659   for ac_exec_ext in '' $ac_executable_extensions; do
14660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14661     ac_cv_prog_IMAGEMAGICK="$ac_prog"
14662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14663     break 2
14664   fi
14665 done
14666 done
14667 IFS=$as_save_IFS
14668
14669 fi
14670 fi
14671 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
14672 if test -n "$IMAGEMAGICK"; then
14673   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
14674 $as_echo "$IMAGEMAGICK" >&6; }
14675 else
14676   { $as_echo "$as_me:$LINENO: result: no" >&5
14677 $as_echo "no" >&6; }
14678 fi
14679
14680
14681   test -n "$IMAGEMAGICK" && break
14682 done
14683 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
14684
14685
14686
14687     r="`eval echo '$'"IMAGEMAGICK"`"
14688     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
14689         true
14690     else
14691         ##STEPMAKE_WARN(cannot find . )
14692         false
14693     fi
14694
14695     if test $? -ne 0; then
14696
14697     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
14698
14699         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14700             command="echo ERROR: convert not found"
14701             # abort configure process here?
14702         else
14703             command="- echo convert not found"
14704         fi
14705         eval "IMAGEMAGICK"='$command'
14706         false
14707     else
14708         true
14709     fi
14710
14711     if test $? -eq 0 -a -n ""; then
14712
14713     r="`eval echo '$'"IMAGEMAGICK"`"
14714     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14715 $as_echo_n "checking $r version... " >&6; }
14716     exe=`
14717     ## which doesn't work in ash, if /usr/bin/which isn't installed
14718     ## type -p doesn't work in ash
14719     ## command -v doesn't work in zsh
14720     ## command -v "$r" 2>&1
14721     ## this test should work in ash, bash, pdksh (ksh), zsh
14722     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14723 `
14724     if test -n ""; then
14725         ver=""
14726     else
14727         ver=`
14728     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14729     ##
14730     ## ARG.
14731     ## Workaround for broken Debian gcc version string:
14732     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14733     ##
14734     ## -V: Workaround for python
14735
14736     #dnl
14737
14738     ## Assume and hunt for dotted version multiplet.
14739     ## use eval trickery, because we cannot use multi-level $() instead of ``
14740     ## for compatibility reasons.
14741
14742     ## grab the first version number in  --version output.
14743     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14744                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14745                 head -n 1 |
14746                 tr ' ' '\n' |
14747                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14748                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14749                 head -n 1\`\"
14750
14751     if test -z "$_ver"; then
14752         ## If empty, try date [fontforge]
14753         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14754             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14755             | head -n 1 \
14756             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14757     fi
14758     echo "$_ver"
14759     #dnl
14760 `
14761     fi
14762     num=`
14763     echo "$ver" | awk -F. '
14764     {
14765       if ($3) {three = $3}
14766       else {three = 0}
14767     }
14768     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14769 `
14770     req=`
14771     echo "" | awk -F. '
14772     {
14773       if ($3) {three = $3}
14774       else {three = 0}
14775     }
14776     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14777 `
14778     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14779 $as_echo "$ver" >&6; }
14780     if test "$num" -lt "$req"; then
14781
14782     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14783
14784     fi
14785     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
14786     eval `echo $vervar=$num`
14787 ##    AC_SUBST(`eval echo $vervar`)
14788
14789     fi
14790
14791 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
14792
14793     for ac_prog in zip
14794 do
14795   # Extract the first word of "$ac_prog", so it can be a program name with args.
14796 set dummy $ac_prog; ac_word=$2
14797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14798 $as_echo_n "checking for $ac_word... " >&6; }
14799 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
14800   $as_echo_n "(cached) " >&6
14801 else
14802   if test -n "$ZIPDOC"; then
14803   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
14804 else
14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14807 do
14808   IFS=$as_save_IFS
14809   test -z "$as_dir" && as_dir=.
14810   for ac_exec_ext in '' $ac_executable_extensions; do
14811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14812     ac_cv_prog_ZIPDOC="$ac_prog"
14813     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14814     break 2
14815   fi
14816 done
14817 done
14818 IFS=$as_save_IFS
14819
14820 fi
14821 fi
14822 ZIPDOC=$ac_cv_prog_ZIPDOC
14823 if test -n "$ZIPDOC"; then
14824   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
14825 $as_echo "$ZIPDOC" >&6; }
14826 else
14827   { $as_echo "$as_me:$LINENO: result: no" >&5
14828 $as_echo "no" >&6; }
14829 fi
14830
14831
14832   test -n "$ZIPDOC" && break
14833 done
14834 test -n "$ZIPDOC" || ZIPDOC="no"
14835
14836
14837
14838     r="`eval echo '$'"ZIPDOC"`"
14839     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
14840         true
14841     else
14842         ##STEPMAKE_WARN(cannot find . )
14843         false
14844     fi
14845
14846     if test $? -ne 0; then
14847
14848     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
14849
14850         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14851             command="echo ERROR: zip not found"
14852             # abort configure process here?
14853         else
14854             command="- echo zip not found"
14855         fi
14856         eval "ZIPDOC"='$command'
14857         false
14858     else
14859         true
14860     fi
14861
14862     if test $? -eq 0 -a -n ""; then
14863
14864     r="`eval echo '$'"ZIPDOC"`"
14865     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14866 $as_echo_n "checking $r version... " >&6; }
14867     exe=`
14868     ## which doesn't work in ash, if /usr/bin/which isn't installed
14869     ## type -p doesn't work in ash
14870     ## command -v doesn't work in zsh
14871     ## command -v "$r" 2>&1
14872     ## this test should work in ash, bash, pdksh (ksh), zsh
14873     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14874 `
14875     if test -n ""; then
14876         ver=""
14877     else
14878         ver=`
14879     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14880     ##
14881     ## ARG.
14882     ## Workaround for broken Debian gcc version string:
14883     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14884     ##
14885     ## -V: Workaround for python
14886
14887     #dnl
14888
14889     ## Assume and hunt for dotted version multiplet.
14890     ## use eval trickery, because we cannot use multi-level $() instead of ``
14891     ## for compatibility reasons.
14892
14893     ## grab the first version number in  --version output.
14894     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14895                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14896                 head -n 1 |
14897                 tr ' ' '\n' |
14898                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14899                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14900                 head -n 1\`\"
14901
14902     if test -z "$_ver"; then
14903         ## If empty, try date [fontforge]
14904         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14905             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14906             | head -n 1 \
14907             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14908     fi
14909     echo "$_ver"
14910     #dnl
14911 `
14912     fi
14913     num=`
14914     echo "$ver" | awk -F. '
14915     {
14916       if ($3) {three = $3}
14917       else {three = 0}
14918     }
14919     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14920 `
14921     req=`
14922     echo "" | awk -F. '
14923     {
14924       if ($3) {three = $3}
14925       else {three = 0}
14926     }
14927     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14928 `
14929     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14930 $as_echo "$ver" >&6; }
14931     if test "$num" -lt "$req"; then
14932
14933     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14934
14935     fi
14936     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
14937     eval `echo $vervar=$num`
14938 ##    AC_SUBST(`eval echo $vervar`)
14939
14940     fi
14941
14942
14943     for ac_prog in rsync
14944 do
14945   # Extract the first word of "$ac_prog", so it can be a program name with args.
14946 set dummy $ac_prog; ac_word=$2
14947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14948 $as_echo_n "checking for $ac_word... " >&6; }
14949 if test "${ac_cv_prog_RSYNC+set}" = set; then
14950   $as_echo_n "(cached) " >&6
14951 else
14952   if test -n "$RSYNC"; then
14953   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
14954 else
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14957 do
14958   IFS=$as_save_IFS
14959   test -z "$as_dir" && as_dir=.
14960   for ac_exec_ext in '' $ac_executable_extensions; do
14961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14962     ac_cv_prog_RSYNC="$ac_prog"
14963     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14964     break 2
14965   fi
14966 done
14967 done
14968 IFS=$as_save_IFS
14969
14970 fi
14971 fi
14972 RSYNC=$ac_cv_prog_RSYNC
14973 if test -n "$RSYNC"; then
14974   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
14975 $as_echo "$RSYNC" >&6; }
14976 else
14977   { $as_echo "$as_me:$LINENO: result: no" >&5
14978 $as_echo "no" >&6; }
14979 fi
14980
14981
14982   test -n "$RSYNC" && break
14983 done
14984 test -n "$RSYNC" || RSYNC="no"
14985
14986
14987
14988     r="`eval echo '$'"RSYNC"`"
14989     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
14990         true
14991     else
14992         ##STEPMAKE_WARN(cannot find . )
14993         false
14994     fi
14995
14996     if test $? -ne 0; then
14997
14998     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
14999
15000         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15001             command="echo ERROR: rsync not found"
15002             # abort configure process here?
15003         else
15004             command="- echo rsync not found"
15005         fi
15006         eval "RSYNC"='$command'
15007         false
15008     else
15009         true
15010     fi
15011
15012     if test $? -eq 0 -a -n ""; then
15013
15014     r="`eval echo '$'"RSYNC"`"
15015     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15016 $as_echo_n "checking $r version... " >&6; }
15017     exe=`
15018     ## which doesn't work in ash, if /usr/bin/which isn't installed
15019     ## type -p doesn't work in ash
15020     ## command -v doesn't work in zsh
15021     ## command -v "$r" 2>&1
15022     ## this test should work in ash, bash, pdksh (ksh), zsh
15023     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15024 `
15025     if test -n ""; then
15026         ver=""
15027     else
15028         ver=`
15029     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15030     ##
15031     ## ARG.
15032     ## Workaround for broken Debian gcc version string:
15033     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15034     ##
15035     ## -V: Workaround for python
15036
15037     #dnl
15038
15039     ## Assume and hunt for dotted version multiplet.
15040     ## use eval trickery, because we cannot use multi-level $() instead of ``
15041     ## for compatibility reasons.
15042
15043     ## grab the first version number in  --version output.
15044     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15045                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15046                 head -n 1 |
15047                 tr ' ' '\n' |
15048                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15049                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15050                 head -n 1\`\"
15051
15052     if test -z "$_ver"; then
15053         ## If empty, try date [fontforge]
15054         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15055             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15056             | head -n 1 \
15057             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15058     fi
15059     echo "$_ver"
15060     #dnl
15061 `
15062     fi
15063     num=`
15064     echo "$ver" | awk -F. '
15065     {
15066       if ($3) {three = $3}
15067       else {three = 0}
15068     }
15069     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15070 `
15071     req=`
15072     echo "" | awk -F. '
15073     {
15074       if ($3) {three = $3}
15075       else {three = 0}
15076     }
15077     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15078 `
15079     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15080 $as_echo "$ver" >&6; }
15081     if test "$num" -lt "$req"; then
15082
15083     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15084
15085     fi
15086     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
15087     eval `echo $vervar=$num`
15088 ##    AC_SUBST(`eval echo $vervar`)
15089
15090     fi
15091
15092
15093 cat >>confdefs.h <<_ACEOF
15094 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
15095 _ACEOF
15096
15097
15098 # must also have local.make if configure fails.
15099 touch local.make
15100
15101 if test "$reloc_b$rpath_b" = "yesno"; then
15102
15103     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
15104 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
15105     warn_b=yes
15106
15107 fi
15108
15109 # Gather requirements and generate output.
15110
15111
15112     # undo expanding of explicit --infodir=/usr/share
15113     # to ease install-time override with prefix=...
15114     strip=`echo $includedir | eval sed s@^$prefix@@`
15115     if test "$includedir" = "`eval echo $prefix$strip`"; then
15116             includedir='${prefix}'$strip''
15117     fi
15118     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
15119     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
15120             libdir='${exec_prefix}'$strip''
15121     fi
15122     strip=`echo $infodir | eval sed s@^$datarootdir@@`
15123     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
15124             infodir='${datarootdir}'$strip''
15125     fi
15126     strip=`echo $mandir | eval sed s@^$datarootdir@@`
15127     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
15128             mandir='${datarootdir}'$strip''
15129     fi
15130
15131
15132
15133
15134
15135     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
15136
15137     cat >confcache <<\_ACEOF
15138 # This file is a shell script that caches the results of configure
15139 # tests run on this system so they can be shared between configure
15140 # scripts and configure runs, see configure's option --config-cache.
15141 # It is not useful on other systems.  If it contains results you don't
15142 # want to keep, you may remove or edit it.
15143 #
15144 # config.status only pays attention to the cache file if you give it
15145 # the --recheck option to rerun configure.
15146 #
15147 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15148 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15149 # following values.
15150
15151 _ACEOF
15152
15153 # The following way of writing the cache mishandles newlines in values,
15154 # but we know of no workaround that is simple, portable, and efficient.
15155 # So, we kill variables containing newlines.
15156 # Ultrix sh set writes to stderr and can't be redirected directly,
15157 # and sets the high bit in the cache file unless we assign to the vars.
15158 (
15159   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15160     eval ac_val=\$$ac_var
15161     case $ac_val in #(
15162     *${as_nl}*)
15163       case $ac_var in #(
15164       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15165 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15166       esac
15167       case $ac_var in #(
15168       _ | IFS | as_nl) ;; #(
15169       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15170       *) $as_unset $ac_var ;;
15171       esac ;;
15172     esac
15173   done
15174
15175   (set) 2>&1 |
15176     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15177     *${as_nl}ac_space=\ *)
15178       # `set' does not quote correctly, so add quotes (double-quote
15179       # substitution turns \\\\ into \\, and sed turns \\ into \).
15180       sed -n \
15181         "s/'/'\\\\''/g;
15182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15183       ;; #(
15184     *)
15185       # `set' quotes correctly as required by POSIX, so do not add quotes.
15186       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15187       ;;
15188     esac |
15189     sort
15190 ) |
15191   sed '
15192      /^ac_cv_env_/b end
15193      t clear
15194      :clear
15195      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15196      t end
15197      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15198      :end' >>confcache
15199 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15200   if test -w "$cache_file"; then
15201     test "x$cache_file" != "x/dev/null" &&
15202       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15203 $as_echo "$as_me: updating cache $cache_file" >&6;}
15204     cat confcache >$cache_file
15205   else
15206     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15207 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15208   fi
15209 fi
15210 rm -f confcache
15211
15212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15213 # Let make expand exec_prefix.
15214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15215
15216 DEFS=-DHAVE_CONFIG_H
15217
15218 ac_libobjs=
15219 ac_ltlibobjs=
15220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15221   # 1. Remove the extension, and $U if already installed.
15222   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15223   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15224   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15225   #    will be set to the directory where LIBOBJS objects are built.
15226   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15227   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15228 done
15229 LIBOBJS=$ac_libobjs
15230
15231 LTLIBOBJS=$ac_ltlibobjs
15232
15233
15234
15235 : ${CONFIG_STATUS=./config.status}
15236 ac_write_fail=0
15237 ac_clean_files_save=$ac_clean_files
15238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15239 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15240 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15241 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 #! $SHELL
15243 # Generated by $as_me.
15244 # Run this file to recreate the current configuration.
15245 # Compiler output produced by configure, useful for debugging
15246 # configure, is in config.log if it exists.
15247
15248 debug=false
15249 ac_cs_recheck=false
15250 ac_cs_silent=false
15251 SHELL=\${CONFIG_SHELL-$SHELL}
15252 _ACEOF
15253
15254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15255 ## --------------------- ##
15256 ## M4sh Initialization.  ##
15257 ## --------------------- ##
15258
15259 # Be more Bourne compatible
15260 DUALCASE=1; export DUALCASE # for MKS sh
15261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15262   emulate sh
15263   NULLCMD=:
15264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15265   # is contrary to our usage.  Disable this feature.
15266   alias -g '${1+"$@"}'='"$@"'
15267   setopt NO_GLOB_SUBST
15268 else
15269   case `(set -o) 2>/dev/null` in
15270   *posix*) set -o posix ;;
15271 esac
15272
15273 fi
15274
15275
15276
15277
15278 # PATH needs CR
15279 # Avoid depending upon Character Ranges.
15280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15283 as_cr_digits='0123456789'
15284 as_cr_alnum=$as_cr_Letters$as_cr_digits
15285
15286 as_nl='
15287 '
15288 export as_nl
15289 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15290 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15292 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15293 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15294   as_echo='printf %s\n'
15295   as_echo_n='printf %s'
15296 else
15297   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15298     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15299     as_echo_n='/usr/ucb/echo -n'
15300   else
15301     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15302     as_echo_n_body='eval
15303       arg=$1;
15304       case $arg in
15305       *"$as_nl"*)
15306         expr "X$arg" : "X\\(.*\\)$as_nl";
15307         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15308       esac;
15309       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15310     '
15311     export as_echo_n_body
15312     as_echo_n='sh -c $as_echo_n_body as_echo'
15313   fi
15314   export as_echo_body
15315   as_echo='sh -c $as_echo_body as_echo'
15316 fi
15317
15318 # The user is always right.
15319 if test "${PATH_SEPARATOR+set}" != set; then
15320   PATH_SEPARATOR=:
15321   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15322     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15323       PATH_SEPARATOR=';'
15324   }
15325 fi
15326
15327 # Support unset when possible.
15328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15329   as_unset=unset
15330 else
15331   as_unset=false
15332 fi
15333
15334
15335 # IFS
15336 # We need space, tab and new line, in precisely that order.  Quoting is
15337 # there to prevent editors from complaining about space-tab.
15338 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15339 # splitting by setting IFS to empty value.)
15340 IFS=" ""        $as_nl"
15341
15342 # Find who we are.  Look in the path if we contain no directory separator.
15343 case $0 in
15344   *[\\/]* ) as_myself=$0 ;;
15345   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15347 do
15348   IFS=$as_save_IFS
15349   test -z "$as_dir" && as_dir=.
15350   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15351 done
15352 IFS=$as_save_IFS
15353
15354      ;;
15355 esac
15356 # We did not find ourselves, most probably we were run as `sh COMMAND'
15357 # in which case we are not to be found in the path.
15358 if test "x$as_myself" = x; then
15359   as_myself=$0
15360 fi
15361 if test ! -f "$as_myself"; then
15362   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15363   { (exit 1); exit 1; }
15364 fi
15365
15366 # Work around bugs in pre-3.0 UWIN ksh.
15367 for as_var in ENV MAIL MAILPATH
15368 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15369 done
15370 PS1='$ '
15371 PS2='> '
15372 PS4='+ '
15373
15374 # NLS nuisances.
15375 LC_ALL=C
15376 export LC_ALL
15377 LANGUAGE=C
15378 export LANGUAGE
15379
15380 # Required to use basename.
15381 if expr a : '\(a\)' >/dev/null 2>&1 &&
15382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15383   as_expr=expr
15384 else
15385   as_expr=false
15386 fi
15387
15388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15389   as_basename=basename
15390 else
15391   as_basename=false
15392 fi
15393
15394
15395 # Name of the executable.
15396 as_me=`$as_basename -- "$0" ||
15397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15398          X"$0" : 'X\(//\)$' \| \
15399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15400 $as_echo X/"$0" |
15401     sed '/^.*\/\([^/][^/]*\)\/*$/{
15402             s//\1/
15403             q
15404           }
15405           /^X\/\(\/\/\)$/{
15406             s//\1/
15407             q
15408           }
15409           /^X\/\(\/\).*/{
15410             s//\1/
15411             q
15412           }
15413           s/.*/./; q'`
15414
15415 # CDPATH.
15416 $as_unset CDPATH
15417
15418
15419
15420   as_lineno_1=$LINENO
15421   as_lineno_2=$LINENO
15422   test "x$as_lineno_1" != "x$as_lineno_2" &&
15423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15424
15425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15426   # uniformly replaced by the line number.  The first 'sed' inserts a
15427   # line-number line after each line using $LINENO; the second 'sed'
15428   # does the real work.  The second script uses 'N' to pair each
15429   # line-number line with the line containing $LINENO, and appends
15430   # trailing '-' during substitution so that $LINENO is not a special
15431   # case at line end.
15432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15434   # E. McMahon (1931-1989) for sed's syntax.  :-)
15435   sed -n '
15436     p
15437     /[$]LINENO/=
15438   ' <$as_myself |
15439     sed '
15440       s/[$]LINENO.*/&-/
15441       t lineno
15442       b
15443       :lineno
15444       N
15445       :loop
15446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15447       t loop
15448       s/-\n.*//
15449     ' >$as_me.lineno &&
15450   chmod +x "$as_me.lineno" ||
15451     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15452    { (exit 1); exit 1; }; }
15453
15454   # Don't try to exec as it changes $[0], causing all sort of problems
15455   # (the dirname of $[0] is not the place where we might find the
15456   # original and so on.  Autoconf is especially sensitive to this).
15457   . "./$as_me.lineno"
15458   # Exit status is that of the last command.
15459   exit
15460 }
15461
15462
15463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15464   as_dirname=dirname
15465 else
15466   as_dirname=false
15467 fi
15468
15469 ECHO_C= ECHO_N= ECHO_T=
15470 case `echo -n x` in
15471 -n*)
15472   case `echo 'x\c'` in
15473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15474   *)   ECHO_C='\c';;
15475   esac;;
15476 *)
15477   ECHO_N='-n';;
15478 esac
15479 if expr a : '\(a\)' >/dev/null 2>&1 &&
15480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15481   as_expr=expr
15482 else
15483   as_expr=false
15484 fi
15485
15486 rm -f conf$$ conf$$.exe conf$$.file
15487 if test -d conf$$.dir; then
15488   rm -f conf$$.dir/conf$$.file
15489 else
15490   rm -f conf$$.dir
15491   mkdir conf$$.dir 2>/dev/null
15492 fi
15493 if (echo >conf$$.file) 2>/dev/null; then
15494   if ln -s conf$$.file conf$$ 2>/dev/null; then
15495     as_ln_s='ln -s'
15496     # ... but there are two gotchas:
15497     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15498     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15499     # In both cases, we have to default to `cp -p'.
15500     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15501       as_ln_s='cp -p'
15502   elif ln conf$$.file conf$$ 2>/dev/null; then
15503     as_ln_s=ln
15504   else
15505     as_ln_s='cp -p'
15506   fi
15507 else
15508   as_ln_s='cp -p'
15509 fi
15510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15511 rmdir conf$$.dir 2>/dev/null
15512
15513 if mkdir -p . 2>/dev/null; then
15514   as_mkdir_p=:
15515 else
15516   test -d ./-p && rmdir ./-p
15517   as_mkdir_p=false
15518 fi
15519
15520 if test -x / >/dev/null 2>&1; then
15521   as_test_x='test -x'
15522 else
15523   if ls -dL / >/dev/null 2>&1; then
15524     as_ls_L_option=L
15525   else
15526     as_ls_L_option=
15527   fi
15528   as_test_x='
15529     eval sh -c '\''
15530       if test -d "$1"; then
15531         test -d "$1/.";
15532       else
15533         case $1 in
15534         -*)set "./$1";;
15535         esac;
15536         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15537         ???[sx]*):;;*)false;;esac;fi
15538     '\'' sh
15539   '
15540 fi
15541 as_executable_p=$as_test_x
15542
15543 # Sed expression to map a string onto a valid CPP name.
15544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15545
15546 # Sed expression to map a string onto a valid variable name.
15547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15548
15549
15550 exec 6>&1
15551
15552 # Save the log message, to keep $[0] and so on meaningful, and to
15553 # report actual input values of CONFIG_FILES etc. instead of their
15554 # values after options handling.
15555 ac_log="
15556 This file was extended by $as_me, which was
15557 generated by GNU Autoconf 2.63.  Invocation command line was
15558
15559   CONFIG_FILES    = $CONFIG_FILES
15560   CONFIG_HEADERS  = $CONFIG_HEADERS
15561   CONFIG_LINKS    = $CONFIG_LINKS
15562   CONFIG_COMMANDS = $CONFIG_COMMANDS
15563   $ $0 $@
15564
15565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15566 "
15567
15568 _ACEOF
15569
15570 case $ac_config_files in *"
15571 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15572 esac
15573
15574 case $ac_config_headers in *"
15575 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15576 esac
15577
15578
15579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15580 # Files that config.status was made for.
15581 config_files="$ac_config_files"
15582 config_headers="$ac_config_headers"
15583
15584 _ACEOF
15585
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 ac_cs_usage="\
15588 \`$as_me' instantiates files from templates according to the
15589 current configuration.
15590
15591 Usage: $0 [OPTION]... [FILE]...
15592
15593   -h, --help       print this help, then exit
15594   -V, --version    print version number and configuration settings, then exit
15595   -q, --quiet, --silent
15596                    do not print progress messages
15597   -d, --debug      don't remove temporary files
15598       --recheck    update $as_me by reconfiguring in the same conditions
15599       --file=FILE[:TEMPLATE]
15600                    instantiate the configuration file FILE
15601       --header=FILE[:TEMPLATE]
15602                    instantiate the configuration header FILE
15603
15604 Configuration files:
15605 $config_files
15606
15607 Configuration headers:
15608 $config_headers
15609
15610 Report bugs to <bug-autoconf@gnu.org>."
15611
15612 _ACEOF
15613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15614 ac_cs_version="\\
15615 config.status
15616 configured by $0, generated by GNU Autoconf 2.63,
15617   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15618
15619 Copyright (C) 2008 Free Software Foundation, Inc.
15620 This config.status script is free software; the Free Software Foundation
15621 gives unlimited permission to copy, distribute and modify it."
15622
15623 ac_pwd='$ac_pwd'
15624 srcdir='$srcdir'
15625 test -n "\$AWK" || AWK=awk
15626 _ACEOF
15627
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629 # The default lists apply if the user does not specify any file.
15630 ac_need_defaults=:
15631 while test $# != 0
15632 do
15633   case $1 in
15634   --*=*)
15635     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15636     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15637     ac_shift=:
15638     ;;
15639   *)
15640     ac_option=$1
15641     ac_optarg=$2
15642     ac_shift=shift
15643     ;;
15644   esac
15645
15646   case $ac_option in
15647   # Handling of the options.
15648   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15649     ac_cs_recheck=: ;;
15650   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15651     $as_echo "$ac_cs_version"; exit ;;
15652   --debug | --debu | --deb | --de | --d | -d )
15653     debug=: ;;
15654   --file | --fil | --fi | --f )
15655     $ac_shift
15656     case $ac_optarg in
15657     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15658     esac
15659     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15660     ac_need_defaults=false;;
15661   --header | --heade | --head | --hea )
15662     $ac_shift
15663     case $ac_optarg in
15664     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15665     esac
15666     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15667     ac_need_defaults=false;;
15668   --he | --h)
15669     # Conflict between --help and --header
15670     { $as_echo "$as_me: error: ambiguous option: $1
15671 Try \`$0 --help' for more information." >&2
15672    { (exit 1); exit 1; }; };;
15673   --help | --hel | -h )
15674     $as_echo "$ac_cs_usage"; exit ;;
15675   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15676   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15677     ac_cs_silent=: ;;
15678
15679   # This is an error.
15680   -*) { $as_echo "$as_me: error: unrecognized option: $1
15681 Try \`$0 --help' for more information." >&2
15682    { (exit 1); exit 1; }; } ;;
15683
15684   *) ac_config_targets="$ac_config_targets $1"
15685      ac_need_defaults=false ;;
15686
15687   esac
15688   shift
15689 done
15690
15691 ac_configure_extra_args=
15692
15693 if $ac_cs_silent; then
15694   exec 6>/dev/null
15695   ac_configure_extra_args="$ac_configure_extra_args --silent"
15696 fi
15697
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 if \$ac_cs_recheck; then
15701   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15702   shift
15703   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15704   CONFIG_SHELL='$SHELL'
15705   export CONFIG_SHELL
15706   exec "\$@"
15707 fi
15708
15709 _ACEOF
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 exec 5>>config.log
15712 {
15713   echo
15714   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15715 ## Running $as_me. ##
15716 _ASBOX
15717   $as_echo "$ac_log"
15718 } >&5
15719
15720 _ACEOF
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 _ACEOF
15723
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15725
15726 # Handling of arguments.
15727 for ac_config_target in $ac_config_targets
15728 do
15729   case $ac_config_target in
15730     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
15731     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
15732
15733   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15734 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15735    { (exit 1); exit 1; }; };;
15736   esac
15737 done
15738
15739
15740 # If the user did not use the arguments to specify the items to instantiate,
15741 # then the envvar interface is used.  Set only those that are not.
15742 # We use the long form for the default assignment because of an extremely
15743 # bizarre bug on SunOS 4.1.3.
15744 if $ac_need_defaults; then
15745   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15746   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15747 fi
15748
15749 # Have a temporary directory for convenience.  Make it in the build tree
15750 # simply because there is no reason against having it here, and in addition,
15751 # creating and moving files from /tmp can sometimes cause problems.
15752 # Hook for its removal unless debugging.
15753 # Note that there is a small window in which the directory will not be cleaned:
15754 # after its creation but before its name has been assigned to `$tmp'.
15755 $debug ||
15756 {
15757   tmp=
15758   trap 'exit_status=$?
15759   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15760 ' 0
15761   trap '{ (exit 1); exit 1; }' 1 2 13 15
15762 }
15763 # Create a (secure) tmp directory for tmp files.
15764
15765 {
15766   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15767   test -n "$tmp" && test -d "$tmp"
15768 }  ||
15769 {
15770   tmp=./conf$$-$RANDOM
15771   (umask 077 && mkdir "$tmp")
15772 } ||
15773 {
15774    $as_echo "$as_me: cannot create a temporary directory in ." >&2
15775    { (exit 1); exit 1; }
15776 }
15777
15778 # Set up the scripts for CONFIG_FILES section.
15779 # No need to generate them if there are no CONFIG_FILES.
15780 # This happens for instance with `./config.status config.h'.
15781 if test -n "$CONFIG_FILES"; then
15782
15783
15784 ac_cr='\r'
15785 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15786 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15787   ac_cs_awk_cr='\\r'
15788 else
15789   ac_cs_awk_cr=$ac_cr
15790 fi
15791
15792 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15793 _ACEOF
15794
15795
15796 {
15797   echo "cat >conf$$subs.awk <<_ACEOF" &&
15798   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15799   echo "_ACEOF"
15800 } >conf$$subs.sh ||
15801   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15802 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15803    { (exit 1); exit 1; }; }
15804 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15805 ac_delim='%!_!# '
15806 for ac_last_try in false false false false false :; do
15807   . ./conf$$subs.sh ||
15808     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15809 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15810    { (exit 1); exit 1; }; }
15811
15812   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15813   if test $ac_delim_n = $ac_delim_num; then
15814     break
15815   elif $ac_last_try; then
15816     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15817 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15818    { (exit 1); exit 1; }; }
15819   else
15820     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15821   fi
15822 done
15823 rm -f conf$$subs.sh
15824
15825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15827 _ACEOF
15828 sed -n '
15829 h
15830 s/^/S["/; s/!.*/"]=/
15831 p
15832 g
15833 s/^[^!]*!//
15834 :repl
15835 t repl
15836 s/'"$ac_delim"'$//
15837 t delim
15838 :nl
15839 h
15840 s/\(.\{148\}\).*/\1/
15841 t more1
15842 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15843 p
15844 n
15845 b repl
15846 :more1
15847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15848 p
15849 g
15850 s/.\{148\}//
15851 t nl
15852 :delim
15853 h
15854 s/\(.\{148\}\).*/\1/
15855 t more2
15856 s/["\\]/\\&/g; s/^/"/; s/$/"/
15857 p
15858 b
15859 :more2
15860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15861 p
15862 g
15863 s/.\{148\}//
15864 t delim
15865 ' <conf$$subs.awk | sed '
15866 /^[^""]/{
15867   N
15868   s/\n//
15869 }
15870 ' >>$CONFIG_STATUS || ac_write_fail=1
15871 rm -f conf$$subs.awk
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 _ACAWK
15874 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15875   for (key in S) S_is_set[key] = 1
15876   FS = "\a"
15877
15878 }
15879 {
15880   line = $ 0
15881   nfields = split(line, field, "@")
15882   substed = 0
15883   len = length(field[1])
15884   for (i = 2; i < nfields; i++) {
15885     key = field[i]
15886     keylen = length(key)
15887     if (S_is_set[key]) {
15888       value = S[key]
15889       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15890       len += length(value) + length(field[++i])
15891       substed = 1
15892     } else
15893       len += 1 + keylen
15894   }
15895
15896   print line
15897 }
15898
15899 _ACAWK
15900 _ACEOF
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15903   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15904 else
15905   cat
15906 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15907   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15908 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15909    { (exit 1); exit 1; }; }
15910 _ACEOF
15911
15912 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15913 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15914 # trailing colons and then remove the whole line if VPATH becomes empty
15915 # (actually we leave an empty line to preserve line numbers).
15916 if test "x$srcdir" = x.; then
15917   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15918 s/:*\$(srcdir):*/:/
15919 s/:*\${srcdir}:*/:/
15920 s/:*@srcdir@:*/:/
15921 s/^\([^=]*=[     ]*\):*/\1/
15922 s/:*$//
15923 s/^[^=]*=[       ]*$//
15924 }'
15925 fi
15926
15927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15928 fi # test -n "$CONFIG_FILES"
15929
15930 # Set up the scripts for CONFIG_HEADERS section.
15931 # No need to generate them if there are no CONFIG_HEADERS.
15932 # This happens for instance with `./config.status Makefile'.
15933 if test -n "$CONFIG_HEADERS"; then
15934 cat >"$tmp/defines.awk" <<\_ACAWK ||
15935 BEGIN {
15936 _ACEOF
15937
15938 # Transform confdefs.h into an awk script `defines.awk', embedded as
15939 # here-document in config.status, that substitutes the proper values into
15940 # config.h.in to produce config.h.
15941
15942 # Create a delimiter string that does not exist in confdefs.h, to ease
15943 # handling of long lines.
15944 ac_delim='%!_!# '
15945 for ac_last_try in false false :; do
15946   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15947   if test -z "$ac_t"; then
15948     break
15949   elif $ac_last_try; then
15950     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15951 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15952    { (exit 1); exit 1; }; }
15953   else
15954     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15955   fi
15956 done
15957
15958 # For the awk script, D is an array of macro values keyed by name,
15959 # likewise P contains macro parameters if any.  Preserve backslash
15960 # newline sequences.
15961
15962 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15963 sed -n '
15964 s/.\{148\}/&'"$ac_delim"'/g
15965 t rset
15966 :rset
15967 s/^[     ]*#[    ]*define[       ][      ]*/ /
15968 t def
15969 d
15970 :def
15971 s/\\$//
15972 t bsnl
15973 s/["\\]/\\&/g
15974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15975 D["\1"]=" \3"/p
15976 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15977 d
15978 :bsnl
15979 s/["\\]/\\&/g
15980 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15981 D["\1"]=" \3\\\\\\n"\\/p
15982 t cont
15983 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15984 t cont
15985 d
15986 :cont
15987 n
15988 s/.\{148\}/&'"$ac_delim"'/g
15989 t clear
15990 :clear
15991 s/\\$//
15992 t bsnlc
15993 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15994 d
15995 :bsnlc
15996 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15997 b cont
15998 ' <confdefs.h | sed '
15999 s/'"$ac_delim"'/"\\\
16000 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16001
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003   for (key in D) D_is_set[key] = 1
16004   FS = "\a"
16005 }
16006 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16007   line = \$ 0
16008   split(line, arg, " ")
16009   if (arg[1] == "#") {
16010     defundef = arg[2]
16011     mac1 = arg[3]
16012   } else {
16013     defundef = substr(arg[1], 2)
16014     mac1 = arg[2]
16015   }
16016   split(mac1, mac2, "(") #)
16017   macro = mac2[1]
16018   prefix = substr(line, 1, index(line, defundef) - 1)
16019   if (D_is_set[macro]) {
16020     # Preserve the white space surrounding the "#".
16021     print prefix "define", macro P[macro] D[macro]
16022     next
16023   } else {
16024     # Replace #undef with comments.  This is necessary, for example,
16025     # in the case of _POSIX_SOURCE, which is predefined and required
16026     # on some systems where configure will not decide to define it.
16027     if (defundef == "undef") {
16028       print "/*", prefix defundef, macro, "*/"
16029       next
16030     }
16031   }
16032 }
16033 { print }
16034 _ACAWK
16035 _ACEOF
16036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16037   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16038 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16039    { (exit 1); exit 1; }; }
16040 fi # test -n "$CONFIG_HEADERS"
16041
16042
16043 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16044 shift
16045 for ac_tag
16046 do
16047   case $ac_tag in
16048   :[FHLC]) ac_mode=$ac_tag; continue;;
16049   esac
16050   case $ac_mode$ac_tag in
16051   :[FHL]*:*);;
16052   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16053 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16054    { (exit 1); exit 1; }; };;
16055   :[FH]-) ac_tag=-:-;;
16056   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16057   esac
16058   ac_save_IFS=$IFS
16059   IFS=:
16060   set x $ac_tag
16061   IFS=$ac_save_IFS
16062   shift
16063   ac_file=$1
16064   shift
16065
16066   case $ac_mode in
16067   :L) ac_source=$1;;
16068   :[FH])
16069     ac_file_inputs=
16070     for ac_f
16071     do
16072       case $ac_f in
16073       -) ac_f="$tmp/stdin";;
16074       *) # Look for the file first in the build tree, then in the source tree
16075          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16076          # because $ac_f cannot contain `:'.
16077          test -f "$ac_f" ||
16078            case $ac_f in
16079            [\\/$]*) false;;
16080            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16081            esac ||
16082            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16083 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16084    { (exit 1); exit 1; }; };;
16085       esac
16086       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16087       ac_file_inputs="$ac_file_inputs '$ac_f'"
16088     done
16089
16090     # Let's still pretend it is `configure' which instantiates (i.e., don't
16091     # use $as_me), people would be surprised to read:
16092     #    /* config.h.  Generated by config.status.  */
16093     configure_input='Generated from '`
16094           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16095         `' by configure.'
16096     if test x"$ac_file" != x-; then
16097       configure_input="$ac_file.  $configure_input"
16098       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16099 $as_echo "$as_me: creating $ac_file" >&6;}
16100     fi
16101     # Neutralize special characters interpreted by sed in replacement strings.
16102     case $configure_input in #(
16103     *\&* | *\|* | *\\* )
16104        ac_sed_conf_input=`$as_echo "$configure_input" |
16105        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16106     *) ac_sed_conf_input=$configure_input;;
16107     esac
16108
16109     case $ac_tag in
16110     *:-:* | *:-) cat >"$tmp/stdin" \
16111       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16112 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16113    { (exit 1); exit 1; }; } ;;
16114     esac
16115     ;;
16116   esac
16117
16118   ac_dir=`$as_dirname -- "$ac_file" ||
16119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16120          X"$ac_file" : 'X\(//\)[^/]' \| \
16121          X"$ac_file" : 'X\(//\)$' \| \
16122          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16123 $as_echo X"$ac_file" |
16124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16125             s//\1/
16126             q
16127           }
16128           /^X\(\/\/\)[^/].*/{
16129             s//\1/
16130             q
16131           }
16132           /^X\(\/\/\)$/{
16133             s//\1/
16134             q
16135           }
16136           /^X\(\/\).*/{
16137             s//\1/
16138             q
16139           }
16140           s/.*/./; q'`
16141   { as_dir="$ac_dir"
16142   case $as_dir in #(
16143   -*) as_dir=./$as_dir;;
16144   esac
16145   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16146     as_dirs=
16147     while :; do
16148       case $as_dir in #(
16149       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16150       *) as_qdir=$as_dir;;
16151       esac
16152       as_dirs="'$as_qdir' $as_dirs"
16153       as_dir=`$as_dirname -- "$as_dir" ||
16154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16155          X"$as_dir" : 'X\(//\)[^/]' \| \
16156          X"$as_dir" : 'X\(//\)$' \| \
16157          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16158 $as_echo X"$as_dir" |
16159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16160             s//\1/
16161             q
16162           }
16163           /^X\(\/\/\)[^/].*/{
16164             s//\1/
16165             q
16166           }
16167           /^X\(\/\/\)$/{
16168             s//\1/
16169             q
16170           }
16171           /^X\(\/\).*/{
16172             s//\1/
16173             q
16174           }
16175           s/.*/./; q'`
16176       test -d "$as_dir" && break
16177     done
16178     test -z "$as_dirs" || eval "mkdir $as_dirs"
16179   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16180 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16181    { (exit 1); exit 1; }; }; }
16182   ac_builddir=.
16183
16184 case "$ac_dir" in
16185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16186 *)
16187   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16188   # A ".." for each directory in $ac_dir_suffix.
16189   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16190   case $ac_top_builddir_sub in
16191   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16192   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16193   esac ;;
16194 esac
16195 ac_abs_top_builddir=$ac_pwd
16196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16197 # for backward compatibility:
16198 ac_top_builddir=$ac_top_build_prefix
16199
16200 case $srcdir in
16201   .)  # We are building in place.
16202     ac_srcdir=.
16203     ac_top_srcdir=$ac_top_builddir_sub
16204     ac_abs_top_srcdir=$ac_pwd ;;
16205   [\\/]* | ?:[\\/]* )  # Absolute name.
16206     ac_srcdir=$srcdir$ac_dir_suffix;
16207     ac_top_srcdir=$srcdir
16208     ac_abs_top_srcdir=$srcdir ;;
16209   *) # Relative name.
16210     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16211     ac_top_srcdir=$ac_top_build_prefix$srcdir
16212     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16213 esac
16214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16215
16216
16217   case $ac_mode in
16218   :F)
16219   #
16220   # CONFIG_FILE
16221   #
16222
16223 _ACEOF
16224
16225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16226 # If the template does not know about datarootdir, expand it.
16227 # FIXME: This hack should be removed a few years after 2.60.
16228 ac_datarootdir_hack=; ac_datarootdir_seen=
16229
16230 ac_sed_dataroot='
16231 /datarootdir/ {
16232   p
16233   q
16234 }
16235 /@datadir@/p
16236 /@docdir@/p
16237 /@infodir@/p
16238 /@localedir@/p
16239 /@mandir@/p
16240 '
16241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16242 *datarootdir*) ac_datarootdir_seen=yes;;
16243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16244   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16246 _ACEOF
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248   ac_datarootdir_hack='
16249   s&@datadir@&$datadir&g
16250   s&@docdir@&$docdir&g
16251   s&@infodir@&$infodir&g
16252   s&@localedir@&$localedir&g
16253   s&@mandir@&$mandir&g
16254     s&\\\${datarootdir}&$datarootdir&g' ;;
16255 esac
16256 _ACEOF
16257
16258 # Neutralize VPATH when `$srcdir' = `.'.
16259 # Shell code in configure.ac might set extrasub.
16260 # FIXME: do we really want to maintain this feature?
16261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16262 ac_sed_extra="$ac_vpsub
16263 $extrasub
16264 _ACEOF
16265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266 :t
16267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16268 s|@configure_input@|$ac_sed_conf_input|;t t
16269 s&@top_builddir@&$ac_top_builddir_sub&;t t
16270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16271 s&@srcdir@&$ac_srcdir&;t t
16272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16273 s&@top_srcdir@&$ac_top_srcdir&;t t
16274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16275 s&@builddir@&$ac_builddir&;t t
16276 s&@abs_builddir@&$ac_abs_builddir&;t t
16277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16278 $ac_datarootdir_hack
16279 "
16280 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16281   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16282 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16283    { (exit 1); exit 1; }; }
16284
16285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16286   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16287   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16288   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16289 which seems to be undefined.  Please make sure it is defined." >&5
16290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16291 which seems to be undefined.  Please make sure it is defined." >&2;}
16292
16293   rm -f "$tmp/stdin"
16294   case $ac_file in
16295   -) cat "$tmp/out" && rm -f "$tmp/out";;
16296   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16297   esac \
16298   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16299 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16300    { (exit 1); exit 1; }; }
16301  ;;
16302   :H)
16303   #
16304   # CONFIG_HEADER
16305   #
16306   if test x"$ac_file" != x-; then
16307     {
16308       $as_echo "/* $configure_input  */" \
16309       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16310     } >"$tmp/config.h" \
16311       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16312 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16313    { (exit 1); exit 1; }; }
16314     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16315       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16316 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16317     else
16318       rm -f "$ac_file"
16319       mv "$tmp/config.h" "$ac_file" \
16320         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16321 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16322    { (exit 1); exit 1; }; }
16323     fi
16324   else
16325     $as_echo "/* $configure_input  */" \
16326       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16327       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16328 $as_echo "$as_me: error: could not create -" >&2;}
16329    { (exit 1); exit 1; }; }
16330   fi
16331  ;;
16332
16333
16334   esac
16335
16336 done # for ac_tag
16337
16338
16339 { (exit 0); exit 0; }
16340 _ACEOF
16341 chmod +x $CONFIG_STATUS
16342 ac_clean_files=$ac_clean_files_save
16343
16344 test $ac_write_fail = 0 ||
16345   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16346 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16347    { (exit 1); exit 1; }; }
16348
16349
16350 # configure is writing to config.log, and then calls config.status.
16351 # config.status does its own redirection, appending to config.log.
16352 # Unfortunately, on DOS this fails, as config.log is still kept open
16353 # by configure, so config.status won't be able to write to it; its
16354 # output is simply discarded.  So we exec the FD to /dev/null,
16355 # effectively closing config.log, so it can be properly (re)opened and
16356 # appended to by config.status.  When coming back to configure, we
16357 # need to make the FD available again.
16358 if test "$no_create" != yes; then
16359   ac_cs_success=:
16360   ac_config_status_args=
16361   test "$silent" = yes &&
16362     ac_config_status_args="$ac_config_status_args --quiet"
16363   exec 5>/dev/null
16364   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16365   exec 5>>config.log
16366   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16367   # would make configure fail if this is the last instruction.
16368   $ac_cs_success || { (exit 1); exit 1; }
16369 fi
16370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16371   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16373 fi
16374
16375
16376     if test -n "$OPTIONAL"; then
16377         echo
16378         echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
16379     fi
16380
16381     if test -n "$REQUIRED"; then
16382         echo
16383         echo "ERROR: Please install required programs: $REQUIRED"
16384     fi
16385
16386     if test -n "$UNSUPPORTED"; then
16387         echo
16388         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
16389     fi
16390
16391     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
16392         echo
16393         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
16394         if test -f config.cache ; then
16395             echo "Remove config.cache before rerunning ./configure"
16396         fi
16397     fi
16398
16399     if test -n "$REQUIRED$UNSUPPORTED"; then
16400         rm -f $srcdir/GNUmakefile
16401         exit 1
16402     fi
16403
16404     # regular in-place build
16405     # test for srcdir_build = yes ?
16406     if test "$srcdir_build" = "yes"; then
16407         rm -f $srcdir/GNUmakefile
16408         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
16409         chmod 444 $srcdir/GNUmakefile
16410     else
16411         if test -f $srcdir/GNUmakefile; then
16412             cat <<EOF
16413 Source directory already configured.  Please clean the source directory
16414
16415      make -C $srcdir distclean
16416
16417 and rerun configure.
16418 EOF
16419             exit 2
16420         fi
16421
16422         abssrcdir="`cd $srcdir; pwd`"
16423         absbuilddir="`pwd`"
16424         for d in 2 3 4 5 ; do
16425             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
16426                 case "$abssrcdir" in
16427                     "$absbuilddir"/*)
16428 # source is below build directory, always copy
16429                         ;;
16430                     *)
16431                         case "$abssrcdir/${mf#./}" in
16432                             "$absbuilddir"/*)
16433 # find descended into build directory, don't copy
16434                                 continue
16435                         esac
16436                 esac
16437                 mkdir -p ${mf%/*}
16438                 cat <<EOF | $PYTHON -  > $mf
16439 print 'depth=' + ('../' * ( $d-1 ) )
16440 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16441 print 'include \$(configure-srcdir)/$mf'
16442 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
16443 EOF
16444             done
16445             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
16446                 case "$abssrcdir" in
16447                     "$absbuilddir"/*)
16448 # source is below build directory, always copy
16449                         ;;
16450                     *)
16451                         case "$abssrcdir/${mf#./}" in
16452                             "$absbuilddir"/*)
16453 # find descended into build directory, don't copy
16454                                 continue
16455                         esac
16456                 esac
16457                 mkdir -p ${mf%/*}
16458                 cat <<EOF | $PYTHON -  > $mf
16459 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16460 print 'include \$(configure-srcdir)/$mf'
16461 EOF
16462             done
16463         done
16464
16465         rm -f GNUmakefile
16466         cat <<EOF > GNUmakefile
16467 depth = .
16468 include config\$(if \$(conf),-\$(conf),).make
16469 include \$(configure-srcdir)/GNUmakefile.in
16470 EOF
16471         chmod 444 GNUmakefile
16472
16473     fi
16474
16475
16476 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
16477
16478 if make top-doc 1>/dev/null 2>&1; then
16479     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
16480     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
16481 fi
16482
16483 cat <<EOF
16484
16485 Type:
16486     make$mc all       to build LilyPond
16487     make$mc install   to install LilyPond
16488     make$mc help      to see all possible targets
16489
16490 Edit local.make for local Makefile overrides.
16491
16492
16493 EOF