]> git.donarmstrong.com Git - lilypond.git/blob - configure
New upstream version 2.19.80
[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 USE_EXTRACTPDFMARK
655 EXTRACTPDFMARK
656 GS920
657 GHOSTSCRIPT
658 PERL
659 GUILE
660 WINDRES
661 PLATFORM_WINDOWS
662 FREETYPE2_LIBS
663 FREETYPE2_CFLAGS
664 FONTCONFIG_LIBS
665 FONTCONFIG_CFLAGS
666 PANGO_FT2_LIBS
667 PANGO_FT2_CFLAGS
668 HOST_ARCH
669 PKG_CONFIG
670 LIBOBJS
671 T1ASM
672 FONTFORGE
673 PYTHON_LDFLAGS
674 PYTHON_CFLAGS
675 PYTHON_CONFIG
676 CXXABI_LIBS
677 GUILE_LDFLAGS
678 GUILE_CFLAGS
679 GUILE_CONFIG
680 KPSEWHICH
681 MFMODE
682 METAPOST
683 METAFONT
684 MSGFMT
685 FLEXLEXER_FILE
686 FLEX
687 BISON
688 YFLAGS
689 YACC
690 RANLIB
691 AR
692 EGREP
693 GREP
694 CXXCPP
695 ac_ct_CXX
696 CXXFLAGS
697 CXX
698 URWOTF_FILES
699 URWOTF_DIR
700 TEXGYRE_FILES
701 TEXGYRE_DIR
702 FCLIST
703 EXTRA_LIBS
704 DEFINES
705 cross_compiling
706 LD
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 LINK_GXX_STATICALLY
715 DOCUMENTATION
716 build_package_libdir
717 build_package_datadir
718 ROOTSEP
719 PATHSEP
720 DIRSEP
721 LN_S
722 LN
723 ZIP
724 program_suffix
725 program_prefix
726 PYTHON
727 BASH
728 KSH
729 TAR
730 FIND
731 MAKE
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 CONFIGSUFFIX
741 AUTOGENERATE
742 package_depth
743 TOPLEVEL_VERSION
744 PATCH_LEVEL
745 MICRO_VERSION
746 MINOR_VERSION
747 MAJOR_VERSION
748 VERSION
749 PACKAGE
750 package
751 stepmake
752 srcdir
753 ugh_ugh_autoconf250_builddir
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_config
795 enable_documentation
796 enable_guile2
797 with_texgyre_dir
798 with_urwotf_dir
799 enable_relocation
800 enable_rpath
801 enable_static_gxx
802 enable_debugging
803 enable_checking
804 enable_optimising
805 enable_profiling
806 enable_pipe
807 with_localedir
808 with_lang
809 with_python_include
810 with_python_lib
811 '
812       ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CXX
821 CXXFLAGS
822 CCC
823 CXXCPP
824 YACC
825 YFLAGS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
935    { (exit 1); exit 1; }; }
936     ac_useropt_orig=$ac_useropt
937     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938     case $ac_user_opts in
939       *"
940 "enable_$ac_useropt"
941 "*) ;;
942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943          ac_unrecognized_sep=', ';;
944     esac
945     eval enable_$ac_useropt=no ;;
946
947   -docdir | --docdir | --docdi | --doc | --do)
948     ac_prev=docdir ;;
949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950     docdir=$ac_optarg ;;
951
952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953     ac_prev=dvidir ;;
954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955     dvidir=$ac_optarg ;;
956
957   -enable-* | --enable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
962    { (exit 1); exit 1; }; }
963     ac_useropt_orig=$ac_useropt
964     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965     case $ac_user_opts in
966       *"
967 "enable_$ac_useropt"
968 "*) ;;
969       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970          ac_unrecognized_sep=', ';;
971     esac
972     eval enable_$ac_useropt=\$ac_optarg ;;
973
974   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976   | --exec | --exe | --ex)
977     ac_prev=exec_prefix ;;
978   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980   | --exec=* | --exe=* | --ex=*)
981     exec_prefix=$ac_optarg ;;
982
983   -gas | --gas | --ga | --g)
984     # Obsolete; use --with-gas.
985     with_gas=yes ;;
986
987   -help | --help | --hel | --he | -h)
988     ac_init_help=long ;;
989   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990     ac_init_help=recursive ;;
991   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992     ac_init_help=short ;;
993
994   -host | --host | --hos | --ho)
995     ac_prev=host_alias ;;
996   -host=* | --host=* | --hos=* | --ho=*)
997     host_alias=$ac_optarg ;;
998
999   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000     ac_prev=htmldir ;;
1001   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002   | --ht=*)
1003     htmldir=$ac_optarg ;;
1004
1005   -includedir | --includedir | --includedi | --included | --include \
1006   | --includ | --inclu | --incl | --inc)
1007     ac_prev=includedir ;;
1008   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009   | --includ=* | --inclu=* | --incl=* | --inc=*)
1010     includedir=$ac_optarg ;;
1011
1012   -infodir | --infodir | --infodi | --infod | --info | --inf)
1013     ac_prev=infodir ;;
1014   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015     infodir=$ac_optarg ;;
1016
1017   -libdir | --libdir | --libdi | --libd)
1018     ac_prev=libdir ;;
1019   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020     libdir=$ac_optarg ;;
1021
1022   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023   | --libexe | --libex | --libe)
1024     ac_prev=libexecdir ;;
1025   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026   | --libexe=* | --libex=* | --libe=*)
1027     libexecdir=$ac_optarg ;;
1028
1029   -localedir | --localedir | --localedi | --localed | --locale)
1030     ac_prev=localedir ;;
1031   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032     localedir=$ac_optarg ;;
1033
1034   -localstatedir | --localstatedir | --localstatedi | --localstated \
1035   | --localstate | --localstat | --localsta | --localst | --locals)
1036     ac_prev=localstatedir ;;
1037   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039     localstatedir=$ac_optarg ;;
1040
1041   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042     ac_prev=mandir ;;
1043   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044     mandir=$ac_optarg ;;
1045
1046   -nfp | --nfp | --nf)
1047     # Obsolete; use --without-fp.
1048     with_fp=no ;;
1049
1050   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051   | --no-cr | --no-c | -n)
1052     no_create=yes ;;
1053
1054   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056     no_recursion=yes ;;
1057
1058   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060   | --oldin | --oldi | --old | --ol | --o)
1061     ac_prev=oldincludedir ;;
1062   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065     oldincludedir=$ac_optarg ;;
1066
1067   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068     ac_prev=prefix ;;
1069   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070     prefix=$ac_optarg ;;
1071
1072   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073   | --program-pre | --program-pr | --program-p)
1074     ac_prev=program_prefix ;;
1075   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077     program_prefix=$ac_optarg ;;
1078
1079   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080   | --program-suf | --program-su | --program-s)
1081     ac_prev=program_suffix ;;
1082   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084     program_suffix=$ac_optarg ;;
1085
1086   -program-transform-name | --program-transform-name \
1087   | --program-transform-nam | --program-transform-na \
1088   | --program-transform-n | --program-transform- \
1089   | --program-transform | --program-transfor \
1090   | --program-transfo | --program-transf \
1091   | --program-trans | --program-tran \
1092   | --progr-tra | --program-tr | --program-t)
1093     ac_prev=program_transform_name ;;
1094   -program-transform-name=* | --program-transform-name=* \
1095   | --program-transform-nam=* | --program-transform-na=* \
1096   | --program-transform-n=* | --program-transform-=* \
1097   | --program-transform=* | --program-transfor=* \
1098   | --program-transfo=* | --program-transf=* \
1099   | --program-trans=* | --program-tran=* \
1100   | --progr-tra=* | --program-tr=* | --program-t=*)
1101     program_transform_name=$ac_optarg ;;
1102
1103   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104     ac_prev=pdfdir ;;
1105   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106     pdfdir=$ac_optarg ;;
1107
1108   -psdir | --psdir | --psdi | --psd | --ps)
1109     ac_prev=psdir ;;
1110   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111     psdir=$ac_optarg ;;
1112
1113   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114   | -silent | --silent | --silen | --sile | --sil)
1115     silent=yes ;;
1116
1117   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118     ac_prev=sbindir ;;
1119   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120   | --sbi=* | --sb=*)
1121     sbindir=$ac_optarg ;;
1122
1123   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125   | --sharedst | --shareds | --shared | --share | --shar \
1126   | --sha | --sh)
1127     ac_prev=sharedstatedir ;;
1128   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131   | --sha=* | --sh=*)
1132     sharedstatedir=$ac_optarg ;;
1133
1134   -site | --site | --sit)
1135     ac_prev=site ;;
1136   -site=* | --site=* | --sit=*)
1137     site=$ac_optarg ;;
1138
1139   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140     ac_prev=srcdir ;;
1141   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142     srcdir=$ac_optarg ;;
1143
1144   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145   | --syscon | --sysco | --sysc | --sys | --sy)
1146     ac_prev=sysconfdir ;;
1147   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149     sysconfdir=$ac_optarg ;;
1150
1151   -target | --target | --targe | --targ | --tar | --ta | --t)
1152     ac_prev=target_alias ;;
1153   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154     target_alias=$ac_optarg ;;
1155
1156   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157     verbose=yes ;;
1158
1159   -version | --version | --versio | --versi | --vers | -V)
1160     ac_init_version=: ;;
1161
1162   -with-* | --with-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1215 Try \`$0 --help' for more information." >&2
1216    { (exit 1); exit 1; }; }
1217     ;;
1218
1219   *=*)
1220     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1223       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1224    { (exit 1); exit 1; }; }
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1242    { (exit 1); exit 1; }; }
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246   case $enable_option_checking in
1247     no) ;;
1248     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1249    { (exit 1); exit 1; }; } ;;
1250     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251   esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                 datadir sysconfdir sharedstatedir localstatedir includedir \
1257                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                 libdir localedir mandir
1259 do
1260   eval ac_val=\$$ac_var
1261   # Remove trailing slashes.
1262   case $ac_val in
1263     */ )
1264       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265       eval $ac_var=\$ac_val;;
1266   esac
1267   # Be sure to have absolute directory names.
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273    { (exit 1); exit 1; }; }
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1304    { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1307    { (exit 1); exit 1; }; }
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1352    { (exit 1); exit 1; }; }
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442
1443   cat <<\_ACEOF
1444
1445 Optional Features:
1446   --disable-option-checking  ignore unrecognized --enable/--with options
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1450                           do `make conf=CONF' to get output in ./out-CONF
1451   --enable-documentation  build Documentation. Default: on
1452   --enable-guile2         highly experimental GUILE 2 support. Default: off
1453   --enable-relocation     compile with dynamic relocation. Default: off
1454   --enable-rpath          hardcode runtime library path. Default: off
1455   --enable-static-gxx     link libstdc++.a statically. Default: off
1456   --enable-debugging      compile with debugging info. Default: on
1457   --enable-checking       compile with expensive run-time checks. Default: off
1458   --enable-optimising     compile with optimising. Default: on
1459   --enable-profiling      compile with gprof support. Default: off
1460   --enable-pipe           compile with -pipe. Default: on
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --with-texgyre-dir=DIR  location of TeX Gyre fonts.
1466   --with-urwotf-dir=DIR   location of URW++ OTF fonts.
1467   --with-localedir=DIR    location of locales. Default: PREFIX/share/locale
1468   --with-lang=LANG        use LANG as language to emit messages
1469   --with-python-include=DIR
1470                           location of the python include dir
1471   --with-python-lib=NAME  name of the python lib
1472
1473 Some influential environment variables:
1474   CC          C compiler command
1475   CFLAGS      C compiler flags
1476   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1477               nonstandard directory <lib dir>
1478   LIBS        libraries to pass to the linker, e.g. -l<library>
1479   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480               you have headers in a nonstandard directory <include dir>
1481   CXX         C++ compiler command
1482   CXXFLAGS    C++ compiler flags
1483   CXXCPP      C++ preprocessor
1484   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1485               the first program found out of: `bison -y', `byacc', `yacc'.
1486   YFLAGS      The list of arguments that will be passed by default to $YACC.
1487               This script will default YFLAGS to the empty string to avoid a
1488               default value of `-d' given by some make applications.
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" ||
1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502       continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 configure
1556 generated by GNU Autoconf 2.63
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by $as_me, which was
1570 generated by GNU Autoconf 2.63.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   $as_echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633   for ac_arg
1634   do
1635     case $ac_arg in
1636     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638     | -silent | --silent | --silen | --sile | --sil)
1639       continue ;;
1640     *\'*)
1641       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642     esac
1643     case $ac_pass in
1644     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645     2)
1646       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647       if test $ac_must_keep_next = true; then
1648         ac_must_keep_next=false # Got value, back to normal.
1649       else
1650         case $ac_arg in
1651           *=* | --config-cache | -C | -disable-* | --disable-* \
1652           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654           | -with-* | --with-* | -without-* | --without-* | --x)
1655             case "$ac_configure_args0 " in
1656               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657             esac
1658             ;;
1659           -* ) ac_must_keep_next=true ;;
1660         esac
1661       fi
1662       ac_configure_args="$ac_configure_args '$ac_arg'"
1663       ;;
1664     esac
1665   done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log.  We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676   # Save into config.log some information that might help in debugging.
1677   {
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685     echo
1686     # The following way of writing the cache mishandles newlines in values,
1687 (
1688   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689     eval ac_val=\$$ac_var
1690     case $ac_val in #(
1691     *${as_nl}*)
1692       case $ac_var in #(
1693       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1695       esac
1696       case $ac_var in #(
1697       _ | IFS | as_nl) ;; #(
1698       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1699       *) $as_unset $ac_var ;;
1700       esac ;;
1701     esac
1702   done
1703   (set) 2>&1 |
1704     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705     *${as_nl}ac_space=\ *)
1706       sed -n \
1707         "s/'\''/'\''\\\\'\'''\''/g;
1708           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709       ;; #(
1710     *)
1711       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712       ;;
1713     esac |
1714     sort
1715 )
1716     echo
1717
1718     cat <<\_ASBOX
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1722 _ASBOX
1723     echo
1724     for ac_var in $ac_subst_vars
1725     do
1726       eval ac_val=\$$ac_var
1727       case $ac_val in
1728       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729       esac
1730       $as_echo "$ac_var='\''$ac_val'\''"
1731     done | sort
1732     echo
1733
1734     if test -n "$ac_subst_files"; then
1735       cat <<\_ASBOX
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1739 _ASBOX
1740       echo
1741       for ac_var in $ac_subst_files
1742       do
1743         eval ac_val=\$$ac_var
1744         case $ac_val in
1745         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746         esac
1747         $as_echo "$ac_var='\''$ac_val'\''"
1748       done | sort
1749       echo
1750     fi
1751
1752     if test -s confdefs.h; then
1753       cat <<\_ASBOX
1754 ## ----------- ##
1755 ## confdefs.h. ##
1756 ## ----------- ##
1757 _ASBOX
1758       echo
1759       cat confdefs.h
1760       echo
1761     fi
1762     test "$ac_signal" != 0 &&
1763       $as_echo "$as_me: caught signal $ac_signal"
1764     $as_echo "$as_me: exit $exit_status"
1765   } >&5
1766   rm -f core *.core core.conftest.* &&
1767     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768     exit $exit_status
1769 ' 0
1770 for ac_signal in 1 2 13 15; do
1771   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 done
1773 ac_signal=0
1774
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1777
1778 # Predefined preprocessor variables.
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 _ACEOF
1803
1804
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer an explicitly selected file to automatically selected ones.
1807 ac_site_file1=NONE
1808 ac_site_file2=NONE
1809 if test -n "$CONFIG_SITE"; then
1810   ac_site_file1=$CONFIG_SITE
1811 elif test "x$prefix" != xNONE; then
1812   ac_site_file1=$prefix/share/config.site
1813   ac_site_file2=$prefix/etc/config.site
1814 else
1815   ac_site_file1=$ac_default_prefix/share/config.site
1816   ac_site_file2=$ac_default_prefix/etc/config.site
1817 fi
1818 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1819 do
1820   test "x$ac_site_file" = xNONE && continue
1821   if test -r "$ac_site_file"; then
1822     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1824     sed 's/^/| /' "$ac_site_file" >&5
1825     . "$ac_site_file"
1826   fi
1827 done
1828
1829 if test -r "$cache_file"; then
1830   # Some versions of bash will fail to source /dev/null (special
1831   # files actually), so we avoid doing that.
1832   if test -f "$cache_file"; then
1833     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 $as_echo "$as_me: loading cache $cache_file" >&6;}
1835     case $cache_file in
1836       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837       *)                      . "./$cache_file";;
1838     esac
1839   fi
1840 else
1841   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 $as_echo "$as_me: creating cache $cache_file" >&6;}
1843   >$cache_file
1844 fi
1845
1846 # Check that the precious variables saved in the cache have kept the same
1847 # value.
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851   eval ac_new_set=\$ac_env_${ac_var}_set
1852   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853   eval ac_new_val=\$ac_env_${ac_var}_value
1854   case $ac_old_set,$ac_new_set in
1855     set,)
1856       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,set)
1860       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862       ac_cache_corrupted=: ;;
1863     ,);;
1864     *)
1865       if test "x$ac_old_val" != "x$ac_new_val"; then
1866         # differences in whitespace do not lead to failure.
1867         ac_old_val_w=`echo x $ac_old_val`
1868         ac_new_val_w=`echo x $ac_new_val`
1869         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1870           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872           ac_cache_corrupted=:
1873         else
1874           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1875 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1876           eval $ac_var=\$ac_old_val
1877         fi
1878         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1879 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1880         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1881 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1882       fi;;
1883   esac
1884   # Pass precious variables to config.status.
1885   if test "$ac_new_set" = set; then
1886     case $ac_new_val in
1887     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888     *) ac_arg=$ac_var=$ac_new_val ;;
1889     esac
1890     case " $ac_configure_args " in
1891       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893     esac
1894   fi
1895 done
1896 if $ac_cache_corrupted; then
1897   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1899   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930 # Bootstrap StepMake configure
1931 ac_aux_dir=
1932 for ac_dir in config "$srcdir"/config; do
1933   if test -f "$ac_dir/install-sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install-sh -c"
1936     break
1937   elif test -f "$ac_dir/install.sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install.sh -c"
1940     break
1941   elif test -f "$ac_dir/shtool"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/shtool install -c"
1944     break
1945   fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1949 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962
1963 # Make sure we can run config.sub.
1964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1965   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1966 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1967    { (exit 1); exit 1; }; }
1968
1969 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1970 $as_echo_n "checking build system type... " >&6; }
1971 if test "${ac_cv_build+set}" = set; then
1972   $as_echo_n "(cached) " >&6
1973 else
1974   ac_build_alias=$build_alias
1975 test "x$ac_build_alias" = x &&
1976   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1977 test "x$ac_build_alias" = x &&
1978   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1979 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1980    { (exit 1); exit 1; }; }
1981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1982   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1983 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1984    { (exit 1); exit 1; }; }
1985
1986 fi
1987 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1988 $as_echo "$ac_cv_build" >&6; }
1989 case $ac_cv_build in
1990 *-*-*) ;;
1991 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1992 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1993    { (exit 1); exit 1; }; };;
1994 esac
1995 build=$ac_cv_build
1996 ac_save_IFS=$IFS; IFS='-'
1997 set x $ac_cv_build
1998 shift
1999 build_cpu=$1
2000 build_vendor=$2
2001 shift; shift
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2004 build_os=$*
2005 IFS=$ac_save_IFS
2006 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2007
2008
2009
2010
2011     . $srcdir/VERSION
2012     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2013     MICRO_VERSION=$PATCH_LEVEL
2014     TOPLEVEL_VERSION=$FULL_VERSION
2015     if test x$MY_PATCH_LEVEL != x; then
2016         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2017     fi
2018     VERSION=$FULL_VERSION
2019     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2020     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2021     #dnl
2022     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2023     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2024     #dnl
2025
2026     # No versioning on directory names of sub-packages
2027     # urg, urg
2028     stepmake=${datadir}/stepmake
2029     presome=${prefix}
2030     if test "$prefix" = "NONE"; then
2031             presome=${ac_default_prefix}
2032     fi
2033     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2034
2035     # urg, how is this supposed to work?
2036     if test "$program_prefix" = "NONE"; then
2037           program_prefix=
2038     fi
2039     if test "$program_suffix" = "NONE"; then
2040           program_suffix=
2041     fi
2042
2043     { $as_echo "$as_me:$LINENO: checking Package" >&5
2044 $as_echo_n "checking Package... " >&6; }
2045     if test "$PACKAGE" = "STEPMAKE"; then
2046         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2047 $as_echo "Stepmake package!" >&6; }
2048
2049         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2050 $as_echo_n "checking builddir... " >&6; }
2051
2052         ugh_ugh_autoconf250_builddir="`pwd`"
2053
2054         if test "$srcdir" = "."; then
2055             srcdir_build=yes
2056         else
2057             srcdir_build=no
2058             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2059             package_srcdir="`dirname  $srcdir`"
2060         fi
2061         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2062 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2063
2064         (cd stepmake 2>/dev/null || mkdir stepmake)
2065         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2066         stepmake=stepmake
2067     else
2068         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2069 $as_echo "$PACKAGE" >&6; }
2070
2071         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2072 $as_echo_n "checking builddir... " >&6; }
2073         ugh_ugh_autoconf250_builddir="`pwd`"
2074
2075         here_dir=$(cd . && pwd)
2076         full_src_dir=$(cd $srcdir && pwd)
2077
2078         if test "$full_src_dir" = "$here_dir"; then
2079             srcdir_build=yes
2080         else
2081             srcdir_build=no
2082         fi
2083         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2084 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2085
2086         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2087 $as_echo_n "checking for stepmake... " >&6; }
2088         # Check for installed stepmake
2089         if test -d $stepmake; then
2090             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2091 $as_echo "$stepmake" >&6; }
2092         else
2093             stepmake="`cd $srcdir/stepmake; pwd`"
2094             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2095 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2096         fi
2097     fi
2098
2099
2100
2101     # Use absolute directory for non-srcdir builds, so that build
2102     # dir can be moved.
2103     if test "$srcdir_build" = "no" ;  then
2104         srcdir="`cd $srcdir; pwd`"
2105     fi
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117     # stepmake nonstandard names
2118
2119
2120
2121     # We don't need the upper case variant,
2122     # so stick to macros are uppercase convention.
2123     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2124     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2125     cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE "${package}"
2127 _ACEOF
2128
2129     cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "${PACKAGE_NAME}"
2131 _ACEOF
2132
2133     cat >>confdefs.h <<_ACEOF
2134 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2135 _ACEOF
2136
2137
2138     if test -z "$package_depth"; then
2139         package_depth="."
2140     else
2141         package_depth="../$package_depth"
2142     fi
2143     export package_depth
2144
2145
2146     AUTOGENERATE="This file was automatically generated by configure"
2147
2148
2149     CONFIGSUFFIX=
2150     # Check whether --enable-config was given.
2151 if test "${enable_config+set}" = set; then
2152   enableval=$enable_config; CONFIGURATION=$enableval
2153 fi
2154
2155
2156     ##'`#
2157
2158     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2159     CONFIGFILE=config$CONFIGSUFFIX
2160
2161
2162     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2163 $as_echo_n "checking host system type... " >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165   $as_echo_n "(cached) " >&6
2166 else
2167   if test "x$host_alias" = x; then
2168   ac_cv_host=$ac_cv_build
2169 else
2170   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 fi
2177 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 $as_echo "$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2183    { (exit 1); exit 1; }; };;
2184 esac
2185 host=$ac_cv_host
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_host
2188 shift
2189 host_cpu=$1
2190 host_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 host_os=$*
2195 IFS=$ac_save_IFS
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199
2200     for ac_prog in gmake make
2201 do
2202   # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_MAKE+set}" = set; then
2207   $as_echo_n "(cached) " >&6
2208 else
2209   if test -n "$MAKE"; then
2210   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   for ac_exec_ext in '' $ac_executable_extensions; do
2218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219     ac_cv_prog_MAKE="$ac_prog"
2220     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221     break 2
2222   fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 MAKE=$ac_cv_prog_MAKE
2230 if test -n "$MAKE"; then
2231   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2232 $as_echo "$MAKE" >&6; }
2233 else
2234   { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2236 fi
2237
2238
2239   test -n "$MAKE" && break
2240 done
2241 test -n "$MAKE" || MAKE="no"
2242
2243
2244
2245     r="`eval echo '$'"MAKE"`"
2246     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2247         true
2248     else
2249         ##STEPMAKE_WARN(cannot find . )
2250         false
2251     fi
2252
2253     if test $? -ne 0; then
2254
2255     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2256
2257         if test "REQUIRED" = "REQUIRED"; then
2258             command="echo ERROR: gmake make not found"
2259             # abort configure process here?
2260         else
2261             command="- echo gmake make not found"
2262         fi
2263         eval "MAKE"='$command'
2264         false
2265     else
2266         true
2267     fi
2268
2269     if test $? -eq 0 -a -n ""; then
2270
2271     r="`eval echo '$'"MAKE"`"
2272     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2273 $as_echo_n "checking $r version... " >&6; }
2274     exe=`
2275     ## which doesn't work in ash, if /usr/bin/which isn't installed
2276     ## type -p doesn't work in ash
2277     ## command -v doesn't work in zsh
2278     ## command -v "$r" 2>&1
2279     ## this test should work in ash, bash, pdksh (ksh), zsh
2280     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2281 `
2282     if test -n ""; then
2283         ver=""
2284     else
2285         ver=`
2286     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2287     ##
2288     ## ARG.
2289     ## Workaround for broken Debian gcc version string:
2290     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2291     ##
2292     ## -V: Workaround for python
2293
2294     #dnl
2295
2296     ## Assume and hunt for dotted version multiplet.
2297     ## use eval trickery, because we cannot use multi-level $() instead of ``
2298     ## for compatibility reasons.
2299
2300     ## grab the first version number in  --version output.
2301     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2302                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2303                 head -n 1 |
2304                 tr ' ' '\n' |
2305                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2306                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2307                 head -n 1\`\"
2308
2309     if test -z "$_ver"; then
2310         ## If empty, try date [fontforge]
2311         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2312             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2313             | head -n 1 \
2314             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2315     fi
2316     echo "$_ver"
2317     #dnl
2318 `
2319     fi
2320     num=`
2321     echo "$ver" | awk -F. '
2322     {
2323       if ($3) {three = $3}
2324       else {three = 0}
2325     }
2326     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2327 `
2328     req=`
2329     echo "" | awk -F. '
2330     {
2331       if ($3) {three = $3}
2332       else {three = 0}
2333     }
2334     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2335 `
2336     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2337 $as_echo "$ver" >&6; }
2338     if test "$num" -lt "$req"; then
2339
2340     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2341
2342     fi
2343     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2344     eval `echo $vervar=$num`
2345 ##    AC_SUBST(`eval echo $vervar`)
2346
2347     fi
2348
2349
2350     for ac_prog in find
2351 do
2352   # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if test "${ac_cv_prog_FIND+set}" = set; then
2357   $as_echo_n "(cached) " >&6
2358 else
2359   if test -n "$FIND"; then
2360   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369     ac_cv_prog_FIND="$ac_prog"
2370     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2376
2377 fi
2378 fi
2379 FIND=$ac_cv_prog_FIND
2380 if test -n "$FIND"; then
2381   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2382 $as_echo "$FIND" >&6; }
2383 else
2384   { $as_echo "$as_me:$LINENO: result: no" >&5
2385 $as_echo "no" >&6; }
2386 fi
2387
2388
2389   test -n "$FIND" && break
2390 done
2391 test -n "$FIND" || FIND="no"
2392
2393
2394
2395     r="`eval echo '$'"FIND"`"
2396     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2397         true
2398     else
2399         ##STEPMAKE_WARN(cannot find . )
2400         false
2401     fi
2402
2403     if test $? -ne 0; then
2404
2405     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2406
2407         if test "REQUIRED" = "REQUIRED"; then
2408             command="echo ERROR: find not found"
2409             # abort configure process here?
2410         else
2411             command="- echo find not found"
2412         fi
2413         eval "FIND"='$command'
2414         false
2415     else
2416         true
2417     fi
2418
2419     if test $? -eq 0 -a -n ""; then
2420
2421     r="`eval echo '$'"FIND"`"
2422     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2423 $as_echo_n "checking $r version... " >&6; }
2424     exe=`
2425     ## which doesn't work in ash, if /usr/bin/which isn't installed
2426     ## type -p doesn't work in ash
2427     ## command -v doesn't work in zsh
2428     ## command -v "$r" 2>&1
2429     ## this test should work in ash, bash, pdksh (ksh), zsh
2430     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2431 `
2432     if test -n ""; then
2433         ver=""
2434     else
2435         ver=`
2436     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2437     ##
2438     ## ARG.
2439     ## Workaround for broken Debian gcc version string:
2440     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2441     ##
2442     ## -V: Workaround for python
2443
2444     #dnl
2445
2446     ## Assume and hunt for dotted version multiplet.
2447     ## use eval trickery, because we cannot use multi-level $() instead of ``
2448     ## for compatibility reasons.
2449
2450     ## grab the first version number in  --version output.
2451     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2452                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2453                 head -n 1 |
2454                 tr ' ' '\n' |
2455                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2456                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2457                 head -n 1\`\"
2458
2459     if test -z "$_ver"; then
2460         ## If empty, try date [fontforge]
2461         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2462             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2463             | head -n 1 \
2464             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2465     fi
2466     echo "$_ver"
2467     #dnl
2468 `
2469     fi
2470     num=`
2471     echo "$ver" | awk -F. '
2472     {
2473       if ($3) {three = $3}
2474       else {three = 0}
2475     }
2476     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2477 `
2478     req=`
2479     echo "" | awk -F. '
2480     {
2481       if ($3) {three = $3}
2482       else {three = 0}
2483     }
2484     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2485 `
2486     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2487 $as_echo "$ver" >&6; }
2488     if test "$num" -lt "$req"; then
2489
2490     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2491
2492     fi
2493     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2494     eval `echo $vervar=$num`
2495 ##    AC_SUBST(`eval echo $vervar`)
2496
2497     fi
2498
2499
2500
2501     for ac_prog in tar
2502 do
2503   # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_TAR+set}" = set; then
2508   $as_echo_n "(cached) " >&6
2509 else
2510   if test -n "$TAR"; then
2511   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_TAR="$ac_prog"
2521     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 TAR=$ac_cv_prog_TAR
2531 if test -n "$TAR"; then
2532   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2533 $as_echo "$TAR" >&6; }
2534 else
2535   { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540   test -n "$TAR" && break
2541 done
2542 test -n "$TAR" || TAR="no"
2543
2544
2545
2546     r="`eval echo '$'"TAR"`"
2547     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2548         true
2549     else
2550         ##STEPMAKE_WARN(cannot find . )
2551         false
2552     fi
2553
2554     if test $? -ne 0; then
2555
2556     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2557
2558         if test "REQUIRED" = "REQUIRED"; then
2559             command="echo ERROR: tar not found"
2560             # abort configure process here?
2561         else
2562             command="- echo tar not found"
2563         fi
2564         eval "TAR"='$command'
2565         false
2566     else
2567         true
2568     fi
2569
2570     if test $? -eq 0 -a -n ""; then
2571
2572     r="`eval echo '$'"TAR"`"
2573     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2574 $as_echo_n "checking $r version... " >&6; }
2575     exe=`
2576     ## which doesn't work in ash, if /usr/bin/which isn't installed
2577     ## type -p doesn't work in ash
2578     ## command -v doesn't work in zsh
2579     ## command -v "$r" 2>&1
2580     ## this test should work in ash, bash, pdksh (ksh), zsh
2581     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2582 `
2583     if test -n ""; then
2584         ver=""
2585     else
2586         ver=`
2587     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2588     ##
2589     ## ARG.
2590     ## Workaround for broken Debian gcc version string:
2591     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2592     ##
2593     ## -V: Workaround for python
2594
2595     #dnl
2596
2597     ## Assume and hunt for dotted version multiplet.
2598     ## use eval trickery, because we cannot use multi-level $() instead of ``
2599     ## for compatibility reasons.
2600
2601     ## grab the first version number in  --version output.
2602     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2603                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2604                 head -n 1 |
2605                 tr ' ' '\n' |
2606                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2607                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2608                 head -n 1\`\"
2609
2610     if test -z "$_ver"; then
2611         ## If empty, try date [fontforge]
2612         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2613             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2614             | head -n 1 \
2615             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2616     fi
2617     echo "$_ver"
2618     #dnl
2619 `
2620     fi
2621     num=`
2622     echo "$ver" | awk -F. '
2623     {
2624       if ($3) {three = $3}
2625       else {three = 0}
2626     }
2627     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2628 `
2629     req=`
2630     echo "" | awk -F. '
2631     {
2632       if ($3) {three = $3}
2633       else {three = 0}
2634     }
2635     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2636 `
2637     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2638 $as_echo "$ver" >&6; }
2639     if test "$num" -lt "$req"; then
2640
2641     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2642
2643     fi
2644     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2645     eval `echo $vervar=$num`
2646 ##    AC_SUBST(`eval echo $vervar`)
2647
2648     fi
2649
2650
2651     if test "$(echo 2)" != "2" ||
2652         test "x`uname`" = "xHP-UX"; then
2653         # Extract the first word of "ksh", so it can be a program name with args.
2654 set dummy ksh; ac_word=$2
2655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_path_KSH+set}" = set; then
2658   $as_echo_n "(cached) " >&6
2659 else
2660   case $KSH in
2661   [\\/]* | ?:[\\/]*)
2662   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2663   ;;
2664   *)
2665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   for ac_exec_ext in '' $ac_executable_extensions; do
2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2681   ;;
2682 esac
2683 fi
2684 KSH=$ac_cv_path_KSH
2685 if test -n "$KSH"; then
2686   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2687 $as_echo "$KSH" >&6; }
2688 else
2689   { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694         # Extract the first word of "bash", so it can be a program name with args.
2695 set dummy bash; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_path_BASH+set}" = set; then
2699   $as_echo_n "(cached) " >&6
2700 else
2701   case $BASH in
2702   [\\/]* | ?:[\\/]*)
2703   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2704   ;;
2705   *)
2706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711   for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2722   ;;
2723 esac
2724 fi
2725 BASH=$ac_cv_path_BASH
2726 if test -n "$BASH"; then
2727   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2728 $as_echo "$BASH" >&6; }
2729 else
2730   { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735
2736     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2737 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2738     warn_b=yes
2739
2740         # Extract the first word of "bash", so it can be a program name with args.
2741 set dummy bash; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_path_SHELL+set}" = set; then
2745   $as_echo_n "(cached) " >&6
2746 else
2747   case $SHELL in
2748   [\\/]* | ?:[\\/]*)
2749   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2750   ;;
2751   *)
2752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2760     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2768   ;;
2769 esac
2770 fi
2771 SHELL=$ac_cv_path_SHELL
2772 if test -n "$SHELL"; then
2773   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2774 $as_echo "$SHELL" >&6; }
2775 else
2776   { $as_echo "$as_me:$LINENO: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780
2781     else
2782         SHELL=/bin/sh
2783         # Extract the first word of "bash", so it can be a program name with args.
2784 set dummy bash; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_path_BASH+set}" = set; then
2788   $as_echo_n "(cached) " >&6
2789 else
2790   case $BASH in
2791   [\\/]* | ?:[\\/]*)
2792   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2793   ;;
2794   *)
2795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2811   ;;
2812 esac
2813 fi
2814 BASH=$ac_cv_path_BASH
2815 if test -n "$BASH"; then
2816   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2817 $as_echo "$BASH" >&6; }
2818 else
2819   { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824     fi
2825
2826
2827
2828     { $as_echo "$as_me:$LINENO: checking for python" >&5
2829 $as_echo_n "checking for python... " >&6; }
2830     python="python"
2831     found="no"
2832     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
2833         exe=`
2834     ## which doesn't work in ash, if /usr/bin/which isn't installed
2835     ## type -p doesn't work in ash
2836     ## command -v doesn't work in zsh
2837     ## command -v "$r" 2>&1
2838     ## this test should work in ash, bash, pdksh (ksh), zsh
2839     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2840 `
2841         if ! $exe -V > /dev/null 2>&1 ; then
2842             continue
2843         fi
2844         ver=`
2845     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2846     ##
2847     ## ARG.
2848     ## Workaround for broken Debian gcc version string:
2849     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2850     ##
2851     ## -V: Workaround for python
2852
2853     #dnl
2854
2855     ## Assume and hunt for dotted version multiplet.
2856     ## use eval trickery, because we cannot use multi-level $() instead of ``
2857     ## for compatibility reasons.
2858
2859     ## grab the first version number in  --version output.
2860     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2861                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2862                 head -n 1 |
2863                 tr ' ' '\n' |
2864                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2865                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2866                 head -n 1\`\"
2867
2868     if test -z "$_ver"; then
2869         ## If empty, try date [fontforge]
2870         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2871             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2872             | head -n 1 \
2873             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2874     fi
2875     echo "$_ver"
2876     #dnl
2877 `
2878         num=`
2879     echo "$ver" | awk -F. '
2880     {
2881       if ($3) {three = $3}
2882       else {three = 0}
2883     }
2884     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2885 `
2886         req=`
2887     echo "1.5" | awk -F. '
2888     {
2889       if ($3) {three = $3}
2890       else {three = 0}
2891     }
2892     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2893 `
2894         sup=`
2895     echo "3.0" | awk -F. '
2896     {
2897       if ($3) {three = $3}
2898       else {three = 0}
2899     }
2900     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2901 `
2902         if test -n "1.5" && test "$num" -lt "$req"; then
2903             python="$r >= 1.5 (installed: $ver)"
2904             continue
2905         else
2906             if test -n "3.0" && test "$num" -ge "$sup"; then
2907                 python="$r < 3.0 (installed: $ver)"
2908                 continue
2909             else
2910                 python=$r
2911                 found=$r
2912                 break
2913             fi
2914         fi
2915     done
2916     { $as_echo "$as_me:$LINENO: result: $found" >&5
2917 $as_echo "$found" >&6; }
2918     if test "$found" != "no"; then
2919         { $as_echo "$as_me:$LINENO: checking $python version" >&5
2920 $as_echo_n "checking $python version... " >&6; }
2921         { $as_echo "$as_me:$LINENO: result: $ver" >&5
2922 $as_echo "$ver" >&6; }
2923         PYTHON=$found
2924     else
2925
2926     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2927
2928     fi
2929     # Extract the first word of "$PYTHON", so it can be a program name with args.
2930 set dummy $PYTHON; ac_word=$2
2931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_path_PYTHON+set}" = set; then
2934   $as_echo_n "(cached) " >&6
2935 else
2936   case $PYTHON in
2937   [\\/]* | ?:[\\/]*)
2938   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2939   ;;
2940   *)
2941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946   for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953 done
2954 IFS=$as_save_IFS
2955
2956   ;;
2957 esac
2958 fi
2959 PYTHON=$ac_cv_path_PYTHON
2960 if test -n "$PYTHON"; then
2961   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2962 $as_echo "$PYTHON" >&6; }
2963 else
2964   { $as_echo "$as_me:$LINENO: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969
2970
2971
2972     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2973         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2974         if test "$?" = 1; then
2975             warn='make (Please install *GNU* make)'
2976             # STEPMAKE_WARN($warn)
2977
2978     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2979
2980         fi
2981     fi
2982
2983     ROOTSEP=':'
2984     DIRSEP='/'
2985     PATHSEP=':'
2986     LN=ln
2987     LN_S='ln -s'
2988     ZIP="zip -r -9"
2989
2990
2991
2992
2993
2994
2995     cat >>confdefs.h <<_ACEOF
2996 #define DIRSEP '${DIRSEP}'
2997 _ACEOF
2998
2999     cat >>confdefs.h <<_ACEOF
3000 #define PATHSEP '${PATHSEP}'
3001 _ACEOF
3002
3003
3004
3005
3006
3007
3008     presome=${prefix}
3009     if test "$prefix" = "NONE"; then
3010         presome=${ac_default_prefix}
3011     fi
3012
3013     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3014
3015     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3016     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3017     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3018
3019
3020
3021
3022     cat >>confdefs.h <<_ACEOF
3023 #define DATADIR "${DATADIR}"
3024 _ACEOF
3025
3026     cat >>confdefs.h <<_ACEOF
3027 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3028 _ACEOF
3029
3030
3031
3032     presome=${exec_prefix}
3033     if test "$presome" = "NONE"; then
3034             presome=${prefix}
3035     fi
3036     if test "$presome" = "NONE"; then
3037             presome=${ac_default_prefix}
3038     fi
3039
3040     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3041
3042     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3043     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3044
3045
3046
3047     cat >>confdefs.h <<_ACEOF
3048 #define LIBDIR "${LIBDIR}"
3049 _ACEOF
3050
3051     cat >>confdefs.h <<_ACEOF
3052 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3053 _ACEOF
3054
3055
3056
3057
3058 # List a file that identifies your package.
3059
3060
3061 # Move to aclocal.m4?
3062 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3063
3064
3065 # Uncomment the configuration options your package needs.
3066
3067 DOCUMENTATION=yes
3068 # Check whether --enable-documentation was given.
3069 if test "${enable_documentation+set}" = set; then
3070   enableval=$enable_documentation; DOCUMENTATION=$enableval
3071 fi
3072
3073
3074
3075 GUILEv2=no
3076 # Check whether --enable-guile2 was given.
3077 if test "${enable_guile2+set}" = set; then
3078   enableval=$enable_guile2; GUILEv2=$enableval
3079 fi
3080
3081
3082
3083 # Check whether --with-texgyre-dir was given.
3084 if test "${with_texgyre_dir+set}" = set; then
3085   withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3086 else
3087   TEXGYRE_DIR=""
3088 fi
3089
3090
3091
3092 # Check whether --with-urwotf-dir was given.
3093 if test "${with_urwotf_dir+set}" = set; then
3094   withval=$with_urwotf_dir; URWOTF_DIR=$withval
3095 else
3096   URWOTF_DIR=""
3097 fi
3098
3099
3100 reloc_b=no
3101 # Check whether --enable-relocation was given.
3102 if test "${enable_relocation+set}" = set; then
3103   enableval=$enable_relocation; reloc_b=$enableval
3104 fi
3105
3106
3107 rpath_b=no
3108 # Check whether --enable-rpath was given.
3109 if test "${enable_rpath+set}" = set; then
3110   enableval=$enable_rpath; rpath_b=$enableval
3111 fi
3112
3113
3114 LINK_GXX_STATICALLY=no
3115 # Check whether --enable-static-gxx was given.
3116 if test "${enable_static_gxx+set}" = set; then
3117   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3118 fi
3119
3120
3121
3122 # must come before any header checks
3123
3124     # -O is necessary to get inlining
3125     CFLAGS=${CFLAGS-""}
3126     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3127     LDFLAGS=${LDFLAGS-""}
3128     optimise_b=yes
3129     checks_b=no
3130     profile_b=no
3131     debug_b=yes
3132     pipe_b=yes
3133
3134     # Check whether --enable-debugging was given.
3135 if test "${enable_debugging+set}" = set; then
3136   enableval=$enable_debugging; debug_b=$enableval
3137 fi
3138
3139
3140     # Check whether --enable-checking was given.
3141 if test "${enable_checking+set}" = set; then
3142   enableval=$enable_checking; checks_b=$enableval
3143 fi
3144
3145
3146     # Check whether --enable-optimising was given.
3147 if test "${enable_optimising+set}" = set; then
3148   enableval=$enable_optimising; optimise_b=$enableval
3149 fi
3150
3151
3152     # Check whether --enable-profiling was given.
3153 if test "${enable_profiling+set}" = set; then
3154   enableval=$enable_profiling; profile_b=$enableval
3155 fi
3156
3157
3158     # Check whether --enable-pipe was given.
3159 if test "${enable_pipe+set}" = set; then
3160   enableval=$enable_pipe; pipe_b=$enableval
3161 fi
3162
3163
3164     if test "$optimise_b" = yes; then
3165         OPTIMIZE=" -O2 -finline-functions"
3166         # following two lines are compatibility while Patchy has not
3167         # yet learnt about --enable-checking.  But once it has, we
3168         # don't want -DDEBUG twice, so we omit it here if it is going
3169         # to get added anyway later.
3170     elif test "$checks_b" != yes; then
3171         DEFINES="$DEFINES -DDEBUG"
3172     fi
3173
3174     if test "$checks_b" = yes; then
3175         DEFINES="$DEFINES -DDEBUG"
3176     fi
3177
3178     if test $profile_b = yes; then
3179         EXTRA_LIBS="-pg"
3180         OPTIMIZE="$OPTIMIZE -pg"
3181     fi
3182
3183     if test $debug_b = yes; then
3184         OPTIMIZE="$OPTIMIZE -g"
3185     fi
3186
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for ac_exec_ext in '' $ac_executable_extensions; do
3209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3211     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:$LINENO: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 fi
3231 if test -z "$ac_cv_prog_CC"; then
3232   ac_ct_CC=$CC
3233   # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238   $as_echo_n "(cached) " >&6
3239 else
3240   if test -n "$ac_ct_CC"; then
3241   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248   for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     ac_cv_prog_ac_ct_CC="gcc"
3251     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 $as_echo "$ac_ct_CC" >&6; }
3264 else
3265   { $as_echo "$as_me:$LINENO: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269   if test "x$ac_ct_CC" = x; then
3270     CC=""
3271   else
3272     case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278     CC=$ac_ct_CC
3279   fi
3280 else
3281   CC="$ac_cv_prog_CC"
3282 fi
3283
3284 if test -z "$CC"; then
3285           if test -n "$ac_tool_prefix"; then
3286     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}cc; ac_word=$2
3288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then
3291   $as_echo_n "(cached) " >&6
3292 else
3293   if test -n "$CC"; then
3294   ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299   IFS=$as_save_IFS
3300   test -z "$as_dir" && as_dir=.
3301   for ac_exec_ext in '' $ac_executable_extensions; do
3302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303     ac_cv_prog_CC="${ac_tool_prefix}cc"
3304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305     break 2
3306   fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3317 else
3318   { $as_echo "$as_me:$LINENO: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323   fi
3324 fi
3325 if test -z "$CC"; then
3326   # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc; ac_word=$2
3328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_CC+set}" = set; then
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test -n "$CC"; then
3334   ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336   ac_prog_rejected=no
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342   for ac_exec_ext in '' $ac_executable_extensions; do
3343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345        ac_prog_rejected=yes
3346        continue
3347      fi
3348     ac_cv_prog_CC="cc"
3349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353 done
3354 IFS=$as_save_IFS
3355
3356 if test $ac_prog_rejected = yes; then
3357   # We found a bogon in the path, so make sure we never use it.
3358   set dummy $ac_cv_prog_CC
3359   shift
3360   if test $# != 0; then
3361     # We chose a different compiler from the bogus one.
3362     # However, it has the same basename, so the bogon will be chosen
3363     # first if we set CC to just the basename; use the full file name.
3364     shift
3365     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3366   fi
3367 fi
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375   { $as_echo "$as_me:$LINENO: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380 fi
3381 if test -z "$CC"; then
3382   if test -n "$ac_tool_prefix"; then
3383   for ac_prog in cl.exe
3384   do
3385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$CC"; then
3393   ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400   for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417   { $as_echo "$as_me:$LINENO: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422     test -n "$CC" && break
3423   done
3424 fi
3425 if test -z "$CC"; then
3426   ac_ct_CC=$CC
3427   for ac_prog in cl.exe
3428 do
3429   # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3434   $as_echo_n "(cached) " >&6
3435 else
3436   if test -n "$ac_ct_CC"; then
3437   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444   for ac_exec_ext in '' $ac_executable_extensions; do
3445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446     ac_cv_prog_ac_ct_CC="$ac_prog"
3447     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448     break 2
3449   fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3459 $as_echo "$ac_ct_CC" >&6; }
3460 else
3461   { $as_echo "$as_me:$LINENO: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465
3466   test -n "$ac_ct_CC" && break
3467 done
3468
3469   if test "x$ac_ct_CC" = x; then
3470     CC=""
3471   else
3472     case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned=yes ;;
3477 esac
3478     CC=$ac_ct_CC
3479   fi
3480 fi
3481
3482 fi
3483
3484
3485 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491    { (exit 1); exit 1; }; }; }
3492
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3495 set X $ac_compile
3496 ac_compiler=$2
3497 { (ac_try="$ac_compiler --version >&5"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504   (eval "$ac_compiler --version >&5") 2>&5
3505   ac_status=$?
3506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }
3508 { (ac_try="$ac_compiler -v >&5"
3509 case "(($ac_try" in
3510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511   *) ac_try_echo=$ac_try;;
3512 esac
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515   (eval "$ac_compiler -v >&5") 2>&5
3516   ac_status=$?
3517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }
3519 { (ac_try="$ac_compiler -V >&5"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526   (eval "$ac_compiler -V >&5") 2>&5
3527   ac_status=$?
3528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }
3530
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h.  */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3550 # of exeext.
3551 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3552 $as_echo_n "checking for C compiler default output file name... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3554
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3557
3558 ac_rmfiles=
3559 for ac_file in $ac_files
3560 do
3561   case $ac_file in
3562     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3564   esac
3565 done
3566 rm -f $ac_rmfiles
3567
3568 if { (ac_try="$ac_link_default"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575   (eval "$ac_link_default") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; then
3579   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3583 # Autoconf.
3584 for ac_file in $ac_files ''
3585 do
3586   test -f "$ac_file" || continue
3587   case $ac_file in
3588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3589         ;;
3590     [ab].out )
3591         # We found the default executable, but exeext='' is most
3592         # certainly right.
3593         break;;
3594     *.* )
3595         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3596         then :; else
3597            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598         fi
3599         # We set ac_cv_exeext here because the later test for it is not
3600         # safe: cross compilers may not add the suffix if given an `-o'
3601         # argument, so we may need to know it at that point already.
3602         # Even if this section looks crufty: it has the advantage of
3603         # actually working.
3604         break;;
3605     * )
3606         break;;
3607   esac
3608 done
3609 test "$ac_cv_exeext" = no && ac_cv_exeext=
3610
3611 else
3612   ac_file=''
3613 fi
3614
3615 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3616 $as_echo "$ac_file" >&6; }
3617 if test -z "$ac_file"; then
3618   $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3624 See \`config.log' for more details." >&5
3625 $as_echo "$as_me: error: C compiler cannot create executables
3626 See \`config.log' for more details." >&2;}
3627    { (exit 77); exit 77; }; }; }
3628 fi
3629
3630 ac_exeext=$ac_cv_exeext
3631
3632 # Check that the compiler produces executables we can run.  If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3635 $as_echo_n "checking whether the C compiler works... " >&6; }
3636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3637 # If not cross compiling, check that we can run a simple program.
3638 if test "$cross_compiling" != yes; then
3639   if { ac_try='./$ac_file'
3640   { (case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646   (eval "$ac_try") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650     cross_compiling=no
3651   else
3652     if test "$cross_compiling" = maybe; then
3653         cross_compiling=yes
3654     else
3655         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details." >&2;}
3663    { (exit 1); exit 1; }; }; }
3664     fi
3665   fi
3666 fi
3667 { $as_echo "$as_me:$LINENO: result: yes" >&5
3668 $as_echo "yes" >&6; }
3669
3670 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3671 ac_clean_files=$ac_clean_files_save
3672 # Check that the compiler produces executables we can run.  If not, either
3673 # the compiler is broken, or we cross compile.
3674 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3675 $as_echo_n "checking whether we are cross compiling... " >&6; }
3676 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3678
3679 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3680 $as_echo_n "checking for suffix of executables... " >&6; }
3681 if { (ac_try="$ac_link"
3682 case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3687 $as_echo "$ac_try_echo") >&5
3688   (eval "$ac_link") 2>&5
3689   ac_status=$?
3690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; then
3692   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3695 # `rm'.
3696 for ac_file in conftest.exe conftest conftest.*; do
3697   test -f "$ac_file" || continue
3698   case $ac_file in
3699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701           break;;
3702     * ) break;;
3703   esac
3704 done
3705 else
3706   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details." >&5
3710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details." >&2;}
3712    { (exit 1); exit 1; }; }; }
3713 fi
3714
3715 rm -f conftest$ac_cv_exeext
3716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3718
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3721 ac_exeext=$EXEEXT
3722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then
3725   $as_echo_n "(cached) " >&6
3726 else
3727   cat >conftest.$ac_ext <<_ACEOF
3728 /* confdefs.h.  */
3729 _ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.o conftest.obj
3743 if { (ac_try="$ac_compile"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3749 $as_echo "$ac_try_echo") >&5
3750   (eval "$ac_compile") 2>&5
3751   ac_status=$?
3752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); }; then
3754   for ac_file in conftest.o conftest.obj conftest.*; do
3755   test -f "$ac_file" || continue;
3756   case $ac_file in
3757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3758     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3759        break;;
3760   esac
3761 done
3762 else
3763   $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3769 See \`config.log' for more details." >&5
3770 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3771 See \`config.log' for more details." >&2;}
3772    { (exit 1); exit 1; }; }; }
3773 fi
3774
3775 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3776 fi
3777 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3778 $as_echo "$ac_cv_objext" >&6; }
3779 OBJEXT=$ac_cv_objext
3780 ac_objext=$OBJEXT
3781 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3784   $as_echo_n "(cached) " >&6
3785 else
3786   cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796 #ifndef __GNUC__
3797        choke me
3798 #endif
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3806 case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812   (eval "$ac_compile") 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } && {
3819          test -z "$ac_c_werror_flag" ||
3820          test ! -s conftest.err
3821        } && test -s conftest.$ac_objext; then
3822   ac_compiler_gnu=yes
3823 else
3824   $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827         ac_compiler_gnu=no
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
3833 fi
3834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3837   GCC=yes
3838 else
3839   GCC=
3840 fi
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if test "${ac_cv_prog_cc_g+set}" = set; then
3846   $as_echo_n "(cached) " >&6
3847 else
3848   ac_save_c_werror_flag=$ac_c_werror_flag
3849    ac_c_werror_flag=yes
3850    ac_cv_prog_cc_g=no
3851    CFLAGS="-g"
3852    cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3874 $as_echo "$ac_try_echo") >&5
3875   (eval "$ac_compile") 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } && {
3882          test -z "$ac_c_werror_flag" ||
3883          test ! -s conftest.err
3884        } && test -s conftest.$ac_objext; then
3885   ac_cv_prog_cc_g=yes
3886 else
3887   $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890         CFLAGS=""
3891       cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913 $as_echo "$ac_try_echo") >&5
3914   (eval "$ac_compile") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } && {
3921          test -z "$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        } && test -s conftest.$ac_objext; then
3924   :
3925 else
3926   $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929         ac_c_werror_flag=$ac_save_c_werror_flag
3930          CFLAGS="-g"
3931          cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954   (eval "$ac_compile") 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } && {
3961          test -z "$ac_c_werror_flag" ||
3962          test ! -s conftest.err
3963        } && test -s conftest.$ac_objext; then
3964   ac_cv_prog_cc_g=yes
3965 else
3966   $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969
3970 fi
3971
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 fi
3977
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979    ac_c_werror_flag=$ac_save_c_werror_flag
3980 fi
3981 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984   CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986   if test "$GCC" = yes; then
3987     CFLAGS="-g -O2"
3988   else
3989     CFLAGS="-g"
3990   fi
3991 else
3992   if test "$GCC" = yes; then
3993     CFLAGS="-O2"
3994   else
3995     CFLAGS=
3996   fi
3997 fi
3998 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if test "${ac_cv_prog_cc_c89+set}" = set; then
4001   $as_echo_n "(cached) " >&6
4002 else
4003   ac_cv_prog_cc_c89=no
4004 ac_save_CC=$CC
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011 #include <stdarg.h>
4012 #include <stdio.h>
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4016 struct buf { int x; };
4017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4018 static char *e (p, i)
4019      char **p;
4020      int i;
4021 {
4022   return p[i];
4023 }
4024 static char *f (char * (*g) (char **, int), char **p, ...)
4025 {
4026   char *s;
4027   va_list v;
4028   va_start (v,p);
4029   s = g (p, va_arg (v,int));
4030   va_end (v);
4031   return s;
4032 }
4033
4034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4035    function prototypes and stuff, but not '\xHH' hex character constants.
4036    These don't provoke an error unfortunately, instead are silently treated
4037    as 'x'.  The following induces an error, until -std is added to get
4038    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4039    array size at least.  It's necessary to write '\x00'==0 to get something
4040    that's true only with -std.  */
4041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4042
4043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4044    inside strings and character constants.  */
4045 #define FOO(x) 'x'
4046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4047
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4052 int argc;
4053 char **argv;
4054 int
4055 main ()
4056 {
4057 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4063         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4064 do
4065   CC="$ac_save_CC $ac_arg"
4066   rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } && {
4081          test -z "$ac_c_werror_flag" ||
4082          test ! -s conftest.err
4083        } && test -s conftest.$ac_objext; then
4084   ac_cv_prog_cc_c89=$ac_arg
4085 else
4086   $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089
4090 fi
4091
4092 rm -f core conftest.err conftest.$ac_objext
4093   test "x$ac_cv_prog_cc_c89" != "xno" && break
4094 done
4095 rm -f conftest.$ac_ext
4096 CC=$ac_save_CC
4097
4098 fi
4099 # AC_CACHE_VAL
4100 case "x$ac_cv_prog_cc_c89" in
4101   x)
4102     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4103 $as_echo "none needed" >&6; } ;;
4104   xno)
4105     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4106 $as_echo "unsupported" >&6; } ;;
4107   *)
4108     CC="$CC $ac_cv_prog_cc_c89"
4109     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4111 esac
4112
4113
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120
4121
4122
4123
4124
4125
4126
4127     r="`eval echo '$'"CC"`"
4128     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4129         true
4130     else
4131         ##STEPMAKE_WARN(cannot find . )
4132         false
4133     fi
4134
4135     if test $? -ne 0; then
4136
4137     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4138
4139         if test "" = "REQUIRED"; then
4140             command="echo ERROR: cc not found"
4141             # abort configure process here?
4142         else
4143             command="- echo cc not found"
4144         fi
4145         eval "CC"='$command'
4146         false
4147     else
4148         true
4149     fi
4150
4151     LD='$(CC)'
4152
4153
4154     # If -pipe requested, test if it works and add to CFLAGS.
4155     if test "$pipe_b" = yes; then
4156         save_cflags="$CFLAGS"
4157         CFLAGS=" -pipe $CFLAGS";
4158         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4159 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4160 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4161   $as_echo_n "(cached) " >&6
4162 else
4163
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 /* -pipe test */
4171 int
4172 main ()
4173 {
4174
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187   (eval "$ac_compile") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } && {
4194          test -z "$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        } && test -s conftest.$ac_objext; then
4197   stepmake_cv_cflags_pipe=yes
4198 else
4199   $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202         stepmake_cv_cflags_pipe=no
4203 fi
4204
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4208 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4209         CFLAGS=$save_cflags
4210         if test $stepmake_cv_cflags_pipe = yes; then
4211             OPTIMIZE="$OPTIMIZE -pipe"
4212         fi
4213     fi
4214
4215     CFLAGS="$CFLAGS $OPTIMIZE"
4216     CPPFLAGS=${CPPFLAGS-""}
4217
4218     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4219 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4220     save_cflags="$CFLAGS"
4221     case "$host" in
4222         alpha*-*-*)
4223                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4224 $as_echo "-mieee" >&6; }
4225             CFLAGS=" -mieee $CFLAGS"
4226             ;;
4227         *)
4228             { $as_echo "$as_me:$LINENO: result: none" >&5
4229 $as_echo "none" >&6; }
4230             ;;
4231     esac
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241 # Extract the first word of "fc-list", so it can be a program name with args.
4242 set dummy fc-list; ac_word=$2
4243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_FCLIST+set}" = set; then
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test -n "$FCLIST"; then
4249   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_FCLIST="fc-list"
4259     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 FCLIST=$ac_cv_prog_FCLIST
4269 if test -n "$FCLIST"; then
4270   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4271 $as_echo "$FCLIST" >&6; }
4272 else
4273   { $as_echo "$as_me:$LINENO: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277
4278 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4279 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4280
4281
4282 if test "$TEXGYRE_DIR" = ""; then
4283   if test "$FCLIST" != ""; then
4284     TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4285     if test "$TEXGYRE_FILE" != ""; then
4286       TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4287       TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4288       TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4289 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4290          X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4291          X$TEXGYRE_FILE : 'X\(//\)$' \| \
4292          X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4293 $as_echo X$TEXGYRE_FILE |
4294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4295             s//\1/
4296             q
4297           }
4298           /^X\(\/\/\)[^/].*/{
4299             s//\1/
4300             q
4301           }
4302           /^X\(\/\/\)$/{
4303             s//\1/
4304             q
4305           }
4306           /^X\(\/\).*/{
4307             s//\1/
4308             q
4309           }
4310           s/.*/./; q'`
4311     fi
4312   fi
4313 fi
4314 if test "$TEXGYRE_DIR" != "" ;  then
4315   for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4316            texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4317            texgyreheros-regular.otf texgyreheros-italic.otf \
4318            texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4319            texgyrecursor-regular.otf texgyrecursor-italic.otf \
4320            texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4321     if test ! -f "$TEXGYRE_DIR/$f"; then
4322       MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4323     else
4324       TEXGYRE_FILES="$TEXGYRE_FILES $f"
4325     fi
4326   done
4327 fi
4328 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4329   { $as_echo "$as_me:$LINENO: result: no" >&5
4330 $as_echo "no" >&6; }
4331
4332     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4333
4334   if test "$TEXGYRE_DIR" = ""; then
4335     if test "$FCLIST" = ""; then
4336
4337     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4338
4339     else
4340
4341     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)"\"`\"
4342
4343     fi
4344   else
4345
4346     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4347
4348   fi
4349 else
4350   { $as_echo "$as_me:$LINENO: result: yes" >&5
4351 $as_echo "yes" >&6; }
4352 fi
4353 { $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
4354 $as_echo_n "checking for URW++ OTF files... " >&6; }
4355
4356
4357 if test "$URWOTF_DIR" = ""; then
4358   if test "$FCLIST" != ""; then
4359     URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
4360     if test "$URWOTF_FILE" != ""; then
4361       URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
4362       URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
4363       URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
4364 $as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4365          X$URWOTF_FILE : 'X\(//\)[^/]' \| \
4366          X$URWOTF_FILE : 'X\(//\)$' \| \
4367          X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
4368 $as_echo X$URWOTF_FILE |
4369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4370             s//\1/
4371             q
4372           }
4373           /^X\(\/\/\)[^/].*/{
4374             s//\1/
4375             q
4376           }
4377           /^X\(\/\/\)$/{
4378             s//\1/
4379             q
4380           }
4381           /^X\(\/\).*/{
4382             s//\1/
4383             q
4384           }
4385           s/.*/./; q'`
4386     fi
4387   fi
4388 fi
4389 if test "$URWOTF_DIR" != "" ;  then
4390   for f in C059-BdIta.otf C059-Bold.otf \
4391            C059-Italic.otf C059-Roman.otf \
4392            NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
4393            NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
4394            NimbusSans-Bold.otf NimbusSans-BoldItalic.otf \
4395            NimbusSans-Italic.otf NimbusSans-Regular.otf; do
4396     if test ! -f "$URWOTF_DIR/$f"; then
4397       MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
4398     else
4399       URWOTF_FILES="$URWOTF_FILES $f"
4400     fi
4401   done
4402 fi
4403 if test "$MISSING_URWOTF_FILES"="NimbusSans-BoldItalic.otf NimbusSans-Italic.otf" && \
4404    test -f "$URWOTF_DIR/NimbusSans-BoldOblique.otf" && \
4405    test -f "$URWOTF_DIR/NimbusSans-Oblique.otf"; then
4406   MISSING_URWOTF_FILES=""
4407   URWOTF_FILES="$URWOTF_FILES NimbusSans-BoldOblique.otf NimbusSans-Oblique.otf"
4408 fi
4409 if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
4410   { $as_echo "$as_me:$LINENO: result: no" >&5
4411 $as_echo "no" >&6; }
4412
4413     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
4414
4415   if test "$URWOTF_DIR" = ""; then
4416     if test "$FCLIST" = ""; then
4417
4418     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
4419
4420     else
4421
4422     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=tree;hb=91edd6ece36e84a1c6d63a1cf63a1a6d84bd443a' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
4423
4424     fi
4425   else
4426
4427     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
4428
4429   fi
4430 else
4431   { $as_echo "$as_me:$LINENO: result: yes" >&5
4432 $as_echo "yes" >&6; }
4433 fi
4434
4435 ac_ext=cpp
4436 ac_cpp='$CXXCPP $CPPFLAGS'
4437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4440
4441
4442
4443     { $as_echo "$as_me:$LINENO: checking for python" >&5
4444 $as_echo_n "checking for python... " >&6; }
4445     python="python"
4446     found="no"
4447     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
4448         exe=`
4449     ## which doesn't work in ash, if /usr/bin/which isn't installed
4450     ## type -p doesn't work in ash
4451     ## command -v doesn't work in zsh
4452     ## command -v "$r" 2>&1
4453     ## this test should work in ash, bash, pdksh (ksh), zsh
4454     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4455 `
4456         if ! $exe -V > /dev/null 2>&1 ; then
4457             continue
4458         fi
4459         ver=`
4460     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4461     ##
4462     ## ARG.
4463     ## Workaround for broken Debian gcc version string:
4464     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4465     ##
4466     ## -V: Workaround for python
4467
4468     #dnl
4469
4470     ## Assume and hunt for dotted version multiplet.
4471     ## use eval trickery, because we cannot use multi-level $() instead of ``
4472     ## for compatibility reasons.
4473
4474     ## grab the first version number in  --version output.
4475     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4476                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4477                 head -n 1 |
4478                 tr ' ' '\n' |
4479                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4480                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4481                 head -n 1\`\"
4482
4483     if test -z "$_ver"; then
4484         ## If empty, try date [fontforge]
4485         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4486             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4487             | head -n 1 \
4488             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4489     fi
4490     echo "$_ver"
4491     #dnl
4492 `
4493         num=`
4494     echo "$ver" | awk -F. '
4495     {
4496       if ($3) {three = $3}
4497       else {three = 0}
4498     }
4499     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4500 `
4501         req=`
4502     echo "2.4" | awk -F. '
4503     {
4504       if ($3) {three = $3}
4505       else {three = 0}
4506     }
4507     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4508 `
4509         sup=`
4510     echo "3.0" | awk -F. '
4511     {
4512       if ($3) {three = $3}
4513       else {three = 0}
4514     }
4515     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4516 `
4517         if test -n "2.4" && test "$num" -lt "$req"; then
4518             python="$r >= 2.4 (installed: $ver)"
4519             continue
4520         else
4521             if test -n "3.0" && test "$num" -ge "$sup"; then
4522                 python="$r < 3.0 (installed: $ver)"
4523                 continue
4524             else
4525                 python=$r
4526                 found=$r
4527                 break
4528             fi
4529         fi
4530     done
4531     { $as_echo "$as_me:$LINENO: result: $found" >&5
4532 $as_echo "$found" >&6; }
4533     if test "$found" != "no"; then
4534         { $as_echo "$as_me:$LINENO: checking $python version" >&5
4535 $as_echo_n "checking $python version... " >&6; }
4536         { $as_echo "$as_me:$LINENO: result: $ver" >&5
4537 $as_echo "$ver" >&6; }
4538         PYTHON=$found
4539     else
4540
4541     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4542
4543     fi
4544     # Extract the first word of "$PYTHON", so it can be a program name with args.
4545 set dummy $PYTHON; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_path_PYTHON+set}" = set; then
4549   $as_echo_n "(cached) " >&6
4550 else
4551   case $PYTHON in
4552   [\\/]* | ?:[\\/]*)
4553   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4554   ;;
4555   *)
4556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   for ac_exec_ext in '' $ac_executable_extensions; do
4562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568 done
4569 IFS=$as_save_IFS
4570
4571   ;;
4572 esac
4573 fi
4574 PYTHON=$ac_cv_path_PYTHON
4575 if test -n "$PYTHON"; then
4576   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4577 $as_echo "$PYTHON" >&6; }
4578 else
4579   { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584
4585
4586 # this checks if we have GNU C by compiling a program with
4587 # __GNUC__, but that macro now unofficially means "the compiler
4588 # supports the GNU C extensions" -- the intel C compiler and clang
4589 # both support __GNUC__!
4590 ac_ext=cpp
4591 ac_cpp='$CXXCPP $CPPFLAGS'
4592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595 if test -z "$CXX"; then
4596   if test -n "$CCC"; then
4597     CXX=$CCC
4598   else
4599     if test -n "$ac_tool_prefix"; then
4600   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4601   do
4602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_CXX+set}" = set; then
4607   $as_echo_n "(cached) " >&6
4608 else
4609   if test -n "$CXX"; then
4610   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 CXX=$ac_cv_prog_CXX
4630 if test -n "$CXX"; then
4631   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4632 $as_echo "$CXX" >&6; }
4633 else
4634   { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639     test -n "$CXX" && break
4640   done
4641 fi
4642 if test -z "$CXX"; then
4643   ac_ct_CXX=$CXX
4644   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4645 do
4646   # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4651   $as_echo_n "(cached) " >&6
4652 else
4653   if test -n "$ac_ct_CXX"; then
4654   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_prog_ac_ct_CXX="$ac_prog"
4664     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4674 if test -n "$ac_ct_CXX"; then
4675   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4676 $as_echo "$ac_ct_CXX" >&6; }
4677 else
4678   { $as_echo "$as_me:$LINENO: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683   test -n "$ac_ct_CXX" && break
4684 done
4685
4686   if test "x$ac_ct_CXX" = x; then
4687     CXX="g++"
4688   else
4689     case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695     CXX=$ac_ct_CXX
4696   fi
4697 fi
4698
4699   fi
4700 fi
4701 # Provide some information about the compiler.
4702 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4703 set X $ac_compile
4704 ac_compiler=$2
4705 { (ac_try="$ac_compiler --version >&5"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_compiler --version >&5") 2>&5
4713   ac_status=$?
4714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }
4716 { (ac_try="$ac_compiler -v >&5"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723   (eval "$ac_compiler -v >&5") 2>&5
4724   ac_status=$?
4725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }
4727 { (ac_try="$ac_compiler -V >&5"
4728 case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734   (eval "$ac_compiler -V >&5") 2>&5
4735   ac_status=$?
4736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }
4738
4739 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4741 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4742   $as_echo_n "(cached) " >&6
4743 else
4744   cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750
4751 int
4752 main ()
4753 {
4754 #ifndef __GNUC__
4755        choke me
4756 #endif
4757
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4764 case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769 $as_echo "$ac_try_echo") >&5
4770   (eval "$ac_compile") 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } && {
4777          test -z "$ac_cxx_werror_flag" ||
4778          test ! -s conftest.err
4779        } && test -s conftest.$ac_objext; then
4780   ac_compiler_gnu=yes
4781 else
4782   $as_echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         ac_compiler_gnu=no
4786 fi
4787
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4790
4791 fi
4792 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4793 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4794 if test $ac_compiler_gnu = yes; then
4795   GXX=yes
4796 else
4797   GXX=
4798 fi
4799 ac_test_CXXFLAGS=${CXXFLAGS+set}
4800 ac_save_CXXFLAGS=$CXXFLAGS
4801 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4802 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4803 if test "${ac_cv_prog_cxx_g+set}" = set; then
4804   $as_echo_n "(cached) " >&6
4805 else
4806   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4807    ac_cxx_werror_flag=yes
4808    ac_cv_prog_cxx_g=no
4809    CXXFLAGS="-g"
4810    cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816
4817 int
4818 main ()
4819 {
4820
4821   ;
4822   return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4827 case "(($ac_try" in
4828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829   *) ac_try_echo=$ac_try;;
4830 esac
4831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4832 $as_echo "$ac_try_echo") >&5
4833   (eval "$ac_compile") 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } && {
4840          test -z "$ac_cxx_werror_flag" ||
4841          test ! -s conftest.err
4842        } && test -s conftest.$ac_objext; then
4843   ac_cv_prog_cxx_g=yes
4844 else
4845   $as_echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4847
4848         CXXFLAGS=""
4849       cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855
4856 int
4857 main ()
4858 {
4859
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (ac_try="$ac_compile"
4866 case "(($ac_try" in
4867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868   *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872   (eval "$ac_compile") 2>conftest.er1
4873   ac_status=$?
4874   grep -v '^ *+' conftest.er1 >conftest.err
4875   rm -f conftest.er1
4876   cat conftest.err >&5
4877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } && {
4879          test -z "$ac_cxx_werror_flag" ||
4880          test ! -s conftest.err
4881        } && test -s conftest.$ac_objext; then
4882   :
4883 else
4884   $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4888          CXXFLAGS="-g"
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
4896 int
4897 main ()
4898 {
4899
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4906 case "(($ac_try" in
4907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908   *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912   (eval "$ac_compile") 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } && {
4919          test -z "$ac_cxx_werror_flag" ||
4920          test ! -s conftest.err
4921        } && test -s conftest.$ac_objext; then
4922   ac_cv_prog_cxx_g=yes
4923 else
4924   $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927
4928 fi
4929
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 fi
4932
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 fi
4935
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4938 fi
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4940 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4941 if test "$ac_test_CXXFLAGS" = set; then
4942   CXXFLAGS=$ac_save_CXXFLAGS
4943 elif test $ac_cv_prog_cxx_g = yes; then
4944   if test "$GXX" = yes; then
4945     CXXFLAGS="-g -O2"
4946   else
4947     CXXFLAGS="-g"
4948   fi
4949 else
4950   if test "$GXX" = yes; then
4951     CXXFLAGS="-O2"
4952   else
4953     CXXFLAGS=
4954   fi
4955 fi
4956 ac_ext=cpp
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961
4962
4963 ac_ext=cpp
4964 ac_cpp='$CXXCPP $CPPFLAGS'
4965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4969 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4970 if test -z "$CXXCPP"; then
4971   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4972   $as_echo_n "(cached) " >&6
4973 else
4974       # Double quotes because CXXCPP needs to be expanded
4975     for CXXCPP in "$CXX -E" "/lib/cpp"
4976     do
4977       ac_preproc_ok=false
4978 for ac_cxx_preproc_warn_flag in '' yes
4979 do
4980   # Use a header file that comes with gcc, so configuring glibc
4981   # with a fresh cross-compiler works.
4982   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983   # <limits.h> exists even on freestanding compilers.
4984   # On the NeXT, cc -E runs the code through the compiler's parser,
4985   # not just through cpp. "Syntax error" is here to catch this case.
4986   cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997                      Syntax error
4998 _ACEOF
4999 if { (ac_try="$ac_cpp conftest.$ac_ext"
5000 case "(($ac_try" in
5001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002   *) ac_try_echo=$ac_try;;
5003 esac
5004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005 $as_echo "$ac_try_echo") >&5
5006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5007   ac_status=$?
5008   grep -v '^ *+' conftest.er1 >conftest.err
5009   rm -f conftest.er1
5010   cat conftest.err >&5
5011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); } >/dev/null && {
5013          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5014          test ! -s conftest.err
5015        }; then
5016   :
5017 else
5018   $as_echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021   # Broken: fails on valid input.
5022 continue
5023 fi
5024
5025 rm -f conftest.err conftest.$ac_ext
5026
5027   # OK, works on sane cases.  Now check whether nonexistent headers
5028   # can be detected and how.
5029   cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #include <ac_nonexistent.h>
5036 _ACEOF
5037 if { (ac_try="$ac_cpp conftest.$ac_ext"
5038 case "(($ac_try" in
5039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040   *) ac_try_echo=$ac_try;;
5041 esac
5042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5043 $as_echo "$ac_try_echo") >&5
5044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } >/dev/null && {
5051          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5052          test ! -s conftest.err
5053        }; then
5054   # Broken: success on invalid input.
5055 continue
5056 else
5057   $as_echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060   # Passes both tests.
5061 ac_preproc_ok=:
5062 break
5063 fi
5064
5065 rm -f conftest.err conftest.$ac_ext
5066
5067 done
5068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069 rm -f conftest.err conftest.$ac_ext
5070 if $ac_preproc_ok; then
5071   break
5072 fi
5073
5074     done
5075     ac_cv_prog_CXXCPP=$CXXCPP
5076
5077 fi
5078   CXXCPP=$ac_cv_prog_CXXCPP
5079 else
5080   ac_cv_prog_CXXCPP=$CXXCPP
5081 fi
5082 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5083 $as_echo "$CXXCPP" >&6; }
5084 ac_preproc_ok=false
5085 for ac_cxx_preproc_warn_flag in '' yes
5086 do
5087   # Use a header file that comes with gcc, so configuring glibc
5088   # with a fresh cross-compiler works.
5089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090   # <limits.h> exists even on freestanding compilers.
5091   # On the NeXT, cc -E runs the code through the compiler's parser,
5092   # not just through cpp. "Syntax error" is here to catch this case.
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 #ifdef __STDC__
5100 # include <limits.h>
5101 #else
5102 # include <assert.h>
5103 #endif
5104                      Syntax error
5105 _ACEOF
5106 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 case "(($ac_try" in
5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109   *) ac_try_echo=$ac_try;;
5110 esac
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114   ac_status=$?
5115   grep -v '^ *+' conftest.er1 >conftest.err
5116   rm -f conftest.er1
5117   cat conftest.err >&5
5118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } >/dev/null && {
5120          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5121          test ! -s conftest.err
5122        }; then
5123   :
5124 else
5125   $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128   # Broken: fails on valid input.
5129 continue
5130 fi
5131
5132 rm -f conftest.err conftest.$ac_ext
5133
5134   # OK, works on sane cases.  Now check whether nonexistent headers
5135   # can be detected and how.
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <ac_nonexistent.h>
5143 _ACEOF
5144 if { (ac_try="$ac_cpp conftest.$ac_ext"
5145 case "(($ac_try" in
5146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147   *) ac_try_echo=$ac_try;;
5148 esac
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } >/dev/null && {
5158          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5159          test ! -s conftest.err
5160        }; then
5161   # Broken: success on invalid input.
5162 continue
5163 else
5164   $as_echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167   # Passes both tests.
5168 ac_preproc_ok=:
5169 break
5170 fi
5171
5172 rm -f conftest.err conftest.$ac_ext
5173
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5178   :
5179 else
5180   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5183 See \`config.log' for more details." >&5
5184 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&2;}
5186    { (exit 1); exit 1; }; }; }
5187 fi
5188
5189 ac_ext=cpp
5190 ac_cpp='$CXXCPP $CPPFLAGS'
5191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194
5195
5196 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5197 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5198 if test "${ac_cv_path_GREP+set}" = set; then
5199   $as_echo_n "(cached) " >&6
5200 else
5201   if test -z "$GREP"; then
5202   ac_path_GREP_found=false
5203   # Loop through the user's path and test for each of PROGNAME-LIST
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209   for ac_prog in grep ggrep; do
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5212       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5213 # Check for GNU ac_path_GREP and select it if it is found.
5214   # Check for GNU $ac_path_GREP
5215 case `"$ac_path_GREP" --version 2>&1` in
5216 *GNU*)
5217   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5218 *)
5219   ac_count=0
5220   $as_echo_n 0123456789 >"conftest.in"
5221   while :
5222   do
5223     cat "conftest.in" "conftest.in" >"conftest.tmp"
5224     mv "conftest.tmp" "conftest.in"
5225     cp "conftest.in" "conftest.nl"
5226     $as_echo 'GREP' >> "conftest.nl"
5227     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5228     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5229     ac_count=`expr $ac_count + 1`
5230     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5231       # Best one so far, save it but keep looking for a better one
5232       ac_cv_path_GREP="$ac_path_GREP"
5233       ac_path_GREP_max=$ac_count
5234     fi
5235     # 10*(2^10) chars as input seems more than enough
5236     test $ac_count -gt 10 && break
5237   done
5238   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5239 esac
5240
5241       $ac_path_GREP_found && break 3
5242     done
5243   done
5244 done
5245 IFS=$as_save_IFS
5246   if test -z "$ac_cv_path_GREP"; then
5247     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5248 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5249    { (exit 1); exit 1; }; }
5250   fi
5251 else
5252   ac_cv_path_GREP=$GREP
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5257 $as_echo "$ac_cv_path_GREP" >&6; }
5258  GREP="$ac_cv_path_GREP"
5259
5260
5261 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5262 $as_echo_n "checking for egrep... " >&6; }
5263 if test "${ac_cv_path_EGREP+set}" = set; then
5264   $as_echo_n "(cached) " >&6
5265 else
5266   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5267    then ac_cv_path_EGREP="$GREP -E"
5268    else
5269      if test -z "$EGREP"; then
5270   ac_path_EGREP_found=false
5271   # Loop through the user's path and test for each of PROGNAME-LIST
5272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277   for ac_prog in egrep; do
5278     for ac_exec_ext in '' $ac_executable_extensions; do
5279       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5280       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5281 # Check for GNU ac_path_EGREP and select it if it is found.
5282   # Check for GNU $ac_path_EGREP
5283 case `"$ac_path_EGREP" --version 2>&1` in
5284 *GNU*)
5285   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5286 *)
5287   ac_count=0
5288   $as_echo_n 0123456789 >"conftest.in"
5289   while :
5290   do
5291     cat "conftest.in" "conftest.in" >"conftest.tmp"
5292     mv "conftest.tmp" "conftest.in"
5293     cp "conftest.in" "conftest.nl"
5294     $as_echo 'EGREP' >> "conftest.nl"
5295     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5296     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5297     ac_count=`expr $ac_count + 1`
5298     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5299       # Best one so far, save it but keep looking for a better one
5300       ac_cv_path_EGREP="$ac_path_EGREP"
5301       ac_path_EGREP_max=$ac_count
5302     fi
5303     # 10*(2^10) chars as input seems more than enough
5304     test $ac_count -gt 10 && break
5305   done
5306   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5307 esac
5308
5309       $ac_path_EGREP_found && break 3
5310     done
5311   done
5312 done
5313 IFS=$as_save_IFS
5314   if test -z "$ac_cv_path_EGREP"; then
5315     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5316 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5317    { (exit 1); exit 1; }; }
5318   fi
5319 else
5320   ac_cv_path_EGREP=$EGREP
5321 fi
5322
5323    fi
5324 fi
5325 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5326 $as_echo "$ac_cv_path_EGREP" >&6; }
5327  EGREP="$ac_cv_path_EGREP"
5328
5329
5330
5331
5332     cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338 #ifdef __clang__
5339        yes
5340        #endif
5341
5342 _ACEOF
5343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344   $EGREP "yes" >/dev/null 2>&1; then
5345   HAS_CLANG=yes
5346 else
5347   HAS_CLANG=no
5348 fi
5349 rm -f conftest*
5350
5351
5352     if test "$HAS_CLANG" = "no"; then
5353         if test "$GCC" = "yes"; then
5354
5355     r="`eval echo '$'"CC"`"
5356     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5357 $as_echo_n "checking $r version... " >&6; }
5358     exe=`
5359     ## which doesn't work in ash, if /usr/bin/which isn't installed
5360     ## type -p doesn't work in ash
5361     ## command -v doesn't work in zsh
5362     ## command -v "$r" 2>&1
5363     ## this test should work in ash, bash, pdksh (ksh), zsh
5364     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5365 `
5366     if test -n ""; then
5367         ver=""
5368     else
5369         ver=`
5370     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5371     ##
5372     ## ARG.
5373     ## Workaround for broken Debian gcc version string:
5374     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5375     ##
5376     ## -V: Workaround for python
5377
5378     #dnl
5379
5380     ## Assume and hunt for dotted version multiplet.
5381     ## use eval trickery, because we cannot use multi-level $() instead of ``
5382     ## for compatibility reasons.
5383
5384     ## grab the first version number in  --version output.
5385     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5386                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5387                 head -n 1 |
5388                 tr ' ' '\n' |
5389                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5390                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5391                 head -n 1\`\"
5392
5393     if test -z "$_ver"; then
5394         ## If empty, try date [fontforge]
5395         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5396             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5397             | head -n 1 \
5398             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5399     fi
5400     echo "$_ver"
5401     #dnl
5402 `
5403     fi
5404     num=`
5405     echo "$ver" | awk -F. '
5406     {
5407       if ($3) {three = $3}
5408       else {three = 0}
5409     }
5410     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5411 `
5412     req=`
5413     echo "3.4" | awk -F. '
5414     {
5415       if ($3) {three = $3}
5416       else {three = 0}
5417     }
5418     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5419 `
5420     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5421 $as_echo "$ver" >&6; }
5422     if test "$num" -lt "$req"; then
5423
5424     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5425
5426     fi
5427     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5428     eval `echo $vervar=$num`
5429 ##    AC_SUBST(`eval echo $vervar`)
5430
5431         else
5432             warn="$CC (Please install *GNU* cc)"
5433
5434     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5435
5436         fi
5437     fi
5438     # no else, we're fine with any clang
5439
5440
5441
5442     ac_ext=cpp
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447 if test -z "$CXX"; then
5448   if test -n "$CCC"; then
5449     CXX=$CCC
5450   else
5451     if test -n "$ac_tool_prefix"; then
5452   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5453   do
5454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_CXX+set}" = set; then
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if test -n "$CXX"; then
5462   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469   for ac_exec_ext in '' $ac_executable_extensions; do
5470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 CXX=$ac_cv_prog_CXX
5482 if test -n "$CXX"; then
5483   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5484 $as_echo "$CXX" >&6; }
5485 else
5486   { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491     test -n "$CXX" && break
5492   done
5493 fi
5494 if test -z "$CXX"; then
5495   ac_ct_CXX=$CXX
5496   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5497 do
5498   # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -n "$ac_ct_CXX"; then
5506   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513   for ac_exec_ext in '' $ac_executable_extensions; do
5514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515     ac_cv_prog_ac_ct_CXX="$ac_prog"
5516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5526 if test -n "$ac_ct_CXX"; then
5527   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5528 $as_echo "$ac_ct_CXX" >&6; }
5529 else
5530   { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535   test -n "$ac_ct_CXX" && break
5536 done
5537
5538   if test "x$ac_ct_CXX" = x; then
5539     CXX="g++"
5540   else
5541     case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547     CXX=$ac_ct_CXX
5548   fi
5549 fi
5550
5551   fi
5552 fi
5553 # Provide some information about the compiler.
5554 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5555 set X $ac_compile
5556 ac_compiler=$2
5557 { (ac_try="$ac_compiler --version >&5"
5558 case "(($ac_try" in
5559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560   *) ac_try_echo=$ac_try;;
5561 esac
5562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5563 $as_echo "$ac_try_echo") >&5
5564   (eval "$ac_compiler --version >&5") 2>&5
5565   ac_status=$?
5566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); }
5568 { (ac_try="$ac_compiler -v >&5"
5569 case "(($ac_try" in
5570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571   *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575   (eval "$ac_compiler -v >&5") 2>&5
5576   ac_status=$?
5577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }
5579 { (ac_try="$ac_compiler -V >&5"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585 $as_echo "$ac_try_echo") >&5
5586   (eval "$ac_compiler -V >&5") 2>&5
5587   ac_status=$?
5588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }
5590
5591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5592 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5593 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5594   $as_echo_n "(cached) " >&6
5595 else
5596   cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h.  */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h.  */
5602
5603 int
5604 main ()
5605 {
5606 #ifndef __GNUC__
5607        choke me
5608 #endif
5609
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5616 case "(($ac_try" in
5617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618   *) ac_try_echo=$ac_try;;
5619 esac
5620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5621 $as_echo "$ac_try_echo") >&5
5622   (eval "$ac_compile") 2>conftest.er1
5623   ac_status=$?
5624   grep -v '^ *+' conftest.er1 >conftest.err
5625   rm -f conftest.er1
5626   cat conftest.err >&5
5627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); } && {
5629          test -z "$ac_cxx_werror_flag" ||
5630          test ! -s conftest.err
5631        } && test -s conftest.$ac_objext; then
5632   ac_compiler_gnu=yes
5633 else
5634   $as_echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637         ac_compiler_gnu=no
5638 fi
5639
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5642
5643 fi
5644 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5645 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5646 if test $ac_compiler_gnu = yes; then
5647   GXX=yes
5648 else
5649   GXX=
5650 fi
5651 ac_test_CXXFLAGS=${CXXFLAGS+set}
5652 ac_save_CXXFLAGS=$CXXFLAGS
5653 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5654 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5655 if test "${ac_cv_prog_cxx_g+set}" = set; then
5656   $as_echo_n "(cached) " >&6
5657 else
5658   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5659    ac_cxx_werror_flag=yes
5660    ac_cv_prog_cxx_g=no
5661    CXXFLAGS="-g"
5662    cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681   *) ac_try_echo=$ac_try;;
5682 esac
5683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5684 $as_echo "$ac_try_echo") >&5
5685   (eval "$ac_compile") 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } && {
5692          test -z "$ac_cxx_werror_flag" ||
5693          test ! -s conftest.err
5694        } && test -s conftest.$ac_objext; then
5695   ac_cv_prog_cxx_g=yes
5696 else
5697   $as_echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700         CXXFLAGS=""
5701       cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h.  */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h.  */
5707
5708 int
5709 main ()
5710 {
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724   (eval "$ac_compile") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } && {
5731          test -z "$ac_cxx_werror_flag" ||
5732          test ! -s conftest.err
5733        } && test -s conftest.$ac_objext; then
5734   :
5735 else
5736   $as_echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5740          CXXFLAGS="-g"
5741          cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h.  */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h.  */
5747
5748 int
5749 main ()
5750 {
5751
5752   ;
5753   return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5758 case "(($ac_try" in
5759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760   *) ac_try_echo=$ac_try;;
5761 esac
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764   (eval "$ac_compile") 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } && {
5771          test -z "$ac_cxx_werror_flag" ||
5772          test ! -s conftest.err
5773        } && test -s conftest.$ac_objext; then
5774   ac_cv_prog_cxx_g=yes
5775 else
5776   $as_echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779
5780 fi
5781
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 fi
5784
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5790 fi
5791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5792 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5793 if test "$ac_test_CXXFLAGS" = set; then
5794   CXXFLAGS=$ac_save_CXXFLAGS
5795 elif test $ac_cv_prog_cxx_g = yes; then
5796   if test "$GXX" = yes; then
5797     CXXFLAGS="-g -O2"
5798   else
5799     CXXFLAGS="-g"
5800   fi
5801 else
5802   if test "$GXX" = yes; then
5803     CXXFLAGS="-O2"
5804   else
5805     CXXFLAGS=
5806   fi
5807 fi
5808 ac_ext=cpp
5809 ac_cpp='$CXXCPP $CPPFLAGS'
5810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5813
5814
5815
5816     r="`eval echo '$'"CXX"`"
5817     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5818         true
5819     else
5820         ##STEPMAKE_WARN(cannot find . )
5821         false
5822     fi
5823
5824     if test $? -ne 0; then
5825
5826     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5827
5828         if test "REQUIRED" = "REQUIRED"; then
5829             command="echo ERROR: c++ not found"
5830             # abort configure process here?
5831         else
5832             command="- echo c++ not found"
5833         fi
5834         eval "CXX"='$command'
5835         false
5836     else
5837         true
5838     fi
5839
5840
5841     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5842
5843
5844
5845
5846
5847
5848     cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h.  */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h.  */
5854 #ifdef __clang__
5855        yes
5856        #endif
5857
5858 _ACEOF
5859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5860   $EGREP "yes" >/dev/null 2>&1; then
5861   HAS_CLANG=yes
5862 else
5863   HAS_CLANG=no
5864 fi
5865 rm -f conftest*
5866
5867
5868     if test "$HAS_CLANG" = "no"; then
5869         if test "$GXX" = "yes"; then
5870
5871     r="`eval echo '$'"CXX"`"
5872     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5873 $as_echo_n "checking $r version... " >&6; }
5874     exe=`
5875     ## which doesn't work in ash, if /usr/bin/which isn't installed
5876     ## type -p doesn't work in ash
5877     ## command -v doesn't work in zsh
5878     ## command -v "$r" 2>&1
5879     ## this test should work in ash, bash, pdksh (ksh), zsh
5880     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5881 `
5882     if test -n ""; then
5883         ver=""
5884     else
5885         ver=`
5886     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5887     ##
5888     ## ARG.
5889     ## Workaround for broken Debian gcc version string:
5890     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5891     ##
5892     ## -V: Workaround for python
5893
5894     #dnl
5895
5896     ## Assume and hunt for dotted version multiplet.
5897     ## use eval trickery, because we cannot use multi-level $() instead of ``
5898     ## for compatibility reasons.
5899
5900     ## grab the first version number in  --version output.
5901     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5902                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5903                 head -n 1 |
5904                 tr ' ' '\n' |
5905                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5906                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5907                 head -n 1\`\"
5908
5909     if test -z "$_ver"; then
5910         ## If empty, try date [fontforge]
5911         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5912             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5913             | head -n 1 \
5914             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5915     fi
5916     echo "$_ver"
5917     #dnl
5918 `
5919     fi
5920     num=`
5921     echo "$ver" | awk -F. '
5922     {
5923       if ($3) {three = $3}
5924       else {three = 0}
5925     }
5926     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5927 `
5928     req=`
5929     echo "3.4" | awk -F. '
5930     {
5931       if ($3) {three = $3}
5932       else {three = 0}
5933     }
5934     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5935 `
5936     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5937 $as_echo "$ver" >&6; }
5938     if test "$num" -lt "$req"; then
5939
5940     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5941
5942     fi
5943     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5944     eval `echo $vervar=$num`
5945 ##    AC_SUBST(`eval echo $vervar`)
5946
5947         else
5948             warn="$CXX (Please install *GNU* c++)"
5949
5950     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5951
5952         fi
5953     fi
5954     # no else, we're fine with any clang
5955
5956
5957     { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5958 $as_echo_n "checking options for known g++ bugs... " >&6; }
5959     case "$GXX:$CXX_VERSION" in
5960         yes:400600[0-2])
5961             { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5962 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5963             CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5964             ;;
5965         yes:400700?)
5966             { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5967 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5968             CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5969             ;;
5970         *) { $as_echo "$as_me:$LINENO: result: none" >&5
5971 $as_echo "none" >&6; }
5972     esac
5973
5974
5975
5976     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5977 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5978 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5979   $as_echo_n "(cached) " >&6
5980 else
5981   cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h.  */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h.  */
5987
5988     template <class T> struct foo { static int baz; };
5989     template <class T> int foo<T>::baz = 1;
5990
5991 int
5992 main ()
5993 {
5994  return foo<int>::baz;
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext conftest$ac_exeext
6000 if { (ac_try="$ac_link"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007   (eval "$ac_link") 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } && {
6014          test -z "$ac_cxx_werror_flag" ||
6015          test ! -s conftest.err
6016        } && test -s conftest$ac_exeext && {
6017          test "$cross_compiling" = yes ||
6018          $as_test_x conftest$ac_exeext
6019        }; then
6020   stepmake_cv_need_explicit_instantiation=no
6021 else
6022   $as_echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025         stepmake_cv_need_explicit_instantiation=yes
6026 fi
6027
6028 rm -rf conftest.dSYM
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030       conftest$ac_exeext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
6033 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
6034     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
6035         cat >>confdefs.h <<\_ACEOF
6036 #define NEED_EXPLICIT_INSTANTIATION 1
6037 _ACEOF
6038
6039     fi
6040
6041
6042     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
6043 $as_echo_n "checking for stl.data () method... " >&6; }
6044 if test "${stepmake_cv_stl_data_method+set}" = set; then
6045   $as_echo_n "(cached) " >&6
6046 else
6047   cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053
6054 #include <vector>
6055 using namespace std;
6056 vector <int> v;
6057 void *p = v.data ();
6058
6059 int
6060 main ()
6061 {
6062
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071   *) ac_try_echo=$ac_try;;
6072 esac
6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074 $as_echo "$ac_try_echo") >&5
6075   (eval "$ac_compile") 2>conftest.er1
6076   ac_status=$?
6077   grep -v '^ *+' conftest.er1 >conftest.err
6078   rm -f conftest.er1
6079   cat conftest.err >&5
6080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); } && {
6082          test -z "$ac_cxx_werror_flag" ||
6083          test ! -s conftest.err
6084        } && test -s conftest.$ac_objext; then
6085   stepmake_cv_stl_data_method=yes
6086 else
6087   $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090         stepmake_cv_stl_data_method=no
6091 fi
6092
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 fi
6095 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
6096 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6097     if test $stepmake_cv_stl_data_method = yes; then
6098
6099 cat >>confdefs.h <<\_ACEOF
6100 #define HAVE_STL_DATA_METHOD 1
6101 _ACEOF
6102
6103     fi
6104
6105
6106
6107     for ac_prog in ar
6108 do
6109   # Extract the first word of "$ac_prog", so it can be a program name with args.
6110 set dummy $ac_prog; ac_word=$2
6111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_AR+set}" = set; then
6114   $as_echo_n "(cached) " >&6
6115 else
6116   if test -n "$AR"; then
6117   ac_cv_prog_AR="$AR" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124   for ac_exec_ext in '' $ac_executable_extensions; do
6125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126     ac_cv_prog_AR="$ac_prog"
6127     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 AR=$ac_cv_prog_AR
6137 if test -n "$AR"; then
6138   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6139 $as_echo "$AR" >&6; }
6140 else
6141   { $as_echo "$as_me:$LINENO: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146   test -n "$AR" && break
6147 done
6148 test -n "$AR" || AR="no"
6149
6150
6151
6152     r="`eval echo '$'"AR"`"
6153     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6154         true
6155     else
6156         ##STEPMAKE_WARN(cannot find . )
6157         false
6158     fi
6159
6160     if test $? -ne 0; then
6161
6162     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6163
6164         if test "REQUIRED" = "REQUIRED"; then
6165             command="echo ERROR: ar not found"
6166             # abort configure process here?
6167         else
6168             command="- echo ar not found"
6169         fi
6170         eval "AR"='$command'
6171         false
6172     else
6173         true
6174     fi
6175
6176     if test $? -eq 0 -a -n ""; then
6177
6178     r="`eval echo '$'"AR"`"
6179     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6180 $as_echo_n "checking $r version... " >&6; }
6181     exe=`
6182     ## which doesn't work in ash, if /usr/bin/which isn't installed
6183     ## type -p doesn't work in ash
6184     ## command -v doesn't work in zsh
6185     ## command -v "$r" 2>&1
6186     ## this test should work in ash, bash, pdksh (ksh), zsh
6187     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6188 `
6189     if test -n ""; then
6190         ver=""
6191     else
6192         ver=`
6193     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6194     ##
6195     ## ARG.
6196     ## Workaround for broken Debian gcc version string:
6197     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6198     ##
6199     ## -V: Workaround for python
6200
6201     #dnl
6202
6203     ## Assume and hunt for dotted version multiplet.
6204     ## use eval trickery, because we cannot use multi-level $() instead of ``
6205     ## for compatibility reasons.
6206
6207     ## grab the first version number in  --version output.
6208     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6209                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6210                 head -n 1 |
6211                 tr ' ' '\n' |
6212                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6213                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6214                 head -n 1\`\"
6215
6216     if test -z "$_ver"; then
6217         ## If empty, try date [fontforge]
6218         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6219             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6220             | head -n 1 \
6221             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6222     fi
6223     echo "$_ver"
6224     #dnl
6225 `
6226     fi
6227     num=`
6228     echo "$ver" | awk -F. '
6229     {
6230       if ($3) {three = $3}
6231       else {three = 0}
6232     }
6233     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6234 `
6235     req=`
6236     echo "" | awk -F. '
6237     {
6238       if ($3) {three = $3}
6239       else {three = 0}
6240     }
6241     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6242 `
6243     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6244 $as_echo "$ver" >&6; }
6245     if test "$num" -lt "$req"; then
6246
6247     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6248
6249     fi
6250     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6251     eval `echo $vervar=$num`
6252 ##    AC_SUBST(`eval echo $vervar`)
6253
6254     fi
6255
6256     if test -n "$ac_tool_prefix"; then
6257   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$RANLIB"; then
6265   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272   for ac_exec_ext in '' $ac_executable_extensions; do
6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6288 else
6289   { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293
6294 fi
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296   ac_ct_RANLIB=$RANLIB
6297   # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$ac_ct_RANLIB"; then
6305   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_ac_ct_RANLIB="ranlib"
6315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6328 else
6329   { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333   if test "x$ac_ct_RANLIB" = x; then
6334     RANLIB=":"
6335   else
6336     case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342     RANLIB=$ac_ct_RANLIB
6343   fi
6344 else
6345   RANLIB="$ac_cv_prog_RANLIB"
6346 fi
6347
6348
6349
6350     r="`eval echo '$'"RANLIB"`"
6351     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6352         true
6353     else
6354         ##STEPMAKE_WARN(cannot find . )
6355         false
6356     fi
6357
6358     if test $? -ne 0; then
6359
6360     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6361
6362         if test "REQUIRED" = "REQUIRED"; then
6363             command="echo ERROR: ranlib not found"
6364             # abort configure process here?
6365         else
6366             command="- echo ranlib not found"
6367         fi
6368         eval "RANLIB"='$command'
6369         false
6370     else
6371         true
6372     fi
6373
6374
6375
6376
6377 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6379 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6380   $as_echo_n "(cached) " >&6
6381 else
6382   ac_check_lib_save_LIBS=$LIBS
6383 LIBS="-ldl  $LIBS"
6384 cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390
6391 /* Override any GCC internal prototype to avoid an error.
6392    Use char because int might match the return type of a GCC
6393    builtin and then its argument prototype would still apply.  */
6394 #ifdef __cplusplus
6395 extern "C"
6396 #endif
6397 char dlopen ();
6398 int
6399 main ()
6400 {
6401 return dlopen ();
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (ac_try="$ac_link"
6408 case "(($ac_try" in
6409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410   *) ac_try_echo=$ac_try;;
6411 esac
6412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6413 $as_echo "$ac_try_echo") >&5
6414   (eval "$ac_link") 2>conftest.er1
6415   ac_status=$?
6416   grep -v '^ *+' conftest.er1 >conftest.err
6417   rm -f conftest.er1
6418   cat conftest.err >&5
6419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); } && {
6421          test -z "$ac_cxx_werror_flag" ||
6422          test ! -s conftest.err
6423        } && test -s conftest$ac_exeext && {
6424          test "$cross_compiling" = yes ||
6425          $as_test_x conftest$ac_exeext
6426        }; then
6427   ac_cv_lib_dl_dlopen=yes
6428 else
6429   $as_echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432         ac_cv_lib_dl_dlopen=no
6433 fi
6434
6435 rm -rf conftest.dSYM
6436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437       conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6439 fi
6440 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6441 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6442 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6443   cat >>confdefs.h <<_ACEOF
6444 #define HAVE_LIBDL 1
6445 _ACEOF
6446
6447   LIBS="-ldl $LIBS"
6448
6449 fi
6450
6451
6452 for ac_func in dlopen
6453 do
6454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 $as_echo_n "checking for $ac_func... " >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458   $as_echo_n "(cached) " >&6
6459 else
6460   cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6468 #define $ac_func innocuous_$ac_func
6469
6470 /* System header to define __stub macros and hopefully few prototypes,
6471     which can conflict with char $ac_func (); below.
6472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473     <limits.h> exists even on freestanding compilers.  */
6474
6475 #ifdef __STDC__
6476 # include <limits.h>
6477 #else
6478 # include <assert.h>
6479 #endif
6480
6481 #undef $ac_func
6482
6483 /* Override any GCC internal prototype to avoid an error.
6484    Use char because int might match the return type of a GCC
6485    builtin and then its argument prototype would still apply.  */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 char $ac_func ();
6490 /* The GNU C library defines this for functions which it implements
6491     to always fail with ENOSYS.  Some functions are actually named
6492     something starting with __ and the normal name is an alias.  */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6494 choke me
6495 #endif
6496
6497 int
6498 main ()
6499 {
6500 return $ac_func ();
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6507 case "(($ac_try" in
6508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509   *) ac_try_echo=$ac_try;;
6510 esac
6511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6512 $as_echo "$ac_try_echo") >&5
6513   (eval "$ac_link") 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && {
6520          test -z "$ac_cxx_werror_flag" ||
6521          test ! -s conftest.err
6522        } && test -s conftest$ac_exeext && {
6523          test "$cross_compiling" = yes ||
6524          $as_test_x conftest$ac_exeext
6525        }; then
6526   eval "$as_ac_var=yes"
6527 else
6528   $as_echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531         eval "$as_ac_var=no"
6532 fi
6533
6534 rm -rf conftest.dSYM
6535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536       conftest$ac_exeext conftest.$ac_ext
6537 fi
6538 ac_res=`eval 'as_val=${'$as_ac_var'}
6539                  $as_echo "$as_val"'`
6540                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6541 $as_echo "$ac_res" >&6; }
6542 as_val=`eval 'as_val=${'$as_ac_var'}
6543                  $as_echo "$as_val"'`
6544    if test "x$as_val" = x""yes; then
6545   cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6547 _ACEOF
6548
6549 fi
6550 done
6551
6552
6553 # Do not use bison 1.50 and 1.75.
6554 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6555
6556     # ugh, automake: we want (and check for) bison
6557     for ac_prog in 'bison -y' byacc
6558 do
6559   # Extract the first word of "$ac_prog", so it can be a program name with args.
6560 set dummy $ac_prog; ac_word=$2
6561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if test "${ac_cv_prog_YACC+set}" = set; then
6564   $as_echo_n "(cached) " >&6
6565 else
6566   if test -n "$YACC"; then
6567   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_prog_YACC="$ac_prog"
6577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 YACC=$ac_cv_prog_YACC
6587 if test -n "$YACC"; then
6588   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6589 $as_echo "$YACC" >&6; }
6590 else
6591   { $as_echo "$as_me:$LINENO: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595
6596   test -n "$YACC" && break
6597 done
6598 test -n "$YACC" || YACC="yacc"
6599
6600
6601
6602     for ac_prog in bison
6603 do
6604   # Extract the first word of "$ac_prog", so it can be a program name with args.
6605 set dummy $ac_prog; ac_word=$2
6606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_BISON+set}" = set; then
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$BISON"; then
6612   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_BISON="$ac_prog"
6622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 BISON=$ac_cv_prog_BISON
6632 if test -n "$BISON"; then
6633   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6634 $as_echo "$BISON" >&6; }
6635 else
6636   { $as_echo "$as_me:$LINENO: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639
6640
6641   test -n "$BISON" && break
6642 done
6643 test -n "$BISON" || BISON="no"
6644
6645
6646
6647     r="`eval echo '$'"BISON"`"
6648     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6649         true
6650     else
6651         ##STEPMAKE_WARN(cannot find . )
6652         false
6653     fi
6654
6655     if test $? -ne 0; then
6656
6657     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6658
6659         if test "REQUIRED" = "REQUIRED"; then
6660             command="echo ERROR: bison not found"
6661             # abort configure process here?
6662         else
6663             command="- echo bison not found"
6664         fi
6665         eval "BISON"='$command'
6666         false
6667     else
6668         true
6669     fi
6670
6671     if test $? -eq 0 -a -n ""; then
6672
6673     r="`eval echo '$'"BISON"`"
6674     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6675 $as_echo_n "checking $r version... " >&6; }
6676     exe=`
6677     ## which doesn't work in ash, if /usr/bin/which isn't installed
6678     ## type -p doesn't work in ash
6679     ## command -v doesn't work in zsh
6680     ## command -v "$r" 2>&1
6681     ## this test should work in ash, bash, pdksh (ksh), zsh
6682     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6683 `
6684     if test -n ""; then
6685         ver=""
6686     else
6687         ver=`
6688     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6689     ##
6690     ## ARG.
6691     ## Workaround for broken Debian gcc version string:
6692     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6693     ##
6694     ## -V: Workaround for python
6695
6696     #dnl
6697
6698     ## Assume and hunt for dotted version multiplet.
6699     ## use eval trickery, because we cannot use multi-level $() instead of ``
6700     ## for compatibility reasons.
6701
6702     ## grab the first version number in  --version output.
6703     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6704                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6705                 head -n 1 |
6706                 tr ' ' '\n' |
6707                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6708                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6709                 head -n 1\`\"
6710
6711     if test -z "$_ver"; then
6712         ## If empty, try date [fontforge]
6713         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6714             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6715             | head -n 1 \
6716             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6717     fi
6718     echo "$_ver"
6719     #dnl
6720 `
6721     fi
6722     num=`
6723     echo "$ver" | awk -F. '
6724     {
6725       if ($3) {three = $3}
6726       else {three = 0}
6727     }
6728     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6729 `
6730     req=`
6731     echo "" | awk -F. '
6732     {
6733       if ($3) {three = $3}
6734       else {three = 0}
6735     }
6736     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6737 `
6738     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6739 $as_echo "$ver" >&6; }
6740     if test "$num" -lt "$req"; then
6741
6742     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6743
6744     fi
6745     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6746     eval `echo $vervar=$num`
6747 ##    AC_SUBST(`eval echo $vervar`)
6748
6749     fi
6750
6751
6752     # urg.  should test functionality rather than version.
6753     if test "$BISON" = "bison" -a -n "1.29"; then
6754
6755     r="`eval echo '$'"BISON"`"
6756     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6757 $as_echo_n "checking $r version... " >&6; }
6758     exe=`
6759     ## which doesn't work in ash, if /usr/bin/which isn't installed
6760     ## type -p doesn't work in ash
6761     ## command -v doesn't work in zsh
6762     ## command -v "$r" 2>&1
6763     ## this test should work in ash, bash, pdksh (ksh), zsh
6764     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6765 `
6766     if test -n ""; then
6767         ver=""
6768     else
6769         ver=`
6770     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6771     ##
6772     ## ARG.
6773     ## Workaround for broken Debian gcc version string:
6774     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6775     ##
6776     ## -V: Workaround for python
6777
6778     #dnl
6779
6780     ## Assume and hunt for dotted version multiplet.
6781     ## use eval trickery, because we cannot use multi-level $() instead of ``
6782     ## for compatibility reasons.
6783
6784     ## grab the first version number in  --version output.
6785     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6786                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6787                 head -n 1 |
6788                 tr ' ' '\n' |
6789                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6790                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6791                 head -n 1\`\"
6792
6793     if test -z "$_ver"; then
6794         ## If empty, try date [fontforge]
6795         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6796             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6797             | head -n 1 \
6798             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6799     fi
6800     echo "$_ver"
6801     #dnl
6802 `
6803     fi
6804     num=`
6805     echo "$ver" | awk -F. '
6806     {
6807       if ($3) {three = $3}
6808       else {three = 0}
6809     }
6810     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6811 `
6812     req=`
6813     echo "1.29" | awk -F. '
6814     {
6815       if ($3) {three = $3}
6816       else {three = 0}
6817     }
6818     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6819 `
6820     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6821 $as_echo "$ver" >&6; }
6822     if test "$num" -lt "$req"; then
6823
6824     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6825
6826     fi
6827     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6828     eval `echo $vervar=$num`
6829 ##    AC_SUBST(`eval echo $vervar`)
6830
6831     fi
6832
6833
6834     # ugh, automake: we want (and check for) flex
6835     # AC_PROG_LEX
6836     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6837
6838     # AC_PROG_LEX()
6839     # ugh, ugh
6840     ac_cv_prog_lex_root=lex.yy
6841
6842     for ac_prog in flex
6843 do
6844   # Extract the first word of "$ac_prog", so it can be a program name with args.
6845 set dummy $ac_prog; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_FLEX+set}" = set; then
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$FLEX"; then
6852   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_FLEX="$ac_prog"
6862     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 FLEX=$ac_cv_prog_FLEX
6872 if test -n "$FLEX"; then
6873   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6874 $as_echo "$FLEX" >&6; }
6875 else
6876   { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881   test -n "$FLEX" && break
6882 done
6883 test -n "$FLEX" || FLEX="no"
6884
6885
6886
6887     r="`eval echo '$'"FLEX"`"
6888     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6889         true
6890     else
6891         ##STEPMAKE_WARN(cannot find . )
6892         false
6893     fi
6894
6895     if test $? -ne 0; then
6896
6897     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6898
6899         if test "REQUIRED" = "REQUIRED"; then
6900             command="echo ERROR: flex not found"
6901             # abort configure process here?
6902         else
6903             command="- echo flex not found"
6904         fi
6905         eval "FLEX"='$command'
6906         false
6907     else
6908         true
6909     fi
6910
6911     if test $? -eq 0 -a -n ""; then
6912
6913     r="`eval echo '$'"FLEX"`"
6914     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6915 $as_echo_n "checking $r version... " >&6; }
6916     exe=`
6917     ## which doesn't work in ash, if /usr/bin/which isn't installed
6918     ## type -p doesn't work in ash
6919     ## command -v doesn't work in zsh
6920     ## command -v "$r" 2>&1
6921     ## this test should work in ash, bash, pdksh (ksh), zsh
6922     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6923 `
6924     if test -n ""; then
6925         ver=""
6926     else
6927         ver=`
6928     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6929     ##
6930     ## ARG.
6931     ## Workaround for broken Debian gcc version string:
6932     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6933     ##
6934     ## -V: Workaround for python
6935
6936     #dnl
6937
6938     ## Assume and hunt for dotted version multiplet.
6939     ## use eval trickery, because we cannot use multi-level $() instead of ``
6940     ## for compatibility reasons.
6941
6942     ## grab the first version number in  --version output.
6943     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6944                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6945                 head -n 1 |
6946                 tr ' ' '\n' |
6947                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6948                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6949                 head -n 1\`\"
6950
6951     if test -z "$_ver"; then
6952         ## If empty, try date [fontforge]
6953         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6954             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6955             | head -n 1 \
6956             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6957     fi
6958     echo "$_ver"
6959     #dnl
6960 `
6961     fi
6962     num=`
6963     echo "$ver" | awk -F. '
6964     {
6965       if ($3) {three = $3}
6966       else {three = 0}
6967     }
6968     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6969 `
6970     req=`
6971     echo "" | awk -F. '
6972     {
6973       if ($3) {three = $3}
6974       else {three = 0}
6975     }
6976     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6977 `
6978     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6979 $as_echo "$ver" >&6; }
6980     if test "$num" -lt "$req"; then
6981
6982     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
6983
6984     fi
6985     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6986     eval `echo $vervar=$num`
6987 ##    AC_SUBST(`eval echo $vervar`)
6988
6989     fi
6990
6991
6992 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6993 $as_echo_n "checking for ANSI C header files... " >&6; }
6994 if test "${ac_cv_header_stdc+set}" = set; then
6995   $as_echo_n "(cached) " >&6
6996 else
6997   cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <stdlib.h>
7004 #include <stdarg.h>
7005 #include <string.h>
7006 #include <float.h>
7007
7008 int
7009 main ()
7010 {
7011
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext
7017 if { (ac_try="$ac_compile"
7018 case "(($ac_try" in
7019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020   *) ac_try_echo=$ac_try;;
7021 esac
7022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7023 $as_echo "$ac_try_echo") >&5
7024   (eval "$ac_compile") 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } && {
7031          test -z "$ac_cxx_werror_flag" ||
7032          test ! -s conftest.err
7033        } && test -s conftest.$ac_objext; then
7034   ac_cv_header_stdc=yes
7035 else
7036   $as_echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039         ac_cv_header_stdc=no
7040 fi
7041
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043
7044 if test $ac_cv_header_stdc = yes; then
7045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 #include <string.h>
7053
7054 _ACEOF
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056   $EGREP "memchr" >/dev/null 2>&1; then
7057   :
7058 else
7059   ac_cv_header_stdc=no
7060 fi
7061 rm -f conftest*
7062
7063 fi
7064
7065 if test $ac_cv_header_stdc = yes; then
7066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7067   cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h.  */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h.  */
7073 #include <stdlib.h>
7074
7075 _ACEOF
7076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077   $EGREP "free" >/dev/null 2>&1; then
7078   :
7079 else
7080   ac_cv_header_stdc=no
7081 fi
7082 rm -f conftest*
7083
7084 fi
7085
7086 if test $ac_cv_header_stdc = yes; then
7087   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7088   if test "$cross_compiling" = yes; then
7089   :
7090 else
7091   cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 #include <ctype.h>
7098 #include <stdlib.h>
7099 #if ((' ' & 0x0FF) == 0x020)
7100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7102 #else
7103 # define ISLOWER(c) \
7104                    (('a' <= (c) && (c) <= 'i') \
7105                      || ('j' <= (c) && (c) <= 'r') \
7106                      || ('s' <= (c) && (c) <= 'z'))
7107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7108 #endif
7109
7110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7111 int
7112 main ()
7113 {
7114   int i;
7115   for (i = 0; i < 256; i++)
7116     if (XOR (islower (i), ISLOWER (i))
7117         || toupper (i) != TOUPPER (i))
7118       return 2;
7119   return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest$ac_exeext
7123 if { (ac_try="$ac_link"
7124 case "(($ac_try" in
7125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126   *) ac_try_echo=$ac_try;;
7127 esac
7128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7129 $as_echo "$ac_try_echo") >&5
7130   (eval "$ac_link") 2>&5
7131   ac_status=$?
7132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7134   { (case "(($ac_try" in
7135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136   *) ac_try_echo=$ac_try;;
7137 esac
7138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140   (eval "$ac_try") 2>&5
7141   ac_status=$?
7142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); }; }; then
7144   :
7145 else
7146   $as_echo "$as_me: program exited with status $ac_status" >&5
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 ( exit $ac_status )
7151 ac_cv_header_stdc=no
7152 fi
7153 rm -rf conftest.dSYM
7154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7155 fi
7156
7157
7158 fi
7159 fi
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7161 $as_echo "$ac_cv_header_stdc" >&6; }
7162 if test $ac_cv_header_stdc = yes; then
7163
7164 cat >>confdefs.h <<\_ACEOF
7165 #define STDC_HEADERS 1
7166 _ACEOF
7167
7168 fi
7169
7170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7181                   inttypes.h stdint.h unistd.h
7182 do
7183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7185 $as_echo_n "checking for $ac_header... " >&6; }
7186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7187   $as_echo_n "(cached) " >&6
7188 else
7189   cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195 $ac_includes_default
7196
7197 #include <$ac_header>
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203   *) ac_try_echo=$ac_try;;
7204 esac
7205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7206 $as_echo "$ac_try_echo") >&5
7207   (eval "$ac_compile") 2>conftest.er1
7208   ac_status=$?
7209   grep -v '^ *+' conftest.er1 >conftest.err
7210   rm -f conftest.er1
7211   cat conftest.err >&5
7212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } && {
7214          test -z "$ac_cxx_werror_flag" ||
7215          test ! -s conftest.err
7216        } && test -s conftest.$ac_objext; then
7217   eval "$as_ac_Header=yes"
7218 else
7219   $as_echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222         eval "$as_ac_Header=no"
7223 fi
7224
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 ac_res=`eval 'as_val=${'$as_ac_Header'}
7228                  $as_echo "$as_val"'`
7229                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7230 $as_echo "$ac_res" >&6; }
7231 as_val=`eval 'as_val=${'$as_ac_Header'}
7232                  $as_echo "$as_val"'`
7233    if test "x$as_val" = x""yes; then
7234   cat >>confdefs.h <<_ACEOF
7235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 _ACEOF
7237
7238 fi
7239
7240 done
7241
7242
7243
7244
7245 for ac_header in FlexLexer.h
7246 do
7247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7249   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7250 $as_echo_n "checking for $ac_header... " >&6; }
7251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7252   $as_echo_n "(cached) " >&6
7253 fi
7254 ac_res=`eval 'as_val=${'$as_ac_Header'}
7255                  $as_echo "$as_val"'`
7256                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7257 $as_echo "$ac_res" >&6; }
7258 else
7259   # Is the header compilable?
7260 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7261 $as_echo_n "checking $ac_header usability... " >&6; }
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h.  */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h.  */
7268 $ac_includes_default
7269 #include <$ac_header>
7270 _ACEOF
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7273 case "(($ac_try" in
7274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7275   *) ac_try_echo=$ac_try;;
7276 esac
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279   (eval "$ac_compile") 2>conftest.er1
7280   ac_status=$?
7281   grep -v '^ *+' conftest.er1 >conftest.err
7282   rm -f conftest.er1
7283   cat conftest.err >&5
7284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); } && {
7286          test -z "$ac_cxx_werror_flag" ||
7287          test ! -s conftest.err
7288        } && test -s conftest.$ac_objext; then
7289   ac_header_compiler=yes
7290 else
7291   $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294         ac_header_compiler=no
7295 fi
7296
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7299 $as_echo "$ac_header_compiler" >&6; }
7300
7301 # Is the header present?
7302 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7303 $as_echo_n "checking $ac_header presence... " >&6; }
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h.  */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h.  */
7310 #include <$ac_header>
7311 _ACEOF
7312 if { (ac_try="$ac_cpp conftest.$ac_ext"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7318 $as_echo "$ac_try_echo") >&5
7319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7320   ac_status=$?
7321   grep -v '^ *+' conftest.er1 >conftest.err
7322   rm -f conftest.er1
7323   cat conftest.err >&5
7324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); } >/dev/null && {
7326          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7327          test ! -s conftest.err
7328        }; then
7329   ac_header_preproc=yes
7330 else
7331   $as_echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334   ac_header_preproc=no
7335 fi
7336
7337 rm -f conftest.err conftest.$ac_ext
7338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7339 $as_echo "$ac_header_preproc" >&6; }
7340
7341 # So?  What about this header?
7342 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7343   yes:no: )
7344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7345 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7348     ac_header_preproc=yes
7349     ;;
7350   no:yes:* )
7351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7352 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7354 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7356 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7358 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7362 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7363
7364     ;;
7365 esac
7366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7367 $as_echo_n "checking for $ac_header... " >&6; }
7368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7369   $as_echo_n "(cached) " >&6
7370 else
7371   eval "$as_ac_Header=\$ac_header_preproc"
7372 fi
7373 ac_res=`eval 'as_val=${'$as_ac_Header'}
7374                  $as_echo "$as_val"'`
7375                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7376 $as_echo "$ac_res" >&6; }
7377
7378 fi
7379 as_val=`eval 'as_val=${'$as_ac_Header'}
7380                  $as_echo "$as_val"'`
7381    if test "x$as_val" = x""yes; then
7382   cat >>confdefs.h <<_ACEOF
7383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7384 _ACEOF
7385  true
7386 else
7387   false
7388 fi
7389
7390 done
7391
7392     if test $? -ne 0; then
7393         warn='FlexLexer.h (flex package)'
7394
7395     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7396
7397     fi
7398     # check for yyFlexLexer.yy_current_buffer,
7399     # in 2.5.4 <= flex < 2.5.29
7400     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7401 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7402 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7403   $as_echo_n "(cached) " >&6
7404 else
7405   cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411
7412 using namespace std;
7413 #include <FlexLexer.h>
7414 class yy_flex_lexer: public yyFlexLexer
7415 {
7416   public:
7417     yy_flex_lexer ()
7418     {
7419       yy_current_buffer = 0;
7420     }
7421 };
7422
7423 int
7424 main ()
7425 {
7426
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7433 case "(($ac_try" in
7434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435   *) ac_try_echo=$ac_try;;
7436 esac
7437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7438 $as_echo "$ac_try_echo") >&5
7439   (eval "$ac_compile") 2>conftest.er1
7440   ac_status=$?
7441   grep -v '^ *+' conftest.er1 >conftest.err
7442   rm -f conftest.er1
7443   cat conftest.err >&5
7444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); } && {
7446          test -z "$ac_cxx_werror_flag" ||
7447          test ! -s conftest.err
7448        } && test -s conftest.$ac_objext; then
7449   stepmake_cv_flexlexer_yy_current_buffer=yes
7450 else
7451   $as_echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454         stepmake_cv_flexlexer_yy_current_buffer=no
7455 fi
7456
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 fi
7459 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7460 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7461     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7462
7463 cat >>confdefs.h <<\_ACEOF
7464 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7465 _ACEOF
7466
7467     fi
7468
7469
7470         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7471 $as_echo_n "checking FlexLexer.h location... " >&6; }
7472
7473         # ugh.
7474         cat <<EOF > conftest.cc
7475 using namespace std;
7476 #include <FlexLexer.h>
7477 EOF
7478         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7479           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7480           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7481         rm conftest.cc
7482
7483         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7484 $as_echo "$FLEXLEXER_FILE" >&6; }
7485
7486
7487     lang=English
7488     ALL_LINGUAS="en nl"
7489
7490     # with/enable ??
7491
7492 # Check whether --with-localedir was given.
7493 if test "${with_localedir+set}" = set; then
7494   withval=$with_localedir; localedir=$with_localedir
7495 else
7496   localedir='${prefix}/share/locale'
7497 fi
7498
7499
7500
7501 # Check whether --with-lang was given.
7502 if test "${with_lang+set}" = set; then
7503   withval=$with_lang; language=$with_lang
7504 else
7505   language=English
7506 fi
7507
7508
7509     { $as_echo "$as_me:$LINENO: checking language" >&5
7510 $as_echo_n "checking language... " >&6; }
7511     case "$language" in
7512       En* | en* | Am* | am* | US* | us*)
7513             lang=English;;
7514       NL | nl | Du* | du* | Ned* | ned*)
7515             lang=Dutch;;
7516       "")
7517             lang=English;;
7518       *)
7519             lang=unknown;;
7520     esac
7521     { $as_echo "$as_me:$LINENO: result: $lang" >&5
7522 $as_echo "$lang" >&6; }
7523
7524     if test "$lang" = "unknown" ; then
7525
7526     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7527 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7528     warn_b=yes
7529
7530     fi
7531
7532
7533
7534     presome=${prefix}
7535     if test "$prefix" = "NONE"; then
7536             presome=${ac_default_prefix}
7537     fi
7538     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7539
7540
7541     cat >>confdefs.h <<_ACEOF
7542 #define LOCALEDIR "${LOCALEDIR}"
7543 _ACEOF
7544
7545
7546 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7547 $as_echo_n "checking for gettext in -lintl... " >&6; }
7548 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7549   $as_echo_n "(cached) " >&6
7550 else
7551   ac_check_lib_save_LIBS=$LIBS
7552 LIBS="-lintl  $LIBS"
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h.  */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h.  */
7559
7560 /* Override any GCC internal prototype to avoid an error.
7561    Use char because int might match the return type of a GCC
7562    builtin and then its argument prototype would still apply.  */
7563 #ifdef __cplusplus
7564 extern "C"
7565 #endif
7566 char gettext ();
7567 int
7568 main ()
7569 {
7570 return gettext ();
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7577 case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583   (eval "$ac_link") 2>conftest.er1
7584   ac_status=$?
7585   grep -v '^ *+' conftest.er1 >conftest.err
7586   rm -f conftest.er1
7587   cat conftest.err >&5
7588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); } && {
7590          test -z "$ac_cxx_werror_flag" ||
7591          test ! -s conftest.err
7592        } && test -s conftest$ac_exeext && {
7593          test "$cross_compiling" = yes ||
7594          $as_test_x conftest$ac_exeext
7595        }; then
7596   ac_cv_lib_intl_gettext=yes
7597 else
7598   $as_echo "$as_me: failed program was:" >&5
7599 sed 's/^/| /' conftest.$ac_ext >&5
7600
7601         ac_cv_lib_intl_gettext=no
7602 fi
7603
7604 rm -rf conftest.dSYM
7605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7606       conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS
7608 fi
7609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7610 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7611 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7612   cat >>confdefs.h <<_ACEOF
7613 #define HAVE_LIBINTL 1
7614 _ACEOF
7615
7616   LIBS="-lintl $LIBS"
7617
7618 fi
7619
7620
7621 for ac_func in gettext
7622 do
7623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7624 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7625 $as_echo_n "checking for $ac_func... " >&6; }
7626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7627   $as_echo_n "(cached) " >&6
7628 else
7629   cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h.  */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h.  */
7635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7637 #define $ac_func innocuous_$ac_func
7638
7639 /* System header to define __stub macros and hopefully few prototypes,
7640     which can conflict with char $ac_func (); below.
7641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642     <limits.h> exists even on freestanding compilers.  */
7643
7644 #ifdef __STDC__
7645 # include <limits.h>
7646 #else
7647 # include <assert.h>
7648 #endif
7649
7650 #undef $ac_func
7651
7652 /* Override any GCC internal prototype to avoid an error.
7653    Use char because int might match the return type of a GCC
7654    builtin and then its argument prototype would still apply.  */
7655 #ifdef __cplusplus
7656 extern "C"
7657 #endif
7658 char $ac_func ();
7659 /* The GNU C library defines this for functions which it implements
7660     to always fail with ENOSYS.  Some functions are actually named
7661     something starting with __ and the normal name is an alias.  */
7662 #if defined __stub_$ac_func || defined __stub___$ac_func
7663 choke me
7664 #endif
7665
7666 int
7667 main ()
7668 {
7669 return $ac_func ();
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (ac_try="$ac_link"
7676 case "(($ac_try" in
7677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678   *) ac_try_echo=$ac_try;;
7679 esac
7680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7681 $as_echo "$ac_try_echo") >&5
7682   (eval "$ac_link") 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } && {
7689          test -z "$ac_cxx_werror_flag" ||
7690          test ! -s conftest.err
7691        } && test -s conftest$ac_exeext && {
7692          test "$cross_compiling" = yes ||
7693          $as_test_x conftest$ac_exeext
7694        }; then
7695   eval "$as_ac_var=yes"
7696 else
7697   $as_echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700         eval "$as_ac_var=no"
7701 fi
7702
7703 rm -rf conftest.dSYM
7704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7705       conftest$ac_exeext conftest.$ac_ext
7706 fi
7707 ac_res=`eval 'as_val=${'$as_ac_var'}
7708                  $as_echo "$as_val"'`
7709                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7710 $as_echo "$ac_res" >&6; }
7711 as_val=`eval 'as_val=${'$as_ac_var'}
7712                  $as_echo "$as_val"'`
7713    if test "x$as_val" = x""yes; then
7714   cat >>confdefs.h <<_ACEOF
7715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7716 _ACEOF
7717
7718 fi
7719 done
7720
7721
7722
7723
7724     for ac_prog in msgfmt
7725 do
7726   # Extract the first word of "$ac_prog", so it can be a program name with args.
7727 set dummy $ac_prog; ac_word=$2
7728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -n "$MSGFMT"; then
7734   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741   for ac_exec_ext in '' $ac_executable_extensions; do
7742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743     ac_cv_prog_MSGFMT="$ac_prog"
7744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 MSGFMT=$ac_cv_prog_MSGFMT
7754 if test -n "$MSGFMT"; then
7755   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7756 $as_echo "$MSGFMT" >&6; }
7757 else
7758   { $as_echo "$as_me:$LINENO: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763   test -n "$MSGFMT" && break
7764 done
7765 test -n "$MSGFMT" || MSGFMT="no"
7766
7767
7768
7769     r="`eval echo '$'"MSGFMT"`"
7770     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7771         true
7772     else
7773         ##STEPMAKE_WARN(cannot find . )
7774         false
7775     fi
7776
7777     if test $? -ne 0; then
7778
7779     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7780
7781         if test "REQUIRED" = "REQUIRED"; then
7782             command="echo ERROR: msgfmt not found"
7783             # abort configure process here?
7784         else
7785             command="- echo msgfmt not found"
7786         fi
7787         eval "MSGFMT"='$command'
7788         false
7789     else
7790         true
7791     fi
7792
7793     if test $? -eq 0 -a -n ""; then
7794
7795     r="`eval echo '$'"MSGFMT"`"
7796     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7797 $as_echo_n "checking $r version... " >&6; }
7798     exe=`
7799     ## which doesn't work in ash, if /usr/bin/which isn't installed
7800     ## type -p doesn't work in ash
7801     ## command -v doesn't work in zsh
7802     ## command -v "$r" 2>&1
7803     ## this test should work in ash, bash, pdksh (ksh), zsh
7804     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7805 `
7806     if test -n ""; then
7807         ver=""
7808     else
7809         ver=`
7810     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7811     ##
7812     ## ARG.
7813     ## Workaround for broken Debian gcc version string:
7814     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7815     ##
7816     ## -V: Workaround for python
7817
7818     #dnl
7819
7820     ## Assume and hunt for dotted version multiplet.
7821     ## use eval trickery, because we cannot use multi-level $() instead of ``
7822     ## for compatibility reasons.
7823
7824     ## grab the first version number in  --version output.
7825     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7826                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7827                 head -n 1 |
7828                 tr ' ' '\n' |
7829                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7830                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7831                 head -n 1\`\"
7832
7833     if test -z "$_ver"; then
7834         ## If empty, try date [fontforge]
7835         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7836             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7837             | head -n 1 \
7838             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7839     fi
7840     echo "$_ver"
7841     #dnl
7842 `
7843     fi
7844     num=`
7845     echo "$ver" | awk -F. '
7846     {
7847       if ($3) {three = $3}
7848       else {three = 0}
7849     }
7850     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7851 `
7852     req=`
7853     echo "" | awk -F. '
7854     {
7855       if ($3) {three = $3}
7856       else {three = 0}
7857     }
7858     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7859 `
7860     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7861 $as_echo "$ver" >&6; }
7862     if test "$num" -lt "$req"; then
7863
7864     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7865
7866     fi
7867     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7868     eval `echo $vervar=$num`
7869 ##    AC_SUBST(`eval echo $vervar`)
7870
7871     fi
7872
7873
7874
7875
7876     for ac_prog in mf-nowin mf mfw mfont
7877 do
7878   # Extract the first word of "$ac_prog", so it can be a program name with args.
7879 set dummy $ac_prog; ac_word=$2
7880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if test "${ac_cv_prog_METAFONT+set}" = set; then
7883   $as_echo_n "(cached) " >&6
7884 else
7885   if test -n "$METAFONT"; then
7886   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   for ac_exec_ext in '' $ac_executable_extensions; do
7894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895     ac_cv_prog_METAFONT="$ac_prog"
7896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 METAFONT=$ac_cv_prog_METAFONT
7906 if test -n "$METAFONT"; then
7907   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7908 $as_echo "$METAFONT" >&6; }
7909 else
7910   { $as_echo "$as_me:$LINENO: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914
7915   test -n "$METAFONT" && break
7916 done
7917 test -n "$METAFONT" || METAFONT="no"
7918
7919
7920
7921     r="`eval echo '$'"METAFONT"`"
7922     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7923         true
7924     else
7925         ##STEPMAKE_WARN(cannot find . )
7926         false
7927     fi
7928
7929     if test $? -ne 0; then
7930
7931     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7932
7933         if test "REQUIRED" = "REQUIRED"; then
7934             command="echo ERROR: mf-nowin mf mfw mfont not found"
7935             # abort configure process here?
7936         else
7937             command="- echo mf-nowin mf mfw mfont not found"
7938         fi
7939         eval "METAFONT"='$command'
7940         false
7941     else
7942         true
7943     fi
7944
7945     if test $? -eq 0 -a -n ""; then
7946
7947     r="`eval echo '$'"METAFONT"`"
7948     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7949 $as_echo_n "checking $r version... " >&6; }
7950     exe=`
7951     ## which doesn't work in ash, if /usr/bin/which isn't installed
7952     ## type -p doesn't work in ash
7953     ## command -v doesn't work in zsh
7954     ## command -v "$r" 2>&1
7955     ## this test should work in ash, bash, pdksh (ksh), zsh
7956     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7957 `
7958     if test -n ""; then
7959         ver=""
7960     else
7961         ver=`
7962     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7963     ##
7964     ## ARG.
7965     ## Workaround for broken Debian gcc version string:
7966     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7967     ##
7968     ## -V: Workaround for python
7969
7970     #dnl
7971
7972     ## Assume and hunt for dotted version multiplet.
7973     ## use eval trickery, because we cannot use multi-level $() instead of ``
7974     ## for compatibility reasons.
7975
7976     ## grab the first version number in  --version output.
7977     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7978                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7979                 head -n 1 |
7980                 tr ' ' '\n' |
7981                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7982                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7983                 head -n 1\`\"
7984
7985     if test -z "$_ver"; then
7986         ## If empty, try date [fontforge]
7987         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7988             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7989             | head -n 1 \
7990             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7991     fi
7992     echo "$_ver"
7993     #dnl
7994 `
7995     fi
7996     num=`
7997     echo "$ver" | awk -F. '
7998     {
7999       if ($3) {three = $3}
8000       else {three = 0}
8001     }
8002     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8003 `
8004     req=`
8005     echo "" | awk -F. '
8006     {
8007       if ($3) {three = $3}
8008       else {three = 0}
8009     }
8010     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8011 `
8012     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8013 $as_echo "$ver" >&6; }
8014     if test "$num" -lt "$req"; then
8015
8016     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8017
8018     fi
8019     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
8020     eval `echo $vervar=$num`
8021 ##    AC_SUBST(`eval echo $vervar`)
8022
8023     fi
8024
8025
8026     for ac_prog in mpost
8027 do
8028   # Extract the first word of "$ac_prog", so it can be a program name with args.
8029 set dummy $ac_prog; ac_word=$2
8030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_METAPOST+set}" = set; then
8033   $as_echo_n "(cached) " >&6
8034 else
8035   if test -n "$METAPOST"; then
8036   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043   for ac_exec_ext in '' $ac_executable_extensions; do
8044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045     ac_cv_prog_METAPOST="$ac_prog"
8046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 METAPOST=$ac_cv_prog_METAPOST
8056 if test -n "$METAPOST"; then
8057   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
8058 $as_echo "$METAPOST" >&6; }
8059 else
8060   { $as_echo "$as_me:$LINENO: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065   test -n "$METAPOST" && break
8066 done
8067 test -n "$METAPOST" || METAPOST="no"
8068
8069
8070
8071     r="`eval echo '$'"METAPOST"`"
8072     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
8073         true
8074     else
8075         ##STEPMAKE_WARN(cannot find . )
8076         false
8077     fi
8078
8079     if test $? -ne 0; then
8080
8081     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
8082
8083         if test "REQUIRED" = "REQUIRED"; then
8084             command="echo ERROR: mpost not found"
8085             # abort configure process here?
8086         else
8087             command="- echo mpost not found"
8088         fi
8089         eval "METAPOST"='$command'
8090         false
8091     else
8092         true
8093     fi
8094
8095     if test $? -eq 0 -a -n ""; then
8096
8097     r="`eval echo '$'"METAPOST"`"
8098     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8099 $as_echo_n "checking $r version... " >&6; }
8100     exe=`
8101     ## which doesn't work in ash, if /usr/bin/which isn't installed
8102     ## type -p doesn't work in ash
8103     ## command -v doesn't work in zsh
8104     ## command -v "$r" 2>&1
8105     ## this test should work in ash, bash, pdksh (ksh), zsh
8106     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8107 `
8108     if test -n ""; then
8109         ver=""
8110     else
8111         ver=`
8112     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8113     ##
8114     ## ARG.
8115     ## Workaround for broken Debian gcc version string:
8116     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8117     ##
8118     ## -V: Workaround for python
8119
8120     #dnl
8121
8122     ## Assume and hunt for dotted version multiplet.
8123     ## use eval trickery, because we cannot use multi-level $() instead of ``
8124     ## for compatibility reasons.
8125
8126     ## grab the first version number in  --version output.
8127     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8128                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8129                 head -n 1 |
8130                 tr ' ' '\n' |
8131                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8132                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8133                 head -n 1\`\"
8134
8135     if test -z "$_ver"; then
8136         ## If empty, try date [fontforge]
8137         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8138             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8139             | head -n 1 \
8140             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8141     fi
8142     echo "$_ver"
8143     #dnl
8144 `
8145     fi
8146     num=`
8147     echo "$ver" | awk -F. '
8148     {
8149       if ($3) {three = $3}
8150       else {three = 0}
8151     }
8152     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8153 `
8154     req=`
8155     echo "" | awk -F. '
8156     {
8157       if ($3) {three = $3}
8158       else {three = 0}
8159     }
8160     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8161 `
8162     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8163 $as_echo "$ver" >&6; }
8164     if test "$num" -lt "$req"; then
8165
8166     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8167
8168     fi
8169     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8170     eval `echo $vervar=$num`
8171 ##    AC_SUBST(`eval echo $vervar`)
8172
8173     fi
8174
8175     if test "$METAPOST" != ""; then
8176         ver=`
8177     ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8178     ##
8179     ## ARG.
8180     ## Workaround for broken Debian gcc version string:
8181     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8182     ##
8183     ## -V: Workaround for python
8184
8185     #dnl
8186
8187     ## Assume and hunt for dotted version multiplet.
8188     ## use eval trickery, because we cannot use multi-level $() instead of ``
8189     ## for compatibility reasons.
8190
8191     ## grab the first version number in  --version output.
8192     eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8193                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8194                 head -n 1 |
8195                 tr ' ' '\n' |
8196                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8197                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8198                 head -n 1\`\"
8199
8200     if test -z "$_ver"; then
8201         ## If empty, try date [fontforge]
8202         eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8203             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8204             | head -n 1 \
8205             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8206     fi
8207     echo "$_ver"
8208     #dnl
8209 `
8210         num=`
8211     echo "$ver" | awk -F. '
8212     {
8213       if ($3) {three = $3}
8214       else {three = 0}
8215     }
8216     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8217 `
8218         # Avoid buggy metapost versions: 1.600 <= x < 1.803
8219         if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8220
8221     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8222
8223         fi
8224     fi
8225
8226     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8227 $as_echo_n "checking for working metafont mode... " >&6; }
8228     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8229     for MFMODE in $modelist; do
8230         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8231         if test -f mfput.tfm; then
8232             break;
8233         fi
8234     done
8235     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8236 $as_echo "$MFMODE" >&6; }
8237
8238     rm -f mfput.*
8239
8240
8241
8242
8243
8244     for ac_prog in kpsewhich
8245 do
8246   # Extract the first word of "$ac_prog", so it can be a program name with args.
8247 set dummy $ac_prog; ac_word=$2
8248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8251   $as_echo_n "(cached) " >&6
8252 else
8253   if test -n "$KPSEWHICH"; then
8254   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259   IFS=$as_save_IFS
8260   test -z "$as_dir" && as_dir=.
8261   for ac_exec_ext in '' $ac_executable_extensions; do
8262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263     ac_cv_prog_KPSEWHICH="$ac_prog"
8264     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265     break 2
8266   fi
8267 done
8268 done
8269 IFS=$as_save_IFS
8270
8271 fi
8272 fi
8273 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8274 if test -n "$KPSEWHICH"; then
8275   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8276 $as_echo "$KPSEWHICH" >&6; }
8277 else
8278   { $as_echo "$as_me:$LINENO: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283   test -n "$KPSEWHICH" && break
8284 done
8285 test -n "$KPSEWHICH" || KPSEWHICH="no"
8286
8287
8288
8289     r="`eval echo '$'"KPSEWHICH"`"
8290     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8291         true
8292     else
8293         ##STEPMAKE_WARN(cannot find . )
8294         false
8295     fi
8296
8297     if test $? -ne 0; then
8298
8299     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8300
8301         if test "REQUIRED" = "REQUIRED"; then
8302             command="echo ERROR: kpsewhich not found"
8303             # abort configure process here?
8304         else
8305             command="- echo kpsewhich not found"
8306         fi
8307         eval "KPSEWHICH"='$command'
8308         false
8309     else
8310         true
8311     fi
8312
8313     if test $? -eq 0 -a -n ""; then
8314
8315     r="`eval echo '$'"KPSEWHICH"`"
8316     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8317 $as_echo_n "checking $r version... " >&6; }
8318     exe=`
8319     ## which doesn't work in ash, if /usr/bin/which isn't installed
8320     ## type -p doesn't work in ash
8321     ## command -v doesn't work in zsh
8322     ## command -v "$r" 2>&1
8323     ## this test should work in ash, bash, pdksh (ksh), zsh
8324     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8325 `
8326     if test -n ""; then
8327         ver=""
8328     else
8329         ver=`
8330     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8331     ##
8332     ## ARG.
8333     ## Workaround for broken Debian gcc version string:
8334     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8335     ##
8336     ## -V: Workaround for python
8337
8338     #dnl
8339
8340     ## Assume and hunt for dotted version multiplet.
8341     ## use eval trickery, because we cannot use multi-level $() instead of ``
8342     ## for compatibility reasons.
8343
8344     ## grab the first version number in  --version output.
8345     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8346                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8347                 head -n 1 |
8348                 tr ' ' '\n' |
8349                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8350                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8351                 head -n 1\`\"
8352
8353     if test -z "$_ver"; then
8354         ## If empty, try date [fontforge]
8355         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8356             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8357             | head -n 1 \
8358             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8359     fi
8360     echo "$_ver"
8361     #dnl
8362 `
8363     fi
8364     num=`
8365     echo "$ver" | awk -F. '
8366     {
8367       if ($3) {three = $3}
8368       else {three = 0}
8369     }
8370     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8371 `
8372     req=`
8373     echo "" | awk -F. '
8374     {
8375       if ($3) {three = $3}
8376       else {three = 0}
8377     }
8378     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8379 `
8380     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8381 $as_echo "$ver" >&6; }
8382     if test "$num" -lt "$req"; then
8383
8384     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
8385
8386     fi
8387     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8388     eval `echo $vervar=$num`
8389 ##    AC_SUBST(`eval echo $vervar`)
8390
8391     fi
8392
8393
8394     { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8395 $as_echo_n "checking for metapost required files... " >&6; }
8396     if test "$MFPLAIN_MP" = ""; then
8397         MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8398     fi
8399     if test "$MFPLAIN_MP" = ""; then
8400         { $as_echo "$as_me:$LINENO: result: no" >&5
8401 $as_echo "no" >&6; }
8402
8403     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8404
8405     else
8406         { $as_echo "$as_me:$LINENO: result: yes" >&5
8407 $as_echo "yes" >&6; }
8408     fi
8409
8410 if test "$GUILEv2" = "yes"
8411 then
8412
8413     ## First, let's just see if we can find Guile at all.
8414     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8415     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8416     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8417 $as_echo_n "checking for guile-config... " >&6; }
8418     guile_config="guile-config"
8419     found="no"
8420     for r in $GUILE_CONFIG \
8421       $target_guile_config $host_guile_config $build_guile_config \
8422       guile-config \
8423       guile2-config   guile-2-config   guile-config-2   \
8424       guile2.2-config guile-2.2-config guile-config-2.2 \
8425       guile2.0-config guile-2.0-config guile-config-2.0 \
8426       guile1-config   guile-1-config   guile-config-1   \
8427       guile1.9-config guile-1.9-config guile-config-1.9 \
8428       guile1.8-config guile-1.8-config guile-config-1.8; \
8429       do
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 "$r" 2>&1
8435     ## this test should work in ash, bash, pdksh (ksh), zsh
8436     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8437 `
8438         if ! $exe --version > /dev/null 2>&1 ; then
8439             continue
8440         fi
8441         ver=`
8442     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8443     ##
8444     ## ARG.
8445     ## Workaround for broken Debian gcc version string:
8446     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8447     ##
8448     ## -V: Workaround for python
8449
8450     #dnl
8451
8452     ## Assume and hunt for dotted version multiplet.
8453     ## use eval trickery, because we cannot use multi-level $() instead of ``
8454     ## for compatibility reasons.
8455
8456     ## grab the first version number in  --version output.
8457     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8458                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8459                 head -n 1 |
8460                 tr ' ' '\n' |
8461                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8462                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8463                 head -n 1\`\"
8464
8465     if test -z "$_ver"; then
8466         ## If empty, try date [fontforge]
8467         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8468             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8469             | head -n 1 \
8470             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8471     fi
8472     echo "$_ver"
8473     #dnl
8474 `
8475         num=`
8476     echo "$ver" | awk -F. '
8477     {
8478       if ($3) {three = $3}
8479       else {three = 0}
8480     }
8481     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8482 `
8483         req=`
8484     echo "2.0.7" | awk -F. '
8485     {
8486       if ($3) {three = $3}
8487       else {three = 0}
8488     }
8489     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8490 `
8491         sup=`
8492     echo "2.3.0" | awk -F. '
8493     {
8494       if ($3) {three = $3}
8495       else {three = 0}
8496     }
8497     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8498 `
8499         if test -n "2.0.7" -a "$num" -lt "$req"; then
8500             guile_config="$r >= 2.0.7 (installed: $ver)"
8501             continue
8502         else
8503             if test -n "2.3.0" -a "$num" -ge "$sup"; then
8504                 guile_config="$r < 2.3.0 (installed: $ver)"
8505                 continue
8506             else
8507                 guile_config=$r
8508                 found=$r
8509                 break
8510             fi
8511         fi
8512     done
8513     { $as_echo "$as_me:$LINENO: result: $found" >&5
8514 $as_echo "$found" >&6; }
8515     if test "$found" != "no"; then
8516         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8517 $as_echo_n "checking $guile_config version... " >&6; }
8518         { $as_echo "$as_me:$LINENO: result: $ver" >&5
8519 $as_echo "$ver" >&6; }
8520         GUILE_CONFIG=$found
8521     else
8522
8523     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8524
8525     fi
8526
8527
8528
8529     guile_version="$ver"
8530     #dnl
8531     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8532     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8533     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8534     #dnl
8535
8536     exe=`
8537     ## which doesn't work in ash, if /usr/bin/which isn't installed
8538     ## type -p doesn't work in ash
8539     ## command -v doesn't work in zsh
8540     ## command -v "$guile_config" 2>&1
8541     ## this test should work in ash, bash, pdksh (ksh), zsh
8542     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8543 `
8544     if test -x $exe; then
8545         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8546 $as_echo_n "checking guile compile flags... " >&6; }
8547         GUILE_CFLAGS="`$guile_config compile`"
8548         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8549 $as_echo "$GUILE_CFLAGS" >&6; }
8550         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8551 $as_echo_n "checking guile link flags... " >&6; }
8552         GUILE_LDFLAGS="`$guile_config link`"
8553         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8554 $as_echo "$GUILE_LDFLAGS" >&6; }
8555     fi
8556
8557
8558
8559     save_CPPFLAGS="$CPPFLAGS"
8560     save_LIBS="$LIBS"
8561     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8562     LIBS="$GUILE_LDFLAGS $LIBS"
8563
8564 for ac_header in libguile.h
8565 do
8566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8568   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 $as_echo_n "checking for $ac_header... " >&6; }
8570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8571   $as_echo_n "(cached) " >&6
8572 fi
8573 ac_res=`eval 'as_val=${'$as_ac_Header'}
8574                  $as_echo "$as_val"'`
8575                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8576 $as_echo "$ac_res" >&6; }
8577 else
8578   # Is the header compilable?
8579 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8580 $as_echo_n "checking $ac_header usability... " >&6; }
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587 $ac_includes_default
8588 #include <$ac_header>
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8592 case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597 $as_echo "$ac_try_echo") >&5
8598   (eval "$ac_compile") 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } && {
8605          test -z "$ac_cxx_werror_flag" ||
8606          test ! -s conftest.err
8607        } && test -s conftest.$ac_objext; then
8608   ac_header_compiler=yes
8609 else
8610   $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613         ac_header_compiler=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 $as_echo "$ac_header_compiler" >&6; }
8619
8620 # Is the header present?
8621 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 $as_echo_n "checking $ac_header presence... " >&6; }
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 #include <$ac_header>
8630 _ACEOF
8631 if { (ac_try="$ac_cpp conftest.$ac_ext"
8632 case "(($ac_try" in
8633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634   *) ac_try_echo=$ac_try;;
8635 esac
8636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8637 $as_echo "$ac_try_echo") >&5
8638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8639   ac_status=$?
8640   grep -v '^ *+' conftest.er1 >conftest.err
8641   rm -f conftest.er1
8642   cat conftest.err >&5
8643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } >/dev/null && {
8645          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8646          test ! -s conftest.err
8647        }; then
8648   ac_header_preproc=yes
8649 else
8650   $as_echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653   ac_header_preproc=no
8654 fi
8655
8656 rm -f conftest.err conftest.$ac_ext
8657 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 $as_echo "$ac_header_preproc" >&6; }
8659
8660 # So?  What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8662   yes:no: )
8663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667     ac_header_preproc=yes
8668     ;;
8669   no:yes:* )
8670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8673 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8677 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682
8683     ;;
8684 esac
8685 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8686 $as_echo_n "checking for $ac_header... " >&6; }
8687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8688   $as_echo_n "(cached) " >&6
8689 else
8690   eval "$as_ac_Header=\$ac_header_preproc"
8691 fi
8692 ac_res=`eval 'as_val=${'$as_ac_Header'}
8693                  $as_echo "$as_val"'`
8694                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8695 $as_echo "$ac_res" >&6; }
8696
8697 fi
8698 as_val=`eval 'as_val=${'$as_ac_Header'}
8699                  $as_echo "$as_val"'`
8700    if test "x$as_val" = x""yes; then
8701   cat >>confdefs.h <<_ACEOF
8702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8703 _ACEOF
8704
8705 fi
8706
8707 done
8708
8709
8710 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8711 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8712 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8713   $as_echo_n "(cached) " >&6
8714 else
8715   ac_check_lib_save_LIBS=$LIBS
8716 LIBS="-lguile  $LIBS"
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723
8724 /* Override any GCC internal prototype to avoid an error.
8725    Use char because int might match the return type of a GCC
8726    builtin and then its argument prototype would still apply.  */
8727 #ifdef __cplusplus
8728 extern "C"
8729 #endif
8730 char scm_boot_guile ();
8731 int
8732 main ()
8733 {
8734 return scm_boot_guile ();
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8741 case "(($ac_try" in
8742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743   *) ac_try_echo=$ac_try;;
8744 esac
8745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8746 $as_echo "$ac_try_echo") >&5
8747   (eval "$ac_link") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } && {
8754          test -z "$ac_cxx_werror_flag" ||
8755          test ! -s conftest.err
8756        } && test -s conftest$ac_exeext && {
8757          test "$cross_compiling" = yes ||
8758          $as_test_x conftest$ac_exeext
8759        }; then
8760   ac_cv_lib_guile_scm_boot_guile=yes
8761 else
8762   $as_echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765         ac_cv_lib_guile_scm_boot_guile=no
8766 fi
8767
8768 rm -rf conftest.dSYM
8769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8770       conftest$ac_exeext conftest.$ac_ext
8771 LIBS=$ac_check_lib_save_LIBS
8772 fi
8773 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8774 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8775 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8776   cat >>confdefs.h <<_ACEOF
8777 #define HAVE_LIBGUILE 1
8778 _ACEOF
8779
8780   LIBS="-lguile $LIBS"
8781
8782 fi
8783
8784
8785 for ac_func in scm_boot_guile
8786 do
8787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8789 $as_echo_n "checking for $ac_func... " >&6; }
8790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8791   $as_echo_n "(cached) " >&6
8792 else
8793   cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8801 #define $ac_func innocuous_$ac_func
8802
8803 /* System header to define __stub macros and hopefully few prototypes,
8804     which can conflict with char $ac_func (); below.
8805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8806     <limits.h> exists even on freestanding compilers.  */
8807
8808 #ifdef __STDC__
8809 # include <limits.h>
8810 #else
8811 # include <assert.h>
8812 #endif
8813
8814 #undef $ac_func
8815
8816 /* Override any GCC internal prototype to avoid an error.
8817    Use char because int might match the return type of a GCC
8818    builtin and then its argument prototype would still apply.  */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 char $ac_func ();
8823 /* The GNU C library defines this for functions which it implements
8824     to always fail with ENOSYS.  Some functions are actually named
8825     something starting with __ and the normal name is an alias.  */
8826 #if defined __stub_$ac_func || defined __stub___$ac_func
8827 choke me
8828 #endif
8829
8830 int
8831 main ()
8832 {
8833 return $ac_func ();
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846   (eval "$ac_link") 2>conftest.er1
8847   ac_status=$?
8848   grep -v '^ *+' conftest.er1 >conftest.err
8849   rm -f conftest.er1
8850   cat conftest.err >&5
8851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } && {
8853          test -z "$ac_cxx_werror_flag" ||
8854          test ! -s conftest.err
8855        } && test -s conftest$ac_exeext && {
8856          test "$cross_compiling" = yes ||
8857          $as_test_x conftest$ac_exeext
8858        }; then
8859   eval "$as_ac_var=yes"
8860 else
8861   $as_echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864         eval "$as_ac_var=no"
8865 fi
8866
8867 rm -rf conftest.dSYM
8868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8869       conftest$ac_exeext conftest.$ac_ext
8870 fi
8871 ac_res=`eval 'as_val=${'$as_ac_var'}
8872                  $as_echo "$as_val"'`
8873                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8874 $as_echo "$ac_res" >&6; }
8875 as_val=`eval 'as_val=${'$as_ac_var'}
8876                  $as_echo "$as_val"'`
8877    if test "x$as_val" = x""yes; then
8878   cat >>confdefs.h <<_ACEOF
8879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8880 _ACEOF
8881
8882 else
8883   libguile_b=no
8884 fi
8885 done
8886
8887     if test "$libguile_b" = "no"; then
8888             warn='libguile (libguile-dev, guile-devel or guile-dev
8889    package).'
8890
8891     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8892
8893     fi
8894     CPPFLAGS="$save_CPPFLAGS"
8895     LIBS="$save_LIBS"
8896     cat >>confdefs.h <<_ACEOF
8897 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8898 _ACEOF
8899
8900     cat >>confdefs.h <<_ACEOF
8901 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8902 _ACEOF
8903
8904     cat >>confdefs.h <<_ACEOF
8905 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8906 _ACEOF
8907
8908
8909 else
8910
8911     ## First, let's just see if we can find Guile at all.
8912     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8913     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8914     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8915 $as_echo_n "checking for guile-config... " >&6; }
8916     guile_config="guile-config"
8917     found="no"
8918     for r in $GUILE_CONFIG \
8919       $target_guile_config $host_guile_config $build_guile_config \
8920       guile-config \
8921       guile2-config   guile-2-config   guile-config-2   \
8922       guile2.2-config guile-2.2-config guile-config-2.2 \
8923       guile2.0-config guile-2.0-config guile-config-2.0 \
8924       guile1-config   guile-1-config   guile-config-1   \
8925       guile1.9-config guile-1.9-config guile-config-1.9 \
8926       guile1.8-config guile-1.8-config guile-config-1.8; \
8927       do
8928         exe=`
8929     ## which doesn't work in ash, if /usr/bin/which isn't installed
8930     ## type -p doesn't work in ash
8931     ## command -v doesn't work in zsh
8932     ## command -v "$r" 2>&1
8933     ## this test should work in ash, bash, pdksh (ksh), zsh
8934     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8935 `
8936         if ! $exe --version > /dev/null 2>&1 ; then
8937             continue
8938         fi
8939         ver=`
8940     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8941     ##
8942     ## ARG.
8943     ## Workaround for broken Debian gcc version string:
8944     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8945     ##
8946     ## -V: Workaround for python
8947
8948     #dnl
8949
8950     ## Assume and hunt for dotted version multiplet.
8951     ## use eval trickery, because we cannot use multi-level $() instead of ``
8952     ## for compatibility reasons.
8953
8954     ## grab the first version number in  --version output.
8955     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8956                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8957                 head -n 1 |
8958                 tr ' ' '\n' |
8959                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8960                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8961                 head -n 1\`\"
8962
8963     if test -z "$_ver"; then
8964         ## If empty, try date [fontforge]
8965         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8966             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8967             | head -n 1 \
8968             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8969     fi
8970     echo "$_ver"
8971     #dnl
8972 `
8973         num=`
8974     echo "$ver" | awk -F. '
8975     {
8976       if ($3) {three = $3}
8977       else {three = 0}
8978     }
8979     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8980 `
8981         req=`
8982     echo "1.8.2" | awk -F. '
8983     {
8984       if ($3) {three = $3}
8985       else {three = 0}
8986     }
8987     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8988 `
8989         sup=`
8990     echo "1.9.0" | awk -F. '
8991     {
8992       if ($3) {three = $3}
8993       else {three = 0}
8994     }
8995     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8996 `
8997         if test -n "1.8.2" -a "$num" -lt "$req"; then
8998             guile_config="$r >= 1.8.2 (installed: $ver)"
8999             continue
9000         else
9001             if test -n "1.9.0" -a "$num" -ge "$sup"; then
9002                 guile_config="$r < 1.9.0 (installed: $ver)"
9003                 continue
9004             else
9005                 guile_config=$r
9006                 found=$r
9007                 break
9008             fi
9009         fi
9010     done
9011     { $as_echo "$as_me:$LINENO: result: $found" >&5
9012 $as_echo "$found" >&6; }
9013     if test "$found" != "no"; then
9014         { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
9015 $as_echo_n "checking $guile_config version... " >&6; }
9016         { $as_echo "$as_me:$LINENO: result: $ver" >&5
9017 $as_echo "$ver" >&6; }
9018         GUILE_CONFIG=$found
9019     else
9020
9021     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
9022
9023     fi
9024
9025
9026
9027     guile_version="$ver"
9028     #dnl
9029     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
9030     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
9031     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9032     #dnl
9033
9034     exe=`
9035     ## which doesn't work in ash, if /usr/bin/which isn't installed
9036     ## type -p doesn't work in ash
9037     ## command -v doesn't work in zsh
9038     ## command -v "$guile_config" 2>&1
9039     ## this test should work in ash, bash, pdksh (ksh), zsh
9040     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
9041 `
9042     if test -x $exe; then
9043         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
9044 $as_echo_n "checking guile compile flags... " >&6; }
9045         GUILE_CFLAGS="`$guile_config compile`"
9046         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
9047 $as_echo "$GUILE_CFLAGS" >&6; }
9048         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
9049 $as_echo_n "checking guile link flags... " >&6; }
9050         GUILE_LDFLAGS="`$guile_config link`"
9051         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
9052 $as_echo "$GUILE_LDFLAGS" >&6; }
9053     fi
9054
9055
9056
9057     save_CPPFLAGS="$CPPFLAGS"
9058     save_LIBS="$LIBS"
9059     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9060     LIBS="$GUILE_LDFLAGS $LIBS"
9061
9062 for ac_header in libguile.h
9063 do
9064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9066   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 $as_echo_n "checking for $ac_header... " >&6; }
9068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9069   $as_echo_n "(cached) " >&6
9070 fi
9071 ac_res=`eval 'as_val=${'$as_ac_Header'}
9072                  $as_echo "$as_val"'`
9073                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9074 $as_echo "$ac_res" >&6; }
9075 else
9076   # Is the header compilable?
9077 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078 $as_echo_n "checking $ac_header usability... " >&6; }
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 $ac_includes_default
9086 #include <$ac_header>
9087 _ACEOF
9088 rm -f conftest.$ac_objext
9089 if { (ac_try="$ac_compile"
9090 case "(($ac_try" in
9091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092   *) ac_try_echo=$ac_try;;
9093 esac
9094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9095 $as_echo "$ac_try_echo") >&5
9096   (eval "$ac_compile") 2>conftest.er1
9097   ac_status=$?
9098   grep -v '^ *+' conftest.er1 >conftest.err
9099   rm -f conftest.er1
9100   cat conftest.err >&5
9101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } && {
9103          test -z "$ac_cxx_werror_flag" ||
9104          test ! -s conftest.err
9105        } && test -s conftest.$ac_objext; then
9106   ac_header_compiler=yes
9107 else
9108   $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111         ac_header_compiler=no
9112 fi
9113
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9116 $as_echo "$ac_header_compiler" >&6; }
9117
9118 # Is the header present?
9119 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9120 $as_echo_n "checking $ac_header presence... " >&6; }
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127 #include <$ac_header>
9128 _ACEOF
9129 if { (ac_try="$ac_cpp conftest.$ac_ext"
9130 case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9135 $as_echo "$ac_try_echo") >&5
9136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } >/dev/null && {
9143          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9144          test ! -s conftest.err
9145        }; then
9146   ac_header_preproc=yes
9147 else
9148   $as_echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151   ac_header_preproc=no
9152 fi
9153
9154 rm -f conftest.err conftest.$ac_ext
9155 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9156 $as_echo "$ac_header_preproc" >&6; }
9157
9158 # So?  What about this header?
9159 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9160   yes:no: )
9161     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9162 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9165     ac_header_preproc=yes
9166     ;;
9167   no:yes:* )
9168     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9169 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9171 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9173 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9174     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9175 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9176     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9178     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9179 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9180
9181     ;;
9182 esac
9183 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9184 $as_echo_n "checking for $ac_header... " >&6; }
9185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9186   $as_echo_n "(cached) " >&6
9187 else
9188   eval "$as_ac_Header=\$ac_header_preproc"
9189 fi
9190 ac_res=`eval 'as_val=${'$as_ac_Header'}
9191                  $as_echo "$as_val"'`
9192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9193 $as_echo "$ac_res" >&6; }
9194
9195 fi
9196 as_val=`eval 'as_val=${'$as_ac_Header'}
9197                  $as_echo "$as_val"'`
9198    if test "x$as_val" = x""yes; then
9199   cat >>confdefs.h <<_ACEOF
9200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9201 _ACEOF
9202
9203 fi
9204
9205 done
9206
9207
9208 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9209 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9210 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9211   $as_echo_n "(cached) " >&6
9212 else
9213   ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lguile  $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h.  */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h.  */
9221
9222 /* Override any GCC internal prototype to avoid an error.
9223    Use char because int might match the return type of a GCC
9224    builtin and then its argument prototype would still apply.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char scm_boot_guile ();
9229 int
9230 main ()
9231 {
9232 return scm_boot_guile ();
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (ac_try="$ac_link"
9239 case "(($ac_try" in
9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241   *) ac_try_echo=$ac_try;;
9242 esac
9243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9244 $as_echo "$ac_try_echo") >&5
9245   (eval "$ac_link") 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } && {
9252          test -z "$ac_cxx_werror_flag" ||
9253          test ! -s conftest.err
9254        } && test -s conftest$ac_exeext && {
9255          test "$cross_compiling" = yes ||
9256          $as_test_x conftest$ac_exeext
9257        }; then
9258   ac_cv_lib_guile_scm_boot_guile=yes
9259 else
9260   $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263         ac_cv_lib_guile_scm_boot_guile=no
9264 fi
9265
9266 rm -rf conftest.dSYM
9267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9268       conftest$ac_exeext conftest.$ac_ext
9269 LIBS=$ac_check_lib_save_LIBS
9270 fi
9271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9272 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9273 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9274   cat >>confdefs.h <<_ACEOF
9275 #define HAVE_LIBGUILE 1
9276 _ACEOF
9277
9278   LIBS="-lguile $LIBS"
9279
9280 fi
9281
9282
9283 for ac_func in scm_boot_guile
9284 do
9285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9286 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9287 $as_echo_n "checking for $ac_func... " >&6; }
9288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9289   $as_echo_n "(cached) " >&6
9290 else
9291   cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9299 #define $ac_func innocuous_$ac_func
9300
9301 /* System header to define __stub macros and hopefully few prototypes,
9302     which can conflict with char $ac_func (); below.
9303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9304     <limits.h> exists even on freestanding compilers.  */
9305
9306 #ifdef __STDC__
9307 # include <limits.h>
9308 #else
9309 # include <assert.h>
9310 #endif
9311
9312 #undef $ac_func
9313
9314 /* Override any GCC internal prototype to avoid an error.
9315    Use char because int might match the return type of a GCC
9316    builtin and then its argument prototype would still apply.  */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char $ac_func ();
9321 /* The GNU C library defines this for functions which it implements
9322     to always fail with ENOSYS.  Some functions are actually named
9323     something starting with __ and the normal name is an alias.  */
9324 #if defined __stub_$ac_func || defined __stub___$ac_func
9325 choke me
9326 #endif
9327
9328 int
9329 main ()
9330 {
9331 return $ac_func ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343 $as_echo "$ac_try_echo") >&5
9344   (eval "$ac_link") 2>conftest.er1
9345   ac_status=$?
9346   grep -v '^ *+' conftest.er1 >conftest.err
9347   rm -f conftest.er1
9348   cat conftest.err >&5
9349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } && {
9351          test -z "$ac_cxx_werror_flag" ||
9352          test ! -s conftest.err
9353        } && test -s conftest$ac_exeext && {
9354          test "$cross_compiling" = yes ||
9355          $as_test_x conftest$ac_exeext
9356        }; then
9357   eval "$as_ac_var=yes"
9358 else
9359   $as_echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362         eval "$as_ac_var=no"
9363 fi
9364
9365 rm -rf conftest.dSYM
9366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9367       conftest$ac_exeext conftest.$ac_ext
9368 fi
9369 ac_res=`eval 'as_val=${'$as_ac_var'}
9370                  $as_echo "$as_val"'`
9371                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9372 $as_echo "$ac_res" >&6; }
9373 as_val=`eval 'as_val=${'$as_ac_var'}
9374                  $as_echo "$as_val"'`
9375    if test "x$as_val" = x""yes; then
9376   cat >>confdefs.h <<_ACEOF
9377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9378 _ACEOF
9379
9380 else
9381   libguile_b=no
9382 fi
9383 done
9384
9385     if test "$libguile_b" = "no"; then
9386             warn='libguile (libguile-dev, guile-devel or guile-dev
9387    package).'
9388
9389     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9390
9391     fi
9392     CPPFLAGS="$save_CPPFLAGS"
9393     LIBS="$save_LIBS"
9394     cat >>confdefs.h <<_ACEOF
9395 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9396 _ACEOF
9397
9398     cat >>confdefs.h <<_ACEOF
9399 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9400 _ACEOF
9401
9402     cat >>confdefs.h <<_ACEOF
9403 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9404 _ACEOF
9405
9406
9407 fi
9408
9409 # check for 3 typedefs added in Guile 1.9
9410 save_CXXFLAGS="$CXXFLAGS"
9411 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9412 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9413 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9414 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9415   $as_echo_n "(cached) " >&6
9416 else
9417   ac_cv_type_scm_t_hash_fold_fn=no
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 #include <libguile.h>
9425
9426 int
9427 main ()
9428 {
9429 if (sizeof (scm_t_hash_fold_fn))
9430        return 0;
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443   (eval "$ac_compile") 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } && {
9450          test -z "$ac_cxx_werror_flag" ||
9451          test ! -s conftest.err
9452        } && test -s conftest.$ac_objext; then
9453   cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h.  */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h.  */
9459 #include <libguile.h>
9460
9461 int
9462 main ()
9463 {
9464 if (sizeof ((scm_t_hash_fold_fn)))
9465           return 0;
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9472 case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9477 $as_echo "$ac_try_echo") >&5
9478   (eval "$ac_compile") 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } && {
9485          test -z "$ac_cxx_werror_flag" ||
9486          test ! -s conftest.err
9487        } && test -s conftest.$ac_objext; then
9488   :
9489 else
9490   $as_echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493         ac_cv_type_scm_t_hash_fold_fn=yes
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 else
9498   $as_echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501
9502 fi
9503
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505 fi
9506 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9507 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9508 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9509
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_SCM_T_HASH_FOLD_FN 1
9512 _ACEOF
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_GUILE_HASH_FUNC 1
9516 _ACEOF
9517
9518 fi
9519 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9520 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9521 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9522   $as_echo_n "(cached) " >&6
9523 else
9524   ac_cv_type_scm_t_hash_handle_fn=no
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531 #include <libguile.h>
9532
9533 int
9534 main ()
9535 {
9536 if (sizeof (scm_t_hash_handle_fn))
9537        return 0;
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (ac_try="$ac_compile"
9544 case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9549 $as_echo "$ac_try_echo") >&5
9550   (eval "$ac_compile") 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } && {
9557          test -z "$ac_cxx_werror_flag" ||
9558          test ! -s conftest.err
9559        } && test -s conftest.$ac_objext; then
9560   cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 #include <libguile.h>
9567
9568 int
9569 main ()
9570 {
9571 if (sizeof ((scm_t_hash_handle_fn)))
9572           return 0;
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9579 case "(($ac_try" in
9580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581   *) ac_try_echo=$ac_try;;
9582 esac
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585   (eval "$ac_compile") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } && {
9592          test -z "$ac_cxx_werror_flag" ||
9593          test ! -s conftest.err
9594        } && test -s conftest.$ac_objext; then
9595   :
9596 else
9597   $as_echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600         ac_cv_type_scm_t_hash_handle_fn=yes
9601 fi
9602
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 else
9605   $as_echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 fi
9613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9614 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9615 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9616
9617 cat >>confdefs.h <<_ACEOF
9618 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9619 _ACEOF
9620
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_GUILE_HASH_FUNC 1
9623 _ACEOF
9624
9625 fi
9626
9627 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9628 $as_echo_n "checking for scm_t_subr... " >&6; }
9629 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9630   $as_echo_n "(cached) " >&6
9631 else
9632   ac_cv_type_scm_t_subr=no
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639 #include <libguile.h>
9640
9641 int
9642 main ()
9643 {
9644 if (sizeof (scm_t_subr))
9645        return 0;
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext
9651 if { (ac_try="$ac_compile"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9657 $as_echo "$ac_try_echo") >&5
9658   (eval "$ac_compile") 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } && {
9665          test -z "$ac_cxx_werror_flag" ||
9666          test ! -s conftest.err
9667        } && test -s conftest.$ac_objext; then
9668   cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674 #include <libguile.h>
9675
9676 int
9677 main ()
9678 {
9679 if (sizeof ((scm_t_subr)))
9680           return 0;
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext
9686 if { (ac_try="$ac_compile"
9687 case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9692 $as_echo "$ac_try_echo") >&5
9693   (eval "$ac_compile") 2>conftest.er1
9694   ac_status=$?
9695   grep -v '^ *+' conftest.er1 >conftest.err
9696   rm -f conftest.er1
9697   cat conftest.err >&5
9698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } && {
9700          test -z "$ac_cxx_werror_flag" ||
9701          test ! -s conftest.err
9702        } && test -s conftest.$ac_objext; then
9703   :
9704 else
9705   $as_echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708         ac_cv_type_scm_t_subr=yes
9709 fi
9710
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 else
9713   $as_echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716
9717 fi
9718
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 fi
9721 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9722 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9723 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9724
9725 cat >>confdefs.h <<_ACEOF
9726 #define HAVE_SCM_T_SUBR 1
9727 _ACEOF
9728
9729 cat >>confdefs.h <<\_ACEOF
9730 #define HAVE_GUILE_SUBR_TYPE 1
9731 _ACEOF
9732
9733 fi
9734
9735 CXXFLAGS="$save_CXXFLAGS"
9736
9737 ## Check for usable cxxabi
9738 save_LIBS="$LIBS"
9739 LIBS="$LIBS $CXXABI_LIBS"
9740 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9741 $as_echo_n "checking for usable C++ demangler... " >&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 <cxxabi.h>
9749 int
9750 main ()
9751 {
9752 abi::__cxa_demangle ("", 0, 0, 0)
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765   (eval "$ac_link") 2>conftest.er1
9766   ac_status=$?
9767   grep -v '^ *+' conftest.er1 >conftest.err
9768   rm -f conftest.er1
9769   cat conftest.err >&5
9770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } && {
9772          test -z "$ac_cxx_werror_flag" ||
9773          test ! -s conftest.err
9774        } && test -s conftest$ac_exeext && {
9775          test "$cross_compiling" = yes ||
9776          $as_test_x conftest$ac_exeext
9777        }; then
9778   cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_CXA_DEMANGLE 1
9780 _ACEOF
9781
9782         { $as_echo "$as_me:$LINENO: result: yes" >&5
9783 $as_echo "yes" >&6; }
9784 else
9785   $as_echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788
9789         LIBS="$LIBS -lsupc++"
9790         cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <cxxabi.h>
9797 int
9798 main ()
9799 {
9800 abi::__cxa_demangle ("", 0, 0, 0)
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9807 case "(($ac_try" in
9808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809   *) ac_try_echo=$ac_try;;
9810 esac
9811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9812 $as_echo "$ac_try_echo") >&5
9813   (eval "$ac_link") 2>conftest.er1
9814   ac_status=$?
9815   grep -v '^ *+' conftest.er1 >conftest.err
9816   rm -f conftest.er1
9817   cat conftest.err >&5
9818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } && {
9820          test -z "$ac_cxx_werror_flag" ||
9821          test ! -s conftest.err
9822        } && test -s conftest$ac_exeext && {
9823          test "$cross_compiling" = yes ||
9824          $as_test_x conftest$ac_exeext
9825        }; then
9826   cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_CXA_DEMANGLE 1
9828 _ACEOF
9829
9830                 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9831 $as_echo "yes, using -lsupc++" >&6; }
9832                 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9833 else
9834   $as_echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837         { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9838 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9839 fi
9840
9841 rm -rf conftest.dSYM
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843       conftest$ac_exeext conftest.$ac_ext
9844 fi
9845
9846 rm -rf conftest.dSYM
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848       conftest$ac_exeext conftest.$ac_ext
9849 LIBS="$save_LIBS"
9850
9851
9852 ## check rational bugfix.
9853 save_CPPFLAGS="$CPPFLAGS"
9854 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9855 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9856 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h.  */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h.  */
9863 #include <libguile.h>
9864 #ifdef SCM_FRACTION_REDUCED_BIT
9865 #error
9866 #endif
9867
9868 _ACEOF
9869 if { (ac_try="$ac_cpp conftest.$ac_ext"
9870 case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9875 $as_echo "$ac_try_echo") >&5
9876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9877   ac_status=$?
9878   grep -v '^ *+' conftest.er1 >conftest.err
9879   rm -f conftest.er1
9880   cat conftest.err >&5
9881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } >/dev/null && {
9883          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9884          test ! -s conftest.err
9885        }; then
9886   { $as_echo "$as_me:$LINENO: result: ok" >&5
9887 $as_echo "ok" >&6; }
9888 else
9889   $as_echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9893 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9894 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9895 fi
9896
9897 rm -f conftest.err conftest.$ac_ext
9898 CPPFLAGS="$save_CPPFLAGS"
9899
9900
9901
9902
9903 # Check whether --with-python-include was given.
9904 if test "${with_python_include+set}" = set; then
9905   withval=$with_python_include;
9906         if test "$withval" = "yes" -o "$withval" = "no"; then
9907             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9908 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9909         else
9910             PYTHON_CFLAGS="-I${withval}"
9911         fi
9912
9913 fi
9914
9915
9916
9917 # Check whether --with-python-lib was given.
9918 if test "${with_python_lib+set}" = set; then
9919   withval=$with_python_lib;
9920         if test "$withval" = "yes" -o "$withval" = "no"; then
9921             { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9922 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9923         else
9924             LDFLAGS="$LDFLAGS -l${withval}"
9925         fi
9926
9927 fi
9928
9929
9930
9931     { $as_echo "$as_me:$LINENO: checking for python" >&5
9932 $as_echo_n "checking for python... " >&6; }
9933     python="python"
9934     found="no"
9935     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
9936         exe=`
9937     ## which doesn't work in ash, if /usr/bin/which isn't installed
9938     ## type -p doesn't work in ash
9939     ## command -v doesn't work in zsh
9940     ## command -v "$r" 2>&1
9941     ## this test should work in ash, bash, pdksh (ksh), zsh
9942     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9943 `
9944         if ! $exe -V > /dev/null 2>&1 ; then
9945             continue
9946         fi
9947         ver=`
9948     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9949     ##
9950     ## ARG.
9951     ## Workaround for broken Debian gcc version string:
9952     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9953     ##
9954     ## -V: Workaround for python
9955
9956     #dnl
9957
9958     ## Assume and hunt for dotted version multiplet.
9959     ## use eval trickery, because we cannot use multi-level $() instead of ``
9960     ## for compatibility reasons.
9961
9962     ## grab the first version number in  --version output.
9963     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9964                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9965                 head -n 1 |
9966                 tr ' ' '\n' |
9967                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9968                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9969                 head -n 1\`\"
9970
9971     if test -z "$_ver"; then
9972         ## If empty, try date [fontforge]
9973         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9974             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9975             | head -n 1 \
9976             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9977     fi
9978     echo "$_ver"
9979     #dnl
9980 `
9981         num=`
9982     echo "$ver" | awk -F. '
9983     {
9984       if ($3) {three = $3}
9985       else {three = 0}
9986     }
9987     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9988 `
9989         req=`
9990     echo "2.4" | awk -F. '
9991     {
9992       if ($3) {three = $3}
9993       else {three = 0}
9994     }
9995     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9996 `
9997         sup=`
9998     echo "3.0" | awk -F. '
9999     {
10000       if ($3) {three = $3}
10001       else {three = 0}
10002     }
10003     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10004 `
10005         if test -n "2.4" && test "$num" -lt "$req"; then
10006             python="$r >= 2.4 (installed: $ver)"
10007             continue
10008         else
10009             if test -n "3.0" && test "$num" -ge "$sup"; then
10010                 python="$r < 3.0 (installed: $ver)"
10011                 continue
10012             else
10013                 python=$r
10014                 found=$r
10015                 break
10016             fi
10017         fi
10018     done
10019     { $as_echo "$as_me:$LINENO: result: $found" >&5
10020 $as_echo "$found" >&6; }
10021     if test "$found" != "no"; then
10022         { $as_echo "$as_me:$LINENO: checking $python version" >&5
10023 $as_echo_n "checking $python version... " >&6; }
10024         { $as_echo "$as_me:$LINENO: result: $ver" >&5
10025 $as_echo "$ver" >&6; }
10026         PYTHON=$found
10027     else
10028
10029     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
10030
10031     fi
10032     # Extract the first word of "$PYTHON", so it can be a program name with args.
10033 set dummy $PYTHON; ac_word=$2
10034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if test "${ac_cv_path_PYTHON+set}" = set; then
10037   $as_echo_n "(cached) " >&6
10038 else
10039   case $PYTHON in
10040   [\\/]* | ?:[\\/]*)
10041   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10042   ;;
10043   *)
10044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10046 do
10047   IFS=$as_save_IFS
10048   test -z "$as_dir" && as_dir=.
10049   for ac_exec_ext in '' $ac_executable_extensions; do
10050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10052     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10053     break 2
10054   fi
10055 done
10056 done
10057 IFS=$as_save_IFS
10058
10059   ;;
10060 esac
10061 fi
10062 PYTHON=$ac_cv_path_PYTHON
10063 if test -n "$PYTHON"; then
10064   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
10065 $as_echo "$PYTHON" >&6; }
10066 else
10067   { $as_echo "$as_me:$LINENO: result: no" >&5
10068 $as_echo "no" >&6; }
10069 fi
10070
10071
10072
10073
10074     for ac_prog in `basename $PYTHON`-config
10075 do
10076   # Extract the first word of "$ac_prog", so it can be a program name with args.
10077 set dummy $ac_prog; ac_word=$2
10078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
10081   $as_echo_n "(cached) " >&6
10082 else
10083   if test -n "$PYTHON_CONFIG"; then
10084   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10088 do
10089   IFS=$as_save_IFS
10090   test -z "$as_dir" && as_dir=.
10091   for ac_exec_ext in '' $ac_executable_extensions; do
10092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
10094     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095     break 2
10096   fi
10097 done
10098 done
10099 IFS=$as_save_IFS
10100
10101 fi
10102 fi
10103 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
10104 if test -n "$PYTHON_CONFIG"; then
10105   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
10106 $as_echo "$PYTHON_CONFIG" >&6; }
10107 else
10108   { $as_echo "$as_me:$LINENO: result: no" >&5
10109 $as_echo "no" >&6; }
10110 fi
10111
10112
10113   test -n "$PYTHON_CONFIG" && break
10114 done
10115 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10116
10117
10118     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10119         # Clean out junk: http://bugs.python.org/issue3290
10120         # Python headers may need some -f* flags, leave them in.
10121         # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10122          #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10123          # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10124          # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10125          # 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.
10126          PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10127         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10128     fi
10129
10130     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10131         #dnl
10132         # alternatively, for python >= 2.0
10133         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10134         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10135         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10136         #dnl
10137     fi
10138
10139     if test -z "$PYTHON_HEADER"; then
10140         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10141
10142 for ac_header in Python.h
10143 do
10144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 $as_echo_n "checking for $ac_header... " >&6; }
10148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10149   $as_echo_n "(cached) " >&6
10150 fi
10151 ac_res=`eval 'as_val=${'$as_ac_Header'}
10152                  $as_echo "$as_val"'`
10153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10155 else
10156   # Is the header compilable?
10157 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10158 $as_echo_n "checking $ac_header usability... " >&6; }
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 $ac_includes_default
10166 #include <$ac_header>
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176   (eval "$ac_compile") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } && {
10183          test -z "$ac_cxx_werror_flag" ||
10184          test ! -s conftest.err
10185        } && test -s conftest.$ac_objext; then
10186   ac_header_compiler=yes
10187 else
10188   $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191         ac_header_compiler=no
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10196 $as_echo "$ac_header_compiler" >&6; }
10197
10198 # Is the header present?
10199 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10200 $as_echo_n "checking $ac_header presence... " >&6; }
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207 #include <$ac_header>
10208 _ACEOF
10209 if { (ac_try="$ac_cpp conftest.$ac_ext"
10210 case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215 $as_echo "$ac_try_echo") >&5
10216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } >/dev/null && {
10223          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10224          test ! -s conftest.err
10225        }; then
10226   ac_header_preproc=yes
10227 else
10228   $as_echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231   ac_header_preproc=no
10232 fi
10233
10234 rm -f conftest.err conftest.$ac_ext
10235 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10236 $as_echo "$ac_header_preproc" >&6; }
10237
10238 # So?  What about this header?
10239 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10240   yes:no: )
10241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10242 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10243     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10245     ac_header_preproc=yes
10246     ;;
10247   no:yes:* )
10248     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10249 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10250     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10251 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10252     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10253 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10254     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10255 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10256     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10258     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10259 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10260
10261     ;;
10262 esac
10263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10264 $as_echo_n "checking for $ac_header... " >&6; }
10265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10266   $as_echo_n "(cached) " >&6
10267 else
10268   eval "$as_ac_Header=\$ac_header_preproc"
10269 fi
10270 ac_res=`eval 'as_val=${'$as_ac_Header'}
10271                  $as_echo "$as_val"'`
10272                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10273 $as_echo "$ac_res" >&6; }
10274
10275 fi
10276 as_val=`eval 'as_val=${'$as_ac_Header'}
10277                  $as_echo "$as_val"'`
10278    if test "x$as_val" = x""yes; then
10279   cat >>confdefs.h <<_ACEOF
10280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10282  PYTHON_HEADER=yes
10283 fi
10284
10285 done
10286
10287     fi
10288
10289     if test -z "$PYTHON_HEADER"; then
10290         warn="Python.h (python-devel, python-dev or libpython-dev package)"
10291
10292     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10293
10294     fi
10295
10296
10297
10298
10299
10300     for ac_prog in fontforge
10301 do
10302   # Extract the first word of "$ac_prog", so it can be a program name with args.
10303 set dummy $ac_prog; ac_word=$2
10304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10307   $as_echo_n "(cached) " >&6
10308 else
10309   if test -n "$FONTFORGE"; then
10310   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315   IFS=$as_save_IFS
10316   test -z "$as_dir" && as_dir=.
10317   for ac_exec_ext in '' $ac_executable_extensions; do
10318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319     ac_cv_prog_FONTFORGE="$ac_prog"
10320     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321     break 2
10322   fi
10323 done
10324 done
10325 IFS=$as_save_IFS
10326
10327 fi
10328 fi
10329 FONTFORGE=$ac_cv_prog_FONTFORGE
10330 if test -n "$FONTFORGE"; then
10331   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10332 $as_echo "$FONTFORGE" >&6; }
10333 else
10334   { $as_echo "$as_me:$LINENO: result: no" >&5
10335 $as_echo "no" >&6; }
10336 fi
10337
10338
10339   test -n "$FONTFORGE" && break
10340 done
10341 test -n "$FONTFORGE" || FONTFORGE="no"
10342
10343
10344
10345     r="`eval echo '$'"FONTFORGE"`"
10346     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10347         true
10348     else
10349         ##STEPMAKE_WARN(cannot find . )
10350         false
10351     fi
10352
10353     if test $? -ne 0; then
10354
10355     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10356
10357         if test "REQUIRED" = "REQUIRED"; then
10358             command="echo ERROR: fontforge not found"
10359             # abort configure process here?
10360         else
10361             command="- echo fontforge not found"
10362         fi
10363         eval "FONTFORGE"='$command'
10364         false
10365     else
10366         true
10367     fi
10368
10369     if test $? -eq 0; then
10370         for ac_prog in fontforge
10371 do
10372   # Extract the first word of "$ac_prog", so it can be a program name with args.
10373 set dummy $ac_prog; ac_word=$2
10374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10377   $as_echo_n "(cached) " >&6
10378 else
10379   case $FONTFORGE in
10380   [\\/]* | ?:[\\/]*)
10381   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10382   ;;
10383   *)
10384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387   IFS=$as_save_IFS
10388   test -z "$as_dir" && as_dir=.
10389   for ac_exec_ext in '' $ac_executable_extensions; do
10390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10392     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10393     break 2
10394   fi
10395 done
10396 done
10397 IFS=$as_save_IFS
10398
10399   ;;
10400 esac
10401 fi
10402 FONTFORGE=$ac_cv_path_FONTFORGE
10403 if test -n "$FONTFORGE"; then
10404   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10405 $as_echo "$FONTFORGE" >&6; }
10406 else
10407   { $as_echo "$as_me:$LINENO: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410
10411
10412   test -n "$FONTFORGE" && break
10413 done
10414
10415         if test -n "20110222"; then
10416
10417     r="`eval echo '$'"FONTFORGE"`"
10418     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10419 $as_echo_n "checking $r version... " >&6; }
10420     exe=`
10421     ## which doesn't work in ash, if /usr/bin/which isn't installed
10422     ## type -p doesn't work in ash
10423     ## command -v doesn't work in zsh
10424     ## command -v "$r" 2>&1
10425     ## this test should work in ash, bash, pdksh (ksh), zsh
10426     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10427 `
10428     if test -n ""; then
10429         ver=""
10430     else
10431         ver=`
10432     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10433     ##
10434     ## ARG.
10435     ## Workaround for broken Debian gcc version string:
10436     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10437     ##
10438     ## -V: Workaround for python
10439
10440     #dnl
10441
10442     ## Assume and hunt for dotted version multiplet.
10443     ## use eval trickery, because we cannot use multi-level $() instead of ``
10444     ## for compatibility reasons.
10445
10446     ## grab the first version number in  --version output.
10447     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10448                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10449                 head -n 1 |
10450                 tr ' ' '\n' |
10451                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10452                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10453                 head -n 1\`\"
10454
10455     if test -z "$_ver"; then
10456         ## If empty, try date [fontforge]
10457         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10458             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10459             | head -n 1 \
10460             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10461     fi
10462     echo "$_ver"
10463     #dnl
10464 `
10465     fi
10466     num=`
10467     echo "$ver" | awk -F. '
10468     {
10469       if ($3) {three = $3}
10470       else {three = 0}
10471     }
10472     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10473 `
10474     req=`
10475     echo "20110222" | awk -F. '
10476     {
10477       if ($3) {three = $3}
10478       else {three = 0}
10479     }
10480     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10481 `
10482     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10483 $as_echo "$ver" >&6; }
10484     if test "$num" -lt "$req"; then
10485
10486     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10487
10488     fi
10489     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10490     eval `echo $vervar=$num`
10491 ##    AC_SUBST(`eval echo $vervar`)
10492
10493         fi
10494     fi
10495
10496
10497
10498     for ac_prog in t1asm
10499 do
10500   # Extract the first word of "$ac_prog", so it can be a program name with args.
10501 set dummy $ac_prog; ac_word=$2
10502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10503 $as_echo_n "checking for $ac_word... " >&6; }
10504 if test "${ac_cv_prog_T1ASM+set}" = set; then
10505   $as_echo_n "(cached) " >&6
10506 else
10507   if test -n "$T1ASM"; then
10508   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10509 else
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513   IFS=$as_save_IFS
10514   test -z "$as_dir" && as_dir=.
10515   for ac_exec_ext in '' $ac_executable_extensions; do
10516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517     ac_cv_prog_T1ASM="$ac_prog"
10518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10519     break 2
10520   fi
10521 done
10522 done
10523 IFS=$as_save_IFS
10524
10525 fi
10526 fi
10527 T1ASM=$ac_cv_prog_T1ASM
10528 if test -n "$T1ASM"; then
10529   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10530 $as_echo "$T1ASM" >&6; }
10531 else
10532   { $as_echo "$as_me:$LINENO: result: no" >&5
10533 $as_echo "no" >&6; }
10534 fi
10535
10536
10537   test -n "$T1ASM" && break
10538 done
10539 test -n "$T1ASM" || T1ASM="no"
10540
10541
10542
10543     r="`eval echo '$'"T1ASM"`"
10544     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10545         true
10546     else
10547         ##STEPMAKE_WARN(cannot find . )
10548         false
10549     fi
10550
10551     if test $? -ne 0; then
10552
10553     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10554
10555         if test "REQUIRED" = "REQUIRED"; then
10556             command="echo ERROR: t1asm not found"
10557             # abort configure process here?
10558         else
10559             command="- echo t1asm not found"
10560         fi
10561         eval "T1ASM"='$command'
10562         false
10563     else
10564         true
10565     fi
10566
10567     if test $? -eq 0; then
10568         for ac_prog in t1asm
10569 do
10570   # Extract the first word of "$ac_prog", so it can be a program name with args.
10571 set dummy $ac_prog; ac_word=$2
10572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if test "${ac_cv_path_T1ASM+set}" = set; then
10575   $as_echo_n "(cached) " >&6
10576 else
10577   case $T1ASM in
10578   [\\/]* | ?:[\\/]*)
10579   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10580   ;;
10581   *)
10582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10584 do
10585   IFS=$as_save_IFS
10586   test -z "$as_dir" && as_dir=.
10587   for ac_exec_ext in '' $ac_executable_extensions; do
10588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10590     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10591     break 2
10592   fi
10593 done
10594 done
10595 IFS=$as_save_IFS
10596
10597   ;;
10598 esac
10599 fi
10600 T1ASM=$ac_cv_path_T1ASM
10601 if test -n "$T1ASM"; then
10602   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10603 $as_echo "$T1ASM" >&6; }
10604 else
10605   { $as_echo "$as_me:$LINENO: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608
10609
10610   test -n "$T1ASM" && break
10611 done
10612
10613         if test -n ""; then
10614
10615     r="`eval echo '$'"T1ASM"`"
10616     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10617 $as_echo_n "checking $r version... " >&6; }
10618     exe=`
10619     ## which doesn't work in ash, if /usr/bin/which isn't installed
10620     ## type -p doesn't work in ash
10621     ## command -v doesn't work in zsh
10622     ## command -v "$r" 2>&1
10623     ## this test should work in ash, bash, pdksh (ksh), zsh
10624     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10625 `
10626     if test -n ""; then
10627         ver=""
10628     else
10629         ver=`
10630     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10631     ##
10632     ## ARG.
10633     ## Workaround for broken Debian gcc version string:
10634     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10635     ##
10636     ## -V: Workaround for python
10637
10638     #dnl
10639
10640     ## Assume and hunt for dotted version multiplet.
10641     ## use eval trickery, because we cannot use multi-level $() instead of ``
10642     ## for compatibility reasons.
10643
10644     ## grab the first version number in  --version output.
10645     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10646                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10647                 head -n 1 |
10648                 tr ' ' '\n' |
10649                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10650                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10651                 head -n 1\`\"
10652
10653     if test -z "$_ver"; then
10654         ## If empty, try date [fontforge]
10655         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10656             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10657             | head -n 1 \
10658             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10659     fi
10660     echo "$_ver"
10661     #dnl
10662 `
10663     fi
10664     num=`
10665     echo "$ver" | awk -F. '
10666     {
10667       if ($3) {three = $3}
10668       else {three = 0}
10669     }
10670     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10671 `
10672     req=`
10673     echo "" | awk -F. '
10674     {
10675       if ($3) {three = $3}
10676       else {three = 0}
10677     }
10678     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10679 `
10680     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10681 $as_echo "$ver" >&6; }
10682     if test "$num" -lt "$req"; then
10683
10684     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
10685
10686     fi
10687     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10688     eval `echo $vervar=$num`
10689 ##    AC_SUBST(`eval echo $vervar`)
10690
10691         fi
10692     fi
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10703 do
10704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 $as_echo_n "checking for $ac_header... " >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709   $as_echo_n "(cached) " >&6
10710 fi
10711 ac_res=`eval 'as_val=${'$as_ac_Header'}
10712                  $as_echo "$as_val"'`
10713                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10714 $as_echo "$ac_res" >&6; }
10715 else
10716   # Is the header compilable?
10717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 $as_echo_n "checking $ac_header usability... " >&6; }
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 $ac_includes_default
10726 #include <$ac_header>
10727 _ACEOF
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736   (eval "$ac_compile") 2>conftest.er1
10737   ac_status=$?
10738   grep -v '^ *+' conftest.er1 >conftest.err
10739   rm -f conftest.er1
10740   cat conftest.err >&5
10741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } && {
10743          test -z "$ac_cxx_werror_flag" ||
10744          test ! -s conftest.err
10745        } && test -s conftest.$ac_objext; then
10746   ac_header_compiler=yes
10747 else
10748   $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751         ac_header_compiler=no
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10756 $as_echo "$ac_header_compiler" >&6; }
10757
10758 # Is the header present?
10759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10760 $as_echo_n "checking $ac_header presence... " >&6; }
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767 #include <$ac_header>
10768 _ACEOF
10769 if { (ac_try="$ac_cpp conftest.$ac_ext"
10770 case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10775 $as_echo "$ac_try_echo") >&5
10776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } >/dev/null && {
10783          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10784          test ! -s conftest.err
10785        }; then
10786   ac_header_preproc=yes
10787 else
10788   $as_echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791   ac_header_preproc=no
10792 fi
10793
10794 rm -f conftest.err conftest.$ac_ext
10795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 $as_echo "$ac_header_preproc" >&6; }
10797
10798 # So?  What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10800   yes:no: )
10801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805     ac_header_preproc=yes
10806     ;;
10807   no:yes:* )
10808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10811 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10815 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10820
10821     ;;
10822 esac
10823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 $as_echo_n "checking for $ac_header... " >&6; }
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826   $as_echo_n "(cached) " >&6
10827 else
10828   eval "$as_ac_Header=\$ac_header_preproc"
10829 fi
10830 ac_res=`eval 'as_val=${'$as_ac_Header'}
10831                  $as_echo "$as_val"'`
10832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10833 $as_echo "$ac_res" >&6; }
10834
10835 fi
10836 as_val=`eval 'as_val=${'$as_ac_Header'}
10837                  $as_echo "$as_val"'`
10838    if test "x$as_val" = x""yes; then
10839   cat >>confdefs.h <<_ACEOF
10840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10841 _ACEOF
10842
10843 fi
10844
10845 done
10846
10847
10848 for ac_header in sstream
10849 do
10850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10852   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10853 $as_echo_n "checking for $ac_header... " >&6; }
10854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10855   $as_echo_n "(cached) " >&6
10856 fi
10857 ac_res=`eval 'as_val=${'$as_ac_Header'}
10858                  $as_echo "$as_val"'`
10859                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10860 $as_echo "$ac_res" >&6; }
10861 else
10862   # Is the header compilable?
10863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864 $as_echo_n "checking $ac_header usability... " >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 $ac_includes_default
10872 #include <$ac_header>
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882   (eval "$ac_compile") 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } && {
10889          test -z "$ac_cxx_werror_flag" ||
10890          test ! -s conftest.err
10891        } && test -s conftest.$ac_objext; then
10892   ac_header_compiler=yes
10893 else
10894   $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_header_compiler=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 $as_echo "$ac_header_compiler" >&6; }
10903
10904 # Is the header present?
10905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 $as_echo_n "checking $ac_header presence... " >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <$ac_header>
10914 _ACEOF
10915 if { (ac_try="$ac_cpp conftest.$ac_ext"
10916 case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10921 $as_echo "$ac_try_echo") >&5
10922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } >/dev/null && {
10929          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10930          test ! -s conftest.err
10931        }; then
10932   ac_header_preproc=yes
10933 else
10934   $as_echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937   ac_header_preproc=no
10938 fi
10939
10940 rm -f conftest.err conftest.$ac_ext
10941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 $as_echo "$ac_header_preproc" >&6; }
10943
10944 # So?  What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10946   yes:no: )
10947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951     ac_header_preproc=yes
10952     ;;
10953   no:yes:* )
10954     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10957 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10961 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10966
10967     ;;
10968 esac
10969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10970 $as_echo_n "checking for $ac_header... " >&6; }
10971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10972   $as_echo_n "(cached) " >&6
10973 else
10974   eval "$as_ac_Header=\$ac_header_preproc"
10975 fi
10976 ac_res=`eval 'as_val=${'$as_ac_Header'}
10977                  $as_echo "$as_val"'`
10978                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10979 $as_echo "$ac_res" >&6; }
10980
10981 fi
10982 as_val=`eval 'as_val=${'$as_ac_Header'}
10983                  $as_echo "$as_val"'`
10984    if test "x$as_val" = x""yes; then
10985   cat >>confdefs.h <<_ACEOF
10986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10987 _ACEOF
10988
10989 fi
10990
10991 done
10992
10993 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10994 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10995 if test "${ac_cv_header_stat_broken+set}" = set; then
10996   $as_echo_n "(cached) " >&6
10997 else
10998   cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 #include <sys/types.h>
11005 #include <sys/stat.h>
11006
11007 #if defined S_ISBLK && defined S_IFDIR
11008 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11009 #endif
11010
11011 #if defined S_ISBLK && defined S_IFCHR
11012 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11013 #endif
11014
11015 #if defined S_ISLNK && defined S_IFREG
11016 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11017 #endif
11018
11019 #if defined S_ISSOCK && defined S_IFREG
11020 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11021 #endif
11022
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (ac_try="$ac_compile"
11026 case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11031 $as_echo "$ac_try_echo") >&5
11032   (eval "$ac_compile") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } && {
11039          test -z "$ac_cxx_werror_flag" ||
11040          test ! -s conftest.err
11041        } && test -s conftest.$ac_objext; then
11042   ac_cv_header_stat_broken=no
11043 else
11044   $as_echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047         ac_cv_header_stat_broken=yes
11048 fi
11049
11050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 fi
11052 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11053 $as_echo "$ac_cv_header_stat_broken" >&6; }
11054 if test $ac_cv_header_stat_broken = yes; then
11055
11056 cat >>confdefs.h <<\_ACEOF
11057 #define STAT_MACROS_BROKEN 1
11058 _ACEOF
11059
11060 fi
11061
11062 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11063 $as_echo_n "checking for working memcmp... " >&6; }
11064 if test "${ac_cv_func_memcmp_working+set}" = set; then
11065   $as_echo_n "(cached) " >&6
11066 else
11067   if test "$cross_compiling" = yes; then
11068   ac_cv_func_memcmp_working=no
11069 else
11070   cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 $ac_includes_default
11077 int
11078 main ()
11079 {
11080
11081   /* Some versions of memcmp are not 8-bit clean.  */
11082   char c0 = '\100', c1 = '\200', c2 = '\201';
11083   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11084     return 1;
11085
11086   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11087      or more and with at least one buffer not starting on a 4-byte boundary.
11088      William Lewis provided this test program.   */
11089   {
11090     char foo[21];
11091     char bar[21];
11092     int i;
11093     for (i = 0; i < 4; i++)
11094       {
11095         char *a = foo + i;
11096         char *b = bar + i;
11097         strcpy (a, "--------01111111");
11098         strcpy (b, "--------10000000");
11099         if (memcmp (a, b, 16) >= 0)
11100           return 1;
11101       }
11102     return 0;
11103   }
11104
11105   ;
11106   return 0;
11107 }
11108 _ACEOF
11109 rm -f conftest$ac_exeext
11110 if { (ac_try="$ac_link"
11111 case "(($ac_try" in
11112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113   *) ac_try_echo=$ac_try;;
11114 esac
11115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11116 $as_echo "$ac_try_echo") >&5
11117   (eval "$ac_link") 2>&5
11118   ac_status=$?
11119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11121   { (case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127   (eval "$ac_try") 2>&5
11128   ac_status=$?
11129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; }; then
11131   ac_cv_func_memcmp_working=yes
11132 else
11133   $as_echo "$as_me: program exited with status $ac_status" >&5
11134 $as_echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11136
11137 ( exit $ac_status )
11138 ac_cv_func_memcmp_working=no
11139 fi
11140 rm -rf conftest.dSYM
11141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11142 fi
11143
11144
11145 fi
11146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11147 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11148 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11149   *" memcmp.$ac_objext "* ) ;;
11150   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11151  ;;
11152 esac
11153
11154
11155
11156 for ac_func in vprintf
11157 do
11158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11160 $as_echo_n "checking for $ac_func... " >&6; }
11161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11162   $as_echo_n "(cached) " >&6
11163 else
11164   cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h.  */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h.  */
11170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11172 #define $ac_func innocuous_$ac_func
11173
11174 /* System header to define __stub macros and hopefully few prototypes,
11175     which can conflict with char $ac_func (); below.
11176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11177     <limits.h> exists even on freestanding compilers.  */
11178
11179 #ifdef __STDC__
11180 # include <limits.h>
11181 #else
11182 # include <assert.h>
11183 #endif
11184
11185 #undef $ac_func
11186
11187 /* Override any GCC internal prototype to avoid an error.
11188    Use char because int might match the return type of a GCC
11189    builtin and then its argument prototype would still apply.  */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char $ac_func ();
11194 /* The GNU C library defines this for functions which it implements
11195     to always fail with ENOSYS.  Some functions are actually named
11196     something starting with __ and the normal name is an alias.  */
11197 #if defined __stub_$ac_func || defined __stub___$ac_func
11198 choke me
11199 #endif
11200
11201 int
11202 main ()
11203 {
11204 return $ac_func ();
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (ac_try="$ac_link"
11211 case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11216 $as_echo "$ac_try_echo") >&5
11217   (eval "$ac_link") 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } && {
11224          test -z "$ac_cxx_werror_flag" ||
11225          test ! -s conftest.err
11226        } && test -s conftest$ac_exeext && {
11227          test "$cross_compiling" = yes ||
11228          $as_test_x conftest$ac_exeext
11229        }; then
11230   eval "$as_ac_var=yes"
11231 else
11232   $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         eval "$as_ac_var=no"
11236 fi
11237
11238 rm -rf conftest.dSYM
11239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11240       conftest$ac_exeext conftest.$ac_ext
11241 fi
11242 ac_res=`eval 'as_val=${'$as_ac_var'}
11243                  $as_echo "$as_val"'`
11244                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11246 as_val=`eval 'as_val=${'$as_ac_var'}
11247                  $as_echo "$as_val"'`
11248    if test "x$as_val" = x""yes; then
11249   cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 _ACEOF
11252
11253 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11254 $as_echo_n "checking for _doprnt... " >&6; }
11255 if test "${ac_cv_func__doprnt+set}" = set; then
11256   $as_echo_n "(cached) " >&6
11257 else
11258   cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11266 #define _doprnt innocuous__doprnt
11267
11268 /* System header to define __stub macros and hopefully few prototypes,
11269     which can conflict with char _doprnt (); below.
11270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11271     <limits.h> exists even on freestanding compilers.  */
11272
11273 #ifdef __STDC__
11274 # include <limits.h>
11275 #else
11276 # include <assert.h>
11277 #endif
11278
11279 #undef _doprnt
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char _doprnt ();
11288 /* The GNU C library defines this for functions which it implements
11289     to always fail with ENOSYS.  Some functions are actually named
11290     something starting with __ and the normal name is an alias.  */
11291 #if defined __stub__doprnt || defined __stub____doprnt
11292 choke me
11293 #endif
11294
11295 int
11296 main ()
11297 {
11298 return _doprnt ();
11299   ;
11300   return 0;
11301 }
11302 _ACEOF
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (ac_try="$ac_link"
11305 case "(($ac_try" in
11306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307   *) ac_try_echo=$ac_try;;
11308 esac
11309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11310 $as_echo "$ac_try_echo") >&5
11311   (eval "$ac_link") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } && {
11318          test -z "$ac_cxx_werror_flag" ||
11319          test ! -s conftest.err
11320        } && test -s conftest$ac_exeext && {
11321          test "$cross_compiling" = yes ||
11322          $as_test_x conftest$ac_exeext
11323        }; then
11324   ac_cv_func__doprnt=yes
11325 else
11326   $as_echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329         ac_cv_func__doprnt=no
11330 fi
11331
11332 rm -rf conftest.dSYM
11333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11334       conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11337 $as_echo "$ac_cv_func__doprnt" >&6; }
11338 if test "x$ac_cv_func__doprnt" = x""yes; then
11339
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_DOPRNT 1
11342 _ACEOF
11343
11344 fi
11345
11346 fi
11347 done
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11358 do
11359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11360 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11361 $as_echo_n "checking for $ac_func... " >&6; }
11362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11363   $as_echo_n "(cached) " >&6
11364 else
11365   cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11373 #define $ac_func innocuous_$ac_func
11374
11375 /* System header to define __stub macros and hopefully few prototypes,
11376     which can conflict with char $ac_func (); below.
11377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378     <limits.h> exists even on freestanding compilers.  */
11379
11380 #ifdef __STDC__
11381 # include <limits.h>
11382 #else
11383 # include <assert.h>
11384 #endif
11385
11386 #undef $ac_func
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389    Use char because int might match the return type of a GCC
11390    builtin and then its argument prototype would still apply.  */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char $ac_func ();
11395 /* The GNU C library defines this for functions which it implements
11396     to always fail with ENOSYS.  Some functions are actually named
11397     something starting with __ and the normal name is an alias.  */
11398 #if defined __stub_$ac_func || defined __stub___$ac_func
11399 choke me
11400 #endif
11401
11402 int
11403 main ()
11404 {
11405 return $ac_func ();
11406   ;
11407   return 0;
11408 }
11409 _ACEOF
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418   (eval "$ac_link") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } && {
11425          test -z "$ac_cxx_werror_flag" ||
11426          test ! -s conftest.err
11427        } && test -s conftest$ac_exeext && {
11428          test "$cross_compiling" = yes ||
11429          $as_test_x conftest$ac_exeext
11430        }; then
11431   eval "$as_ac_var=yes"
11432 else
11433   $as_echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436         eval "$as_ac_var=no"
11437 fi
11438
11439 rm -rf conftest.dSYM
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441       conftest$ac_exeext conftest.$ac_ext
11442 fi
11443 ac_res=`eval 'as_val=${'$as_ac_var'}
11444                  $as_echo "$as_val"'`
11445                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11446 $as_echo "$ac_res" >&6; }
11447 as_val=`eval 'as_val=${'$as_ac_var'}
11448                  $as_echo "$as_val"'`
11449    if test "x$as_val" = x""yes; then
11450   cat >>confdefs.h <<_ACEOF
11451 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 _ACEOF
11453
11454 fi
11455 done
11456
11457
11458
11459     for ac_prog in pkg-config
11460 do
11461   # Extract the first word of "$ac_prog", so it can be a program name with args.
11462 set dummy $ac_prog; ac_word=$2
11463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11466   $as_echo_n "(cached) " >&6
11467 else
11468   if test -n "$PKG_CONFIG"; then
11469   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11470 else
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11473 do
11474   IFS=$as_save_IFS
11475   test -z "$as_dir" && as_dir=.
11476   for ac_exec_ext in '' $ac_executable_extensions; do
11477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11478     ac_cv_prog_PKG_CONFIG="$ac_prog"
11479     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11480     break 2
11481   fi
11482 done
11483 done
11484 IFS=$as_save_IFS
11485
11486 fi
11487 fi
11488 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11489 if test -n "$PKG_CONFIG"; then
11490   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11491 $as_echo "$PKG_CONFIG" >&6; }
11492 else
11493   { $as_echo "$as_me:$LINENO: result: no" >&5
11494 $as_echo "no" >&6; }
11495 fi
11496
11497
11498   test -n "$PKG_CONFIG" && break
11499 done
11500 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11501
11502
11503
11504     r="`eval echo '$'"PKG_CONFIG"`"
11505     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11506         true
11507     else
11508         ##STEPMAKE_WARN(cannot find . )
11509         false
11510     fi
11511
11512     if test $? -ne 0; then
11513
11514     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11515
11516         if test "REQUIRED" = "REQUIRED"; then
11517             command="echo ERROR: pkg-config not found"
11518             # abort configure process here?
11519         else
11520             command="- echo pkg-config not found"
11521         fi
11522         eval "PKG_CONFIG"='$command'
11523         false
11524     else
11525         true
11526     fi
11527
11528     if test $? -eq 0 -a -n "0.9.0"; then
11529
11530     r="`eval echo '$'"PKG_CONFIG"`"
11531     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11532 $as_echo_n "checking $r version... " >&6; }
11533     exe=`
11534     ## which doesn't work in ash, if /usr/bin/which isn't installed
11535     ## type -p doesn't work in ash
11536     ## command -v doesn't work in zsh
11537     ## command -v "$r" 2>&1
11538     ## this test should work in ash, bash, pdksh (ksh), zsh
11539     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11540 `
11541     if test -n ""; then
11542         ver=""
11543     else
11544         ver=`
11545     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11546     ##
11547     ## ARG.
11548     ## Workaround for broken Debian gcc version string:
11549     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11550     ##
11551     ## -V: Workaround for python
11552
11553     #dnl
11554
11555     ## Assume and hunt for dotted version multiplet.
11556     ## use eval trickery, because we cannot use multi-level $() instead of ``
11557     ## for compatibility reasons.
11558
11559     ## grab the first version number in  --version output.
11560     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11561                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11562                 head -n 1 |
11563                 tr ' ' '\n' |
11564                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11565                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11566                 head -n 1\`\"
11567
11568     if test -z "$_ver"; then
11569         ## If empty, try date [fontforge]
11570         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11571             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11572             | head -n 1 \
11573             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11574     fi
11575     echo "$_ver"
11576     #dnl
11577 `
11578     fi
11579     num=`
11580     echo "$ver" | awk -F. '
11581     {
11582       if ($3) {three = $3}
11583       else {three = 0}
11584     }
11585     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11586 `
11587     req=`
11588     echo "0.9.0" | awk -F. '
11589     {
11590       if ($3) {three = $3}
11591       else {three = 0}
11592     }
11593     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11594 `
11595     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11596 $as_echo "$ver" >&6; }
11597     if test "$num" -lt "$req"; then
11598
11599     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11600
11601     fi
11602     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11603     eval `echo $vervar=$num`
11604 ##    AC_SUBST(`eval echo $vervar`)
11605
11606     fi
11607
11608
11609 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11610 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11611 if test "$reloc_b" = "yes"; then
11612     cat >>confdefs.h <<\_ACEOF
11613 #define ARGV0_RELOCATION 1
11614 _ACEOF
11615
11616 fi
11617 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11618 $as_echo "$reloc_b" >&6; }
11619
11620 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11621 $as_echo_n "checking for rpath linkage... " >&6; }
11622 if test "$rpath_b" = "yes"; then
11623     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11624 elif test "$rpath_b" != "no"; then
11625     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11626 fi
11627 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11628 $as_echo "$rpath_b" >&6; }
11629
11630 HOST_ARCH=`$CC -dumpmachine`
11631
11632
11633
11634
11635   succeeded=no
11636
11637   if test -z "$PKG_CONFIG"; then
11638     # Extract the first word of "pkg-config", so it can be a program name with args.
11639 set dummy pkg-config; ac_word=$2
11640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11643   $as_echo_n "(cached) " >&6
11644 else
11645   case $PKG_CONFIG in
11646   [\\/]* | ?:[\\/]*)
11647   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11648   ;;
11649   *)
11650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11652 do
11653   IFS=$as_save_IFS
11654   test -z "$as_dir" && as_dir=.
11655   for ac_exec_ext in '' $ac_executable_extensions; do
11656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11659     break 2
11660   fi
11661 done
11662 done
11663 IFS=$as_save_IFS
11664
11665   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11666   ;;
11667 esac
11668 fi
11669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11670 if test -n "$PKG_CONFIG"; then
11671   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11672 $as_echo "$PKG_CONFIG" >&6; }
11673 else
11674   { $as_echo "$as_me:$LINENO: result: no" >&5
11675 $as_echo "no" >&6; }
11676 fi
11677
11678
11679   fi
11680
11681   if test "$PKG_CONFIG" = "no" ; then
11682      echo "*** The pkg-config script could not be found. Make sure it is"
11683      echo "*** in your path, or set the PKG_CONFIG environment variable"
11684      echo "*** to the full path to pkg-config."
11685      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11686   else
11687      PKG_CONFIG_MIN_VERSION=0.9.0
11688      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11689         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.38.0" >&5
11690 $as_echo_n "checking for pangoft2 >= 1.38.0... " >&6; }
11691
11692         if $PKG_CONFIG --exists "pangoft2 >= 1.38.0" ; then
11693             { $as_echo "$as_me:$LINENO: result: yes" >&5
11694 $as_echo "yes" >&6; }
11695             succeeded=yes
11696
11697             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11698 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11699             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.38.0"`
11700             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11701 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11702
11703             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11704 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11705             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.38.0"`
11706             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11707 $as_echo "$PANGO_FT2_LIBS" >&6; }
11708         else
11709             PANGO_FT2_CFLAGS=""
11710             PANGO_FT2_LIBS=""
11711             ## If we have a custom action on failure, don't print errors, but
11712             ## do set a variable so people can do so.
11713             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.38.0"`
11714
11715         fi
11716
11717
11718
11719      fi
11720   fi
11721
11722   if test $succeeded = yes; then
11723      have_pangoft2_with_otf_feature=yes
11724   else
11725      true
11726   fi
11727
11728     if test "$have_pangoft2_with_otf_feature" = yes ; then
11729         cat >>confdefs.h <<\_ACEOF
11730 #define HAVE_PANGO16 1
11731 _ACEOF
11732
11733         cat >>confdefs.h <<\_ACEOF
11734 #define HAVE_PANGO_FT2 1
11735 _ACEOF
11736
11737         cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_PANGO_FT2_WITH_OTF_FEATURE 1
11739 _ACEOF
11740
11741         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11742         save_CPPFLAGS="$CPPFLAGS"
11743         save_LIBS="$LIBS"
11744         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11745         LIBS="$PANGO_FT2_LIBS $LIBS"
11746
11747 for ac_header in pango/pangoft2.h
11748 do
11749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 $as_echo_n "checking for $ac_header... " >&6; }
11753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754   $as_echo_n "(cached) " >&6
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 else
11761   # Is the header compilable?
11762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11763 $as_echo_n "checking $ac_header usability... " >&6; }
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 $ac_includes_default
11771 #include <$ac_header>
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781   (eval "$ac_compile") 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } && {
11788          test -z "$ac_cxx_werror_flag" ||
11789          test ! -s conftest.err
11790        } && test -s conftest.$ac_objext; then
11791   ac_header_compiler=yes
11792 else
11793   $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796         ac_header_compiler=no
11797 fi
11798
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 $as_echo "$ac_header_compiler" >&6; }
11802
11803 # Is the header present?
11804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11805 $as_echo_n "checking $ac_header presence... " >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h.  */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h.  */
11812 #include <$ac_header>
11813 _ACEOF
11814 if { (ac_try="$ac_cpp conftest.$ac_ext"
11815 case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11820 $as_echo "$ac_try_echo") >&5
11821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } >/dev/null && {
11828          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11829          test ! -s conftest.err
11830        }; then
11831   ac_header_preproc=yes
11832 else
11833   $as_echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836   ac_header_preproc=no
11837 fi
11838
11839 rm -f conftest.err conftest.$ac_ext
11840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 $as_echo "$ac_header_preproc" >&6; }
11842
11843 # So?  What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11845   yes:no: )
11846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11850     ac_header_preproc=yes
11851     ;;
11852   no:yes:* )
11853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11856 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11860 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865
11866     ;;
11867 esac
11868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 $as_echo_n "checking for $ac_header... " >&6; }
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871   $as_echo_n "(cached) " >&6
11872 else
11873   eval "$as_ac_Header=\$ac_header_preproc"
11874 fi
11875 ac_res=`eval 'as_val=${'$as_ac_Header'}
11876                  $as_echo "$as_val"'`
11877                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11878 $as_echo "$ac_res" >&6; }
11879
11880 fi
11881 as_val=`eval 'as_val=${'$as_ac_Header'}
11882                  $as_echo "$as_val"'`
11883    if test "x$as_val" = x""yes; then
11884   cat >>confdefs.h <<_ACEOF
11885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11886 _ACEOF
11887
11888 fi
11889
11890 done
11891
11892
11893 for ac_func in pango_ft2_font_map_create_context
11894 do
11895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 $as_echo_n "checking for $ac_func... " >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899   $as_echo_n "(cached) " >&6
11900 else
11901   cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11909 #define $ac_func innocuous_$ac_func
11910
11911 /* System header to define __stub macros and hopefully few prototypes,
11912     which can conflict with char $ac_func (); below.
11913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914     <limits.h> exists even on freestanding compilers.  */
11915
11916 #ifdef __STDC__
11917 # include <limits.h>
11918 #else
11919 # include <assert.h>
11920 #endif
11921
11922 #undef $ac_func
11923
11924 /* Override any GCC internal prototype to avoid an error.
11925    Use char because int might match the return type of a GCC
11926    builtin and then its argument prototype would still apply.  */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char $ac_func ();
11931 /* The GNU C library defines this for functions which it implements
11932     to always fail with ENOSYS.  Some functions are actually named
11933     something starting with __ and the normal name is an alias.  */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11935 choke me
11936 #endif
11937
11938 int
11939 main ()
11940 {
11941 return $ac_func ();
11942   ;
11943   return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950   *) ac_try_echo=$ac_try;;
11951 esac
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954   (eval "$ac_link") 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } && {
11961          test -z "$ac_cxx_werror_flag" ||
11962          test ! -s conftest.err
11963        } && test -s conftest$ac_exeext && {
11964          test "$cross_compiling" = yes ||
11965          $as_test_x conftest$ac_exeext
11966        }; then
11967   eval "$as_ac_var=yes"
11968 else
11969   $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972         eval "$as_ac_var=no"
11973 fi
11974
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977       conftest$ac_exeext conftest.$ac_ext
11978 fi
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980                  $as_echo "$as_val"'`
11981                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 as_val=`eval 'as_val=${'$as_ac_var'}
11984                  $as_echo "$as_val"'`
11985    if test "x$as_val" = x""yes; then
11986   cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 _ACEOF
11989
11990 fi
11991 done
11992
11993
11994
11995         CPPFLAGS="$save_CPPFLAGS"
11996         LIBS="$save_LIBS"
11997     else
11998         # UGR
11999         #r="libpangoft2-dev or pangoft2-devel"e
12000         r="libpango1.0-dev or pango?-devel"
12001         ver="`pkg-config --modversion pangoft2`"
12002
12003     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.38.0 (It is required if you'd like "\"`\"
12004
12005
12006     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""to use OpenType font feature. "\"`\"
12007
12008
12009     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""installed: $ver)"\"`\"
12010
12011     fi
12012
12013 if test "$have_pangoft2_with_otf_feature" != yes ; then
12014
12015
12016   succeeded=no
12017
12018   if test -z "$PKG_CONFIG"; then
12019     # Extract the first word of "pkg-config", so it can be a program name with args.
12020 set dummy pkg-config; ac_word=$2
12021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12024   $as_echo_n "(cached) " >&6
12025 else
12026   case $PKG_CONFIG in
12027   [\\/]* | ?:[\\/]*)
12028   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12029   ;;
12030   *)
12031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036   for ac_exec_ext in '' $ac_executable_extensions; do
12037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12039     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043 done
12044 IFS=$as_save_IFS
12045
12046   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12047   ;;
12048 esac
12049 fi
12050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12051 if test -n "$PKG_CONFIG"; then
12052   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12053 $as_echo "$PKG_CONFIG" >&6; }
12054 else
12055   { $as_echo "$as_me:$LINENO: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058
12059
12060   fi
12061
12062   if test "$PKG_CONFIG" = "no" ; then
12063      echo "*** The pkg-config script could not be found. Make sure it is"
12064      echo "*** in your path, or set the PKG_CONFIG environment variable"
12065      echo "*** to the full path to pkg-config."
12066      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12067   else
12068      PKG_CONFIG_MIN_VERSION=0.9.0
12069      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12070         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
12071 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
12072
12073         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
12074             { $as_echo "$as_me:$LINENO: result: yes" >&5
12075 $as_echo "yes" >&6; }
12076             succeeded=yes
12077
12078             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
12079 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
12080             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
12081             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
12082 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
12083
12084             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
12085 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
12086             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
12087             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
12088 $as_echo "$PANGO_FT2_LIBS" >&6; }
12089         else
12090             PANGO_FT2_CFLAGS=""
12091             PANGO_FT2_LIBS=""
12092             ## If we have a custom action on failure, don't print errors, but
12093             ## do set a variable so people can do so.
12094             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
12095
12096         fi
12097
12098
12099
12100      fi
12101   fi
12102
12103   if test $succeeded = yes; then
12104      have_pangoft2=yes
12105   else
12106      true
12107   fi
12108
12109     if test "$have_pangoft2" = yes ; then
12110         cat >>confdefs.h <<\_ACEOF
12111 #define HAVE_PANGO16 1
12112 _ACEOF
12113
12114         cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_PANGO_FT2 1
12116 _ACEOF
12117
12118         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12119         save_CPPFLAGS="$CPPFLAGS"
12120         save_LIBS="$LIBS"
12121         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
12122         LIBS="$PANGO_FT2_LIBS $LIBS"
12123
12124 for ac_header in pango/pangoft2.h
12125 do
12126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 $as_echo_n "checking for $ac_header... " >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131   $as_echo_n "(cached) " >&6
12132 fi
12133 ac_res=`eval 'as_val=${'$as_ac_Header'}
12134                  $as_echo "$as_val"'`
12135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12136 $as_echo "$ac_res" >&6; }
12137 else
12138   # Is the header compilable?
12139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12140 $as_echo_n "checking $ac_header usability... " >&6; }
12141 cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 $ac_includes_default
12148 #include <$ac_header>
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (ac_try="$ac_compile"
12152 case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12157 $as_echo "$ac_try_echo") >&5
12158   (eval "$ac_compile") 2>conftest.er1
12159   ac_status=$?
12160   grep -v '^ *+' conftest.er1 >conftest.err
12161   rm -f conftest.er1
12162   cat conftest.err >&5
12163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } && {
12165          test -z "$ac_cxx_werror_flag" ||
12166          test ! -s conftest.err
12167        } && test -s conftest.$ac_objext; then
12168   ac_header_compiler=yes
12169 else
12170   $as_echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173         ac_header_compiler=no
12174 fi
12175
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12178 $as_echo "$ac_header_compiler" >&6; }
12179
12180 # Is the header present?
12181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12182 $as_echo_n "checking $ac_header presence... " >&6; }
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 #include <$ac_header>
12190 _ACEOF
12191 if { (ac_try="$ac_cpp conftest.$ac_ext"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12197 $as_echo "$ac_try_echo") >&5
12198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12199   ac_status=$?
12200   grep -v '^ *+' conftest.er1 >conftest.err
12201   rm -f conftest.er1
12202   cat conftest.err >&5
12203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } >/dev/null && {
12205          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12206          test ! -s conftest.err
12207        }; then
12208   ac_header_preproc=yes
12209 else
12210   $as_echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213   ac_header_preproc=no
12214 fi
12215
12216 rm -f conftest.err conftest.$ac_ext
12217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12218 $as_echo "$ac_header_preproc" >&6; }
12219
12220 # So?  What about this header?
12221 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12222   yes:no: )
12223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12227     ac_header_preproc=yes
12228     ;;
12229   no:yes:* )
12230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12233 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12237 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12242
12243     ;;
12244 esac
12245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12246 $as_echo_n "checking for $ac_header... " >&6; }
12247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12248   $as_echo_n "(cached) " >&6
12249 else
12250   eval "$as_ac_Header=\$ac_header_preproc"
12251 fi
12252 ac_res=`eval 'as_val=${'$as_ac_Header'}
12253                  $as_echo "$as_val"'`
12254                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12255 $as_echo "$ac_res" >&6; }
12256
12257 fi
12258 as_val=`eval 'as_val=${'$as_ac_Header'}
12259                  $as_echo "$as_val"'`
12260    if test "x$as_val" = x""yes; then
12261   cat >>confdefs.h <<_ACEOF
12262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12263 _ACEOF
12264
12265 fi
12266
12267 done
12268
12269
12270 for ac_func in pango_ft2_font_map_create_context
12271 do
12272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 $as_echo_n "checking for $ac_func... " >&6; }
12275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276   $as_echo_n "(cached) " >&6
12277 else
12278   cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12286 #define $ac_func innocuous_$ac_func
12287
12288 /* System header to define __stub macros and hopefully few prototypes,
12289     which can conflict with char $ac_func (); below.
12290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291     <limits.h> exists even on freestanding compilers.  */
12292
12293 #ifdef __STDC__
12294 # include <limits.h>
12295 #else
12296 # include <assert.h>
12297 #endif
12298
12299 #undef $ac_func
12300
12301 /* Override any GCC internal prototype to avoid an error.
12302    Use char because int might match the return type of a GCC
12303    builtin and then its argument prototype would still apply.  */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char $ac_func ();
12308 /* The GNU C library defines this for functions which it implements
12309     to always fail with ENOSYS.  Some functions are actually named
12310     something starting with __ and the normal name is an alias.  */
12311 #if defined __stub_$ac_func || defined __stub___$ac_func
12312 choke me
12313 #endif
12314
12315 int
12316 main ()
12317 {
12318 return $ac_func ();
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330 $as_echo "$ac_try_echo") >&5
12331   (eval "$ac_link") 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } && {
12338          test -z "$ac_cxx_werror_flag" ||
12339          test ! -s conftest.err
12340        } && test -s conftest$ac_exeext && {
12341          test "$cross_compiling" = yes ||
12342          $as_test_x conftest$ac_exeext
12343        }; then
12344   eval "$as_ac_var=yes"
12345 else
12346   $as_echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349         eval "$as_ac_var=no"
12350 fi
12351
12352 rm -rf conftest.dSYM
12353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12354       conftest$ac_exeext conftest.$ac_ext
12355 fi
12356 ac_res=`eval 'as_val=${'$as_ac_var'}
12357                  $as_echo "$as_val"'`
12358                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12359 $as_echo "$ac_res" >&6; }
12360 as_val=`eval 'as_val=${'$as_ac_var'}
12361                  $as_echo "$as_val"'`
12362    if test "x$as_val" = x""yes; then
12363   cat >>confdefs.h <<_ACEOF
12364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12365 _ACEOF
12366
12367 fi
12368 done
12369
12370
12371
12372         CPPFLAGS="$save_CPPFLAGS"
12373         LIBS="$save_LIBS"
12374     else
12375         # UGR
12376         #r="libpangoft2-dev or pangoft2-devel"e
12377         r="libpango1.0-dev or pango?-devel"
12378         ver="`pkg-config --modversion pangoft2`"
12379
12380     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
12381
12382     fi
12383
12384 fi
12385
12386
12387   succeeded=no
12388
12389   if test -z "$PKG_CONFIG"; then
12390     # Extract the first word of "pkg-config", so it can be a program name with args.
12391 set dummy pkg-config; ac_word=$2
12392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12395   $as_echo_n "(cached) " >&6
12396 else
12397   case $PKG_CONFIG in
12398   [\\/]* | ?:[\\/]*)
12399   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12400   ;;
12401   *)
12402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12404 do
12405   IFS=$as_save_IFS
12406   test -z "$as_dir" && as_dir=.
12407   for ac_exec_ext in '' $ac_executable_extensions; do
12408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12410     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12411     break 2
12412   fi
12413 done
12414 done
12415 IFS=$as_save_IFS
12416
12417   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12418   ;;
12419 esac
12420 fi
12421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12422 if test -n "$PKG_CONFIG"; then
12423   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12424 $as_echo "$PKG_CONFIG" >&6; }
12425 else
12426   { $as_echo "$as_me:$LINENO: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429
12430
12431   fi
12432
12433   if test "$PKG_CONFIG" = "no" ; then
12434      echo "*** The pkg-config script could not be found. Make sure it is"
12435      echo "*** in your path, or set the PKG_CONFIG environment variable"
12436      echo "*** to the full path to pkg-config."
12437      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12438   else
12439      PKG_CONFIG_MIN_VERSION=0.9.0
12440      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12441         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
12442 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
12443
12444         if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
12445             { $as_echo "$as_me:$LINENO: result: yes" >&5
12446 $as_echo "yes" >&6; }
12447             succeeded=yes
12448
12449             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12450 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12451             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
12452             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12453 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12454
12455             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12456 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12457             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
12458             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12459 $as_echo "$FONTCONFIG_LIBS" >&6; }
12460         else
12461             FONTCONFIG_CFLAGS=""
12462             FONTCONFIG_LIBS=""
12463             ## If we have a custom action on failure, don't print errors, but
12464             ## do set a variable so people can do so.
12465             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
12466
12467         fi
12468
12469
12470
12471      fi
12472   fi
12473
12474   if test $succeeded = yes; then
12475      have_fontconfig=yes
12476   else
12477      true
12478   fi
12479
12480     if test "$have_fontconfig" = yes ; then
12481         cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_FONTCONFIG 1
12483 _ACEOF
12484
12485         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12486         save_CPPFLAGS="$CPPFLAGS"
12487         save_LIBS="$LIBS"
12488         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
12489         LIBS="$FONTCONFIG_LIBS $LIBS"
12490
12491
12492         CPPFLAGS="$save_CPPFLAGS"
12493         LIBS="$save_LIBS"
12494     else
12495         r="libfontconfig-dev or fontconfig-devel"
12496         ver="`pkg-config --modversion fontconfig`"
12497
12498     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12499
12500     fi
12501
12502
12503
12504   succeeded=no
12505
12506   if test -z "$PKG_CONFIG"; then
12507     # Extract the first word of "pkg-config", so it can be a program name with args.
12508 set dummy pkg-config; ac_word=$2
12509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12512   $as_echo_n "(cached) " >&6
12513 else
12514   case $PKG_CONFIG in
12515   [\\/]* | ?:[\\/]*)
12516   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12517   ;;
12518   *)
12519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12521 do
12522   IFS=$as_save_IFS
12523   test -z "$as_dir" && as_dir=.
12524   for ac_exec_ext in '' $ac_executable_extensions; do
12525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12528     break 2
12529   fi
12530 done
12531 done
12532 IFS=$as_save_IFS
12533
12534   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12535   ;;
12536 esac
12537 fi
12538 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12539 if test -n "$PKG_CONFIG"; then
12540   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12541 $as_echo "$PKG_CONFIG" >&6; }
12542 else
12543   { $as_echo "$as_me:$LINENO: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548   fi
12549
12550   if test "$PKG_CONFIG" = "no" ; then
12551      echo "*** The pkg-config script could not be found. Make sure it is"
12552      echo "*** in your path, or set the PKG_CONFIG environment variable"
12553      echo "*** to the full path to pkg-config."
12554      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12555   else
12556      PKG_CONFIG_MIN_VERSION=0.9.0
12557      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12558         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12559 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12560
12561         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12562             { $as_echo "$as_me:$LINENO: result: yes" >&5
12563 $as_echo "yes" >&6; }
12564             succeeded=yes
12565
12566             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12567 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12568             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12569             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12570 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12571
12572             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12573 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12574             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12575             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12576 $as_echo "$FREETYPE2_LIBS" >&6; }
12577         else
12578             FREETYPE2_CFLAGS=""
12579             FREETYPE2_LIBS=""
12580             ## If we have a custom action on failure, don't print errors, but
12581             ## do set a variable so people can do so.
12582             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12583
12584         fi
12585
12586
12587
12588      fi
12589   fi
12590
12591   if test $succeeded = yes; then
12592      have_freetype2=yes
12593   else
12594      true
12595   fi
12596
12597     if test "$have_freetype2" = yes; then
12598         cat >>confdefs.h <<\_ACEOF
12599 #define HAVE_FREETYPE2 1
12600 _ACEOF
12601
12602         save_CPPFLAGS="$CPPFLAGS"
12603         save_LIBS="$LIBS"
12604         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12605         LIBS="$FREETYPE2_LIBS $LIBS"
12606
12607
12608         CPPFLAGS="$save_CPPFLAGS"
12609         LIBS="$save_LIBS"
12610     else
12611         # UGR
12612         #r="libfreetype2-dev or freetype2-devel"
12613         r="libfreetype6-dev or freetype?-devel"
12614         ver="`pkg-config --modversion freetype2`"
12615
12616     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12617
12618     fi
12619
12620
12621
12622     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12623 $as_echo_n "checking host system type... " >&6; }
12624 if test "${ac_cv_host+set}" = set; then
12625   $as_echo_n "(cached) " >&6
12626 else
12627   if test "x$host_alias" = x; then
12628   ac_cv_host=$ac_cv_build
12629 else
12630   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12631     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12632 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12633    { (exit 1); exit 1; }; }
12634 fi
12635
12636 fi
12637 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12638 $as_echo "$ac_cv_host" >&6; }
12639 case $ac_cv_host in
12640 *-*-*) ;;
12641 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12642 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12643    { (exit 1); exit 1; }; };;
12644 esac
12645 host=$ac_cv_host
12646 ac_save_IFS=$IFS; IFS='-'
12647 set x $ac_cv_host
12648 shift
12649 host_cpu=$1
12650 host_vendor=$2
12651 shift; shift
12652 # Remember, the first character of IFS is used to create $*,
12653 # except with old shells:
12654 host_os=$*
12655 IFS=$ac_save_IFS
12656 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12657
12658
12659 case $host_os in
12660   *cygwin* ) CYGWIN=yes;;
12661          * ) CYGWIN=no;;
12662 esac
12663
12664     { $as_echo "$as_me:$LINENO: checking host system type" >&5
12665 $as_echo_n "checking host system type... " >&6; }
12666 if test "${ac_cv_host+set}" = set; then
12667   $as_echo_n "(cached) " >&6
12668 else
12669   if test "x$host_alias" = x; then
12670   ac_cv_host=$ac_cv_build
12671 else
12672   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12673     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12674 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12675    { (exit 1); exit 1; }; }
12676 fi
12677
12678 fi
12679 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12680 $as_echo "$ac_cv_host" >&6; }
12681 case $ac_cv_host in
12682 *-*-*) ;;
12683 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12684 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12685    { (exit 1); exit 1; }; };;
12686 esac
12687 host=$ac_cv_host
12688 ac_save_IFS=$IFS; IFS='-'
12689 set x $ac_cv_host
12690 shift
12691 host_cpu=$1
12692 host_vendor=$2
12693 shift; shift
12694 # Remember, the first character of IFS is used to create $*,
12695 # except with old shells:
12696 host_os=$*
12697 IFS=$ac_save_IFS
12698 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12699
12700
12701 case $host_os in
12702   *mingw32* ) MINGW32=yes;;
12703           * ) MINGW32=no;;
12704 esac
12705
12706
12707     if test "$CYGWIN" = "yes"; then
12708         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12709         program_suffix=.exe
12710         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12711     elif test "$MINGW32" = "yes"; then
12712         LN='cp -r'
12713         LN_S='cp -r'
12714         program_suffix=.exe
12715         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12716         PATHSEP=';'
12717     fi
12718
12719
12720
12721     cat >>confdefs.h <<_ACEOF
12722 #define DIRSEP '${DIRSEP}'
12723 _ACEOF
12724
12725     cat >>confdefs.h <<_ACEOF
12726 #define PATHSEP '${PATHSEP}'
12727 _ACEOF
12728
12729
12730
12731
12732
12733     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12734 $as_echo_n "checking for some flavor of Windows... " >&6; }
12735     if test "$CYGWIN$MINGW32" = "nono"; then
12736         PLATFORM_WINDOWS=no
12737     else
12738         PLATFORM_WINDOWS=yes
12739     fi
12740     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12741 $as_echo "$PLATFORM_WINDOWS" >&6; }
12742
12743
12744     for ac_prog in $target-windres windres
12745 do
12746   # Extract the first word of "$ac_prog", so it can be a program name with args.
12747 set dummy $ac_prog; ac_word=$2
12748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12749 $as_echo_n "checking for $ac_word... " >&6; }
12750 if test "${ac_cv_prog_WINDRES+set}" = set; then
12751   $as_echo_n "(cached) " >&6
12752 else
12753   if test -n "$WINDRES"; then
12754   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12755 else
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12758 do
12759   IFS=$as_save_IFS
12760   test -z "$as_dir" && as_dir=.
12761   for ac_exec_ext in '' $ac_executable_extensions; do
12762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12763     ac_cv_prog_WINDRES="$ac_prog"
12764     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12765     break 2
12766   fi
12767 done
12768 done
12769 IFS=$as_save_IFS
12770
12771 fi
12772 fi
12773 WINDRES=$ac_cv_prog_WINDRES
12774 if test -n "$WINDRES"; then
12775   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12776 $as_echo "$WINDRES" >&6; }
12777 else
12778   { $as_echo "$as_me:$LINENO: result: no" >&5
12779 $as_echo "no" >&6; }
12780 fi
12781
12782
12783   test -n "$WINDRES" && break
12784 done
12785 test -n "$WINDRES" || WINDRES="no"
12786
12787
12788
12789     r="`eval echo '$'"WINDRES"`"
12790     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12791         true
12792     else
12793         ##STEPMAKE_WARN(cannot find . )
12794         false
12795     fi
12796
12797     if test $? -ne 0; then
12798
12799     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12800
12801         if test "x" = "REQUIRED"; then
12802             command="echo ERROR: $target-windres windres not found"
12803             # abort configure process here?
12804         else
12805             command="- echo $target-windres windres not found"
12806         fi
12807         eval "WINDRES"='$command'
12808         false
12809     else
12810         true
12811     fi
12812
12813     if test $? -eq 0 -a -n ""; then
12814
12815     r="`eval echo '$'"WINDRES"`"
12816     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12817 $as_echo_n "checking $r version... " >&6; }
12818     exe=`
12819     ## which doesn't work in ash, if /usr/bin/which isn't installed
12820     ## type -p doesn't work in ash
12821     ## command -v doesn't work in zsh
12822     ## command -v "$r" 2>&1
12823     ## this test should work in ash, bash, pdksh (ksh), zsh
12824     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12825 `
12826     if test -n ""; then
12827         ver=""
12828     else
12829         ver=`
12830     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12831     ##
12832     ## ARG.
12833     ## Workaround for broken Debian gcc version string:
12834     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12835     ##
12836     ## -V: Workaround for python
12837
12838     #dnl
12839
12840     ## Assume and hunt for dotted version multiplet.
12841     ## use eval trickery, because we cannot use multi-level $() instead of ``
12842     ## for compatibility reasons.
12843
12844     ## grab the first version number in  --version output.
12845     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12846                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12847                 head -n 1 |
12848                 tr ' ' '\n' |
12849                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12850                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12851                 head -n 1\`\"
12852
12853     if test -z "$_ver"; then
12854         ## If empty, try date [fontforge]
12855         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12856             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12857             | head -n 1 \
12858             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12859     fi
12860     echo "$_ver"
12861     #dnl
12862 `
12863     fi
12864     num=`
12865     echo "$ver" | awk -F. '
12866     {
12867       if ($3) {three = $3}
12868       else {three = 0}
12869     }
12870     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12871 `
12872     req=`
12873     echo "" | awk -F. '
12874     {
12875       if ($3) {three = $3}
12876       else {three = 0}
12877     }
12878     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12879 `
12880     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12881 $as_echo "$ver" >&6; }
12882     if test "$num" -lt "$req"; then
12883
12884     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
12885
12886     fi
12887     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12888     eval `echo $vervar=$num`
12889 ##    AC_SUBST(`eval echo $vervar`)
12890
12891     fi
12892
12893
12894
12895
12896 # guile executable for some scripts
12897 if test "$GUILEv2" = "yes"
12898 then
12899
12900     { $as_echo "$as_me:$LINENO: checking for guile" >&5
12901 $as_echo_n "checking for guile... " >&6; }
12902     guile="guile"
12903     found="no"
12904     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
12905         exe=`
12906     ## which doesn't work in ash, if /usr/bin/which isn't installed
12907     ## type -p doesn't work in ash
12908     ## command -v doesn't work in zsh
12909     ## command -v "$r" 2>&1
12910     ## this test should work in ash, bash, pdksh (ksh), zsh
12911     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12912 `
12913         if ! $exe --version > /dev/null 2>&1 ; then
12914             continue
12915         fi
12916         ver=`
12917     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12918     ##
12919     ## ARG.
12920     ## Workaround for broken Debian gcc version string:
12921     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12922     ##
12923     ## -V: Workaround for python
12924
12925     #dnl
12926
12927     ## Assume and hunt for dotted version multiplet.
12928     ## use eval trickery, because we cannot use multi-level $() instead of ``
12929     ## for compatibility reasons.
12930
12931     ## grab the first version number in  --version output.
12932     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12933                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12934                 head -n 1 |
12935                 tr ' ' '\n' |
12936                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12937                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12938                 head -n 1\`\"
12939
12940     if test -z "$_ver"; then
12941         ## If empty, try date [fontforge]
12942         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12943             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12944             | head -n 1 \
12945             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12946     fi
12947     echo "$_ver"
12948     #dnl
12949 `
12950         num=`
12951     echo "$ver" | awk -F. '
12952     {
12953       if ($3) {three = $3}
12954       else {three = 0}
12955     }
12956     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12957 `
12958         req=`
12959     echo "2.0.7" | awk -F. '
12960     {
12961       if ($3) {three = $3}
12962       else {three = 0}
12963     }
12964     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12965 `
12966         sup=`
12967     echo "2.3.0" | awk -F. '
12968     {
12969       if ($3) {three = $3}
12970       else {three = 0}
12971     }
12972     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12973 `
12974         if test -n "2.0.7" && test "$num" -lt "$req"; then
12975             guile="$r >= 2.0.7 (installed: $ver)"
12976             continue
12977         else
12978             if test -n "2.3.0" && test "$num" -ge "$sup"; then
12979                 guile="$r < 2.3.0 (installed: $ver)"
12980                 continue
12981             else
12982                 guile=$r
12983                 found=$r
12984                 break
12985             fi
12986         fi
12987     done
12988     { $as_echo "$as_me:$LINENO: result: $found" >&5
12989 $as_echo "$found" >&6; }
12990     if test "$found" != "no"; then
12991         { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12992 $as_echo_n "checking $guile version... " >&6; }
12993         { $as_echo "$as_me:$LINENO: result: $ver" >&5
12994 $as_echo "$ver" >&6; }
12995         GUILE=$found
12996     else
12997
12998     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12999
13000     fi
13001
13002     for ac_prog in $GUILE
13003 do
13004   # Extract the first word of "$ac_prog", so it can be a program name with args.
13005 set dummy $ac_prog; ac_word=$2
13006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_GUILE+set}" = set; then
13009   $as_echo_n "(cached) " >&6
13010 else
13011   if test -n "$GUILE"; then
13012   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017   IFS=$as_save_IFS
13018   test -z "$as_dir" && as_dir=.
13019   for ac_exec_ext in '' $ac_executable_extensions; do
13020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021     ac_cv_prog_GUILE="$ac_prog"
13022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13023     break 2
13024   fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 fi
13030 fi
13031 GUILE=$ac_cv_prog_GUILE
13032 if test -n "$GUILE"; then
13033   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13034 $as_echo "$GUILE" >&6; }
13035 else
13036   { $as_echo "$as_me:$LINENO: result: no" >&5
13037 $as_echo "no" >&6; }
13038 fi
13039
13040
13041   test -n "$GUILE" && break
13042 done
13043 test -n "$GUILE" || GUILE="no"
13044
13045
13046
13047     r="`eval echo '$'"GUILE"`"
13048     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
13049         true
13050     else
13051         ##STEPMAKE_WARN(cannot find . )
13052         false
13053     fi
13054
13055     if test $? -ne 0; then
13056
13057     eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
13058
13059         if test "" = "REQUIRED"; then
13060             command="echo ERROR: $GUILE not found"
13061             # abort configure process here?
13062         else
13063             command="- echo $GUILE not found"
13064         fi
13065         eval "GUILE"='$command'
13066         false
13067     else
13068         true
13069     fi
13070
13071     if test $? -eq 0; then
13072         for ac_prog in $GUILE
13073 do
13074   # Extract the first word of "$ac_prog", so it can be a program name with args.
13075 set dummy $ac_prog; ac_word=$2
13076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if test "${ac_cv_path_GUILE+set}" = set; then
13079   $as_echo_n "(cached) " >&6
13080 else
13081   case $GUILE in
13082   [\\/]* | ?:[\\/]*)
13083   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
13084   ;;
13085   *)
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091   for ac_exec_ext in '' $ac_executable_extensions; do
13092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
13094     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101   ;;
13102 esac
13103 fi
13104 GUILE=$ac_cv_path_GUILE
13105 if test -n "$GUILE"; then
13106   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13107 $as_echo "$GUILE" >&6; }
13108 else
13109   { $as_echo "$as_me:$LINENO: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114   test -n "$GUILE" && break
13115 done
13116
13117         if test -n ""; then
13118
13119     r="`eval echo '$'"GUILE"`"
13120     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13121 $as_echo_n "checking $r version... " >&6; }
13122     exe=`
13123     ## which doesn't work in ash, if /usr/bin/which isn't installed
13124     ## type -p doesn't work in ash
13125     ## command -v doesn't work in zsh
13126     ## command -v "$r" 2>&1
13127     ## this test should work in ash, bash, pdksh (ksh), zsh
13128     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13129 `
13130     if test -n ""; then
13131         ver=""
13132     else
13133         ver=`
13134     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13135     ##
13136     ## ARG.
13137     ## Workaround for broken Debian gcc version string:
13138     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13139     ##
13140     ## -V: Workaround for python
13141
13142     #dnl
13143
13144     ## Assume and hunt for dotted version multiplet.
13145     ## use eval trickery, because we cannot use multi-level $() instead of ``
13146     ## for compatibility reasons.
13147
13148     ## grab the first version number in  --version output.
13149     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13150                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13151                 head -n 1 |
13152                 tr ' ' '\n' |
13153                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13154                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13155                 head -n 1\`\"
13156
13157     if test -z "$_ver"; then
13158         ## If empty, try date [fontforge]
13159         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13160             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13161             | head -n 1 \
13162             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13163     fi
13164     echo "$_ver"
13165     #dnl
13166 `
13167     fi
13168     num=`
13169     echo "$ver" | awk -F. '
13170     {
13171       if ($3) {three = $3}
13172       else {three = 0}
13173     }
13174     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13175 `
13176     req=`
13177     echo "" | awk -F. '
13178     {
13179       if ($3) {three = $3}
13180       else {three = 0}
13181     }
13182     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13183 `
13184     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13185 $as_echo "$ver" >&6; }
13186     if test "$num" -lt "$req"; then
13187
13188     eval ""=\"`eval echo \"'$'\" \""$r >=  (installed: $ver)"\"`\"
13189
13190     fi
13191     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
13192     eval `echo $vervar=$num`
13193 ##    AC_SUBST(`eval echo $vervar`)
13194
13195         fi
13196     fi
13197
13198
13199 else
13200
13201     { $as_echo "$as_me:$LINENO: checking for guile" >&5
13202 $as_echo_n "checking for guile... " >&6; }
13203     guile="guile"
13204     found="no"
13205     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
13206         exe=`
13207     ## which doesn't work in ash, if /usr/bin/which isn't installed
13208     ## type -p doesn't work in ash
13209     ## command -v doesn't work in zsh
13210     ## command -v "$r" 2>&1
13211     ## this test should work in ash, bash, pdksh (ksh), zsh
13212     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13213 `
13214         if ! $exe --version > /dev/null 2>&1 ; then
13215             continue
13216         fi
13217         ver=`
13218     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13219     ##
13220     ## ARG.
13221     ## Workaround for broken Debian gcc version string:
13222     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13223     ##
13224     ## -V: Workaround for python
13225
13226     #dnl
13227
13228     ## Assume and hunt for dotted version multiplet.
13229     ## use eval trickery, because we cannot use multi-level $() instead of ``
13230     ## for compatibility reasons.
13231
13232     ## grab the first version number in  --version output.
13233     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13234                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13235                 head -n 1 |
13236                 tr ' ' '\n' |
13237                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13238                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13239                 head -n 1\`\"
13240
13241     if test -z "$_ver"; then
13242         ## If empty, try date [fontforge]
13243         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13244             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13245             | head -n 1 \
13246             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13247     fi
13248     echo "$_ver"
13249     #dnl
13250 `
13251         num=`
13252     echo "$ver" | awk -F. '
13253     {
13254       if ($3) {three = $3}
13255       else {three = 0}
13256     }
13257     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13258 `
13259         req=`
13260     echo "1.8.2" | awk -F. '
13261     {
13262       if ($3) {three = $3}
13263       else {three = 0}
13264     }
13265     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13266 `
13267         sup=`
13268     echo "1.9.0" | awk -F. '
13269     {
13270       if ($3) {three = $3}
13271       else {three = 0}
13272     }
13273     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13274 `
13275         if test -n "1.8.2" && test "$num" -lt "$req"; then
13276             guile="$r >= 1.8.2 (installed: $ver)"
13277             continue
13278         else
13279             if test -n "1.9.0" && test "$num" -ge "$sup"; then
13280                 guile="$r < 1.9.0 (installed: $ver)"
13281                 continue
13282             else
13283                 guile=$r
13284                 found=$r
13285                 break
13286             fi
13287         fi
13288     done
13289     { $as_echo "$as_me:$LINENO: result: $found" >&5
13290 $as_echo "$found" >&6; }
13291     if test "$found" != "no"; then
13292         { $as_echo "$as_me:$LINENO: checking $guile version" >&5
13293 $as_echo_n "checking $guile version... " >&6; }
13294         { $as_echo "$as_me:$LINENO: result: $ver" >&5
13295 $as_echo "$ver" >&6; }
13296         GUILE=$found
13297     else
13298
13299     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
13300
13301     fi
13302
13303     for ac_prog in $GUILE
13304 do
13305   # Extract the first word of "$ac_prog", so it can be a program name with args.
13306 set dummy $ac_prog; ac_word=$2
13307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_GUILE+set}" = set; then
13310   $as_echo_n "(cached) " >&6
13311 else
13312   if test -n "$GUILE"; then
13313   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13317 do
13318   IFS=$as_save_IFS
13319   test -z "$as_dir" && as_dir=.
13320   for ac_exec_ext in '' $ac_executable_extensions; do
13321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322     ac_cv_prog_GUILE="$ac_prog"
13323     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13324     break 2
13325   fi
13326 done
13327 done
13328 IFS=$as_save_IFS
13329
13330 fi
13331 fi
13332 GUILE=$ac_cv_prog_GUILE
13333 if test -n "$GUILE"; then
13334   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13335 $as_echo "$GUILE" >&6; }
13336 else
13337   { $as_echo "$as_me:$LINENO: result: no" >&5
13338 $as_echo "no" >&6; }
13339 fi
13340
13341
13342   test -n "$GUILE" && break
13343 done
13344 test -n "$GUILE" || GUILE="no"
13345
13346
13347
13348     r="`eval echo '$'"GUILE"`"
13349     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
13350         true
13351     else
13352         ##STEPMAKE_WARN(cannot find . )
13353         false
13354     fi
13355
13356     if test $? -ne 0; then
13357
13358     eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
13359
13360         if test "" = "REQUIRED"; then
13361             command="echo ERROR: $GUILE not found"
13362             # abort configure process here?
13363         else
13364             command="- echo $GUILE not found"
13365         fi
13366         eval "GUILE"='$command'
13367         false
13368     else
13369         true
13370     fi
13371
13372     if test $? -eq 0; then
13373         for ac_prog in $GUILE
13374 do
13375   # Extract the first word of "$ac_prog", so it can be a program name with args.
13376 set dummy $ac_prog; ac_word=$2
13377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if test "${ac_cv_path_GUILE+set}" = set; then
13380   $as_echo_n "(cached) " >&6
13381 else
13382   case $GUILE in
13383   [\\/]* | ?:[\\/]*)
13384   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
13385   ;;
13386   *)
13387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390   IFS=$as_save_IFS
13391   test -z "$as_dir" && as_dir=.
13392   for ac_exec_ext in '' $ac_executable_extensions; do
13393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
13395     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13396     break 2
13397   fi
13398 done
13399 done
13400 IFS=$as_save_IFS
13401
13402   ;;
13403 esac
13404 fi
13405 GUILE=$ac_cv_path_GUILE
13406 if test -n "$GUILE"; then
13407   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
13408 $as_echo "$GUILE" >&6; }
13409 else
13410   { $as_echo "$as_me:$LINENO: result: no" >&5
13411 $as_echo "no" >&6; }
13412 fi
13413
13414
13415   test -n "$GUILE" && break
13416 done
13417
13418         if test -n ""; then
13419
13420     r="`eval echo '$'"GUILE"`"
13421     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13422 $as_echo_n "checking $r version... " >&6; }
13423     exe=`
13424     ## which doesn't work in ash, if /usr/bin/which isn't installed
13425     ## type -p doesn't work in ash
13426     ## command -v doesn't work in zsh
13427     ## command -v "$r" 2>&1
13428     ## this test should work in ash, bash, pdksh (ksh), zsh
13429     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13430 `
13431     if test -n ""; then
13432         ver=""
13433     else
13434         ver=`
13435     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13436     ##
13437     ## ARG.
13438     ## Workaround for broken Debian gcc version string:
13439     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13440     ##
13441     ## -V: Workaround for python
13442
13443     #dnl
13444
13445     ## Assume and hunt for dotted version multiplet.
13446     ## use eval trickery, because we cannot use multi-level $() instead of ``
13447     ## for compatibility reasons.
13448
13449     ## grab the first version number in  --version output.
13450     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13451                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13452                 head -n 1 |
13453                 tr ' ' '\n' |
13454                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13455                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13456                 head -n 1\`\"
13457
13458     if test -z "$_ver"; then
13459         ## If empty, try date [fontforge]
13460         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13461             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13462             | head -n 1 \
13463             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13464     fi
13465     echo "$_ver"
13466     #dnl
13467 `
13468     fi
13469     num=`
13470     echo "$ver" | awk -F. '
13471     {
13472       if ($3) {three = $3}
13473       else {three = 0}
13474     }
13475     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13476 `
13477     req=`
13478     echo "" | awk -F. '
13479     {
13480       if ($3) {three = $3}
13481       else {three = 0}
13482     }
13483     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13484 `
13485     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13486 $as_echo "$ver" >&6; }
13487     if test "$num" -lt "$req"; then
13488
13489     eval ""=\"`eval echo \"'$'\" \""$r >=  (installed: $ver)"\"`\"
13490
13491     fi
13492     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
13493     eval `echo $vervar=$num`
13494 ##    AC_SUBST(`eval echo $vervar`)
13495
13496         fi
13497     fi
13498
13499
13500 fi
13501
13502 # perl for help2man and for mf2pt1.pl
13503
13504
13505     for ac_prog in perl
13506 do
13507   # Extract the first word of "$ac_prog", so it can be a program name with args.
13508 set dummy $ac_prog; ac_word=$2
13509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13510 $as_echo_n "checking for $ac_word... " >&6; }
13511 if test "${ac_cv_prog_PERL+set}" = set; then
13512   $as_echo_n "(cached) " >&6
13513 else
13514   if test -n "$PERL"; then
13515   ac_cv_prog_PERL="$PERL" # Let the user override the test.
13516 else
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13519 do
13520   IFS=$as_save_IFS
13521   test -z "$as_dir" && as_dir=.
13522   for ac_exec_ext in '' $ac_executable_extensions; do
13523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524     ac_cv_prog_PERL="$ac_prog"
13525     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13526     break 2
13527   fi
13528 done
13529 done
13530 IFS=$as_save_IFS
13531
13532 fi
13533 fi
13534 PERL=$ac_cv_prog_PERL
13535 if test -n "$PERL"; then
13536   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
13537 $as_echo "$PERL" >&6; }
13538 else
13539   { $as_echo "$as_me:$LINENO: result: no" >&5
13540 $as_echo "no" >&6; }
13541 fi
13542
13543
13544   test -n "$PERL" && break
13545 done
13546 test -n "$PERL" || PERL="no"
13547
13548
13549
13550     r="`eval echo '$'"PERL"`"
13551     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
13552         true
13553     else
13554         ##STEPMAKE_WARN(cannot find . )
13555         false
13556     fi
13557
13558     if test $? -ne 0; then
13559
13560     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
13561
13562         if test "REQUIRED" = "REQUIRED"; then
13563             command="echo ERROR: perl not found"
13564             # abort configure process here?
13565         else
13566             command="- echo perl not found"
13567         fi
13568         eval "PERL"='$command'
13569         false
13570     else
13571         true
13572     fi
13573
13574     if test $? -eq 0; then
13575         for ac_prog in perl
13576 do
13577   # Extract the first word of "$ac_prog", so it can be a program name with args.
13578 set dummy $ac_prog; ac_word=$2
13579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if test "${ac_cv_path_PERL+set}" = set; then
13582   $as_echo_n "(cached) " >&6
13583 else
13584   case $PERL in
13585   [\\/]* | ?:[\\/]*)
13586   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13587   ;;
13588   *)
13589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592   IFS=$as_save_IFS
13593   test -z "$as_dir" && as_dir=.
13594   for ac_exec_ext in '' $ac_executable_extensions; do
13595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13596     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13597     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13598     break 2
13599   fi
13600 done
13601 done
13602 IFS=$as_save_IFS
13603
13604   ;;
13605 esac
13606 fi
13607 PERL=$ac_cv_path_PERL
13608 if test -n "$PERL"; then
13609   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
13610 $as_echo "$PERL" >&6; }
13611 else
13612   { $as_echo "$as_me:$LINENO: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615
13616
13617   test -n "$PERL" && break
13618 done
13619
13620         if test -n ""; then
13621
13622     r="`eval echo '$'"PERL"`"
13623     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13624 $as_echo_n "checking $r version... " >&6; }
13625     exe=`
13626     ## which doesn't work in ash, if /usr/bin/which isn't installed
13627     ## type -p doesn't work in ash
13628     ## command -v doesn't work in zsh
13629     ## command -v "$r" 2>&1
13630     ## this test should work in ash, bash, pdksh (ksh), zsh
13631     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13632 `
13633     if test -n ""; then
13634         ver=""
13635     else
13636         ver=`
13637     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13638     ##
13639     ## ARG.
13640     ## Workaround for broken Debian gcc version string:
13641     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13642     ##
13643     ## -V: Workaround for python
13644
13645     #dnl
13646
13647     ## Assume and hunt for dotted version multiplet.
13648     ## use eval trickery, because we cannot use multi-level $() instead of ``
13649     ## for compatibility reasons.
13650
13651     ## grab the first version number in  --version output.
13652     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13653                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13654                 head -n 1 |
13655                 tr ' ' '\n' |
13656                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13657                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13658                 head -n 1\`\"
13659
13660     if test -z "$_ver"; then
13661         ## If empty, try date [fontforge]
13662         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13663             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13664             | head -n 1 \
13665             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13666     fi
13667     echo "$_ver"
13668     #dnl
13669 `
13670     fi
13671     num=`
13672     echo "$ver" | awk -F. '
13673     {
13674       if ($3) {three = $3}
13675       else {three = 0}
13676     }
13677     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13678 `
13679     req=`
13680     echo "" | awk -F. '
13681     {
13682       if ($3) {three = $3}
13683       else {three = 0}
13684     }
13685     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13686 `
13687     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13688 $as_echo "$ver" >&6; }
13689     if test "$num" -lt "$req"; then
13690
13691     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
13692
13693     fi
13694     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
13695     eval `echo $vervar=$num`
13696 ##    AC_SUBST(`eval echo $vervar`)
13697
13698         fi
13699     fi
13700
13701
13702
13703 ## Optional tools for building documentation, website, extra fonts.
13704 if test "$DOCUMENTATION" = "yes"; then
13705   DOCUMENTATION_REQUIRED=REQUIRED
13706 else
13707   DOCUMENTATION_REQUIRED=OPTIONAL
13708 fi
13709
13710
13711     for ac_prog in gs
13712 do
13713   # Extract the first word of "$ac_prog", so it can be a program name with args.
13714 set dummy $ac_prog; ac_word=$2
13715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
13718   $as_echo_n "(cached) " >&6
13719 else
13720   if test -n "$GHOSTSCRIPT"; then
13721   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
13722 else
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13725 do
13726   IFS=$as_save_IFS
13727   test -z "$as_dir" && as_dir=.
13728   for ac_exec_ext in '' $ac_executable_extensions; do
13729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13730     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
13731     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13732     break 2
13733   fi
13734 done
13735 done
13736 IFS=$as_save_IFS
13737
13738 fi
13739 fi
13740 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
13741 if test -n "$GHOSTSCRIPT"; then
13742   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13743 $as_echo "$GHOSTSCRIPT" >&6; }
13744 else
13745   { $as_echo "$as_me:$LINENO: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748
13749
13750   test -n "$GHOSTSCRIPT" && break
13751 done
13752 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
13753
13754
13755
13756     r="`eval echo '$'"GHOSTSCRIPT"`"
13757     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
13758         true
13759     else
13760         ##STEPMAKE_WARN(cannot find . )
13761         false
13762     fi
13763
13764     if test $? -ne 0; then
13765
13766     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
13767
13768         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13769             command="echo ERROR: gs not found"
13770             # abort configure process here?
13771         else
13772             command="- echo gs not found"
13773         fi
13774         eval "GHOSTSCRIPT"='$command'
13775         false
13776     else
13777         true
13778     fi
13779
13780     if test $? -eq 0; then
13781         for ac_prog in gs
13782 do
13783   # Extract the first word of "$ac_prog", so it can be a program name with args.
13784 set dummy $ac_prog; ac_word=$2
13785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13786 $as_echo_n "checking for $ac_word... " >&6; }
13787 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
13788   $as_echo_n "(cached) " >&6
13789 else
13790   case $GHOSTSCRIPT in
13791   [\\/]* | ?:[\\/]*)
13792   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
13793   ;;
13794   *)
13795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13797 do
13798   IFS=$as_save_IFS
13799   test -z "$as_dir" && as_dir=.
13800   for ac_exec_ext in '' $ac_executable_extensions; do
13801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13802     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13804     break 2
13805   fi
13806 done
13807 done
13808 IFS=$as_save_IFS
13809
13810   ;;
13811 esac
13812 fi
13813 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13814 if test -n "$GHOSTSCRIPT"; then
13815   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13816 $as_echo "$GHOSTSCRIPT" >&6; }
13817 else
13818   { $as_echo "$as_me:$LINENO: result: no" >&5
13819 $as_echo "no" >&6; }
13820 fi
13821
13822
13823   test -n "$GHOSTSCRIPT" && break
13824 done
13825
13826         if test -n "8.60"; then
13827
13828     r="`eval echo '$'"GHOSTSCRIPT"`"
13829     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13830 $as_echo_n "checking $r version... " >&6; }
13831     exe=`
13832     ## which doesn't work in ash, if /usr/bin/which isn't installed
13833     ## type -p doesn't work in ash
13834     ## command -v doesn't work in zsh
13835     ## command -v "$r" 2>&1
13836     ## this test should work in ash, bash, pdksh (ksh), zsh
13837     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13838 `
13839     if test -n ""; then
13840         ver=""
13841     else
13842         ver=`
13843     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13844     ##
13845     ## ARG.
13846     ## Workaround for broken Debian gcc version string:
13847     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13848     ##
13849     ## -V: Workaround for python
13850
13851     #dnl
13852
13853     ## Assume and hunt for dotted version multiplet.
13854     ## use eval trickery, because we cannot use multi-level $() instead of ``
13855     ## for compatibility reasons.
13856
13857     ## grab the first version number in  --version output.
13858     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13859                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13860                 head -n 1 |
13861                 tr ' ' '\n' |
13862                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13863                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13864                 head -n 1\`\"
13865
13866     if test -z "$_ver"; then
13867         ## If empty, try date [fontforge]
13868         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13869             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13870             | head -n 1 \
13871             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13872     fi
13873     echo "$_ver"
13874     #dnl
13875 `
13876     fi
13877     num=`
13878     echo "$ver" | awk -F. '
13879     {
13880       if ($3) {three = $3}
13881       else {three = 0}
13882     }
13883     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13884 `
13885     req=`
13886     echo "8.60" | awk -F. '
13887     {
13888       if ($3) {three = $3}
13889       else {three = 0}
13890     }
13891     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13892 `
13893     { $as_echo "$as_me:$LINENO: result: $ver" >&5
13894 $as_echo "$ver" >&6; }
13895     if test "$num" -lt "$req"; then
13896
13897     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13898
13899     fi
13900     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13901     eval `echo $vervar=$num`
13902 ##    AC_SUBST(`eval echo $vervar`)
13903
13904         fi
13905     fi
13906
13907
13908
13909
13910
13911
13912     for ac_prog in gs
13913 do
13914   # Extract the first word of "$ac_prog", so it can be a program name with args.
13915 set dummy $ac_prog; ac_word=$2
13916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if test "${ac_cv_prog_GS920+set}" = set; then
13919   $as_echo_n "(cached) " >&6
13920 else
13921   if test -n "$GS920"; then
13922   ac_cv_prog_GS920="$GS920" # Let the user override the test.
13923 else
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927   IFS=$as_save_IFS
13928   test -z "$as_dir" && as_dir=.
13929   for ac_exec_ext in '' $ac_executable_extensions; do
13930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931     ac_cv_prog_GS920="$ac_prog"
13932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933     break 2
13934   fi
13935 done
13936 done
13937 IFS=$as_save_IFS
13938
13939 fi
13940 fi
13941 GS920=$ac_cv_prog_GS920
13942 if test -n "$GS920"; then
13943   { $as_echo "$as_me:$LINENO: result: $GS920" >&5
13944 $as_echo "$GS920" >&6; }
13945 else
13946   { $as_echo "$as_me:$LINENO: result: no" >&5
13947 $as_echo "no" >&6; }
13948 fi
13949
13950
13951   test -n "$GS920" && break
13952 done
13953 test -n "$GS920" || GS920="no"
13954
13955
13956
13957     r="`eval echo '$'"GS920"`"
13958     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GS920"`' : '.*\(echo\)' > /dev/null; then
13959         true
13960     else
13961         ##STEPMAKE_WARN(cannot find . )
13962         false
13963     fi
13964
13965     if test $? -ne 0; then
13966
13967     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
13968
13969         if test "OPTIONAL" = "REQUIRED"; then
13970             command="echo ERROR: gs not found"
13971             # abort configure process here?
13972         else
13973             command="- echo gs not found"
13974         fi
13975         eval "GS920"='$command'
13976         false
13977     else
13978         true
13979     fi
13980
13981     if test $? -eq 0 -a -n "9.20"; then
13982
13983     r="`eval echo '$'"GS920"`"
13984     { $as_echo "$as_me:$LINENO: checking $r version" >&5
13985 $as_echo_n "checking $r version... " >&6; }
13986     exe=`
13987     ## which doesn't work in ash, if /usr/bin/which isn't installed
13988     ## type -p doesn't work in ash
13989     ## command -v doesn't work in zsh
13990     ## command -v "$r" 2>&1
13991     ## this test should work in ash, bash, pdksh (ksh), zsh
13992     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13993 `
13994     if test -n ""; then
13995         ver=""
13996     else
13997         ver=`
13998     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13999     ##
14000     ## ARG.
14001     ## Workaround for broken Debian gcc version string:
14002     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14003     ##
14004     ## -V: Workaround for python
14005
14006     #dnl
14007
14008     ## Assume and hunt for dotted version multiplet.
14009     ## use eval trickery, because we cannot use multi-level $() instead of ``
14010     ## for compatibility reasons.
14011
14012     ## grab the first version number in  --version output.
14013     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14014                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14015                 head -n 1 |
14016                 tr ' ' '\n' |
14017                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14018                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14019                 head -n 1\`\"
14020
14021     if test -z "$_ver"; then
14022         ## If empty, try date [fontforge]
14023         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14024             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14025             | head -n 1 \
14026             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14027     fi
14028     echo "$_ver"
14029     #dnl
14030 `
14031     fi
14032     num=`
14033     echo "$ver" | awk -F. '
14034     {
14035       if ($3) {three = $3}
14036       else {three = 0}
14037     }
14038     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14039 `
14040     req=`
14041     echo "9.20" | awk -F. '
14042     {
14043       if ($3) {three = $3}
14044       else {three = 0}
14045     }
14046     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14047 `
14048     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14049 $as_echo "$ver" >&6; }
14050     if test "$num" -lt "$req"; then
14051
14052     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 9.20 (installed: $ver)"\"`\"
14053
14054     fi
14055     vervar="`echo GS920 | tr 'a-z' 'A-Z'`_VERSION"
14056     eval `echo $vervar=$num`
14057 ##    AC_SUBST(`eval echo $vervar`)
14058
14059     fi
14060
14061
14062     for ac_prog in extractpdfmark
14063 do
14064   # Extract the first word of "$ac_prog", so it can be a program name with args.
14065 set dummy $ac_prog; ac_word=$2
14066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14067 $as_echo_n "checking for $ac_word... " >&6; }
14068 if test "${ac_cv_prog_EXTRACTPDFMARK+set}" = set; then
14069   $as_echo_n "(cached) " >&6
14070 else
14071   if test -n "$EXTRACTPDFMARK"; then
14072   ac_cv_prog_EXTRACTPDFMARK="$EXTRACTPDFMARK" # Let the user override the test.
14073 else
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14076 do
14077   IFS=$as_save_IFS
14078   test -z "$as_dir" && as_dir=.
14079   for ac_exec_ext in '' $ac_executable_extensions; do
14080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14081     ac_cv_prog_EXTRACTPDFMARK="$ac_prog"
14082     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14083     break 2
14084   fi
14085 done
14086 done
14087 IFS=$as_save_IFS
14088
14089 fi
14090 fi
14091 EXTRACTPDFMARK=$ac_cv_prog_EXTRACTPDFMARK
14092 if test -n "$EXTRACTPDFMARK"; then
14093   { $as_echo "$as_me:$LINENO: result: $EXTRACTPDFMARK" >&5
14094 $as_echo "$EXTRACTPDFMARK" >&6; }
14095 else
14096   { $as_echo "$as_me:$LINENO: result: no" >&5
14097 $as_echo "no" >&6; }
14098 fi
14099
14100
14101   test -n "$EXTRACTPDFMARK" && break
14102 done
14103 test -n "$EXTRACTPDFMARK" || EXTRACTPDFMARK="no"
14104
14105
14106
14107     r="`eval echo '$'"EXTRACTPDFMARK"`"
14108     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"EXTRACTPDFMARK"`' : '.*\(echo\)' > /dev/null; then
14109         true
14110     else
14111         ##STEPMAKE_WARN(cannot find . )
14112         false
14113     fi
14114
14115     if test $? -ne 0; then
14116
14117     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"extractpdfmark\"`\"
14118
14119         if test "OPTIONAL" = "REQUIRED"; then
14120             command="echo ERROR: extractpdfmark not found"
14121             # abort configure process here?
14122         else
14123             command="- echo extractpdfmark not found"
14124         fi
14125         eval "EXTRACTPDFMARK"='$command'
14126         false
14127     else
14128         true
14129     fi
14130
14131     if test $? -eq 0 -a -n ""; then
14132
14133     r="`eval echo '$'"EXTRACTPDFMARK"`"
14134     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14135 $as_echo_n "checking $r version... " >&6; }
14136     exe=`
14137     ## which doesn't work in ash, if /usr/bin/which isn't installed
14138     ## type -p doesn't work in ash
14139     ## command -v doesn't work in zsh
14140     ## command -v "$r" 2>&1
14141     ## this test should work in ash, bash, pdksh (ksh), zsh
14142     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14143 `
14144     if test -n ""; then
14145         ver=""
14146     else
14147         ver=`
14148     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14149     ##
14150     ## ARG.
14151     ## Workaround for broken Debian gcc version string:
14152     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14153     ##
14154     ## -V: Workaround for python
14155
14156     #dnl
14157
14158     ## Assume and hunt for dotted version multiplet.
14159     ## use eval trickery, because we cannot use multi-level $() instead of ``
14160     ## for compatibility reasons.
14161
14162     ## grab the first version number in  --version output.
14163     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14164                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14165                 head -n 1 |
14166                 tr ' ' '\n' |
14167                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14168                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14169                 head -n 1\`\"
14170
14171     if test -z "$_ver"; then
14172         ## If empty, try date [fontforge]
14173         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14174             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14175             | head -n 1 \
14176             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14177     fi
14178     echo "$_ver"
14179     #dnl
14180 `
14181     fi
14182     num=`
14183     echo "$ver" | awk -F. '
14184     {
14185       if ($3) {three = $3}
14186       else {three = 0}
14187     }
14188     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14189 `
14190     req=`
14191     echo "" | awk -F. '
14192     {
14193       if ($3) {three = $3}
14194       else {three = 0}
14195     }
14196     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14197 `
14198     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14199 $as_echo "$ver" >&6; }
14200     if test "$num" -lt "$req"; then
14201
14202     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
14203
14204     fi
14205     vervar="`echo EXTRACTPDFMARK | tr 'a-z' 'A-Z'`_VERSION"
14206     eval `echo $vervar=$num`
14207 ##    AC_SUBST(`eval echo $vervar`)
14208
14209     fi
14210
14211 req=`
14212     echo "9.20" | awk -F. '
14213     {
14214       if ($3) {three = $3}
14215       else {three = 0}
14216     }
14217     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14218 `
14219 USE_EXTRACTPDFMARK=yes
14220 if test "$GS920_VERSION" -lt "$req"; then
14221     GS920=
14222     USE_EXTRACTPDFMARK=no
14223 fi
14224 if test "$EXTRACTPDFMARK" != "extractpdfmark"; then
14225     EXTRACTPDFMARK=
14226     USE_EXTRACTPDFMARK=no
14227 fi
14228 if test "$USE_EXTRACTPDFMARK" != "yes"; then
14229
14230     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(Optionally using Ghostscript >= 9.20 together with"\"`\"
14231
14232
14233     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" Extract PDFmark can significantly reduce the disk space required"\"`\"
14234
14235
14236     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" for building the documentation and the final PDF files.)"\"`\"
14237
14238 fi
14239
14240
14241     for ac_prog in makeinfo
14242 do
14243   # Extract the first word of "$ac_prog", so it can be a program name with args.
14244 set dummy $ac_prog; ac_word=$2
14245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
14248   $as_echo_n "(cached) " >&6
14249 else
14250   if test -n "$MAKEINFO"; then
14251   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256   IFS=$as_save_IFS
14257   test -z "$as_dir" && as_dir=.
14258   for ac_exec_ext in '' $ac_executable_extensions; do
14259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260     ac_cv_prog_MAKEINFO="$ac_prog"
14261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14262     break 2
14263   fi
14264 done
14265 done
14266 IFS=$as_save_IFS
14267
14268 fi
14269 fi
14270 MAKEINFO=$ac_cv_prog_MAKEINFO
14271 if test -n "$MAKEINFO"; then
14272   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
14273 $as_echo "$MAKEINFO" >&6; }
14274 else
14275   { $as_echo "$as_me:$LINENO: result: no" >&5
14276 $as_echo "no" >&6; }
14277 fi
14278
14279
14280   test -n "$MAKEINFO" && break
14281 done
14282 test -n "$MAKEINFO" || MAKEINFO="no"
14283
14284
14285
14286     r="`eval echo '$'"MAKEINFO"`"
14287     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
14288         true
14289     else
14290         ##STEPMAKE_WARN(cannot find . )
14291         false
14292     fi
14293
14294     if test $? -ne 0; then
14295
14296     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
14297
14298         if test "REQUIRED" = "REQUIRED"; then
14299             command="echo ERROR: makeinfo not found"
14300             # abort configure process here?
14301         else
14302             command="- echo makeinfo not found"
14303         fi
14304         eval "MAKEINFO"='$command'
14305         false
14306     else
14307         true
14308     fi
14309
14310     if test $? -eq 0 -a -n "4.11"; then
14311
14312     r="`eval echo '$'"MAKEINFO"`"
14313     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14314 $as_echo_n "checking $r version... " >&6; }
14315     exe=`
14316     ## which doesn't work in ash, if /usr/bin/which isn't installed
14317     ## type -p doesn't work in ash
14318     ## command -v doesn't work in zsh
14319     ## command -v "$r" 2>&1
14320     ## this test should work in ash, bash, pdksh (ksh), zsh
14321     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14322 `
14323     if test -n ""; then
14324         ver=""
14325     else
14326         ver=`
14327     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14328     ##
14329     ## ARG.
14330     ## Workaround for broken Debian gcc version string:
14331     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14332     ##
14333     ## -V: Workaround for python
14334
14335     #dnl
14336
14337     ## Assume and hunt for dotted version multiplet.
14338     ## use eval trickery, because we cannot use multi-level $() instead of ``
14339     ## for compatibility reasons.
14340
14341     ## grab the first version number in  --version output.
14342     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14343                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14344                 head -n 1 |
14345                 tr ' ' '\n' |
14346                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14347                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14348                 head -n 1\`\"
14349
14350     if test -z "$_ver"; then
14351         ## If empty, try date [fontforge]
14352         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14353             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14354             | head -n 1 \
14355             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14356     fi
14357     echo "$_ver"
14358     #dnl
14359 `
14360     fi
14361     num=`
14362     echo "$ver" | awk -F. '
14363     {
14364       if ($3) {three = $3}
14365       else {three = 0}
14366     }
14367     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14368 `
14369     req=`
14370     echo "4.11" | awk -F. '
14371     {
14372       if ($3) {three = $3}
14373       else {three = 0}
14374     }
14375     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14376 `
14377     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14378 $as_echo "$ver" >&6; }
14379     if test "$num" -lt "$req"; then
14380
14381     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
14382
14383     fi
14384     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
14385     eval `echo $vervar=$num`
14386 ##    AC_SUBST(`eval echo $vervar`)
14387
14388     fi
14389
14390
14391     for ac_prog in texi2html
14392 do
14393   # Extract the first word of "$ac_prog", so it can be a program name with args.
14394 set dummy $ac_prog; ac_word=$2
14395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14396 $as_echo_n "checking for $ac_word... " >&6; }
14397 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
14398   $as_echo_n "(cached) " >&6
14399 else
14400   if test -n "$TEXI2HTML"; then
14401   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
14402 else
14403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404 for as_dir in $PATH
14405 do
14406   IFS=$as_save_IFS
14407   test -z "$as_dir" && as_dir=.
14408   for ac_exec_ext in '' $ac_executable_extensions; do
14409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14410     ac_cv_prog_TEXI2HTML="$ac_prog"
14411     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14412     break 2
14413   fi
14414 done
14415 done
14416 IFS=$as_save_IFS
14417
14418 fi
14419 fi
14420 TEXI2HTML=$ac_cv_prog_TEXI2HTML
14421 if test -n "$TEXI2HTML"; then
14422   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
14423 $as_echo "$TEXI2HTML" >&6; }
14424 else
14425   { $as_echo "$as_me:$LINENO: result: no" >&5
14426 $as_echo "no" >&6; }
14427 fi
14428
14429
14430   test -n "$TEXI2HTML" && break
14431 done
14432 test -n "$TEXI2HTML" || TEXI2HTML="no"
14433
14434
14435
14436     r="`eval echo '$'"TEXI2HTML"`"
14437     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
14438         true
14439     else
14440         ##STEPMAKE_WARN(cannot find . )
14441         false
14442     fi
14443
14444     if test $? -ne 0; then
14445
14446     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
14447
14448         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14449             command="echo ERROR: texi2html not found"
14450             # abort configure process here?
14451         else
14452             command="- echo texi2html not found"
14453         fi
14454         eval "TEXI2HTML"='$command'
14455         false
14456     else
14457         true
14458     fi
14459
14460     if test $? -eq 0 -a -n "1.82"; then
14461
14462     r="`eval echo '$'"TEXI2HTML"`"
14463     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14464 $as_echo_n "checking $r version... " >&6; }
14465     exe=`
14466     ## which doesn't work in ash, if /usr/bin/which isn't installed
14467     ## type -p doesn't work in ash
14468     ## command -v doesn't work in zsh
14469     ## command -v "$r" 2>&1
14470     ## this test should work in ash, bash, pdksh (ksh), zsh
14471     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14472 `
14473     if test -n ""; then
14474         ver=""
14475     else
14476         ver=`
14477     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14478     ##
14479     ## ARG.
14480     ## Workaround for broken Debian gcc version string:
14481     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14482     ##
14483     ## -V: Workaround for python
14484
14485     #dnl
14486
14487     ## Assume and hunt for dotted version multiplet.
14488     ## use eval trickery, because we cannot use multi-level $() instead of ``
14489     ## for compatibility reasons.
14490
14491     ## grab the first version number in  --version output.
14492     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14493                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14494                 head -n 1 |
14495                 tr ' ' '\n' |
14496                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14497                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14498                 head -n 1\`\"
14499
14500     if test -z "$_ver"; then
14501         ## If empty, try date [fontforge]
14502         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14503             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14504             | head -n 1 \
14505             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14506     fi
14507     echo "$_ver"
14508     #dnl
14509 `
14510     fi
14511     num=`
14512     echo "$ver" | awk -F. '
14513     {
14514       if ($3) {three = $3}
14515       else {three = 0}
14516     }
14517     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14518 `
14519     req=`
14520     echo "1.82" | awk -F. '
14521     {
14522       if ($3) {three = $3}
14523       else {three = 0}
14524     }
14525     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14526 `
14527     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14528 $as_echo "$ver" >&6; }
14529     if test "$num" -lt "$req"; then
14530
14531     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
14532
14533     fi
14534     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
14535     eval `echo $vervar=$num`
14536 ##    AC_SUBST(`eval echo $vervar`)
14537
14538     fi
14539
14540
14541     for ac_prog in dblatex
14542 do
14543   # Extract the first word of "$ac_prog", so it can be a program name with args.
14544 set dummy $ac_prog; ac_word=$2
14545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14546 $as_echo_n "checking for $ac_word... " >&6; }
14547 if test "${ac_cv_prog_DBLATEX+set}" = set; then
14548   $as_echo_n "(cached) " >&6
14549 else
14550   if test -n "$DBLATEX"; then
14551   ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
14552 else
14553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14555 do
14556   IFS=$as_save_IFS
14557   test -z "$as_dir" && as_dir=.
14558   for ac_exec_ext in '' $ac_executable_extensions; do
14559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14560     ac_cv_prog_DBLATEX="$ac_prog"
14561     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14562     break 2
14563   fi
14564 done
14565 done
14566 IFS=$as_save_IFS
14567
14568 fi
14569 fi
14570 DBLATEX=$ac_cv_prog_DBLATEX
14571 if test -n "$DBLATEX"; then
14572   { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
14573 $as_echo "$DBLATEX" >&6; }
14574 else
14575   { $as_echo "$as_me:$LINENO: result: no" >&5
14576 $as_echo "no" >&6; }
14577 fi
14578
14579
14580   test -n "$DBLATEX" && break
14581 done
14582 test -n "$DBLATEX" || DBLATEX="no"
14583
14584
14585
14586     r="`eval echo '$'"DBLATEX"`"
14587     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
14588         true
14589     else
14590         ##STEPMAKE_WARN(cannot find . )
14591         false
14592     fi
14593
14594     if test $? -ne 0; then
14595
14596     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
14597
14598         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14599             command="echo ERROR: dblatex not found"
14600             # abort configure process here?
14601         else
14602             command="- echo dblatex not found"
14603         fi
14604         eval "DBLATEX"='$command'
14605         false
14606     else
14607         true
14608     fi
14609
14610     if test $? -eq 0 -a -n "0.1.4"; then
14611
14612     r="`eval echo '$'"DBLATEX"`"
14613     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14614 $as_echo_n "checking $r version... " >&6; }
14615     exe=`
14616     ## which doesn't work in ash, if /usr/bin/which isn't installed
14617     ## type -p doesn't work in ash
14618     ## command -v doesn't work in zsh
14619     ## command -v "$r" 2>&1
14620     ## this test should work in ash, bash, pdksh (ksh), zsh
14621     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14622 `
14623     if test -n ""; then
14624         ver=""
14625     else
14626         ver=`
14627     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14628     ##
14629     ## ARG.
14630     ## Workaround for broken Debian gcc version string:
14631     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14632     ##
14633     ## -V: Workaround for python
14634
14635     #dnl
14636
14637     ## Assume and hunt for dotted version multiplet.
14638     ## use eval trickery, because we cannot use multi-level $() instead of ``
14639     ## for compatibility reasons.
14640
14641     ## grab the first version number in  --version output.
14642     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14643                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14644                 head -n 1 |
14645                 tr ' ' '\n' |
14646                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14647                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14648                 head -n 1\`\"
14649
14650     if test -z "$_ver"; then
14651         ## If empty, try date [fontforge]
14652         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14653             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14654             | head -n 1 \
14655             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14656     fi
14657     echo "$_ver"
14658     #dnl
14659 `
14660     fi
14661     num=`
14662     echo "$ver" | awk -F. '
14663     {
14664       if ($3) {three = $3}
14665       else {three = 0}
14666     }
14667     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14668 `
14669     req=`
14670     echo "0.1.4" | awk -F. '
14671     {
14672       if ($3) {three = $3}
14673       else {three = 0}
14674     }
14675     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14676 `
14677     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14678 $as_echo "$ver" >&6; }
14679     if test "$num" -lt "$req"; then
14680
14681     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
14682
14683     fi
14684     vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
14685     eval `echo $vervar=$num`
14686 ##    AC_SUBST(`eval echo $vervar`)
14687
14688     fi
14689
14690
14691     for ac_prog in bibtex
14692 do
14693   # Extract the first word of "$ac_prog", so it can be a program name with args.
14694 set dummy $ac_prog; ac_word=$2
14695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if test "${ac_cv_prog_BIBTEX+set}" = set; then
14698   $as_echo_n "(cached) " >&6
14699 else
14700   if test -n "$BIBTEX"; then
14701   ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
14702 else
14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14704 for as_dir in $PATH
14705 do
14706   IFS=$as_save_IFS
14707   test -z "$as_dir" && as_dir=.
14708   for ac_exec_ext in '' $ac_executable_extensions; do
14709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14710     ac_cv_prog_BIBTEX="$ac_prog"
14711     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14712     break 2
14713   fi
14714 done
14715 done
14716 IFS=$as_save_IFS
14717
14718 fi
14719 fi
14720 BIBTEX=$ac_cv_prog_BIBTEX
14721 if test -n "$BIBTEX"; then
14722   { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
14723 $as_echo "$BIBTEX" >&6; }
14724 else
14725   { $as_echo "$as_me:$LINENO: result: no" >&5
14726 $as_echo "no" >&6; }
14727 fi
14728
14729
14730   test -n "$BIBTEX" && break
14731 done
14732 test -n "$BIBTEX" || BIBTEX="no"
14733
14734
14735
14736     r="`eval echo '$'"BIBTEX"`"
14737     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
14738         true
14739     else
14740         ##STEPMAKE_WARN(cannot find . )
14741         false
14742     fi
14743
14744     if test $? -ne 0; then
14745
14746     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
14747
14748         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14749             command="echo ERROR: bibtex not found"
14750             # abort configure process here?
14751         else
14752             command="- echo bibtex not found"
14753         fi
14754         eval "BIBTEX"='$command'
14755         false
14756     else
14757         true
14758     fi
14759
14760     if test $? -eq 0 -a -n ""; then
14761
14762     r="`eval echo '$'"BIBTEX"`"
14763     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14764 $as_echo_n "checking $r version... " >&6; }
14765     exe=`
14766     ## which doesn't work in ash, if /usr/bin/which isn't installed
14767     ## type -p doesn't work in ash
14768     ## command -v doesn't work in zsh
14769     ## command -v "$r" 2>&1
14770     ## this test should work in ash, bash, pdksh (ksh), zsh
14771     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14772 `
14773     if test -n ""; then
14774         ver=""
14775     else
14776         ver=`
14777     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14778     ##
14779     ## ARG.
14780     ## Workaround for broken Debian gcc version string:
14781     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14782     ##
14783     ## -V: Workaround for python
14784
14785     #dnl
14786
14787     ## Assume and hunt for dotted version multiplet.
14788     ## use eval trickery, because we cannot use multi-level $() instead of ``
14789     ## for compatibility reasons.
14790
14791     ## grab the first version number in  --version output.
14792     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14793                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14794                 head -n 1 |
14795                 tr ' ' '\n' |
14796                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14797                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14798                 head -n 1\`\"
14799
14800     if test -z "$_ver"; then
14801         ## If empty, try date [fontforge]
14802         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14803             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14804             | head -n 1 \
14805             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14806     fi
14807     echo "$_ver"
14808     #dnl
14809 `
14810     fi
14811     num=`
14812     echo "$ver" | awk -F. '
14813     {
14814       if ($3) {three = $3}
14815       else {three = 0}
14816     }
14817     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14818 `
14819     req=`
14820     echo "" | awk -F. '
14821     {
14822       if ($3) {three = $3}
14823       else {three = 0}
14824     }
14825     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14826 `
14827     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14828 $as_echo "$ver" >&6; }
14829     if test "$num" -lt "$req"; then
14830
14831     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14832
14833     fi
14834     vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
14835     eval `echo $vervar=$num`
14836 ##    AC_SUBST(`eval echo $vervar`)
14837
14838     fi
14839
14840
14841     for ac_prog in xelatex pdflatex
14842 do
14843   # Extract the first word of "$ac_prog", so it can be a program name with args.
14844 set dummy $ac_prog; ac_word=$2
14845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14846 $as_echo_n "checking for $ac_word... " >&6; }
14847 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
14848   $as_echo_n "(cached) " >&6
14849 else
14850   if test -n "$PDFLATEX"; then
14851   ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
14852 else
14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14854 for as_dir in $PATH
14855 do
14856   IFS=$as_save_IFS
14857   test -z "$as_dir" && as_dir=.
14858   for ac_exec_ext in '' $ac_executable_extensions; do
14859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14860     ac_cv_prog_PDFLATEX="$ac_prog"
14861     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14862     break 2
14863   fi
14864 done
14865 done
14866 IFS=$as_save_IFS
14867
14868 fi
14869 fi
14870 PDFLATEX=$ac_cv_prog_PDFLATEX
14871 if test -n "$PDFLATEX"; then
14872   { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
14873 $as_echo "$PDFLATEX" >&6; }
14874 else
14875   { $as_echo "$as_me:$LINENO: result: no" >&5
14876 $as_echo "no" >&6; }
14877 fi
14878
14879
14880   test -n "$PDFLATEX" && break
14881 done
14882 test -n "$PDFLATEX" || PDFLATEX="no"
14883
14884
14885
14886     r="`eval echo '$'"PDFLATEX"`"
14887     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
14888         true
14889     else
14890         ##STEPMAKE_WARN(cannot find . )
14891         false
14892     fi
14893
14894     if test $? -ne 0; then
14895
14896     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
14897
14898         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14899             command="echo ERROR: xelatex pdflatex not found"
14900             # abort configure process here?
14901         else
14902             command="- echo xelatex pdflatex not found"
14903         fi
14904         eval "PDFLATEX"='$command'
14905         false
14906     else
14907         true
14908     fi
14909
14910     if test $? -eq 0 -a -n ""; then
14911
14912     r="`eval echo '$'"PDFLATEX"`"
14913     { $as_echo "$as_me:$LINENO: checking $r version" >&5
14914 $as_echo_n "checking $r version... " >&6; }
14915     exe=`
14916     ## which doesn't work in ash, if /usr/bin/which isn't installed
14917     ## type -p doesn't work in ash
14918     ## command -v doesn't work in zsh
14919     ## command -v "$r" 2>&1
14920     ## this test should work in ash, bash, pdksh (ksh), zsh
14921     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14922 `
14923     if test -n ""; then
14924         ver=""
14925     else
14926         ver=`
14927     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14928     ##
14929     ## ARG.
14930     ## Workaround for broken Debian gcc version string:
14931     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14932     ##
14933     ## -V: Workaround for python
14934
14935     #dnl
14936
14937     ## Assume and hunt for dotted version multiplet.
14938     ## use eval trickery, because we cannot use multi-level $() instead of ``
14939     ## for compatibility reasons.
14940
14941     ## grab the first version number in  --version output.
14942     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14943                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14944                 head -n 1 |
14945                 tr ' ' '\n' |
14946                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14947                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14948                 head -n 1\`\"
14949
14950     if test -z "$_ver"; then
14951         ## If empty, try date [fontforge]
14952         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14953             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14954             | head -n 1 \
14955             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14956     fi
14957     echo "$_ver"
14958     #dnl
14959 `
14960     fi
14961     num=`
14962     echo "$ver" | awk -F. '
14963     {
14964       if ($3) {three = $3}
14965       else {three = 0}
14966     }
14967     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14968 `
14969     req=`
14970     echo "" | awk -F. '
14971     {
14972       if ($3) {three = $3}
14973       else {three = 0}
14974     }
14975     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14976 `
14977     { $as_echo "$as_me:$LINENO: result: $ver" >&5
14978 $as_echo "$ver" >&6; }
14979     if test "$num" -lt "$req"; then
14980
14981     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
14982
14983     fi
14984     vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
14985     eval `echo $vervar=$num`
14986 ##    AC_SUBST(`eval echo $vervar`)
14987
14988     fi
14989
14990 if test "$PDFLATEX" = "xelatex"; then
14991
14992     for ac_prog in xetex
14993 do
14994   # Extract the first word of "$ac_prog", so it can be a program name with args.
14995 set dummy $ac_prog; ac_word=$2
14996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14997 $as_echo_n "checking for $ac_word... " >&6; }
14998 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14999   $as_echo_n "(cached) " >&6
15000 else
15001   if test -n "$PDFTEX"; then
15002   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
15003 else
15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005 for as_dir in $PATH
15006 do
15007   IFS=$as_save_IFS
15008   test -z "$as_dir" && as_dir=.
15009   for ac_exec_ext in '' $ac_executable_extensions; do
15010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15011     ac_cv_prog_PDFTEX="$ac_prog"
15012     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15013     break 2
15014   fi
15015 done
15016 done
15017 IFS=$as_save_IFS
15018
15019 fi
15020 fi
15021 PDFTEX=$ac_cv_prog_PDFTEX
15022 if test -n "$PDFTEX"; then
15023   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
15024 $as_echo "$PDFTEX" >&6; }
15025 else
15026   { $as_echo "$as_me:$LINENO: result: no" >&5
15027 $as_echo "no" >&6; }
15028 fi
15029
15030
15031   test -n "$PDFTEX" && break
15032 done
15033 test -n "$PDFTEX" || PDFTEX="no"
15034
15035
15036
15037     r="`eval echo '$'"PDFTEX"`"
15038     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
15039         true
15040     else
15041         ##STEPMAKE_WARN(cannot find . )
15042         false
15043     fi
15044
15045     if test $? -ne 0; then
15046
15047     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
15048
15049         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15050             command="echo ERROR: xetex not found"
15051             # abort configure process here?
15052         else
15053             command="- echo xetex not found"
15054         fi
15055         eval "PDFTEX"='$command'
15056         false
15057     else
15058         true
15059     fi
15060
15061     if test $? -eq 0 -a -n ""; then
15062
15063     r="`eval echo '$'"PDFTEX"`"
15064     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15065 $as_echo_n "checking $r version... " >&6; }
15066     exe=`
15067     ## which doesn't work in ash, if /usr/bin/which isn't installed
15068     ## type -p doesn't work in ash
15069     ## command -v doesn't work in zsh
15070     ## command -v "$r" 2>&1
15071     ## this test should work in ash, bash, pdksh (ksh), zsh
15072     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15073 `
15074     if test -n ""; then
15075         ver=""
15076     else
15077         ver=`
15078     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15079     ##
15080     ## ARG.
15081     ## Workaround for broken Debian gcc version string:
15082     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15083     ##
15084     ## -V: Workaround for python
15085
15086     #dnl
15087
15088     ## Assume and hunt for dotted version multiplet.
15089     ## use eval trickery, because we cannot use multi-level $() instead of ``
15090     ## for compatibility reasons.
15091
15092     ## grab the first version number in  --version output.
15093     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15094                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15095                 head -n 1 |
15096                 tr ' ' '\n' |
15097                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15098                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15099                 head -n 1\`\"
15100
15101     if test -z "$_ver"; then
15102         ## If empty, try date [fontforge]
15103         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15104             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15105             | head -n 1 \
15106             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15107     fi
15108     echo "$_ver"
15109     #dnl
15110 `
15111     fi
15112     num=`
15113     echo "$ver" | awk -F. '
15114     {
15115       if ($3) {three = $3}
15116       else {three = 0}
15117     }
15118     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15119 `
15120     req=`
15121     echo "" | awk -F. '
15122     {
15123       if ($3) {three = $3}
15124       else {three = 0}
15125     }
15126     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15127 `
15128     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15129 $as_echo "$ver" >&6; }
15130     if test "$num" -lt "$req"; then
15131
15132     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15133
15134     fi
15135     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
15136     eval `echo $vervar=$num`
15137 ##    AC_SUBST(`eval echo $vervar`)
15138
15139     fi
15140
15141     if test "$PDFTEX" = "xetex"; then
15142         # For avoiding PDF destination name replacement.
15143         PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
15144         PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
15145     fi
15146 else
15147
15148     for ac_prog in pdfetex pdftex etex
15149 do
15150   # Extract the first word of "$ac_prog", so it can be a program name with args.
15151 set dummy $ac_prog; ac_word=$2
15152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15153 $as_echo_n "checking for $ac_word... " >&6; }
15154 if test "${ac_cv_prog_PDFTEX+set}" = set; then
15155   $as_echo_n "(cached) " >&6
15156 else
15157   if test -n "$PDFTEX"; then
15158   ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
15159 else
15160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15162 do
15163   IFS=$as_save_IFS
15164   test -z "$as_dir" && as_dir=.
15165   for ac_exec_ext in '' $ac_executable_extensions; do
15166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15167     ac_cv_prog_PDFTEX="$ac_prog"
15168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15169     break 2
15170   fi
15171 done
15172 done
15173 IFS=$as_save_IFS
15174
15175 fi
15176 fi
15177 PDFTEX=$ac_cv_prog_PDFTEX
15178 if test -n "$PDFTEX"; then
15179   { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
15180 $as_echo "$PDFTEX" >&6; }
15181 else
15182   { $as_echo "$as_me:$LINENO: result: no" >&5
15183 $as_echo "no" >&6; }
15184 fi
15185
15186
15187   test -n "$PDFTEX" && break
15188 done
15189 test -n "$PDFTEX" || PDFTEX="no"
15190
15191
15192
15193     r="`eval echo '$'"PDFTEX"`"
15194     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
15195         true
15196     else
15197         ##STEPMAKE_WARN(cannot find . )
15198         false
15199     fi
15200
15201     if test $? -ne 0; then
15202
15203     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
15204
15205         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15206             command="echo ERROR: pdfetex pdftex etex not found"
15207             # abort configure process here?
15208         else
15209             command="- echo pdfetex pdftex etex not found"
15210         fi
15211         eval "PDFTEX"='$command'
15212         false
15213     else
15214         true
15215     fi
15216
15217     if test $? -eq 0 -a -n ""; then
15218
15219     r="`eval echo '$'"PDFTEX"`"
15220     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15221 $as_echo_n "checking $r version... " >&6; }
15222     exe=`
15223     ## which doesn't work in ash, if /usr/bin/which isn't installed
15224     ## type -p doesn't work in ash
15225     ## command -v doesn't work in zsh
15226     ## command -v "$r" 2>&1
15227     ## this test should work in ash, bash, pdksh (ksh), zsh
15228     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15229 `
15230     if test -n ""; then
15231         ver=""
15232     else
15233         ver=`
15234     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15235     ##
15236     ## ARG.
15237     ## Workaround for broken Debian gcc version string:
15238     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15239     ##
15240     ## -V: Workaround for python
15241
15242     #dnl
15243
15244     ## Assume and hunt for dotted version multiplet.
15245     ## use eval trickery, because we cannot use multi-level $() instead of ``
15246     ## for compatibility reasons.
15247
15248     ## grab the first version number in  --version output.
15249     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15250                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15251                 head -n 1 |
15252                 tr ' ' '\n' |
15253                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15254                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15255                 head -n 1\`\"
15256
15257     if test -z "$_ver"; then
15258         ## If empty, try date [fontforge]
15259         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15260             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15261             | head -n 1 \
15262             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15263     fi
15264     echo "$_ver"
15265     #dnl
15266 `
15267     fi
15268     num=`
15269     echo "$ver" | awk -F. '
15270     {
15271       if ($3) {three = $3}
15272       else {three = 0}
15273     }
15274     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15275 `
15276     req=`
15277     echo "" | awk -F. '
15278     {
15279       if ($3) {three = $3}
15280       else {three = 0}
15281     }
15282     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15283 `
15284     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15285 $as_echo "$ver" >&6; }
15286     if test "$num" -lt "$req"; then
15287
15288     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15289
15290     fi
15291     vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
15292     eval `echo $vervar=$num`
15293 ##    AC_SUBST(`eval echo $vervar`)
15294
15295     fi
15296
15297 fi
15298
15299     for ac_prog in texi2pdf
15300 do
15301   # Extract the first word of "$ac_prog", so it can be a program name with args.
15302 set dummy $ac_prog; ac_word=$2
15303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15304 $as_echo_n "checking for $ac_word... " >&6; }
15305 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
15306   $as_echo_n "(cached) " >&6
15307 else
15308   if test -n "$TEXI2PDF"; then
15309   ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
15310 else
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15313 do
15314   IFS=$as_save_IFS
15315   test -z "$as_dir" && as_dir=.
15316   for ac_exec_ext in '' $ac_executable_extensions; do
15317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15318     ac_cv_prog_TEXI2PDF="$ac_prog"
15319     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15320     break 2
15321   fi
15322 done
15323 done
15324 IFS=$as_save_IFS
15325
15326 fi
15327 fi
15328 TEXI2PDF=$ac_cv_prog_TEXI2PDF
15329 if test -n "$TEXI2PDF"; then
15330   { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
15331 $as_echo "$TEXI2PDF" >&6; }
15332 else
15333   { $as_echo "$as_me:$LINENO: result: no" >&5
15334 $as_echo "no" >&6; }
15335 fi
15336
15337
15338   test -n "$TEXI2PDF" && break
15339 done
15340 test -n "$TEXI2PDF" || TEXI2PDF="no"
15341
15342
15343
15344     r="`eval echo '$'"TEXI2PDF"`"
15345     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
15346         true
15347     else
15348         ##STEPMAKE_WARN(cannot find . )
15349         false
15350     fi
15351
15352     if test $? -ne 0; then
15353
15354     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
15355
15356         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15357             command="echo ERROR: texi2pdf not found"
15358             # abort configure process here?
15359         else
15360             command="- echo texi2pdf not found"
15361         fi
15362         eval "TEXI2PDF"='$command'
15363         false
15364     else
15365         true
15366     fi
15367
15368     if test $? -eq 0 -a -n ""; then
15369
15370     r="`eval echo '$'"TEXI2PDF"`"
15371     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15372 $as_echo_n "checking $r version... " >&6; }
15373     exe=`
15374     ## which doesn't work in ash, if /usr/bin/which isn't installed
15375     ## type -p doesn't work in ash
15376     ## command -v doesn't work in zsh
15377     ## command -v "$r" 2>&1
15378     ## this test should work in ash, bash, pdksh (ksh), zsh
15379     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15380 `
15381     if test -n ""; then
15382         ver=""
15383     else
15384         ver=`
15385     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15386     ##
15387     ## ARG.
15388     ## Workaround for broken Debian gcc version string:
15389     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15390     ##
15391     ## -V: Workaround for python
15392
15393     #dnl
15394
15395     ## Assume and hunt for dotted version multiplet.
15396     ## use eval trickery, because we cannot use multi-level $() instead of ``
15397     ## for compatibility reasons.
15398
15399     ## grab the first version number in  --version output.
15400     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15401                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15402                 head -n 1 |
15403                 tr ' ' '\n' |
15404                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15405                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15406                 head -n 1\`\"
15407
15408     if test -z "$_ver"; then
15409         ## If empty, try date [fontforge]
15410         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15411             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15412             | head -n 1 \
15413             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15414     fi
15415     echo "$_ver"
15416     #dnl
15417 `
15418     fi
15419     num=`
15420     echo "$ver" | awk -F. '
15421     {
15422       if ($3) {three = $3}
15423       else {three = 0}
15424     }
15425     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15426 `
15427     req=`
15428     echo "" | awk -F. '
15429     {
15430       if ($3) {three = $3}
15431       else {three = 0}
15432     }
15433     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15434 `
15435     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15436 $as_echo "$ver" >&6; }
15437     if test "$num" -lt "$req"; then
15438
15439     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15440
15441     fi
15442     vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
15443     eval `echo $vervar=$num`
15444 ##    AC_SUBST(`eval echo $vervar`)
15445
15446     fi
15447
15448
15449     for ac_prog in texindex
15450 do
15451   # Extract the first word of "$ac_prog", so it can be a program name with args.
15452 set dummy $ac_prog; ac_word=$2
15453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15454 $as_echo_n "checking for $ac_word... " >&6; }
15455 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
15456   $as_echo_n "(cached) " >&6
15457 else
15458   if test -n "$TEXINDEX"; then
15459   ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
15460 else
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15463 do
15464   IFS=$as_save_IFS
15465   test -z "$as_dir" && as_dir=.
15466   for ac_exec_ext in '' $ac_executable_extensions; do
15467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15468     ac_cv_prog_TEXINDEX="$ac_prog"
15469     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15470     break 2
15471   fi
15472 done
15473 done
15474 IFS=$as_save_IFS
15475
15476 fi
15477 fi
15478 TEXINDEX=$ac_cv_prog_TEXINDEX
15479 if test -n "$TEXINDEX"; then
15480   { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
15481 $as_echo "$TEXINDEX" >&6; }
15482 else
15483   { $as_echo "$as_me:$LINENO: result: no" >&5
15484 $as_echo "no" >&6; }
15485 fi
15486
15487
15488   test -n "$TEXINDEX" && break
15489 done
15490 test -n "$TEXINDEX" || TEXINDEX="no"
15491
15492
15493
15494     r="`eval echo '$'"TEXINDEX"`"
15495     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
15496         true
15497     else
15498         ##STEPMAKE_WARN(cannot find . )
15499         false
15500     fi
15501
15502     if test $? -ne 0; then
15503
15504     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
15505
15506         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15507             command="echo ERROR: texindex not found"
15508             # abort configure process here?
15509         else
15510             command="- echo texindex not found"
15511         fi
15512         eval "TEXINDEX"='$command'
15513         false
15514     else
15515         true
15516     fi
15517
15518     if test $? -eq 0 -a -n ""; then
15519
15520     r="`eval echo '$'"TEXINDEX"`"
15521     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15522 $as_echo_n "checking $r version... " >&6; }
15523     exe=`
15524     ## which doesn't work in ash, if /usr/bin/which isn't installed
15525     ## type -p doesn't work in ash
15526     ## command -v doesn't work in zsh
15527     ## command -v "$r" 2>&1
15528     ## this test should work in ash, bash, pdksh (ksh), zsh
15529     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15530 `
15531     if test -n ""; then
15532         ver=""
15533     else
15534         ver=`
15535     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15536     ##
15537     ## ARG.
15538     ## Workaround for broken Debian gcc version string:
15539     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15540     ##
15541     ## -V: Workaround for python
15542
15543     #dnl
15544
15545     ## Assume and hunt for dotted version multiplet.
15546     ## use eval trickery, because we cannot use multi-level $() instead of ``
15547     ## for compatibility reasons.
15548
15549     ## grab the first version number in  --version output.
15550     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15551                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15552                 head -n 1 |
15553                 tr ' ' '\n' |
15554                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15555                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15556                 head -n 1\`\"
15557
15558     if test -z "$_ver"; then
15559         ## If empty, try date [fontforge]
15560         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15561             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15562             | head -n 1 \
15563             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15564     fi
15565     echo "$_ver"
15566     #dnl
15567 `
15568     fi
15569     num=`
15570     echo "$ver" | awk -F. '
15571     {
15572       if ($3) {three = $3}
15573       else {three = 0}
15574     }
15575     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15576 `
15577     req=`
15578     echo "" | awk -F. '
15579     {
15580       if ($3) {three = $3}
15581       else {three = 0}
15582     }
15583     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15584 `
15585     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15586 $as_echo "$ver" >&6; }
15587     if test "$num" -lt "$req"; then
15588
15589     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15590
15591     fi
15592     vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
15593     eval `echo $vervar=$num`
15594 ##    AC_SUBST(`eval echo $vervar`)
15595
15596     fi
15597
15598 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
15599 $as_echo_n "checking for epsf.tex... " >&6; }
15600 TEX_EPSF=`kpsewhich tex epsf`
15601 if test "$TEX_EPSF" = ""; then
15602     { $as_echo "$as_me:$LINENO: result: not found" >&5
15603 $as_echo "not found" >&6; }
15604
15605     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
15606
15607 else
15608     { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
15609 $as_echo "$TEX_EPSF" >&6; }
15610 fi
15611 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
15612 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
15613 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
15614 if test "$TEX_FIKPARM" = ""; then
15615     { $as_echo "$as_me:$LINENO: result: not found" >&5
15616 $as_echo "not found" >&6; }
15617
15618     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
15619
15620 else
15621     { $as_echo "$as_me:$LINENO: result: yes" >&5
15622 $as_echo "yes" >&6; }
15623 fi
15624
15625     for ac_prog in pngtopnm
15626 do
15627   # Extract the first word of "$ac_prog", so it can be a program name with args.
15628 set dummy $ac_prog; ac_word=$2
15629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15630 $as_echo_n "checking for $ac_word... " >&6; }
15631 if test "${ac_cv_prog_NETPBM+set}" = set; then
15632   $as_echo_n "(cached) " >&6
15633 else
15634   if test -n "$NETPBM"; then
15635   ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
15636 else
15637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15639 do
15640   IFS=$as_save_IFS
15641   test -z "$as_dir" && as_dir=.
15642   for ac_exec_ext in '' $ac_executable_extensions; do
15643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15644     ac_cv_prog_NETPBM="$ac_prog"
15645     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15646     break 2
15647   fi
15648 done
15649 done
15650 IFS=$as_save_IFS
15651
15652 fi
15653 fi
15654 NETPBM=$ac_cv_prog_NETPBM
15655 if test -n "$NETPBM"; then
15656   { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
15657 $as_echo "$NETPBM" >&6; }
15658 else
15659   { $as_echo "$as_me:$LINENO: result: no" >&5
15660 $as_echo "no" >&6; }
15661 fi
15662
15663
15664   test -n "$NETPBM" && break
15665 done
15666 test -n "$NETPBM" || NETPBM="no"
15667
15668
15669
15670     r="`eval echo '$'"NETPBM"`"
15671     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
15672         true
15673     else
15674         ##STEPMAKE_WARN(cannot find . )
15675         false
15676     fi
15677
15678     if test $? -ne 0; then
15679
15680     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
15681
15682         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15683             command="echo ERROR: pngtopnm not found"
15684             # abort configure process here?
15685         else
15686             command="- echo pngtopnm not found"
15687         fi
15688         eval "NETPBM"='$command'
15689         false
15690     else
15691         true
15692     fi
15693
15694     if test $? -eq 0 -a -n ""; then
15695
15696     r="`eval echo '$'"NETPBM"`"
15697     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15698 $as_echo_n "checking $r version... " >&6; }
15699     exe=`
15700     ## which doesn't work in ash, if /usr/bin/which isn't installed
15701     ## type -p doesn't work in ash
15702     ## command -v doesn't work in zsh
15703     ## command -v "$r" 2>&1
15704     ## this test should work in ash, bash, pdksh (ksh), zsh
15705     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15706 `
15707     if test -n ""; then
15708         ver=""
15709     else
15710         ver=`
15711     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15712     ##
15713     ## ARG.
15714     ## Workaround for broken Debian gcc version string:
15715     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15716     ##
15717     ## -V: Workaround for python
15718
15719     #dnl
15720
15721     ## Assume and hunt for dotted version multiplet.
15722     ## use eval trickery, because we cannot use multi-level $() instead of ``
15723     ## for compatibility reasons.
15724
15725     ## grab the first version number in  --version output.
15726     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15727                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15728                 head -n 1 |
15729                 tr ' ' '\n' |
15730                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15731                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15732                 head -n 1\`\"
15733
15734     if test -z "$_ver"; then
15735         ## If empty, try date [fontforge]
15736         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15737             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15738             | head -n 1 \
15739             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15740     fi
15741     echo "$_ver"
15742     #dnl
15743 `
15744     fi
15745     num=`
15746     echo "$ver" | awk -F. '
15747     {
15748       if ($3) {three = $3}
15749       else {three = 0}
15750     }
15751     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15752 `
15753     req=`
15754     echo "" | awk -F. '
15755     {
15756       if ($3) {three = $3}
15757       else {three = 0}
15758     }
15759     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15760 `
15761     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15762 $as_echo "$ver" >&6; }
15763     if test "$num" -lt "$req"; then
15764
15765     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15766
15767     fi
15768     vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
15769     eval `echo $vervar=$num`
15770 ##    AC_SUBST(`eval echo $vervar`)
15771
15772     fi
15773
15774
15775     for ac_prog in convert
15776 do
15777   # Extract the first word of "$ac_prog", so it can be a program name with args.
15778 set dummy $ac_prog; ac_word=$2
15779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15780 $as_echo_n "checking for $ac_word... " >&6; }
15781 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
15782   $as_echo_n "(cached) " >&6
15783 else
15784   if test -n "$IMAGEMAGICK"; then
15785   ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
15786 else
15787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 for as_dir in $PATH
15789 do
15790   IFS=$as_save_IFS
15791   test -z "$as_dir" && as_dir=.
15792   for ac_exec_ext in '' $ac_executable_extensions; do
15793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15794     ac_cv_prog_IMAGEMAGICK="$ac_prog"
15795     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15796     break 2
15797   fi
15798 done
15799 done
15800 IFS=$as_save_IFS
15801
15802 fi
15803 fi
15804 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
15805 if test -n "$IMAGEMAGICK"; then
15806   { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
15807 $as_echo "$IMAGEMAGICK" >&6; }
15808 else
15809   { $as_echo "$as_me:$LINENO: result: no" >&5
15810 $as_echo "no" >&6; }
15811 fi
15812
15813
15814   test -n "$IMAGEMAGICK" && break
15815 done
15816 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
15817
15818
15819
15820     r="`eval echo '$'"IMAGEMAGICK"`"
15821     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
15822         true
15823     else
15824         ##STEPMAKE_WARN(cannot find . )
15825         false
15826     fi
15827
15828     if test $? -ne 0; then
15829
15830     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
15831
15832         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15833             command="echo ERROR: convert not found"
15834             # abort configure process here?
15835         else
15836             command="- echo convert not found"
15837         fi
15838         eval "IMAGEMAGICK"='$command'
15839         false
15840     else
15841         true
15842     fi
15843
15844     if test $? -eq 0 -a -n ""; then
15845
15846     r="`eval echo '$'"IMAGEMAGICK"`"
15847     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15848 $as_echo_n "checking $r version... " >&6; }
15849     exe=`
15850     ## which doesn't work in ash, if /usr/bin/which isn't installed
15851     ## type -p doesn't work in ash
15852     ## command -v doesn't work in zsh
15853     ## command -v "$r" 2>&1
15854     ## this test should work in ash, bash, pdksh (ksh), zsh
15855     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15856 `
15857     if test -n ""; then
15858         ver=""
15859     else
15860         ver=`
15861     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15862     ##
15863     ## ARG.
15864     ## Workaround for broken Debian gcc version string:
15865     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15866     ##
15867     ## -V: Workaround for python
15868
15869     #dnl
15870
15871     ## Assume and hunt for dotted version multiplet.
15872     ## use eval trickery, because we cannot use multi-level $() instead of ``
15873     ## for compatibility reasons.
15874
15875     ## grab the first version number in  --version output.
15876     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15877                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15878                 head -n 1 |
15879                 tr ' ' '\n' |
15880                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15881                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15882                 head -n 1\`\"
15883
15884     if test -z "$_ver"; then
15885         ## If empty, try date [fontforge]
15886         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15887             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15888             | head -n 1 \
15889             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15890     fi
15891     echo "$_ver"
15892     #dnl
15893 `
15894     fi
15895     num=`
15896     echo "$ver" | awk -F. '
15897     {
15898       if ($3) {three = $3}
15899       else {three = 0}
15900     }
15901     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15902 `
15903     req=`
15904     echo "" | awk -F. '
15905     {
15906       if ($3) {three = $3}
15907       else {three = 0}
15908     }
15909     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15910 `
15911     { $as_echo "$as_me:$LINENO: result: $ver" >&5
15912 $as_echo "$ver" >&6; }
15913     if test "$num" -lt "$req"; then
15914
15915     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
15916
15917     fi
15918     vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
15919     eval `echo $vervar=$num`
15920 ##    AC_SUBST(`eval echo $vervar`)
15921
15922     fi
15923
15924 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
15925
15926     for ac_prog in zip
15927 do
15928   # Extract the first word of "$ac_prog", so it can be a program name with args.
15929 set dummy $ac_prog; ac_word=$2
15930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15931 $as_echo_n "checking for $ac_word... " >&6; }
15932 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
15933   $as_echo_n "(cached) " >&6
15934 else
15935   if test -n "$ZIPDOC"; then
15936   ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
15937 else
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15940 do
15941   IFS=$as_save_IFS
15942   test -z "$as_dir" && as_dir=.
15943   for ac_exec_ext in '' $ac_executable_extensions; do
15944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15945     ac_cv_prog_ZIPDOC="$ac_prog"
15946     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15947     break 2
15948   fi
15949 done
15950 done
15951 IFS=$as_save_IFS
15952
15953 fi
15954 fi
15955 ZIPDOC=$ac_cv_prog_ZIPDOC
15956 if test -n "$ZIPDOC"; then
15957   { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
15958 $as_echo "$ZIPDOC" >&6; }
15959 else
15960   { $as_echo "$as_me:$LINENO: result: no" >&5
15961 $as_echo "no" >&6; }
15962 fi
15963
15964
15965   test -n "$ZIPDOC" && break
15966 done
15967 test -n "$ZIPDOC" || ZIPDOC="no"
15968
15969
15970
15971     r="`eval echo '$'"ZIPDOC"`"
15972     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
15973         true
15974     else
15975         ##STEPMAKE_WARN(cannot find . )
15976         false
15977     fi
15978
15979     if test $? -ne 0; then
15980
15981     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
15982
15983         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15984             command="echo ERROR: zip not found"
15985             # abort configure process here?
15986         else
15987             command="- echo zip not found"
15988         fi
15989         eval "ZIPDOC"='$command'
15990         false
15991     else
15992         true
15993     fi
15994
15995     if test $? -eq 0 -a -n ""; then
15996
15997     r="`eval echo '$'"ZIPDOC"`"
15998     { $as_echo "$as_me:$LINENO: checking $r version" >&5
15999 $as_echo_n "checking $r version... " >&6; }
16000     exe=`
16001     ## which doesn't work in ash, if /usr/bin/which isn't installed
16002     ## type -p doesn't work in ash
16003     ## command -v doesn't work in zsh
16004     ## command -v "$r" 2>&1
16005     ## this test should work in ash, bash, pdksh (ksh), zsh
16006     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
16007 `
16008     if test -n ""; then
16009         ver=""
16010     else
16011         ver=`
16012     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
16013     ##
16014     ## ARG.
16015     ## Workaround for broken Debian gcc version string:
16016     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
16017     ##
16018     ## -V: Workaround for python
16019
16020     #dnl
16021
16022     ## Assume and hunt for dotted version multiplet.
16023     ## use eval trickery, because we cannot use multi-level $() instead of ``
16024     ## for compatibility reasons.
16025
16026     ## grab the first version number in  --version output.
16027     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
16028                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16029                 head -n 1 |
16030                 tr ' ' '\n' |
16031                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
16032                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16033                 head -n 1\`\"
16034
16035     if test -z "$_ver"; then
16036         ## If empty, try date [fontforge]
16037         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
16038             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
16039             | head -n 1 \
16040             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
16041     fi
16042     echo "$_ver"
16043     #dnl
16044 `
16045     fi
16046     num=`
16047     echo "$ver" | awk -F. '
16048     {
16049       if ($3) {three = $3}
16050       else {three = 0}
16051     }
16052     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16053 `
16054     req=`
16055     echo "" | awk -F. '
16056     {
16057       if ($3) {three = $3}
16058       else {three = 0}
16059     }
16060     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16061 `
16062     { $as_echo "$as_me:$LINENO: result: $ver" >&5
16063 $as_echo "$ver" >&6; }
16064     if test "$num" -lt "$req"; then
16065
16066     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
16067
16068     fi
16069     vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
16070     eval `echo $vervar=$num`
16071 ##    AC_SUBST(`eval echo $vervar`)
16072
16073     fi
16074
16075
16076     for ac_prog in rsync
16077 do
16078   # Extract the first word of "$ac_prog", so it can be a program name with args.
16079 set dummy $ac_prog; ac_word=$2
16080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16081 $as_echo_n "checking for $ac_word... " >&6; }
16082 if test "${ac_cv_prog_RSYNC+set}" = set; then
16083   $as_echo_n "(cached) " >&6
16084 else
16085   if test -n "$RSYNC"; then
16086   ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
16087 else
16088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089 for as_dir in $PATH
16090 do
16091   IFS=$as_save_IFS
16092   test -z "$as_dir" && as_dir=.
16093   for ac_exec_ext in '' $ac_executable_extensions; do
16094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16095     ac_cv_prog_RSYNC="$ac_prog"
16096     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16097     break 2
16098   fi
16099 done
16100 done
16101 IFS=$as_save_IFS
16102
16103 fi
16104 fi
16105 RSYNC=$ac_cv_prog_RSYNC
16106 if test -n "$RSYNC"; then
16107   { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
16108 $as_echo "$RSYNC" >&6; }
16109 else
16110   { $as_echo "$as_me:$LINENO: result: no" >&5
16111 $as_echo "no" >&6; }
16112 fi
16113
16114
16115   test -n "$RSYNC" && break
16116 done
16117 test -n "$RSYNC" || RSYNC="no"
16118
16119
16120
16121     r="`eval echo '$'"RSYNC"`"
16122     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
16123         true
16124     else
16125         ##STEPMAKE_WARN(cannot find . )
16126         false
16127     fi
16128
16129     if test $? -ne 0; then
16130
16131     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
16132
16133         if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
16134             command="echo ERROR: rsync not found"
16135             # abort configure process here?
16136         else
16137             command="- echo rsync not found"
16138         fi
16139         eval "RSYNC"='$command'
16140         false
16141     else
16142         true
16143     fi
16144
16145     if test $? -eq 0 -a -n ""; then
16146
16147     r="`eval echo '$'"RSYNC"`"
16148     { $as_echo "$as_me:$LINENO: checking $r version" >&5
16149 $as_echo_n "checking $r version... " >&6; }
16150     exe=`
16151     ## which doesn't work in ash, if /usr/bin/which isn't installed
16152     ## type -p doesn't work in ash
16153     ## command -v doesn't work in zsh
16154     ## command -v "$r" 2>&1
16155     ## this test should work in ash, bash, pdksh (ksh), zsh
16156     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
16157 `
16158     if test -n ""; then
16159         ver=""
16160     else
16161         ver=`
16162     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
16163     ##
16164     ## ARG.
16165     ## Workaround for broken Debian gcc version string:
16166     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
16167     ##
16168     ## -V: Workaround for python
16169
16170     #dnl
16171
16172     ## Assume and hunt for dotted version multiplet.
16173     ## use eval trickery, because we cannot use multi-level $() instead of ``
16174     ## for compatibility reasons.
16175
16176     ## grab the first version number in  --version output.
16177     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
16178                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16179                 head -n 1 |
16180                 tr ' ' '\n' |
16181                 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
16182                 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
16183                 head -n 1\`\"
16184
16185     if test -z "$_ver"; then
16186         ## If empty, try date [fontforge]
16187         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
16188             | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
16189             | head -n 1 \
16190             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
16191     fi
16192     echo "$_ver"
16193     #dnl
16194 `
16195     fi
16196     num=`
16197     echo "$ver" | awk -F. '
16198     {
16199       if ($3) {three = $3}
16200       else {three = 0}
16201     }
16202     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16203 `
16204     req=`
16205     echo "" | awk -F. '
16206     {
16207       if ($3) {three = $3}
16208       else {three = 0}
16209     }
16210     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
16211 `
16212     { $as_echo "$as_me:$LINENO: result: $ver" >&5
16213 $as_echo "$ver" >&6; }
16214     if test "$num" -lt "$req"; then
16215
16216     eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
16217
16218     fi
16219     vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
16220     eval `echo $vervar=$num`
16221 ##    AC_SUBST(`eval echo $vervar`)
16222
16223     fi
16224
16225
16226 cat >>confdefs.h <<_ACEOF
16227 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
16228 _ACEOF
16229
16230
16231 # must also have local.make if configure fails.
16232 touch local.make
16233
16234 if test "$reloc_b$rpath_b" = "yesno"; then
16235
16236     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
16237 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
16238     warn_b=yes
16239
16240 fi
16241
16242 # Gather requirements and generate output.
16243
16244
16245     # undo expanding of explicit --infodir=/usr/share
16246     # to ease install-time override with prefix=...
16247     strip=`echo $includedir | eval sed s@^$prefix@@`
16248     if test "$includedir" = "`eval echo $prefix$strip`"; then
16249             includedir='${prefix}'$strip''
16250     fi
16251     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
16252     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
16253             libdir='${exec_prefix}'$strip''
16254     fi
16255     strip=`echo $infodir | eval sed s@^$datarootdir@@`
16256     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
16257             infodir='${datarootdir}'$strip''
16258     fi
16259     strip=`echo $mandir | eval sed s@^$datarootdir@@`
16260     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
16261             mandir='${datarootdir}'$strip''
16262     fi
16263
16264
16265
16266
16267
16268     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
16269
16270     cat >confcache <<\_ACEOF
16271 # This file is a shell script that caches the results of configure
16272 # tests run on this system so they can be shared between configure
16273 # scripts and configure runs, see configure's option --config-cache.
16274 # It is not useful on other systems.  If it contains results you don't
16275 # want to keep, you may remove or edit it.
16276 #
16277 # config.status only pays attention to the cache file if you give it
16278 # the --recheck option to rerun configure.
16279 #
16280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16282 # following values.
16283
16284 _ACEOF
16285
16286 # The following way of writing the cache mishandles newlines in values,
16287 # but we know of no workaround that is simple, portable, and efficient.
16288 # So, we kill variables containing newlines.
16289 # Ultrix sh set writes to stderr and can't be redirected directly,
16290 # and sets the high bit in the cache file unless we assign to the vars.
16291 (
16292   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16293     eval ac_val=\$$ac_var
16294     case $ac_val in #(
16295     *${as_nl}*)
16296       case $ac_var in #(
16297       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16299       esac
16300       case $ac_var in #(
16301       _ | IFS | as_nl) ;; #(
16302       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16303       *) $as_unset $ac_var ;;
16304       esac ;;
16305     esac
16306   done
16307
16308   (set) 2>&1 |
16309     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16310     *${as_nl}ac_space=\ *)
16311       # `set' does not quote correctly, so add quotes (double-quote
16312       # substitution turns \\\\ into \\, and sed turns \\ into \).
16313       sed -n \
16314         "s/'/'\\\\''/g;
16315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16316       ;; #(
16317     *)
16318       # `set' quotes correctly as required by POSIX, so do not add quotes.
16319       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16320       ;;
16321     esac |
16322     sort
16323 ) |
16324   sed '
16325      /^ac_cv_env_/b end
16326      t clear
16327      :clear
16328      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16329      t end
16330      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16331      :end' >>confcache
16332 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16333   if test -w "$cache_file"; then
16334     test "x$cache_file" != "x/dev/null" &&
16335       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16336 $as_echo "$as_me: updating cache $cache_file" >&6;}
16337     cat confcache >$cache_file
16338   else
16339     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16340 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16341   fi
16342 fi
16343 rm -f confcache
16344
16345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16346 # Let make expand exec_prefix.
16347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16348
16349 DEFS=-DHAVE_CONFIG_H
16350
16351 ac_libobjs=
16352 ac_ltlibobjs=
16353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16354   # 1. Remove the extension, and $U if already installed.
16355   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16356   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16357   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16358   #    will be set to the directory where LIBOBJS objects are built.
16359   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16360   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16361 done
16362 LIBOBJS=$ac_libobjs
16363
16364 LTLIBOBJS=$ac_ltlibobjs
16365
16366
16367
16368 : ${CONFIG_STATUS=./config.status}
16369 ac_write_fail=0
16370 ac_clean_files_save=$ac_clean_files
16371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16372 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16373 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16374 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16375 #! $SHELL
16376 # Generated by $as_me.
16377 # Run this file to recreate the current configuration.
16378 # Compiler output produced by configure, useful for debugging
16379 # configure, is in config.log if it exists.
16380
16381 debug=false
16382 ac_cs_recheck=false
16383 ac_cs_silent=false
16384 SHELL=\${CONFIG_SHELL-$SHELL}
16385 _ACEOF
16386
16387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16388 ## --------------------- ##
16389 ## M4sh Initialization.  ##
16390 ## --------------------- ##
16391
16392 # Be more Bourne compatible
16393 DUALCASE=1; export DUALCASE # for MKS sh
16394 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16395   emulate sh
16396   NULLCMD=:
16397   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16398   # is contrary to our usage.  Disable this feature.
16399   alias -g '${1+"$@"}'='"$@"'
16400   setopt NO_GLOB_SUBST
16401 else
16402   case `(set -o) 2>/dev/null` in
16403   *posix*) set -o posix ;;
16404 esac
16405
16406 fi
16407
16408
16409
16410
16411 # PATH needs CR
16412 # Avoid depending upon Character Ranges.
16413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16416 as_cr_digits='0123456789'
16417 as_cr_alnum=$as_cr_Letters$as_cr_digits
16418
16419 as_nl='
16420 '
16421 export as_nl
16422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16426 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16427   as_echo='printf %s\n'
16428   as_echo_n='printf %s'
16429 else
16430   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16431     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16432     as_echo_n='/usr/ucb/echo -n'
16433   else
16434     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16435     as_echo_n_body='eval
16436       arg=$1;
16437       case $arg in
16438       *"$as_nl"*)
16439         expr "X$arg" : "X\\(.*\\)$as_nl";
16440         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16441       esac;
16442       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16443     '
16444     export as_echo_n_body
16445     as_echo_n='sh -c $as_echo_n_body as_echo'
16446   fi
16447   export as_echo_body
16448   as_echo='sh -c $as_echo_body as_echo'
16449 fi
16450
16451 # The user is always right.
16452 if test "${PATH_SEPARATOR+set}" != set; then
16453   PATH_SEPARATOR=:
16454   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16455     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16456       PATH_SEPARATOR=';'
16457   }
16458 fi
16459
16460 # Support unset when possible.
16461 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16462   as_unset=unset
16463 else
16464   as_unset=false
16465 fi
16466
16467
16468 # IFS
16469 # We need space, tab and new line, in precisely that order.  Quoting is
16470 # there to prevent editors from complaining about space-tab.
16471 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16472 # splitting by setting IFS to empty value.)
16473 IFS=" ""        $as_nl"
16474
16475 # Find who we are.  Look in the path if we contain no directory separator.
16476 case $0 in
16477   *[\\/]* ) as_myself=$0 ;;
16478   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16479 for as_dir in $PATH
16480 do
16481   IFS=$as_save_IFS
16482   test -z "$as_dir" && as_dir=.
16483   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16484 done
16485 IFS=$as_save_IFS
16486
16487      ;;
16488 esac
16489 # We did not find ourselves, most probably we were run as `sh COMMAND'
16490 # in which case we are not to be found in the path.
16491 if test "x$as_myself" = x; then
16492   as_myself=$0
16493 fi
16494 if test ! -f "$as_myself"; then
16495   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16496   { (exit 1); exit 1; }
16497 fi
16498
16499 # Work around bugs in pre-3.0 UWIN ksh.
16500 for as_var in ENV MAIL MAILPATH
16501 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16502 done
16503 PS1='$ '
16504 PS2='> '
16505 PS4='+ '
16506
16507 # NLS nuisances.
16508 LC_ALL=C
16509 export LC_ALL
16510 LANGUAGE=C
16511 export LANGUAGE
16512
16513 # Required to use basename.
16514 if expr a : '\(a\)' >/dev/null 2>&1 &&
16515    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16516   as_expr=expr
16517 else
16518   as_expr=false
16519 fi
16520
16521 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16522   as_basename=basename
16523 else
16524   as_basename=false
16525 fi
16526
16527
16528 # Name of the executable.
16529 as_me=`$as_basename -- "$0" ||
16530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16531          X"$0" : 'X\(//\)$' \| \
16532          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16533 $as_echo X/"$0" |
16534     sed '/^.*\/\([^/][^/]*\)\/*$/{
16535             s//\1/
16536             q
16537           }
16538           /^X\/\(\/\/\)$/{
16539             s//\1/
16540             q
16541           }
16542           /^X\/\(\/\).*/{
16543             s//\1/
16544             q
16545           }
16546           s/.*/./; q'`
16547
16548 # CDPATH.
16549 $as_unset CDPATH
16550
16551
16552
16553   as_lineno_1=$LINENO
16554   as_lineno_2=$LINENO
16555   test "x$as_lineno_1" != "x$as_lineno_2" &&
16556   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16557
16558   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16559   # uniformly replaced by the line number.  The first 'sed' inserts a
16560   # line-number line after each line using $LINENO; the second 'sed'
16561   # does the real work.  The second script uses 'N' to pair each
16562   # line-number line with the line containing $LINENO, and appends
16563   # trailing '-' during substitution so that $LINENO is not a special
16564   # case at line end.
16565   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16566   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16567   # E. McMahon (1931-1989) for sed's syntax.  :-)
16568   sed -n '
16569     p
16570     /[$]LINENO/=
16571   ' <$as_myself |
16572     sed '
16573       s/[$]LINENO.*/&-/
16574       t lineno
16575       b
16576       :lineno
16577       N
16578       :loop
16579       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16580       t loop
16581       s/-\n.*//
16582     ' >$as_me.lineno &&
16583   chmod +x "$as_me.lineno" ||
16584     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16585    { (exit 1); exit 1; }; }
16586
16587   # Don't try to exec as it changes $[0], causing all sort of problems
16588   # (the dirname of $[0] is not the place where we might find the
16589   # original and so on.  Autoconf is especially sensitive to this).
16590   . "./$as_me.lineno"
16591   # Exit status is that of the last command.
16592   exit
16593 }
16594
16595
16596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16597   as_dirname=dirname
16598 else
16599   as_dirname=false
16600 fi
16601
16602 ECHO_C= ECHO_N= ECHO_T=
16603 case `echo -n x` in
16604 -n*)
16605   case `echo 'x\c'` in
16606   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16607   *)   ECHO_C='\c';;
16608   esac;;
16609 *)
16610   ECHO_N='-n';;
16611 esac
16612 if expr a : '\(a\)' >/dev/null 2>&1 &&
16613    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16614   as_expr=expr
16615 else
16616   as_expr=false
16617 fi
16618
16619 rm -f conf$$ conf$$.exe conf$$.file
16620 if test -d conf$$.dir; then
16621   rm -f conf$$.dir/conf$$.file
16622 else
16623   rm -f conf$$.dir
16624   mkdir conf$$.dir 2>/dev/null
16625 fi
16626 if (echo >conf$$.file) 2>/dev/null; then
16627   if ln -s conf$$.file conf$$ 2>/dev/null; then
16628     as_ln_s='ln -s'
16629     # ... but there are two gotchas:
16630     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16631     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16632     # In both cases, we have to default to `cp -p'.
16633     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16634       as_ln_s='cp -p'
16635   elif ln conf$$.file conf$$ 2>/dev/null; then
16636     as_ln_s=ln
16637   else
16638     as_ln_s='cp -p'
16639   fi
16640 else
16641   as_ln_s='cp -p'
16642 fi
16643 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16644 rmdir conf$$.dir 2>/dev/null
16645
16646 if mkdir -p . 2>/dev/null; then
16647   as_mkdir_p=:
16648 else
16649   test -d ./-p && rmdir ./-p
16650   as_mkdir_p=false
16651 fi
16652
16653 if test -x / >/dev/null 2>&1; then
16654   as_test_x='test -x'
16655 else
16656   if ls -dL / >/dev/null 2>&1; then
16657     as_ls_L_option=L
16658   else
16659     as_ls_L_option=
16660   fi
16661   as_test_x='
16662     eval sh -c '\''
16663       if test -d "$1"; then
16664         test -d "$1/.";
16665       else
16666         case $1 in
16667         -*)set "./$1";;
16668         esac;
16669         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16670         ???[sx]*):;;*)false;;esac;fi
16671     '\'' sh
16672   '
16673 fi
16674 as_executable_p=$as_test_x
16675
16676 # Sed expression to map a string onto a valid CPP name.
16677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16678
16679 # Sed expression to map a string onto a valid variable name.
16680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16681
16682
16683 exec 6>&1
16684
16685 # Save the log message, to keep $[0] and so on meaningful, and to
16686 # report actual input values of CONFIG_FILES etc. instead of their
16687 # values after options handling.
16688 ac_log="
16689 This file was extended by $as_me, which was
16690 generated by GNU Autoconf 2.63.  Invocation command line was
16691
16692   CONFIG_FILES    = $CONFIG_FILES
16693   CONFIG_HEADERS  = $CONFIG_HEADERS
16694   CONFIG_LINKS    = $CONFIG_LINKS
16695   CONFIG_COMMANDS = $CONFIG_COMMANDS
16696   $ $0 $@
16697
16698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16699 "
16700
16701 _ACEOF
16702
16703 case $ac_config_files in *"
16704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16705 esac
16706
16707 case $ac_config_headers in *"
16708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16709 esac
16710
16711
16712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16713 # Files that config.status was made for.
16714 config_files="$ac_config_files"
16715 config_headers="$ac_config_headers"
16716
16717 _ACEOF
16718
16719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16720 ac_cs_usage="\
16721 \`$as_me' instantiates files from templates according to the
16722 current configuration.
16723
16724 Usage: $0 [OPTION]... [FILE]...
16725
16726   -h, --help       print this help, then exit
16727   -V, --version    print version number and configuration settings, then exit
16728   -q, --quiet, --silent
16729                    do not print progress messages
16730   -d, --debug      don't remove temporary files
16731       --recheck    update $as_me by reconfiguring in the same conditions
16732       --file=FILE[:TEMPLATE]
16733                    instantiate the configuration file FILE
16734       --header=FILE[:TEMPLATE]
16735                    instantiate the configuration header FILE
16736
16737 Configuration files:
16738 $config_files
16739
16740 Configuration headers:
16741 $config_headers
16742
16743 Report bugs to <bug-autoconf@gnu.org>."
16744
16745 _ACEOF
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747 ac_cs_version="\\
16748 config.status
16749 configured by $0, generated by GNU Autoconf 2.63,
16750   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16751
16752 Copyright (C) 2008 Free Software Foundation, Inc.
16753 This config.status script is free software; the Free Software Foundation
16754 gives unlimited permission to copy, distribute and modify it."
16755
16756 ac_pwd='$ac_pwd'
16757 srcdir='$srcdir'
16758 test -n "\$AWK" || AWK=awk
16759 _ACEOF
16760
16761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16762 # The default lists apply if the user does not specify any file.
16763 ac_need_defaults=:
16764 while test $# != 0
16765 do
16766   case $1 in
16767   --*=*)
16768     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16769     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16770     ac_shift=:
16771     ;;
16772   *)
16773     ac_option=$1
16774     ac_optarg=$2
16775     ac_shift=shift
16776     ;;
16777   esac
16778
16779   case $ac_option in
16780   # Handling of the options.
16781   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16782     ac_cs_recheck=: ;;
16783   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16784     $as_echo "$ac_cs_version"; exit ;;
16785   --debug | --debu | --deb | --de | --d | -d )
16786     debug=: ;;
16787   --file | --fil | --fi | --f )
16788     $ac_shift
16789     case $ac_optarg in
16790     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16791     esac
16792     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16793     ac_need_defaults=false;;
16794   --header | --heade | --head | --hea )
16795     $ac_shift
16796     case $ac_optarg in
16797     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16798     esac
16799     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16800     ac_need_defaults=false;;
16801   --he | --h)
16802     # Conflict between --help and --header
16803     { $as_echo "$as_me: error: ambiguous option: $1
16804 Try \`$0 --help' for more information." >&2
16805    { (exit 1); exit 1; }; };;
16806   --help | --hel | -h )
16807     $as_echo "$ac_cs_usage"; exit ;;
16808   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16809   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16810     ac_cs_silent=: ;;
16811
16812   # This is an error.
16813   -*) { $as_echo "$as_me: error: unrecognized option: $1
16814 Try \`$0 --help' for more information." >&2
16815    { (exit 1); exit 1; }; } ;;
16816
16817   *) ac_config_targets="$ac_config_targets $1"
16818      ac_need_defaults=false ;;
16819
16820   esac
16821   shift
16822 done
16823
16824 ac_configure_extra_args=
16825
16826 if $ac_cs_silent; then
16827   exec 6>/dev/null
16828   ac_configure_extra_args="$ac_configure_extra_args --silent"
16829 fi
16830
16831 _ACEOF
16832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16833 if \$ac_cs_recheck; then
16834   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16835   shift
16836   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16837   CONFIG_SHELL='$SHELL'
16838   export CONFIG_SHELL
16839   exec "\$@"
16840 fi
16841
16842 _ACEOF
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16844 exec 5>>config.log
16845 {
16846   echo
16847   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16848 ## Running $as_me. ##
16849 _ASBOX
16850   $as_echo "$ac_log"
16851 } >&5
16852
16853 _ACEOF
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 _ACEOF
16856
16857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16858
16859 # Handling of arguments.
16860 for ac_config_target in $ac_config_targets
16861 do
16862   case $ac_config_target in
16863     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
16864     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
16865
16866   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16867 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16868    { (exit 1); exit 1; }; };;
16869   esac
16870 done
16871
16872
16873 # If the user did not use the arguments to specify the items to instantiate,
16874 # then the envvar interface is used.  Set only those that are not.
16875 # We use the long form for the default assignment because of an extremely
16876 # bizarre bug on SunOS 4.1.3.
16877 if $ac_need_defaults; then
16878   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16879   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16880 fi
16881
16882 # Have a temporary directory for convenience.  Make it in the build tree
16883 # simply because there is no reason against having it here, and in addition,
16884 # creating and moving files from /tmp can sometimes cause problems.
16885 # Hook for its removal unless debugging.
16886 # Note that there is a small window in which the directory will not be cleaned:
16887 # after its creation but before its name has been assigned to `$tmp'.
16888 $debug ||
16889 {
16890   tmp=
16891   trap 'exit_status=$?
16892   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16893 ' 0
16894   trap '{ (exit 1); exit 1; }' 1 2 13 15
16895 }
16896 # Create a (secure) tmp directory for tmp files.
16897
16898 {
16899   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16900   test -n "$tmp" && test -d "$tmp"
16901 }  ||
16902 {
16903   tmp=./conf$$-$RANDOM
16904   (umask 077 && mkdir "$tmp")
16905 } ||
16906 {
16907    $as_echo "$as_me: cannot create a temporary directory in ." >&2
16908    { (exit 1); exit 1; }
16909 }
16910
16911 # Set up the scripts for CONFIG_FILES section.
16912 # No need to generate them if there are no CONFIG_FILES.
16913 # This happens for instance with `./config.status config.h'.
16914 if test -n "$CONFIG_FILES"; then
16915
16916
16917 ac_cr='\r'
16918 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16920   ac_cs_awk_cr='\\r'
16921 else
16922   ac_cs_awk_cr=$ac_cr
16923 fi
16924
16925 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16926 _ACEOF
16927
16928
16929 {
16930   echo "cat >conf$$subs.awk <<_ACEOF" &&
16931   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16932   echo "_ACEOF"
16933 } >conf$$subs.sh ||
16934   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16935 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16936    { (exit 1); exit 1; }; }
16937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16938 ac_delim='%!_!# '
16939 for ac_last_try in false false false false false :; do
16940   . ./conf$$subs.sh ||
16941     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16942 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16943    { (exit 1); exit 1; }; }
16944
16945   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16946   if test $ac_delim_n = $ac_delim_num; then
16947     break
16948   elif $ac_last_try; then
16949     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16950 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16951    { (exit 1); exit 1; }; }
16952   else
16953     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16954   fi
16955 done
16956 rm -f conf$$subs.sh
16957
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16960 _ACEOF
16961 sed -n '
16962 h
16963 s/^/S["/; s/!.*/"]=/
16964 p
16965 g
16966 s/^[^!]*!//
16967 :repl
16968 t repl
16969 s/'"$ac_delim"'$//
16970 t delim
16971 :nl
16972 h
16973 s/\(.\{148\}\).*/\1/
16974 t more1
16975 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16976 p
16977 n
16978 b repl
16979 :more1
16980 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16981 p
16982 g
16983 s/.\{148\}//
16984 t nl
16985 :delim
16986 h
16987 s/\(.\{148\}\).*/\1/
16988 t more2
16989 s/["\\]/\\&/g; s/^/"/; s/$/"/
16990 p
16991 b
16992 :more2
16993 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16994 p
16995 g
16996 s/.\{148\}//
16997 t delim
16998 ' <conf$$subs.awk | sed '
16999 /^[^""]/{
17000   N
17001   s/\n//
17002 }
17003 ' >>$CONFIG_STATUS || ac_write_fail=1
17004 rm -f conf$$subs.awk
17005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17006 _ACAWK
17007 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17008   for (key in S) S_is_set[key] = 1
17009   FS = "\a"
17010
17011 }
17012 {
17013   line = $ 0
17014   nfields = split(line, field, "@")
17015   substed = 0
17016   len = length(field[1])
17017   for (i = 2; i < nfields; i++) {
17018     key = field[i]
17019     keylen = length(key)
17020     if (S_is_set[key]) {
17021       value = S[key]
17022       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17023       len += length(value) + length(field[++i])
17024       substed = 1
17025     } else
17026       len += 1 + keylen
17027   }
17028
17029   print line
17030 }
17031
17032 _ACAWK
17033 _ACEOF
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17036   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17037 else
17038   cat
17039 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17040   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17041 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17042    { (exit 1); exit 1; }; }
17043 _ACEOF
17044
17045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17047 # trailing colons and then remove the whole line if VPATH becomes empty
17048 # (actually we leave an empty line to preserve line numbers).
17049 if test "x$srcdir" = x.; then
17050   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17051 s/:*\$(srcdir):*/:/
17052 s/:*\${srcdir}:*/:/
17053 s/:*@srcdir@:*/:/
17054 s/^\([^=]*=[     ]*\):*/\1/
17055 s/:*$//
17056 s/^[^=]*=[       ]*$//
17057 }'
17058 fi
17059
17060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17061 fi # test -n "$CONFIG_FILES"
17062
17063 # Set up the scripts for CONFIG_HEADERS section.
17064 # No need to generate them if there are no CONFIG_HEADERS.
17065 # This happens for instance with `./config.status Makefile'.
17066 if test -n "$CONFIG_HEADERS"; then
17067 cat >"$tmp/defines.awk" <<\_ACAWK ||
17068 BEGIN {
17069 _ACEOF
17070
17071 # Transform confdefs.h into an awk script `defines.awk', embedded as
17072 # here-document in config.status, that substitutes the proper values into
17073 # config.h.in to produce config.h.
17074
17075 # Create a delimiter string that does not exist in confdefs.h, to ease
17076 # handling of long lines.
17077 ac_delim='%!_!# '
17078 for ac_last_try in false false :; do
17079   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17080   if test -z "$ac_t"; then
17081     break
17082   elif $ac_last_try; then
17083     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17084 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17085    { (exit 1); exit 1; }; }
17086   else
17087     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17088   fi
17089 done
17090
17091 # For the awk script, D is an array of macro values keyed by name,
17092 # likewise P contains macro parameters if any.  Preserve backslash
17093 # newline sequences.
17094
17095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17096 sed -n '
17097 s/.\{148\}/&'"$ac_delim"'/g
17098 t rset
17099 :rset
17100 s/^[     ]*#[    ]*define[       ][      ]*/ /
17101 t def
17102 d
17103 :def
17104 s/\\$//
17105 t bsnl
17106 s/["\\]/\\&/g
17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17108 D["\1"]=" \3"/p
17109 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17110 d
17111 :bsnl
17112 s/["\\]/\\&/g
17113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17114 D["\1"]=" \3\\\\\\n"\\/p
17115 t cont
17116 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17117 t cont
17118 d
17119 :cont
17120 n
17121 s/.\{148\}/&'"$ac_delim"'/g
17122 t clear
17123 :clear
17124 s/\\$//
17125 t bsnlc
17126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17127 d
17128 :bsnlc
17129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17130 b cont
17131 ' <confdefs.h | sed '
17132 s/'"$ac_delim"'/"\\\
17133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17134
17135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17136   for (key in D) D_is_set[key] = 1
17137   FS = "\a"
17138 }
17139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17140   line = \$ 0
17141   split(line, arg, " ")
17142   if (arg[1] == "#") {
17143     defundef = arg[2]
17144     mac1 = arg[3]
17145   } else {
17146     defundef = substr(arg[1], 2)
17147     mac1 = arg[2]
17148   }
17149   split(mac1, mac2, "(") #)
17150   macro = mac2[1]
17151   prefix = substr(line, 1, index(line, defundef) - 1)
17152   if (D_is_set[macro]) {
17153     # Preserve the white space surrounding the "#".
17154     print prefix "define", macro P[macro] D[macro]
17155     next
17156   } else {
17157     # Replace #undef with comments.  This is necessary, for example,
17158     # in the case of _POSIX_SOURCE, which is predefined and required
17159     # on some systems where configure will not decide to define it.
17160     if (defundef == "undef") {
17161       print "/*", prefix defundef, macro, "*/"
17162       next
17163     }
17164   }
17165 }
17166 { print }
17167 _ACAWK
17168 _ACEOF
17169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17170   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17171 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17172    { (exit 1); exit 1; }; }
17173 fi # test -n "$CONFIG_HEADERS"
17174
17175
17176 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17177 shift
17178 for ac_tag
17179 do
17180   case $ac_tag in
17181   :[FHLC]) ac_mode=$ac_tag; continue;;
17182   esac
17183   case $ac_mode$ac_tag in
17184   :[FHL]*:*);;
17185   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17186 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17187    { (exit 1); exit 1; }; };;
17188   :[FH]-) ac_tag=-:-;;
17189   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17190   esac
17191   ac_save_IFS=$IFS
17192   IFS=:
17193   set x $ac_tag
17194   IFS=$ac_save_IFS
17195   shift
17196   ac_file=$1
17197   shift
17198
17199   case $ac_mode in
17200   :L) ac_source=$1;;
17201   :[FH])
17202     ac_file_inputs=
17203     for ac_f
17204     do
17205       case $ac_f in
17206       -) ac_f="$tmp/stdin";;
17207       *) # Look for the file first in the build tree, then in the source tree
17208          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17209          # because $ac_f cannot contain `:'.
17210          test -f "$ac_f" ||
17211            case $ac_f in
17212            [\\/$]*) false;;
17213            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17214            esac ||
17215            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17216 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17217    { (exit 1); exit 1; }; };;
17218       esac
17219       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17220       ac_file_inputs="$ac_file_inputs '$ac_f'"
17221     done
17222
17223     # Let's still pretend it is `configure' which instantiates (i.e., don't
17224     # use $as_me), people would be surprised to read:
17225     #    /* config.h.  Generated by config.status.  */
17226     configure_input='Generated from '`
17227           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17228         `' by configure.'
17229     if test x"$ac_file" != x-; then
17230       configure_input="$ac_file.  $configure_input"
17231       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17232 $as_echo "$as_me: creating $ac_file" >&6;}
17233     fi
17234     # Neutralize special characters interpreted by sed in replacement strings.
17235     case $configure_input in #(
17236     *\&* | *\|* | *\\* )
17237        ac_sed_conf_input=`$as_echo "$configure_input" |
17238        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17239     *) ac_sed_conf_input=$configure_input;;
17240     esac
17241
17242     case $ac_tag in
17243     *:-:* | *:-) cat >"$tmp/stdin" \
17244       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17245 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17246    { (exit 1); exit 1; }; } ;;
17247     esac
17248     ;;
17249   esac
17250
17251   ac_dir=`$as_dirname -- "$ac_file" ||
17252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17253          X"$ac_file" : 'X\(//\)[^/]' \| \
17254          X"$ac_file" : 'X\(//\)$' \| \
17255          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17256 $as_echo X"$ac_file" |
17257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17258             s//\1/
17259             q
17260           }
17261           /^X\(\/\/\)[^/].*/{
17262             s//\1/
17263             q
17264           }
17265           /^X\(\/\/\)$/{
17266             s//\1/
17267             q
17268           }
17269           /^X\(\/\).*/{
17270             s//\1/
17271             q
17272           }
17273           s/.*/./; q'`
17274   { as_dir="$ac_dir"
17275   case $as_dir in #(
17276   -*) as_dir=./$as_dir;;
17277   esac
17278   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17279     as_dirs=
17280     while :; do
17281       case $as_dir in #(
17282       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17283       *) as_qdir=$as_dir;;
17284       esac
17285       as_dirs="'$as_qdir' $as_dirs"
17286       as_dir=`$as_dirname -- "$as_dir" ||
17287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288          X"$as_dir" : 'X\(//\)[^/]' \| \
17289          X"$as_dir" : 'X\(//\)$' \| \
17290          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17291 $as_echo X"$as_dir" |
17292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17293             s//\1/
17294             q
17295           }
17296           /^X\(\/\/\)[^/].*/{
17297             s//\1/
17298             q
17299           }
17300           /^X\(\/\/\)$/{
17301             s//\1/
17302             q
17303           }
17304           /^X\(\/\).*/{
17305             s//\1/
17306             q
17307           }
17308           s/.*/./; q'`
17309       test -d "$as_dir" && break
17310     done
17311     test -z "$as_dirs" || eval "mkdir $as_dirs"
17312   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17313 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17314    { (exit 1); exit 1; }; }; }
17315   ac_builddir=.
17316
17317 case "$ac_dir" in
17318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17319 *)
17320   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17321   # A ".." for each directory in $ac_dir_suffix.
17322   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17323   case $ac_top_builddir_sub in
17324   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17325   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17326   esac ;;
17327 esac
17328 ac_abs_top_builddir=$ac_pwd
17329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17330 # for backward compatibility:
17331 ac_top_builddir=$ac_top_build_prefix
17332
17333 case $srcdir in
17334   .)  # We are building in place.
17335     ac_srcdir=.
17336     ac_top_srcdir=$ac_top_builddir_sub
17337     ac_abs_top_srcdir=$ac_pwd ;;
17338   [\\/]* | ?:[\\/]* )  # Absolute name.
17339     ac_srcdir=$srcdir$ac_dir_suffix;
17340     ac_top_srcdir=$srcdir
17341     ac_abs_top_srcdir=$srcdir ;;
17342   *) # Relative name.
17343     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17344     ac_top_srcdir=$ac_top_build_prefix$srcdir
17345     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17346 esac
17347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17348
17349
17350   case $ac_mode in
17351   :F)
17352   #
17353   # CONFIG_FILE
17354   #
17355
17356 _ACEOF
17357
17358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17359 # If the template does not know about datarootdir, expand it.
17360 # FIXME: This hack should be removed a few years after 2.60.
17361 ac_datarootdir_hack=; ac_datarootdir_seen=
17362
17363 ac_sed_dataroot='
17364 /datarootdir/ {
17365   p
17366   q
17367 }
17368 /@datadir@/p
17369 /@docdir@/p
17370 /@infodir@/p
17371 /@localedir@/p
17372 /@mandir@/p
17373 '
17374 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17375 *datarootdir*) ac_datarootdir_seen=yes;;
17376 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17377   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17378 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17379 _ACEOF
17380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17381   ac_datarootdir_hack='
17382   s&@datadir@&$datadir&g
17383   s&@docdir@&$docdir&g
17384   s&@infodir@&$infodir&g
17385   s&@localedir@&$localedir&g
17386   s&@mandir@&$mandir&g
17387     s&\\\${datarootdir}&$datarootdir&g' ;;
17388 esac
17389 _ACEOF
17390
17391 # Neutralize VPATH when `$srcdir' = `.'.
17392 # Shell code in configure.ac might set extrasub.
17393 # FIXME: do we really want to maintain this feature?
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 ac_sed_extra="$ac_vpsub
17396 $extrasub
17397 _ACEOF
17398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17399 :t
17400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17401 s|@configure_input@|$ac_sed_conf_input|;t t
17402 s&@top_builddir@&$ac_top_builddir_sub&;t t
17403 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17404 s&@srcdir@&$ac_srcdir&;t t
17405 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17406 s&@top_srcdir@&$ac_top_srcdir&;t t
17407 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17408 s&@builddir@&$ac_builddir&;t t
17409 s&@abs_builddir@&$ac_abs_builddir&;t t
17410 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17411 $ac_datarootdir_hack
17412 "
17413 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17414   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17415 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17416    { (exit 1); exit 1; }; }
17417
17418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17419   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17420   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17421   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17422 which seems to be undefined.  Please make sure it is defined." >&5
17423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17424 which seems to be undefined.  Please make sure it is defined." >&2;}
17425
17426   rm -f "$tmp/stdin"
17427   case $ac_file in
17428   -) cat "$tmp/out" && rm -f "$tmp/out";;
17429   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17430   esac \
17431   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17432 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17433    { (exit 1); exit 1; }; }
17434  ;;
17435   :H)
17436   #
17437   # CONFIG_HEADER
17438   #
17439   if test x"$ac_file" != x-; then
17440     {
17441       $as_echo "/* $configure_input  */" \
17442       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17443     } >"$tmp/config.h" \
17444       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17445 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17446    { (exit 1); exit 1; }; }
17447     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17448       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17449 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17450     else
17451       rm -f "$ac_file"
17452       mv "$tmp/config.h" "$ac_file" \
17453         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17454 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17455    { (exit 1); exit 1; }; }
17456     fi
17457   else
17458     $as_echo "/* $configure_input  */" \
17459       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17460       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17461 $as_echo "$as_me: error: could not create -" >&2;}
17462    { (exit 1); exit 1; }; }
17463   fi
17464  ;;
17465
17466
17467   esac
17468
17469 done # for ac_tag
17470
17471
17472 { (exit 0); exit 0; }
17473 _ACEOF
17474 chmod +x $CONFIG_STATUS
17475 ac_clean_files=$ac_clean_files_save
17476
17477 test $ac_write_fail = 0 ||
17478   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17479 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17480    { (exit 1); exit 1; }; }
17481
17482
17483 # configure is writing to config.log, and then calls config.status.
17484 # config.status does its own redirection, appending to config.log.
17485 # Unfortunately, on DOS this fails, as config.log is still kept open
17486 # by configure, so config.status won't be able to write to it; its
17487 # output is simply discarded.  So we exec the FD to /dev/null,
17488 # effectively closing config.log, so it can be properly (re)opened and
17489 # appended to by config.status.  When coming back to configure, we
17490 # need to make the FD available again.
17491 if test "$no_create" != yes; then
17492   ac_cs_success=:
17493   ac_config_status_args=
17494   test "$silent" = yes &&
17495     ac_config_status_args="$ac_config_status_args --quiet"
17496   exec 5>/dev/null
17497   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17498   exec 5>>config.log
17499   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17500   # would make configure fail if this is the last instruction.
17501   $ac_cs_success || { (exit 1); exit 1; }
17502 fi
17503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17504   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17506 fi
17507
17508
17509     if test -n "$OPTIONAL"; then
17510         echo
17511         echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
17512     fi
17513
17514     if test -n "$REQUIRED"; then
17515         echo
17516         echo "ERROR: Please install required programs: $REQUIRED"
17517     fi
17518
17519     if test -n "$UNSUPPORTED"; then
17520         echo
17521         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
17522     fi
17523
17524     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
17525         echo
17526         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
17527         if test -f config.cache ; then
17528             echo "Remove config.cache before rerunning ./configure"
17529         fi
17530     fi
17531
17532     if test -n "$REQUIRED$UNSUPPORTED"; then
17533         rm -f $srcdir/GNUmakefile
17534         exit 1
17535     fi
17536
17537     # regular in-place build
17538     # test for srcdir_build = yes ?
17539     if test "$srcdir_build" = "yes"; then
17540         rm -f $srcdir/GNUmakefile
17541         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
17542         chmod 444 $srcdir/GNUmakefile
17543     else
17544         if test -f $srcdir/GNUmakefile; then
17545             cat <<EOF
17546 Source directory already configured.  Please clean the source directory
17547
17548      make -C $srcdir distclean
17549
17550 and rerun configure.
17551 EOF
17552             exit 2
17553         fi
17554
17555         abssrcdir="`cd $srcdir; pwd`"
17556         absbuilddir="`pwd`"
17557         for d in 2 3 4 5 ; do
17558             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
17559                 case "$abssrcdir" in
17560                     "$absbuilddir"/*)
17561 # source is below build directory, always copy
17562                         ;;
17563                     *)
17564                         case "$abssrcdir/${mf#./}" in
17565                             "$absbuilddir"/*)
17566 # find descended into build directory, don't copy
17567                                 continue
17568                         esac
17569                 esac
17570                 mkdir -p ${mf%/*}
17571                 cat <<EOF | $PYTHON -  > $mf
17572 print 'depth=' + ('../' * ( $d-1 ) )
17573 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
17574 print 'include \$(configure-srcdir)/$mf'
17575 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
17576 EOF
17577             done
17578             for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
17579                 case "$abssrcdir" in
17580                     "$absbuilddir"/*)
17581 # source is below build directory, always copy
17582                         ;;
17583                     *)
17584                         case "$abssrcdir/${mf#./}" in
17585                             "$absbuilddir"/*)
17586 # find descended into build directory, don't copy
17587                                 continue
17588                         esac
17589                 esac
17590                 mkdir -p ${mf%/*}
17591                 cat <<EOF | $PYTHON -  > $mf
17592 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
17593 print 'include \$(configure-srcdir)/$mf'
17594 EOF
17595             done
17596         done
17597
17598         rm -f GNUmakefile
17599         cat <<EOF > GNUmakefile
17600 depth = .
17601 include config\$(if \$(conf),-\$(conf),).make
17602 include \$(configure-srcdir)/GNUmakefile.in
17603 EOF
17604         chmod 444 GNUmakefile
17605
17606     fi
17607
17608
17609 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
17610
17611 if make top-doc 1>/dev/null 2>&1; then
17612     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
17613     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
17614 fi
17615
17616 cat <<EOF
17617
17618 Type:
17619     make$mc all       to build LilyPond
17620     make$mc install   to install LilyPond
17621     make$mc help      to see all possible targets
17622
17623 Edit local.make for local Makefile overrides.
17624
17625
17626 EOF