]> git.donarmstrong.com Git - lilypond.git/blob - configure
* Ignore test failures on non-i386/amd64 architectures (Closes:
[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 TEXI2HTML
643 MAKEINFO
644 PERL
645 GUILE
646 WINDRES
647 PLATFORM_WINDOWS
648 FREETYPE2_LIBS
649 FREETYPE2_CFLAGS
650 FONTCONFIG_LIBS
651 FONTCONFIG_CFLAGS
652 PANGO_FT2_LIBS
653 PANGO_FT2_CFLAGS
654 HOST_ARCH
655 GTK2_LIBS
656 GTK2_CFLAGS
657 PKG_CONFIG
658 LIBOBJS
659 T1ASM
660 FONTFORGE
661 GHOSTSCRIPT
662 PYTHON_CONFIG
663 CPP
664 GUILE_LDFLAGS
665 GUILE_CFLAGS
666 GUILE_CONFIG
667 KPSEWHICH
668 MFMODE
669 METAPOST
670 METAFONT
671 MSGFMT
672 FLEXLEXER_FILE
673 EGREP
674 GREP
675 CXXCPP
676 FLEX
677 BISON
678 YFLAGS
679 YACC
680 RANLIB
681 AR
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 NCSB_SOURCE_FILES
686 FCLIST
687 EXTRA_LIBS
688 DEFINES
689 cross_compiling
690 LD
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 LINK_GXX_STATICALLY
699 DOCUMENTATION
700 build_package_libdir
701 build_package_datadir
702 ROOTSEP
703 PATHSEP
704 DIRSEP
705 LN_S
706 LN
707 ZIP
708 program_suffix
709 program_prefix
710 PYTHON
711 BASH
712 KSH
713 TAR
714 FIND
715 MAKE
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 CONFIGSUFFIX
725 AUTOGENERATE
726 package_depth
727 TOPLEVEL_VERSION
728 PATCH_LEVEL
729 MICRO_VERSION
730 MINOR_VERSION
731 MAJOR_VERSION
732 VERSION
733 PACKAGE
734 package
735 stepmake
736 srcdir
737 ugh_ugh_autoconf250_builddir
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_config
779 enable_documentation
780 enable_gui
781 with_ncsb_dir
782 enable_relocation
783 enable_rpath
784 enable_static_gxx
785 enable_debugging
786 enable_optimising
787 enable_profiling
788 enable_pipe
789 with_localedir
790 with_lang
791 with_python_include
792 with_python_lib
793 '
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 YACC
806 YFLAGS
807 CXXCPP
808 CPP'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
918    { (exit 1); exit 1; }; }
919     ac_useropt_orig=$ac_useropt
920     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921     case $ac_user_opts in
922       *"
923 "enable_$ac_useropt"
924 "*) ;;
925       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926          ac_unrecognized_sep=', ';;
927     esac
928     eval enable_$ac_useropt=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
945    { (exit 1); exit 1; }; }
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_useropt_orig=$ac_useropt
1152     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153     case $ac_user_opts in
1154       *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158          ac_unrecognized_sep=', ';;
1159     esac
1160     eval with_$ac_useropt=\$ac_optarg ;;
1161
1162   -without-* | --without-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=no ;;
1178
1179   --x)
1180     # Obsolete; use --with-x.
1181     with_x=yes ;;
1182
1183   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184   | --x-incl | --x-inc | --x-in | --x-i)
1185     ac_prev=x_includes ;;
1186   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188     x_includes=$ac_optarg ;;
1189
1190   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192     ac_prev=x_libraries ;;
1193   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195     x_libraries=$ac_optarg ;;
1196
1197   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1198 Try \`$0 --help' for more information." >&2
1199    { (exit 1); exit 1; }; }
1200     ;;
1201
1202   *=*)
1203     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1206       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1207    { (exit 1); exit 1; }; }
1208     eval $ac_envvar=\$ac_optarg
1209     export $ac_envvar ;;
1210
1211   *)
1212     # FIXME: should be removed in autoconf 3.0.
1213     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1217     ;;
1218
1219   esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1225    { (exit 1); exit 1; }; }
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229   case $enable_option_checking in
1230     no) ;;
1231     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1232    { (exit 1); exit 1; }; } ;;
1233     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234   esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir
1242 do
1243   eval ac_val=\$$ac_var
1244   # Remove trailing slashes.
1245   case $ac_val in
1246     */ )
1247       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248       eval $ac_var=\$ac_val;;
1249   esac
1250   # Be sure to have absolute directory names.
1251   case $ac_val in
1252     [\\/$]* | ?:[\\/]* )  continue;;
1253     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254   esac
1255   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1256    { (exit 1); exit 1; }; }
1257 done
1258
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1265
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268   if test "x$build_alias" = x; then
1269     cross_compiling=maybe
1270     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1271     If a cross compiler is detected then cross compile mode will be used." >&2
1272   elif test "x$build_alias" != "x$host_alias"; then
1273     cross_compiling=yes
1274   fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1287    { (exit 1); exit 1; }; }
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1290    { (exit 1); exit 1; }; }
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295   ac_srcdir_defaulted=yes
1296   # Try the directory containing this script, then the parent directory.
1297   ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299          X"$as_myself" : 'X\(//\)[^/]' \| \
1300          X"$as_myself" : 'X\(//\)$' \| \
1301          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)[^/].*/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\/\)$/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\).*/{
1316             s//\1/
1317             q
1318           }
1319           s/.*/./; q'`
1320   srcdir=$ac_confdir
1321   if test ! -r "$srcdir/$ac_unique_file"; then
1322     srcdir=..
1323   fi
1324 else
1325   ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1330    { (exit 1); exit 1; }; }
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1335    { (exit 1); exit 1; }; }
1336         pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339   srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_env_${ac_var}_value=\$${ac_var}
1350   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358   # Omit some internal or obsolete options to make the list less imposing.
1359   # This message is too long to be a string in the A/UX 3.1 sh.
1360   cat <<_ACEOF
1361 \`configure' configures this package to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371   -h, --help              display this help and exit
1372       --help=short        display options specific to this package
1373       --help=recursive    display the short help of all the included packages
1374   -V, --version           display version information and exit
1375   -q, --quiet, --silent   do not print \`checking...' messages
1376       --cache-file=FILE   cache test results in FILE [disabled]
1377   -C, --config-cache      alias for \`--cache-file=config.cache'
1378   -n, --no-create         do not create output files
1379       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382   --prefix=PREFIX         install architecture-independent files in PREFIX
1383                           [$ac_default_prefix]
1384   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385                           [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395   --bindir=DIR            user executables [EPREFIX/bin]
1396   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397   --libexecdir=DIR        program executables [EPREFIX/libexec]
1398   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401   --libdir=DIR            object code libraries [EPREFIX/lib]
1402   --includedir=DIR        C header files [PREFIX/include]
1403   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406   --infodir=DIR           info documentation [DATAROOTDIR/info]
1407   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408   --mandir=DIR            man documentation [DATAROOTDIR/man]
1409   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1410   --htmldir=DIR           html documentation [DOCDIR]
1411   --dvidir=DIR            dvi documentation [DOCDIR]
1412   --pdfdir=DIR            pdf documentation [DOCDIR]
1413   --psdir=DIR             ps documentation [DOCDIR]
1414 _ACEOF
1415
1416   cat <<\_ACEOF
1417
1418 System types:
1419   --build=BUILD     configure for building on BUILD [guessed]
1420   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425
1426   cat <<\_ACEOF
1427
1428 Optional Features:
1429   --disable-option-checking  ignore unrecognized --enable/--with options
1430   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432   --enable-config=CONF    put settings in config-CONF.make and config-CONF.h;
1433                             do `make conf=CONF' to get output in ./out-CONF
1434   --enable-documentation  build Documentation.  Default: on
1435   --enable-gui            compile with experimental GNOME output.  Default: off
1436   --enable-relocation     compile with dynamic relocation.  Default: off
1437   --enable-rpath          hardcode runtime library path.  Default: off
1438   --enable-static-gxx     link libstdc++.a statically. Default: off
1439   --enable-debugging      compile with debugging info.  Default: on
1440   --enable-optimising     compile with optimising.  Default: on
1441   --enable-profiling      compile with gprof support.  Default: off
1442   --enable-pipe           compile with -pipe.  Default: on
1443
1444 Optional Packages:
1445   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447   --with-ncsb-dir=DIR     location of Century Schoolbook fonts.
1448   --with-localedir=DIR    location of locales.  Default: PREFIX/share/locale
1449   --with-lang=LANG        use LANG as language to emit messages
1450   --with-python-include=DIR
1451                           location of the python include dir
1452   --with-python-lib=NAME  name of the python lib
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   LIBS        libraries to pass to the linker, e.g. -l<library>
1460   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   CXX         C++ compiler command
1463   CXXFLAGS    C++ compiler flags
1464   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1465               the first program found out of: `bison -y', `byacc', `yacc'.
1466   YFLAGS      The list of arguments that will be passed by default to $YACC.
1467               This script will default YFLAGS to the empty string to avoid a
1468               default value of `-d' given by some make applications.
1469   CXXCPP      C++ preprocessor
1470   CPP         C preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" ||
1483       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484       continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 configure
1538 generated by GNU Autoconf 2.63
1539
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545   exit
1546 fi
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1550
1551 It was created by $as_me, which was
1552 generated by GNU Autoconf 2.63.  Invocation command line was
1553
1554   $ $0 $@
1555
1556 _ACEOF
1557 exec 5>>config.log
1558 {
1559 cat <<_ASUNAME
1560 ## --------- ##
1561 ## Platform. ##
1562 ## --------- ##
1563
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1572
1573 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1574 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1577 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1578 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1579 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1580
1581 _ASUNAME
1582
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586   IFS=$as_save_IFS
1587   test -z "$as_dir" && as_dir=.
1588   $as_echo "PATH: $as_dir"
1589 done
1590 IFS=$as_save_IFS
1591
1592 } >&5
1593
1594 cat >&5 <<_ACEOF
1595
1596
1597 ## ----------- ##
1598 ## Core tests. ##
1599 ## ----------- ##
1600
1601 _ACEOF
1602
1603
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_configure_args=
1610 ac_configure_args0=
1611 ac_configure_args1=
1612 ac_must_keep_next=false
1613 for ac_pass in 1 2
1614 do
1615   for ac_arg
1616   do
1617     case $ac_arg in
1618     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620     | -silent | --silent | --silen | --sile | --sil)
1621       continue ;;
1622     *\'*)
1623       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624     esac
1625     case $ac_pass in
1626     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627     2)
1628       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629       if test $ac_must_keep_next = true; then
1630         ac_must_keep_next=false # Got value, back to normal.
1631       else
1632         case $ac_arg in
1633           *=* | --config-cache | -C | -disable-* | --disable-* \
1634           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636           | -with-* | --with-* | -without-* | --without-* | --x)
1637             case "$ac_configure_args0 " in
1638               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639             esac
1640             ;;
1641           -* ) ac_must_keep_next=true ;;
1642         esac
1643       fi
1644       ac_configure_args="$ac_configure_args '$ac_arg'"
1645       ;;
1646     esac
1647   done
1648 done
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log.  We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658   # Save into config.log some information that might help in debugging.
1659   {
1660     echo
1661
1662     cat <<\_ASBOX
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1666 _ASBOX
1667     echo
1668     # The following way of writing the cache mishandles newlines in values,
1669 (
1670   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671     eval ac_val=\$$ac_var
1672     case $ac_val in #(
1673     *${as_nl}*)
1674       case $ac_var in #(
1675       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1676 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1677       esac
1678       case $ac_var in #(
1679       _ | IFS | as_nl) ;; #(
1680       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       $as_echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         $as_echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       $as_echo "$as_me: caught signal $ac_signal"
1746     $as_echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer an explicitly selected file to automatically selected ones.
1789 ac_site_file1=NONE
1790 ac_site_file2=NONE
1791 if test -n "$CONFIG_SITE"; then
1792   ac_site_file1=$CONFIG_SITE
1793 elif test "x$prefix" != xNONE; then
1794   ac_site_file1=$prefix/share/config.site
1795   ac_site_file2=$prefix/etc/config.site
1796 else
1797   ac_site_file1=$ac_default_prefix/share/config.site
1798   ac_site_file2=$ac_default_prefix/etc/config.site
1799 fi
1800 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1801 do
1802   test "x$ac_site_file" = xNONE && continue
1803   if test -r "$ac_site_file"; then
1804     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1806     sed 's/^/| /' "$ac_site_file" >&5
1807     . "$ac_site_file"
1808   fi
1809 done
1810
1811 if test -r "$cache_file"; then
1812   # Some versions of bash will fail to source /dev/null (special
1813   # files actually), so we avoid doing that.
1814   if test -f "$cache_file"; then
1815     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 $as_echo "$as_me: loading cache $cache_file" >&6;}
1817     case $cache_file in
1818       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819       *)                      . "./$cache_file";;
1820     esac
1821   fi
1822 else
1823   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 $as_echo "$as_me: creating cache $cache_file" >&6;}
1825   >$cache_file
1826 fi
1827
1828 # Check that the precious variables saved in the cache have kept the same
1829 # value.
1830 ac_cache_corrupted=false
1831 for ac_var in $ac_precious_vars; do
1832   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833   eval ac_new_set=\$ac_env_${ac_var}_set
1834   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835   eval ac_new_val=\$ac_env_${ac_var}_value
1836   case $ac_old_set,$ac_new_set in
1837     set,)
1838       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,set)
1842       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1844       ac_cache_corrupted=: ;;
1845     ,);;
1846     *)
1847       if test "x$ac_old_val" != "x$ac_new_val"; then
1848         # differences in whitespace do not lead to failure.
1849         ac_old_val_w=`echo x $ac_old_val`
1850         ac_new_val_w=`echo x $ac_new_val`
1851         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1852           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854           ac_cache_corrupted=:
1855         else
1856           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1857 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1858           eval $ac_var=\$ac_old_val
1859         fi
1860         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1861 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1862         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1863 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1864       fi;;
1865   esac
1866   # Pass precious variables to config.status.
1867   if test "$ac_new_set" = set; then
1868     case $ac_new_val in
1869     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870     *) ac_arg=$ac_var=$ac_new_val ;;
1871     esac
1872     case " $ac_configure_args " in
1873       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1874       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875     esac
1876   fi
1877 done
1878 if $ac_cache_corrupted; then
1879   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1881   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1882 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1883   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1884 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1885    { (exit 1); exit 1; }; }
1886 fi
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
1912 # Bootstrap StepMake configure
1913 # For user package:
1914 ac_aux_dir=
1915 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1932 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 # For stepmake package:
1947 # AC_CONFIG_AUX_DIR(bin)
1948
1949
1950 # Make sure we can run config.sub.
1951 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1952   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1953 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1954    { (exit 1); exit 1; }; }
1955
1956 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1957 $as_echo_n "checking build system type... " >&6; }
1958 if test "${ac_cv_build+set}" = set; then
1959   $as_echo_n "(cached) " >&6
1960 else
1961   ac_build_alias=$build_alias
1962 test "x$ac_build_alias" = x &&
1963   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1964 test "x$ac_build_alias" = x &&
1965   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1966 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1967    { (exit 1); exit 1; }; }
1968 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1969   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1970 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1971    { (exit 1); exit 1; }; }
1972
1973 fi
1974 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1975 $as_echo "$ac_cv_build" >&6; }
1976 case $ac_cv_build in
1977 *-*-*) ;;
1978 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1979 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1980    { (exit 1); exit 1; }; };;
1981 esac
1982 build=$ac_cv_build
1983 ac_save_IFS=$IFS; IFS='-'
1984 set x $ac_cv_build
1985 shift
1986 build_cpu=$1
1987 build_vendor=$2
1988 shift; shift
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1991 build_os=$*
1992 IFS=$ac_save_IFS
1993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1994
1995
1996
1997
1998
1999     . $srcdir/VERSION
2000     FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2001     MICRO_VERSION=$PATCH_LEVEL
2002     TOPLEVEL_VERSION=$FULL_VERSION
2003     if test x$MY_PATCH_LEVEL != x; then
2004         FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2005     fi
2006     VERSION=$FULL_VERSION
2007     export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2008     # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2009     #dnl
2010     PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2011     package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2012     #dnl
2013
2014     # No versioning on directory names of sub-packages
2015     # urg, urg
2016     stepmake=${datadir}/stepmake
2017     presome=${prefix}
2018     if test "$prefix" = "NONE"; then
2019             presome=${ac_default_prefix}
2020     fi
2021     stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2022
2023     # urg, how is this supposed to work?
2024     if test "$program_prefix" = "NONE"; then
2025           program_prefix=
2026     fi
2027     if test "$program_suffix" = "NONE"; then
2028           program_suffix=
2029     fi
2030
2031     { $as_echo "$as_me:$LINENO: checking Package" >&5
2032 $as_echo_n "checking Package... " >&6; }
2033     if test "$PACKAGE" = "STEPMAKE"; then
2034         { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2035 $as_echo "Stepmake package!" >&6; }
2036
2037         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2038 $as_echo_n "checking builddir... " >&6; }
2039
2040         ugh_ugh_autoconf250_builddir="`pwd`"
2041
2042         if test "$srcdir" = "."; then
2043             srcdir_build=yes
2044         else
2045             srcdir_build=no
2046             package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2047             package_srcdir="`dirname  $srcdir`"
2048         fi
2049         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2050 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2051
2052         (cd stepmake 2>/dev/null || mkdir stepmake)
2053         (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2054         stepmake=stepmake
2055     else
2056         { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2057 $as_echo "$PACKAGE" >&6; }
2058
2059         { $as_echo "$as_me:$LINENO: checking builddir" >&5
2060 $as_echo_n "checking builddir... " >&6; }
2061         ugh_ugh_autoconf250_builddir="`pwd`"
2062
2063         here_dir=$(cd . && pwd)
2064         full_src_dir=$(cd $srcdir && pwd)
2065
2066         if test "$full_src_dir" = "$here_dir"; then
2067             srcdir_build=yes
2068         else
2069             srcdir_build=no
2070         fi
2071         { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2072 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2073
2074         { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2075 $as_echo_n "checking for stepmake... " >&6; }
2076         # Check for installed stepmake
2077         if test -d $stepmake; then
2078             { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2079 $as_echo "$stepmake" >&6; }
2080         else
2081             stepmake="`cd $srcdir/stepmake; pwd`"
2082             { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake  ($datadir/stepmake not found)" >&5
2083 $as_echo "$srcdir/stepmake  ($datadir/stepmake not found)" >&6; }
2084         fi
2085     fi
2086
2087
2088
2089     # Use absolute directory for non-srcdir builds, so that build
2090     # dir can be moved.
2091     if test "$srcdir_build" = "no" ;  then
2092         srcdir="`cd $srcdir; pwd`"
2093     fi
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105     # stepmake nonstandard names
2106
2107
2108
2109     # We don't need the upper case variant,
2110     # so stick to macros are uppercase convention.
2111     # AC_DEFINE_UNQUOTED(package, ["${package}"])
2112     # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2113     cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE "${package}"
2115 _ACEOF
2116
2117     cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "${PACKAGE_NAME}"
2119 _ACEOF
2120
2121     cat >>confdefs.h <<_ACEOF
2122 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2123 _ACEOF
2124
2125
2126     if test -z "$package_depth"; then
2127         package_depth="."
2128     else
2129         package_depth="../$package_depth"
2130     fi
2131     export package_depth
2132
2133
2134     AUTOGENERATE="This file was automatically generated by configure"
2135
2136
2137     CONFIGSUFFIX=
2138     # Check whether --enable-config was given.
2139 if test "${enable_config+set}" = set; then
2140   enableval=$enable_config; CONFIGURATION=$enableval
2141 fi
2142
2143
2144     ##'`#
2145
2146     test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2147     CONFIGFILE=config$CONFIGSUFFIX
2148
2149
2150     { $as_echo "$as_me:$LINENO: checking host system type" >&5
2151 $as_echo_n "checking host system type... " >&6; }
2152 if test "${ac_cv_host+set}" = set; then
2153   $as_echo_n "(cached) " >&6
2154 else
2155   if test "x$host_alias" = x; then
2156   ac_cv_host=$ac_cv_build
2157 else
2158   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2159     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2161    { (exit 1); exit 1; }; }
2162 fi
2163
2164 fi
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 $as_echo "$ac_cv_host" >&6; }
2167 case $ac_cv_host in
2168 *-*-*) ;;
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2171    { (exit 1); exit 1; }; };;
2172 esac
2173 host=$ac_cv_host
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_host
2176 shift
2177 host_cpu=$1
2178 host_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 host_os=$*
2183 IFS=$ac_save_IFS
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2185
2186
2187
2188     for ac_prog in gmake make
2189 do
2190   # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_MAKE+set}" = set; then
2195   $as_echo_n "(cached) " >&6
2196 else
2197   if test -n "$MAKE"; then
2198   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_MAKE="$ac_prog"
2208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 MAKE=$ac_cv_prog_MAKE
2218 if test -n "$MAKE"; then
2219   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2220 $as_echo "$MAKE" >&6; }
2221 else
2222   { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2224 fi
2225
2226
2227   test -n "$MAKE" && break
2228 done
2229 test -n "$MAKE" || MAKE="no"
2230
2231
2232
2233     r="`eval echo '$'"MAKE"`"
2234     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2235         true
2236     else
2237         ##STEPMAKE_WARN(cannot find . )
2238         false
2239     fi
2240
2241     if test $? -ne 0; then
2242
2243     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2244
2245         if test "REQUIRED" = "REQUIRED"; then
2246             command="echo ERROR: gmake make not found"
2247             # abort configure process here?
2248         else
2249             command="- echo gmake make not found"
2250         fi
2251         eval "MAKE"='$command'
2252         false
2253     else
2254         true
2255     fi
2256
2257     if test $? -eq 0 -a -n ""; then
2258
2259     r="`eval echo '$'"MAKE"`"
2260     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2261 $as_echo_n "checking $r version... " >&6; }
2262     exe=`
2263     ## which doesn't work in ash, if /usr/bin/which isn't installed
2264     ## type -p doesn't work in ash
2265     ## command -v doesn't work in zsh
2266     ## command -v "$r" 2>&1
2267     ## this test should work in ash, bash, pdksh (ksh), zsh
2268     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2269 `
2270     if test -n ""; then
2271         ver=""
2272     else
2273         ver=`
2274     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2275     ##
2276     ## ARG.
2277     ## Workaround for broken Debian gcc version string:
2278     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2279     ##
2280     ## -V: Workaround for python
2281
2282     #dnl
2283
2284     ## Assume and hunt for dotted version multiplet.
2285     ## use eval trickery, because we cannot use multi-level $() instead of ``
2286     ## for compatibility reasons.
2287
2288     ## grab the first version number in  --version output.
2289     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2290         | head -n 1 \
2291         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2292
2293     if test -z "$_ver"; then
2294         ## If empty, try date [fontforge]
2295         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2296             | head -n 1 \
2297             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2298     fi
2299     echo "$_ver"
2300     #dnl
2301 `
2302     fi
2303     num=`
2304     echo "$ver" | awk -F. '
2305     {
2306       if ($3) {three = $3}
2307       else {three = 0}
2308     }
2309     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2310 `
2311     req=`
2312     echo "" | awk -F. '
2313     {
2314       if ($3) {three = $3}
2315       else {three = 0}
2316     }
2317     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2318 `
2319     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2320 $as_echo "$ver" >&6; }
2321     if test "$num" -lt "$req"; then
2322
2323     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2324
2325     fi
2326     vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2327     eval `echo $vervar=$num`
2328 ##    AC_SUBST(`eval echo $vervar`)
2329
2330     fi
2331
2332
2333     for ac_prog in find
2334 do
2335   # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if test "${ac_cv_prog_FIND+set}" = set; then
2340   $as_echo_n "(cached) " >&6
2341 else
2342   if test -n "$FIND"; then
2343   ac_cv_prog_FIND="$FIND" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352     ac_cv_prog_FIND="$ac_prog"
2353     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 FIND=$ac_cv_prog_FIND
2363 if test -n "$FIND"; then
2364   { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2365 $as_echo "$FIND" >&6; }
2366 else
2367   { $as_echo "$as_me:$LINENO: result: no" >&5
2368 $as_echo "no" >&6; }
2369 fi
2370
2371
2372   test -n "$FIND" && break
2373 done
2374 test -n "$FIND" || FIND="no"
2375
2376
2377
2378     r="`eval echo '$'"FIND"`"
2379     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2380         true
2381     else
2382         ##STEPMAKE_WARN(cannot find . )
2383         false
2384     fi
2385
2386     if test $? -ne 0; then
2387
2388     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2389
2390         if test "REQUIRED" = "REQUIRED"; then
2391             command="echo ERROR: find not found"
2392             # abort configure process here?
2393         else
2394             command="- echo find not found"
2395         fi
2396         eval "FIND"='$command'
2397         false
2398     else
2399         true
2400     fi
2401
2402     if test $? -eq 0 -a -n ""; then
2403
2404     r="`eval echo '$'"FIND"`"
2405     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2406 $as_echo_n "checking $r version... " >&6; }
2407     exe=`
2408     ## which doesn't work in ash, if /usr/bin/which isn't installed
2409     ## type -p doesn't work in ash
2410     ## command -v doesn't work in zsh
2411     ## command -v "$r" 2>&1
2412     ## this test should work in ash, bash, pdksh (ksh), zsh
2413     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2414 `
2415     if test -n ""; then
2416         ver=""
2417     else
2418         ver=`
2419     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2420     ##
2421     ## ARG.
2422     ## Workaround for broken Debian gcc version string:
2423     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2424     ##
2425     ## -V: Workaround for python
2426
2427     #dnl
2428
2429     ## Assume and hunt for dotted version multiplet.
2430     ## use eval trickery, because we cannot use multi-level $() instead of ``
2431     ## for compatibility reasons.
2432
2433     ## grab the first version number in  --version output.
2434     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2435         | head -n 1 \
2436         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2437
2438     if test -z "$_ver"; then
2439         ## If empty, try date [fontforge]
2440         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2441             | head -n 1 \
2442             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2443     fi
2444     echo "$_ver"
2445     #dnl
2446 `
2447     fi
2448     num=`
2449     echo "$ver" | awk -F. '
2450     {
2451       if ($3) {three = $3}
2452       else {three = 0}
2453     }
2454     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2455 `
2456     req=`
2457     echo "" | awk -F. '
2458     {
2459       if ($3) {three = $3}
2460       else {three = 0}
2461     }
2462     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2463 `
2464     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2465 $as_echo "$ver" >&6; }
2466     if test "$num" -lt "$req"; then
2467
2468     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2469
2470     fi
2471     vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2472     eval `echo $vervar=$num`
2473 ##    AC_SUBST(`eval echo $vervar`)
2474
2475     fi
2476
2477
2478
2479     for ac_prog in tar
2480 do
2481   # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if test "${ac_cv_prog_TAR+set}" = set; then
2486   $as_echo_n "(cached) " >&6
2487 else
2488   if test -n "$TAR"; then
2489   ac_cv_prog_TAR="$TAR" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496   for ac_exec_ext in '' $ac_executable_extensions; do
2497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498     ac_cv_prog_TAR="$ac_prog"
2499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 TAR=$ac_cv_prog_TAR
2509 if test -n "$TAR"; then
2510   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2511 $as_echo "$TAR" >&6; }
2512 else
2513   { $as_echo "$as_me:$LINENO: result: no" >&5
2514 $as_echo "no" >&6; }
2515 fi
2516
2517
2518   test -n "$TAR" && break
2519 done
2520 test -n "$TAR" || TAR="no"
2521
2522
2523
2524     r="`eval echo '$'"TAR"`"
2525     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2526         true
2527     else
2528         ##STEPMAKE_WARN(cannot find . )
2529         false
2530     fi
2531
2532     if test $? -ne 0; then
2533
2534     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2535
2536         if test "REQUIRED" = "REQUIRED"; then
2537             command="echo ERROR: tar not found"
2538             # abort configure process here?
2539         else
2540             command="- echo tar not found"
2541         fi
2542         eval "TAR"='$command'
2543         false
2544     else
2545         true
2546     fi
2547
2548     if test $? -eq 0 -a -n ""; then
2549
2550     r="`eval echo '$'"TAR"`"
2551     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2552 $as_echo_n "checking $r version... " >&6; }
2553     exe=`
2554     ## which doesn't work in ash, if /usr/bin/which isn't installed
2555     ## type -p doesn't work in ash
2556     ## command -v doesn't work in zsh
2557     ## command -v "$r" 2>&1
2558     ## this test should work in ash, bash, pdksh (ksh), zsh
2559     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2560 `
2561     if test -n ""; then
2562         ver=""
2563     else
2564         ver=`
2565     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2566     ##
2567     ## ARG.
2568     ## Workaround for broken Debian gcc version string:
2569     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2570     ##
2571     ## -V: Workaround for python
2572
2573     #dnl
2574
2575     ## Assume and hunt for dotted version multiplet.
2576     ## use eval trickery, because we cannot use multi-level $() instead of ``
2577     ## for compatibility reasons.
2578
2579     ## grab the first version number in  --version output.
2580     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2581         | head -n 1 \
2582         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2583
2584     if test -z "$_ver"; then
2585         ## If empty, try date [fontforge]
2586         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2587             | head -n 1 \
2588             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2589     fi
2590     echo "$_ver"
2591     #dnl
2592 `
2593     fi
2594     num=`
2595     echo "$ver" | awk -F. '
2596     {
2597       if ($3) {three = $3}
2598       else {three = 0}
2599     }
2600     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2601 `
2602     req=`
2603     echo "" | awk -F. '
2604     {
2605       if ($3) {three = $3}
2606       else {three = 0}
2607     }
2608     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2609 `
2610     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2611 $as_echo "$ver" >&6; }
2612     if test "$num" -lt "$req"; then
2613
2614     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
2615
2616     fi
2617     vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2618     eval `echo $vervar=$num`
2619 ##    AC_SUBST(`eval echo $vervar`)
2620
2621     fi
2622
2623
2624     if test "$(echo 2)" != "2" ||
2625         test "x`uname`" = "xHP-UX"; then
2626         # Extract the first word of "ksh", so it can be a program name with args.
2627 set dummy ksh; ac_word=$2
2628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_path_KSH+set}" = set; then
2631   $as_echo_n "(cached) " >&6
2632 else
2633   case $KSH in
2634   [\\/]* | ?:[\\/]*)
2635   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2636   ;;
2637   *)
2638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643   for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2646     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2654   ;;
2655 esac
2656 fi
2657 KSH=$ac_cv_path_KSH
2658 if test -n "$KSH"; then
2659   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2660 $as_echo "$KSH" >&6; }
2661 else
2662   { $as_echo "$as_me:$LINENO: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667         # Extract the first word of "bash", so it can be a program name with args.
2668 set dummy bash; ac_word=$2
2669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_path_BASH+set}" = set; then
2672   $as_echo_n "(cached) " >&6
2673 else
2674   case $BASH in
2675   [\\/]* | ?:[\\/]*)
2676   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2677   ;;
2678   *)
2679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684   for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2687     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691 done
2692 IFS=$as_save_IFS
2693
2694   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2695   ;;
2696 esac
2697 fi
2698 BASH=$ac_cv_path_BASH
2699 if test -n "$BASH"; then
2700   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2701 $as_echo "$BASH" >&6; }
2702 else
2703   { $as_echo "$as_me:$LINENO: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708
2709     { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2710 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2711     warn_b=yes
2712
2713         # Extract the first word of "bash", so it can be a program name with args.
2714 set dummy bash; ac_word=$2
2715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_path_SHELL+set}" = set; then
2718   $as_echo_n "(cached) " >&6
2719 else
2720   case $SHELL in
2721   [\\/]* | ?:[\\/]*)
2722   ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2723   ;;
2724   *)
2725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730   for ac_exec_ext in '' $ac_executable_extensions; do
2731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732     ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2733     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740   test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2741   ;;
2742 esac
2743 fi
2744 SHELL=$ac_cv_path_SHELL
2745 if test -n "$SHELL"; then
2746   { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2747 $as_echo "$SHELL" >&6; }
2748 else
2749   { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754     else
2755         SHELL=/bin/sh
2756         # Extract the first word of "bash", so it can be a program name with args.
2757 set dummy bash; ac_word=$2
2758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_path_BASH+set}" = set; then
2761   $as_echo_n "(cached) " >&6
2762 else
2763   case $BASH in
2764   [\\/]* | ?:[\\/]*)
2765   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2766   ;;
2767   *)
2768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773   for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2776     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2784   ;;
2785 esac
2786 fi
2787 BASH=$ac_cv_path_BASH
2788 if test -n "$BASH"; then
2789   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2790 $as_echo "$BASH" >&6; }
2791 else
2792   { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797     fi
2798
2799
2800
2801     unset pv
2802     { $as_echo "$as_me:$LINENO: checking for python" >&5
2803 $as_echo_n "checking for python... " >&6; }
2804     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2805         { $as_echo "$as_me:$LINENO: result: $python" >&5
2806 $as_echo "$python" >&6; }
2807         if ! $python -V > /dev/null 2>&1 ; then
2808             #AC_MSG_WARN([cannot execute $python])
2809             PYTHON='echo no python'
2810         else
2811             unset pv
2812
2813     r="`eval echo '$'"python"`"
2814     { $as_echo "$as_me:$LINENO: checking $r version" >&5
2815 $as_echo_n "checking $r version... " >&6; }
2816     exe=`
2817     ## which doesn't work in ash, if /usr/bin/which isn't installed
2818     ## type -p doesn't work in ash
2819     ## command -v doesn't work in zsh
2820     ## command -v "$r" 2>&1
2821     ## this test should work in ash, bash, pdksh (ksh), zsh
2822     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2823 `
2824     if test -n ""; then
2825         ver=""
2826     else
2827         ver=`
2828     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2829     ##
2830     ## ARG.
2831     ## Workaround for broken Debian gcc version string:
2832     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2833     ##
2834     ## -V: Workaround for python
2835
2836     #dnl
2837
2838     ## Assume and hunt for dotted version multiplet.
2839     ## use eval trickery, because we cannot use multi-level $() instead of ``
2840     ## for compatibility reasons.
2841
2842     ## grab the first version number in  --version output.
2843     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
2844         | head -n 1 \
2845         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
2846
2847     if test -z "$_ver"; then
2848         ## If empty, try date [fontforge]
2849         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2850             | head -n 1 \
2851             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2852     fi
2853     echo "$_ver"
2854     #dnl
2855 `
2856     fi
2857     num=`
2858     echo "$ver" | awk -F. '
2859     {
2860       if ($3) {three = $3}
2861       else {three = 0}
2862     }
2863     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2864 `
2865     req=`
2866     echo "1.5" | awk -F. '
2867     {
2868       if ($3) {three = $3}
2869       else {three = 0}
2870     }
2871     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2872 `
2873     { $as_echo "$as_me:$LINENO: result: $ver" >&5
2874 $as_echo "$ver" >&6; }
2875     if test "$num" -lt "$req"; then
2876
2877     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2878
2879     fi
2880     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2881     eval `echo $vervar=$num`
2882 ##    AC_SUBST(`eval echo $vervar`)
2883
2884             if test -z "$pv"; then
2885                 PYTHON=$python
2886                 break
2887             fi
2888         fi
2889     done
2890     if test -n "$pv"; then
2891
2892     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2893
2894     fi
2895     # clear cached value since arg 2 might point us to a new binary
2896     unset ac_cv_path_PYTHON
2897
2898     # Extract the first word of "$PYTHON", so it can be a program name with args.
2899 set dummy $PYTHON; ac_word=$2
2900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_path_PYTHON+set}" = set; then
2903   $as_echo_n "(cached) " >&6
2904 else
2905   case $PYTHON in
2906   [\\/]* | ?:[\\/]*)
2907   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2908   ;;
2909   *)
2910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913   IFS=$as_save_IFS
2914   test -z "$as_dir" && as_dir=.
2915   for ac_exec_ext in '' $ac_executable_extensions; do
2916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2918     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919     break 2
2920   fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925   ;;
2926 esac
2927 fi
2928 PYTHON=$ac_cv_path_PYTHON
2929 if test -n "$PYTHON"; then
2930   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2931 $as_echo "$PYTHON" >&6; }
2932 else
2933   { $as_echo "$as_me:$LINENO: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938
2939
2940
2941     if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2942         $MAKE -v 2> /dev/null | grep GNU > /dev/null
2943         if test "$?" = 1; then
2944             warn='make (Please install *GNU* make)'
2945             # STEPMAKE_WARN($warn)
2946
2947     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2948
2949         fi
2950     fi
2951
2952     ROOTSEP=':'
2953     DIRSEP='/'
2954     PATHSEP=':'
2955     LN=ln
2956     LN_S='ln -s'
2957     ZIP="zip -r -9"
2958
2959
2960
2961
2962
2963
2964     cat >>confdefs.h <<_ACEOF
2965 #define DIRSEP '${DIRSEP}'
2966 _ACEOF
2967
2968     cat >>confdefs.h <<_ACEOF
2969 #define PATHSEP '${PATHSEP}'
2970 _ACEOF
2971
2972
2973
2974
2975
2976
2977     if test "$datadir" = "\${prefix}/share"; then
2978             datadir='${prefix}/share'
2979     fi
2980     presome=${prefix}
2981     if test "$prefix" = "NONE"; then
2982         presome=${ac_default_prefix}
2983     fi
2984
2985     build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
2986
2987     DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
2988     DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
2989     BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
2990
2991
2992
2993
2994     cat >>confdefs.h <<_ACEOF
2995 #define DATADIR "${DATADIR}"
2996 _ACEOF
2997
2998     cat >>confdefs.h <<_ACEOF
2999 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3000 _ACEOF
3001
3002
3003
3004
3005     if test "$libdir" = "\${exec_prefix}/lib"; then
3006         libdir='${exec_prefix}/lib'
3007     fi
3008     presome=$exec_prefix
3009     build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3010
3011     LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3012     BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3013
3014
3015
3016     cat >>confdefs.h <<_ACEOF
3017 #define LIBDIR "${LIBDIR}"
3018 _ACEOF
3019
3020     cat >>confdefs.h <<_ACEOF
3021 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3022 _ACEOF
3023
3024
3025
3026
3027 # List a file that identifies your package.
3028
3029
3030 # Move to aclocal.m4?
3031 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3032
3033
3034 # Uncomment the configuration options your package needs.
3035
3036 DOCUMENTATION=yes
3037 # Check whether --enable-documentation was given.
3038 if test "${enable_documentation+set}" = set; then
3039   enableval=$enable_documentation; DOCUMENTATION=$enableval
3040 fi
3041
3042
3043
3044 gui_b=no
3045 # Check whether --enable-gui was given.
3046 if test "${enable_gui+set}" = set; then
3047   enableval=$enable_gui; gui_b=$enableval
3048 fi
3049
3050
3051
3052
3053 # Check whether --with-ncsb-dir was given.
3054 if test "${with_ncsb_dir+set}" = set; then
3055   withval=$with_ncsb_dir; NCSB_DIR=$withval
3056 else
3057   NCSB_DIR=""
3058 fi
3059
3060
3061 reloc_b=no
3062 # Check whether --enable-relocation was given.
3063 if test "${enable_relocation+set}" = set; then
3064   enableval=$enable_relocation; reloc_b=$enableval
3065 fi
3066
3067
3068 rpath_b=no
3069 # Check whether --enable-rpath was given.
3070 if test "${enable_rpath+set}" = set; then
3071   enableval=$enable_rpath; rpath_b=$enableval
3072 fi
3073
3074
3075 LINK_GXX_STATICALLY=no
3076 # Check whether --enable-static-gxx was given.
3077 if test "${enable_static_gxx+set}" = set; then
3078   enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3079 fi
3080
3081
3082
3083 # must come before any header checks
3084
3085     # -O is necessary to get inlining
3086     CFLAGS=${CFLAGS-""}
3087     CXXFLAGS=${CXXFLAGS-$CFLAGS}
3088     LDFLAGS=${LDFLAGS-""}
3089     optimise_b=yes
3090     profile_b=no
3091     debug_b=yes
3092     pipe_b=yes
3093
3094     # Check whether --enable-debugging was given.
3095 if test "${enable_debugging+set}" = set; then
3096   enableval=$enable_debugging; debug_b=$enableval
3097 fi
3098
3099
3100     # Check whether --enable-optimising was given.
3101 if test "${enable_optimising+set}" = set; then
3102   enableval=$enable_optimising; optimise_b=$enableval
3103 fi
3104
3105
3106     # Check whether --enable-profiling was given.
3107 if test "${enable_profiling+set}" = set; then
3108   enableval=$enable_profiling; profile_b=$enableval
3109 fi
3110
3111
3112     # Check whether --enable-pipe was given.
3113 if test "${enable_pipe+set}" = set; then
3114   enableval=$enable_pipe; pipe_b=$enableval
3115 fi
3116
3117
3118     if test "$optimise_b" = yes; then
3119         cat >>confdefs.h <<\_ACEOF
3120 #define NDEBUG 1
3121 _ACEOF
3122
3123         DEFINES="$DEFINES -DNDEBUG"
3124         OPTIMIZE=" -O2 -finline-functions"
3125     fi
3126
3127     if test $profile_b = yes; then
3128         EXTRA_LIBS="-pg"
3129         OPTIMIZE="$OPTIMIZE -pg"
3130     fi
3131
3132     if test $debug_b = yes; then
3133         OPTIMIZE="$OPTIMIZE -g"
3134     fi
3135
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147   $as_echo_n "(cached) " >&6
3148 else
3149   if test -n "$CC"; then
3150   ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155   IFS=$as_save_IFS
3156   test -z "$as_dir" && as_dir=.
3157   for ac_exec_ext in '' $ac_executable_extensions; do
3158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3160     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162   fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 fi
3168 fi
3169 CC=$ac_cv_prog_CC
3170 if test -n "$CC"; then
3171   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3173 else
3174   { $as_echo "$as_me:$LINENO: result: no" >&5
3175 $as_echo "no" >&6; }
3176 fi
3177
3178
3179 fi
3180 if test -z "$ac_cv_prog_CC"; then
3181   ac_ct_CC=$CC
3182   # Extract the first word of "gcc", so it can be a program name with args.
3183 set dummy gcc; ac_word=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if test -n "$ac_ct_CC"; then
3190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197   for ac_exec_ext in '' $ac_executable_extensions; do
3198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199     ac_cv_prog_ac_ct_CC="gcc"
3200     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3213 else
3214   { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218   if test "x$ac_ct_CC" = x; then
3219     CC=""
3220   else
3221     case $cross_compiling:$ac_tool_warned in
3222 yes:)
3223 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225 ac_tool_warned=yes ;;
3226 esac
3227     CC=$ac_ct_CC
3228   fi
3229 else
3230   CC="$ac_cv_prog_CC"
3231 fi
3232
3233 if test -z "$CC"; then
3234           if test -n "$ac_tool_prefix"; then
3235     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}cc; ac_word=$2
3237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then
3240   $as_echo_n "(cached) " >&6
3241 else
3242   if test -n "$CC"; then
3243   ac_cv_prog_CC="$CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248   IFS=$as_save_IFS
3249   test -z "$as_dir" && as_dir=.
3250   for ac_exec_ext in '' $ac_executable_extensions; do
3251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252     ac_cv_prog_CC="${ac_tool_prefix}cc"
3253     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254     break 2
3255   fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267   { $as_echo "$as_me:$LINENO: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272   fi
3273 fi
3274 if test -z "$CC"; then
3275   # Extract the first word of "cc", so it can be a program name with args.
3276 set dummy cc; ac_word=$2
3277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_CC+set}" = set; then
3280   $as_echo_n "(cached) " >&6
3281 else
3282   if test -n "$CC"; then
3283   ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285   ac_prog_rejected=no
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3294        ac_prog_rejected=yes
3295        continue
3296      fi
3297     ac_cv_prog_CC="cc"
3298     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299     break 2
3300   fi
3301 done
3302 done
3303 IFS=$as_save_IFS
3304
3305 if test $ac_prog_rejected = yes; then
3306   # We found a bogon in the path, so make sure we never use it.
3307   set dummy $ac_cv_prog_CC
3308   shift
3309   if test $# != 0; then
3310     # We chose a different compiler from the bogus one.
3311     # However, it has the same basename, so the bogon will be chosen
3312     # first if we set CC to just the basename; use the full file name.
3313     shift
3314     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3315   fi
3316 fi
3317 fi
3318 fi
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 else
3324   { $as_echo "$as_me:$LINENO: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329 fi
3330 if test -z "$CC"; then
3331   if test -n "$ac_tool_prefix"; then
3332   for ac_prog in cl.exe
3333   do
3334     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347   IFS=$as_save_IFS
3348   test -z "$as_dir" && as_dir=.
3349   for ac_exec_ext in '' $ac_executable_extensions; do
3350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:$LINENO: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371     test -n "$CC" && break
3372   done
3373 fi
3374 if test -z "$CC"; then
3375   ac_ct_CC=$CC
3376   for ac_prog in cl.exe
3377 do
3378   # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$ac_ct_CC"; then
3386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393   for ac_exec_ext in '' $ac_executable_extensions; do
3394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395     ac_cv_prog_ac_ct_CC="$ac_prog"
3396     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3409 else
3410   { $as_echo "$as_me:$LINENO: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415   test -n "$ac_ct_CC" && break
3416 done
3417
3418   if test "x$ac_ct_CC" = x; then
3419     CC=""
3420   else
3421     case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3426 esac
3427     CC=$ac_ct_CC
3428   fi
3429 fi
3430
3431 fi
3432
3433
3434 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details." >&5
3438 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&2;}
3440    { (exit 1); exit 1; }; }; }
3441
3442 # Provide some information about the compiler.
3443 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3444 set X $ac_compile
3445 ac_compiler=$2
3446 { (ac_try="$ac_compiler --version >&5"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453   (eval "$ac_compiler --version >&5") 2>&5
3454   ac_status=$?
3455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }
3457 { (ac_try="$ac_compiler -v >&5"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464   (eval "$ac_compiler -v >&5") 2>&5
3465   ac_status=$?
3466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); }
3468 { (ac_try="$ac_compiler -V >&5"
3469 case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475   (eval "$ac_compiler -V >&5") 2>&5
3476   ac_status=$?
3477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }
3479
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 ac_clean_files_save=$ac_clean_files
3496 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3497 # Try to create an executable without -o first, disregard a.out.
3498 # It will help us diagnose broken compilers, and finding out an intuition
3499 # of exeext.
3500 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3501 $as_echo_n "checking for C compiler default output file name... " >&6; }
3502 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3503
3504 # The possible output files:
3505 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3506
3507 ac_rmfiles=
3508 for ac_file in $ac_files
3509 do
3510   case $ac_file in
3511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3512     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3513   esac
3514 done
3515 rm -f $ac_rmfiles
3516
3517 if { (ac_try="$ac_link_default"
3518 case "(($ac_try" in
3519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520   *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524   (eval "$ac_link_default") 2>&5
3525   ac_status=$?
3526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }; then
3528   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3529 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3530 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3531 # so that the user can short-circuit this test for compilers unknown to
3532 # Autoconf.
3533 for ac_file in $ac_files ''
3534 do
3535   test -f "$ac_file" || continue
3536   case $ac_file in
3537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3538         ;;
3539     [ab].out )
3540         # We found the default executable, but exeext='' is most
3541         # certainly right.
3542         break;;
3543     *.* )
3544         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3545         then :; else
3546            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547         fi
3548         # We set ac_cv_exeext here because the later test for it is not
3549         # safe: cross compilers may not add the suffix if given an `-o'
3550         # argument, so we may need to know it at that point already.
3551         # Even if this section looks crufty: it has the advantage of
3552         # actually working.
3553         break;;
3554     * )
3555         break;;
3556   esac
3557 done
3558 test "$ac_cv_exeext" = no && ac_cv_exeext=
3559
3560 else
3561   ac_file=''
3562 fi
3563
3564 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3565 $as_echo "$ac_file" >&6; }
3566 if test -z "$ac_file"; then
3567   $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3573 See \`config.log' for more details." >&5
3574 $as_echo "$as_me: error: C compiler cannot create executables
3575 See \`config.log' for more details." >&2;}
3576    { (exit 77); exit 77; }; }; }
3577 fi
3578
3579 ac_exeext=$ac_cv_exeext
3580
3581 # Check that the compiler produces executables we can run.  If not, either
3582 # the compiler is broken, or we cross compile.
3583 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3584 $as_echo_n "checking whether the C compiler works... " >&6; }
3585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3586 # If not cross compiling, check that we can run a simple program.
3587 if test "$cross_compiling" != yes; then
3588   if { ac_try='./$ac_file'
3589   { (case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594 $as_echo "$ac_try_echo") >&5
3595   (eval "$ac_try") 2>&5
3596   ac_status=$?
3597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); }; }; then
3599     cross_compiling=no
3600   else
3601     if test "$cross_compiling" = maybe; then
3602         cross_compiling=yes
3603     else
3604         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3607 If you meant to cross compile, use \`--host'.
3608 See \`config.log' for more details." >&5
3609 $as_echo "$as_me: error: cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details." >&2;}
3612    { (exit 1); exit 1; }; }; }
3613     fi
3614   fi
3615 fi
3616 { $as_echo "$as_me:$LINENO: result: yes" >&5
3617 $as_echo "yes" >&6; }
3618
3619 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3620 ac_clean_files=$ac_clean_files_save
3621 # Check that the compiler produces executables we can run.  If not, either
3622 # the compiler is broken, or we cross compile.
3623 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3624 $as_echo_n "checking whether we are cross compiling... " >&6; }
3625 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3626 $as_echo "$cross_compiling" >&6; }
3627
3628 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3629 $as_echo_n "checking for suffix of executables... " >&6; }
3630 if { (ac_try="$ac_link"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3637   (eval "$ac_link") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; then
3641   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3642 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3643 # work properly (i.e., refer to `conftest.exe'), while it won't with
3644 # `rm'.
3645 for ac_file in conftest.exe conftest conftest.*; do
3646   test -f "$ac_file" || continue
3647   case $ac_file in
3648     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650           break;;
3651     * ) break;;
3652   esac
3653 done
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 compute suffix of executables: cannot compile and link
3658 See \`config.log' for more details." >&5
3659 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3660 See \`config.log' for more details." >&2;}
3661    { (exit 1); exit 1; }; }; }
3662 fi
3663
3664 rm -f conftest$ac_cv_exeext
3665 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3666 $as_echo "$ac_cv_exeext" >&6; }
3667
3668 rm -f conftest.$ac_ext
3669 EXEEXT=$ac_cv_exeext
3670 ac_exeext=$EXEEXT
3671 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3672 $as_echo_n "checking for suffix of object files... " >&6; }
3673 if test "${ac_cv_objext+set}" = set; then
3674   $as_echo_n "(cached) " >&6
3675 else
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682
3683 int
3684 main ()
3685 {
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.o conftest.obj
3692 if { (ac_try="$ac_compile"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698 $as_echo "$ac_try_echo") >&5
3699   (eval "$ac_compile") 2>&5
3700   ac_status=$?
3701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); }; then
3703   for ac_file in conftest.o conftest.obj conftest.*; do
3704   test -f "$ac_file" || continue;
3705   case $ac_file in
3706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3708        break;;
3709   esac
3710 done
3711 else
3712   $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3718 See \`config.log' for more details." >&5
3719 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details." >&2;}
3721    { (exit 1); exit 1; }; }; }
3722 fi
3723
3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3725 fi
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3727 $as_echo "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3729 ac_objext=$OBJEXT
3730 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3733   $as_echo_n "(cached) " >&6
3734 else
3735   cat >conftest.$ac_ext <<_ACEOF
3736 /* confdefs.h.  */
3737 _ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h.  */
3741
3742 int
3743 main ()
3744 {
3745 #ifndef __GNUC__
3746        choke me
3747 #endif
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext
3754 if { (ac_try="$ac_compile"
3755 case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3760 $as_echo "$ac_try_echo") >&5
3761   (eval "$ac_compile") 2>conftest.er1
3762   ac_status=$?
3763   grep -v '^ *+' conftest.er1 >conftest.err
3764   rm -f conftest.er1
3765   cat conftest.err >&5
3766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767   (exit $ac_status); } && {
3768          test -z "$ac_c_werror_flag" ||
3769          test ! -s conftest.err
3770        } && test -s conftest.$ac_objext; then
3771   ac_compiler_gnu=yes
3772 else
3773   $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776         ac_compiler_gnu=no
3777 fi
3778
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781
3782 fi
3783 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3784 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3785 if test $ac_compiler_gnu = yes; then
3786   GCC=yes
3787 else
3788   GCC=
3789 fi
3790 ac_test_CFLAGS=${CFLAGS+set}
3791 ac_save_CFLAGS=$CFLAGS
3792 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3793 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3794 if test "${ac_cv_prog_cc_g+set}" = set; then
3795   $as_echo_n "(cached) " >&6
3796 else
3797   ac_save_c_werror_flag=$ac_c_werror_flag
3798    ac_c_werror_flag=yes
3799    ac_cv_prog_cc_g=no
3800    CFLAGS="-g"
3801    cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807
3808 int
3809 main ()
3810 {
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compile") 2>conftest.er1
3825   ac_status=$?
3826   grep -v '^ *+' conftest.er1 >conftest.err
3827   rm -f conftest.er1
3828   cat conftest.err >&5
3829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } && {
3831          test -z "$ac_c_werror_flag" ||
3832          test ! -s conftest.err
3833        } && test -s conftest.$ac_objext; then
3834   ac_cv_prog_cc_g=yes
3835 else
3836   $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839         CFLAGS=""
3840       cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3862 $as_echo "$ac_try_echo") >&5
3863   (eval "$ac_compile") 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } && {
3870          test -z "$ac_c_werror_flag" ||
3871          test ! -s conftest.err
3872        } && test -s conftest.$ac_objext; then
3873   :
3874 else
3875   $as_echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878         ac_c_werror_flag=$ac_save_c_werror_flag
3879          CFLAGS="-g"
3880          cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h.  */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903   (eval "$ac_compile") 2>conftest.er1
3904   ac_status=$?
3905   grep -v '^ *+' conftest.er1 >conftest.err
3906   rm -f conftest.er1
3907   cat conftest.err >&5
3908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); } && {
3910          test -z "$ac_c_werror_flag" ||
3911          test ! -s conftest.err
3912        } && test -s conftest.$ac_objext; then
3913   ac_cv_prog_cc_g=yes
3914 else
3915   $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918
3919 fi
3920
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928    ac_c_werror_flag=$ac_save_c_werror_flag
3929 fi
3930 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3931 $as_echo "$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933   CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935   if test "$GCC" = yes; then
3936     CFLAGS="-g -O2"
3937   else
3938     CFLAGS="-g"
3939   fi
3940 else
3941   if test "$GCC" = yes; then
3942     CFLAGS="-O2"
3943   else
3944     CFLAGS=
3945   fi
3946 fi
3947 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 if test "${ac_cv_prog_cc_c89+set}" = set; then
3950   $as_echo_n "(cached) " >&6
3951 else
3952   ac_cv_prog_cc_c89=no
3953 ac_save_CC=$CC
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 #include <stdarg.h>
3961 #include <stdio.h>
3962 #include <sys/types.h>
3963 #include <sys/stat.h>
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3968      char **p;
3969      int i;
3970 {
3971   return p[i];
3972 }
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3974 {
3975   char *s;
3976   va_list v;
3977   va_start (v,p);
3978   s = g (p, va_arg (v,int));
3979   va_end (v);
3980   return s;
3981 }
3982
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3984    function prototypes and stuff, but not '\xHH' hex character constants.
3985    These don't provoke an error unfortunately, instead are silently treated
3986    as 'x'.  The following induces an error, until -std is added to get
3987    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3988    array size at least.  It's necessary to write '\x00'==0 to get something
3989    that's true only with -std.  */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3991
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993    inside strings and character constants.  */
3994 #define FOO(x) 'x'
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3996
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001 int argc;
4002 char **argv;
4003 int
4004 main ()
4005 {
4006 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4013 do
4014   CC="$ac_save_CC $ac_arg"
4015   rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4022 $as_echo "$ac_try_echo") >&5
4023   (eval "$ac_compile") 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } && {
4030          test -z "$ac_c_werror_flag" ||
4031          test ! -s conftest.err
4032        } && test -s conftest.$ac_objext; then
4033   ac_cv_prog_cc_c89=$ac_arg
4034 else
4035   $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038
4039 fi
4040
4041 rm -f core conftest.err conftest.$ac_objext
4042   test "x$ac_cv_prog_cc_c89" != "xno" && break
4043 done
4044 rm -f conftest.$ac_ext
4045 CC=$ac_save_CC
4046
4047 fi
4048 # AC_CACHE_VAL
4049 case "x$ac_cv_prog_cc_c89" in
4050   x)
4051     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4052 $as_echo "none needed" >&6; } ;;
4053   xno)
4054     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4055 $as_echo "unsupported" >&6; } ;;
4056   *)
4057     CC="$CC $ac_cv_prog_cc_c89"
4058     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4059 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4060 esac
4061
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069
4070
4071
4072
4073
4074
4075
4076     r="`eval echo '$'"CC"`"
4077     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4078         true
4079     else
4080         ##STEPMAKE_WARN(cannot find . )
4081         false
4082     fi
4083
4084     if test $? -ne 0; then
4085
4086     eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4087
4088         if test "" = "REQUIRED"; then
4089             command="echo ERROR: cc not found"
4090             # abort configure process here?
4091         else
4092             command="- echo cc not found"
4093         fi
4094         eval "CC"='$command'
4095         false
4096     else
4097         true
4098     fi
4099
4100     LD='$(CC)'
4101
4102
4103     # If -pipe requested, test if it works and add to CFLAGS.
4104     if test "$pipe_b" = yes; then
4105         save_cflags="$CFLAGS"
4106         CFLAGS=" -pipe $CFLAGS";
4107         { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4108 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4109 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4110   $as_echo_n "(cached) " >&6
4111 else
4112
4113 cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 /* -pipe test */
4120 int
4121 main ()
4122 {
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136   (eval "$ac_compile") 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } && {
4143          test -z "$ac_c_werror_flag" ||
4144          test ! -s conftest.err
4145        } && test -s conftest.$ac_objext; then
4146   stepmake_cv_cflags_pipe=yes
4147 else
4148   $as_echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151         stepmake_cv_cflags_pipe=no
4152 fi
4153
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 fi
4156 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4157 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4158         CFLAGS=$save_cflags
4159         if test $stepmake_cv_cflags_pipe = yes; then
4160             OPTIMIZE="$OPTIMIZE -pipe"
4161         fi
4162     fi
4163
4164     CFLAGS="$CFLAGS $OPTIMIZE"
4165     CPPFLAGS=${CPPFLAGS-""}
4166
4167     { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4168 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4169     save_cflags="$CFLAGS"
4170     case "$host" in
4171         alpha*-*-*)
4172                     { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4173 $as_echo "-mieee" >&6; }
4174             CFLAGS=" -mieee $CFLAGS"
4175             ;;
4176         *)
4177             { $as_echo "$as_me:$LINENO: result: none" >&5
4178 $as_echo "none" >&6; }
4179             ;;
4180     esac
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190 # Extract the first word of "fc-list", so it can be a program name with args.
4191 set dummy fc-list; ac_word=$2
4192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_FCLIST+set}" = set; then
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if test -n "$FCLIST"; then
4198   ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207     ac_cv_prog_FCLIST="fc-list"
4208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213 IFS=$as_save_IFS
4214
4215 fi
4216 fi
4217 FCLIST=$ac_cv_prog_FCLIST
4218 if test -n "$FCLIST"; then
4219   { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4220 $as_echo "$FCLIST" >&6; }
4221 else
4222   { $as_echo "$as_me:$LINENO: result: no" >&5
4223 $as_echo "no" >&6; }
4224 fi
4225
4226
4227 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4228 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4229
4230 if test "$NCSB_DIR" != "" ;  then
4231   NCSB_SOURCE_FILES=""
4232   for f in c059013l c059016l c059033l c059036l; do
4233     if test ! -f "$NCSB_DIR/$f.pfb"; then
4234
4235     { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4236 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4237     warn_b=yes
4238
4239     else
4240       NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $NCSB_SOURCE_FILES"
4241     fi
4242   done
4243 else
4244   if test "$FCLIST" != ""; then
4245     for style in Roman Italic "Bold Italic" Bold; do
4246       NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4247                 | head -n 1`
4248       NCSB_FILE=`echo $NCSB_FILE | sed 's/^\(.*\):$/\1/g'`
4249       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4250       NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
4251     done
4252   else
4253     { $as_echo "$as_me:$LINENO: result: not found" >&5
4254 $as_echo "not found" >&6; }
4255     echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4256     echo "or use --with-ncsb-dir"
4257   fi
4258 fi
4259 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4260 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4261
4262
4263
4264
4265     unset pv
4266     { $as_echo "$as_me:$LINENO: checking for python" >&5
4267 $as_echo_n "checking for python... " >&6; }
4268     for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4269         { $as_echo "$as_me:$LINENO: result: $python" >&5
4270 $as_echo "$python" >&6; }
4271         if ! $python -V > /dev/null 2>&1 ; then
4272             #AC_MSG_WARN([cannot execute $python])
4273             PYTHON='echo no python'
4274         else
4275             unset pv
4276
4277     r="`eval echo '$'"python"`"
4278     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4279 $as_echo_n "checking $r version... " >&6; }
4280     exe=`
4281     ## which doesn't work in ash, if /usr/bin/which isn't installed
4282     ## type -p doesn't work in ash
4283     ## command -v doesn't work in zsh
4284     ## command -v "$r" 2>&1
4285     ## this test should work in ash, bash, pdksh (ksh), zsh
4286     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4287 `
4288     if test -n ""; then
4289         ver=""
4290     else
4291         ver=`
4292     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4293     ##
4294     ## ARG.
4295     ## Workaround for broken Debian gcc version string:
4296     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4297     ##
4298     ## -V: Workaround for python
4299
4300     #dnl
4301
4302     ## Assume and hunt for dotted version multiplet.
4303     ## use eval trickery, because we cannot use multi-level $() instead of ``
4304     ## for compatibility reasons.
4305
4306     ## grab the first version number in  --version output.
4307     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
4308         | head -n 1 \
4309         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
4310
4311     if test -z "$_ver"; then
4312         ## If empty, try date [fontforge]
4313         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4314             | head -n 1 \
4315             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4316     fi
4317     echo "$_ver"
4318     #dnl
4319 `
4320     fi
4321     num=`
4322     echo "$ver" | awk -F. '
4323     {
4324       if ($3) {three = $3}
4325       else {three = 0}
4326     }
4327     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4328 `
4329     req=`
4330     echo "2.4" | awk -F. '
4331     {
4332       if ($3) {three = $3}
4333       else {three = 0}
4334     }
4335     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4336 `
4337     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4338 $as_echo "$ver" >&6; }
4339     if test "$num" -lt "$req"; then
4340
4341     eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4342
4343     fi
4344     vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4345     eval `echo $vervar=$num`
4346 ##    AC_SUBST(`eval echo $vervar`)
4347
4348             if test -z "$pv"; then
4349                 PYTHON=$python
4350                 break
4351             fi
4352         fi
4353     done
4354     if test -n "$pv"; then
4355
4356     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4357
4358     fi
4359     # clear cached value since arg 2 might point us to a new binary
4360     unset ac_cv_path_PYTHON
4361
4362     # Extract the first word of "$PYTHON", so it can be a program name with args.
4363 set dummy $PYTHON; ac_word=$2
4364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_path_PYTHON+set}" = set; then
4367   $as_echo_n "(cached) " >&6
4368 else
4369   case $PYTHON in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4382     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389   ;;
4390 esac
4391 fi
4392 PYTHON=$ac_cv_path_PYTHON
4393 if test -n "$PYTHON"; then
4394   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4395 $as_echo "$PYTHON" >&6; }
4396 else
4397   { $as_echo "$as_me:$LINENO: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4401
4402
4403
4404
4405     if test "$GCC" = "yes"; then
4406
4407     r="`eval echo '$'"CC"`"
4408     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4409 $as_echo_n "checking $r version... " >&6; }
4410     exe=`
4411     ## which doesn't work in ash, if /usr/bin/which isn't installed
4412     ## type -p doesn't work in ash
4413     ## command -v doesn't work in zsh
4414     ## command -v "$r" 2>&1
4415     ## this test should work in ash, bash, pdksh (ksh), zsh
4416     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4417 `
4418     if test -n ""; then
4419         ver=""
4420     else
4421         ver=`
4422     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4423     ##
4424     ## ARG.
4425     ## Workaround for broken Debian gcc version string:
4426     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4427     ##
4428     ## -V: Workaround for python
4429
4430     #dnl
4431
4432     ## Assume and hunt for dotted version multiplet.
4433     ## use eval trickery, because we cannot use multi-level $() instead of ``
4434     ## for compatibility reasons.
4435
4436     ## grab the first version number in  --version output.
4437     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
4438         | head -n 1 \
4439         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
4440
4441     if test -z "$_ver"; then
4442         ## If empty, try date [fontforge]
4443         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4444             | head -n 1 \
4445             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4446     fi
4447     echo "$_ver"
4448     #dnl
4449 `
4450     fi
4451     num=`
4452     echo "$ver" | awk -F. '
4453     {
4454       if ($3) {three = $3}
4455       else {three = 0}
4456     }
4457     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4458 `
4459     req=`
4460     echo "3.4" | awk -F. '
4461     {
4462       if ($3) {three = $3}
4463       else {three = 0}
4464     }
4465     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4466 `
4467     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4468 $as_echo "$ver" >&6; }
4469     if test "$num" -lt "$req"; then
4470
4471     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4472
4473     fi
4474     vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
4475     eval `echo $vervar=$num`
4476 ##    AC_SUBST(`eval echo $vervar`)
4477
4478     else
4479         warn="$CC (Please install *GNU* cc)"
4480
4481     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4482
4483     fi
4484
4485
4486
4487     ac_ext=cpp
4488 ac_cpp='$CXXCPP $CPPFLAGS'
4489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4492
4493     ac_ext=cpp
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498 if test -z "$CXX"; then
4499   if test -n "$CCC"; then
4500     CXX=$CCC
4501   else
4502     if test -n "$ac_tool_prefix"; then
4503   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4504   do
4505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_CXX+set}" = set; then
4510   $as_echo_n "(cached) " >&6
4511 else
4512   if test -n "$CXX"; then
4513   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520   for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4529
4530 fi
4531 fi
4532 CXX=$ac_cv_prog_CXX
4533 if test -n "$CXX"; then
4534   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4535 $as_echo "$CXX" >&6; }
4536 else
4537   { $as_echo "$as_me:$LINENO: result: no" >&5
4538 $as_echo "no" >&6; }
4539 fi
4540
4541
4542     test -n "$CXX" && break
4543   done
4544 fi
4545 if test -z "$CXX"; then
4546   ac_ct_CXX=$CXX
4547   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548 do
4549   # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$ac_ct_CXX"; then
4557   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_ac_ct_CXX="$ac_prog"
4567     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4577 if test -n "$ac_ct_CXX"; then
4578   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4579 $as_echo "$ac_ct_CXX" >&6; }
4580 else
4581   { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586   test -n "$ac_ct_CXX" && break
4587 done
4588
4589   if test "x$ac_ct_CXX" = x; then
4590     CXX="g++"
4591   else
4592     case $cross_compiling:$ac_tool_warned in
4593 yes:)
4594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4597 esac
4598     CXX=$ac_ct_CXX
4599   fi
4600 fi
4601
4602   fi
4603 fi
4604 # Provide some information about the compiler.
4605 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4606 set X $ac_compile
4607 ac_compiler=$2
4608 { (ac_try="$ac_compiler --version >&5"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614 $as_echo "$ac_try_echo") >&5
4615   (eval "$ac_compiler --version >&5") 2>&5
4616   ac_status=$?
4617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }
4619 { (ac_try="$ac_compiler -v >&5"
4620 case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626   (eval "$ac_compiler -v >&5") 2>&5
4627   ac_status=$?
4628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }
4630 { (ac_try="$ac_compiler -V >&5"
4631 case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637   (eval "$ac_compiler -V >&5") 2>&5
4638   ac_status=$?
4639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }
4641
4642 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4645   $as_echo_n "(cached) " >&6
4646 else
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653
4654 int
4655 main ()
4656 {
4657 #ifndef __GNUC__
4658        choke me
4659 #endif
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (ac_try="$ac_compile"
4667 case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672 $as_echo "$ac_try_echo") >&5
4673   (eval "$ac_compile") 2>conftest.er1
4674   ac_status=$?
4675   grep -v '^ *+' conftest.er1 >conftest.err
4676   rm -f conftest.er1
4677   cat conftest.err >&5
4678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } && {
4680          test -z "$ac_cxx_werror_flag" ||
4681          test ! -s conftest.err
4682        } && test -s conftest.$ac_objext; then
4683   ac_compiler_gnu=yes
4684 else
4685   $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688         ac_compiler_gnu=no
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693
4694 fi
4695 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4697 if test $ac_compiler_gnu = yes; then
4698   GXX=yes
4699 else
4700   GXX=
4701 fi
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then
4707   $as_echo_n "(cached) " >&6
4708 else
4709   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4710    ac_cxx_werror_flag=yes
4711    ac_cv_prog_cxx_g=no
4712    CXXFLAGS="-g"
4713    cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719
4720 int
4721 main ()
4722 {
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4730 case "(($ac_try" in
4731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732   *) ac_try_echo=$ac_try;;
4733 esac
4734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4735 $as_echo "$ac_try_echo") >&5
4736   (eval "$ac_compile") 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && {
4743          test -z "$ac_cxx_werror_flag" ||
4744          test ! -s conftest.err
4745        } && test -s conftest.$ac_objext; then
4746   ac_cv_prog_cxx_g=yes
4747 else
4748   $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751         CXXFLAGS=""
4752       cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775   (eval "$ac_compile") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_cxx_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest.$ac_objext; then
4785   :
4786 else
4787   $as_echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4791          CXXFLAGS="-g"
4792          cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (ac_try="$ac_compile"
4809 case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4814 $as_echo "$ac_try_echo") >&5
4815   (eval "$ac_compile") 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } && {
4822          test -z "$ac_cxx_werror_flag" ||
4823          test ! -s conftest.err
4824        } && test -s conftest.$ac_objext; then
4825   ac_cv_prog_cxx_g=yes
4826 else
4827   $as_echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830
4831 fi
4832
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 fi
4835
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 fi
4838
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4841 fi
4842 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4843 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4844 if test "$ac_test_CXXFLAGS" = set; then
4845   CXXFLAGS=$ac_save_CXXFLAGS
4846 elif test $ac_cv_prog_cxx_g = yes; then
4847   if test "$GXX" = yes; then
4848     CXXFLAGS="-g -O2"
4849   else
4850     CXXFLAGS="-g"
4851   fi
4852 else
4853   if test "$GXX" = yes; then
4854     CXXFLAGS="-O2"
4855   else
4856     CXXFLAGS=
4857   fi
4858 fi
4859 ac_ext=cpp
4860 ac_cpp='$CXXCPP $CPPFLAGS'
4861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4864
4865
4866
4867     r="`eval echo '$'"CXX"`"
4868     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
4869         true
4870     else
4871         ##STEPMAKE_WARN(cannot find . )
4872         false
4873     fi
4874
4875     if test $? -ne 0; then
4876
4877     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
4878
4879         if test "REQUIRED" = "REQUIRED"; then
4880             command="echo ERROR: c++ not found"
4881             # abort configure process here?
4882         else
4883             command="- echo c++ not found"
4884         fi
4885         eval "CXX"='$command'
4886         false
4887     else
4888         true
4889     fi
4890
4891
4892     CXXFLAGS="$CXXFLAGS $OPTIMIZE"
4893     LD='$(CXX)'
4894
4895
4896
4897
4898
4899
4900     if test "$GXX" = "yes"; then
4901
4902     r="`eval echo '$'"CXX"`"
4903     { $as_echo "$as_me:$LINENO: checking $r version" >&5
4904 $as_echo_n "checking $r version... " >&6; }
4905     exe=`
4906     ## which doesn't work in ash, if /usr/bin/which isn't installed
4907     ## type -p doesn't work in ash
4908     ## command -v doesn't work in zsh
4909     ## command -v "$r" 2>&1
4910     ## this test should work in ash, bash, pdksh (ksh), zsh
4911     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4912 `
4913     if test -n ""; then
4914         ver=""
4915     else
4916         ver=`
4917     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4918     ##
4919     ## ARG.
4920     ## Workaround for broken Debian gcc version string:
4921     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4922     ##
4923     ## -V: Workaround for python
4924
4925     #dnl
4926
4927     ## Assume and hunt for dotted version multiplet.
4928     ## use eval trickery, because we cannot use multi-level $() instead of ``
4929     ## for compatibility reasons.
4930
4931     ## grab the first version number in  --version output.
4932     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
4933         | head -n 1 \
4934         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
4935
4936     if test -z "$_ver"; then
4937         ## If empty, try date [fontforge]
4938         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4939             | head -n 1 \
4940             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4941     fi
4942     echo "$_ver"
4943     #dnl
4944 `
4945     fi
4946     num=`
4947     echo "$ver" | awk -F. '
4948     {
4949       if ($3) {three = $3}
4950       else {three = 0}
4951     }
4952     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4953 `
4954     req=`
4955     echo "3.4" | awk -F. '
4956     {
4957       if ($3) {three = $3}
4958       else {three = 0}
4959     }
4960     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4961 `
4962     { $as_echo "$as_me:$LINENO: result: $ver" >&5
4963 $as_echo "$ver" >&6; }
4964     if test "$num" -lt "$req"; then
4965
4966     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4967
4968     fi
4969     vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
4970     eval `echo $vervar=$num`
4971 ##    AC_SUBST(`eval echo $vervar`)
4972
4973     else
4974         warn="$CXX (Please install *GNU* c++)"
4975
4976     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4977
4978     fi
4979
4980
4981     { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
4982 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
4983 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
4984   $as_echo_n "(cached) " >&6
4985 else
4986
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993
4994     template <class T> struct foo { static int baz; };
4995     template <class T> int foo<T>::baz = 1;
4996
4997 int
4998 main ()
4999 {
5000  return foo<int>::baz;
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext conftest$ac_exeext
5006 if { (ac_try="$ac_link"
5007 case "(($ac_try" in
5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009   *) ac_try_echo=$ac_try;;
5010 esac
5011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5012 $as_echo "$ac_try_echo") >&5
5013   (eval "$ac_link") 2>conftest.er1
5014   ac_status=$?
5015   grep -v '^ *+' conftest.er1 >conftest.err
5016   rm -f conftest.er1
5017   cat conftest.err >&5
5018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019   (exit $ac_status); } && {
5020          test -z "$ac_cxx_werror_flag" ||
5021          test ! -s conftest.err
5022        } && test -s conftest$ac_exeext && {
5023          test "$cross_compiling" = yes ||
5024          $as_test_x conftest$ac_exeext
5025        }; then
5026   stepmake_cv_need_explicit_instantiation=no
5027 else
5028   $as_echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031         stepmake_cv_need_explicit_instantiation=yes
5032 fi
5033
5034 rm -rf conftest.dSYM
5035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5036       conftest$ac_exeext conftest.$ac_ext
5037 fi
5038 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5039 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5040     if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5041         cat >>confdefs.h <<\_ACEOF
5042 #define NEED_EXPLICIT_INSTANTIATION 1
5043 _ACEOF
5044
5045     fi
5046
5047
5048     ac_ext=cpp
5049 ac_cpp='$CXXCPP $CPPFLAGS'
5050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053
5054     { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5055 $as_echo_n "checking for stl.data () method... " >&6; }
5056 if test "${stepmake_cv_stl_data_method+set}" = set; then
5057   $as_echo_n "(cached) " >&6
5058 else
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065
5066 #include <vector>
5067 using namespace std;
5068 vector <int> v;
5069 void *p = v.data ();
5070
5071 int
5072 main ()
5073 {
5074
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5081 case "(($ac_try" in
5082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083   *) ac_try_echo=$ac_try;;
5084 esac
5085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087   (eval "$ac_compile") 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } && {
5094          test -z "$ac_cxx_werror_flag" ||
5095          test ! -s conftest.err
5096        } && test -s conftest.$ac_objext; then
5097   stepmake_cv_stl_data_method=yes
5098 else
5099   $as_echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102         stepmake_cv_stl_data_method=no
5103 fi
5104
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 fi
5107 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5108 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5109     if test $stepmake_cv_stl_data_method = yes; then
5110
5111 cat >>confdefs.h <<\_ACEOF
5112 #define HAVE_STL_DATA_METHOD 1
5113 _ACEOF
5114
5115     fi
5116     ac_ext=cpp
5117 ac_cpp='$CXXCPP $CPPFLAGS'
5118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5121
5122
5123
5124
5125     for ac_prog in ar
5126 do
5127   # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_AR+set}" = set; then
5132   $as_echo_n "(cached) " >&6
5133 else
5134   if test -n "$AR"; then
5135   ac_cv_prog_AR="$AR" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140   IFS=$as_save_IFS
5141   test -z "$as_dir" && as_dir=.
5142   for ac_exec_ext in '' $ac_executable_extensions; do
5143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144     ac_cv_prog_AR="$ac_prog"
5145     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146     break 2
5147   fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 AR=$ac_cv_prog_AR
5155 if test -n "$AR"; then
5156   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5157 $as_echo "$AR" >&6; }
5158 else
5159   { $as_echo "$as_me:$LINENO: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164   test -n "$AR" && break
5165 done
5166 test -n "$AR" || AR="no"
5167
5168
5169
5170     r="`eval echo '$'"AR"`"
5171     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
5172         true
5173     else
5174         ##STEPMAKE_WARN(cannot find . )
5175         false
5176     fi
5177
5178     if test $? -ne 0; then
5179
5180     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
5181
5182         if test "REQUIRED" = "REQUIRED"; then
5183             command="echo ERROR: ar not found"
5184             # abort configure process here?
5185         else
5186             command="- echo ar not found"
5187         fi
5188         eval "AR"='$command'
5189         false
5190     else
5191         true
5192     fi
5193
5194     if test $? -eq 0 -a -n ""; then
5195
5196     r="`eval echo '$'"AR"`"
5197     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5198 $as_echo_n "checking $r version... " >&6; }
5199     exe=`
5200     ## which doesn't work in ash, if /usr/bin/which isn't installed
5201     ## type -p doesn't work in ash
5202     ## command -v doesn't work in zsh
5203     ## command -v "$r" 2>&1
5204     ## this test should work in ash, bash, pdksh (ksh), zsh
5205     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5206 `
5207     if test -n ""; then
5208         ver=""
5209     else
5210         ver=`
5211     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5212     ##
5213     ## ARG.
5214     ## Workaround for broken Debian gcc version string:
5215     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5216     ##
5217     ## -V: Workaround for python
5218
5219     #dnl
5220
5221     ## Assume and hunt for dotted version multiplet.
5222     ## use eval trickery, because we cannot use multi-level $() instead of ``
5223     ## for compatibility reasons.
5224
5225     ## grab the first version number in  --version output.
5226     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5227         | head -n 1 \
5228         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5229
5230     if test -z "$_ver"; then
5231         ## If empty, try date [fontforge]
5232         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5233             | head -n 1 \
5234             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5235     fi
5236     echo "$_ver"
5237     #dnl
5238 `
5239     fi
5240     num=`
5241     echo "$ver" | awk -F. '
5242     {
5243       if ($3) {three = $3}
5244       else {three = 0}
5245     }
5246     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5247 `
5248     req=`
5249     echo "" | awk -F. '
5250     {
5251       if ($3) {three = $3}
5252       else {three = 0}
5253     }
5254     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5255 `
5256     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5257 $as_echo "$ver" >&6; }
5258     if test "$num" -lt "$req"; then
5259
5260     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
5261
5262     fi
5263     vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
5264     eval `echo $vervar=$num`
5265 ##    AC_SUBST(`eval echo $vervar`)
5266
5267     fi
5268
5269     if test -n "$ac_tool_prefix"; then
5270   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_prog_RANLIB+set}" = set; then
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if test -n "$RANLIB"; then
5278   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285   for ac_exec_ext in '' $ac_executable_extensions; do
5286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5288     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289     break 2
5290   fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 RANLIB=$ac_cv_prog_RANLIB
5298 if test -n "$RANLIB"; then
5299   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5300 $as_echo "$RANLIB" >&6; }
5301 else
5302   { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 fi
5308 if test -z "$ac_cv_prog_RANLIB"; then
5309   ac_ct_RANLIB=$RANLIB
5310   # Extract the first word of "ranlib", so it can be a program name with args.
5311 set dummy ranlib; ac_word=$2
5312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5315   $as_echo_n "(cached) " >&6
5316 else
5317   if test -n "$ac_ct_RANLIB"; then
5318   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325   for ac_exec_ext in '' $ac_executable_extensions; do
5326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327     ac_cv_prog_ac_ct_RANLIB="ranlib"
5328     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5338 if test -n "$ac_ct_RANLIB"; then
5339   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5340 $as_echo "$ac_ct_RANLIB" >&6; }
5341 else
5342   { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346   if test "x$ac_ct_RANLIB" = x; then
5347     RANLIB=":"
5348   else
5349     case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355     RANLIB=$ac_ct_RANLIB
5356   fi
5357 else
5358   RANLIB="$ac_cv_prog_RANLIB"
5359 fi
5360
5361
5362
5363     r="`eval echo '$'"RANLIB"`"
5364     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
5365         true
5366     else
5367         ##STEPMAKE_WARN(cannot find . )
5368         false
5369     fi
5370
5371     if test $? -ne 0; then
5372
5373     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
5374
5375         if test "REQUIRED" = "REQUIRED"; then
5376             command="echo ERROR: ranlib not found"
5377             # abort configure process here?
5378         else
5379             command="- echo ranlib not found"
5380         fi
5381         eval "RANLIB"='$command'
5382         false
5383     else
5384         true
5385     fi
5386
5387
5388
5389
5390 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5391 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5393   $as_echo_n "(cached) " >&6
5394 else
5395   ac_check_lib_save_LIBS=$LIBS
5396 LIBS="-ldl  $LIBS"
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403
5404 /* Override any GCC internal prototype to avoid an error.
5405    Use char because int might match the return type of a GCC
5406    builtin and then its argument prototype would still apply.  */
5407 #ifdef __cplusplus
5408 extern "C"
5409 #endif
5410 char dlopen ();
5411 int
5412 main ()
5413 {
5414 return dlopen ();
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (ac_try="$ac_link"
5421 case "(($ac_try" in
5422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423   *) ac_try_echo=$ac_try;;
5424 esac
5425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5426 $as_echo "$ac_try_echo") >&5
5427   (eval "$ac_link") 2>conftest.er1
5428   ac_status=$?
5429   grep -v '^ *+' conftest.er1 >conftest.err
5430   rm -f conftest.er1
5431   cat conftest.err >&5
5432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } && {
5434          test -z "$ac_cxx_werror_flag" ||
5435          test ! -s conftest.err
5436        } && test -s conftest$ac_exeext && {
5437          test "$cross_compiling" = yes ||
5438          $as_test_x conftest$ac_exeext
5439        }; then
5440   ac_cv_lib_dl_dlopen=yes
5441 else
5442   $as_echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445         ac_cv_lib_dl_dlopen=no
5446 fi
5447
5448 rm -rf conftest.dSYM
5449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5450       conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5452 fi
5453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5454 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5455 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
5456   cat >>confdefs.h <<_ACEOF
5457 #define HAVE_LIBDL 1
5458 _ACEOF
5459
5460   LIBS="-ldl $LIBS"
5461
5462 fi
5463
5464
5465 for ac_func in dlopen
5466 do
5467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5468 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5469 $as_echo_n "checking for $ac_func... " >&6; }
5470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5471   $as_echo_n "(cached) " >&6
5472 else
5473   cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h.  */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h.  */
5479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5481 #define $ac_func innocuous_$ac_func
5482
5483 /* System header to define __stub macros and hopefully few prototypes,
5484     which can conflict with char $ac_func (); below.
5485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5486     <limits.h> exists even on freestanding compilers.  */
5487
5488 #ifdef __STDC__
5489 # include <limits.h>
5490 #else
5491 # include <assert.h>
5492 #endif
5493
5494 #undef $ac_func
5495
5496 /* Override any GCC internal prototype to avoid an error.
5497    Use char because int might match the return type of a GCC
5498    builtin and then its argument prototype would still apply.  */
5499 #ifdef __cplusplus
5500 extern "C"
5501 #endif
5502 char $ac_func ();
5503 /* The GNU C library defines this for functions which it implements
5504     to always fail with ENOSYS.  Some functions are actually named
5505     something starting with __ and the normal name is an alias.  */
5506 #if defined __stub_$ac_func || defined __stub___$ac_func
5507 choke me
5508 #endif
5509
5510 int
5511 main ()
5512 {
5513 return $ac_func ();
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext conftest$ac_exeext
5519 if { (ac_try="$ac_link"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5525 $as_echo "$ac_try_echo") >&5
5526   (eval "$ac_link") 2>conftest.er1
5527   ac_status=$?
5528   grep -v '^ *+' conftest.er1 >conftest.err
5529   rm -f conftest.er1
5530   cat conftest.err >&5
5531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } && {
5533          test -z "$ac_cxx_werror_flag" ||
5534          test ! -s conftest.err
5535        } && test -s conftest$ac_exeext && {
5536          test "$cross_compiling" = yes ||
5537          $as_test_x conftest$ac_exeext
5538        }; then
5539   eval "$as_ac_var=yes"
5540 else
5541   $as_echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544         eval "$as_ac_var=no"
5545 fi
5546
5547 rm -rf conftest.dSYM
5548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5549       conftest$ac_exeext conftest.$ac_ext
5550 fi
5551 ac_res=`eval 'as_val=${'$as_ac_var'}
5552                  $as_echo "$as_val"'`
5553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5554 $as_echo "$ac_res" >&6; }
5555 as_val=`eval 'as_val=${'$as_ac_var'}
5556                  $as_echo "$as_val"'`
5557    if test "x$as_val" = x""yes; then
5558   cat >>confdefs.h <<_ACEOF
5559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5560 _ACEOF
5561
5562 fi
5563 done
5564
5565
5566 # Do not use bison 1.50 and 1.75.
5567 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
5568
5569     # ugh, automake: we want (and check for) bison
5570     for ac_prog in 'bison -y' byacc
5571 do
5572   # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_prog_YACC+set}" = set; then
5577   $as_echo_n "(cached) " >&6
5578 else
5579   if test -n "$YACC"; then
5580   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585   IFS=$as_save_IFS
5586   test -z "$as_dir" && as_dir=.
5587   for ac_exec_ext in '' $ac_executable_extensions; do
5588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589     ac_cv_prog_YACC="$ac_prog"
5590     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591     break 2
5592   fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5596
5597 fi
5598 fi
5599 YACC=$ac_cv_prog_YACC
5600 if test -n "$YACC"; then
5601   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5602 $as_echo "$YACC" >&6; }
5603 else
5604   { $as_echo "$as_me:$LINENO: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609   test -n "$YACC" && break
5610 done
5611 test -n "$YACC" || YACC="yacc"
5612
5613
5614
5615     for ac_prog in bison
5616 do
5617   # Extract the first word of "$ac_prog", so it can be a program name with args.
5618 set dummy $ac_prog; ac_word=$2
5619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_prog_BISON+set}" = set; then
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$BISON"; then
5625   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632   for ac_exec_ext in '' $ac_executable_extensions; do
5633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634     ac_cv_prog_BISON="$ac_prog"
5635     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 BISON=$ac_cv_prog_BISON
5645 if test -n "$BISON"; then
5646   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5647 $as_echo "$BISON" >&6; }
5648 else
5649   { $as_echo "$as_me:$LINENO: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654   test -n "$BISON" && break
5655 done
5656 test -n "$BISON" || BISON="no"
5657
5658
5659
5660     r="`eval echo '$'"BISON"`"
5661     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
5662         true
5663     else
5664         ##STEPMAKE_WARN(cannot find . )
5665         false
5666     fi
5667
5668     if test $? -ne 0; then
5669
5670     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
5671
5672         if test "OPTIONAL" = "REQUIRED"; then
5673             command="echo ERROR: bison not found"
5674             # abort configure process here?
5675         else
5676             command="- echo bison not found"
5677         fi
5678         eval "BISON"='$command'
5679         false
5680     else
5681         true
5682     fi
5683
5684     if test $? -eq 0 -a -n ""; then
5685
5686     r="`eval echo '$'"BISON"`"
5687     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5688 $as_echo_n "checking $r version... " >&6; }
5689     exe=`
5690     ## which doesn't work in ash, if /usr/bin/which isn't installed
5691     ## type -p doesn't work in ash
5692     ## command -v doesn't work in zsh
5693     ## command -v "$r" 2>&1
5694     ## this test should work in ash, bash, pdksh (ksh), zsh
5695     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5696 `
5697     if test -n ""; then
5698         ver=""
5699     else
5700         ver=`
5701     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5702     ##
5703     ## ARG.
5704     ## Workaround for broken Debian gcc version string:
5705     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5706     ##
5707     ## -V: Workaround for python
5708
5709     #dnl
5710
5711     ## Assume and hunt for dotted version multiplet.
5712     ## use eval trickery, because we cannot use multi-level $() instead of ``
5713     ## for compatibility reasons.
5714
5715     ## grab the first version number in  --version output.
5716     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5717         | head -n 1 \
5718         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5719
5720     if test -z "$_ver"; then
5721         ## If empty, try date [fontforge]
5722         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5723             | head -n 1 \
5724             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5725     fi
5726     echo "$_ver"
5727     #dnl
5728 `
5729     fi
5730     num=`
5731     echo "$ver" | awk -F. '
5732     {
5733       if ($3) {three = $3}
5734       else {three = 0}
5735     }
5736     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5737 `
5738     req=`
5739     echo "" | awk -F. '
5740     {
5741       if ($3) {three = $3}
5742       else {three = 0}
5743     }
5744     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5745 `
5746     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5747 $as_echo "$ver" >&6; }
5748     if test "$num" -lt "$req"; then
5749
5750     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
5751
5752     fi
5753     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5754     eval `echo $vervar=$num`
5755 ##    AC_SUBST(`eval echo $vervar`)
5756
5757     fi
5758
5759
5760     # urg.  should test functionality rather than version.
5761     if test "$BISON" = "bison" -a -n "1.29"; then
5762
5763     r="`eval echo '$'"BISON"`"
5764     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5765 $as_echo_n "checking $r version... " >&6; }
5766     exe=`
5767     ## which doesn't work in ash, if /usr/bin/which isn't installed
5768     ## type -p doesn't work in ash
5769     ## command -v doesn't work in zsh
5770     ## command -v "$r" 2>&1
5771     ## this test should work in ash, bash, pdksh (ksh), zsh
5772     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5773 `
5774     if test -n ""; then
5775         ver=""
5776     else
5777         ver=`
5778     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5779     ##
5780     ## ARG.
5781     ## Workaround for broken Debian gcc version string:
5782     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5783     ##
5784     ## -V: Workaround for python
5785
5786     #dnl
5787
5788     ## Assume and hunt for dotted version multiplet.
5789     ## use eval trickery, because we cannot use multi-level $() instead of ``
5790     ## for compatibility reasons.
5791
5792     ## grab the first version number in  --version output.
5793     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5794         | head -n 1 \
5795         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5796
5797     if test -z "$_ver"; then
5798         ## If empty, try date [fontforge]
5799         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5800             | head -n 1 \
5801             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5802     fi
5803     echo "$_ver"
5804     #dnl
5805 `
5806     fi
5807     num=`
5808     echo "$ver" | awk -F. '
5809     {
5810       if ($3) {three = $3}
5811       else {three = 0}
5812     }
5813     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5814 `
5815     req=`
5816     echo "1.29" | awk -F. '
5817     {
5818       if ($3) {three = $3}
5819       else {three = 0}
5820     }
5821     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5822 `
5823     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5824 $as_echo "$ver" >&6; }
5825     if test "$num" -lt "$req"; then
5826
5827     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
5828
5829     fi
5830     vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5831     eval `echo $vervar=$num`
5832 ##    AC_SUBST(`eval echo $vervar`)
5833
5834     fi
5835
5836
5837     # ugh, automake: we want (and check for) flex
5838     # AC_PROG_LEX
5839     # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
5840
5841     # AC_PROG_LEX()
5842     # ugh, ugh
5843     ac_cv_prog_lex_root=lex.yy
5844
5845     for ac_prog in flex
5846 do
5847   # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_FLEX+set}" = set; then
5852   $as_echo_n "(cached) " >&6
5853 else
5854   if test -n "$FLEX"; then
5855   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_FLEX="$ac_prog"
5865     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 FLEX=$ac_cv_prog_FLEX
5875 if test -n "$FLEX"; then
5876   { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
5877 $as_echo "$FLEX" >&6; }
5878 else
5879   { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882
5883
5884   test -n "$FLEX" && break
5885 done
5886 test -n "$FLEX" || FLEX="no"
5887
5888
5889
5890     r="`eval echo '$'"FLEX"`"
5891     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
5892         true
5893     else
5894         ##STEPMAKE_WARN(cannot find . )
5895         false
5896     fi
5897
5898     if test $? -ne 0; then
5899
5900     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
5901
5902         if test "REQUIRED" = "REQUIRED"; then
5903             command="echo ERROR: flex not found"
5904             # abort configure process here?
5905         else
5906             command="- echo flex not found"
5907         fi
5908         eval "FLEX"='$command'
5909         false
5910     else
5911         true
5912     fi
5913
5914     if test $? -eq 0 -a -n ""; then
5915
5916     r="`eval echo '$'"FLEX"`"
5917     { $as_echo "$as_me:$LINENO: checking $r version" >&5
5918 $as_echo_n "checking $r version... " >&6; }
5919     exe=`
5920     ## which doesn't work in ash, if /usr/bin/which isn't installed
5921     ## type -p doesn't work in ash
5922     ## command -v doesn't work in zsh
5923     ## command -v "$r" 2>&1
5924     ## this test should work in ash, bash, pdksh (ksh), zsh
5925     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5926 `
5927     if test -n ""; then
5928         ver=""
5929     else
5930         ver=`
5931     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5932     ##
5933     ## ARG.
5934     ## Workaround for broken Debian gcc version string:
5935     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5936     ##
5937     ## -V: Workaround for python
5938
5939     #dnl
5940
5941     ## Assume and hunt for dotted version multiplet.
5942     ## use eval trickery, because we cannot use multi-level $() instead of ``
5943     ## for compatibility reasons.
5944
5945     ## grab the first version number in  --version output.
5946     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
5947         | head -n 1 \
5948         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
5949
5950     if test -z "$_ver"; then
5951         ## If empty, try date [fontforge]
5952         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5953             | head -n 1 \
5954             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5955     fi
5956     echo "$_ver"
5957     #dnl
5958 `
5959     fi
5960     num=`
5961     echo "$ver" | awk -F. '
5962     {
5963       if ($3) {three = $3}
5964       else {three = 0}
5965     }
5966     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5967 `
5968     req=`
5969     echo "" | awk -F. '
5970     {
5971       if ($3) {three = $3}
5972       else {three = 0}
5973     }
5974     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5975 `
5976     { $as_echo "$as_me:$LINENO: result: $ver" >&5
5977 $as_echo "$ver" >&6; }
5978     if test "$num" -lt "$req"; then
5979
5980     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
5981
5982     fi
5983     vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
5984     eval `echo $vervar=$num`
5985 ##    AC_SUBST(`eval echo $vervar`)
5986
5987     fi
5988
5989
5990 ac_ext=cpp
5991 ac_cpp='$CXXCPP $CPPFLAGS'
5992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5995 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5996 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5997 if test -z "$CXXCPP"; then
5998   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5999   $as_echo_n "(cached) " >&6
6000 else
6001       # Double quotes because CXXCPP needs to be expanded
6002     for CXXCPP in "$CXX -E" "/lib/cpp"
6003     do
6004       ac_preproc_ok=false
6005 for ac_cxx_preproc_warn_flag in '' yes
6006 do
6007   # Use a header file that comes with gcc, so configuring glibc
6008   # with a fresh cross-compiler works.
6009   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6010   # <limits.h> exists even on freestanding compilers.
6011   # On the NeXT, cc -E runs the code through the compiler's parser,
6012   # not just through cpp. "Syntax error" is here to catch this case.
6013   cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h.  */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h.  */
6019 #ifdef __STDC__
6020 # include <limits.h>
6021 #else
6022 # include <assert.h>
6023 #endif
6024                      Syntax error
6025 _ACEOF
6026 if { (ac_try="$ac_cpp conftest.$ac_ext"
6027 case "(($ac_try" in
6028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029   *) ac_try_echo=$ac_try;;
6030 esac
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6034   ac_status=$?
6035   grep -v '^ *+' conftest.er1 >conftest.err
6036   rm -f conftest.er1
6037   cat conftest.err >&5
6038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); } >/dev/null && {
6040          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6041          test ! -s conftest.err
6042        }; then
6043   :
6044 else
6045   $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048   # Broken: fails on valid input.
6049 continue
6050 fi
6051
6052 rm -f conftest.err conftest.$ac_ext
6053
6054   # OK, works on sane cases.  Now check whether nonexistent headers
6055   # can be detected and how.
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #include <ac_nonexistent.h>
6063 _ACEOF
6064 if { (ac_try="$ac_cpp conftest.$ac_ext"
6065 case "(($ac_try" in
6066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067   *) ac_try_echo=$ac_try;;
6068 esac
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } >/dev/null && {
6078          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6079          test ! -s conftest.err
6080        }; then
6081   # Broken: success on invalid input.
6082 continue
6083 else
6084   $as_echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087   # Passes both tests.
6088 ac_preproc_ok=:
6089 break
6090 fi
6091
6092 rm -f conftest.err conftest.$ac_ext
6093
6094 done
6095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6096 rm -f conftest.err conftest.$ac_ext
6097 if $ac_preproc_ok; then
6098   break
6099 fi
6100
6101     done
6102     ac_cv_prog_CXXCPP=$CXXCPP
6103
6104 fi
6105   CXXCPP=$ac_cv_prog_CXXCPP
6106 else
6107   ac_cv_prog_CXXCPP=$CXXCPP
6108 fi
6109 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6110 $as_echo "$CXXCPP" >&6; }
6111 ac_preproc_ok=false
6112 for ac_cxx_preproc_warn_flag in '' yes
6113 do
6114   # Use a header file that comes with gcc, so configuring glibc
6115   # with a fresh cross-compiler works.
6116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117   # <limits.h> exists even on freestanding compilers.
6118   # On the NeXT, cc -E runs the code through the compiler's parser,
6119   # not just through cpp. "Syntax error" is here to catch this case.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #ifdef __STDC__
6127 # include <limits.h>
6128 #else
6129 # include <assert.h>
6130 #endif
6131                      Syntax error
6132 _ACEOF
6133 if { (ac_try="$ac_cpp conftest.$ac_ext"
6134 case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6139 $as_echo "$ac_try_echo") >&5
6140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } >/dev/null && {
6147          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6148          test ! -s conftest.err
6149        }; then
6150   :
6151 else
6152   $as_echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155   # Broken: fails on valid input.
6156 continue
6157 fi
6158
6159 rm -f conftest.err conftest.$ac_ext
6160
6161   # OK, works on sane cases.  Now check whether nonexistent headers
6162   # can be detected and how.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <ac_nonexistent.h>
6170 _ACEOF
6171 if { (ac_try="$ac_cpp conftest.$ac_ext"
6172 case "(($ac_try" in
6173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174   *) ac_try_echo=$ac_try;;
6175 esac
6176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } >/dev/null && {
6185          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6186          test ! -s conftest.err
6187        }; then
6188   # Broken: success on invalid input.
6189 continue
6190 else
6191   $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194   # Passes both tests.
6195 ac_preproc_ok=:
6196 break
6197 fi
6198
6199 rm -f conftest.err conftest.$ac_ext
6200
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6205   :
6206 else
6207   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6210 See \`config.log' for more details." >&5
6211 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6212 See \`config.log' for more details." >&2;}
6213    { (exit 1); exit 1; }; }; }
6214 fi
6215
6216 ac_ext=cpp
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221
6222
6223 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6224 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6225 if test "${ac_cv_path_GREP+set}" = set; then
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -z "$GREP"; then
6229   ac_path_GREP_found=false
6230   # Loop through the user's path and test for each of PROGNAME-LIST
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for ac_prog in grep ggrep; do
6237     for ac_exec_ext in '' $ac_executable_extensions; do
6238       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6239       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6240 # Check for GNU ac_path_GREP and select it if it is found.
6241   # Check for GNU $ac_path_GREP
6242 case `"$ac_path_GREP" --version 2>&1` in
6243 *GNU*)
6244   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6245 *)
6246   ac_count=0
6247   $as_echo_n 0123456789 >"conftest.in"
6248   while :
6249   do
6250     cat "conftest.in" "conftest.in" >"conftest.tmp"
6251     mv "conftest.tmp" "conftest.in"
6252     cp "conftest.in" "conftest.nl"
6253     $as_echo 'GREP' >> "conftest.nl"
6254     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256     ac_count=`expr $ac_count + 1`
6257     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6258       # Best one so far, save it but keep looking for a better one
6259       ac_cv_path_GREP="$ac_path_GREP"
6260       ac_path_GREP_max=$ac_count
6261     fi
6262     # 10*(2^10) chars as input seems more than enough
6263     test $ac_count -gt 10 && break
6264   done
6265   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6266 esac
6267
6268       $ac_path_GREP_found && break 3
6269     done
6270   done
6271 done
6272 IFS=$as_save_IFS
6273   if test -z "$ac_cv_path_GREP"; then
6274     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6275 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6276    { (exit 1); exit 1; }; }
6277   fi
6278 else
6279   ac_cv_path_GREP=$GREP
6280 fi
6281
6282 fi
6283 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6284 $as_echo "$ac_cv_path_GREP" >&6; }
6285  GREP="$ac_cv_path_GREP"
6286
6287
6288 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6289 $as_echo_n "checking for egrep... " >&6; }
6290 if test "${ac_cv_path_EGREP+set}" = set; then
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6294    then ac_cv_path_EGREP="$GREP -E"
6295    else
6296      if test -z "$EGREP"; then
6297   ac_path_EGREP_found=false
6298   # Loop through the user's path and test for each of PROGNAME-LIST
6299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304   for ac_prog in egrep; do
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6307       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6308 # Check for GNU ac_path_EGREP and select it if it is found.
6309   # Check for GNU $ac_path_EGREP
6310 case `"$ac_path_EGREP" --version 2>&1` in
6311 *GNU*)
6312   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6313 *)
6314   ac_count=0
6315   $as_echo_n 0123456789 >"conftest.in"
6316   while :
6317   do
6318     cat "conftest.in" "conftest.in" >"conftest.tmp"
6319     mv "conftest.tmp" "conftest.in"
6320     cp "conftest.in" "conftest.nl"
6321     $as_echo 'EGREP' >> "conftest.nl"
6322     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6323     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6324     ac_count=`expr $ac_count + 1`
6325     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6326       # Best one so far, save it but keep looking for a better one
6327       ac_cv_path_EGREP="$ac_path_EGREP"
6328       ac_path_EGREP_max=$ac_count
6329     fi
6330     # 10*(2^10) chars as input seems more than enough
6331     test $ac_count -gt 10 && break
6332   done
6333   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6334 esac
6335
6336       $ac_path_EGREP_found && break 3
6337     done
6338   done
6339 done
6340 IFS=$as_save_IFS
6341   if test -z "$ac_cv_path_EGREP"; then
6342     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6343 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6344    { (exit 1); exit 1; }; }
6345   fi
6346 else
6347   ac_cv_path_EGREP=$EGREP
6348 fi
6349
6350    fi
6351 fi
6352 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6353 $as_echo "$ac_cv_path_EGREP" >&6; }
6354  EGREP="$ac_cv_path_EGREP"
6355
6356
6357 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6358 $as_echo_n "checking for ANSI C header files... " >&6; }
6359 if test "${ac_cv_header_stdc+set}" = set; then
6360   $as_echo_n "(cached) " >&6
6361 else
6362   cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368 #include <stdlib.h>
6369 #include <stdarg.h>
6370 #include <string.h>
6371 #include <float.h>
6372
6373 int
6374 main ()
6375 {
6376
6377   ;
6378   return 0;
6379 }
6380 _ACEOF
6381 rm -f conftest.$ac_objext
6382 if { (ac_try="$ac_compile"
6383 case "(($ac_try" in
6384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385   *) ac_try_echo=$ac_try;;
6386 esac
6387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6388 $as_echo "$ac_try_echo") >&5
6389   (eval "$ac_compile") 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } && {
6396          test -z "$ac_cxx_werror_flag" ||
6397          test ! -s conftest.err
6398        } && test -s conftest.$ac_objext; then
6399   ac_cv_header_stdc=yes
6400 else
6401   $as_echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404         ac_cv_header_stdc=no
6405 fi
6406
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408
6409 if test $ac_cv_header_stdc = yes; then
6410   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6411   cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417 #include <string.h>
6418
6419 _ACEOF
6420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6421   $EGREP "memchr" >/dev/null 2>&1; then
6422   :
6423 else
6424   ac_cv_header_stdc=no
6425 fi
6426 rm -f conftest*
6427
6428 fi
6429
6430 if test $ac_cv_header_stdc = yes; then
6431   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6432   cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438 #include <stdlib.h>
6439
6440 _ACEOF
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442   $EGREP "free" >/dev/null 2>&1; then
6443   :
6444 else
6445   ac_cv_header_stdc=no
6446 fi
6447 rm -f conftest*
6448
6449 fi
6450
6451 if test $ac_cv_header_stdc = yes; then
6452   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453   if test "$cross_compiling" = yes; then
6454   :
6455 else
6456   cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <ctype.h>
6463 #include <stdlib.h>
6464 #if ((' ' & 0x0FF) == 0x020)
6465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6467 #else
6468 # define ISLOWER(c) \
6469                    (('a' <= (c) && (c) <= 'i') \
6470                      || ('j' <= (c) && (c) <= 'r') \
6471                      || ('s' <= (c) && (c) <= 'z'))
6472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6473 #endif
6474
6475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6476 int
6477 main ()
6478 {
6479   int i;
6480   for (i = 0; i < 256; i++)
6481     if (XOR (islower (i), ISLOWER (i))
6482         || toupper (i) != TOUPPER (i))
6483       return 2;
6484   return 0;
6485 }
6486 _ACEOF
6487 rm -f conftest$ac_exeext
6488 if { (ac_try="$ac_link"
6489 case "(($ac_try" in
6490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491   *) ac_try_echo=$ac_try;;
6492 esac
6493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494 $as_echo "$ac_try_echo") >&5
6495   (eval "$ac_link") 2>&5
6496   ac_status=$?
6497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6499   { (case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505   (eval "$ac_try") 2>&5
6506   ac_status=$?
6507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; }; then
6509   :
6510 else
6511   $as_echo "$as_me: program exited with status $ac_status" >&5
6512 $as_echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ( exit $ac_status )
6516 ac_cv_header_stdc=no
6517 fi
6518 rm -rf conftest.dSYM
6519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6520 fi
6521
6522
6523 fi
6524 fi
6525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6526 $as_echo "$ac_cv_header_stdc" >&6; }
6527 if test $ac_cv_header_stdc = yes; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define STDC_HEADERS 1
6531 _ACEOF
6532
6533 fi
6534
6535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6546                   inttypes.h stdint.h unistd.h
6547 do
6548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6550 $as_echo_n "checking for $ac_header... " >&6; }
6551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6552   $as_echo_n "(cached) " >&6
6553 else
6554   cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 $ac_includes_default
6561
6562 #include <$ac_header>
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (ac_try="$ac_compile"
6566 case "(($ac_try" in
6567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568   *) ac_try_echo=$ac_try;;
6569 esac
6570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571 $as_echo "$ac_try_echo") >&5
6572   (eval "$ac_compile") 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } && {
6579          test -z "$ac_cxx_werror_flag" ||
6580          test ! -s conftest.err
6581        } && test -s conftest.$ac_objext; then
6582   eval "$as_ac_Header=yes"
6583 else
6584   $as_echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587         eval "$as_ac_Header=no"
6588 fi
6589
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 fi
6592 ac_res=`eval 'as_val=${'$as_ac_Header'}
6593                  $as_echo "$as_val"'`
6594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6595 $as_echo "$ac_res" >&6; }
6596 as_val=`eval 'as_val=${'$as_ac_Header'}
6597                  $as_echo "$as_val"'`
6598    if test "x$as_val" = x""yes; then
6599   cat >>confdefs.h <<_ACEOF
6600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 _ACEOF
6602
6603 fi
6604
6605 done
6606
6607
6608
6609
6610 for ac_header in FlexLexer.h
6611 do
6612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6614   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 $as_echo_n "checking for $ac_header... " >&6; }
6616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6617   $as_echo_n "(cached) " >&6
6618 fi
6619 ac_res=`eval 'as_val=${'$as_ac_Header'}
6620                  $as_echo "$as_val"'`
6621                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6622 $as_echo "$ac_res" >&6; }
6623 else
6624   # Is the header compilable?
6625 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6626 $as_echo_n "checking $ac_header usability... " >&6; }
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 $ac_includes_default
6634 #include <$ac_header>
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6638 case "(($ac_try" in
6639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640   *) ac_try_echo=$ac_try;;
6641 esac
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644   (eval "$ac_compile") 2>conftest.er1
6645   ac_status=$?
6646   grep -v '^ *+' conftest.er1 >conftest.err
6647   rm -f conftest.er1
6648   cat conftest.err >&5
6649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } && {
6651          test -z "$ac_cxx_werror_flag" ||
6652          test ! -s conftest.err
6653        } && test -s conftest.$ac_objext; then
6654   ac_header_compiler=yes
6655 else
6656   $as_echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659         ac_header_compiler=no
6660 fi
6661
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6664 $as_echo "$ac_header_compiler" >&6; }
6665
6666 # Is the header present?
6667 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6668 $as_echo_n "checking $ac_header presence... " >&6; }
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h.  */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h.  */
6675 #include <$ac_header>
6676 _ACEOF
6677 if { (ac_try="$ac_cpp conftest.$ac_ext"
6678 case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6685   ac_status=$?
6686   grep -v '^ *+' conftest.er1 >conftest.err
6687   rm -f conftest.er1
6688   cat conftest.err >&5
6689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } >/dev/null && {
6691          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6692          test ! -s conftest.err
6693        }; then
6694   ac_header_preproc=yes
6695 else
6696   $as_echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699   ac_header_preproc=no
6700 fi
6701
6702 rm -f conftest.err conftest.$ac_ext
6703 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6704 $as_echo "$ac_header_preproc" >&6; }
6705
6706 # So?  What about this header?
6707 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6708   yes:no: )
6709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6713     ac_header_preproc=yes
6714     ;;
6715   no:yes:* )
6716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6717 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6719 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6720     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6721 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6722     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6723 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6724     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6725 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6727 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6728
6729     ;;
6730 esac
6731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6732 $as_echo_n "checking for $ac_header... " >&6; }
6733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6734   $as_echo_n "(cached) " >&6
6735 else
6736   eval "$as_ac_Header=\$ac_header_preproc"
6737 fi
6738 ac_res=`eval 'as_val=${'$as_ac_Header'}
6739                  $as_echo "$as_val"'`
6740                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6741 $as_echo "$ac_res" >&6; }
6742
6743 fi
6744 as_val=`eval 'as_val=${'$as_ac_Header'}
6745                  $as_echo "$as_val"'`
6746    if test "x$as_val" = x""yes; then
6747   cat >>confdefs.h <<_ACEOF
6748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749 _ACEOF
6750  true
6751 else
6752   false
6753 fi
6754
6755 done
6756
6757     if test $? -ne 0; then
6758         warn='FlexLexer.h (flex package)'
6759
6760     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
6761
6762     fi
6763     # check for yyFlexLexer.yy_current_buffer,
6764     # in 2.5.4 <= flex < 2.5.29
6765     ac_ext=cpp
6766 ac_cpp='$CXXCPP $CPPFLAGS'
6767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6770
6771     { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
6772 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
6773 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
6774   $as_echo_n "(cached) " >&6
6775 else
6776   cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782
6783 using namespace std;
6784 #include <FlexLexer.h>
6785 class yy_flex_lexer: public yyFlexLexer
6786 {
6787   public:
6788     yy_flex_lexer ()
6789     {
6790       yy_current_buffer = 0;
6791     }
6792 };
6793
6794 int
6795 main ()
6796 {
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6804 case "(($ac_try" in
6805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806   *) ac_try_echo=$ac_try;;
6807 esac
6808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809 $as_echo "$ac_try_echo") >&5
6810   (eval "$ac_compile") 2>conftest.er1
6811   ac_status=$?
6812   grep -v '^ *+' conftest.er1 >conftest.err
6813   rm -f conftest.er1
6814   cat conftest.err >&5
6815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } && {
6817          test -z "$ac_cxx_werror_flag" ||
6818          test ! -s conftest.err
6819        } && test -s conftest.$ac_objext; then
6820   stepmake_cv_flexlexer_yy_current_buffer=yes
6821 else
6822   $as_echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825         stepmake_cv_flexlexer_yy_current_buffer=no
6826 fi
6827
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
6831 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
6832     if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
6836 _ACEOF
6837
6838     fi
6839     ac_ext=cpp
6840 ac_cpp='$CXXCPP $CPPFLAGS'
6841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6844
6845
6846
6847         { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
6848 $as_echo_n "checking FlexLexer.h location... " >&6; }
6849
6850         # ugh.
6851         cat <<EOF > conftest.cc
6852 using namespace std;
6853 #include <FlexLexer.h>
6854 EOF
6855         FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
6856           sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
6857           sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
6858         rm conftest.cc
6859
6860         { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
6861 $as_echo "$FLEXLEXER_FILE" >&6; }
6862
6863 ac_ext=c
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868
6869
6870     lang=English
6871     ALL_LINGUAS="en nl"
6872
6873     # with/enable ??
6874
6875 # Check whether --with-localedir was given.
6876 if test "${with_localedir+set}" = set; then
6877   withval=$with_localedir; localedir=$with_localedir
6878 else
6879   localedir='${prefix}/share/locale'
6880 fi
6881
6882
6883
6884 # Check whether --with-lang was given.
6885 if test "${with_lang+set}" = set; then
6886   withval=$with_lang; language=$with_lang
6887 else
6888   language=English
6889 fi
6890
6891
6892     { $as_echo "$as_me:$LINENO: checking language" >&5
6893 $as_echo_n "checking language... " >&6; }
6894     case "$language" in
6895       En* | en* | Am* | am* | US* | us*)
6896             lang=English;;
6897       NL | nl | Du* | du* | Ned* | ned*)
6898             lang=Dutch;;
6899       "")
6900             lang=English;;
6901       *)
6902             lang=unknown;;
6903     esac
6904     { $as_echo "$as_me:$LINENO: result: $lang" >&5
6905 $as_echo "$lang" >&6; }
6906
6907     if test "$lang" = "unknown" ; then
6908
6909     { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
6910 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
6911     warn_b=yes
6912
6913     fi
6914
6915
6916
6917     presome=${prefix}
6918     if test "$prefix" = "NONE"; then
6919             presome=${ac_default_prefix}
6920     fi
6921     LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
6922
6923
6924     cat >>confdefs.h <<_ACEOF
6925 #define LOCALEDIR "${LOCALEDIR}"
6926 _ACEOF
6927
6928     # ouch.  autoconf <= 2.57's gettext check fails for
6929     # g++ >= 3.3 (with -std=gnu++98, the default).
6930     # While the check is OK for g++ -std=c++98,
6931     # LilyPond needs GNU g++, so who is to blame here?
6932     # Use a workaround until this is resolved:
6933     # for g++ >= 3.3, select C language.
6934     GCC_UNSUPPORTED=
6935
6936     r="`eval echo '$'"CXX"`"
6937     { $as_echo "$as_me:$LINENO: checking $r version" >&5
6938 $as_echo_n "checking $r version... " >&6; }
6939     exe=`
6940     ## which doesn't work in ash, if /usr/bin/which isn't installed
6941     ## type -p doesn't work in ash
6942     ## command -v doesn't work in zsh
6943     ## command -v "$r" 2>&1
6944     ## this test should work in ash, bash, pdksh (ksh), zsh
6945     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6946 `
6947     ver=`
6948     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6949     ##
6950     ## ARG.
6951     ## Workaround for broken Debian gcc version string:
6952     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6953     ##
6954     ## -V: Workaround for python
6955
6956     #dnl
6957
6958     ## Assume and hunt for dotted version multiplet.
6959     ## use eval trickery, because we cannot use multi-level $() instead of ``
6960     ## for compatibility reasons.
6961
6962     ## grab the first version number in  --version output.
6963     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
6964         | head -n 1 \
6965         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
6966
6967     if test -z "$_ver"; then
6968         ## If empty, try date [fontforge]
6969         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6970             | head -n 1 \
6971             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6972     fi
6973     echo "$_ver"
6974     #dnl
6975 `
6976     num=`
6977     echo "$ver" | awk -F. '
6978     {
6979       if ($3) {three = $3}
6980       else {three = 0}
6981     }
6982     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6983 `
6984     sup=`
6985     echo "3.3" | awk -F. '
6986     {
6987       if ($3) {three = $3}
6988       else {three = 0}
6989     }
6990     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6991 `
6992     { $as_echo "$as_me:$LINENO: result: $ver" >&5
6993 $as_echo "$ver" >&6; }
6994     if test "$num" -ge "$sup"; then
6995
6996     eval "GCC_UNSUPPORTED"=\"`eval echo \"'$'GCC_UNSUPPORTED\" \""$r < 3.3 (installed: $ver)"\"`\"
6997
6998     fi
6999
7000     if test -n "$GCC_UNSUPPORTED"; then
7001         { $as_echo "$as_me:$LINENO: WARNING: autoconf <= 2.59 with g++ >= 3.3 gettext test broken." >&5
7002 $as_echo "$as_me: WARNING: autoconf <= 2.59 with g++ >= 3.3 gettext test broken." >&2;}
7003         { $as_echo "$as_me:$LINENO: WARNING: Trying gcc, cross fingers." >&5
7004 $as_echo "$as_me: WARNING: Trying gcc, cross fingers." >&2;}
7005         ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
7011     fi
7012
7013 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7014 $as_echo_n "checking for gettext in -lintl... " >&6; }
7015 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7016   $as_echo_n "(cached) " >&6
7017 else
7018   ac_check_lib_save_LIBS=$LIBS
7019 LIBS="-lintl  $LIBS"
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026
7027 /* Override any GCC internal prototype to avoid an error.
7028    Use char because int might match the return type of a GCC
7029    builtin and then its argument prototype would still apply.  */
7030 #ifdef __cplusplus
7031 extern "C"
7032 #endif
7033 char gettext ();
7034 int
7035 main ()
7036 {
7037 return gettext ();
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (ac_try="$ac_link"
7044 case "(($ac_try" in
7045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046   *) ac_try_echo=$ac_try;;
7047 esac
7048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7049 $as_echo "$ac_try_echo") >&5
7050   (eval "$ac_link") 2>conftest.er1
7051   ac_status=$?
7052   grep -v '^ *+' conftest.er1 >conftest.err
7053   rm -f conftest.er1
7054   cat conftest.err >&5
7055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); } && {
7057          test -z "$ac_c_werror_flag" ||
7058          test ! -s conftest.err
7059        } && test -s conftest$ac_exeext && {
7060          test "$cross_compiling" = yes ||
7061          $as_test_x conftest$ac_exeext
7062        }; then
7063   ac_cv_lib_intl_gettext=yes
7064 else
7065   $as_echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068         ac_cv_lib_intl_gettext=no
7069 fi
7070
7071 rm -rf conftest.dSYM
7072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7073       conftest$ac_exeext conftest.$ac_ext
7074 LIBS=$ac_check_lib_save_LIBS
7075 fi
7076 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7077 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7078 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7079   cat >>confdefs.h <<_ACEOF
7080 #define HAVE_LIBINTL 1
7081 _ACEOF
7082
7083   LIBS="-lintl $LIBS"
7084
7085 fi
7086
7087
7088 for ac_func in gettext
7089 do
7090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7091 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7092 $as_echo_n "checking for $ac_func... " >&6; }
7093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7094   $as_echo_n "(cached) " >&6
7095 else
7096   cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h.  */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h.  */
7102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7104 #define $ac_func innocuous_$ac_func
7105
7106 /* System header to define __stub macros and hopefully few prototypes,
7107     which can conflict with char $ac_func (); below.
7108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109     <limits.h> exists even on freestanding compilers.  */
7110
7111 #ifdef __STDC__
7112 # include <limits.h>
7113 #else
7114 # include <assert.h>
7115 #endif
7116
7117 #undef $ac_func
7118
7119 /* Override any GCC internal prototype to avoid an error.
7120    Use char because int might match the return type of a GCC
7121    builtin and then its argument prototype would still apply.  */
7122 #ifdef __cplusplus
7123 extern "C"
7124 #endif
7125 char $ac_func ();
7126 /* The GNU C library defines this for functions which it implements
7127     to always fail with ENOSYS.  Some functions are actually named
7128     something starting with __ and the normal name is an alias.  */
7129 #if defined __stub_$ac_func || defined __stub___$ac_func
7130 choke me
7131 #endif
7132
7133 int
7134 main ()
7135 {
7136 return $ac_func ();
7137   ;
7138   return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext conftest$ac_exeext
7142 if { (ac_try="$ac_link"
7143 case "(($ac_try" in
7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145   *) ac_try_echo=$ac_try;;
7146 esac
7147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7148 $as_echo "$ac_try_echo") >&5
7149   (eval "$ac_link") 2>conftest.er1
7150   ac_status=$?
7151   grep -v '^ *+' conftest.er1 >conftest.err
7152   rm -f conftest.er1
7153   cat conftest.err >&5
7154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); } && {
7156          test -z "$ac_c_werror_flag" ||
7157          test ! -s conftest.err
7158        } && test -s conftest$ac_exeext && {
7159          test "$cross_compiling" = yes ||
7160          $as_test_x conftest$ac_exeext
7161        }; then
7162   eval "$as_ac_var=yes"
7163 else
7164   $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167         eval "$as_ac_var=no"
7168 fi
7169
7170 rm -rf conftest.dSYM
7171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7172       conftest$ac_exeext conftest.$ac_ext
7173 fi
7174 ac_res=`eval 'as_val=${'$as_ac_var'}
7175                  $as_echo "$as_val"'`
7176                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7177 $as_echo "$ac_res" >&6; }
7178 as_val=`eval 'as_val=${'$as_ac_var'}
7179                  $as_echo "$as_val"'`
7180    if test "x$as_val" = x""yes; then
7181   cat >>confdefs.h <<_ACEOF
7182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7183 _ACEOF
7184
7185 fi
7186 done
7187
7188     if test -n "$GCC_UNSUPPORTED"; then
7189         ac_ext=c
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194
7195     fi
7196
7197
7198
7199     for ac_prog in msgfmt
7200 do
7201   # Extract the first word of "$ac_prog", so it can be a program name with args.
7202 set dummy $ac_prog; ac_word=$2
7203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$MSGFMT"; then
7209   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216   for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_prog_MSGFMT="$ac_prog"
7219     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 MSGFMT=$ac_cv_prog_MSGFMT
7229 if test -n "$MSGFMT"; then
7230   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7231 $as_echo "$MSGFMT" >&6; }
7232 else
7233   { $as_echo "$as_me:$LINENO: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238   test -n "$MSGFMT" && break
7239 done
7240 test -n "$MSGFMT" || MSGFMT="no"
7241
7242
7243
7244     r="`eval echo '$'"MSGFMT"`"
7245     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7246         true
7247     else
7248         ##STEPMAKE_WARN(cannot find . )
7249         false
7250     fi
7251
7252     if test $? -ne 0; then
7253
7254     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7255
7256         if test "REQUIRED" = "REQUIRED"; then
7257             command="echo ERROR: msgfmt not found"
7258             # abort configure process here?
7259         else
7260             command="- echo msgfmt not found"
7261         fi
7262         eval "MSGFMT"='$command'
7263         false
7264     else
7265         true
7266     fi
7267
7268     if test $? -eq 0 -a -n ""; then
7269
7270     r="`eval echo '$'"MSGFMT"`"
7271     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7272 $as_echo_n "checking $r version... " >&6; }
7273     exe=`
7274     ## which doesn't work in ash, if /usr/bin/which isn't installed
7275     ## type -p doesn't work in ash
7276     ## command -v doesn't work in zsh
7277     ## command -v "$r" 2>&1
7278     ## this test should work in ash, bash, pdksh (ksh), zsh
7279     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7280 `
7281     if test -n ""; then
7282         ver=""
7283     else
7284         ver=`
7285     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7286     ##
7287     ## ARG.
7288     ## Workaround for broken Debian gcc version string:
7289     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7290     ##
7291     ## -V: Workaround for python
7292
7293     #dnl
7294
7295     ## Assume and hunt for dotted version multiplet.
7296     ## use eval trickery, because we cannot use multi-level $() instead of ``
7297     ## for compatibility reasons.
7298
7299     ## grab the first version number in  --version output.
7300     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7301         | head -n 1 \
7302         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7303
7304     if test -z "$_ver"; then
7305         ## If empty, try date [fontforge]
7306         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7307             | head -n 1 \
7308             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7309     fi
7310     echo "$_ver"
7311     #dnl
7312 `
7313     fi
7314     num=`
7315     echo "$ver" | awk -F. '
7316     {
7317       if ($3) {three = $3}
7318       else {three = 0}
7319     }
7320     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7321 `
7322     req=`
7323     echo "" | awk -F. '
7324     {
7325       if ($3) {three = $3}
7326       else {three = 0}
7327     }
7328     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7329 `
7330     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7331 $as_echo "$ver" >&6; }
7332     if test "$num" -lt "$req"; then
7333
7334     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7335
7336     fi
7337     vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7338     eval `echo $vervar=$num`
7339 ##    AC_SUBST(`eval echo $vervar`)
7340
7341     fi
7342
7343
7344
7345
7346     for ac_prog in mf-nowin mf mfw mfont
7347 do
7348   # Extract the first word of "$ac_prog", so it can be a program name with args.
7349 set dummy $ac_prog; ac_word=$2
7350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_METAFONT+set}" = set; then
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$METAFONT"; then
7356   ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363   for ac_exec_ext in '' $ac_executable_extensions; do
7364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365     ac_cv_prog_METAFONT="$ac_prog"
7366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370 done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 METAFONT=$ac_cv_prog_METAFONT
7376 if test -n "$METAFONT"; then
7377   { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7378 $as_echo "$METAFONT" >&6; }
7379 else
7380   { $as_echo "$as_me:$LINENO: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385   test -n "$METAFONT" && break
7386 done
7387 test -n "$METAFONT" || METAFONT="no"
7388
7389
7390
7391     r="`eval echo '$'"METAFONT"`"
7392     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7393         true
7394     else
7395         ##STEPMAKE_WARN(cannot find . )
7396         false
7397     fi
7398
7399     if test $? -ne 0; then
7400
7401     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7402
7403         if test "REQUIRED" = "REQUIRED"; then
7404             command="echo ERROR: mf-nowin mf mfw mfont not found"
7405             # abort configure process here?
7406         else
7407             command="- echo mf-nowin mf mfw mfont not found"
7408         fi
7409         eval "METAFONT"='$command'
7410         false
7411     else
7412         true
7413     fi
7414
7415     if test $? -eq 0 -a -n ""; then
7416
7417     r="`eval echo '$'"METAFONT"`"
7418     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7419 $as_echo_n "checking $r version... " >&6; }
7420     exe=`
7421     ## which doesn't work in ash, if /usr/bin/which isn't installed
7422     ## type -p doesn't work in ash
7423     ## command -v doesn't work in zsh
7424     ## command -v "$r" 2>&1
7425     ## this test should work in ash, bash, pdksh (ksh), zsh
7426     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7427 `
7428     if test -n ""; then
7429         ver=""
7430     else
7431         ver=`
7432     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7433     ##
7434     ## ARG.
7435     ## Workaround for broken Debian gcc version string:
7436     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7437     ##
7438     ## -V: Workaround for python
7439
7440     #dnl
7441
7442     ## Assume and hunt for dotted version multiplet.
7443     ## use eval trickery, because we cannot use multi-level $() instead of ``
7444     ## for compatibility reasons.
7445
7446     ## grab the first version number in  --version output.
7447     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7448         | head -n 1 \
7449         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7450
7451     if test -z "$_ver"; then
7452         ## If empty, try date [fontforge]
7453         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7454             | head -n 1 \
7455             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7456     fi
7457     echo "$_ver"
7458     #dnl
7459 `
7460     fi
7461     num=`
7462     echo "$ver" | awk -F. '
7463     {
7464       if ($3) {three = $3}
7465       else {three = 0}
7466     }
7467     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7468 `
7469     req=`
7470     echo "" | awk -F. '
7471     {
7472       if ($3) {three = $3}
7473       else {three = 0}
7474     }
7475     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7476 `
7477     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7478 $as_echo "$ver" >&6; }
7479     if test "$num" -lt "$req"; then
7480
7481     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7482
7483     fi
7484     vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7485     eval `echo $vervar=$num`
7486 ##    AC_SUBST(`eval echo $vervar`)
7487
7488     fi
7489
7490
7491     for ac_prog in mpost
7492 do
7493   # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_METAPOST+set}" = set; then
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$METAPOST"; then
7501   ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_prog_METAPOST="$ac_prog"
7511     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 METAPOST=$ac_cv_prog_METAPOST
7521 if test -n "$METAPOST"; then
7522   { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7523 $as_echo "$METAPOST" >&6; }
7524 else
7525   { $as_echo "$as_me:$LINENO: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530   test -n "$METAPOST" && break
7531 done
7532 test -n "$METAPOST" || METAPOST="no"
7533
7534
7535
7536     r="`eval echo '$'"METAPOST"`"
7537     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7538         true
7539     else
7540         ##STEPMAKE_WARN(cannot find . )
7541         false
7542     fi
7543
7544     if test $? -ne 0; then
7545
7546     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7547
7548         if test "REQUIRED" = "REQUIRED"; then
7549             command="echo ERROR: mpost not found"
7550             # abort configure process here?
7551         else
7552             command="- echo mpost not found"
7553         fi
7554         eval "METAPOST"='$command'
7555         false
7556     else
7557         true
7558     fi
7559
7560     if test $? -eq 0 -a -n ""; then
7561
7562     r="`eval echo '$'"METAPOST"`"
7563     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7564 $as_echo_n "checking $r version... " >&6; }
7565     exe=`
7566     ## which doesn't work in ash, if /usr/bin/which isn't installed
7567     ## type -p doesn't work in ash
7568     ## command -v doesn't work in zsh
7569     ## command -v "$r" 2>&1
7570     ## this test should work in ash, bash, pdksh (ksh), zsh
7571     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7572 `
7573     if test -n ""; then
7574         ver=""
7575     else
7576         ver=`
7577     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7578     ##
7579     ## ARG.
7580     ## Workaround for broken Debian gcc version string:
7581     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7582     ##
7583     ## -V: Workaround for python
7584
7585     #dnl
7586
7587     ## Assume and hunt for dotted version multiplet.
7588     ## use eval trickery, because we cannot use multi-level $() instead of ``
7589     ## for compatibility reasons.
7590
7591     ## grab the first version number in  --version output.
7592     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7593         | head -n 1 \
7594         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7595
7596     if test -z "$_ver"; then
7597         ## If empty, try date [fontforge]
7598         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7599             | head -n 1 \
7600             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7601     fi
7602     echo "$_ver"
7603     #dnl
7604 `
7605     fi
7606     num=`
7607     echo "$ver" | awk -F. '
7608     {
7609       if ($3) {three = $3}
7610       else {three = 0}
7611     }
7612     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7613 `
7614     req=`
7615     echo "" | awk -F. '
7616     {
7617       if ($3) {three = $3}
7618       else {three = 0}
7619     }
7620     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7621 `
7622     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7623 $as_echo "$ver" >&6; }
7624     if test "$num" -lt "$req"; then
7625
7626     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
7627
7628     fi
7629     vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
7630     eval `echo $vervar=$num`
7631 ##    AC_SUBST(`eval echo $vervar`)
7632
7633     fi
7634
7635     # STEPMAKE_PROGS(INIMETAFONT, inimf inimfont "$METAFONT -ini", REQUIRED)
7636
7637     { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
7638 $as_echo_n "checking for working metafont mode... " >&6; }
7639     modelist='ljfour lj4 lj3 lj2 ljet laserjet'
7640     for MFMODE in $modelist; do
7641         $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
7642         if test -f mfput.tfm; then
7643             break;
7644         fi
7645     done
7646     { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
7647 $as_echo "$MFMODE" >&6; }
7648
7649     rm -f mfput.*
7650
7651
7652
7653
7654     # ugh
7655
7656     for ac_prog in kpsewhich
7657 do
7658   # Extract the first word of "$ac_prog", so it can be a program name with args.
7659 set dummy $ac_prog; ac_word=$2
7660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$KPSEWHICH"; then
7666   ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673   for ac_exec_ext in '' $ac_executable_extensions; do
7674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675     ac_cv_prog_KPSEWHICH="$ac_prog"
7676     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 KPSEWHICH=$ac_cv_prog_KPSEWHICH
7686 if test -n "$KPSEWHICH"; then
7687   { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
7688 $as_echo "$KPSEWHICH" >&6; }
7689 else
7690   { $as_echo "$as_me:$LINENO: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695   test -n "$KPSEWHICH" && break
7696 done
7697 test -n "$KPSEWHICH" || KPSEWHICH="no"
7698
7699
7700
7701     r="`eval echo '$'"KPSEWHICH"`"
7702     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
7703         true
7704     else
7705         ##STEPMAKE_WARN(cannot find . )
7706         false
7707     fi
7708
7709     if test $? -ne 0; then
7710
7711     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
7712
7713         if test "OPTIONAL" = "REQUIRED"; then
7714             command="echo ERROR: kpsewhich not found"
7715             # abort configure process here?
7716         else
7717             command="- echo kpsewhich not found"
7718         fi
7719         eval "KPSEWHICH"='$command'
7720         false
7721     else
7722         true
7723     fi
7724
7725     if test $? -eq 0 -a -n ""; then
7726
7727     r="`eval echo '$'"KPSEWHICH"`"
7728     { $as_echo "$as_me:$LINENO: checking $r version" >&5
7729 $as_echo_n "checking $r version... " >&6; }
7730     exe=`
7731     ## which doesn't work in ash, if /usr/bin/which isn't installed
7732     ## type -p doesn't work in ash
7733     ## command -v doesn't work in zsh
7734     ## command -v "$r" 2>&1
7735     ## this test should work in ash, bash, pdksh (ksh), zsh
7736     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7737 `
7738     if test -n ""; then
7739         ver=""
7740     else
7741         ver=`
7742     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7743     ##
7744     ## ARG.
7745     ## Workaround for broken Debian gcc version string:
7746     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7747     ##
7748     ## -V: Workaround for python
7749
7750     #dnl
7751
7752     ## Assume and hunt for dotted version multiplet.
7753     ## use eval trickery, because we cannot use multi-level $() instead of ``
7754     ## for compatibility reasons.
7755
7756     ## grab the first version number in  --version output.
7757     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
7758         | head -n 1 \
7759         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
7760
7761     if test -z "$_ver"; then
7762         ## If empty, try date [fontforge]
7763         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7764             | head -n 1 \
7765             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7766     fi
7767     echo "$_ver"
7768     #dnl
7769 `
7770     fi
7771     num=`
7772     echo "$ver" | awk -F. '
7773     {
7774       if ($3) {three = $3}
7775       else {three = 0}
7776     }
7777     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7778 `
7779     req=`
7780     echo "" | awk -F. '
7781     {
7782       if ($3) {three = $3}
7783       else {three = 0}
7784     }
7785     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7786 `
7787     { $as_echo "$as_me:$LINENO: result: $ver" >&5
7788 $as_echo "$ver" >&6; }
7789     if test "$num" -lt "$req"; then
7790
7791     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
7792
7793     fi
7794     vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
7795     eval `echo $vervar=$num`
7796 ##    AC_SUBST(`eval echo $vervar`)
7797
7798     fi
7799
7800
7801
7802 ## should check for 1.8.2 ?
7803 ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7809 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7810 # On Suns, sometimes $CPP names a directory.
7811 if test -n "$CPP" && test -d "$CPP"; then
7812   CPP=
7813 fi
7814 if test -z "$CPP"; then
7815   if test "${ac_cv_prog_CPP+set}" = set; then
7816   $as_echo_n "(cached) " >&6
7817 else
7818       # Double quotes because CPP needs to be expanded
7819     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7820     do
7821       ac_preproc_ok=false
7822 for ac_c_preproc_warn_flag in '' yes
7823 do
7824   # Use a header file that comes with gcc, so configuring glibc
7825   # with a fresh cross-compiler works.
7826   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7827   # <limits.h> exists even on freestanding compilers.
7828   # On the NeXT, cc -E runs the code through the compiler's parser,
7829   # not just through cpp. "Syntax error" is here to catch this case.
7830   cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836 #ifdef __STDC__
7837 # include <limits.h>
7838 #else
7839 # include <assert.h>
7840 #endif
7841                      Syntax error
7842 _ACEOF
7843 if { (ac_try="$ac_cpp conftest.$ac_ext"
7844 case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } >/dev/null && {
7857          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7858          test ! -s conftest.err
7859        }; then
7860   :
7861 else
7862   $as_echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865   # Broken: fails on valid input.
7866 continue
7867 fi
7868
7869 rm -f conftest.err conftest.$ac_ext
7870
7871   # OK, works on sane cases.  Now check whether nonexistent headers
7872   # can be detected and how.
7873   cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h.  */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h.  */
7879 #include <ac_nonexistent.h>
7880 _ACEOF
7881 if { (ac_try="$ac_cpp conftest.$ac_ext"
7882 case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7887 $as_echo "$ac_try_echo") >&5
7888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } >/dev/null && {
7895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7896          test ! -s conftest.err
7897        }; then
7898   # Broken: success on invalid input.
7899 continue
7900 else
7901   $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904   # Passes both tests.
7905 ac_preproc_ok=:
7906 break
7907 fi
7908
7909 rm -f conftest.err conftest.$ac_ext
7910
7911 done
7912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7913 rm -f conftest.err conftest.$ac_ext
7914 if $ac_preproc_ok; then
7915   break
7916 fi
7917
7918     done
7919     ac_cv_prog_CPP=$CPP
7920
7921 fi
7922   CPP=$ac_cv_prog_CPP
7923 else
7924   ac_cv_prog_CPP=$CPP
7925 fi
7926 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7927 $as_echo "$CPP" >&6; }
7928 ac_preproc_ok=false
7929 for ac_c_preproc_warn_flag in '' yes
7930 do
7931   # Use a header file that comes with gcc, so configuring glibc
7932   # with a fresh cross-compiler works.
7933   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934   # <limits.h> exists even on freestanding compilers.
7935   # On the NeXT, cc -E runs the code through the compiler's parser,
7936   # not just through cpp. "Syntax error" is here to catch this case.
7937   cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943 #ifdef __STDC__
7944 # include <limits.h>
7945 #else
7946 # include <assert.h>
7947 #endif
7948                      Syntax error
7949 _ACEOF
7950 if { (ac_try="$ac_cpp conftest.$ac_ext"
7951 case "(($ac_try" in
7952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953   *) ac_try_echo=$ac_try;;
7954 esac
7955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7956 $as_echo "$ac_try_echo") >&5
7957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7958   ac_status=$?
7959   grep -v '^ *+' conftest.er1 >conftest.err
7960   rm -f conftest.er1
7961   cat conftest.err >&5
7962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } >/dev/null && {
7964          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7965          test ! -s conftest.err
7966        }; then
7967   :
7968 else
7969   $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972   # Broken: fails on valid input.
7973 continue
7974 fi
7975
7976 rm -f conftest.err conftest.$ac_ext
7977
7978   # OK, works on sane cases.  Now check whether nonexistent headers
7979   # can be detected and how.
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 #include <ac_nonexistent.h>
7987 _ACEOF
7988 if { (ac_try="$ac_cpp conftest.$ac_ext"
7989 case "(($ac_try" in
7990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991   *) ac_try_echo=$ac_try;;
7992 esac
7993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994 $as_echo "$ac_try_echo") >&5
7995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7996   ac_status=$?
7997   grep -v '^ *+' conftest.er1 >conftest.err
7998   rm -f conftest.er1
7999   cat conftest.err >&5
8000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001   (exit $ac_status); } >/dev/null && {
8002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8003          test ! -s conftest.err
8004        }; then
8005   # Broken: success on invalid input.
8006 continue
8007 else
8008   $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011   # Passes both tests.
8012 ac_preproc_ok=:
8013 break
8014 fi
8015
8016 rm -f conftest.err conftest.$ac_ext
8017
8018 done
8019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8020 rm -f conftest.err conftest.$ac_ext
8021 if $ac_preproc_ok; then
8022   :
8023 else
8024   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8026 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8027 See \`config.log' for more details." >&5
8028 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8029 See \`config.log' for more details." >&2;}
8030    { (exit 1); exit 1; }; }; }
8031 fi
8032
8033 ac_ext=c
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038
8039
8040
8041     ## First, let's just see if we can find Guile at all.
8042     test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8043     test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8044     { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8045 $as_echo_n "checking for guile-config... " >&6; }
8046     for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config; do
8047         { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
8048 $as_echo "$guile_config" >&6; }
8049         if ! $guile_config --version > /dev/null 2>&1 ; then
8050             { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
8051 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
8052             { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
8053 $as_echo_n "checking if we are cross compiling... " >&6; }
8054             GUILE_CONFIG='echo no guile-config'
8055         else
8056             GUILE_CONFIG=$guile_config
8057             break
8058         fi
8059     done
8060
8061
8062     r="`eval echo '$'"GUILE_CONFIG"`"
8063     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8064         true
8065     else
8066         ##STEPMAKE_WARN(cannot find . )
8067         false
8068     fi
8069
8070     if test $? -ne 0; then
8071
8072     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
8073
8074         if test "REQUIRED" = "REQUIRED"; then
8075             command="echo ERROR: $guile_config not found"
8076             # abort configure process here?
8077         else
8078             command="- echo $guile_config not found"
8079         fi
8080         eval "GUILE_CONFIG"='$command'
8081         false
8082     else
8083         true
8084     fi
8085
8086     if test $? -ne 0; then
8087
8088     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\"
8089
8090     fi
8091
8092
8093     r="`eval echo '$'"GUILE_CONFIG"`"
8094     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8095         true
8096     else
8097         ##STEPMAKE_WARN(cannot find . )
8098         false
8099     fi
8100
8101     # urg.  should test functionality rather than version.
8102     if test $? -eq 0 -a -n "1.8.0"; then
8103
8104     r="`eval echo '$'"GUILE_CONFIG"`"
8105     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8106 $as_echo_n "checking $r version... " >&6; }
8107     exe=`
8108     ## which doesn't work in ash, if /usr/bin/which isn't installed
8109     ## type -p doesn't work in ash
8110     ## command -v doesn't work in zsh
8111     ## command -v "$r" 2>&1
8112     ## this test should work in ash, bash, pdksh (ksh), zsh
8113     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8114 `
8115     if test -n ""; then
8116         ver=""
8117     else
8118         ver=`
8119     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8120     ##
8121     ## ARG.
8122     ## Workaround for broken Debian gcc version string:
8123     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8124     ##
8125     ## -V: Workaround for python
8126
8127     #dnl
8128
8129     ## Assume and hunt for dotted version multiplet.
8130     ## use eval trickery, because we cannot use multi-level $() instead of ``
8131     ## for compatibility reasons.
8132
8133     ## grab the first version number in  --version output.
8134     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
8135         | head -n 1 \
8136         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
8137
8138     if test -z "$_ver"; then
8139         ## If empty, try date [fontforge]
8140         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8141             | head -n 1 \
8142             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8143     fi
8144     echo "$_ver"
8145     #dnl
8146 `
8147     fi
8148     num=`
8149     echo "$ver" | awk -F. '
8150     {
8151       if ($3) {three = $3}
8152       else {three = 0}
8153     }
8154     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8155 `
8156     req=`
8157     echo "1.8.0" | awk -F. '
8158     {
8159       if ($3) {three = $3}
8160       else {three = 0}
8161     }
8162     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8163 `
8164     { $as_echo "$as_me:$LINENO: result: $ver" >&5
8165 $as_echo "$ver" >&6; }
8166     if test "$num" -lt "$req"; then
8167
8168     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.0 (installed: $ver)"\"`\"
8169
8170     fi
8171     vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
8172     eval `echo $vervar=$num`
8173 ##    AC_SUBST(`eval echo $vervar`)
8174
8175     fi
8176
8177
8178
8179     guile_version="$ver"
8180     #dnl
8181     GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8182     GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8183     GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8184     #dnl
8185
8186     exe=`
8187     ## which doesn't work in ash, if /usr/bin/which isn't installed
8188     ## type -p doesn't work in ash
8189     ## command -v doesn't work in zsh
8190     ## command -v "$guile_config" 2>&1
8191     ## this test should work in ash, bash, pdksh (ksh), zsh
8192     type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8193 `
8194     if test -x $exe; then
8195         { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8196 $as_echo_n "checking guile compile flags... " >&6; }
8197         GUILE_CFLAGS="`$guile_config compile`"
8198         { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8199 $as_echo "$GUILE_CFLAGS" >&6; }
8200         { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8201 $as_echo_n "checking guile link flags... " >&6; }
8202         GUILE_LDFLAGS="`$guile_config link`"
8203         { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8204 $as_echo "$GUILE_LDFLAGS" >&6; }
8205     fi
8206
8207
8208
8209     save_CPPFLAGS="$CPPFLAGS"
8210     save_LIBS="$LIBS"
8211     CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8212     LIBS="$GUILE_LDFLAGS $LIBS"
8213
8214 for ac_header in libguile.h
8215 do
8216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8218   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 $as_echo_n "checking for $ac_header... " >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221   $as_echo_n "(cached) " >&6
8222 fi
8223 ac_res=`eval 'as_val=${'$as_ac_Header'}
8224                  $as_echo "$as_val"'`
8225                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8226 $as_echo "$ac_res" >&6; }
8227 else
8228   # Is the header compilable?
8229 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8230 $as_echo_n "checking $ac_header usability... " >&6; }
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 $ac_includes_default
8238 #include <$ac_header>
8239 _ACEOF
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8247 $as_echo "$ac_try_echo") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } && {
8255          test -z "$ac_c_werror_flag" ||
8256          test ! -s conftest.err
8257        } && test -s conftest.$ac_objext; then
8258   ac_header_compiler=yes
8259 else
8260   $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263         ac_header_compiler=no
8264 fi
8265
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 $as_echo "$ac_header_compiler" >&6; }
8269
8270 # Is the header present?
8271 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8272 $as_echo_n "checking $ac_header presence... " >&6; }
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 #include <$ac_header>
8280 _ACEOF
8281 if { (ac_try="$ac_cpp conftest.$ac_ext"
8282 case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8287 $as_echo "$ac_try_echo") >&5
8288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8289   ac_status=$?
8290   grep -v '^ *+' conftest.er1 >conftest.err
8291   rm -f conftest.er1
8292   cat conftest.err >&5
8293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } >/dev/null && {
8295          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8296          test ! -s conftest.err
8297        }; then
8298   ac_header_preproc=yes
8299 else
8300   $as_echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303   ac_header_preproc=no
8304 fi
8305
8306 rm -f conftest.err conftest.$ac_ext
8307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8308 $as_echo "$ac_header_preproc" >&6; }
8309
8310 # So?  What about this header?
8311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8312   yes:no: )
8313     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8314 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8315     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8316 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8317     ac_header_preproc=yes
8318     ;;
8319   no:yes:* )
8320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8321 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8323 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8325 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8327 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8331 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8332
8333     ;;
8334 esac
8335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8336 $as_echo_n "checking for $ac_header... " >&6; }
8337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8338   $as_echo_n "(cached) " >&6
8339 else
8340   eval "$as_ac_Header=\$ac_header_preproc"
8341 fi
8342 ac_res=`eval 'as_val=${'$as_ac_Header'}
8343                  $as_echo "$as_val"'`
8344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8345 $as_echo "$ac_res" >&6; }
8346
8347 fi
8348 as_val=`eval 'as_val=${'$as_ac_Header'}
8349                  $as_echo "$as_val"'`
8350    if test "x$as_val" = x""yes; then
8351   cat >>confdefs.h <<_ACEOF
8352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8353 _ACEOF
8354
8355 fi
8356
8357 done
8358
8359
8360 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8361 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8362 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8363   $as_echo_n "(cached) " >&6
8364 else
8365   ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-lguile  $LIBS"
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373
8374 /* Override any GCC internal prototype to avoid an error.
8375    Use char because int might match the return type of a GCC
8376    builtin and then its argument prototype would still apply.  */
8377 #ifdef __cplusplus
8378 extern "C"
8379 #endif
8380 char scm_boot_guile ();
8381 int
8382 main ()
8383 {
8384 return scm_boot_guile ();
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396 $as_echo "$ac_try_echo") >&5
8397   (eval "$ac_link") 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } && {
8404          test -z "$ac_c_werror_flag" ||
8405          test ! -s conftest.err
8406        } && test -s conftest$ac_exeext && {
8407          test "$cross_compiling" = yes ||
8408          $as_test_x conftest$ac_exeext
8409        }; then
8410   ac_cv_lib_guile_scm_boot_guile=yes
8411 else
8412   $as_echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_cv_lib_guile_scm_boot_guile=no
8416 fi
8417
8418 rm -rf conftest.dSYM
8419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8420       conftest$ac_exeext conftest.$ac_ext
8421 LIBS=$ac_check_lib_save_LIBS
8422 fi
8423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8424 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8425 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8426   cat >>confdefs.h <<_ACEOF
8427 #define HAVE_LIBGUILE 1
8428 _ACEOF
8429
8430   LIBS="-lguile $LIBS"
8431
8432 fi
8433
8434
8435 for ac_func in scm_boot_guile
8436 do
8437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8439 $as_echo_n "checking for $ac_func... " >&6; }
8440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8441   $as_echo_n "(cached) " >&6
8442 else
8443   cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8451 #define $ac_func innocuous_$ac_func
8452
8453 /* System header to define __stub macros and hopefully few prototypes,
8454     which can conflict with char $ac_func (); below.
8455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456     <limits.h> exists even on freestanding compilers.  */
8457
8458 #ifdef __STDC__
8459 # include <limits.h>
8460 #else
8461 # include <assert.h>
8462 #endif
8463
8464 #undef $ac_func
8465
8466 /* Override any GCC internal prototype to avoid an error.
8467    Use char because int might match the return type of a GCC
8468    builtin and then its argument prototype would still apply.  */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 char $ac_func ();
8473 /* The GNU C library defines this for functions which it implements
8474     to always fail with ENOSYS.  Some functions are actually named
8475     something starting with __ and the normal name is an alias.  */
8476 #if defined __stub_$ac_func || defined __stub___$ac_func
8477 choke me
8478 #endif
8479
8480 int
8481 main ()
8482 {
8483 return $ac_func ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8490 case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496   (eval "$ac_link") 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } && {
8503          test -z "$ac_c_werror_flag" ||
8504          test ! -s conftest.err
8505        } && test -s conftest$ac_exeext && {
8506          test "$cross_compiling" = yes ||
8507          $as_test_x conftest$ac_exeext
8508        }; then
8509   eval "$as_ac_var=yes"
8510 else
8511   $as_echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514         eval "$as_ac_var=no"
8515 fi
8516
8517 rm -rf conftest.dSYM
8518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519       conftest$ac_exeext conftest.$ac_ext
8520 fi
8521 ac_res=`eval 'as_val=${'$as_ac_var'}
8522                  $as_echo "$as_val"'`
8523                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8524 $as_echo "$ac_res" >&6; }
8525 as_val=`eval 'as_val=${'$as_ac_var'}
8526                  $as_echo "$as_val"'`
8527    if test "x$as_val" = x""yes; then
8528   cat >>confdefs.h <<_ACEOF
8529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8530 _ACEOF
8531
8532 else
8533   libguile_b=no
8534 fi
8535 done
8536
8537     if test "$libguile_b" = "no"; then
8538             warn='libguile (libguile-dev, guile-devel or guile-dev
8539    package).'
8540
8541     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8542
8543     fi
8544     CPPFLAGS="$save_CPPFLAGS"
8545     LIBS="$save_LIBS"
8546     cat >>confdefs.h <<_ACEOF
8547 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8548 _ACEOF
8549
8550     cat >>confdefs.h <<_ACEOF
8551 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8552 _ACEOF
8553
8554     cat >>confdefs.h <<_ACEOF
8555 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8556 _ACEOF
8557
8558
8559
8560
8561 ## check rational bugfix.
8562 save_CPPFLAGS="$CPPFLAGS"
8563 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8564 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
8565 $as_echo_n "checking GUILE rational bugfix... " >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 #include <libguile.h>
8573 #ifdef SCM_FRACTION_REDUCED_BIT
8574 #error
8575 #endif
8576
8577 _ACEOF
8578 if { (ac_try="$ac_cpp conftest.$ac_ext"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8584 $as_echo "$ac_try_echo") >&5
8585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } >/dev/null && {
8592          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8593          test ! -s conftest.err
8594        }; then
8595   { $as_echo "$as_me:$LINENO: result: ok" >&5
8596 $as_echo "ok" >&6; }
8597 else
8598   $as_echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601   REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
8602 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
8603 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
8604 fi
8605
8606 rm -f conftest.err conftest.$ac_ext
8607 CPPFLAGS="$save_CPPFLAGS"
8608
8609
8610
8611
8612 # Check whether --with-python-include was given.
8613 if test "${with_python_include+set}" = set; then
8614   withval=$with_python_include;
8615             if test "$withval" = "yes" -o "$withval" = "no"; then
8616                 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
8617 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
8618             else
8619                 PYTHON_CFLAGS="-I${withval}"
8620             fi
8621
8622 fi
8623
8624
8625
8626 # Check whether --with-python-lib was given.
8627 if test "${with_python_lib+set}" = set; then
8628   withval=$with_python_lib;
8629             if test "$withval" = "yes" -o "$withval" = "no"; then
8630                 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
8631 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
8632             else
8633                 LDFLAGS="$LDFLAGS -l${withval}"
8634             fi
8635
8636 fi
8637
8638
8639     for ac_prog in python-config
8640 do
8641   # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
8646   $as_echo_n "(cached) " >&6
8647 else
8648   if test -n "$PYTHON_CONFIG"; then
8649   ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654   IFS=$as_save_IFS
8655   test -z "$as_dir" && as_dir=.
8656   for ac_exec_ext in '' $ac_executable_extensions; do
8657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658     ac_cv_prog_PYTHON_CONFIG="$ac_prog"
8659     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8660     break 2
8661   fi
8662 done
8663 done
8664 IFS=$as_save_IFS
8665
8666 fi
8667 fi
8668 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
8669 if test -n "$PYTHON_CONFIG"; then
8670   { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
8671 $as_echo "$PYTHON_CONFIG" >&6; }
8672 else
8673   { $as_echo "$as_me:$LINENO: result: no" >&5
8674 $as_echo "no" >&6; }
8675 fi
8676
8677
8678   test -n "$PYTHON_CONFIG" && break
8679 done
8680 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
8681
8682
8683     if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
8684         # Clean out junk: http://bugs.python.org/issue3290
8685         # Python headers may need some -f* flags, leave them in.
8686         PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/ -\(W\|D\|O\|m\)\(\w\|-\|=\|,\)\+//g'`
8687         PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
8688     fi
8689
8690     if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
8691         #dnl
8692         # alternatively, for python >= 2.0
8693         # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
8694         PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
8695         PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
8696         #dnl
8697     fi
8698
8699     if test -z "$PYTHON_HEADER"; then
8700         CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
8701
8702 for ac_header in Python.h
8703 do
8704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8706   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8707 $as_echo_n "checking for $ac_header... " >&6; }
8708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8709   $as_echo_n "(cached) " >&6
8710 fi
8711 ac_res=`eval 'as_val=${'$as_ac_Header'}
8712                  $as_echo "$as_val"'`
8713                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8714 $as_echo "$ac_res" >&6; }
8715 else
8716   # Is the header compilable?
8717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8718 $as_echo_n "checking $ac_header usability... " >&6; }
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 $ac_includes_default
8726 #include <$ac_header>
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8730 case "(($ac_try" in
8731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732   *) ac_try_echo=$ac_try;;
8733 esac
8734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8735 $as_echo "$ac_try_echo") >&5
8736   (eval "$ac_compile") 2>conftest.er1
8737   ac_status=$?
8738   grep -v '^ *+' conftest.er1 >conftest.err
8739   rm -f conftest.er1
8740   cat conftest.err >&5
8741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); } && {
8743          test -z "$ac_c_werror_flag" ||
8744          test ! -s conftest.err
8745        } && test -s conftest.$ac_objext; then
8746   ac_header_compiler=yes
8747 else
8748   $as_echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751         ac_header_compiler=no
8752 fi
8753
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8756 $as_echo "$ac_header_compiler" >&6; }
8757
8758 # Is the header present?
8759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8760 $as_echo_n "checking $ac_header presence... " >&6; }
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 #include <$ac_header>
8768 _ACEOF
8769 if { (ac_try="$ac_cpp conftest.$ac_ext"
8770 case "(($ac_try" in
8771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772   *) ac_try_echo=$ac_try;;
8773 esac
8774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8775 $as_echo "$ac_try_echo") >&5
8776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8777   ac_status=$?
8778   grep -v '^ *+' conftest.er1 >conftest.err
8779   rm -f conftest.er1
8780   cat conftest.err >&5
8781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); } >/dev/null && {
8783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8784          test ! -s conftest.err
8785        }; then
8786   ac_header_preproc=yes
8787 else
8788   $as_echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791   ac_header_preproc=no
8792 fi
8793
8794 rm -f conftest.err conftest.$ac_ext
8795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8796 $as_echo "$ac_header_preproc" >&6; }
8797
8798 # So?  What about this header?
8799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8800   yes:no: )
8801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8805     ac_header_preproc=yes
8806     ;;
8807   no:yes:* )
8808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8811 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8815 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8820
8821     ;;
8822 esac
8823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8824 $as_echo_n "checking for $ac_header... " >&6; }
8825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8826   $as_echo_n "(cached) " >&6
8827 else
8828   eval "$as_ac_Header=\$ac_header_preproc"
8829 fi
8830 ac_res=`eval 'as_val=${'$as_ac_Header'}
8831                  $as_echo "$as_val"'`
8832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8833 $as_echo "$ac_res" >&6; }
8834
8835 fi
8836 as_val=`eval 'as_val=${'$as_ac_Header'}
8837                  $as_echo "$as_val"'`
8838    if test "x$as_val" = x""yes; then
8839   cat >>confdefs.h <<_ACEOF
8840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841 _ACEOF
8842  PYTHON_HEADER=yes
8843 fi
8844
8845 done
8846
8847     fi
8848
8849     if test -z "$PYTHON_HEADER"; then
8850         warn="Python.h (python-devel, python-dev or libpython-dev package)"
8851
8852     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8853
8854     fi
8855
8856
8857
8858     for ac_prog in gs
8859 do
8860   # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy $ac_prog; ac_word=$2
8862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
8865   $as_echo_n "(cached) " >&6
8866 else
8867   if test -n "$GHOSTSCRIPT"; then
8868   ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873   IFS=$as_save_IFS
8874   test -z "$as_dir" && as_dir=.
8875   for ac_exec_ext in '' $ac_executable_extensions; do
8876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877     ac_cv_prog_GHOSTSCRIPT="$ac_prog"
8878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8879     break 2
8880   fi
8881 done
8882 done
8883 IFS=$as_save_IFS
8884
8885 fi
8886 fi
8887 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
8888 if test -n "$GHOSTSCRIPT"; then
8889   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8890 $as_echo "$GHOSTSCRIPT" >&6; }
8891 else
8892   { $as_echo "$as_me:$LINENO: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897   test -n "$GHOSTSCRIPT" && break
8898 done
8899 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
8900
8901
8902
8903     r="`eval echo '$'"GHOSTSCRIPT"`"
8904     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
8905         true
8906     else
8907         ##STEPMAKE_WARN(cannot find . )
8908         false
8909     fi
8910
8911     if test $? -ne 0; then
8912
8913     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
8914
8915         if test "OPTIONAL" = "REQUIRED"; then
8916             command="echo ERROR: gs not found"
8917             # abort configure process here?
8918         else
8919             command="- echo gs not found"
8920         fi
8921         eval "GHOSTSCRIPT"='$command'
8922         false
8923     else
8924         true
8925     fi
8926
8927     if test $? -eq 0; then
8928         # Extract the first word of "gs", so it can be a program name with args.
8929 set dummy gs; ac_word=$2
8930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
8933   $as_echo_n "(cached) " >&6
8934 else
8935   case $GHOSTSCRIPT in
8936   [\\/]* | ?:[\\/]*)
8937   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
8938   ;;
8939   *)
8940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8942 do
8943   IFS=$as_save_IFS
8944   test -z "$as_dir" && as_dir=.
8945   for ac_exec_ext in '' $ac_executable_extensions; do
8946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947     ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
8948     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8949     break 2
8950   fi
8951 done
8952 done
8953 IFS=$as_save_IFS
8954
8955   ;;
8956 esac
8957 fi
8958 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
8959 if test -n "$GHOSTSCRIPT"; then
8960   { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8961 $as_echo "$GHOSTSCRIPT" >&6; }
8962 else
8963   { $as_echo "$as_me:$LINENO: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966
8967
8968         if test -n "8.15"; then
8969
8970     r="`eval echo '$'"GHOSTSCRIPT"`"
8971     { $as_echo "$as_me:$LINENO: checking $r version" >&5
8972 $as_echo_n "checking $r version... " >&6; }
8973     exe=`
8974     ## which doesn't work in ash, if /usr/bin/which isn't installed
8975     ## type -p doesn't work in ash
8976     ## command -v doesn't work in zsh
8977     ## command -v "$r" 2>&1
8978     ## this test should work in ash, bash, pdksh (ksh), zsh
8979     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8980 `
8981     if test -n ""; then
8982         ver=""
8983     else
8984         ver=`
8985     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8986     ##
8987     ## ARG.
8988     ## Workaround for broken Debian gcc version string:
8989     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8990     ##
8991     ## -V: Workaround for python
8992
8993     #dnl
8994
8995     ## Assume and hunt for dotted version multiplet.
8996     ## use eval trickery, because we cannot use multi-level $() instead of ``
8997     ## for compatibility reasons.
8998
8999     ## grab the first version number in  --version output.
9000     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
9001         | head -n 1 \
9002         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
9003
9004     if test -z "$_ver"; then
9005         ## If empty, try date [fontforge]
9006         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9007             | head -n 1 \
9008             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9009     fi
9010     echo "$_ver"
9011     #dnl
9012 `
9013     fi
9014     num=`
9015     echo "$ver" | awk -F. '
9016     {
9017       if ($3) {three = $3}
9018       else {three = 0}
9019     }
9020     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9021 `
9022     req=`
9023     echo "8.15" | awk -F. '
9024     {
9025       if ($3) {three = $3}
9026       else {three = 0}
9027     }
9028     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9029 `
9030     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9031 $as_echo "$ver" >&6; }
9032     if test "$num" -lt "$req"; then
9033
9034     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.15 (installed: $ver)"\"`\"
9035
9036     fi
9037     vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9038     eval `echo $vervar=$num`
9039 ##    AC_SUBST(`eval echo $vervar`)
9040
9041         fi
9042     fi
9043
9044
9045
9046     for ac_prog in fontforge
9047 do
9048   # Extract the first word of "$ac_prog", so it can be a program name with args.
9049 set dummy $ac_prog; ac_word=$2
9050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9053   $as_echo_n "(cached) " >&6
9054 else
9055   if test -n "$FONTFORGE"; then
9056   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9060 do
9061   IFS=$as_save_IFS
9062   test -z "$as_dir" && as_dir=.
9063   for ac_exec_ext in '' $ac_executable_extensions; do
9064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9065     ac_cv_prog_FONTFORGE="$ac_prog"
9066     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067     break 2
9068   fi
9069 done
9070 done
9071 IFS=$as_save_IFS
9072
9073 fi
9074 fi
9075 FONTFORGE=$ac_cv_prog_FONTFORGE
9076 if test -n "$FONTFORGE"; then
9077   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9078 $as_echo "$FONTFORGE" >&6; }
9079 else
9080   { $as_echo "$as_me:$LINENO: result: no" >&5
9081 $as_echo "no" >&6; }
9082 fi
9083
9084
9085   test -n "$FONTFORGE" && break
9086 done
9087 test -n "$FONTFORGE" || FONTFORGE="no"
9088
9089
9090
9091     r="`eval echo '$'"FONTFORGE"`"
9092     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9093         true
9094     else
9095         ##STEPMAKE_WARN(cannot find . )
9096         false
9097     fi
9098
9099     if test $? -ne 0; then
9100
9101     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9102
9103         if test "REQUIRED" = "REQUIRED"; then
9104             command="echo ERROR: fontforge not found"
9105             # abort configure process here?
9106         else
9107             command="- echo fontforge not found"
9108         fi
9109         eval "FONTFORGE"='$command'
9110         false
9111     else
9112         true
9113     fi
9114
9115     if test $? -eq 0; then
9116         # Extract the first word of "fontforge", so it can be a program name with args.
9117 set dummy fontforge; ac_word=$2
9118 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9121   $as_echo_n "(cached) " >&6
9122 else
9123   case $FONTFORGE in
9124   [\\/]* | ?:[\\/]*)
9125   ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9126   ;;
9127   *)
9128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9130 do
9131   IFS=$as_save_IFS
9132   test -z "$as_dir" && as_dir=.
9133   for ac_exec_ext in '' $ac_executable_extensions; do
9134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135     ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9136     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9137     break 2
9138   fi
9139 done
9140 done
9141 IFS=$as_save_IFS
9142
9143   ;;
9144 esac
9145 fi
9146 FONTFORGE=$ac_cv_path_FONTFORGE
9147 if test -n "$FONTFORGE"; then
9148   { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9149 $as_echo "$FONTFORGE" >&6; }
9150 else
9151   { $as_echo "$as_me:$LINENO: result: no" >&5
9152 $as_echo "no" >&6; }
9153 fi
9154
9155
9156         if test -n "20050624"; then
9157
9158     r="`eval echo '$'"FONTFORGE"`"
9159     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9160 $as_echo_n "checking $r version... " >&6; }
9161     exe=`
9162     ## which doesn't work in ash, if /usr/bin/which isn't installed
9163     ## type -p doesn't work in ash
9164     ## command -v doesn't work in zsh
9165     ## command -v "$r" 2>&1
9166     ## this test should work in ash, bash, pdksh (ksh), zsh
9167     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9168 `
9169     if test -n ""; then
9170         ver=""
9171     else
9172         ver=`
9173     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9174     ##
9175     ## ARG.
9176     ## Workaround for broken Debian gcc version string:
9177     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9178     ##
9179     ## -V: Workaround for python
9180
9181     #dnl
9182
9183     ## Assume and hunt for dotted version multiplet.
9184     ## use eval trickery, because we cannot use multi-level $() instead of ``
9185     ## for compatibility reasons.
9186
9187     ## grab the first version number in  --version output.
9188     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
9189         | head -n 1 \
9190         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
9191
9192     if test -z "$_ver"; then
9193         ## If empty, try date [fontforge]
9194         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9195             | head -n 1 \
9196             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9197     fi
9198     echo "$_ver"
9199     #dnl
9200 `
9201     fi
9202     num=`
9203     echo "$ver" | awk -F. '
9204     {
9205       if ($3) {three = $3}
9206       else {three = 0}
9207     }
9208     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9209 `
9210     req=`
9211     echo "20050624" | awk -F. '
9212     {
9213       if ($3) {three = $3}
9214       else {three = 0}
9215     }
9216     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9217 `
9218     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9219 $as_echo "$ver" >&6; }
9220     if test "$num" -lt "$req"; then
9221
9222     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20050624 (installed: $ver)"\"`\"
9223
9224     fi
9225     vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9226     eval `echo $vervar=$num`
9227 ##    AC_SUBST(`eval echo $vervar`)
9228
9229         fi
9230     fi
9231
9232
9233
9234     for ac_prog in t1asm
9235 do
9236   # Extract the first word of "$ac_prog", so it can be a program name with args.
9237 set dummy $ac_prog; ac_word=$2
9238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if test "${ac_cv_prog_T1ASM+set}" = set; then
9241   $as_echo_n "(cached) " >&6
9242 else
9243   if test -n "$T1ASM"; then
9244   ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251   for ac_exec_ext in '' $ac_executable_extensions; do
9252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9253     ac_cv_prog_T1ASM="$ac_prog"
9254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258 done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 T1ASM=$ac_cv_prog_T1ASM
9264 if test -n "$T1ASM"; then
9265   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9266 $as_echo "$T1ASM" >&6; }
9267 else
9268   { $as_echo "$as_me:$LINENO: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273   test -n "$T1ASM" && break
9274 done
9275 test -n "$T1ASM" || T1ASM="no"
9276
9277
9278
9279     r="`eval echo '$'"T1ASM"`"
9280     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9281         true
9282     else
9283         ##STEPMAKE_WARN(cannot find . )
9284         false
9285     fi
9286
9287     if test $? -ne 0; then
9288
9289     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9290
9291         if test "REQUIRED" = "REQUIRED"; then
9292             command="echo ERROR: t1asm not found"
9293             # abort configure process here?
9294         else
9295             command="- echo t1asm not found"
9296         fi
9297         eval "T1ASM"='$command'
9298         false
9299     else
9300         true
9301     fi
9302
9303     if test $? -eq 0; then
9304         # Extract the first word of "t1asm", so it can be a program name with args.
9305 set dummy t1asm; ac_word=$2
9306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if test "${ac_cv_path_T1ASM+set}" = set; then
9309   $as_echo_n "(cached) " >&6
9310 else
9311   case $T1ASM in
9312   [\\/]* | ?:[\\/]*)
9313   ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9314   ;;
9315   *)
9316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319   IFS=$as_save_IFS
9320   test -z "$as_dir" && as_dir=.
9321   for ac_exec_ext in '' $ac_executable_extensions; do
9322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9323     ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9325     break 2
9326   fi
9327 done
9328 done
9329 IFS=$as_save_IFS
9330
9331   ;;
9332 esac
9333 fi
9334 T1ASM=$ac_cv_path_T1ASM
9335 if test -n "$T1ASM"; then
9336   { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9337 $as_echo "$T1ASM" >&6; }
9338 else
9339   { $as_echo "$as_me:$LINENO: result: no" >&5
9340 $as_echo "no" >&6; }
9341 fi
9342
9343
9344         if test -n ""; then
9345
9346     r="`eval echo '$'"T1ASM"`"
9347     { $as_echo "$as_me:$LINENO: checking $r version" >&5
9348 $as_echo_n "checking $r version... " >&6; }
9349     exe=`
9350     ## which doesn't work in ash, if /usr/bin/which isn't installed
9351     ## type -p doesn't work in ash
9352     ## command -v doesn't work in zsh
9353     ## command -v "$r" 2>&1
9354     ## this test should work in ash, bash, pdksh (ksh), zsh
9355     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9356 `
9357     if test -n ""; then
9358         ver=""
9359     else
9360         ver=`
9361     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9362     ##
9363     ## ARG.
9364     ## Workaround for broken Debian gcc version string:
9365     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9366     ##
9367     ## -V: Workaround for python
9368
9369     #dnl
9370
9371     ## Assume and hunt for dotted version multiplet.
9372     ## use eval trickery, because we cannot use multi-level $() instead of ``
9373     ## for compatibility reasons.
9374
9375     ## grab the first version number in  --version output.
9376     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
9377         | head -n 1 \
9378         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
9379
9380     if test -z "$_ver"; then
9381         ## If empty, try date [fontforge]
9382         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9383             | head -n 1 \
9384             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9385     fi
9386     echo "$_ver"
9387     #dnl
9388 `
9389     fi
9390     num=`
9391     echo "$ver" | awk -F. '
9392     {
9393       if ($3) {three = $3}
9394       else {three = 0}
9395     }
9396     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9397 `
9398     req=`
9399     echo "" | awk -F. '
9400     {
9401       if ($3) {three = $3}
9402       else {three = 0}
9403     }
9404     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9405 `
9406     { $as_echo "$as_me:$LINENO: result: $ver" >&5
9407 $as_echo "$ver" >&6; }
9408     if test "$num" -lt "$req"; then
9409
9410     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >=  (installed: $ver)"\"`\"
9411
9412     fi
9413     vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
9414     eval `echo $vervar=$num`
9415 ##    AC_SUBST(`eval echo $vervar`)
9416
9417         fi
9418     fi
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
9429 do
9430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 $as_echo_n "checking for $ac_header... " >&6; }
9434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435   $as_echo_n "(cached) " >&6
9436 fi
9437 ac_res=`eval 'as_val=${'$as_ac_Header'}
9438                  $as_echo "$as_val"'`
9439                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9440 $as_echo "$ac_res" >&6; }
9441 else
9442   # Is the header compilable?
9443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9444 $as_echo_n "checking $ac_header usability... " >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h.  */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h.  */
9451 $ac_includes_default
9452 #include <$ac_header>
9453 _ACEOF
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9456 case "(($ac_try" in
9457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458   *) ac_try_echo=$ac_try;;
9459 esac
9460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9461 $as_echo "$ac_try_echo") >&5
9462   (eval "$ac_compile") 2>conftest.er1
9463   ac_status=$?
9464   grep -v '^ *+' conftest.er1 >conftest.err
9465   rm -f conftest.er1
9466   cat conftest.err >&5
9467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } && {
9469          test -z "$ac_c_werror_flag" ||
9470          test ! -s conftest.err
9471        } && test -s conftest.$ac_objext; then
9472   ac_header_compiler=yes
9473 else
9474   $as_echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477         ac_header_compiler=no
9478 fi
9479
9480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9482 $as_echo "$ac_header_compiler" >&6; }
9483
9484 # Is the header present?
9485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9486 $as_echo_n "checking $ac_header presence... " >&6; }
9487 cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 #include <$ac_header>
9494 _ACEOF
9495 if { (ac_try="$ac_cpp conftest.$ac_ext"
9496 case "(($ac_try" in
9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498   *) ac_try_echo=$ac_try;;
9499 esac
9500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9501 $as_echo "$ac_try_echo") >&5
9502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9503   ac_status=$?
9504   grep -v '^ *+' conftest.er1 >conftest.err
9505   rm -f conftest.er1
9506   cat conftest.err >&5
9507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } >/dev/null && {
9509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9510          test ! -s conftest.err
9511        }; then
9512   ac_header_preproc=yes
9513 else
9514   $as_echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517   ac_header_preproc=no
9518 fi
9519
9520 rm -f conftest.err conftest.$ac_ext
9521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522 $as_echo "$ac_header_preproc" >&6; }
9523
9524 # So?  What about this header?
9525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9526   yes:no: )
9527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9531     ac_header_preproc=yes
9532     ;;
9533   no:yes:* )
9534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9537 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9541 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9546
9547     ;;
9548 esac
9549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 $as_echo_n "checking for $ac_header... " >&6; }
9551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9552   $as_echo_n "(cached) " >&6
9553 else
9554   eval "$as_ac_Header=\$ac_header_preproc"
9555 fi
9556 ac_res=`eval 'as_val=${'$as_ac_Header'}
9557                  $as_echo "$as_val"'`
9558                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9559 $as_echo "$ac_res" >&6; }
9560
9561 fi
9562 as_val=`eval 'as_val=${'$as_ac_Header'}
9563                  $as_echo "$as_val"'`
9564    if test "x$as_val" = x""yes; then
9565   cat >>confdefs.h <<_ACEOF
9566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9567 _ACEOF
9568
9569 fi
9570
9571 done
9572
9573 ac_ext=cpp
9574 ac_cpp='$CXXCPP $CPPFLAGS'
9575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9578
9579
9580
9581 for ac_header in sstream boost/lambda/lambda.hpp
9582 do
9583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9585   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9586 $as_echo_n "checking for $ac_header... " >&6; }
9587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9588   $as_echo_n "(cached) " >&6
9589 fi
9590 ac_res=`eval 'as_val=${'$as_ac_Header'}
9591                  $as_echo "$as_val"'`
9592                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9593 $as_echo "$ac_res" >&6; }
9594 else
9595   # Is the header compilable?
9596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9597 $as_echo_n "checking $ac_header usability... " >&6; }
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 $ac_includes_default
9605 #include <$ac_header>
9606 _ACEOF
9607 rm -f conftest.$ac_objext
9608 if { (ac_try="$ac_compile"
9609 case "(($ac_try" in
9610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611   *) ac_try_echo=$ac_try;;
9612 esac
9613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9614 $as_echo "$ac_try_echo") >&5
9615   (eval "$ac_compile") 2>conftest.er1
9616   ac_status=$?
9617   grep -v '^ *+' conftest.er1 >conftest.err
9618   rm -f conftest.er1
9619   cat conftest.err >&5
9620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); } && {
9622          test -z "$ac_cxx_werror_flag" ||
9623          test ! -s conftest.err
9624        } && test -s conftest.$ac_objext; then
9625   ac_header_compiler=yes
9626 else
9627   $as_echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630         ac_header_compiler=no
9631 fi
9632
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9635 $as_echo "$ac_header_compiler" >&6; }
9636
9637 # Is the header present?
9638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9639 $as_echo_n "checking $ac_header presence... " >&6; }
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646 #include <$ac_header>
9647 _ACEOF
9648 if { (ac_try="$ac_cpp conftest.$ac_ext"
9649 case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9654 $as_echo "$ac_try_echo") >&5
9655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9656   ac_status=$?
9657   grep -v '^ *+' conftest.er1 >conftest.err
9658   rm -f conftest.er1
9659   cat conftest.err >&5
9660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } >/dev/null && {
9662          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9663          test ! -s conftest.err
9664        }; then
9665   ac_header_preproc=yes
9666 else
9667   $as_echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670   ac_header_preproc=no
9671 fi
9672
9673 rm -f conftest.err conftest.$ac_ext
9674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9675 $as_echo "$ac_header_preproc" >&6; }
9676
9677 # So?  What about this header?
9678 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9679   yes:no: )
9680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9684     ac_header_preproc=yes
9685     ;;
9686   no:yes:* )
9687     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9690 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9694 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9699
9700     ;;
9701 esac
9702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9703 $as_echo_n "checking for $ac_header... " >&6; }
9704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9705   $as_echo_n "(cached) " >&6
9706 else
9707   eval "$as_ac_Header=\$ac_header_preproc"
9708 fi
9709 ac_res=`eval 'as_val=${'$as_ac_Header'}
9710                  $as_echo "$as_val"'`
9711                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9712 $as_echo "$ac_res" >&6; }
9713
9714 fi
9715 as_val=`eval 'as_val=${'$as_ac_Header'}
9716                  $as_echo "$as_val"'`
9717    if test "x$as_val" = x""yes; then
9718   cat >>confdefs.h <<_ACEOF
9719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9720 _ACEOF
9721
9722 fi
9723
9724 done
9725
9726 ac_ext=c
9727 ac_cpp='$CPP $CPPFLAGS'
9728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9731
9732 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9733 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9734 if test "${ac_cv_header_stat_broken+set}" = set; then
9735   $as_echo_n "(cached) " >&6
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 #include <sys/types.h>
9744 #include <sys/stat.h>
9745
9746 #if defined S_ISBLK && defined S_IFDIR
9747 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9748 #endif
9749
9750 #if defined S_ISBLK && defined S_IFCHR
9751 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9752 #endif
9753
9754 #if defined S_ISLNK && defined S_IFREG
9755 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9756 #endif
9757
9758 #if defined S_ISSOCK && defined S_IFREG
9759 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9760 #endif
9761
9762 _ACEOF
9763 rm -f conftest.$ac_objext
9764 if { (ac_try="$ac_compile"
9765 case "(($ac_try" in
9766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767   *) ac_try_echo=$ac_try;;
9768 esac
9769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9770 $as_echo "$ac_try_echo") >&5
9771   (eval "$ac_compile") 2>conftest.er1
9772   ac_status=$?
9773   grep -v '^ *+' conftest.er1 >conftest.err
9774   rm -f conftest.er1
9775   cat conftest.err >&5
9776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); } && {
9778          test -z "$ac_c_werror_flag" ||
9779          test ! -s conftest.err
9780        } && test -s conftest.$ac_objext; then
9781   ac_cv_header_stat_broken=no
9782 else
9783   $as_echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786         ac_cv_header_stat_broken=yes
9787 fi
9788
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 fi
9791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9792 $as_echo "$ac_cv_header_stat_broken" >&6; }
9793 if test $ac_cv_header_stat_broken = yes; then
9794
9795 cat >>confdefs.h <<\_ACEOF
9796 #define STAT_MACROS_BROKEN 1
9797 _ACEOF
9798
9799 fi
9800
9801 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9802 $as_echo_n "checking for working memcmp... " >&6; }
9803 if test "${ac_cv_func_memcmp_working+set}" = set; then
9804   $as_echo_n "(cached) " >&6
9805 else
9806   if test "$cross_compiling" = yes; then
9807   ac_cv_func_memcmp_working=no
9808 else
9809   cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815 $ac_includes_default
9816 int
9817 main ()
9818 {
9819
9820   /* Some versions of memcmp are not 8-bit clean.  */
9821   char c0 = '\100', c1 = '\200', c2 = '\201';
9822   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9823     return 1;
9824
9825   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9826      or more and with at least one buffer not starting on a 4-byte boundary.
9827      William Lewis provided this test program.   */
9828   {
9829     char foo[21];
9830     char bar[21];
9831     int i;
9832     for (i = 0; i < 4; i++)
9833       {
9834         char *a = foo + i;
9835         char *b = bar + i;
9836         strcpy (a, "--------01111111");
9837         strcpy (b, "--------10000000");
9838         if (memcmp (a, b, 16) >= 0)
9839           return 1;
9840       }
9841     return 0;
9842   }
9843
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856   (eval "$ac_link") 2>&5
9857   ac_status=$?
9858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9860   { (case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866   (eval "$ac_try") 2>&5
9867   ac_status=$?
9868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_cv_func_memcmp_working=yes
9871 else
9872   $as_echo "$as_me: program exited with status $ac_status" >&5
9873 $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876 ( exit $ac_status )
9877 ac_cv_func_memcmp_working=no
9878 fi
9879 rm -rf conftest.dSYM
9880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9881 fi
9882
9883
9884 fi
9885 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9886 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9887 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9888   *" memcmp.$ac_objext "* ) ;;
9889   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9890  ;;
9891 esac
9892
9893
9894
9895 for ac_func in vprintf
9896 do
9897 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9899 $as_echo_n "checking for $ac_func... " >&6; }
9900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9901   $as_echo_n "(cached) " >&6
9902 else
9903   cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9911 #define $ac_func innocuous_$ac_func
9912
9913 /* System header to define __stub macros and hopefully few prototypes,
9914     which can conflict with char $ac_func (); below.
9915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916     <limits.h> exists even on freestanding compilers.  */
9917
9918 #ifdef __STDC__
9919 # include <limits.h>
9920 #else
9921 # include <assert.h>
9922 #endif
9923
9924 #undef $ac_func
9925
9926 /* Override any GCC internal prototype to avoid an error.
9927    Use char because int might match the return type of a GCC
9928    builtin and then its argument prototype would still apply.  */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 char $ac_func ();
9933 /* The GNU C library defines this for functions which it implements
9934     to always fail with ENOSYS.  Some functions are actually named
9935     something starting with __ and the normal name is an alias.  */
9936 #if defined __stub_$ac_func || defined __stub___$ac_func
9937 choke me
9938 #endif
9939
9940 int
9941 main ()
9942 {
9943 return $ac_func ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9950 case "(($ac_try" in
9951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952   *) ac_try_echo=$ac_try;;
9953 esac
9954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9955 $as_echo "$ac_try_echo") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } && {
9963          test -z "$ac_c_werror_flag" ||
9964          test ! -s conftest.err
9965        } && test -s conftest$ac_exeext && {
9966          test "$cross_compiling" = yes ||
9967          $as_test_x conftest$ac_exeext
9968        }; then
9969   eval "$as_ac_var=yes"
9970 else
9971   $as_echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974         eval "$as_ac_var=no"
9975 fi
9976
9977 rm -rf conftest.dSYM
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979       conftest$ac_exeext conftest.$ac_ext
9980 fi
9981 ac_res=`eval 'as_val=${'$as_ac_var'}
9982                  $as_echo "$as_val"'`
9983                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9984 $as_echo "$ac_res" >&6; }
9985 as_val=`eval 'as_val=${'$as_ac_var'}
9986                  $as_echo "$as_val"'`
9987    if test "x$as_val" = x""yes; then
9988   cat >>confdefs.h <<_ACEOF
9989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
9993 $as_echo_n "checking for _doprnt... " >&6; }
9994 if test "${ac_cv_func__doprnt+set}" = set; then
9995   $as_echo_n "(cached) " >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10005 #define _doprnt innocuous__doprnt
10006
10007 /* System header to define __stub macros and hopefully few prototypes,
10008     which can conflict with char _doprnt (); below.
10009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010     <limits.h> exists even on freestanding compilers.  */
10011
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10017
10018 #undef _doprnt
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021    Use char because int might match the return type of a GCC
10022    builtin and then its argument prototype would still apply.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char _doprnt ();
10027 /* The GNU C library defines this for functions which it implements
10028     to always fail with ENOSYS.  Some functions are actually named
10029     something starting with __ and the normal name is an alias.  */
10030 #if defined __stub__doprnt || defined __stub____doprnt
10031 choke me
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037 return _doprnt ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10049 $as_echo "$ac_try_echo") >&5
10050   (eval "$ac_link") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && {
10057          test -z "$ac_c_werror_flag" ||
10058          test ! -s conftest.err
10059        } && test -s conftest$ac_exeext && {
10060          test "$cross_compiling" = yes ||
10061          $as_test_x conftest$ac_exeext
10062        }; then
10063   ac_cv_func__doprnt=yes
10064 else
10065   $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         ac_cv_func__doprnt=no
10069 fi
10070
10071 rm -rf conftest.dSYM
10072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10073       conftest$ac_exeext conftest.$ac_ext
10074 fi
10075 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10076 $as_echo "$ac_cv_func__doprnt" >&6; }
10077 if test "x$ac_cv_func__doprnt" = x""yes; then
10078
10079 cat >>confdefs.h <<\_ACEOF
10080 #define HAVE_DOPRNT 1
10081 _ACEOF
10082
10083 fi
10084
10085 fi
10086 done
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099 for ac_func in chroot fopencookie funopen gettext isinf mbrtowc memmem snprintf vsnprintf wcrtomb
10100 do
10101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10103 $as_echo_n "checking for $ac_func... " >&6; }
10104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10105   $as_echo_n "(cached) " >&6
10106 else
10107   cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10115 #define $ac_func innocuous_$ac_func
10116
10117 /* System header to define __stub macros and hopefully few prototypes,
10118     which can conflict with char $ac_func (); below.
10119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120     <limits.h> exists even on freestanding compilers.  */
10121
10122 #ifdef __STDC__
10123 # include <limits.h>
10124 #else
10125 # include <assert.h>
10126 #endif
10127
10128 #undef $ac_func
10129
10130 /* Override any GCC internal prototype to avoid an error.
10131    Use char because int might match the return type of a GCC
10132    builtin and then its argument prototype would still apply.  */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 char $ac_func ();
10137 /* The GNU C library defines this for functions which it implements
10138     to always fail with ENOSYS.  Some functions are actually named
10139     something starting with __ and the normal name is an alias.  */
10140 #if defined __stub_$ac_func || defined __stub___$ac_func
10141 choke me
10142 #endif
10143
10144 int
10145 main ()
10146 {
10147 return $ac_func ();
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160   (eval "$ac_link") 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } && {
10167          test -z "$ac_c_werror_flag" ||
10168          test ! -s conftest.err
10169        } && test -s conftest$ac_exeext && {
10170          test "$cross_compiling" = yes ||
10171          $as_test_x conftest$ac_exeext
10172        }; then
10173   eval "$as_ac_var=yes"
10174 else
10175   $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178         eval "$as_ac_var=no"
10179 fi
10180
10181 rm -rf conftest.dSYM
10182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10183       conftest$ac_exeext conftest.$ac_ext
10184 fi
10185 ac_res=`eval 'as_val=${'$as_ac_var'}
10186                  $as_echo "$as_val"'`
10187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10188 $as_echo "$ac_res" >&6; }
10189 as_val=`eval 'as_val=${'$as_ac_var'}
10190                  $as_echo "$as_val"'`
10191    if test "x$as_val" = x""yes; then
10192   cat >>confdefs.h <<_ACEOF
10193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194 _ACEOF
10195
10196 fi
10197 done
10198
10199
10200 for ac_header in utf8/wchar.h
10201 do
10202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10204   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 $as_echo_n "checking for $ac_header... " >&6; }
10206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10207   $as_echo_n "(cached) " >&6
10208 fi
10209 ac_res=`eval 'as_val=${'$as_ac_Header'}
10210                  $as_echo "$as_val"'`
10211                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10212 $as_echo "$ac_res" >&6; }
10213 else
10214   # Is the header compilable?
10215 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10216 $as_echo_n "checking $ac_header usability... " >&6; }
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h.  */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h.  */
10223 $ac_includes_default
10224 #include <$ac_header>
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (ac_try="$ac_compile"
10228 case "(($ac_try" in
10229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230   *) ac_try_echo=$ac_try;;
10231 esac
10232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10233 $as_echo "$ac_try_echo") >&5
10234   (eval "$ac_compile") 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } && {
10241          test -z "$ac_c_werror_flag" ||
10242          test ! -s conftest.err
10243        } && test -s conftest.$ac_objext; then
10244   ac_header_compiler=yes
10245 else
10246   $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249         ac_header_compiler=no
10250 fi
10251
10252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10254 $as_echo "$ac_header_compiler" >&6; }
10255
10256 # Is the header present?
10257 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10258 $as_echo_n "checking $ac_header presence... " >&6; }
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265 #include <$ac_header>
10266 _ACEOF
10267 if { (ac_try="$ac_cpp conftest.$ac_ext"
10268 case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273 $as_echo "$ac_try_echo") >&5
10274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10275   ac_status=$?
10276   grep -v '^ *+' conftest.er1 >conftest.err
10277   rm -f conftest.er1
10278   cat conftest.err >&5
10279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); } >/dev/null && {
10281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10282          test ! -s conftest.err
10283        }; then
10284   ac_header_preproc=yes
10285 else
10286   $as_echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10288
10289   ac_header_preproc=no
10290 fi
10291
10292 rm -f conftest.err conftest.$ac_ext
10293 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10294 $as_echo "$ac_header_preproc" >&6; }
10295
10296 # So?  What about this header?
10297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10298   yes:no: )
10299     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10300 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10302 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10303     ac_header_preproc=yes
10304     ;;
10305   no:yes:* )
10306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10307 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10309 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10313 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10318
10319     ;;
10320 esac
10321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 $as_echo_n "checking for $ac_header... " >&6; }
10323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10324   $as_echo_n "(cached) " >&6
10325 else
10326   eval "$as_ac_Header=\$ac_header_preproc"
10327 fi
10328 ac_res=`eval 'as_val=${'$as_ac_Header'}
10329                  $as_echo "$as_val"'`
10330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10331 $as_echo "$ac_res" >&6; }
10332
10333 fi
10334 as_val=`eval 'as_val=${'$as_ac_Header'}
10335                  $as_echo "$as_val"'`
10336    if test "x$as_val" = x""yes; then
10337   cat >>confdefs.h <<_ACEOF
10338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10339 _ACEOF
10340  LIBS="$LIBS -lutf8"
10341 fi
10342
10343 done
10344
10345 { $as_echo "$as_me:$LINENO: checking for library containing mbrtowc" >&5
10346 $as_echo_n "checking for library containing mbrtowc... " >&6; }
10347 if test "${ac_cv_search_mbrtowc+set}" = set; then
10348   $as_echo_n "(cached) " >&6
10349 else
10350   ac_func_search_save_LIBS=$LIBS
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357
10358 /* Override any GCC internal prototype to avoid an error.
10359    Use char because int might match the return type of a GCC
10360    builtin and then its argument prototype would still apply.  */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char mbrtowc ();
10365 int
10366 main ()
10367 {
10368 return mbrtowc ();
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 for ac_lib in '' mingwex msvcp60; do
10374   if test -z "$ac_lib"; then
10375     ac_res="none required"
10376   else
10377     ac_res=-l$ac_lib
10378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10379   fi
10380   rm -f conftest.$ac_objext conftest$ac_exeext
10381 if { (ac_try="$ac_link"
10382 case "(($ac_try" in
10383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384   *) ac_try_echo=$ac_try;;
10385 esac
10386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387 $as_echo "$ac_try_echo") >&5
10388   (eval "$ac_link") 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } && {
10395          test -z "$ac_c_werror_flag" ||
10396          test ! -s conftest.err
10397        } && test -s conftest$ac_exeext && {
10398          test "$cross_compiling" = yes ||
10399          $as_test_x conftest$ac_exeext
10400        }; then
10401   ac_cv_search_mbrtowc=$ac_res
10402 else
10403   $as_echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406
10407 fi
10408
10409 rm -rf conftest.dSYM
10410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411       conftest$ac_exeext
10412   if test "${ac_cv_search_mbrtowc+set}" = set; then
10413   break
10414 fi
10415 done
10416 if test "${ac_cv_search_mbrtowc+set}" = set; then
10417   :
10418 else
10419   ac_cv_search_mbrtowc=no
10420 fi
10421 rm conftest.$ac_ext
10422 LIBS=$ac_func_search_save_LIBS
10423 fi
10424 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_mbrtowc" >&5
10425 $as_echo "$ac_cv_search_mbrtowc" >&6; }
10426 ac_res=$ac_cv_search_mbrtowc
10427 if test "$ac_res" != no; then
10428   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10429
10430 fi
10431
10432
10433
10434     for ac_prog in pkg-config
10435 do
10436   # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10441   $as_echo_n "(cached) " >&6
10442 else
10443   if test -n "$PKG_CONFIG"; then
10444   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10445 else
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10448 do
10449   IFS=$as_save_IFS
10450   test -z "$as_dir" && as_dir=.
10451   for ac_exec_ext in '' $ac_executable_extensions; do
10452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10453     ac_cv_prog_PKG_CONFIG="$ac_prog"
10454     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10455     break 2
10456   fi
10457 done
10458 done
10459 IFS=$as_save_IFS
10460
10461 fi
10462 fi
10463 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10464 if test -n "$PKG_CONFIG"; then
10465   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10466 $as_echo "$PKG_CONFIG" >&6; }
10467 else
10468   { $as_echo "$as_me:$LINENO: result: no" >&5
10469 $as_echo "no" >&6; }
10470 fi
10471
10472
10473   test -n "$PKG_CONFIG" && break
10474 done
10475 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10476
10477
10478
10479     r="`eval echo '$'"PKG_CONFIG"`"
10480     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10481         true
10482     else
10483         ##STEPMAKE_WARN(cannot find . )
10484         false
10485     fi
10486
10487     if test $? -ne 0; then
10488
10489     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10490
10491         if test "REQUIRED" = "REQUIRED"; then
10492             command="echo ERROR: pkg-config not found"
10493             # abort configure process here?
10494         else
10495             command="- echo pkg-config not found"
10496         fi
10497         eval "PKG_CONFIG"='$command'
10498         false
10499     else
10500         true
10501     fi
10502
10503     if test $? -eq 0 -a -n "0.9.0"; then
10504
10505     r="`eval echo '$'"PKG_CONFIG"`"
10506     { $as_echo "$as_me:$LINENO: checking $r version" >&5
10507 $as_echo_n "checking $r version... " >&6; }
10508     exe=`
10509     ## which doesn't work in ash, if /usr/bin/which isn't installed
10510     ## type -p doesn't work in ash
10511     ## command -v doesn't work in zsh
10512     ## command -v "$r" 2>&1
10513     ## this test should work in ash, bash, pdksh (ksh), zsh
10514     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10515 `
10516     if test -n ""; then
10517         ver=""
10518     else
10519         ver=`
10520     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10521     ##
10522     ## ARG.
10523     ## Workaround for broken Debian gcc version string:
10524     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10525     ##
10526     ## -V: Workaround for python
10527
10528     #dnl
10529
10530     ## Assume and hunt for dotted version multiplet.
10531     ## use eval trickery, because we cannot use multi-level $() instead of ``
10532     ## for compatibility reasons.
10533
10534     ## grab the first version number in  --version output.
10535     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
10536         | head -n 1 \
10537         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
10538
10539     if test -z "$_ver"; then
10540         ## If empty, try date [fontforge]
10541         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10542             | head -n 1 \
10543             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10544     fi
10545     echo "$_ver"
10546     #dnl
10547 `
10548     fi
10549     num=`
10550     echo "$ver" | awk -F. '
10551     {
10552       if ($3) {three = $3}
10553       else {three = 0}
10554     }
10555     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10556 `
10557     req=`
10558     echo "0.9.0" | awk -F. '
10559     {
10560       if ($3) {three = $3}
10561       else {three = 0}
10562     }
10563     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10564 `
10565     { $as_echo "$as_me:$LINENO: result: $ver" >&5
10566 $as_echo "$ver" >&6; }
10567     if test "$num" -lt "$req"; then
10568
10569     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10570
10571     fi
10572     vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10573     eval `echo $vervar=$num`
10574 ##    AC_SUBST(`eval echo $vervar`)
10575
10576     fi
10577
10578
10579 if test "$gui_b" = "yes"; then
10580
10581
10582   succeeded=no
10583
10584   if test -z "$PKG_CONFIG"; then
10585     # Extract the first word of "pkg-config", so it can be a program name with args.
10586 set dummy pkg-config; ac_word=$2
10587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10590   $as_echo_n "(cached) " >&6
10591 else
10592   case $PKG_CONFIG in
10593   [\\/]* | ?:[\\/]*)
10594   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10595   ;;
10596   *)
10597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600   IFS=$as_save_IFS
10601   test -z "$as_dir" && as_dir=.
10602   for ac_exec_ext in '' $ac_executable_extensions; do
10603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10606     break 2
10607   fi
10608 done
10609 done
10610 IFS=$as_save_IFS
10611
10612   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10613   ;;
10614 esac
10615 fi
10616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10617 if test -n "$PKG_CONFIG"; then
10618   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10619 $as_echo "$PKG_CONFIG" >&6; }
10620 else
10621   { $as_echo "$as_me:$LINENO: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624
10625
10626   fi
10627
10628   if test "$PKG_CONFIG" = "no" ; then
10629      echo "*** The pkg-config script could not be found. Make sure it is"
10630      echo "*** in your path, or set the PKG_CONFIG environment variable"
10631      echo "*** to the full path to pkg-config."
10632      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10633   else
10634      PKG_CONFIG_MIN_VERSION=0.9.0
10635      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636         { $as_echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4.0" >&5
10637 $as_echo_n "checking for gtk+-2.0 >= 2.4.0... " >&6; }
10638
10639         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4.0" ; then
10640             { $as_echo "$as_me:$LINENO: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642             succeeded=yes
10643
10644             { $as_echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5
10645 $as_echo_n "checking GTK2_CFLAGS... " >&6; }
10646             GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0"`
10647             { $as_echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5
10648 $as_echo "$GTK2_CFLAGS" >&6; }
10649
10650             { $as_echo "$as_me:$LINENO: checking GTK2_LIBS" >&5
10651 $as_echo_n "checking GTK2_LIBS... " >&6; }
10652             GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0"`
10653             { $as_echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5
10654 $as_echo "$GTK2_LIBS" >&6; }
10655         else
10656             GTK2_CFLAGS=""
10657             GTK2_LIBS=""
10658             ## If we have a custom action on failure, don't print errors, but
10659             ## do set a variable so people can do so.
10660             GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"`
10661
10662         fi
10663
10664
10665
10666      fi
10667   fi
10668
10669   if test $succeeded = yes; then
10670      have_gtk2=yes
10671   else
10672      true
10673   fi
10674
10675     if test "$have_gtk2" = yes ; then
10676         cat >>confdefs.h <<\_ACEOF
10677 #define HAVE_GTK2 1
10678 _ACEOF
10679
10680         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
10681         save_CPPFLAGS="$CPPFLAGS"
10682         save_LIBS="$LIBS"
10683         CPPFLAGS="$GTK2_CFLAGS $CPPFLAGS"
10684         LIBS="$GTK2_LIBS $LIBS"
10685
10686
10687         CPPFLAGS="$save_CPPFLAGS"
10688         LIBS="$save_LIBS"
10689     else
10690         # UGR
10691         # r="libgtk+-2.0-dev or gtk+-2.0-devel"
10692         r="libgtk2.0-dev or gtk2-devel"
10693         ver="`pkg-config --modversion gtk+-2.0`"
10694
10695     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
10696
10697     fi
10698
10699 fi
10700
10701 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10702 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10703 if test "$reloc_b" = "yes"; then
10704     cat >>confdefs.h <<\_ACEOF
10705 #define ARGV0_RELOCATION 1
10706 _ACEOF
10707
10708 fi
10709 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10710 $as_echo "$reloc_b" >&6; }
10711
10712 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10713 $as_echo_n "checking for rpath linkage... " >&6; }
10714 if test "$rpath_b" = "yes"; then
10715     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10716 elif test "$rpath_b" != "no"; then
10717     LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10718 fi
10719 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10720 $as_echo "$rpath_b" >&6; }
10721
10722 HOST_ARCH=`$CC -dumpmachine`
10723
10724
10725
10726
10727   succeeded=no
10728
10729   if test -z "$PKG_CONFIG"; then
10730     # Extract the first word of "pkg-config", so it can be a program name with args.
10731 set dummy pkg-config; ac_word=$2
10732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10735   $as_echo_n "(cached) " >&6
10736 else
10737   case $PKG_CONFIG in
10738   [\\/]* | ?:[\\/]*)
10739   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10740   ;;
10741   *)
10742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10744 do
10745   IFS=$as_save_IFS
10746   test -z "$as_dir" && as_dir=.
10747   for ac_exec_ext in '' $ac_executable_extensions; do
10748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10749     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10750     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10751     break 2
10752   fi
10753 done
10754 done
10755 IFS=$as_save_IFS
10756
10757   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10758   ;;
10759 esac
10760 fi
10761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10762 if test -n "$PKG_CONFIG"; then
10763   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10764 $as_echo "$PKG_CONFIG" >&6; }
10765 else
10766   { $as_echo "$as_me:$LINENO: result: no" >&5
10767 $as_echo "no" >&6; }
10768 fi
10769
10770
10771   fi
10772
10773   if test "$PKG_CONFIG" = "no" ; then
10774      echo "*** The pkg-config script could not be found. Make sure it is"
10775      echo "*** in your path, or set the PKG_CONFIG environment variable"
10776      echo "*** to the full path to pkg-config."
10777      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10778   else
10779      PKG_CONFIG_MIN_VERSION=0.9.0
10780      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10781         { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
10782 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
10783
10784         if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
10785             { $as_echo "$as_me:$LINENO: result: yes" >&5
10786 $as_echo "yes" >&6; }
10787             succeeded=yes
10788
10789             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
10790 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
10791             PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
10792             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
10793 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
10794
10795             { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
10796 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
10797             PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
10798             { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
10799 $as_echo "$PANGO_FT2_LIBS" >&6; }
10800         else
10801             PANGO_FT2_CFLAGS=""
10802             PANGO_FT2_LIBS=""
10803             ## If we have a custom action on failure, don't print errors, but
10804             ## do set a variable so people can do so.
10805             PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
10806
10807         fi
10808
10809
10810
10811      fi
10812   fi
10813
10814   if test $succeeded = yes; then
10815      have_pangoft2=yes
10816   else
10817      true
10818   fi
10819
10820     if test "$have_pangoft2" = yes ; then
10821         cat >>confdefs.h <<\_ACEOF
10822 #define HAVE_PANGO16 1
10823 _ACEOF
10824
10825         cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_PANGO_FT2 1
10827 _ACEOF
10828
10829         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
10830         save_CPPFLAGS="$CPPFLAGS"
10831         save_LIBS="$LIBS"
10832         CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
10833         LIBS="$PANGO_FT2_LIBS $LIBS"
10834
10835 for ac_header in pango/pangoft2.h
10836 do
10837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 $as_echo_n "checking for $ac_header... " >&6; }
10841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842   $as_echo_n "(cached) " >&6
10843 fi
10844 ac_res=`eval 'as_val=${'$as_ac_Header'}
10845                  $as_echo "$as_val"'`
10846                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10847 $as_echo "$ac_res" >&6; }
10848 else
10849   # Is the header compilable?
10850 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10851 $as_echo_n "checking $ac_header usability... " >&6; }
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 $ac_includes_default
10859 #include <$ac_header>
10860 _ACEOF
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10868 $as_echo "$ac_try_echo") >&5
10869   (eval "$ac_compile") 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } && {
10876          test -z "$ac_c_werror_flag" ||
10877          test ! -s conftest.err
10878        } && test -s conftest.$ac_objext; then
10879   ac_header_compiler=yes
10880 else
10881   $as_echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884         ac_header_compiler=no
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10889 $as_echo "$ac_header_compiler" >&6; }
10890
10891 # Is the header present?
10892 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10893 $as_echo_n "checking $ac_header presence... " >&6; }
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #include <$ac_header>
10901 _ACEOF
10902 if { (ac_try="$ac_cpp conftest.$ac_ext"
10903 case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } >/dev/null && {
10916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10917          test ! -s conftest.err
10918        }; then
10919   ac_header_preproc=yes
10920 else
10921   $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924   ac_header_preproc=no
10925 fi
10926
10927 rm -f conftest.err conftest.$ac_ext
10928 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10929 $as_echo "$ac_header_preproc" >&6; }
10930
10931 # So?  What about this header?
10932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10933   yes:no: )
10934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10935 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10937 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10938     ac_header_preproc=yes
10939     ;;
10940   no:yes:* )
10941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10942 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10944 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10946 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10948 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10952 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10953
10954     ;;
10955 esac
10956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 $as_echo_n "checking for $ac_header... " >&6; }
10958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959   $as_echo_n "(cached) " >&6
10960 else
10961   eval "$as_ac_Header=\$ac_header_preproc"
10962 fi
10963 ac_res=`eval 'as_val=${'$as_ac_Header'}
10964                  $as_echo "$as_val"'`
10965                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10966 $as_echo "$ac_res" >&6; }
10967
10968 fi
10969 as_val=`eval 'as_val=${'$as_ac_Header'}
10970                  $as_echo "$as_val"'`
10971    if test "x$as_val" = x""yes; then
10972   cat >>confdefs.h <<_ACEOF
10973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10974 _ACEOF
10975
10976 fi
10977
10978 done
10979
10980
10981 for ac_func in pango_ft2_font_map_create_context
10982 do
10983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10984 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10985 $as_echo_n "checking for $ac_func... " >&6; }
10986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10987   $as_echo_n "(cached) " >&6
10988 else
10989   cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h.  */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h.  */
10995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10997 #define $ac_func innocuous_$ac_func
10998
10999 /* System header to define __stub macros and hopefully few prototypes,
11000     which can conflict with char $ac_func (); below.
11001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11002     <limits.h> exists even on freestanding compilers.  */
11003
11004 #ifdef __STDC__
11005 # include <limits.h>
11006 #else
11007 # include <assert.h>
11008 #endif
11009
11010 #undef $ac_func
11011
11012 /* Override any GCC internal prototype to avoid an error.
11013    Use char because int might match the return type of a GCC
11014    builtin and then its argument prototype would still apply.  */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char $ac_func ();
11019 /* The GNU C library defines this for functions which it implements
11020     to always fail with ENOSYS.  Some functions are actually named
11021     something starting with __ and the normal name is an alias.  */
11022 #if defined __stub_$ac_func || defined __stub___$ac_func
11023 choke me
11024 #endif
11025
11026 int
11027 main ()
11028 {
11029 return $ac_func ();
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (ac_try="$ac_link"
11036 case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11041 $as_echo "$ac_try_echo") >&5
11042   (eval "$ac_link") 2>conftest.er1
11043   ac_status=$?
11044   grep -v '^ *+' conftest.er1 >conftest.err
11045   rm -f conftest.er1
11046   cat conftest.err >&5
11047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); } && {
11049          test -z "$ac_c_werror_flag" ||
11050          test ! -s conftest.err
11051        } && test -s conftest$ac_exeext && {
11052          test "$cross_compiling" = yes ||
11053          $as_test_x conftest$ac_exeext
11054        }; then
11055   eval "$as_ac_var=yes"
11056 else
11057   $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060         eval "$as_ac_var=no"
11061 fi
11062
11063 rm -rf conftest.dSYM
11064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11065       conftest$ac_exeext conftest.$ac_ext
11066 fi
11067 ac_res=`eval 'as_val=${'$as_ac_var'}
11068                  $as_echo "$as_val"'`
11069                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11070 $as_echo "$ac_res" >&6; }
11071 as_val=`eval 'as_val=${'$as_ac_var'}
11072                  $as_echo "$as_val"'`
11073    if test "x$as_val" = x""yes; then
11074   cat >>confdefs.h <<_ACEOF
11075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11076 _ACEOF
11077
11078 fi
11079 done
11080
11081
11082
11083         CPPFLAGS="$save_CPPFLAGS"
11084         LIBS="$save_LIBS"
11085     else
11086         # UGR
11087         #r="libpangoft2-dev or pangoft2-devel"e
11088         r="libpango1.0-dev or pango?-devel"
11089         ver="`pkg-config --modversion pangoft2`"
11090
11091     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11092
11093     fi
11094
11095 #STEPMAKE_PANGO(pango, REQUIRED, 1.6.0)
11096
11097
11098   succeeded=no
11099
11100   if test -z "$PKG_CONFIG"; then
11101     # Extract the first word of "pkg-config", so it can be a program name with args.
11102 set dummy pkg-config; ac_word=$2
11103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11106   $as_echo_n "(cached) " >&6
11107 else
11108   case $PKG_CONFIG in
11109   [\\/]* | ?:[\\/]*)
11110   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11111   ;;
11112   *)
11113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11115 do
11116   IFS=$as_save_IFS
11117   test -z "$as_dir" && as_dir=.
11118   for ac_exec_ext in '' $ac_executable_extensions; do
11119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11121     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11122     break 2
11123   fi
11124 done
11125 done
11126 IFS=$as_save_IFS
11127
11128   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11129   ;;
11130 esac
11131 fi
11132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11133 if test -n "$PKG_CONFIG"; then
11134   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11135 $as_echo "$PKG_CONFIG" >&6; }
11136 else
11137   { $as_echo "$as_me:$LINENO: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142   fi
11143
11144   if test "$PKG_CONFIG" = "no" ; then
11145      echo "*** The pkg-config script could not be found. Make sure it is"
11146      echo "*** in your path, or set the PKG_CONFIG environment variable"
11147      echo "*** to the full path to pkg-config."
11148      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11149   else
11150      PKG_CONFIG_MIN_VERSION=0.9.0
11151      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11152         { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
11153 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11154
11155         if $PKG_CONFIG --exists "fontconfig >= 2.2.0" ; then
11156             { $as_echo "$as_me:$LINENO: result: yes" >&5
11157 $as_echo "yes" >&6; }
11158             succeeded=yes
11159
11160             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11161 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11162             FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"`
11163             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11164 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11165
11166             { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11167 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11168             FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"`
11169             { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11170 $as_echo "$FONTCONFIG_LIBS" >&6; }
11171         else
11172             FONTCONFIG_CFLAGS=""
11173             FONTCONFIG_LIBS=""
11174             ## If we have a custom action on failure, don't print errors, but
11175             ## do set a variable so people can do so.
11176             FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11177
11178         fi
11179
11180
11181
11182      fi
11183   fi
11184
11185   if test $succeeded = yes; then
11186      have_fontconfig=yes
11187   else
11188      true
11189   fi
11190
11191     if test "$have_fontconfig" = yes ; then
11192         cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_FONTCONFIG 1
11194 _ACEOF
11195
11196         # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11197         save_CPPFLAGS="$CPPFLAGS"
11198         save_LIBS="$LIBS"
11199         CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11200         LIBS="$FONTCONFIG_LIBS $LIBS"
11201
11202
11203         CPPFLAGS="$save_CPPFLAGS"
11204         LIBS="$save_LIBS"
11205     else
11206         r="libfontconfig-dev or fontconfig-devel"
11207         ver="`pkg-config --modversion fontconfig`"
11208
11209     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.2.0 (installed: $ver)"\"`\"
11210
11211     fi
11212
11213
11214
11215   succeeded=no
11216
11217   if test -z "$PKG_CONFIG"; then
11218     # Extract the first word of "pkg-config", so it can be a program name with args.
11219 set dummy pkg-config; ac_word=$2
11220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11223   $as_echo_n "(cached) " >&6
11224 else
11225   case $PKG_CONFIG in
11226   [\\/]* | ?:[\\/]*)
11227   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11228   ;;
11229   *)
11230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH
11232 do
11233   IFS=$as_save_IFS
11234   test -z "$as_dir" && as_dir=.
11235   for ac_exec_ext in '' $ac_executable_extensions; do
11236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11237     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11239     break 2
11240   fi
11241 done
11242 done
11243 IFS=$as_save_IFS
11244
11245   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11246   ;;
11247 esac
11248 fi
11249 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11250 if test -n "$PKG_CONFIG"; then
11251   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11252 $as_echo "$PKG_CONFIG" >&6; }
11253 else
11254   { $as_echo "$as_me:$LINENO: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258
11259   fi
11260
11261   if test "$PKG_CONFIG" = "no" ; then
11262      echo "*** The pkg-config script could not be found. Make sure it is"
11263      echo "*** in your path, or set the PKG_CONFIG environment variable"
11264      echo "*** to the full path to pkg-config."
11265      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11266   else
11267      PKG_CONFIG_MIN_VERSION=0.9.0
11268      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11269         { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11270 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11271
11272         if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11273             { $as_echo "$as_me:$LINENO: result: yes" >&5
11274 $as_echo "yes" >&6; }
11275             succeeded=yes
11276
11277             { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11278 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11279             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11280             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11281 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11282
11283             { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11284 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11285             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11286             { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11287 $as_echo "$FREETYPE2_LIBS" >&6; }
11288         else
11289             FREETYPE2_CFLAGS=""
11290             FREETYPE2_LIBS=""
11291             ## If we have a custom action on failure, don't print errors, but
11292             ## do set a variable so people can do so.
11293             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11294
11295         fi
11296
11297
11298
11299      fi
11300   fi
11301
11302   if test $succeeded = yes; then
11303      have_freetype2=yes
11304   else
11305      true
11306   fi
11307
11308     if test "$have_freetype2" = yes; then
11309         cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_FREETYPE2 1
11311 _ACEOF
11312
11313         save_CPPFLAGS="$CPPFLAGS"
11314         save_LIBS="$LIBS"
11315         CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11316         LIBS="$FREETYPE2_LIBS $LIBS"
11317
11318
11319         CPPFLAGS="$save_CPPFLAGS"
11320         LIBS="$save_LIBS"
11321     else
11322         # UGR
11323         #r="libfreetype2-dev or freetype2-devel"
11324         r="libfreetype6-dev or freetype?-devel"
11325         ver="`pkg-config --modversion freetype2`"
11326
11327     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11328
11329     fi
11330
11331
11332
11333     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11334 $as_echo_n "checking host system type... " >&6; }
11335 if test "${ac_cv_host+set}" = set; then
11336   $as_echo_n "(cached) " >&6
11337 else
11338   if test "x$host_alias" = x; then
11339   ac_cv_host=$ac_cv_build
11340 else
11341   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11342     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11343 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11344    { (exit 1); exit 1; }; }
11345 fi
11346
11347 fi
11348 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11349 $as_echo "$ac_cv_host" >&6; }
11350 case $ac_cv_host in
11351 *-*-*) ;;
11352 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11353 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11354    { (exit 1); exit 1; }; };;
11355 esac
11356 host=$ac_cv_host
11357 ac_save_IFS=$IFS; IFS='-'
11358 set x $ac_cv_host
11359 shift
11360 host_cpu=$1
11361 host_vendor=$2
11362 shift; shift
11363 # Remember, the first character of IFS is used to create $*,
11364 # except with old shells:
11365 host_os=$*
11366 IFS=$ac_save_IFS
11367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11368
11369
11370 case $host_os in
11371   *cygwin* ) CYGWIN=yes;;
11372          * ) CYGWIN=no;;
11373 esac
11374
11375     { $as_echo "$as_me:$LINENO: checking host system type" >&5
11376 $as_echo_n "checking host system type... " >&6; }
11377 if test "${ac_cv_host+set}" = set; then
11378   $as_echo_n "(cached) " >&6
11379 else
11380   if test "x$host_alias" = x; then
11381   ac_cv_host=$ac_cv_build
11382 else
11383   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11384     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11385 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11386    { (exit 1); exit 1; }; }
11387 fi
11388
11389 fi
11390 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11391 $as_echo "$ac_cv_host" >&6; }
11392 case $ac_cv_host in
11393 *-*-*) ;;
11394 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11395 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11396    { (exit 1); exit 1; }; };;
11397 esac
11398 host=$ac_cv_host
11399 ac_save_IFS=$IFS; IFS='-'
11400 set x $ac_cv_host
11401 shift
11402 host_cpu=$1
11403 host_vendor=$2
11404 shift; shift
11405 # Remember, the first character of IFS is used to create $*,
11406 # except with old shells:
11407 host_os=$*
11408 IFS=$ac_save_IFS
11409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11410
11411
11412 case $host_os in
11413   *mingw32* ) MINGW32=yes;;
11414           * ) MINGW32=no;;
11415 esac
11416
11417
11418     if test "$CYGWIN" = "yes"; then
11419         LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11420         program_suffix=.exe
11421         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11422     elif test "$MINGW32" = "yes"; then
11423         LN='cp -r'
11424         LN_S='cp -r'
11425         program_suffix=.exe
11426         INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11427         PATHSEP=';'
11428     fi
11429
11430
11431
11432     cat >>confdefs.h <<_ACEOF
11433 #define DIRSEP '${DIRSEP}'
11434 _ACEOF
11435
11436     cat >>confdefs.h <<_ACEOF
11437 #define PATHSEP '${PATHSEP}'
11438 _ACEOF
11439
11440
11441
11442
11443
11444     { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11445 $as_echo_n "checking for some flavor of Windows... " >&6; }
11446     if test "$CYGWIN$MINGW32" = "nono"; then
11447         PLATFORM_WINDOWS=no
11448     else
11449         PLATFORM_WINDOWS=yes
11450     fi
11451     { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11452 $as_echo "$PLATFORM_WINDOWS" >&6; }
11453
11454
11455     for ac_prog in $target-windres windres
11456 do
11457   # Extract the first word of "$ac_prog", so it can be a program name with args.
11458 set dummy $ac_prog; ac_word=$2
11459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if test "${ac_cv_prog_WINDRES+set}" = set; then
11462   $as_echo_n "(cached) " >&6
11463 else
11464   if test -n "$WINDRES"; then
11465   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11469 do
11470   IFS=$as_save_IFS
11471   test -z "$as_dir" && as_dir=.
11472   for ac_exec_ext in '' $ac_executable_extensions; do
11473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474     ac_cv_prog_WINDRES="$ac_prog"
11475     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476     break 2
11477   fi
11478 done
11479 done
11480 IFS=$as_save_IFS
11481
11482 fi
11483 fi
11484 WINDRES=$ac_cv_prog_WINDRES
11485 if test -n "$WINDRES"; then
11486   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11487 $as_echo "$WINDRES" >&6; }
11488 else
11489   { $as_echo "$as_me:$LINENO: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494   test -n "$WINDRES" && break
11495 done
11496 test -n "$WINDRES" || WINDRES="no"
11497
11498
11499
11500     r="`eval echo '$'"WINDRES"`"
11501     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11502         true
11503     else
11504         ##STEPMAKE_WARN(cannot find . )
11505         false
11506     fi
11507
11508     if test $? -ne 0; then
11509
11510     eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11511
11512         if test "x" = "REQUIRED"; then
11513             command="echo ERROR: $target-windres windres not found"
11514             # abort configure process here?
11515         else
11516             command="- echo $target-windres windres not found"
11517         fi
11518         eval "WINDRES"='$command'
11519         false
11520     else
11521         true
11522     fi
11523
11524     if test $? -eq 0 -a -n ""; then
11525
11526     r="`eval echo '$'"WINDRES"`"
11527     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11528 $as_echo_n "checking $r version... " >&6; }
11529     exe=`
11530     ## which doesn't work in ash, if /usr/bin/which isn't installed
11531     ## type -p doesn't work in ash
11532     ## command -v doesn't work in zsh
11533     ## command -v "$r" 2>&1
11534     ## this test should work in ash, bash, pdksh (ksh), zsh
11535     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11536 `
11537     if test -n ""; then
11538         ver=""
11539     else
11540         ver=`
11541     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11542     ##
11543     ## ARG.
11544     ## Workaround for broken Debian gcc version string:
11545     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11546     ##
11547     ## -V: Workaround for python
11548
11549     #dnl
11550
11551     ## Assume and hunt for dotted version multiplet.
11552     ## use eval trickery, because we cannot use multi-level $() instead of ``
11553     ## for compatibility reasons.
11554
11555     ## grab the first version number in  --version output.
11556     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
11557         | head -n 1 \
11558         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
11559
11560     if test -z "$_ver"; then
11561         ## If empty, try date [fontforge]
11562         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11563             | head -n 1 \
11564             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11565     fi
11566     echo "$_ver"
11567     #dnl
11568 `
11569     fi
11570     num=`
11571     echo "$ver" | awk -F. '
11572     {
11573       if ($3) {three = $3}
11574       else {three = 0}
11575     }
11576     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11577 `
11578     req=`
11579     echo "" | awk -F. '
11580     {
11581       if ($3) {three = $3}
11582       else {three = 0}
11583     }
11584     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11585 `
11586     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11587 $as_echo "$ver" >&6; }
11588     if test "$num" -lt "$req"; then
11589
11590     eval "x"=\"`eval echo \"'$'x\" \""$r >=  (installed: $ver)"\"`\"
11591
11592     fi
11593     vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11594     eval `echo $vervar=$num`
11595 ##    AC_SUBST(`eval echo $vervar`)
11596
11597     fi
11598
11599
11600
11601
11602 ## Optional tools for building documentation, website, extra fonts.
11603
11604 # guile executable for some scripts
11605
11606
11607     for ac_prog in guile
11608 do
11609   # Extract the first word of "$ac_prog", so it can be a program name with args.
11610 set dummy $ac_prog; ac_word=$2
11611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_prog_GUILE+set}" = set; then
11614   $as_echo_n "(cached) " >&6
11615 else
11616   if test -n "$GUILE"; then
11617   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622   IFS=$as_save_IFS
11623   test -z "$as_dir" && as_dir=.
11624   for ac_exec_ext in '' $ac_executable_extensions; do
11625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11626     ac_cv_prog_GUILE="$ac_prog"
11627     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631 done
11632 IFS=$as_save_IFS
11633
11634 fi
11635 fi
11636 GUILE=$ac_cv_prog_GUILE
11637 if test -n "$GUILE"; then
11638   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11639 $as_echo "$GUILE" >&6; }
11640 else
11641   { $as_echo "$as_me:$LINENO: result: no" >&5
11642 $as_echo "no" >&6; }
11643 fi
11644
11645
11646   test -n "$GUILE" && break
11647 done
11648 test -n "$GUILE" || GUILE="no"
11649
11650
11651
11652     r="`eval echo '$'"GUILE"`"
11653     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
11654         true
11655     else
11656         ##STEPMAKE_WARN(cannot find . )
11657         false
11658     fi
11659
11660     if test $? -ne 0; then
11661
11662     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
11663
11664         if test "OPTIONAL" = "REQUIRED"; then
11665             command="echo ERROR: guile not found"
11666             # abort configure process here?
11667         else
11668             command="- echo guile not found"
11669         fi
11670         eval "GUILE"='$command'
11671         false
11672     else
11673         true
11674     fi
11675
11676     if test $? -eq 0; then
11677         # Extract the first word of "guile", so it can be a program name with args.
11678 set dummy guile; ac_word=$2
11679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if test "${ac_cv_path_GUILE+set}" = set; then
11682   $as_echo_n "(cached) " >&6
11683 else
11684   case $GUILE in
11685   [\\/]* | ?:[\\/]*)
11686   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11687   ;;
11688   *)
11689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692   IFS=$as_save_IFS
11693   test -z "$as_dir" && as_dir=.
11694   for ac_exec_ext in '' $ac_executable_extensions; do
11695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11697     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11698     break 2
11699   fi
11700 done
11701 done
11702 IFS=$as_save_IFS
11703
11704   ;;
11705 esac
11706 fi
11707 GUILE=$ac_cv_path_GUILE
11708 if test -n "$GUILE"; then
11709   { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11710 $as_echo "$GUILE" >&6; }
11711 else
11712   { $as_echo "$as_me:$LINENO: result: no" >&5
11713 $as_echo "no" >&6; }
11714 fi
11715
11716
11717         if test -n ""; then
11718
11719     r="`eval echo '$'"GUILE"`"
11720     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11721 $as_echo_n "checking $r version... " >&6; }
11722     exe=`
11723     ## which doesn't work in ash, if /usr/bin/which isn't installed
11724     ## type -p doesn't work in ash
11725     ## command -v doesn't work in zsh
11726     ## command -v "$r" 2>&1
11727     ## this test should work in ash, bash, pdksh (ksh), zsh
11728     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11729 `
11730     if test -n ""; then
11731         ver=""
11732     else
11733         ver=`
11734     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11735     ##
11736     ## ARG.
11737     ## Workaround for broken Debian gcc version string:
11738     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11739     ##
11740     ## -V: Workaround for python
11741
11742     #dnl
11743
11744     ## Assume and hunt for dotted version multiplet.
11745     ## use eval trickery, because we cannot use multi-level $() instead of ``
11746     ## for compatibility reasons.
11747
11748     ## grab the first version number in  --version output.
11749     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
11750         | head -n 1 \
11751         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
11752
11753     if test -z "$_ver"; then
11754         ## If empty, try date [fontforge]
11755         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11756             | head -n 1 \
11757             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11758     fi
11759     echo "$_ver"
11760     #dnl
11761 `
11762     fi
11763     num=`
11764     echo "$ver" | awk -F. '
11765     {
11766       if ($3) {three = $3}
11767       else {three = 0}
11768     }
11769     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11770 `
11771     req=`
11772     echo "" | awk -F. '
11773     {
11774       if ($3) {three = $3}
11775       else {three = 0}
11776     }
11777     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11778 `
11779     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11780 $as_echo "$ver" >&6; }
11781     if test "$num" -lt "$req"; then
11782
11783     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
11784
11785     fi
11786     vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
11787     eval `echo $vervar=$num`
11788 ##    AC_SUBST(`eval echo $vervar`)
11789
11790         fi
11791     fi
11792
11793
11794
11795 # perl for help2man.
11796
11797
11798     for ac_prog in perl
11799 do
11800   # Extract the first word of "$ac_prog", so it can be a program name with args.
11801 set dummy $ac_prog; ac_word=$2
11802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if test "${ac_cv_prog_PERL+set}" = set; then
11805   $as_echo_n "(cached) " >&6
11806 else
11807   if test -n "$PERL"; then
11808   ac_cv_prog_PERL="$PERL" # Let the user override the test.
11809 else
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11812 do
11813   IFS=$as_save_IFS
11814   test -z "$as_dir" && as_dir=.
11815   for ac_exec_ext in '' $ac_executable_extensions; do
11816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11817     ac_cv_prog_PERL="$ac_prog"
11818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11819     break 2
11820   fi
11821 done
11822 done
11823 IFS=$as_save_IFS
11824
11825 fi
11826 fi
11827 PERL=$ac_cv_prog_PERL
11828 if test -n "$PERL"; then
11829   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11830 $as_echo "$PERL" >&6; }
11831 else
11832   { $as_echo "$as_me:$LINENO: result: no" >&5
11833 $as_echo "no" >&6; }
11834 fi
11835
11836
11837   test -n "$PERL" && break
11838 done
11839 test -n "$PERL" || PERL="no"
11840
11841
11842
11843     r="`eval echo '$'"PERL"`"
11844     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
11845         true
11846     else
11847         ##STEPMAKE_WARN(cannot find . )
11848         false
11849     fi
11850
11851     if test $? -ne 0; then
11852
11853     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
11854
11855         if test "OPTIONAL" = "REQUIRED"; then
11856             command="echo ERROR: perl not found"
11857             # abort configure process here?
11858         else
11859             command="- echo perl not found"
11860         fi
11861         eval "PERL"='$command'
11862         false
11863     else
11864         true
11865     fi
11866
11867     if test $? -eq 0; then
11868         # Extract the first word of "perl", so it can be a program name with args.
11869 set dummy perl; ac_word=$2
11870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if test "${ac_cv_path_PERL+set}" = set; then
11873   $as_echo_n "(cached) " >&6
11874 else
11875   case $PERL in
11876   [\\/]* | ?:[\\/]*)
11877   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11878   ;;
11879   *)
11880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11882 do
11883   IFS=$as_save_IFS
11884   test -z "$as_dir" && as_dir=.
11885   for ac_exec_ext in '' $ac_executable_extensions; do
11886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11888     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11889     break 2
11890   fi
11891 done
11892 done
11893 IFS=$as_save_IFS
11894
11895   ;;
11896 esac
11897 fi
11898 PERL=$ac_cv_path_PERL
11899 if test -n "$PERL"; then
11900   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11901 $as_echo "$PERL" >&6; }
11902 else
11903   { $as_echo "$as_me:$LINENO: result: no" >&5
11904 $as_echo "no" >&6; }
11905 fi
11906
11907
11908         if test -n ""; then
11909
11910     r="`eval echo '$'"PERL"`"
11911     { $as_echo "$as_me:$LINENO: checking $r version" >&5
11912 $as_echo_n "checking $r version... " >&6; }
11913     exe=`
11914     ## which doesn't work in ash, if /usr/bin/which isn't installed
11915     ## type -p doesn't work in ash
11916     ## command -v doesn't work in zsh
11917     ## command -v "$r" 2>&1
11918     ## this test should work in ash, bash, pdksh (ksh), zsh
11919     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11920 `
11921     if test -n ""; then
11922         ver=""
11923     else
11924         ver=`
11925     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11926     ##
11927     ## ARG.
11928     ## Workaround for broken Debian gcc version string:
11929     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11930     ##
11931     ## -V: Workaround for python
11932
11933     #dnl
11934
11935     ## Assume and hunt for dotted version multiplet.
11936     ## use eval trickery, because we cannot use multi-level $() instead of ``
11937     ## for compatibility reasons.
11938
11939     ## grab the first version number in  --version output.
11940     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
11941         | head -n 1 \
11942         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
11943
11944     if test -z "$_ver"; then
11945         ## If empty, try date [fontforge]
11946         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11947             | head -n 1 \
11948             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11949     fi
11950     echo "$_ver"
11951     #dnl
11952 `
11953     fi
11954     num=`
11955     echo "$ver" | awk -F. '
11956     {
11957       if ($3) {three = $3}
11958       else {three = 0}
11959     }
11960     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11961 `
11962     req=`
11963     echo "" | awk -F. '
11964     {
11965       if ($3) {three = $3}
11966       else {three = 0}
11967     }
11968     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11969 `
11970     { $as_echo "$as_me:$LINENO: result: $ver" >&5
11971 $as_echo "$ver" >&6; }
11972     if test "$num" -lt "$req"; then
11973
11974     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >=  (installed: $ver)"\"`\"
11975
11976     fi
11977     vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
11978     eval `echo $vervar=$num`
11979 ##    AC_SUBST(`eval echo $vervar`)
11980
11981         fi
11982     fi
11983
11984
11985
11986
11987     for ac_prog in makeinfo
11988 do
11989   # Extract the first word of "$ac_prog", so it can be a program name with args.
11990 set dummy $ac_prog; ac_word=$2
11991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11994   $as_echo_n "(cached) " >&6
11995 else
11996   if test -n "$MAKEINFO"; then
11997   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004   for ac_exec_ext in '' $ac_executable_extensions; do
12005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006     ac_cv_prog_MAKEINFO="$ac_prog"
12007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011 done
12012 IFS=$as_save_IFS
12013
12014 fi
12015 fi
12016 MAKEINFO=$ac_cv_prog_MAKEINFO
12017 if test -n "$MAKEINFO"; then
12018   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12019 $as_echo "$MAKEINFO" >&6; }
12020 else
12021   { $as_echo "$as_me:$LINENO: result: no" >&5
12022 $as_echo "no" >&6; }
12023 fi
12024
12025
12026   test -n "$MAKEINFO" && break
12027 done
12028 test -n "$MAKEINFO" || MAKEINFO="no"
12029
12030
12031
12032     r="`eval echo '$'"MAKEINFO"`"
12033     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12034         true
12035     else
12036         ##STEPMAKE_WARN(cannot find . )
12037         false
12038     fi
12039
12040     if test $? -ne 0; then
12041
12042     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12043
12044         if test "REQUIRED" = "REQUIRED"; then
12045             command="echo ERROR: makeinfo not found"
12046             # abort configure process here?
12047         else
12048             command="- echo makeinfo not found"
12049         fi
12050         eval "MAKEINFO"='$command'
12051         false
12052     else
12053         true
12054     fi
12055
12056     if test $? -eq 0 -a -n "4.11"; then
12057
12058     r="`eval echo '$'"MAKEINFO"`"
12059     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12060 $as_echo_n "checking $r version... " >&6; }
12061     exe=`
12062     ## which doesn't work in ash, if /usr/bin/which isn't installed
12063     ## type -p doesn't work in ash
12064     ## command -v doesn't work in zsh
12065     ## command -v "$r" 2>&1
12066     ## this test should work in ash, bash, pdksh (ksh), zsh
12067     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12068 `
12069     if test -n ""; then
12070         ver=""
12071     else
12072         ver=`
12073     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12074     ##
12075     ## ARG.
12076     ## Workaround for broken Debian gcc version string:
12077     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12078     ##
12079     ## -V: Workaround for python
12080
12081     #dnl
12082
12083     ## Assume and hunt for dotted version multiplet.
12084     ## use eval trickery, because we cannot use multi-level $() instead of ``
12085     ## for compatibility reasons.
12086
12087     ## grab the first version number in  --version output.
12088     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
12089         | head -n 1 \
12090         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
12091
12092     if test -z "$_ver"; then
12093         ## If empty, try date [fontforge]
12094         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12095             | head -n 1 \
12096             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12097     fi
12098     echo "$_ver"
12099     #dnl
12100 `
12101     fi
12102     num=`
12103     echo "$ver" | awk -F. '
12104     {
12105       if ($3) {three = $3}
12106       else {three = 0}
12107     }
12108     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12109 `
12110     req=`
12111     echo "4.11" | awk -F. '
12112     {
12113       if ($3) {three = $3}
12114       else {three = 0}
12115     }
12116     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12117 `
12118     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12119 $as_echo "$ver" >&6; }
12120     if test "$num" -lt "$req"; then
12121
12122     eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12123
12124     fi
12125     vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12126     eval `echo $vervar=$num`
12127 ##    AC_SUBST(`eval echo $vervar`)
12128
12129     fi
12130
12131
12132     for ac_prog in texi2html
12133 do
12134   # Extract the first word of "$ac_prog", so it can be a program name with args.
12135 set dummy $ac_prog; ac_word=$2
12136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12139   $as_echo_n "(cached) " >&6
12140 else
12141   if test -n "$TEXI2HTML"; then
12142   ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12143 else
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147   IFS=$as_save_IFS
12148   test -z "$as_dir" && as_dir=.
12149   for ac_exec_ext in '' $ac_executable_extensions; do
12150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151     ac_cv_prog_TEXI2HTML="$ac_prog"
12152     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12153     break 2
12154   fi
12155 done
12156 done
12157 IFS=$as_save_IFS
12158
12159 fi
12160 fi
12161 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12162 if test -n "$TEXI2HTML"; then
12163   { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12164 $as_echo "$TEXI2HTML" >&6; }
12165 else
12166   { $as_echo "$as_me:$LINENO: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171   test -n "$TEXI2HTML" && break
12172 done
12173 test -n "$TEXI2HTML" || TEXI2HTML="no"
12174
12175
12176
12177     r="`eval echo '$'"TEXI2HTML"`"
12178     if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12179         true
12180     else
12181         ##STEPMAKE_WARN(cannot find . )
12182         false
12183     fi
12184
12185     if test $? -ne 0; then
12186
12187     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12188
12189         if test "OPTIONAL" = "REQUIRED"; then
12190             command="echo ERROR: texi2html not found"
12191             # abort configure process here?
12192         else
12193             command="- echo texi2html not found"
12194         fi
12195         eval "TEXI2HTML"='$command'
12196         false
12197     else
12198         true
12199     fi
12200
12201     if test $? -eq 0 -a -n "1.80"; then
12202
12203     r="`eval echo '$'"TEXI2HTML"`"
12204     { $as_echo "$as_me:$LINENO: checking $r version" >&5
12205 $as_echo_n "checking $r version... " >&6; }
12206     exe=`
12207     ## which doesn't work in ash, if /usr/bin/which isn't installed
12208     ## type -p doesn't work in ash
12209     ## command -v doesn't work in zsh
12210     ## command -v "$r" 2>&1
12211     ## this test should work in ash, bash, pdksh (ksh), zsh
12212     type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12213 `
12214     if test -n ""; then
12215         ver=""
12216     else
12217         ver=`
12218     ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12219     ##
12220     ## ARG.
12221     ## Workaround for broken Debian gcc version string:
12222     ##     gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12223     ##
12224     ## -V: Workaround for python
12225
12226     #dnl
12227
12228     ## Assume and hunt for dotted version multiplet.
12229     ## use eval trickery, because we cannot use multi-level $() instead of ``
12230     ## for compatibility reasons.
12231
12232     ## grab the first version number in  --version output.
12233     eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
12234         | head -n 1 \
12235         | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
12236
12237     if test -z "$_ver"; then
12238         ## If empty, try date [fontforge]
12239         eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12240             | head -n 1 \
12241             | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12242     fi
12243     echo "$_ver"
12244     #dnl
12245 `
12246     fi
12247     num=`
12248     echo "$ver" | awk -F. '
12249     {
12250       if ($3) {three = $3}
12251       else {three = 0}
12252     }
12253     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12254 `
12255     req=`
12256     echo "1.80" | awk -F. '
12257     {
12258       if ($3) {three = $3}
12259       else {three = 0}
12260     }
12261     {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12262 `
12263     { $as_echo "$as_me:$LINENO: result: $ver" >&5
12264 $as_echo "$ver" >&6; }
12265     if test "$num" -lt "$req"; then
12266
12267     eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.80 (installed: $ver)"\"`\"
12268
12269     fi
12270     vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12271     eval `echo $vervar=$num`
12272 ##    AC_SUBST(`eval echo $vervar`)
12273
12274     fi
12275
12276
12277 cat >>confdefs.h <<_ACEOF
12278 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
12279 _ACEOF
12280
12281
12282 # must also have local.make if configure fails.
12283 touch local.make
12284
12285 if test "$reloc_b$rpath_b" = "yesno"; then
12286
12287     { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&5
12288 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath.  LilyPond may have trouble finding libraries." >&2;}
12289     warn_b=yes
12290
12291 fi
12292
12293 # Gather requirements and generate output.
12294
12295
12296     # undo expanding of explicit --infodir=/usr/share
12297     # to ease install-time override with prefix=...
12298     strip=`echo $includedir | eval sed s@^$prefix@@`
12299     if test "$includedir" = "`eval echo $prefix$strip`"; then
12300             includedir='${prefix}'$strip''
12301     fi
12302     strip=`echo $libdir | eval sed s@^$exec_prefix@@`
12303     if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
12304             libdir='${exec_prefix}'$strip''
12305     fi
12306     strip=`echo $infodir | eval sed s@^$datarootdir@@`
12307     if test "$infodir" = "`eval echo $datarootdir$strip`"; then
12308             infodir='${datarootdir}'$strip''
12309     fi
12310     strip=`echo $mandir | eval sed s@^$datarootdir@@`
12311     if test "$mandir" = "`eval echo $datarootdir$strip`"; then
12312             mandir='${datarootdir}'$strip''
12313     fi
12314
12315
12316
12317
12318
12319     ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
12320
12321     cat >confcache <<\_ACEOF
12322 # This file is a shell script that caches the results of configure
12323 # tests run on this system so they can be shared between configure
12324 # scripts and configure runs, see configure's option --config-cache.
12325 # It is not useful on other systems.  If it contains results you don't
12326 # want to keep, you may remove or edit it.
12327 #
12328 # config.status only pays attention to the cache file if you give it
12329 # the --recheck option to rerun configure.
12330 #
12331 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12333 # following values.
12334
12335 _ACEOF
12336
12337 # The following way of writing the cache mishandles newlines in values,
12338 # but we know of no workaround that is simple, portable, and efficient.
12339 # So, we kill variables containing newlines.
12340 # Ultrix sh set writes to stderr and can't be redirected directly,
12341 # and sets the high bit in the cache file unless we assign to the vars.
12342 (
12343   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12344     eval ac_val=\$$ac_var
12345     case $ac_val in #(
12346     *${as_nl}*)
12347       case $ac_var in #(
12348       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12350       esac
12351       case $ac_var in #(
12352       _ | IFS | as_nl) ;; #(
12353       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12354       *) $as_unset $ac_var ;;
12355       esac ;;
12356     esac
12357   done
12358
12359   (set) 2>&1 |
12360     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12361     *${as_nl}ac_space=\ *)
12362       # `set' does not quote correctly, so add quotes (double-quote
12363       # substitution turns \\\\ into \\, and sed turns \\ into \).
12364       sed -n \
12365         "s/'/'\\\\''/g;
12366           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12367       ;; #(
12368     *)
12369       # `set' quotes correctly as required by POSIX, so do not add quotes.
12370       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12371       ;;
12372     esac |
12373     sort
12374 ) |
12375   sed '
12376      /^ac_cv_env_/b end
12377      t clear
12378      :clear
12379      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12380      t end
12381      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12382      :end' >>confcache
12383 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12384   if test -w "$cache_file"; then
12385     test "x$cache_file" != "x/dev/null" &&
12386       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12387 $as_echo "$as_me: updating cache $cache_file" >&6;}
12388     cat confcache >$cache_file
12389   else
12390     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12391 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12392   fi
12393 fi
12394 rm -f confcache
12395
12396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12397 # Let make expand exec_prefix.
12398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12399
12400 DEFS=-DHAVE_CONFIG_H
12401
12402 ac_libobjs=
12403 ac_ltlibobjs=
12404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12405   # 1. Remove the extension, and $U if already installed.
12406   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12407   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12408   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12409   #    will be set to the directory where LIBOBJS objects are built.
12410   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12411   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12412 done
12413 LIBOBJS=$ac_libobjs
12414
12415 LTLIBOBJS=$ac_ltlibobjs
12416
12417
12418
12419 : ${CONFIG_STATUS=./config.status}
12420 ac_write_fail=0
12421 ac_clean_files_save=$ac_clean_files
12422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12423 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12425 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12426 #! $SHELL
12427 # Generated by $as_me.
12428 # Run this file to recreate the current configuration.
12429 # Compiler output produced by configure, useful for debugging
12430 # configure, is in config.log if it exists.
12431
12432 debug=false
12433 ac_cs_recheck=false
12434 ac_cs_silent=false
12435 SHELL=\${CONFIG_SHELL-$SHELL}
12436 _ACEOF
12437
12438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12439 ## --------------------- ##
12440 ## M4sh Initialization.  ##
12441 ## --------------------- ##
12442
12443 # Be more Bourne compatible
12444 DUALCASE=1; export DUALCASE # for MKS sh
12445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12446   emulate sh
12447   NULLCMD=:
12448   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12449   # is contrary to our usage.  Disable this feature.
12450   alias -g '${1+"$@"}'='"$@"'
12451   setopt NO_GLOB_SUBST
12452 else
12453   case `(set -o) 2>/dev/null` in
12454   *posix*) set -o posix ;;
12455 esac
12456
12457 fi
12458
12459
12460
12461
12462 # PATH needs CR
12463 # Avoid depending upon Character Ranges.
12464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12467 as_cr_digits='0123456789'
12468 as_cr_alnum=$as_cr_Letters$as_cr_digits
12469
12470 as_nl='
12471 '
12472 export as_nl
12473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12474 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12477 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12478   as_echo='printf %s\n'
12479   as_echo_n='printf %s'
12480 else
12481   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12482     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12483     as_echo_n='/usr/ucb/echo -n'
12484   else
12485     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12486     as_echo_n_body='eval
12487       arg=$1;
12488       case $arg in
12489       *"$as_nl"*)
12490         expr "X$arg" : "X\\(.*\\)$as_nl";
12491         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12492       esac;
12493       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12494     '
12495     export as_echo_n_body
12496     as_echo_n='sh -c $as_echo_n_body as_echo'
12497   fi
12498   export as_echo_body
12499   as_echo='sh -c $as_echo_body as_echo'
12500 fi
12501
12502 # The user is always right.
12503 if test "${PATH_SEPARATOR+set}" != set; then
12504   PATH_SEPARATOR=:
12505   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12506     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12507       PATH_SEPARATOR=';'
12508   }
12509 fi
12510
12511 # Support unset when possible.
12512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12513   as_unset=unset
12514 else
12515   as_unset=false
12516 fi
12517
12518
12519 # IFS
12520 # We need space, tab and new line, in precisely that order.  Quoting is
12521 # there to prevent editors from complaining about space-tab.
12522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12523 # splitting by setting IFS to empty value.)
12524 IFS=" ""        $as_nl"
12525
12526 # Find who we are.  Look in the path if we contain no directory separator.
12527 case $0 in
12528   *[\\/]* ) as_myself=$0 ;;
12529   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12531 do
12532   IFS=$as_save_IFS
12533   test -z "$as_dir" && as_dir=.
12534   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12535 done
12536 IFS=$as_save_IFS
12537
12538      ;;
12539 esac
12540 # We did not find ourselves, most probably we were run as `sh COMMAND'
12541 # in which case we are not to be found in the path.
12542 if test "x$as_myself" = x; then
12543   as_myself=$0
12544 fi
12545 if test ! -f "$as_myself"; then
12546   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12547   { (exit 1); exit 1; }
12548 fi
12549
12550 # Work around bugs in pre-3.0 UWIN ksh.
12551 for as_var in ENV MAIL MAILPATH
12552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12553 done
12554 PS1='$ '
12555 PS2='> '
12556 PS4='+ '
12557
12558 # NLS nuisances.
12559 LC_ALL=C
12560 export LC_ALL
12561 LANGUAGE=C
12562 export LANGUAGE
12563
12564 # Required to use basename.
12565 if expr a : '\(a\)' >/dev/null 2>&1 &&
12566    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12567   as_expr=expr
12568 else
12569   as_expr=false
12570 fi
12571
12572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12573   as_basename=basename
12574 else
12575   as_basename=false
12576 fi
12577
12578
12579 # Name of the executable.
12580 as_me=`$as_basename -- "$0" ||
12581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12582          X"$0" : 'X\(//\)$' \| \
12583          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12584 $as_echo X/"$0" |
12585     sed '/^.*\/\([^/][^/]*\)\/*$/{
12586             s//\1/
12587             q
12588           }
12589           /^X\/\(\/\/\)$/{
12590             s//\1/
12591             q
12592           }
12593           /^X\/\(\/\).*/{
12594             s//\1/
12595             q
12596           }
12597           s/.*/./; q'`
12598
12599 # CDPATH.
12600 $as_unset CDPATH
12601
12602
12603
12604   as_lineno_1=$LINENO
12605   as_lineno_2=$LINENO
12606   test "x$as_lineno_1" != "x$as_lineno_2" &&
12607   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12608
12609   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12610   # uniformly replaced by the line number.  The first 'sed' inserts a
12611   # line-number line after each line using $LINENO; the second 'sed'
12612   # does the real work.  The second script uses 'N' to pair each
12613   # line-number line with the line containing $LINENO, and appends
12614   # trailing '-' during substitution so that $LINENO is not a special
12615   # case at line end.
12616   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12617   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12618   # E. McMahon (1931-1989) for sed's syntax.  :-)
12619   sed -n '
12620     p
12621     /[$]LINENO/=
12622   ' <$as_myself |
12623     sed '
12624       s/[$]LINENO.*/&-/
12625       t lineno
12626       b
12627       :lineno
12628       N
12629       :loop
12630       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12631       t loop
12632       s/-\n.*//
12633     ' >$as_me.lineno &&
12634   chmod +x "$as_me.lineno" ||
12635     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12636    { (exit 1); exit 1; }; }
12637
12638   # Don't try to exec as it changes $[0], causing all sort of problems
12639   # (the dirname of $[0] is not the place where we might find the
12640   # original and so on.  Autoconf is especially sensitive to this).
12641   . "./$as_me.lineno"
12642   # Exit status is that of the last command.
12643   exit
12644 }
12645
12646
12647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12648   as_dirname=dirname
12649 else
12650   as_dirname=false
12651 fi
12652
12653 ECHO_C= ECHO_N= ECHO_T=
12654 case `echo -n x` in
12655 -n*)
12656   case `echo 'x\c'` in
12657   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12658   *)   ECHO_C='\c';;
12659   esac;;
12660 *)
12661   ECHO_N='-n';;
12662 esac
12663 if expr a : '\(a\)' >/dev/null 2>&1 &&
12664    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12665   as_expr=expr
12666 else
12667   as_expr=false
12668 fi
12669
12670 rm -f conf$$ conf$$.exe conf$$.file
12671 if test -d conf$$.dir; then
12672   rm -f conf$$.dir/conf$$.file
12673 else
12674   rm -f conf$$.dir
12675   mkdir conf$$.dir 2>/dev/null
12676 fi
12677 if (echo >conf$$.file) 2>/dev/null; then
12678   if ln -s conf$$.file conf$$ 2>/dev/null; then
12679     as_ln_s='ln -s'
12680     # ... but there are two gotchas:
12681     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12682     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12683     # In both cases, we have to default to `cp -p'.
12684     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12685       as_ln_s='cp -p'
12686   elif ln conf$$.file conf$$ 2>/dev/null; then
12687     as_ln_s=ln
12688   else
12689     as_ln_s='cp -p'
12690   fi
12691 else
12692   as_ln_s='cp -p'
12693 fi
12694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12695 rmdir conf$$.dir 2>/dev/null
12696
12697 if mkdir -p . 2>/dev/null; then
12698   as_mkdir_p=:
12699 else
12700   test -d ./-p && rmdir ./-p
12701   as_mkdir_p=false
12702 fi
12703
12704 if test -x / >/dev/null 2>&1; then
12705   as_test_x='test -x'
12706 else
12707   if ls -dL / >/dev/null 2>&1; then
12708     as_ls_L_option=L
12709   else
12710     as_ls_L_option=
12711   fi
12712   as_test_x='
12713     eval sh -c '\''
12714       if test -d "$1"; then
12715         test -d "$1/.";
12716       else
12717         case $1 in
12718         -*)set "./$1";;
12719         esac;
12720         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12721         ???[sx]*):;;*)false;;esac;fi
12722     '\'' sh
12723   '
12724 fi
12725 as_executable_p=$as_test_x
12726
12727 # Sed expression to map a string onto a valid CPP name.
12728 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12729
12730 # Sed expression to map a string onto a valid variable name.
12731 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12732
12733
12734 exec 6>&1
12735
12736 # Save the log message, to keep $[0] and so on meaningful, and to
12737 # report actual input values of CONFIG_FILES etc. instead of their
12738 # values after options handling.
12739 ac_log="
12740 This file was extended by $as_me, which was
12741 generated by GNU Autoconf 2.63.  Invocation command line was
12742
12743   CONFIG_FILES    = $CONFIG_FILES
12744   CONFIG_HEADERS  = $CONFIG_HEADERS
12745   CONFIG_LINKS    = $CONFIG_LINKS
12746   CONFIG_COMMANDS = $CONFIG_COMMANDS
12747   $ $0 $@
12748
12749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12750 "
12751
12752 _ACEOF
12753
12754 case $ac_config_files in *"
12755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12756 esac
12757
12758 case $ac_config_headers in *"
12759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12760 esac
12761
12762
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764 # Files that config.status was made for.
12765 config_files="$ac_config_files"
12766 config_headers="$ac_config_headers"
12767
12768 _ACEOF
12769
12770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12771 ac_cs_usage="\
12772 \`$as_me' instantiates files from templates according to the
12773 current configuration.
12774
12775 Usage: $0 [OPTION]... [FILE]...
12776
12777   -h, --help       print this help, then exit
12778   -V, --version    print version number and configuration settings, then exit
12779   -q, --quiet, --silent
12780                    do not print progress messages
12781   -d, --debug      don't remove temporary files
12782       --recheck    update $as_me by reconfiguring in the same conditions
12783       --file=FILE[:TEMPLATE]
12784                    instantiate the configuration file FILE
12785       --header=FILE[:TEMPLATE]
12786                    instantiate the configuration header FILE
12787
12788 Configuration files:
12789 $config_files
12790
12791 Configuration headers:
12792 $config_headers
12793
12794 Report bugs to <bug-autoconf@gnu.org>."
12795
12796 _ACEOF
12797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12798 ac_cs_version="\\
12799 config.status
12800 configured by $0, generated by GNU Autoconf 2.63,
12801   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12802
12803 Copyright (C) 2008 Free Software Foundation, Inc.
12804 This config.status script is free software; the Free Software Foundation
12805 gives unlimited permission to copy, distribute and modify it."
12806
12807 ac_pwd='$ac_pwd'
12808 srcdir='$srcdir'
12809 test -n "\$AWK" || AWK=awk
12810 _ACEOF
12811
12812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813 # The default lists apply if the user does not specify any file.
12814 ac_need_defaults=:
12815 while test $# != 0
12816 do
12817   case $1 in
12818   --*=*)
12819     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12820     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12821     ac_shift=:
12822     ;;
12823   *)
12824     ac_option=$1
12825     ac_optarg=$2
12826     ac_shift=shift
12827     ;;
12828   esac
12829
12830   case $ac_option in
12831   # Handling of the options.
12832   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12833     ac_cs_recheck=: ;;
12834   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12835     $as_echo "$ac_cs_version"; exit ;;
12836   --debug | --debu | --deb | --de | --d | -d )
12837     debug=: ;;
12838   --file | --fil | --fi | --f )
12839     $ac_shift
12840     case $ac_optarg in
12841     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12842     esac
12843     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12844     ac_need_defaults=false;;
12845   --header | --heade | --head | --hea )
12846     $ac_shift
12847     case $ac_optarg in
12848     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12849     esac
12850     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12851     ac_need_defaults=false;;
12852   --he | --h)
12853     # Conflict between --help and --header
12854     { $as_echo "$as_me: error: ambiguous option: $1
12855 Try \`$0 --help' for more information." >&2
12856    { (exit 1); exit 1; }; };;
12857   --help | --hel | -h )
12858     $as_echo "$ac_cs_usage"; exit ;;
12859   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12860   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12861     ac_cs_silent=: ;;
12862
12863   # This is an error.
12864   -*) { $as_echo "$as_me: error: unrecognized option: $1
12865 Try \`$0 --help' for more information." >&2
12866    { (exit 1); exit 1; }; } ;;
12867
12868   *) ac_config_targets="$ac_config_targets $1"
12869      ac_need_defaults=false ;;
12870
12871   esac
12872   shift
12873 done
12874
12875 ac_configure_extra_args=
12876
12877 if $ac_cs_silent; then
12878   exec 6>/dev/null
12879   ac_configure_extra_args="$ac_configure_extra_args --silent"
12880 fi
12881
12882 _ACEOF
12883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12884 if \$ac_cs_recheck; then
12885   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12886   shift
12887   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12888   CONFIG_SHELL='$SHELL'
12889   export CONFIG_SHELL
12890   exec "\$@"
12891 fi
12892
12893 _ACEOF
12894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895 exec 5>>config.log
12896 {
12897   echo
12898   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12899 ## Running $as_me. ##
12900 _ASBOX
12901   $as_echo "$ac_log"
12902 } >&5
12903
12904 _ACEOF
12905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12906 _ACEOF
12907
12908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12909
12910 # Handling of arguments.
12911 for ac_config_target in $ac_config_targets
12912 do
12913   case $ac_config_target in
12914     "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
12915     "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
12916
12917   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12918 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12919    { (exit 1); exit 1; }; };;
12920   esac
12921 done
12922
12923
12924 # If the user did not use the arguments to specify the items to instantiate,
12925 # then the envvar interface is used.  Set only those that are not.
12926 # We use the long form for the default assignment because of an extremely
12927 # bizarre bug on SunOS 4.1.3.
12928 if $ac_need_defaults; then
12929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12931 fi
12932
12933 # Have a temporary directory for convenience.  Make it in the build tree
12934 # simply because there is no reason against having it here, and in addition,
12935 # creating and moving files from /tmp can sometimes cause problems.
12936 # Hook for its removal unless debugging.
12937 # Note that there is a small window in which the directory will not be cleaned:
12938 # after its creation but before its name has been assigned to `$tmp'.
12939 $debug ||
12940 {
12941   tmp=
12942   trap 'exit_status=$?
12943   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12944 ' 0
12945   trap '{ (exit 1); exit 1; }' 1 2 13 15
12946 }
12947 # Create a (secure) tmp directory for tmp files.
12948
12949 {
12950   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12951   test -n "$tmp" && test -d "$tmp"
12952 }  ||
12953 {
12954   tmp=./conf$$-$RANDOM
12955   (umask 077 && mkdir "$tmp")
12956 } ||
12957 {
12958    $as_echo "$as_me: cannot create a temporary directory in ." >&2
12959    { (exit 1); exit 1; }
12960 }
12961
12962 # Set up the scripts for CONFIG_FILES section.
12963 # No need to generate them if there are no CONFIG_FILES.
12964 # This happens for instance with `./config.status config.h'.
12965 if test -n "$CONFIG_FILES"; then
12966
12967
12968 ac_cr='\r'
12969 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12970 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12971   ac_cs_awk_cr='\\r'
12972 else
12973   ac_cs_awk_cr=$ac_cr
12974 fi
12975
12976 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12977 _ACEOF
12978
12979
12980 {
12981   echo "cat >conf$$subs.awk <<_ACEOF" &&
12982   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12983   echo "_ACEOF"
12984 } >conf$$subs.sh ||
12985   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12986 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12987    { (exit 1); exit 1; }; }
12988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12989 ac_delim='%!_!# '
12990 for ac_last_try in false false false false false :; do
12991   . ./conf$$subs.sh ||
12992     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12993 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12994    { (exit 1); exit 1; }; }
12995
12996   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12997   if test $ac_delim_n = $ac_delim_num; then
12998     break
12999   elif $ac_last_try; then
13000     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13001 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13002    { (exit 1); exit 1; }; }
13003   else
13004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13005   fi
13006 done
13007 rm -f conf$$subs.sh
13008
13009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13011 _ACEOF
13012 sed -n '
13013 h
13014 s/^/S["/; s/!.*/"]=/
13015 p
13016 g
13017 s/^[^!]*!//
13018 :repl
13019 t repl
13020 s/'"$ac_delim"'$//
13021 t delim
13022 :nl
13023 h
13024 s/\(.\{148\}\).*/\1/
13025 t more1
13026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13027 p
13028 n
13029 b repl
13030 :more1
13031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13032 p
13033 g
13034 s/.\{148\}//
13035 t nl
13036 :delim
13037 h
13038 s/\(.\{148\}\).*/\1/
13039 t more2
13040 s/["\\]/\\&/g; s/^/"/; s/$/"/
13041 p
13042 b
13043 :more2
13044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13045 p
13046 g
13047 s/.\{148\}//
13048 t delim
13049 ' <conf$$subs.awk | sed '
13050 /^[^""]/{
13051   N
13052   s/\n//
13053 }
13054 ' >>$CONFIG_STATUS || ac_write_fail=1
13055 rm -f conf$$subs.awk
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13057 _ACAWK
13058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13059   for (key in S) S_is_set[key] = 1
13060   FS = "\a"
13061
13062 }
13063 {
13064   line = $ 0
13065   nfields = split(line, field, "@")
13066   substed = 0
13067   len = length(field[1])
13068   for (i = 2; i < nfields; i++) {
13069     key = field[i]
13070     keylen = length(key)
13071     if (S_is_set[key]) {
13072       value = S[key]
13073       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13074       len += length(value) + length(field[++i])
13075       substed = 1
13076     } else
13077       len += 1 + keylen
13078   }
13079
13080   print line
13081 }
13082
13083 _ACAWK
13084 _ACEOF
13085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13087   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13088 else
13089   cat
13090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13091   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13092 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13093    { (exit 1); exit 1; }; }
13094 _ACEOF
13095
13096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13098 # trailing colons and then remove the whole line if VPATH becomes empty
13099 # (actually we leave an empty line to preserve line numbers).
13100 if test "x$srcdir" = x.; then
13101   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13102 s/:*\$(srcdir):*/:/
13103 s/:*\${srcdir}:*/:/
13104 s/:*@srcdir@:*/:/
13105 s/^\([^=]*=[     ]*\):*/\1/
13106 s/:*$//
13107 s/^[^=]*=[       ]*$//
13108 }'
13109 fi
13110
13111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13112 fi # test -n "$CONFIG_FILES"
13113
13114 # Set up the scripts for CONFIG_HEADERS section.
13115 # No need to generate them if there are no CONFIG_HEADERS.
13116 # This happens for instance with `./config.status Makefile'.
13117 if test -n "$CONFIG_HEADERS"; then
13118 cat >"$tmp/defines.awk" <<\_ACAWK ||
13119 BEGIN {
13120 _ACEOF
13121
13122 # Transform confdefs.h into an awk script `defines.awk', embedded as
13123 # here-document in config.status, that substitutes the proper values into
13124 # config.h.in to produce config.h.
13125
13126 # Create a delimiter string that does not exist in confdefs.h, to ease
13127 # handling of long lines.
13128 ac_delim='%!_!# '
13129 for ac_last_try in false false :; do
13130   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13131   if test -z "$ac_t"; then
13132     break
13133   elif $ac_last_try; then
13134     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13135 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13136    { (exit 1); exit 1; }; }
13137   else
13138     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13139   fi
13140 done
13141
13142 # For the awk script, D is an array of macro values keyed by name,
13143 # likewise P contains macro parameters if any.  Preserve backslash
13144 # newline sequences.
13145
13146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13147 sed -n '
13148 s/.\{148\}/&'"$ac_delim"'/g
13149 t rset
13150 :rset
13151 s/^[     ]*#[    ]*define[       ][      ]*/ /
13152 t def
13153 d
13154 :def
13155 s/\\$//
13156 t bsnl
13157 s/["\\]/\\&/g
13158 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13159 D["\1"]=" \3"/p
13160 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13161 d
13162 :bsnl
13163 s/["\\]/\\&/g
13164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13165 D["\1"]=" \3\\\\\\n"\\/p
13166 t cont
13167 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13168 t cont
13169 d
13170 :cont
13171 n
13172 s/.\{148\}/&'"$ac_delim"'/g
13173 t clear
13174 :clear
13175 s/\\$//
13176 t bsnlc
13177 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13178 d
13179 :bsnlc
13180 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13181 b cont
13182 ' <confdefs.h | sed '
13183 s/'"$ac_delim"'/"\\\
13184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13185
13186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187   for (key in D) D_is_set[key] = 1
13188   FS = "\a"
13189 }
13190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13191   line = \$ 0
13192   split(line, arg, " ")
13193   if (arg[1] == "#") {
13194     defundef = arg[2]
13195     mac1 = arg[3]
13196   } else {
13197     defundef = substr(arg[1], 2)
13198     mac1 = arg[2]
13199   }
13200   split(mac1, mac2, "(") #)
13201   macro = mac2[1]
13202   prefix = substr(line, 1, index(line, defundef) - 1)
13203   if (D_is_set[macro]) {
13204     # Preserve the white space surrounding the "#".
13205     print prefix "define", macro P[macro] D[macro]
13206     next
13207   } else {
13208     # Replace #undef with comments.  This is necessary, for example,
13209     # in the case of _POSIX_SOURCE, which is predefined and required
13210     # on some systems where configure will not decide to define it.
13211     if (defundef == "undef") {
13212       print "/*", prefix defundef, macro, "*/"
13213       next
13214     }
13215   }
13216 }
13217 { print }
13218 _ACAWK
13219 _ACEOF
13220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13222 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13223    { (exit 1); exit 1; }; }
13224 fi # test -n "$CONFIG_HEADERS"
13225
13226
13227 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
13228 shift
13229 for ac_tag
13230 do
13231   case $ac_tag in
13232   :[FHLC]) ac_mode=$ac_tag; continue;;
13233   esac
13234   case $ac_mode$ac_tag in
13235   :[FHL]*:*);;
13236   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13237 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13238    { (exit 1); exit 1; }; };;
13239   :[FH]-) ac_tag=-:-;;
13240   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13241   esac
13242   ac_save_IFS=$IFS
13243   IFS=:
13244   set x $ac_tag
13245   IFS=$ac_save_IFS
13246   shift
13247   ac_file=$1
13248   shift
13249
13250   case $ac_mode in
13251   :L) ac_source=$1;;
13252   :[FH])
13253     ac_file_inputs=
13254     for ac_f
13255     do
13256       case $ac_f in
13257       -) ac_f="$tmp/stdin";;
13258       *) # Look for the file first in the build tree, then in the source tree
13259          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13260          # because $ac_f cannot contain `:'.
13261          test -f "$ac_f" ||
13262            case $ac_f in
13263            [\\/$]*) false;;
13264            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13265            esac ||
13266            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13267 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13268    { (exit 1); exit 1; }; };;
13269       esac
13270       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13271       ac_file_inputs="$ac_file_inputs '$ac_f'"
13272     done
13273
13274     # Let's still pretend it is `configure' which instantiates (i.e., don't
13275     # use $as_me), people would be surprised to read:
13276     #    /* config.h.  Generated by config.status.  */
13277     configure_input='Generated from '`
13278           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13279         `' by configure.'
13280     if test x"$ac_file" != x-; then
13281       configure_input="$ac_file.  $configure_input"
13282       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13283 $as_echo "$as_me: creating $ac_file" >&6;}
13284     fi
13285     # Neutralize special characters interpreted by sed in replacement strings.
13286     case $configure_input in #(
13287     *\&* | *\|* | *\\* )
13288        ac_sed_conf_input=`$as_echo "$configure_input" |
13289        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13290     *) ac_sed_conf_input=$configure_input;;
13291     esac
13292
13293     case $ac_tag in
13294     *:-:* | *:-) cat >"$tmp/stdin" \
13295       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13297    { (exit 1); exit 1; }; } ;;
13298     esac
13299     ;;
13300   esac
13301
13302   ac_dir=`$as_dirname -- "$ac_file" ||
13303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304          X"$ac_file" : 'X\(//\)[^/]' \| \
13305          X"$ac_file" : 'X\(//\)$' \| \
13306          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13307 $as_echo X"$ac_file" |
13308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13309             s//\1/
13310             q
13311           }
13312           /^X\(\/\/\)[^/].*/{
13313             s//\1/
13314             q
13315           }
13316           /^X\(\/\/\)$/{
13317             s//\1/
13318             q
13319           }
13320           /^X\(\/\).*/{
13321             s//\1/
13322             q
13323           }
13324           s/.*/./; q'`
13325   { as_dir="$ac_dir"
13326   case $as_dir in #(
13327   -*) as_dir=./$as_dir;;
13328   esac
13329   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13330     as_dirs=
13331     while :; do
13332       case $as_dir in #(
13333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13334       *) as_qdir=$as_dir;;
13335       esac
13336       as_dirs="'$as_qdir' $as_dirs"
13337       as_dir=`$as_dirname -- "$as_dir" ||
13338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13339          X"$as_dir" : 'X\(//\)[^/]' \| \
13340          X"$as_dir" : 'X\(//\)$' \| \
13341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13342 $as_echo X"$as_dir" |
13343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13344             s//\1/
13345             q
13346           }
13347           /^X\(\/\/\)[^/].*/{
13348             s//\1/
13349             q
13350           }
13351           /^X\(\/\/\)$/{
13352             s//\1/
13353             q
13354           }
13355           /^X\(\/\).*/{
13356             s//\1/
13357             q
13358           }
13359           s/.*/./; q'`
13360       test -d "$as_dir" && break
13361     done
13362     test -z "$as_dirs" || eval "mkdir $as_dirs"
13363   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13364 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13365    { (exit 1); exit 1; }; }; }
13366   ac_builddir=.
13367
13368 case "$ac_dir" in
13369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13370 *)
13371   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13372   # A ".." for each directory in $ac_dir_suffix.
13373   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13374   case $ac_top_builddir_sub in
13375   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13376   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13377   esac ;;
13378 esac
13379 ac_abs_top_builddir=$ac_pwd
13380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13381 # for backward compatibility:
13382 ac_top_builddir=$ac_top_build_prefix
13383
13384 case $srcdir in
13385   .)  # We are building in place.
13386     ac_srcdir=.
13387     ac_top_srcdir=$ac_top_builddir_sub
13388     ac_abs_top_srcdir=$ac_pwd ;;
13389   [\\/]* | ?:[\\/]* )  # Absolute name.
13390     ac_srcdir=$srcdir$ac_dir_suffix;
13391     ac_top_srcdir=$srcdir
13392     ac_abs_top_srcdir=$srcdir ;;
13393   *) # Relative name.
13394     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13395     ac_top_srcdir=$ac_top_build_prefix$srcdir
13396     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13397 esac
13398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13399
13400
13401   case $ac_mode in
13402   :F)
13403   #
13404   # CONFIG_FILE
13405   #
13406
13407 _ACEOF
13408
13409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13410 # If the template does not know about datarootdir, expand it.
13411 # FIXME: This hack should be removed a few years after 2.60.
13412 ac_datarootdir_hack=; ac_datarootdir_seen=
13413
13414 ac_sed_dataroot='
13415 /datarootdir/ {
13416   p
13417   q
13418 }
13419 /@datadir@/p
13420 /@docdir@/p
13421 /@infodir@/p
13422 /@localedir@/p
13423 /@mandir@/p
13424 '
13425 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13426 *datarootdir*) ac_datarootdir_seen=yes;;
13427 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13428   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13429 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13430 _ACEOF
13431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13432   ac_datarootdir_hack='
13433   s&@datadir@&$datadir&g
13434   s&@docdir@&$docdir&g
13435   s&@infodir@&$infodir&g
13436   s&@localedir@&$localedir&g
13437   s&@mandir@&$mandir&g
13438     s&\\\${datarootdir}&$datarootdir&g' ;;
13439 esac
13440 _ACEOF
13441
13442 # Neutralize VPATH when `$srcdir' = `.'.
13443 # Shell code in configure.ac might set extrasub.
13444 # FIXME: do we really want to maintain this feature?
13445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13446 ac_sed_extra="$ac_vpsub
13447 $extrasub
13448 _ACEOF
13449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13450 :t
13451 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13452 s|@configure_input@|$ac_sed_conf_input|;t t
13453 s&@top_builddir@&$ac_top_builddir_sub&;t t
13454 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13455 s&@srcdir@&$ac_srcdir&;t t
13456 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13457 s&@top_srcdir@&$ac_top_srcdir&;t t
13458 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13459 s&@builddir@&$ac_builddir&;t t
13460 s&@abs_builddir@&$ac_abs_builddir&;t t
13461 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13462 $ac_datarootdir_hack
13463 "
13464 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13465   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13466 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13467    { (exit 1); exit 1; }; }
13468
13469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13470   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13471   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13472   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13473 which seems to be undefined.  Please make sure it is defined." >&5
13474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13475 which seems to be undefined.  Please make sure it is defined." >&2;}
13476
13477   rm -f "$tmp/stdin"
13478   case $ac_file in
13479   -) cat "$tmp/out" && rm -f "$tmp/out";;
13480   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13481   esac \
13482   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13483 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13484    { (exit 1); exit 1; }; }
13485  ;;
13486   :H)
13487   #
13488   # CONFIG_HEADER
13489   #
13490   if test x"$ac_file" != x-; then
13491     {
13492       $as_echo "/* $configure_input  */" \
13493       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13494     } >"$tmp/config.h" \
13495       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13496 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13497    { (exit 1); exit 1; }; }
13498     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13499       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13500 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13501     else
13502       rm -f "$ac_file"
13503       mv "$tmp/config.h" "$ac_file" \
13504         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13505 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13506    { (exit 1); exit 1; }; }
13507     fi
13508   else
13509     $as_echo "/* $configure_input  */" \
13510       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13511       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13512 $as_echo "$as_me: error: could not create -" >&2;}
13513    { (exit 1); exit 1; }; }
13514   fi
13515  ;;
13516
13517
13518   esac
13519
13520 done # for ac_tag
13521
13522
13523 { (exit 0); exit 0; }
13524 _ACEOF
13525 chmod +x $CONFIG_STATUS
13526 ac_clean_files=$ac_clean_files_save
13527
13528 test $ac_write_fail = 0 ||
13529   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13530 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13531    { (exit 1); exit 1; }; }
13532
13533
13534 # configure is writing to config.log, and then calls config.status.
13535 # config.status does its own redirection, appending to config.log.
13536 # Unfortunately, on DOS this fails, as config.log is still kept open
13537 # by configure, so config.status won't be able to write to it; its
13538 # output is simply discarded.  So we exec the FD to /dev/null,
13539 # effectively closing config.log, so it can be properly (re)opened and
13540 # appended to by config.status.  When coming back to configure, we
13541 # need to make the FD available again.
13542 if test "$no_create" != yes; then
13543   ac_cs_success=:
13544   ac_config_status_args=
13545   test "$silent" = yes &&
13546     ac_config_status_args="$ac_config_status_args --quiet"
13547   exec 5>/dev/null
13548   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13549   exec 5>>config.log
13550   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13551   # would make configure fail if this is the last instruction.
13552   $ac_cs_success || { (exit 1); exit 1; }
13553 fi
13554 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13555   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13556 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13557 fi
13558
13559
13560     if test -n "$OPTIONAL"; then
13561         echo
13562         echo "WARNING: Please consider installing optional programs: $OPTIONAL"
13563     fi
13564
13565     if test -n "$REQUIRED"; then
13566         echo
13567         echo "ERROR: Please install required programs: $REQUIRED"
13568     fi
13569
13570     if test -n "$UNSUPPORTED"; then
13571         echo
13572         echo "ERROR: Please use older version of programs: $UNSUPPORTED"
13573     fi
13574
13575     if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
13576         echo
13577         echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
13578         if test -f config.cache ; then
13579             echo "Remove config.cache before rerunning ./configure"
13580         fi
13581     fi
13582
13583     if test -n "$REQUIRED$UNSUPPORTED"; then
13584         rm -f $srcdir/GNUmakefile
13585         exit 1
13586     fi
13587
13588     # regular in-place build
13589     # test for srcdir_build = yes ?
13590     if test "$srcdir_build" = "yes"; then
13591         rm -f $srcdir/GNUmakefile
13592         cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
13593         chmod 444 $srcdir/GNUmakefile
13594     else
13595         if test -f $srcdir/GNUmakefile; then
13596             cat <<EOF
13597 Source directory already configured.  Please clean the source directory
13598
13599      make -C $srcdir distclean
13600
13601 and rerun configure.
13602 EOF
13603             exit 2
13604         fi
13605
13606         for d in 2 3 4 ; do
13607             for mf in `cd $srcdir ; find -maxdepth $d -mindepth $d -name GNUmakefile`; do
13608                 mkdir -p $(dirname $mf)
13609                 cat <<EOF | $PYTHON -  > $mf
13610 print 'depth=' + ('../' * ( $d-1 ) )
13611 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
13612 print 'include \$(configure-srcdir)/$mf'
13613 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
13614 EOF
13615             done
13616             for mf in `cd $srcdir ; find -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
13617                 mkdir -p $(dirname $mf)
13618                 cat <<EOF | $PYTHON -  > $mf
13619 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
13620 print 'include \$(configure-srcdir)/$mf'
13621 EOF
13622             done
13623         done
13624
13625
13626         cat <<EOF > GNUmakefile
13627 depth = ./
13628 include config\$(if \$(conf),-\$(conf),).make
13629 include \$(configure-srcdir)/GNUmakefile.in
13630 EOF
13631
13632     fi
13633
13634
13635 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
13636
13637 if make top-doc 1>/dev/null 2>&1; then
13638     rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
13639     rm -f README.txt && ln Documentation/topdocs/out/README.txt .
13640 fi
13641
13642 cat <<EOF
13643
13644 Type:
13645     make$mc all       to build LilyPond
13646     make$mc install   to install LilyPond
13647     make$mc help      to see all possible targets
13648
13649 Edit local.make for local Makefile overrides.
13650
13651
13652 EOF