c989d16745fd59a52056427e52ae509d7e293e8a
[chise/chise-base.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for chise-base 0.23.
4 #
5 # Report bugs to <chise-en@m17n.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='chise-base'
576 PACKAGE_TARNAME='chise-base'
577 PACKAGE_VERSION='0.23'
578 PACKAGE_STRING='chise-base 0.23'
579 PACKAGE_BUGREPORT='chise-en@m17n.org'
580
581 ac_subst_vars='SHELL
582 PATH_SEPARATOR
583 PACKAGE_NAME
584 PACKAGE_TARNAME
585 PACKAGE_VERSION
586 PACKAGE_STRING
587 PACKAGE_BUGREPORT
588 exec_prefix
589 prefix
590 program_transform_name
591 bindir
592 sbindir
593 libexecdir
594 datarootdir
595 datadir
596 sysconfdir
597 sharedstatedir
598 localstatedir
599 includedir
600 oldincludedir
601 docdir
602 infodir
603 htmldir
604 dvidir
605 pdfdir
606 psdir
607 libdir
608 localedir
609 mandir
610 DEFS
611 ECHO_C
612 ECHO_N
613 ECHO_T
614 LIBS
615 build_alias
616 host_alias
617 target_alias
618 build
619 build_cpu
620 build_vendor
621 build_os
622 host
623 host_cpu
624 host_vendor
625 host_os
626 target
627 target_cpu
628 target_vendor
629 target_os
630 ac_configure_args
631 xemacs_site_includes
632 xemacs_site_libraries
633 xemacs_opts
634 cvs_root
635 lemi_cvs_root
636 LIBOBJS
637 LTLIBOBJS'
638 ac_subst_files=''
639       ac_precious_vars='build_alias
640 host_alias
641 target_alias'
642
643
644 # Initialize some variables set by options.
645 ac_init_help=
646 ac_init_version=false
647 # The variables have the same names as the options, with
648 # dashes changed to underlines.
649 cache_file=/dev/null
650 exec_prefix=NONE
651 no_create=
652 no_recursion=
653 prefix=NONE
654 program_prefix=NONE
655 program_suffix=NONE
656 program_transform_name=s,x,x,
657 silent=
658 site=
659 srcdir=
660 verbose=
661 x_includes=NONE
662 x_libraries=NONE
663
664 # Installation directory options.
665 # These are left unexpanded so users can "make install exec_prefix=/foo"
666 # and all the variables that are supposed to be based on exec_prefix
667 # by default will actually change.
668 # Use braces instead of parens because sh, perl, etc. also accept them.
669 # (The list follows the same order as the GNU Coding Standards.)
670 bindir='${exec_prefix}/bin'
671 sbindir='${exec_prefix}/sbin'
672 libexecdir='${exec_prefix}/libexec'
673 datarootdir='${prefix}/share'
674 datadir='${datarootdir}'
675 sysconfdir='${prefix}/etc'
676 sharedstatedir='${prefix}/com'
677 localstatedir='${prefix}/var'
678 includedir='${prefix}/include'
679 oldincludedir='/usr/include'
680 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
681 infodir='${datarootdir}/info'
682 htmldir='${docdir}'
683 dvidir='${docdir}'
684 pdfdir='${docdir}'
685 psdir='${docdir}'
686 libdir='${exec_prefix}/lib'
687 localedir='${datarootdir}/locale'
688 mandir='${datarootdir}/man'
689
690 ac_prev=
691 ac_dashdash=
692 for ac_option
693 do
694   # If the previous option needs an argument, assign it.
695   if test -n "$ac_prev"; then
696     eval $ac_prev=\$ac_option
697     ac_prev=
698     continue
699   fi
700
701   case $ac_option in
702   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
703   *)    ac_optarg=yes ;;
704   esac
705
706   # Accept the important Cygnus configure options, so we can diagnose typos.
707
708   case $ac_dashdash$ac_option in
709   --)
710     ac_dashdash=yes ;;
711
712   -bindir | --bindir | --bindi | --bind | --bin | --bi)
713     ac_prev=bindir ;;
714   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
715     bindir=$ac_optarg ;;
716
717   -build | --build | --buil | --bui | --bu)
718     ac_prev=build_alias ;;
719   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
720     build_alias=$ac_optarg ;;
721
722   -cache-file | --cache-file | --cache-fil | --cache-fi \
723   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
724     ac_prev=cache_file ;;
725   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
726   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
727     cache_file=$ac_optarg ;;
728
729   --config-cache | -C)
730     cache_file=config.cache ;;
731
732   -datadir | --datadir | --datadi | --datad)
733     ac_prev=datadir ;;
734   -datadir=* | --datadir=* | --datadi=* | --datad=*)
735     datadir=$ac_optarg ;;
736
737   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
738   | --dataroo | --dataro | --datar)
739     ac_prev=datarootdir ;;
740   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
741   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
742     datarootdir=$ac_optarg ;;
743
744   -disable-* | --disable-*)
745     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
749    { (exit 1); exit 1; }; }
750     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
751     eval enable_$ac_feature=no ;;
752
753   -docdir | --docdir | --docdi | --doc | --do)
754     ac_prev=docdir ;;
755   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
756     docdir=$ac_optarg ;;
757
758   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
759     ac_prev=dvidir ;;
760   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
761     dvidir=$ac_optarg ;;
762
763   -enable-* | --enable-*)
764     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
768    { (exit 1); exit 1; }; }
769     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
770     eval enable_$ac_feature=\$ac_optarg ;;
771
772   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
773   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
774   | --exec | --exe | --ex)
775     ac_prev=exec_prefix ;;
776   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
777   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
778   | --exec=* | --exe=* | --ex=*)
779     exec_prefix=$ac_optarg ;;
780
781   -gas | --gas | --ga | --g)
782     # Obsolete; use --with-gas.
783     with_gas=yes ;;
784
785   -help | --help | --hel | --he | -h)
786     ac_init_help=long ;;
787   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
788     ac_init_help=recursive ;;
789   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
790     ac_init_help=short ;;
791
792   -host | --host | --hos | --ho)
793     ac_prev=host_alias ;;
794   -host=* | --host=* | --hos=* | --ho=*)
795     host_alias=$ac_optarg ;;
796
797   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
798     ac_prev=htmldir ;;
799   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
800   | --ht=*)
801     htmldir=$ac_optarg ;;
802
803   -includedir | --includedir | --includedi | --included | --include \
804   | --includ | --inclu | --incl | --inc)
805     ac_prev=includedir ;;
806   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
807   | --includ=* | --inclu=* | --incl=* | --inc=*)
808     includedir=$ac_optarg ;;
809
810   -infodir | --infodir | --infodi | --infod | --info | --inf)
811     ac_prev=infodir ;;
812   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
813     infodir=$ac_optarg ;;
814
815   -libdir | --libdir | --libdi | --libd)
816     ac_prev=libdir ;;
817   -libdir=* | --libdir=* | --libdi=* | --libd=*)
818     libdir=$ac_optarg ;;
819
820   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
821   | --libexe | --libex | --libe)
822     ac_prev=libexecdir ;;
823   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
824   | --libexe=* | --libex=* | --libe=*)
825     libexecdir=$ac_optarg ;;
826
827   -localedir | --localedir | --localedi | --localed | --locale)
828     ac_prev=localedir ;;
829   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
830     localedir=$ac_optarg ;;
831
832   -localstatedir | --localstatedir | --localstatedi | --localstated \
833   | --localstate | --localstat | --localsta | --localst | --locals)
834     ac_prev=localstatedir ;;
835   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
836   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
837     localstatedir=$ac_optarg ;;
838
839   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
840     ac_prev=mandir ;;
841   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
842     mandir=$ac_optarg ;;
843
844   -nfp | --nfp | --nf)
845     # Obsolete; use --without-fp.
846     with_fp=no ;;
847
848   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
849   | --no-cr | --no-c | -n)
850     no_create=yes ;;
851
852   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
853   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
854     no_recursion=yes ;;
855
856   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
857   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
858   | --oldin | --oldi | --old | --ol | --o)
859     ac_prev=oldincludedir ;;
860   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
861   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
862   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
863     oldincludedir=$ac_optarg ;;
864
865   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
866     ac_prev=prefix ;;
867   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
868     prefix=$ac_optarg ;;
869
870   -program-prefix | --program-prefix | --program-prefi | --program-pref \
871   | --program-pre | --program-pr | --program-p)
872     ac_prev=program_prefix ;;
873   -program-prefix=* | --program-prefix=* | --program-prefi=* \
874   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
875     program_prefix=$ac_optarg ;;
876
877   -program-suffix | --program-suffix | --program-suffi | --program-suff \
878   | --program-suf | --program-su | --program-s)
879     ac_prev=program_suffix ;;
880   -program-suffix=* | --program-suffix=* | --program-suffi=* \
881   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
882     program_suffix=$ac_optarg ;;
883
884   -program-transform-name | --program-transform-name \
885   | --program-transform-nam | --program-transform-na \
886   | --program-transform-n | --program-transform- \
887   | --program-transform | --program-transfor \
888   | --program-transfo | --program-transf \
889   | --program-trans | --program-tran \
890   | --progr-tra | --program-tr | --program-t)
891     ac_prev=program_transform_name ;;
892   -program-transform-name=* | --program-transform-name=* \
893   | --program-transform-nam=* | --program-transform-na=* \
894   | --program-transform-n=* | --program-transform-=* \
895   | --program-transform=* | --program-transfor=* \
896   | --program-transfo=* | --program-transf=* \
897   | --program-trans=* | --program-tran=* \
898   | --progr-tra=* | --program-tr=* | --program-t=*)
899     program_transform_name=$ac_optarg ;;
900
901   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
902     ac_prev=pdfdir ;;
903   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
904     pdfdir=$ac_optarg ;;
905
906   -psdir | --psdir | --psdi | --psd | --ps)
907     ac_prev=psdir ;;
908   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
909     psdir=$ac_optarg ;;
910
911   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
912   | -silent | --silent | --silen | --sile | --sil)
913     silent=yes ;;
914
915   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
916     ac_prev=sbindir ;;
917   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
918   | --sbi=* | --sb=*)
919     sbindir=$ac_optarg ;;
920
921   -sharedstatedir | --sharedstatedir | --sharedstatedi \
922   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
923   | --sharedst | --shareds | --shared | --share | --shar \
924   | --sha | --sh)
925     ac_prev=sharedstatedir ;;
926   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
927   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
928   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
929   | --sha=* | --sh=*)
930     sharedstatedir=$ac_optarg ;;
931
932   -site | --site | --sit)
933     ac_prev=site ;;
934   -site=* | --site=* | --sit=*)
935     site=$ac_optarg ;;
936
937   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
938     ac_prev=srcdir ;;
939   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
940     srcdir=$ac_optarg ;;
941
942   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
943   | --syscon | --sysco | --sysc | --sys | --sy)
944     ac_prev=sysconfdir ;;
945   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
946   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
947     sysconfdir=$ac_optarg ;;
948
949   -target | --target | --targe | --targ | --tar | --ta | --t)
950     ac_prev=target_alias ;;
951   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
952     target_alias=$ac_optarg ;;
953
954   -v | -verbose | --verbose | --verbos | --verbo | --verb)
955     verbose=yes ;;
956
957   -version | --version | --versio | --versi | --vers | -V)
958     ac_init_version=: ;;
959
960   -with-* | --with-*)
961     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
964       { echo "$as_me: error: invalid package name: $ac_package" >&2
965    { (exit 1); exit 1; }; }
966     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
967     eval with_$ac_package=\$ac_optarg ;;
968
969   -without-* | --without-*)
970     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
973       { echo "$as_me: error: invalid package name: $ac_package" >&2
974    { (exit 1); exit 1; }; }
975     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
976     eval with_$ac_package=no ;;
977
978   --x)
979     # Obsolete; use --with-x.
980     with_x=yes ;;
981
982   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
983   | --x-incl | --x-inc | --x-in | --x-i)
984     ac_prev=x_includes ;;
985   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
986   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
987     x_includes=$ac_optarg ;;
988
989   -x-libraries | --x-libraries | --x-librarie | --x-librari \
990   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
991     ac_prev=x_libraries ;;
992   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
993   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
994     x_libraries=$ac_optarg ;;
995
996   -*) { echo "$as_me: error: unrecognized option: $ac_option
997 Try \`$0 --help' for more information." >&2
998    { (exit 1); exit 1; }; }
999     ;;
1000
1001   *=*)
1002     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1005       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1006    { (exit 1); exit 1; }; }
1007     eval $ac_envvar=\$ac_optarg
1008     export $ac_envvar ;;
1009
1010   *)
1011     # FIXME: should be removed in autoconf 3.0.
1012     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1013     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1015     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1016     ;;
1017
1018   esac
1019 done
1020
1021 if test -n "$ac_prev"; then
1022   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1023   { echo "$as_me: error: missing argument to $ac_option" >&2
1024    { (exit 1); exit 1; }; }
1025 fi
1026
1027 # Be sure to have absolute directory names.
1028 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1029                 datadir sysconfdir sharedstatedir localstatedir includedir \
1030                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1031                 libdir localedir mandir
1032 do
1033   eval ac_val=\$$ac_var
1034   case $ac_val in
1035     [\\/$]* | ?:[\\/]* )  continue;;
1036     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1037   esac
1038   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1039    { (exit 1); exit 1; }; }
1040 done
1041
1042 # There might be people who depend on the old broken behavior: `$host'
1043 # used to hold the argument of --host etc.
1044 # FIXME: To remove some day.
1045 build=$build_alias
1046 host=$host_alias
1047 target=$target_alias
1048
1049 # FIXME: To remove some day.
1050 if test "x$host_alias" != x; then
1051   if test "x$build_alias" = x; then
1052     cross_compiling=maybe
1053     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1054     If a cross compiler is detected then cross compile mode will be used." >&2
1055   elif test "x$build_alias" != "x$host_alias"; then
1056     cross_compiling=yes
1057   fi
1058 fi
1059
1060 ac_tool_prefix=
1061 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1062
1063 test "$silent" = yes && exec 6>/dev/null
1064
1065
1066 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1067 ac_ls_di=`ls -di .` &&
1068 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1069   { echo "$as_me: error: Working directory cannot be determined" >&2
1070    { (exit 1); exit 1; }; }
1071 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1072   { echo "$as_me: error: pwd does not report name of working directory" >&2
1073    { (exit 1); exit 1; }; }
1074
1075
1076 # Find the source files, if location was not specified.
1077 if test -z "$srcdir"; then
1078   ac_srcdir_defaulted=yes
1079   # Try the directory containing this script, then the parent directory.
1080   ac_confdir=`$as_dirname -- "$0" ||
1081 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1082          X"$0" : 'X\(//\)[^/]' \| \
1083          X"$0" : 'X\(//\)$' \| \
1084          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1085 echo X"$0" |
1086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1087             s//\1/
1088             q
1089           }
1090           /^X\(\/\/\)[^/].*/{
1091             s//\1/
1092             q
1093           }
1094           /^X\(\/\/\)$/{
1095             s//\1/
1096             q
1097           }
1098           /^X\(\/\).*/{
1099             s//\1/
1100             q
1101           }
1102           s/.*/./; q'`
1103   srcdir=$ac_confdir
1104   if test ! -r "$srcdir/$ac_unique_file"; then
1105     srcdir=..
1106   fi
1107 else
1108   ac_srcdir_defaulted=no
1109 fi
1110 if test ! -r "$srcdir/$ac_unique_file"; then
1111   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1112   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1113    { (exit 1); exit 1; }; }
1114 fi
1115 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1116 ac_abs_confdir=`(
1117         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1118    { (exit 1); exit 1; }; }
1119         pwd)`
1120 # When building in place, set srcdir=.
1121 if test "$ac_abs_confdir" = "$ac_pwd"; then
1122   srcdir=.
1123 fi
1124 # Remove unnecessary trailing slashes from srcdir.
1125 # Double slashes in file names in object file debugging info
1126 # mess up M-x gdb in Emacs.
1127 case $srcdir in
1128 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1129 esac
1130 for ac_var in $ac_precious_vars; do
1131   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1132   eval ac_env_${ac_var}_value=\$${ac_var}
1133   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1134   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1135 done
1136
1137 #
1138 # Report the --help message.
1139 #
1140 if test "$ac_init_help" = "long"; then
1141   # Omit some internal or obsolete options to make the list less imposing.
1142   # This message is too long to be a string in the A/UX 3.1 sh.
1143   cat <<_ACEOF
1144 \`configure' configures chise-base 0.23 to adapt to many kinds of systems.
1145
1146 Usage: $0 [OPTION]... [VAR=VALUE]...
1147
1148 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1149 VAR=VALUE.  See below for descriptions of some of the useful variables.
1150
1151 Defaults for the options are specified in brackets.
1152
1153 Configuration:
1154   -h, --help              display this help and exit
1155       --help=short        display options specific to this package
1156       --help=recursive    display the short help of all the included packages
1157   -V, --version           display version information and exit
1158   -q, --quiet, --silent   do not print \`checking...' messages
1159       --cache-file=FILE   cache test results in FILE [disabled]
1160   -C, --config-cache      alias for \`--cache-file=config.cache'
1161   -n, --no-create         do not create output files
1162       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1163
1164 Installation directories:
1165   --prefix=PREFIX         install architecture-independent files in PREFIX
1166                           [$ac_default_prefix]
1167   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1168                           [PREFIX]
1169
1170 By default, \`make install' will install all the files in
1171 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1172 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1173 for instance \`--prefix=\$HOME'.
1174
1175 For better control, use the options below.
1176
1177 Fine tuning of the installation directories:
1178   --bindir=DIR           user executables [EPREFIX/bin]
1179   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1180   --libexecdir=DIR       program executables [EPREFIX/libexec]
1181   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1182   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1183   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1184   --libdir=DIR           object code libraries [EPREFIX/lib]
1185   --includedir=DIR       C header files [PREFIX/include]
1186   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1187   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1188   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1189   --infodir=DIR          info documentation [DATAROOTDIR/info]
1190   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1191   --mandir=DIR           man documentation [DATAROOTDIR/man]
1192   --docdir=DIR           documentation root [DATAROOTDIR/doc/chise-base]
1193   --htmldir=DIR          html documentation [DOCDIR]
1194   --dvidir=DIR           dvi documentation [DOCDIR]
1195   --pdfdir=DIR           pdf documentation [DOCDIR]
1196   --psdir=DIR            ps documentation [DOCDIR]
1197 _ACEOF
1198
1199   cat <<\_ACEOF
1200
1201 System types:
1202   --build=BUILD     configure for building on BUILD [guessed]
1203   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1204   --target=TARGET   configure for building compilers for TARGET [HOST]
1205 _ACEOF
1206 fi
1207
1208 if test -n "$ac_init_help"; then
1209   case $ac_init_help in
1210      short | recursive ) echo "Configuration of chise-base 0.23:";;
1211    esac
1212   cat <<\_ACEOF
1213
1214 Report bugs to <chise-en@m17n.org>.
1215 _ACEOF
1216 ac_status=$?
1217 fi
1218
1219 if test "$ac_init_help" = "recursive"; then
1220   # If there are subdirs, report their specific --help.
1221   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1222     test -d "$ac_dir" || continue
1223     ac_builddir=.
1224
1225 case "$ac_dir" in
1226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1227 *)
1228   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1229   # A ".." for each directory in $ac_dir_suffix.
1230   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1231   case $ac_top_builddir_sub in
1232   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1233   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1234   esac ;;
1235 esac
1236 ac_abs_top_builddir=$ac_pwd
1237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1238 # for backward compatibility:
1239 ac_top_builddir=$ac_top_build_prefix
1240
1241 case $srcdir in
1242   .)  # We are building in place.
1243     ac_srcdir=.
1244     ac_top_srcdir=$ac_top_builddir_sub
1245     ac_abs_top_srcdir=$ac_pwd ;;
1246   [\\/]* | ?:[\\/]* )  # Absolute name.
1247     ac_srcdir=$srcdir$ac_dir_suffix;
1248     ac_top_srcdir=$srcdir
1249     ac_abs_top_srcdir=$srcdir ;;
1250   *) # Relative name.
1251     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1252     ac_top_srcdir=$ac_top_build_prefix$srcdir
1253     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1254 esac
1255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1256
1257     cd "$ac_dir" || { ac_status=$?; continue; }
1258     # Check for guested configure.
1259     if test -f "$ac_srcdir/configure.gnu"; then
1260       echo &&
1261       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1262     elif test -f "$ac_srcdir/configure"; then
1263       echo &&
1264       $SHELL "$ac_srcdir/configure" --help=recursive
1265     else
1266       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1267     fi || ac_status=$?
1268     cd "$ac_pwd" || { ac_status=$?; break; }
1269   done
1270 fi
1271
1272 test -n "$ac_init_help" && exit $ac_status
1273 if $ac_init_version; then
1274   cat <<\_ACEOF
1275 chise-base configure 0.23
1276 generated by GNU Autoconf 2.61
1277
1278 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1279 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1280 This configure script is free software; the Free Software Foundation
1281 gives unlimited permission to copy, distribute and modify it.
1282 _ACEOF
1283   exit
1284 fi
1285 cat >config.log <<_ACEOF
1286 This file contains any messages produced by compilers while
1287 running configure, to aid debugging if configure makes a mistake.
1288
1289 It was created by chise-base $as_me 0.23, which was
1290 generated by GNU Autoconf 2.61.  Invocation command line was
1291
1292   $ $0 $@
1293
1294 _ACEOF
1295 exec 5>>config.log
1296 {
1297 cat <<_ASUNAME
1298 ## --------- ##
1299 ## Platform. ##
1300 ## --------- ##
1301
1302 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1303 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1304 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1305 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1306 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1307
1308 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1309 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1310
1311 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1312 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1313 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1314 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1315 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1316 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1317 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1318
1319 _ASUNAME
1320
1321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 for as_dir in $PATH
1323 do
1324   IFS=$as_save_IFS
1325   test -z "$as_dir" && as_dir=.
1326   echo "PATH: $as_dir"
1327 done
1328 IFS=$as_save_IFS
1329
1330 } >&5
1331
1332 cat >&5 <<_ACEOF
1333
1334
1335 ## ----------- ##
1336 ## Core tests. ##
1337 ## ----------- ##
1338
1339 _ACEOF
1340
1341
1342 # Keep a trace of the command line.
1343 # Strip out --no-create and --no-recursion so they do not pile up.
1344 # Strip out --silent because we don't want to record it for future runs.
1345 # Also quote any args containing shell meta-characters.
1346 # Make two passes to allow for proper duplicate-argument suppression.
1347 ac_configure_args=
1348 ac_configure_args0=
1349 ac_configure_args1=
1350 ac_must_keep_next=false
1351 for ac_pass in 1 2
1352 do
1353   for ac_arg
1354   do
1355     case $ac_arg in
1356     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1357     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1358     | -silent | --silent | --silen | --sile | --sil)
1359       continue ;;
1360     *\'*)
1361       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1362     esac
1363     case $ac_pass in
1364     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1365     2)
1366       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1367       if test $ac_must_keep_next = true; then
1368         ac_must_keep_next=false # Got value, back to normal.
1369       else
1370         case $ac_arg in
1371           *=* | --config-cache | -C | -disable-* | --disable-* \
1372           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1373           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1374           | -with-* | --with-* | -without-* | --without-* | --x)
1375             case "$ac_configure_args0 " in
1376               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1377             esac
1378             ;;
1379           -* ) ac_must_keep_next=true ;;
1380         esac
1381       fi
1382       ac_configure_args="$ac_configure_args '$ac_arg'"
1383       ;;
1384     esac
1385   done
1386 done
1387 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1388 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1389
1390 # When interrupted or exit'd, cleanup temporary files, and complete
1391 # config.log.  We remove comments because anyway the quotes in there
1392 # would cause problems or look ugly.
1393 # WARNING: Use '\'' to represent an apostrophe within the trap.
1394 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1395 trap 'exit_status=$?
1396   # Save into config.log some information that might help in debugging.
1397   {
1398     echo
1399
1400     cat <<\_ASBOX
1401 ## ---------------- ##
1402 ## Cache variables. ##
1403 ## ---------------- ##
1404 _ASBOX
1405     echo
1406     # The following way of writing the cache mishandles newlines in values,
1407 (
1408   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1409     eval ac_val=\$$ac_var
1410     case $ac_val in #(
1411     *${as_nl}*)
1412       case $ac_var in #(
1413       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1414 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1415       esac
1416       case $ac_var in #(
1417       _ | IFS | as_nl) ;; #(
1418       *) $as_unset $ac_var ;;
1419       esac ;;
1420     esac
1421   done
1422   (set) 2>&1 |
1423     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1424     *${as_nl}ac_space=\ *)
1425       sed -n \
1426         "s/'\''/'\''\\\\'\'''\''/g;
1427           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1428       ;; #(
1429     *)
1430       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1431       ;;
1432     esac |
1433     sort
1434 )
1435     echo
1436
1437     cat <<\_ASBOX
1438 ## ----------------- ##
1439 ## Output variables. ##
1440 ## ----------------- ##
1441 _ASBOX
1442     echo
1443     for ac_var in $ac_subst_vars
1444     do
1445       eval ac_val=\$$ac_var
1446       case $ac_val in
1447       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1448       esac
1449       echo "$ac_var='\''$ac_val'\''"
1450     done | sort
1451     echo
1452
1453     if test -n "$ac_subst_files"; then
1454       cat <<\_ASBOX
1455 ## ------------------- ##
1456 ## File substitutions. ##
1457 ## ------------------- ##
1458 _ASBOX
1459       echo
1460       for ac_var in $ac_subst_files
1461       do
1462         eval ac_val=\$$ac_var
1463         case $ac_val in
1464         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1465         esac
1466         echo "$ac_var='\''$ac_val'\''"
1467       done | sort
1468       echo
1469     fi
1470
1471     if test -s confdefs.h; then
1472       cat <<\_ASBOX
1473 ## ----------- ##
1474 ## confdefs.h. ##
1475 ## ----------- ##
1476 _ASBOX
1477       echo
1478       cat confdefs.h
1479       echo
1480     fi
1481     test "$ac_signal" != 0 &&
1482       echo "$as_me: caught signal $ac_signal"
1483     echo "$as_me: exit $exit_status"
1484   } >&5
1485   rm -f core *.core core.conftest.* &&
1486     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1487     exit $exit_status
1488 ' 0
1489 for ac_signal in 1 2 13 15; do
1490   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1491 done
1492 ac_signal=0
1493
1494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1495 rm -f -r conftest* confdefs.h
1496
1497 # Predefined preprocessor variables.
1498
1499 cat >>confdefs.h <<_ACEOF
1500 #define PACKAGE_NAME "$PACKAGE_NAME"
1501 _ACEOF
1502
1503
1504 cat >>confdefs.h <<_ACEOF
1505 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1506 _ACEOF
1507
1508
1509 cat >>confdefs.h <<_ACEOF
1510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1511 _ACEOF
1512
1513
1514 cat >>confdefs.h <<_ACEOF
1515 #define PACKAGE_STRING "$PACKAGE_STRING"
1516 _ACEOF
1517
1518
1519 cat >>confdefs.h <<_ACEOF
1520 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1521 _ACEOF
1522
1523
1524 # Let the site file select an alternate cache file if it wants to.
1525 # Prefer explicitly selected file to automatically selected ones.
1526 if test -n "$CONFIG_SITE"; then
1527   set x "$CONFIG_SITE"
1528 elif test "x$prefix" != xNONE; then
1529   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1530 else
1531   set x "$ac_default_prefix/share/config.site" \
1532         "$ac_default_prefix/etc/config.site"
1533 fi
1534 shift
1535 for ac_site_file
1536 do
1537   if test -r "$ac_site_file"; then
1538     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1539 echo "$as_me: loading site script $ac_site_file" >&6;}
1540     sed 's/^/| /' "$ac_site_file" >&5
1541     . "$ac_site_file"
1542   fi
1543 done
1544
1545 if test -r "$cache_file"; then
1546   # Some versions of bash will fail to source /dev/null (special
1547   # files actually), so we avoid doing that.
1548   if test -f "$cache_file"; then
1549     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1550 echo "$as_me: loading cache $cache_file" >&6;}
1551     case $cache_file in
1552       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1553       *)                      . "./$cache_file";;
1554     esac
1555   fi
1556 else
1557   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1558 echo "$as_me: creating cache $cache_file" >&6;}
1559   >$cache_file
1560 fi
1561
1562 # Check that the precious variables saved in the cache have kept the same
1563 # value.
1564 ac_cache_corrupted=false
1565 for ac_var in $ac_precious_vars; do
1566   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1567   eval ac_new_set=\$ac_env_${ac_var}_set
1568   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1569   eval ac_new_val=\$ac_env_${ac_var}_value
1570   case $ac_old_set,$ac_new_set in
1571     set,)
1572       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1573 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1574       ac_cache_corrupted=: ;;
1575     ,set)
1576       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1577 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1578       ac_cache_corrupted=: ;;
1579     ,);;
1580     *)
1581       if test "x$ac_old_val" != "x$ac_new_val"; then
1582         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1583 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1584         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1585 echo "$as_me:   former value:  $ac_old_val" >&2;}
1586         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1587 echo "$as_me:   current value: $ac_new_val" >&2;}
1588         ac_cache_corrupted=:
1589       fi;;
1590   esac
1591   # Pass precious variables to config.status.
1592   if test "$ac_new_set" = set; then
1593     case $ac_new_val in
1594     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1595     *) ac_arg=$ac_var=$ac_new_val ;;
1596     esac
1597     case " $ac_configure_args " in
1598       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1599       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1600     esac
1601   fi
1602 done
1603 if $ac_cache_corrupted; then
1604   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1605 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1606   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1607 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1608    { (exit 1); exit 1; }; }
1609 fi
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635 ac_ext=c
1636 ac_cpp='$CPP $CPPFLAGS'
1637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643 ac_aux_dir=
1644 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1645   if test -f "$ac_dir/install-sh"; then
1646     ac_aux_dir=$ac_dir
1647     ac_install_sh="$ac_aux_dir/install-sh -c"
1648     break
1649   elif test -f "$ac_dir/install.sh"; then
1650     ac_aux_dir=$ac_dir
1651     ac_install_sh="$ac_aux_dir/install.sh -c"
1652     break
1653   elif test -f "$ac_dir/shtool"; then
1654     ac_aux_dir=$ac_dir
1655     ac_install_sh="$ac_aux_dir/shtool install -c"
1656     break
1657   fi
1658 done
1659 if test -z "$ac_aux_dir"; then
1660   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1661 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1662    { (exit 1); exit 1; }; }
1663 fi
1664
1665 # These three variables are undocumented and unsupported,
1666 # and are intended to be withdrawn in a future Autoconf release.
1667 # They can cause serious problems if a builder's source tree is in a directory
1668 # whose full name contains unusual characters.
1669 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1670 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1671 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1672
1673
1674 # Make sure we can run config.sub.
1675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1676   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1677 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1678    { (exit 1); exit 1; }; }
1679
1680 { echo "$as_me:$LINENO: checking build system type" >&5
1681 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1682 if test "${ac_cv_build+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   ac_build_alias=$build_alias
1686 test "x$ac_build_alias" = x &&
1687   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1688 test "x$ac_build_alias" = x &&
1689   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1690 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1691    { (exit 1); exit 1; }; }
1692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1693   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1694 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 fi
1698 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1699 echo "${ECHO_T}$ac_cv_build" >&6; }
1700 case $ac_cv_build in
1701 *-*-*) ;;
1702 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1703 echo "$as_me: error: invalid value of canonical build" >&2;}
1704    { (exit 1); exit 1; }; };;
1705 esac
1706 build=$ac_cv_build
1707 ac_save_IFS=$IFS; IFS='-'
1708 set x $ac_cv_build
1709 shift
1710 build_cpu=$1
1711 build_vendor=$2
1712 shift; shift
1713 # Remember, the first character of IFS is used to create $*,
1714 # except with old shells:
1715 build_os=$*
1716 IFS=$ac_save_IFS
1717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1718
1719
1720 { echo "$as_me:$LINENO: checking host system type" >&5
1721 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1722 if test "${ac_cv_host+set}" = set; then
1723   echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725   if test "x$host_alias" = x; then
1726   ac_cv_host=$ac_cv_build
1727 else
1728   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1729     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1730 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1731    { (exit 1); exit 1; }; }
1732 fi
1733
1734 fi
1735 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1736 echo "${ECHO_T}$ac_cv_host" >&6; }
1737 case $ac_cv_host in
1738 *-*-*) ;;
1739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1740 echo "$as_me: error: invalid value of canonical host" >&2;}
1741    { (exit 1); exit 1; }; };;
1742 esac
1743 host=$ac_cv_host
1744 ac_save_IFS=$IFS; IFS='-'
1745 set x $ac_cv_host
1746 shift
1747 host_cpu=$1
1748 host_vendor=$2
1749 shift; shift
1750 # Remember, the first character of IFS is used to create $*,
1751 # except with old shells:
1752 host_os=$*
1753 IFS=$ac_save_IFS
1754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1755
1756
1757 { echo "$as_me:$LINENO: checking target system type" >&5
1758 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_target+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test "x$target_alias" = x; then
1763   ac_cv_target=$ac_cv_host
1764 else
1765   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1766     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1768    { (exit 1); exit 1; }; }
1769 fi
1770
1771 fi
1772 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1773 echo "${ECHO_T}$ac_cv_target" >&6; }
1774 case $ac_cv_target in
1775 *-*-*) ;;
1776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1777 echo "$as_me: error: invalid value of canonical target" >&2;}
1778    { (exit 1); exit 1; }; };;
1779 esac
1780 target=$ac_cv_target
1781 ac_save_IFS=$IFS; IFS='-'
1782 set x $ac_cv_target
1783 shift
1784 target_cpu=$1
1785 target_vendor=$2
1786 shift; shift
1787 # Remember, the first character of IFS is used to create $*,
1788 # except with old shells:
1789 target_os=$*
1790 IFS=$ac_save_IFS
1791 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1792
1793
1794 # The aliases save the names the user supplied, while $host etc.
1795 # will get canonicalized.
1796 test -n "$target_alias" &&
1797   test "$program_prefix$program_suffix$program_transform_name" = \
1798     NONENONEs,x,x, &&
1799   program_prefix=${target_alias}-
1800
1801 # Checks for programs.
1802 # AC_PROG_CC
1803 # AC_PROG_LIBTOOL
1804 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
1805 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
1806
1807
1808
1809
1810
1811
1812
1813
1814 if test -f CVS/Root; then
1815         cvs_root=`cat CVS/Root`
1816         lemi_cvs_root=`cat CVS/Root|sed 's/chise/root/'`
1817 else
1818         cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/chise'
1819         lemi_cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/root'
1820 fi
1821
1822 # Checks for libraries.
1823 if test -d /sw/include; then
1824         xemacs_site_includes="/sw/include"
1825         xemacs_site_libraries="/sw/lib"
1826         xemacs_opts="--with-dialogs=athena --with-widgets=athena --with-athena=3d"
1827
1828         if test -f /sw/include/db3/db.h; then
1829                 xemacs_site_includes="$xemacs_site_includes:/sw/include/db3"
1830         elif test -f /sw/include/db4/db.h; then
1831                 xemacs_site_includes="$xemacs_site_includes:/sw/include/db4"
1832         fi
1833         if test -d /sw/include/canna; then
1834                 xemacs_opts="$xemacs_opts --with-canna"
1835         fi
1836 fi
1837
1838 if test "$xemacs_site_includes" != ""; then
1839         xemacs_opts="$xemacs_opts --site-includes=$xemacs_site_includes"
1840 fi
1841
1842 if test "$xemacs_site_libraries" != ""; then
1843         xemacs_opts="$xemacs_opts --site-libraries=$xemacs_site_libraries"
1844 fi
1845
1846 # Checks for header files.
1847
1848 # Checks for typedefs, structures, and compiler characteristics.
1849 #AC_C_CONST
1850 #AC_C_INLINE
1851
1852 # Checks for library functions.
1853 #AC_FUNC_ALLOCA
1854 #AC_FUNC_STRNLEN
1855
1856 #AC_CHECK_FUNCS(strnlen)
1857
1858 ac_config_files="$ac_config_files Makefile"
1859
1860 cat >confcache <<\_ACEOF
1861 # This file is a shell script that caches the results of configure
1862 # tests run on this system so they can be shared between configure
1863 # scripts and configure runs, see configure's option --config-cache.
1864 # It is not useful on other systems.  If it contains results you don't
1865 # want to keep, you may remove or edit it.
1866 #
1867 # config.status only pays attention to the cache file if you give it
1868 # the --recheck option to rerun configure.
1869 #
1870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
1871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1872 # following values.
1873
1874 _ACEOF
1875
1876 # The following way of writing the cache mishandles newlines in values,
1877 # but we know of no workaround that is simple, portable, and efficient.
1878 # So, we kill variables containing newlines.
1879 # Ultrix sh set writes to stderr and can't be redirected directly,
1880 # and sets the high bit in the cache file unless we assign to the vars.
1881 (
1882   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1883     eval ac_val=\$$ac_var
1884     case $ac_val in #(
1885     *${as_nl}*)
1886       case $ac_var in #(
1887       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1888 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1889       esac
1890       case $ac_var in #(
1891       _ | IFS | as_nl) ;; #(
1892       *) $as_unset $ac_var ;;
1893       esac ;;
1894     esac
1895   done
1896
1897   (set) 2>&1 |
1898     case $as_nl`(ac_space=' '; set) 2>&1` in #(
1899     *${as_nl}ac_space=\ *)
1900       # `set' does not quote correctly, so add quotes (double-quote
1901       # substitution turns \\\\ into \\, and sed turns \\ into \).
1902       sed -n \
1903         "s/'/'\\\\''/g;
1904           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1905       ;; #(
1906     *)
1907       # `set' quotes correctly as required by POSIX, so do not add quotes.
1908       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909       ;;
1910     esac |
1911     sort
1912 ) |
1913   sed '
1914      /^ac_cv_env_/b end
1915      t clear
1916      :clear
1917      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1918      t end
1919      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1920      :end' >>confcache
1921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1922   if test -w "$cache_file"; then
1923     test "x$cache_file" != "x/dev/null" &&
1924       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
1925 echo "$as_me: updating cache $cache_file" >&6;}
1926     cat confcache >$cache_file
1927   else
1928     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
1929 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1930   fi
1931 fi
1932 rm -f confcache
1933
1934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1935 # Let make expand exec_prefix.
1936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1937
1938 # Transform confdefs.h into DEFS.
1939 # Protect against shell expansion while executing Makefile rules.
1940 # Protect against Makefile macro expansion.
1941 #
1942 # If the first sed substitution is executed (which looks for macros that
1943 # take arguments), then branch to the quote section.  Otherwise,
1944 # look for a macro that doesn't take arguments.
1945 ac_script='
1946 t clear
1947 :clear
1948 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
1949 t quote
1950 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
1951 t quote
1952 b any
1953 :quote
1954 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
1955 s/\[/\\&/g
1956 s/\]/\\&/g
1957 s/\$/$$/g
1958 H
1959 :any
1960 ${
1961         g
1962         s/^\n//
1963         s/\n/ /g
1964         p
1965 }
1966 '
1967 DEFS=`sed -n "$ac_script" confdefs.h`
1968
1969
1970 ac_libobjs=
1971 ac_ltlibobjs=
1972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1973   # 1. Remove the extension, and $U if already installed.
1974   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1975   ac_i=`echo "$ac_i" | sed "$ac_script"`
1976   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1977   #    will be set to the directory where LIBOBJS objects are built.
1978   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1979   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1980 done
1981 LIBOBJS=$ac_libobjs
1982
1983 LTLIBOBJS=$ac_ltlibobjs
1984
1985
1986
1987 : ${CONFIG_STATUS=./config.status}
1988 ac_clean_files_save=$ac_clean_files
1989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1992 cat >$CONFIG_STATUS <<_ACEOF
1993 #! $SHELL
1994 # Generated by $as_me.
1995 # Run this file to recreate the current configuration.
1996 # Compiler output produced by configure, useful for debugging
1997 # configure, is in config.log if it exists.
1998
1999 debug=false
2000 ac_cs_recheck=false
2001 ac_cs_silent=false
2002 SHELL=\${CONFIG_SHELL-$SHELL}
2003 _ACEOF
2004
2005 cat >>$CONFIG_STATUS <<\_ACEOF
2006 ## --------------------- ##
2007 ## M4sh Initialization.  ##
2008 ## --------------------- ##
2009
2010 # Be more Bourne compatible
2011 DUALCASE=1; export DUALCASE # for MKS sh
2012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2013   emulate sh
2014   NULLCMD=:
2015   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2016   # is contrary to our usage.  Disable this feature.
2017   alias -g '${1+"$@"}'='"$@"'
2018   setopt NO_GLOB_SUBST
2019 else
2020   case `(set -o) 2>/dev/null` in
2021   *posix*) set -o posix ;;
2022 esac
2023
2024 fi
2025
2026
2027
2028
2029 # PATH needs CR
2030 # Avoid depending upon Character Ranges.
2031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2034 as_cr_digits='0123456789'
2035 as_cr_alnum=$as_cr_Letters$as_cr_digits
2036
2037 # The user is always right.
2038 if test "${PATH_SEPARATOR+set}" != set; then
2039   echo "#! /bin/sh" >conf$$.sh
2040   echo  "exit 0"   >>conf$$.sh
2041   chmod +x conf$$.sh
2042   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2043     PATH_SEPARATOR=';'
2044   else
2045     PATH_SEPARATOR=:
2046   fi
2047   rm -f conf$$.sh
2048 fi
2049
2050 # Support unset when possible.
2051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2052   as_unset=unset
2053 else
2054   as_unset=false
2055 fi
2056
2057
2058 # IFS
2059 # We need space, tab and new line, in precisely that order.  Quoting is
2060 # there to prevent editors from complaining about space-tab.
2061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2062 # splitting by setting IFS to empty value.)
2063 as_nl='
2064 '
2065 IFS=" ""        $as_nl"
2066
2067 # Find who we are.  Look in the path if we contain no directory separator.
2068 case $0 in
2069   *[\\/]* ) as_myself=$0 ;;
2070   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2076 done
2077 IFS=$as_save_IFS
2078
2079      ;;
2080 esac
2081 # We did not find ourselves, most probably we were run as `sh COMMAND'
2082 # in which case we are not to be found in the path.
2083 if test "x$as_myself" = x; then
2084   as_myself=$0
2085 fi
2086 if test ! -f "$as_myself"; then
2087   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2088   { (exit 1); exit 1; }
2089 fi
2090
2091 # Work around bugs in pre-3.0 UWIN ksh.
2092 for as_var in ENV MAIL MAILPATH
2093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2094 done
2095 PS1='$ '
2096 PS2='> '
2097 PS4='+ '
2098
2099 # NLS nuisances.
2100 for as_var in \
2101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2103   LC_TELEPHONE LC_TIME
2104 do
2105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2106     eval $as_var=C; export $as_var
2107   else
2108     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2109   fi
2110 done
2111
2112 # Required to use basename.
2113 if expr a : '\(a\)' >/dev/null 2>&1 &&
2114    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2115   as_expr=expr
2116 else
2117   as_expr=false
2118 fi
2119
2120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2121   as_basename=basename
2122 else
2123   as_basename=false
2124 fi
2125
2126
2127 # Name of the executable.
2128 as_me=`$as_basename -- "$0" ||
2129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2130          X"$0" : 'X\(//\)$' \| \
2131          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2132 echo X/"$0" |
2133     sed '/^.*\/\([^/][^/]*\)\/*$/{
2134             s//\1/
2135             q
2136           }
2137           /^X\/\(\/\/\)$/{
2138             s//\1/
2139             q
2140           }
2141           /^X\/\(\/\).*/{
2142             s//\1/
2143             q
2144           }
2145           s/.*/./; q'`
2146
2147 # CDPATH.
2148 $as_unset CDPATH
2149
2150
2151
2152   as_lineno_1=$LINENO
2153   as_lineno_2=$LINENO
2154   test "x$as_lineno_1" != "x$as_lineno_2" &&
2155   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2156
2157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2158   # uniformly replaced by the line number.  The first 'sed' inserts a
2159   # line-number line after each line using $LINENO; the second 'sed'
2160   # does the real work.  The second script uses 'N' to pair each
2161   # line-number line with the line containing $LINENO, and appends
2162   # trailing '-' during substitution so that $LINENO is not a special
2163   # case at line end.
2164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2165   # scripts with optimization help from Paolo Bonzini.  Blame Lee
2166   # E. McMahon (1931-1989) for sed's syntax.  :-)
2167   sed -n '
2168     p
2169     /[$]LINENO/=
2170   ' <$as_myself |
2171     sed '
2172       s/[$]LINENO.*/&-/
2173       t lineno
2174       b
2175       :lineno
2176       N
2177       :loop
2178       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2179       t loop
2180       s/-\n.*//
2181     ' >$as_me.lineno &&
2182   chmod +x "$as_me.lineno" ||
2183     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2184    { (exit 1); exit 1; }; }
2185
2186   # Don't try to exec as it changes $[0], causing all sort of problems
2187   # (the dirname of $[0] is not the place where we might find the
2188   # original and so on.  Autoconf is especially sensitive to this).
2189   . "./$as_me.lineno"
2190   # Exit status is that of the last command.
2191   exit
2192 }
2193
2194
2195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2196   as_dirname=dirname
2197 else
2198   as_dirname=false
2199 fi
2200
2201 ECHO_C= ECHO_N= ECHO_T=
2202 case `echo -n x` in
2203 -n*)
2204   case `echo 'x\c'` in
2205   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
2206   *)   ECHO_C='\c';;
2207   esac;;
2208 *)
2209   ECHO_N='-n';;
2210 esac
2211
2212 if expr a : '\(a\)' >/dev/null 2>&1 &&
2213    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2214   as_expr=expr
2215 else
2216   as_expr=false
2217 fi
2218
2219 rm -f conf$$ conf$$.exe conf$$.file
2220 if test -d conf$$.dir; then
2221   rm -f conf$$.dir/conf$$.file
2222 else
2223   rm -f conf$$.dir
2224   mkdir conf$$.dir
2225 fi
2226 echo >conf$$.file
2227 if ln -s conf$$.file conf$$ 2>/dev/null; then
2228   as_ln_s='ln -s'
2229   # ... but there are two gotchas:
2230   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2231   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2232   # In both cases, we have to default to `cp -p'.
2233   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2234     as_ln_s='cp -p'
2235 elif ln conf$$.file conf$$ 2>/dev/null; then
2236   as_ln_s=ln
2237 else
2238   as_ln_s='cp -p'
2239 fi
2240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2241 rmdir conf$$.dir 2>/dev/null
2242
2243 if mkdir -p . 2>/dev/null; then
2244   as_mkdir_p=:
2245 else
2246   test -d ./-p && rmdir ./-p
2247   as_mkdir_p=false
2248 fi
2249
2250 if test -x / >/dev/null 2>&1; then
2251   as_test_x='test -x'
2252 else
2253   if ls -dL / >/dev/null 2>&1; then
2254     as_ls_L_option=L
2255   else
2256     as_ls_L_option=
2257   fi
2258   as_test_x='
2259     eval sh -c '\''
2260       if test -d "$1"; then
2261         test -d "$1/.";
2262       else
2263         case $1 in
2264         -*)set "./$1";;
2265         esac;
2266         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2267         ???[sx]*):;;*)false;;esac;fi
2268     '\'' sh
2269   '
2270 fi
2271 as_executable_p=$as_test_x
2272
2273 # Sed expression to map a string onto a valid CPP name.
2274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2275
2276 # Sed expression to map a string onto a valid variable name.
2277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2278
2279
2280 exec 6>&1
2281
2282 # Save the log message, to keep $[0] and so on meaningful, and to
2283 # report actual input values of CONFIG_FILES etc. instead of their
2284 # values after options handling.
2285 ac_log="
2286 This file was extended by chise-base $as_me 0.23, which was
2287 generated by GNU Autoconf 2.61.  Invocation command line was
2288
2289   CONFIG_FILES    = $CONFIG_FILES
2290   CONFIG_HEADERS  = $CONFIG_HEADERS
2291   CONFIG_LINKS    = $CONFIG_LINKS
2292   CONFIG_COMMANDS = $CONFIG_COMMANDS
2293   $ $0 $@
2294
2295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2296 "
2297
2298 _ACEOF
2299
2300 cat >>$CONFIG_STATUS <<_ACEOF
2301 # Files that config.status was made for.
2302 config_files="$ac_config_files"
2303
2304 _ACEOF
2305
2306 cat >>$CONFIG_STATUS <<\_ACEOF
2307 ac_cs_usage="\
2308 \`$as_me' instantiates files from templates according to the
2309 current configuration.
2310
2311 Usage: $0 [OPTIONS] [FILE]...
2312
2313   -h, --help       print this help, then exit
2314   -V, --version    print version number and configuration settings, then exit
2315   -q, --quiet      do not print progress messages
2316   -d, --debug      don't remove temporary files
2317       --recheck    update $as_me by reconfiguring in the same conditions
2318   --file=FILE[:TEMPLATE]
2319                    instantiate the configuration file FILE
2320
2321 Configuration files:
2322 $config_files
2323
2324 Report bugs to <bug-autoconf@gnu.org>."
2325
2326 _ACEOF
2327 cat >>$CONFIG_STATUS <<_ACEOF
2328 ac_cs_version="\\
2329 chise-base config.status 0.23
2330 configured by $0, generated by GNU Autoconf 2.61,
2331   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2332
2333 Copyright (C) 2006 Free Software Foundation, Inc.
2334 This config.status script is free software; the Free Software Foundation
2335 gives unlimited permission to copy, distribute and modify it."
2336
2337 ac_pwd='$ac_pwd'
2338 srcdir='$srcdir'
2339 _ACEOF
2340
2341 cat >>$CONFIG_STATUS <<\_ACEOF
2342 # If no file are specified by the user, then we need to provide default
2343 # value.  By we need to know if files were specified by the user.
2344 ac_need_defaults=:
2345 while test $# != 0
2346 do
2347   case $1 in
2348   --*=*)
2349     ac_option=`expr "X$1" : 'X\([^=]*\)='`
2350     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2351     ac_shift=:
2352     ;;
2353   *)
2354     ac_option=$1
2355     ac_optarg=$2
2356     ac_shift=shift
2357     ;;
2358   esac
2359
2360   case $ac_option in
2361   # Handling of the options.
2362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2363     ac_cs_recheck=: ;;
2364   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2365     echo "$ac_cs_version"; exit ;;
2366   --debug | --debu | --deb | --de | --d | -d )
2367     debug=: ;;
2368   --file | --fil | --fi | --f )
2369     $ac_shift
2370     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2371     ac_need_defaults=false;;
2372   --he | --h |  --help | --hel | -h )
2373     echo "$ac_cs_usage"; exit ;;
2374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2376     ac_cs_silent=: ;;
2377
2378   # This is an error.
2379   -*) { echo "$as_me: error: unrecognized option: $1
2380 Try \`$0 --help' for more information." >&2
2381    { (exit 1); exit 1; }; } ;;
2382
2383   *) ac_config_targets="$ac_config_targets $1"
2384      ac_need_defaults=false ;;
2385
2386   esac
2387   shift
2388 done
2389
2390 ac_configure_extra_args=
2391
2392 if $ac_cs_silent; then
2393   exec 6>/dev/null
2394   ac_configure_extra_args="$ac_configure_extra_args --silent"
2395 fi
2396
2397 _ACEOF
2398 cat >>$CONFIG_STATUS <<_ACEOF
2399 if \$ac_cs_recheck; then
2400   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2401   CONFIG_SHELL=$SHELL
2402   export CONFIG_SHELL
2403   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2404 fi
2405
2406 _ACEOF
2407 cat >>$CONFIG_STATUS <<\_ACEOF
2408 exec 5>>config.log
2409 {
2410   echo
2411   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2412 ## Running $as_me. ##
2413 _ASBOX
2414   echo "$ac_log"
2415 } >&5
2416
2417 _ACEOF
2418 cat >>$CONFIG_STATUS <<_ACEOF
2419 _ACEOF
2420
2421 cat >>$CONFIG_STATUS <<\_ACEOF
2422
2423 # Handling of arguments.
2424 for ac_config_target in $ac_config_targets
2425 do
2426   case $ac_config_target in
2427     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2428
2429   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2431    { (exit 1); exit 1; }; };;
2432   esac
2433 done
2434
2435
2436 # If the user did not use the arguments to specify the items to instantiate,
2437 # then the envvar interface is used.  Set only those that are not.
2438 # We use the long form for the default assignment because of an extremely
2439 # bizarre bug on SunOS 4.1.3.
2440 if $ac_need_defaults; then
2441   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2442 fi
2443
2444 # Have a temporary directory for convenience.  Make it in the build tree
2445 # simply because there is no reason against having it here, and in addition,
2446 # creating and moving files from /tmp can sometimes cause problems.
2447 # Hook for its removal unless debugging.
2448 # Note that there is a small window in which the directory will not be cleaned:
2449 # after its creation but before its name has been assigned to `$tmp'.
2450 $debug ||
2451 {
2452   tmp=
2453   trap 'exit_status=$?
2454   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2455 ' 0
2456   trap '{ (exit 1); exit 1; }' 1 2 13 15
2457 }
2458 # Create a (secure) tmp directory for tmp files.
2459
2460 {
2461   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2462   test -n "$tmp" && test -d "$tmp"
2463 }  ||
2464 {
2465   tmp=./conf$$-$RANDOM
2466   (umask 077 && mkdir "$tmp")
2467 } ||
2468 {
2469    echo "$me: cannot create a temporary directory in ." >&2
2470    { (exit 1); exit 1; }
2471 }
2472
2473 #
2474 # Set up the sed scripts for CONFIG_FILES section.
2475 #
2476
2477 # No need to generate the scripts if there are no CONFIG_FILES.
2478 # This happens for instance when ./config.status config.h
2479 if test -n "$CONFIG_FILES"; then
2480
2481 _ACEOF
2482
2483
2484
2485 ac_delim='%!_!# '
2486 for ac_last_try in false false false false false :; do
2487   cat >conf$$subs.sed <<_ACEOF
2488 SHELL!$SHELL$ac_delim
2489 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
2490 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
2491 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
2492 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
2493 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
2494 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
2495 exec_prefix!$exec_prefix$ac_delim
2496 prefix!$prefix$ac_delim
2497 program_transform_name!$program_transform_name$ac_delim
2498 bindir!$bindir$ac_delim
2499 sbindir!$sbindir$ac_delim
2500 libexecdir!$libexecdir$ac_delim
2501 datarootdir!$datarootdir$ac_delim
2502 datadir!$datadir$ac_delim
2503 sysconfdir!$sysconfdir$ac_delim
2504 sharedstatedir!$sharedstatedir$ac_delim
2505 localstatedir!$localstatedir$ac_delim
2506 includedir!$includedir$ac_delim
2507 oldincludedir!$oldincludedir$ac_delim
2508 docdir!$docdir$ac_delim
2509 infodir!$infodir$ac_delim
2510 htmldir!$htmldir$ac_delim
2511 dvidir!$dvidir$ac_delim
2512 pdfdir!$pdfdir$ac_delim
2513 psdir!$psdir$ac_delim
2514 libdir!$libdir$ac_delim
2515 localedir!$localedir$ac_delim
2516 mandir!$mandir$ac_delim
2517 DEFS!$DEFS$ac_delim
2518 ECHO_C!$ECHO_C$ac_delim
2519 ECHO_N!$ECHO_N$ac_delim
2520 ECHO_T!$ECHO_T$ac_delim
2521 LIBS!$LIBS$ac_delim
2522 build_alias!$build_alias$ac_delim
2523 host_alias!$host_alias$ac_delim
2524 target_alias!$target_alias$ac_delim
2525 build!$build$ac_delim
2526 build_cpu!$build_cpu$ac_delim
2527 build_vendor!$build_vendor$ac_delim
2528 build_os!$build_os$ac_delim
2529 host!$host$ac_delim
2530 host_cpu!$host_cpu$ac_delim
2531 host_vendor!$host_vendor$ac_delim
2532 host_os!$host_os$ac_delim
2533 target!$target$ac_delim
2534 target_cpu!$target_cpu$ac_delim
2535 target_vendor!$target_vendor$ac_delim
2536 target_os!$target_os$ac_delim
2537 ac_configure_args!$ac_configure_args$ac_delim
2538 xemacs_site_includes!$xemacs_site_includes$ac_delim
2539 xemacs_site_libraries!$xemacs_site_libraries$ac_delim
2540 xemacs_opts!$xemacs_opts$ac_delim
2541 cvs_root!$cvs_root$ac_delim
2542 lemi_cvs_root!$lemi_cvs_root$ac_delim
2543 LIBOBJS!$LIBOBJS$ac_delim
2544 LTLIBOBJS!$LTLIBOBJS$ac_delim
2545 _ACEOF
2546
2547   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
2548     break
2549   elif $ac_last_try; then
2550     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2551 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2552    { (exit 1); exit 1; }; }
2553   else
2554     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2555   fi
2556 done
2557
2558 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
2559 if test -n "$ac_eof"; then
2560   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
2561   ac_eof=`expr $ac_eof + 1`
2562 fi
2563
2564 cat >>$CONFIG_STATUS <<_ACEOF
2565 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
2566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
2567 _ACEOF
2568 sed '
2569 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2570 s/^/s,@/; s/!/@,|#_!!_#|/
2571 :n
2572 t n
2573 s/'"$ac_delim"'$/,g/; t
2574 s/$/\\/; p
2575 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
2576 ' >>$CONFIG_STATUS <conf$$subs.sed
2577 rm -f conf$$subs.sed
2578 cat >>$CONFIG_STATUS <<_ACEOF
2579 :end
2580 s/|#_!!_#|//g
2581 CEOF$ac_eof
2582 _ACEOF
2583
2584
2585 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2586 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2587 # trailing colons and then remove the whole line if VPATH becomes empty
2588 # (actually we leave an empty line to preserve line numbers).
2589 if test "x$srcdir" = x.; then
2590   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2591 s/:*\$(srcdir):*/:/
2592 s/:*\${srcdir}:*/:/
2593 s/:*@srcdir@:*/:/
2594 s/^\([^=]*=[     ]*\):*/\1/
2595 s/:*$//
2596 s/^[^=]*=[       ]*$//
2597 }'
2598 fi
2599
2600 cat >>$CONFIG_STATUS <<\_ACEOF
2601 fi # test -n "$CONFIG_FILES"
2602
2603
2604 for ac_tag in  :F $CONFIG_FILES
2605 do
2606   case $ac_tag in
2607   :[FHLC]) ac_mode=$ac_tag; continue;;
2608   esac
2609   case $ac_mode$ac_tag in
2610   :[FHL]*:*);;
2611   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
2612 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
2613    { (exit 1); exit 1; }; };;
2614   :[FH]-) ac_tag=-:-;;
2615   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2616   esac
2617   ac_save_IFS=$IFS
2618   IFS=:
2619   set x $ac_tag
2620   IFS=$ac_save_IFS
2621   shift
2622   ac_file=$1
2623   shift
2624
2625   case $ac_mode in
2626   :L) ac_source=$1;;
2627   :[FH])
2628     ac_file_inputs=
2629     for ac_f
2630     do
2631       case $ac_f in
2632       -) ac_f="$tmp/stdin";;
2633       *) # Look for the file first in the build tree, then in the source tree
2634          # (if the path is not absolute).  The absolute path cannot be DOS-style,
2635          # because $ac_f cannot contain `:'.
2636          test -f "$ac_f" ||
2637            case $ac_f in
2638            [\\/$]*) false;;
2639            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2640            esac ||
2641            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2642 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2643    { (exit 1); exit 1; }; };;
2644       esac
2645       ac_file_inputs="$ac_file_inputs $ac_f"
2646     done
2647
2648     # Let's still pretend it is `configure' which instantiates (i.e., don't
2649     # use $as_me), people would be surprised to read:
2650     #    /* config.h.  Generated by config.status.  */
2651     configure_input="Generated from "`IFS=:
2652           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
2653     if test x"$ac_file" != x-; then
2654       configure_input="$ac_file.  $configure_input"
2655       { echo "$as_me:$LINENO: creating $ac_file" >&5
2656 echo "$as_me: creating $ac_file" >&6;}
2657     fi
2658
2659     case $ac_tag in
2660     *:-:* | *:-) cat >"$tmp/stdin";;
2661     esac
2662     ;;
2663   esac
2664
2665   ac_dir=`$as_dirname -- "$ac_file" ||
2666 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2667          X"$ac_file" : 'X\(//\)[^/]' \| \
2668          X"$ac_file" : 'X\(//\)$' \| \
2669          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2670 echo X"$ac_file" |
2671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2672             s//\1/
2673             q
2674           }
2675           /^X\(\/\/\)[^/].*/{
2676             s//\1/
2677             q
2678           }
2679           /^X\(\/\/\)$/{
2680             s//\1/
2681             q
2682           }
2683           /^X\(\/\).*/{
2684             s//\1/
2685             q
2686           }
2687           s/.*/./; q'`
2688   { as_dir="$ac_dir"
2689   case $as_dir in #(
2690   -*) as_dir=./$as_dir;;
2691   esac
2692   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2693     as_dirs=
2694     while :; do
2695       case $as_dir in #(
2696       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
2697       *) as_qdir=$as_dir;;
2698       esac
2699       as_dirs="'$as_qdir' $as_dirs"
2700       as_dir=`$as_dirname -- "$as_dir" ||
2701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2702          X"$as_dir" : 'X\(//\)[^/]' \| \
2703          X"$as_dir" : 'X\(//\)$' \| \
2704          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2705 echo X"$as_dir" |
2706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2707             s//\1/
2708             q
2709           }
2710           /^X\(\/\/\)[^/].*/{
2711             s//\1/
2712             q
2713           }
2714           /^X\(\/\/\)$/{
2715             s//\1/
2716             q
2717           }
2718           /^X\(\/\).*/{
2719             s//\1/
2720             q
2721           }
2722           s/.*/./; q'`
2723       test -d "$as_dir" && break
2724     done
2725     test -z "$as_dirs" || eval "mkdir $as_dirs"
2726   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2727 echo "$as_me: error: cannot create directory $as_dir" >&2;}
2728    { (exit 1); exit 1; }; }; }
2729   ac_builddir=.
2730
2731 case "$ac_dir" in
2732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2733 *)
2734   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2735   # A ".." for each directory in $ac_dir_suffix.
2736   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2737   case $ac_top_builddir_sub in
2738   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2739   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2740   esac ;;
2741 esac
2742 ac_abs_top_builddir=$ac_pwd
2743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2744 # for backward compatibility:
2745 ac_top_builddir=$ac_top_build_prefix
2746
2747 case $srcdir in
2748   .)  # We are building in place.
2749     ac_srcdir=.
2750     ac_top_srcdir=$ac_top_builddir_sub
2751     ac_abs_top_srcdir=$ac_pwd ;;
2752   [\\/]* | ?:[\\/]* )  # Absolute name.
2753     ac_srcdir=$srcdir$ac_dir_suffix;
2754     ac_top_srcdir=$srcdir
2755     ac_abs_top_srcdir=$srcdir ;;
2756   *) # Relative name.
2757     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2758     ac_top_srcdir=$ac_top_build_prefix$srcdir
2759     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2760 esac
2761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2762
2763
2764   case $ac_mode in
2765   :F)
2766   #
2767   # CONFIG_FILE
2768   #
2769
2770 _ACEOF
2771
2772 cat >>$CONFIG_STATUS <<\_ACEOF
2773 # If the template does not know about datarootdir, expand it.
2774 # FIXME: This hack should be removed a few years after 2.60.
2775 ac_datarootdir_hack=; ac_datarootdir_seen=
2776
2777 case `sed -n '/datarootdir/ {
2778   p
2779   q
2780 }
2781 /@datadir@/p
2782 /@docdir@/p
2783 /@infodir@/p
2784 /@localedir@/p
2785 /@mandir@/p
2786 ' $ac_file_inputs` in
2787 *datarootdir*) ac_datarootdir_seen=yes;;
2788 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2789   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
2790 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2791 _ACEOF
2792 cat >>$CONFIG_STATUS <<_ACEOF
2793   ac_datarootdir_hack='
2794   s&@datadir@&$datadir&g
2795   s&@docdir@&$docdir&g
2796   s&@infodir@&$infodir&g
2797   s&@localedir@&$localedir&g
2798   s&@mandir@&$mandir&g
2799     s&\\\${datarootdir}&$datarootdir&g' ;;
2800 esac
2801 _ACEOF
2802
2803 # Neutralize VPATH when `$srcdir' = `.'.
2804 # Shell code in configure.ac might set extrasub.
2805 # FIXME: do we really want to maintain this feature?
2806 cat >>$CONFIG_STATUS <<_ACEOF
2807   sed "$ac_vpsub
2808 $extrasub
2809 _ACEOF
2810 cat >>$CONFIG_STATUS <<\_ACEOF
2811 :t
2812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2813 s&@configure_input@&$configure_input&;t t
2814 s&@top_builddir@&$ac_top_builddir_sub&;t t
2815 s&@srcdir@&$ac_srcdir&;t t
2816 s&@abs_srcdir@&$ac_abs_srcdir&;t t
2817 s&@top_srcdir@&$ac_top_srcdir&;t t
2818 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
2819 s&@builddir@&$ac_builddir&;t t
2820 s&@abs_builddir@&$ac_abs_builddir&;t t
2821 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2822 $ac_datarootdir_hack
2823 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
2824
2825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2826   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2827   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2828   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2829 which seems to be undefined.  Please make sure it is defined." >&5
2830 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2831 which seems to be undefined.  Please make sure it is defined." >&2;}
2832
2833   rm -f "$tmp/stdin"
2834   case $ac_file in
2835   -) cat "$tmp/out"; rm -f "$tmp/out";;
2836   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
2837   esac
2838  ;;
2839
2840
2841
2842   esac
2843
2844 done # for ac_tag
2845
2846
2847 { (exit 0); exit 0; }
2848 _ACEOF
2849 chmod +x $CONFIG_STATUS
2850 ac_clean_files=$ac_clean_files_save
2851
2852
2853 # configure is writing to config.log, and then calls config.status.
2854 # config.status does its own redirection, appending to config.log.
2855 # Unfortunately, on DOS this fails, as config.log is still kept open
2856 # by configure, so config.status won't be able to write to it; its
2857 # output is simply discarded.  So we exec the FD to /dev/null,
2858 # effectively closing config.log, so it can be properly (re)opened and
2859 # appended to by config.status.  When coming back to configure, we
2860 # need to make the FD available again.
2861 if test "$no_create" != yes; then
2862   ac_cs_success=:
2863   ac_config_status_args=
2864   test "$silent" = yes &&
2865     ac_config_status_args="$ac_config_status_args --quiet"
2866   exec 5>/dev/null
2867   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2868   exec 5>>config.log
2869   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2870   # would make configure fail if this is the last instruction.
2871   $ac_cs_success || { (exit 1); exit 1; }
2872 fi
2873