comparison modules/canna/configure @ 3007:6546b8d718e9

[xemacs-hg @ 2005-10-21 10:26:51 by stephent] Add configure script for Canna API module.
author stephent
date Fri, 21 Oct 2005 10:27:02 +0000
parents
children 1e7cc382eb16
comparison
equal deleted inserted replaced
3006:dcfb8ec6859a 3007:6546b8d718e9
1 #! /bin/sh
2 # From configure.ac Revision: 1.1.2.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Sample module 1.0.
5 #
6 # Report bugs to <xemacs-beta@xemacs.org>.
7 #
8 # Copyright (C) 2003 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 # Configuration script for the sample module.
13 # Copyright (C) 2002 Jerry James.
14 #
15 # This file is part of XEmacs.
16 #
17 # XEmacs is free software; you can redistribute it and/or modify it
18 # under the terms of the GNU General Public License as published by
19 # the Free Software Foundation; either version 2, or (at your
20 # option) any later version.
21 #
22 # XEmacs is distributed in the hope that it will be useful, but
23 # WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 # General Public License for more details.
26 #
27 # You should have received a copy of the GNU General Public License
28 # along with XEmacs; see the file COPYING. If not, write to the Free
29 # Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
30 # 02111-1307, USA.
31 ## --------------------- ##
32 ## M4sh Initialization. ##
33 ## --------------------- ##
34
35 # Be Bourne compatible
36 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37 emulate sh
38 NULLCMD=:
39 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40 # is contrary to our usage. Disable this feature.
41 alias -g '${1+"$@"}'='"$@"'
42 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43 set -o posix
44 fi
45 DUALCASE=1; export DUALCASE # for MKS sh
46
47 # Support unset when possible.
48 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
49 as_unset=unset
50 else
51 as_unset=false
52 fi
53
54
55 # Work around bugs in pre-3.0 UWIN ksh.
56 $as_unset ENV MAIL MAILPATH
57 PS1='$ '
58 PS2='> '
59 PS4='+ '
60
61 # NLS nuisances.
62 for as_var in \
63 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
64 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
65 LC_TELEPHONE LC_TIME
66 do
67 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
68 eval $as_var=C; export $as_var
69 else
70 $as_unset $as_var
71 fi
72 done
73
74 # Required to use basename.
75 if expr a : '\(a\)' >/dev/null 2>&1; then
76 as_expr=expr
77 else
78 as_expr=false
79 fi
80
81 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
82 as_basename=basename
83 else
84 as_basename=false
85 fi
86
87
88 # Name of the executable.
89 as_me=`$as_basename "$0" ||
90 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
91 X"$0" : 'X\(//\)$' \| \
92 X"$0" : 'X\(/\)$' \| \
93 . : '\(.\)' 2>/dev/null ||
94 echo X/"$0" |
95 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
96 /^X\/\(\/\/\)$/{ s//\1/; q; }
97 /^X\/\(\/\).*/{ s//\1/; q; }
98 s/.*/./; q'`
99
100
101 # PATH needs CR, and LINENO needs CR and PATH.
102 # Avoid depending upon Character Ranges.
103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
106 as_cr_digits='0123456789'
107 as_cr_alnum=$as_cr_Letters$as_cr_digits
108
109 # The user is always right.
110 if test "${PATH_SEPARATOR+set}" != set; then
111 echo "#! /bin/sh" >conf$$.sh
112 echo "exit 0" >>conf$$.sh
113 chmod +x conf$$.sh
114 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
115 PATH_SEPARATOR=';'
116 else
117 PATH_SEPARATOR=:
118 fi
119 rm -f conf$$.sh
120 fi
121
122
123 as_lineno_1=$LINENO
124 as_lineno_2=$LINENO
125 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
126 test "x$as_lineno_1" != "x$as_lineno_2" &&
127 test "x$as_lineno_3" = "x$as_lineno_2" || {
128 # Find who we are. Look in the path if we contain no path at all
129 # relative or not.
130 case $0 in
131 *[\\/]* ) as_myself=$0 ;;
132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in $PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
138 done
139
140 ;;
141 esac
142 # We did not find ourselves, most probably we were run as `sh COMMAND'
143 # in which case we are not to be found in the path.
144 if test "x$as_myself" = x; then
145 as_myself=$0
146 fi
147 if test ! -f "$as_myself"; then
148 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
149 { (exit 1); exit 1; }; }
150 fi
151 case $CONFIG_SHELL in
152 '')
153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
154 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
155 do
156 IFS=$as_save_IFS
157 test -z "$as_dir" && as_dir=.
158 for as_base in sh bash ksh sh5; do
159 case $as_dir in
160 /*)
161 if ("$as_dir/$as_base" -c '
162 as_lineno_1=$LINENO
163 as_lineno_2=$LINENO
164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
165 test "x$as_lineno_1" != "x$as_lineno_2" &&
166 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
167 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
168 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
169 CONFIG_SHELL=$as_dir/$as_base
170 export CONFIG_SHELL
171 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
172 fi;;
173 esac
174 done
175 done
176 ;;
177 esac
178
179 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
180 # uniformly replaced by the line number. The first 'sed' inserts a
181 # line-number line before each line; the second 'sed' does the real
182 # work. The second script uses 'N' to pair each line-number line
183 # with the numbered line, and appends trailing '-' during
184 # substitution so that $LINENO is not a special case at line end.
185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
186 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
187 sed '=' <$as_myself |
188 sed '
189 N
190 s,$,-,
191 : loop
192 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
193 t loop
194 s,-$,,
195 s,^['$as_cr_digits']*\n,,
196 ' >$as_me.lineno &&
197 chmod +x $as_me.lineno ||
198 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
199 { (exit 1); exit 1; }; }
200
201 # Don't try to exec as it changes $[0], causing all sort of problems
202 # (the dirname of $[0] is not the place where we might find the
203 # original and so on. Autoconf is especially sensible to this).
204 . ./$as_me.lineno
205 # Exit status is that of the last command.
206 exit
207 }
208
209
210 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
211 *c*,-n*) ECHO_N= ECHO_C='
212 ' ECHO_T=' ' ;;
213 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
214 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
215 esac
216
217 if expr a : '\(a\)' >/dev/null 2>&1; then
218 as_expr=expr
219 else
220 as_expr=false
221 fi
222
223 rm -f conf$$ conf$$.exe conf$$.file
224 echo >conf$$.file
225 if ln -s conf$$.file conf$$ 2>/dev/null; then
226 # We could just check for DJGPP; but this test a) works b) is more generic
227 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
228 if test -f conf$$.exe; then
229 # Don't use ln at all; we don't have any links
230 as_ln_s='cp -p'
231 else
232 as_ln_s='ln -s'
233 fi
234 elif ln conf$$.file conf$$ 2>/dev/null; then
235 as_ln_s=ln
236 else
237 as_ln_s='cp -p'
238 fi
239 rm -f conf$$ conf$$.exe conf$$.file
240
241 if mkdir -p . 2>/dev/null; then
242 as_mkdir_p=:
243 else
244 test -d ./-p && rmdir ./-p
245 as_mkdir_p=false
246 fi
247
248 as_executable_p="test -f"
249
250 # Sed expression to map a string onto a valid CPP name.
251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252
253 # Sed expression to map a string onto a valid variable name.
254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
255
256
257 # IFS
258 # We need space, tab and new line, in precisely that order.
259 as_nl='
260 '
261 IFS=" $as_nl"
262
263 # CDPATH.
264 $as_unset CDPATH
265
266
267 # Name of the host.
268 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
269 # so uname gets run too.
270 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
271
272 exec 6>&1
273
274 #
275 # Initializations.
276 #
277 ac_default_prefix=/usr/local
278 ac_config_libobj_dir=.
279 cross_compiling=no
280 subdirs=
281 MFLAGS=
282 MAKEFLAGS=
283 SHELL=${CONFIG_SHELL-/bin/sh}
284
285 # Maximum number of lines to put in a shell here document.
286 # This variable seems obsolete. It should probably be removed, and
287 # only ac_max_sed_lines should be used.
288 : ${ac_max_here_lines=38}
289
290 # Identity of this package.
291 PACKAGE_NAME='Sample module'
292 PACKAGE_TARNAME='sample-module'
293 PACKAGE_VERSION='1.0'
294 PACKAGE_STRING='Sample module 1.0'
295 PACKAGE_BUGREPORT='xemacs-beta@xemacs.org'
296
297 ac_unique_file="sample.c"
298 # Factoring default headers for most tests.
299 ac_includes_default="\
300 #include <stdio.h>
301 #if HAVE_SYS_TYPES_H
302 # include <sys/types.h>
303 #endif
304 #if HAVE_SYS_STAT_H
305 # include <sys/stat.h>
306 #endif
307 #if STDC_HEADERS
308 # include <stdlib.h>
309 # include <stddef.h>
310 #else
311 # if HAVE_STDLIB_H
312 # include <stdlib.h>
313 # endif
314 #endif
315 #if HAVE_STRING_H
316 # if !STDC_HEADERS && HAVE_MEMORY_H
317 # include <memory.h>
318 # endif
319 # include <string.h>
320 #endif
321 #if HAVE_STRINGS_H
322 # include <strings.h>
323 #endif
324 #if HAVE_INTTYPES_H
325 # include <inttypes.h>
326 #else
327 # if HAVE_STDINT_H
328 # include <stdint.h>
329 # endif
330 #endif
331 #if HAVE_UNISTD_H
332 # include <unistd.h>
333 #endif"
334
335 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA ELLCC CPP EGREP canna_libs PROGNAME MOD_CC MODARCHDIR MAKE_DOCFILE MODCFLAGS INSTALLPATH MOD_INSTALL_PROGRAM OBJECT_TO_BUILD LIBOBJS LTLIBOBJS'
336 ac_subst_files=''
337
338 # Initialize some variables set by options.
339 ac_init_help=
340 ac_init_version=false
341 # The variables have the same names as the options, with
342 # dashes changed to underlines.
343 cache_file=/dev/null
344 exec_prefix=NONE
345 no_create=
346 no_recursion=
347 prefix=NONE
348 program_prefix=NONE
349 program_suffix=NONE
350 program_transform_name=s,x,x,
351 silent=
352 site=
353 srcdir=
354 verbose=
355 x_includes=NONE
356 x_libraries=NONE
357
358 # Installation directory options.
359 # These are left unexpanded so users can "make install exec_prefix=/foo"
360 # and all the variables that are supposed to be based on exec_prefix
361 # by default will actually change.
362 # Use braces instead of parens because sh, perl, etc. also accept them.
363 bindir='${exec_prefix}/bin'
364 sbindir='${exec_prefix}/sbin'
365 libexecdir='${exec_prefix}/libexec'
366 datadir='${prefix}/share'
367 sysconfdir='${prefix}/etc'
368 sharedstatedir='${prefix}/com'
369 localstatedir='${prefix}/var'
370 libdir='${exec_prefix}/lib'
371 includedir='${prefix}/include'
372 oldincludedir='/usr/include'
373 infodir='${prefix}/info'
374 mandir='${prefix}/man'
375
376 ac_prev=
377 for ac_option
378 do
379 # If the previous option needs an argument, assign it.
380 if test -n "$ac_prev"; then
381 eval "$ac_prev=\$ac_option"
382 ac_prev=
383 continue
384 fi
385
386 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
387
388 # Accept the important Cygnus configure options, so we can diagnose typos.
389
390 case $ac_option in
391
392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
393 ac_prev=bindir ;;
394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
395 bindir=$ac_optarg ;;
396
397 -build | --build | --buil | --bui | --bu)
398 ac_prev=build_alias ;;
399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
400 build_alias=$ac_optarg ;;
401
402 -cache-file | --cache-file | --cache-fil | --cache-fi \
403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
404 ac_prev=cache_file ;;
405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
407 cache_file=$ac_optarg ;;
408
409 --config-cache | -C)
410 cache_file=config.cache ;;
411
412 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
413 ac_prev=datadir ;;
414 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
415 | --da=*)
416 datadir=$ac_optarg ;;
417
418 -disable-* | --disable-*)
419 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
420 # Reject names that are not valid shell variable names.
421 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
422 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
423 { (exit 1); exit 1; }; }
424 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
425 eval "enable_$ac_feature=no" ;;
426
427 -enable-* | --enable-*)
428 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
429 # Reject names that are not valid shell variable names.
430 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
431 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
432 { (exit 1); exit 1; }; }
433 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
434 case $ac_option in
435 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
436 *) ac_optarg=yes ;;
437 esac
438 eval "enable_$ac_feature='$ac_optarg'" ;;
439
440 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
441 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
442 | --exec | --exe | --ex)
443 ac_prev=exec_prefix ;;
444 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
445 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
446 | --exec=* | --exe=* | --ex=*)
447 exec_prefix=$ac_optarg ;;
448
449 -gas | --gas | --ga | --g)
450 # Obsolete; use --with-gas.
451 with_gas=yes ;;
452
453 -help | --help | --hel | --he | -h)
454 ac_init_help=long ;;
455 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
456 ac_init_help=recursive ;;
457 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
458 ac_init_help=short ;;
459
460 -host | --host | --hos | --ho)
461 ac_prev=host_alias ;;
462 -host=* | --host=* | --hos=* | --ho=*)
463 host_alias=$ac_optarg ;;
464
465 -includedir | --includedir | --includedi | --included | --include \
466 | --includ | --inclu | --incl | --inc)
467 ac_prev=includedir ;;
468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
469 | --includ=* | --inclu=* | --incl=* | --inc=*)
470 includedir=$ac_optarg ;;
471
472 -infodir | --infodir | --infodi | --infod | --info | --inf)
473 ac_prev=infodir ;;
474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
475 infodir=$ac_optarg ;;
476
477 -libdir | --libdir | --libdi | --libd)
478 ac_prev=libdir ;;
479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
480 libdir=$ac_optarg ;;
481
482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
483 | --libexe | --libex | --libe)
484 ac_prev=libexecdir ;;
485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
486 | --libexe=* | --libex=* | --libe=*)
487 libexecdir=$ac_optarg ;;
488
489 -localstatedir | --localstatedir | --localstatedi | --localstated \
490 | --localstate | --localstat | --localsta | --localst \
491 | --locals | --local | --loca | --loc | --lo)
492 ac_prev=localstatedir ;;
493 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
494 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
495 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
496 localstatedir=$ac_optarg ;;
497
498 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
499 ac_prev=mandir ;;
500 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
501 mandir=$ac_optarg ;;
502
503 -nfp | --nfp | --nf)
504 # Obsolete; use --without-fp.
505 with_fp=no ;;
506
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c | -n)
509 no_create=yes ;;
510
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
513 no_recursion=yes ;;
514
515 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
516 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
517 | --oldin | --oldi | --old | --ol | --o)
518 ac_prev=oldincludedir ;;
519 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
520 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
521 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
522 oldincludedir=$ac_optarg ;;
523
524 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
525 ac_prev=prefix ;;
526 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
527 prefix=$ac_optarg ;;
528
529 -program-prefix | --program-prefix | --program-prefi | --program-pref \
530 | --program-pre | --program-pr | --program-p)
531 ac_prev=program_prefix ;;
532 -program-prefix=* | --program-prefix=* | --program-prefi=* \
533 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
534 program_prefix=$ac_optarg ;;
535
536 -program-suffix | --program-suffix | --program-suffi | --program-suff \
537 | --program-suf | --program-su | --program-s)
538 ac_prev=program_suffix ;;
539 -program-suffix=* | --program-suffix=* | --program-suffi=* \
540 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
541 program_suffix=$ac_optarg ;;
542
543 -program-transform-name | --program-transform-name \
544 | --program-transform-nam | --program-transform-na \
545 | --program-transform-n | --program-transform- \
546 | --program-transform | --program-transfor \
547 | --program-transfo | --program-transf \
548 | --program-trans | --program-tran \
549 | --progr-tra | --program-tr | --program-t)
550 ac_prev=program_transform_name ;;
551 -program-transform-name=* | --program-transform-name=* \
552 | --program-transform-nam=* | --program-transform-na=* \
553 | --program-transform-n=* | --program-transform-=* \
554 | --program-transform=* | --program-transfor=* \
555 | --program-transfo=* | --program-transf=* \
556 | --program-trans=* | --program-tran=* \
557 | --progr-tra=* | --program-tr=* | --program-t=*)
558 program_transform_name=$ac_optarg ;;
559
560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
561 | -silent | --silent | --silen | --sile | --sil)
562 silent=yes ;;
563
564 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
565 ac_prev=sbindir ;;
566 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
567 | --sbi=* | --sb=*)
568 sbindir=$ac_optarg ;;
569
570 -sharedstatedir | --sharedstatedir | --sharedstatedi \
571 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
572 | --sharedst | --shareds | --shared | --share | --shar \
573 | --sha | --sh)
574 ac_prev=sharedstatedir ;;
575 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
576 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
577 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
578 | --sha=* | --sh=*)
579 sharedstatedir=$ac_optarg ;;
580
581 -site | --site | --sit)
582 ac_prev=site ;;
583 -site=* | --site=* | --sit=*)
584 site=$ac_optarg ;;
585
586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
587 ac_prev=srcdir ;;
588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
589 srcdir=$ac_optarg ;;
590
591 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
592 | --syscon | --sysco | --sysc | --sys | --sy)
593 ac_prev=sysconfdir ;;
594 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
595 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
596 sysconfdir=$ac_optarg ;;
597
598 -target | --target | --targe | --targ | --tar | --ta | --t)
599 ac_prev=target_alias ;;
600 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
601 target_alias=$ac_optarg ;;
602
603 -v | -verbose | --verbose | --verbos | --verbo | --verb)
604 verbose=yes ;;
605
606 -version | --version | --versio | --versi | --vers | -V)
607 ac_init_version=: ;;
608
609 -with-* | --with-*)
610 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
611 # Reject names that are not valid shell variable names.
612 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
613 { echo "$as_me: error: invalid package name: $ac_package" >&2
614 { (exit 1); exit 1; }; }
615 ac_package=`echo $ac_package| sed 's/-/_/g'`
616 case $ac_option in
617 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
618 *) ac_optarg=yes ;;
619 esac
620 eval "with_$ac_package='$ac_optarg'" ;;
621
622 -without-* | --without-*)
623 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
624 # Reject names that are not valid shell variable names.
625 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
626 { echo "$as_me: error: invalid package name: $ac_package" >&2
627 { (exit 1); exit 1; }; }
628 ac_package=`echo $ac_package | sed 's/-/_/g'`
629 eval "with_$ac_package=no" ;;
630
631 --x)
632 # Obsolete; use --with-x.
633 with_x=yes ;;
634
635 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
636 | --x-incl | --x-inc | --x-in | --x-i)
637 ac_prev=x_includes ;;
638 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
639 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
640 x_includes=$ac_optarg ;;
641
642 -x-libraries | --x-libraries | --x-librarie | --x-librari \
643 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
644 ac_prev=x_libraries ;;
645 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
646 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
647 x_libraries=$ac_optarg ;;
648
649 -*) { echo "$as_me: error: unrecognized option: $ac_option
650 Try \`$0 --help' for more information." >&2
651 { (exit 1); exit 1; }; }
652 ;;
653
654 *=*)
655 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
656 # Reject names that are not valid shell variable names.
657 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
658 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
659 { (exit 1); exit 1; }; }
660 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
661 eval "$ac_envvar='$ac_optarg'"
662 export $ac_envvar ;;
663
664 *)
665 # FIXME: should be removed in autoconf 3.0.
666 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
667 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
668 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
669 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
670 ;;
671
672 esac
673 done
674
675 if test -n "$ac_prev"; then
676 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
677 { echo "$as_me: error: missing argument to $ac_option" >&2
678 { (exit 1); exit 1; }; }
679 fi
680
681 # Be sure to have absolute paths.
682 for ac_var in exec_prefix prefix
683 do
684 eval ac_val=$`echo $ac_var`
685 case $ac_val in
686 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
687 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
688 { (exit 1); exit 1; }; };;
689 esac
690 done
691
692 # Be sure to have absolute paths.
693 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
694 localstatedir libdir includedir oldincludedir infodir mandir
695 do
696 eval ac_val=$`echo $ac_var`
697 case $ac_val in
698 [\\/$]* | ?:[\\/]* ) ;;
699 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
700 { (exit 1); exit 1; }; };;
701 esac
702 done
703
704 # There might be people who depend on the old broken behavior: `$host'
705 # used to hold the argument of --host etc.
706 # FIXME: To remove some day.
707 build=$build_alias
708 host=$host_alias
709 target=$target_alias
710
711 # FIXME: To remove some day.
712 if test "x$host_alias" != x; then
713 if test "x$build_alias" = x; then
714 cross_compiling=maybe
715 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
716 If a cross compiler is detected then cross compile mode will be used." >&2
717 elif test "x$build_alias" != "x$host_alias"; then
718 cross_compiling=yes
719 fi
720 fi
721
722 ac_tool_prefix=
723 test -n "$host_alias" && ac_tool_prefix=$host_alias-
724
725 test "$silent" = yes && exec 6>/dev/null
726
727
728 # Find the source files, if location was not specified.
729 if test -z "$srcdir"; then
730 ac_srcdir_defaulted=yes
731 # Try the directory containing this script, then its parent.
732 ac_confdir=`(dirname "$0") 2>/dev/null ||
733 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
734 X"$0" : 'X\(//\)[^/]' \| \
735 X"$0" : 'X\(//\)$' \| \
736 X"$0" : 'X\(/\)' \| \
737 . : '\(.\)' 2>/dev/null ||
738 echo X"$0" |
739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
741 /^X\(\/\/\)$/{ s//\1/; q; }
742 /^X\(\/\).*/{ s//\1/; q; }
743 s/.*/./; q'`
744 srcdir=$ac_confdir
745 if test ! -r $srcdir/$ac_unique_file; then
746 srcdir=..
747 fi
748 else
749 ac_srcdir_defaulted=no
750 fi
751 if test ! -r $srcdir/$ac_unique_file; then
752 if test "$ac_srcdir_defaulted" = yes; then
753 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
754 { (exit 1); exit 1; }; }
755 else
756 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
757 { (exit 1); exit 1; }; }
758 fi
759 fi
760 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
761 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
762 { (exit 1); exit 1; }; }
763 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
764 ac_env_build_alias_set=${build_alias+set}
765 ac_env_build_alias_value=$build_alias
766 ac_cv_env_build_alias_set=${build_alias+set}
767 ac_cv_env_build_alias_value=$build_alias
768 ac_env_host_alias_set=${host_alias+set}
769 ac_env_host_alias_value=$host_alias
770 ac_cv_env_host_alias_set=${host_alias+set}
771 ac_cv_env_host_alias_value=$host_alias
772 ac_env_target_alias_set=${target_alias+set}
773 ac_env_target_alias_value=$target_alias
774 ac_cv_env_target_alias_set=${target_alias+set}
775 ac_cv_env_target_alias_value=$target_alias
776 ac_env_CC_set=${CC+set}
777 ac_env_CC_value=$CC
778 ac_cv_env_CC_set=${CC+set}
779 ac_cv_env_CC_value=$CC
780 ac_env_CFLAGS_set=${CFLAGS+set}
781 ac_env_CFLAGS_value=$CFLAGS
782 ac_cv_env_CFLAGS_set=${CFLAGS+set}
783 ac_cv_env_CFLAGS_value=$CFLAGS
784 ac_env_LDFLAGS_set=${LDFLAGS+set}
785 ac_env_LDFLAGS_value=$LDFLAGS
786 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
787 ac_cv_env_LDFLAGS_value=$LDFLAGS
788 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
789 ac_env_CPPFLAGS_value=$CPPFLAGS
790 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
791 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
792 ac_env_ELLCC_set=${ELLCC+set}
793 ac_env_ELLCC_value=$ELLCC
794 ac_cv_env_ELLCC_set=${ELLCC+set}
795 ac_cv_env_ELLCC_value=$ELLCC
796 ac_env_CPP_set=${CPP+set}
797 ac_env_CPP_value=$CPP
798 ac_cv_env_CPP_set=${CPP+set}
799 ac_cv_env_CPP_value=$CPP
800
801 #
802 # Report the --help message.
803 #
804 if test "$ac_init_help" = "long"; then
805 # Omit some internal or obsolete options to make the list less imposing.
806 # This message is too long to be a string in the A/UX 3.1 sh.
807 cat <<_ACEOF
808 \`configure' configures Sample module 1.0 to adapt to many kinds of systems.
809
810 Usage: $0 [OPTION]... [VAR=VALUE]...
811
812 To assign environment variables (e.g., CC, CFLAGS...), specify them as
813 VAR=VALUE. See below for descriptions of some of the useful variables.
814
815 Defaults for the options are specified in brackets.
816
817 Configuration:
818 -h, --help display this help and exit
819 --help=short display options specific to this package
820 --help=recursive display the short help of all the included packages
821 -V, --version display version information and exit
822 -q, --quiet, --silent do not print \`checking...' messages
823 --cache-file=FILE cache test results in FILE [disabled]
824 -C, --config-cache alias for \`--cache-file=config.cache'
825 -n, --no-create do not create output files
826 --srcdir=DIR find the sources in DIR [configure dir or \`..']
827
828 _ACEOF
829
830 cat <<_ACEOF
831 Installation directories:
832 --prefix=PREFIX install architecture-independent files in PREFIX
833 [$ac_default_prefix]
834 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
835 [PREFIX]
836
837 By default, \`make install' will install all the files in
838 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
839 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
840 for instance \`--prefix=\$HOME'.
841
842 For better control, use the options below.
843
844 Fine tuning of the installation directories:
845 --bindir=DIR user executables [EPREFIX/bin]
846 --sbindir=DIR system admin executables [EPREFIX/sbin]
847 --libexecdir=DIR program executables [EPREFIX/libexec]
848 --datadir=DIR read-only architecture-independent data [PREFIX/share]
849 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
850 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
851 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
852 --libdir=DIR object code libraries [EPREFIX/lib]
853 --includedir=DIR C header files [PREFIX/include]
854 --oldincludedir=DIR C header files for non-gcc [/usr/include]
855 --infodir=DIR info documentation [PREFIX/info]
856 --mandir=DIR man documentation [PREFIX/man]
857 _ACEOF
858
859 cat <<\_ACEOF
860 _ACEOF
861 fi
862
863 if test -n "$ac_init_help"; then
864 case $ac_init_help in
865 short | recursive ) echo "Configuration of Sample module 1.0:";;
866 esac
867 cat <<\_ACEOF
868
869 Some influential environment variables:
870 CC C compiler command
871 CFLAGS C compiler flags
872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
873 nonstandard directory <lib dir>
874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
875 headers in a nonstandard directory <include dir>
876 ELLCC The path to the ellcc module compiler
877 CPP C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 Report bugs to <xemacs-beta@xemacs.org>.
883 _ACEOF
884 fi
885
886 if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
888 ac_popdir=`pwd`
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
891 ac_builddir=.
892
893 if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897 else
898 ac_dir_suffix= ac_top_builddir=
899 fi
900
901 case $srcdir in
902 .) # No --srcdir option. We are building in place.
903 ac_srcdir=.
904 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=.
906 else
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
908 fi ;;
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
912 *) # Relative path.
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
915 esac
916
917 # Do not use `cd foo && pwd` to compute absolute paths, because
918 # the directories may not exist.
919 case `pwd` in
920 .) ac_abs_builddir="$ac_dir";;
921 *)
922 case "$ac_dir" in
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *)
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_srcdir=$ac_srcdir;;
939 *)
940 case $ac_srcdir in
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *)
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 esac;;
954 esac
955
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 fi
971 cd $ac_popdir
972 done
973 fi
974
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977 cat <<\_ACEOF
978 Sample module configure 1.0
979 generated by GNU Autoconf 2.59
980
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984
985 Configuration script for the sample module.
986 Copyright (C) 2002 Jerry James.
987
988 This file is part of XEmacs.
989
990 XEmacs is free software; you can redistribute it and/or modify it
991 under the terms of the GNU General Public License as published by
992 the Free Software Foundation; either version 2, or (at your
993 option) any later version.
994
995 XEmacs is distributed in the hope that it will be useful, but
996 WITHOUT ANY WARRANTY; without even the implied warranty of
997 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
998 General Public License for more details.
999
1000 You should have received a copy of the GNU General Public License
1001 along with XEmacs; see the file COPYING. If not, write to the Free
1002 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1003 02111-1307, USA.
1004 _ACEOF
1005 exit 0
1006 fi
1007 exec 5>config.log
1008 cat >&5 <<_ACEOF
1009 This file contains any messages produced by compilers while
1010 running configure, to aid debugging if configure makes a mistake.
1011
1012 It was created by Sample module $as_me 1.0, which was
1013 generated by GNU Autoconf 2.59. Invocation command line was
1014
1015 $ $0 $@
1016
1017 _ACEOF
1018 {
1019 cat <<_ASUNAME
1020 ## --------- ##
1021 ## Platform. ##
1022 ## --------- ##
1023
1024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029
1030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1031 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1032
1033 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1034 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1036 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1037 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1038 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1039 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1040
1041 _ASUNAME
1042
1043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1044 for as_dir in $PATH
1045 do
1046 IFS=$as_save_IFS
1047 test -z "$as_dir" && as_dir=.
1048 echo "PATH: $as_dir"
1049 done
1050
1051 } >&5
1052
1053 cat >&5 <<_ACEOF
1054
1055
1056 ## ----------- ##
1057 ## Core tests. ##
1058 ## ----------- ##
1059
1060 _ACEOF
1061
1062
1063 # Keep a trace of the command line.
1064 # Strip out --no-create and --no-recursion so they do not pile up.
1065 # Strip out --silent because we don't want to record it for future runs.
1066 # Also quote any args containing shell meta-characters.
1067 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_configure_args=
1069 ac_configure_args0=
1070 ac_configure_args1=
1071 ac_sep=
1072 ac_must_keep_next=false
1073 for ac_pass in 1 2
1074 do
1075 for ac_arg
1076 do
1077 case $ac_arg in
1078 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 continue ;;
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1084 esac
1085 case $ac_pass in
1086 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087 2)
1088 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1089 if test $ac_must_keep_next = true; then
1090 ac_must_keep_next=false # Got value, back to normal.
1091 else
1092 case $ac_arg in
1093 *=* | --config-cache | -C | -disable-* | --disable-* \
1094 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1095 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1096 | -with-* | --with-* | -without-* | --without-* | --x)
1097 case "$ac_configure_args0 " in
1098 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1099 esac
1100 ;;
1101 -* ) ac_must_keep_next=true ;;
1102 esac
1103 fi
1104 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1105 # Get rid of the leading space.
1106 ac_sep=" "
1107 ;;
1108 esac
1109 done
1110 done
1111 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1112 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113
1114 # When interrupted or exit'd, cleanup temporary files, and complete
1115 # config.log. We remove comments because anyway the quotes in there
1116 # would cause problems or look ugly.
1117 # WARNING: Be sure not to use single quotes in there, as some shells,
1118 # such as our DU 5.0 friend, will then `close' the trap.
1119 trap 'exit_status=$?
1120 # Save into config.log some information that might help in debugging.
1121 {
1122 echo
1123
1124 cat <<\_ASBOX
1125 ## ---------------- ##
1126 ## Cache variables. ##
1127 ## ---------------- ##
1128 _ASBOX
1129 echo
1130 # The following way of writing the cache mishandles newlines in values,
1131 {
1132 (set) 2>&1 |
1133 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1134 *ac_space=\ *)
1135 sed -n \
1136 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 ;;
1139 *)
1140 sed -n \
1141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ;;
1143 esac;
1144 }
1145 echo
1146
1147 cat <<\_ASBOX
1148 ## ----------------- ##
1149 ## Output variables. ##
1150 ## ----------------- ##
1151 _ASBOX
1152 echo
1153 for ac_var in $ac_subst_vars
1154 do
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1159
1160 if test -n "$ac_subst_files"; then
1161 cat <<\_ASBOX
1162 ## ------------- ##
1163 ## Output files. ##
1164 ## ------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_files
1168 do
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1173 fi
1174
1175 if test -s confdefs.h; then
1176 cat <<\_ASBOX
1177 ## ----------- ##
1178 ## confdefs.h. ##
1179 ## ----------- ##
1180 _ASBOX
1181 echo
1182 sed "/^$/d" confdefs.h | sort
1183 echo
1184 fi
1185 test "$ac_signal" != 0 &&
1186 echo "$as_me: caught signal $ac_signal"
1187 echo "$as_me: exit $exit_status"
1188 } >&5
1189 rm -f core *.core &&
1190 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1191 exit $exit_status
1192 ' 0
1193 for ac_signal in 1 2 13 15; do
1194 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1195 done
1196 ac_signal=0
1197
1198 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1199 rm -rf conftest* confdefs.h
1200 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1201 echo >confdefs.h
1202
1203 # Predefined preprocessor variables.
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_NAME "$PACKAGE_NAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_STRING "$PACKAGE_STRING"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1227 _ACEOF
1228
1229
1230 # Let the site file select an alternate cache file if it wants to.
1231 # Prefer explicitly selected file to automatically selected ones.
1232 if test -z "$CONFIG_SITE"; then
1233 if test "x$prefix" != xNONE; then
1234 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1235 else
1236 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 fi
1238 fi
1239 for ac_site_file in $CONFIG_SITE; do
1240 if test -r "$ac_site_file"; then
1241 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1242 echo "$as_me: loading site script $ac_site_file" >&6;}
1243 sed 's/^/| /' "$ac_site_file" >&5
1244 . "$ac_site_file"
1245 fi
1246 done
1247
1248 if test -r "$cache_file"; then
1249 # Some versions of bash will fail to source /dev/null (special
1250 # files actually), so we avoid doing that.
1251 if test -f "$cache_file"; then
1252 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1253 echo "$as_me: loading cache $cache_file" >&6;}
1254 case $cache_file in
1255 [\\/]* | ?:[\\/]* ) . $cache_file;;
1256 *) . ./$cache_file;;
1257 esac
1258 fi
1259 else
1260 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1261 echo "$as_me: creating cache $cache_file" >&6;}
1262 >$cache_file
1263 fi
1264
1265 # Check that the precious variables saved in the cache have kept the same
1266 # value.
1267 ac_cache_corrupted=false
1268 for ac_var in `(set) 2>&1 |
1269 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1271 eval ac_new_set=\$ac_env_${ac_var}_set
1272 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1273 eval ac_new_val="\$ac_env_${ac_var}_value"
1274 case $ac_old_set,$ac_new_set in
1275 set,)
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1279 ,set)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,);;
1284 *)
1285 if test "x$ac_old_val" != "x$ac_new_val"; then
1286 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1287 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1288 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1289 echo "$as_me: former value: $ac_old_val" >&2;}
1290 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1291 echo "$as_me: current value: $ac_new_val" >&2;}
1292 ac_cache_corrupted=:
1293 fi;;
1294 esac
1295 # Pass precious variables to config.status.
1296 if test "$ac_new_set" = set; then
1297 case $ac_new_val in
1298 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1299 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1300 *) ac_arg=$ac_var=$ac_new_val ;;
1301 esac
1302 case " $ac_configure_args " in
1303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1304 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1305 esac
1306 fi
1307 done
1308 if $ac_cache_corrupted; then
1309 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1310 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1311 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1312 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1313 { (exit 1); exit 1; }; }
1314 fi
1315
1316 ac_ext=c
1317 ac_cpp='$CPP $CPPFLAGS'
1318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353 ac_ext=c
1354 ac_cpp='$CPP $CPPFLAGS'
1355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1358 if test -n "$ac_tool_prefix"; then
1359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1361 echo "$as_me:$LINENO: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1365 else
1366 if test -n "$CC"; then
1367 ac_cv_prog_CC="$CC" # Let the user override the test.
1368 else
1369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370 for as_dir in $PATH
1371 do
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1378 break 2
1379 fi
1380 done
1381 done
1382
1383 fi
1384 fi
1385 CC=$ac_cv_prog_CC
1386 if test -n "$CC"; then
1387 echo "$as_me:$LINENO: result: $CC" >&5
1388 echo "${ECHO_T}$CC" >&6
1389 else
1390 echo "$as_me:$LINENO: result: no" >&5
1391 echo "${ECHO_T}no" >&6
1392 fi
1393
1394 fi
1395 if test -z "$ac_cv_prog_CC"; then
1396 ac_ct_CC=$CC
1397 # Extract the first word of "gcc", so it can be a program name with args.
1398 set dummy gcc; ac_word=$2
1399 echo "$as_me:$LINENO: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 if test -n "$ac_ct_CC"; then
1405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1406 else
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 for as_dir in $PATH
1409 do
1410 IFS=$as_save_IFS
1411 test -z "$as_dir" && as_dir=.
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414 ac_cv_prog_ac_ct_CC="gcc"
1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1416 break 2
1417 fi
1418 done
1419 done
1420
1421 fi
1422 fi
1423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1424 if test -n "$ac_ct_CC"; then
1425 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1426 echo "${ECHO_T}$ac_ct_CC" >&6
1427 else
1428 echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1430 fi
1431
1432 CC=$ac_ct_CC
1433 else
1434 CC="$ac_cv_prog_CC"
1435 fi
1436
1437 if test -z "$CC"; then
1438 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}cc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}cc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 CC=$ac_cv_prog_CC
1466 if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474 fi
1475 if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "cc", so it can be a program name with args.
1478 set dummy cc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="cc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504 if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506 echo "${ECHO_T}$ac_ct_CC" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512 CC=$ac_ct_CC
1513 else
1514 CC="$ac_cv_prog_CC"
1515 fi
1516
1517 fi
1518 if test -z "$CC"; then
1519 # Extract the first word of "cc", so it can be a program name with args.
1520 set dummy cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 else
1529 ac_prog_rejected=no
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1538 ac_prog_rejected=yes
1539 continue
1540 fi
1541 ac_cv_prog_CC="cc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 break 2
1544 fi
1545 done
1546 done
1547
1548 if test $ac_prog_rejected = yes; then
1549 # We found a bogon in the path, so make sure we never use it.
1550 set dummy $ac_cv_prog_CC
1551 shift
1552 if test $# != 0; then
1553 # We chose a different compiler from the bogus one.
1554 # However, it has the same basename, so the bogon will be chosen
1555 # first if we set CC to just the basename; use the full file name.
1556 shift
1557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1558 fi
1559 fi
1560 fi
1561 fi
1562 CC=$ac_cv_prog_CC
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1566 else
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571 fi
1572 if test -z "$CC"; then
1573 if test -n "$ac_tool_prefix"; then
1574 for ac_prog in cl
1575 do
1576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583 if test -n "$CC"; then
1584 ac_cv_prog_CC="$CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 break 2
1596 fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 CC=$ac_cv_prog_CC
1603 if test -n "$CC"; then
1604 echo "$as_me:$LINENO: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1606 else
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611 test -n "$CC" && break
1612 done
1613 fi
1614 if test -z "$CC"; then
1615 ac_ct_CC=$CC
1616 for ac_prog in cl
1617 do
1618 # Extract the first word of "$ac_prog", so it can be a program name with args.
1619 set dummy $ac_prog; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625 if test -n "$ac_ct_CC"; then
1626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_ac_ct_CC="$ac_prog"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 break 2
1638 fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1645 if test -n "$ac_ct_CC"; then
1646 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1647 echo "${ECHO_T}$ac_ct_CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 test -n "$ac_ct_CC" && break
1654 done
1655
1656 CC=$ac_ct_CC
1657 fi
1658
1659 fi
1660
1661
1662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1663 See \`config.log' for more details." >&5
1664 echo "$as_me: error: no acceptable C compiler found in \$PATH
1665 See \`config.log' for more details." >&2;}
1666 { (exit 1); exit 1; }; }
1667
1668 # Provide some information about the compiler.
1669 echo "$as_me:$LINENO:" \
1670 "checking for C compiler version" >&5
1671 ac_compiler=`set X $ac_compile; echo $2`
1672 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1673 (eval $ac_compiler --version </dev/null >&5) 2>&5
1674 ac_status=$?
1675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676 (exit $ac_status); }
1677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1678 (eval $ac_compiler -v </dev/null >&5) 2>&5
1679 ac_status=$?
1680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681 (exit $ac_status); }
1682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1683 (eval $ac_compiler -V </dev/null >&5) 2>&5
1684 ac_status=$?
1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686 (exit $ac_status); }
1687
1688 cat >conftest.$ac_ext <<_ACEOF
1689 /* confdefs.h. */
1690 _ACEOF
1691 cat confdefs.h >>conftest.$ac_ext
1692 cat >>conftest.$ac_ext <<_ACEOF
1693 /* end confdefs.h. */
1694
1695 int
1696 main ()
1697 {
1698
1699 ;
1700 return 0;
1701 }
1702 _ACEOF
1703 ac_clean_files_save=$ac_clean_files
1704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1705 # Try to create an executable without -o first, disregard a.out.
1706 # It will help us diagnose broken compilers, and finding out an intuition
1707 # of exeext.
1708 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1710 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1711 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1712 (eval $ac_link_default) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }; then
1716 # Find the output, starting from the most likely. This scheme is
1717 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1718 # resort.
1719
1720 # Be careful to initialize this variable, since it used to be cached.
1721 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1722 ac_cv_exeext=
1723 # b.out is created by i960 compilers.
1724 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1725 do
1726 test -f "$ac_file" || continue
1727 case $ac_file in
1728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1729 ;;
1730 conftest.$ac_ext )
1731 # This is the source file.
1732 ;;
1733 [ab].out )
1734 # We found the default executable, but exeext='' is most
1735 # certainly right.
1736 break;;
1737 *.* )
1738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1739 # FIXME: I believe we export ac_cv_exeext for Libtool,
1740 # but it would be cool to find out if it's true. Does anybody
1741 # maintain Libtool? --akim.
1742 export ac_cv_exeext
1743 break;;
1744 * )
1745 break;;
1746 esac
1747 done
1748 else
1749 echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1753 See \`config.log' for more details." >&5
1754 echo "$as_me: error: C compiler cannot create executables
1755 See \`config.log' for more details." >&2;}
1756 { (exit 77); exit 77; }; }
1757 fi
1758
1759 ac_exeext=$ac_cv_exeext
1760 echo "$as_me:$LINENO: result: $ac_file" >&5
1761 echo "${ECHO_T}$ac_file" >&6
1762
1763 # Check the compiler produces executables we can run. If not, either
1764 # the compiler is broken, or we cross compile.
1765 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1768 # If not cross compiling, check that we can run a simple program.
1769 if test "$cross_compiling" != yes; then
1770 if { ac_try='./$ac_file'
1771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1772 (eval $ac_try) 2>&5
1773 ac_status=$?
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1776 cross_compiling=no
1777 else
1778 if test "$cross_compiling" = maybe; then
1779 cross_compiling=yes
1780 else
1781 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1782 If you meant to cross compile, use \`--host'.
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: cannot run C compiled programs.
1785 If you meant to cross compile, use \`--host'.
1786 See \`config.log' for more details." >&2;}
1787 { (exit 1); exit 1; }; }
1788 fi
1789 fi
1790 fi
1791 echo "$as_me:$LINENO: result: yes" >&5
1792 echo "${ECHO_T}yes" >&6
1793
1794 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1795 ac_clean_files=$ac_clean_files_save
1796 # Check the compiler produces executables we can run. If not, either
1797 # the compiler is broken, or we cross compile.
1798 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1799 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1800 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1801 echo "${ECHO_T}$cross_compiling" >&6
1802
1803 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1804 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1806 (eval $ac_link) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1811 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1812 # work properly (i.e., refer to `conftest.exe'), while it won't with
1813 # `rm'.
1814 for ac_file in conftest.exe conftest conftest.*; do
1815 test -f "$ac_file" || continue
1816 case $ac_file in
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1818 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 export ac_cv_exeext
1820 break;;
1821 * ) break;;
1822 esac
1823 done
1824 else
1825 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1828 See \`config.log' for more details." >&2;}
1829 { (exit 1); exit 1; }; }
1830 fi
1831
1832 rm -f conftest$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1834 echo "${ECHO_T}$ac_cv_exeext" >&6
1835
1836 rm -f conftest.$ac_ext
1837 EXEEXT=$ac_cv_exeext
1838 ac_exeext=$EXEEXT
1839 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1840 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1841 if test "${ac_cv_objext+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 cat >conftest.$ac_ext <<_ACEOF
1845 /* confdefs.h. */
1846 _ACEOF
1847 cat confdefs.h >>conftest.$ac_ext
1848 cat >>conftest.$ac_ext <<_ACEOF
1849 /* end confdefs.h. */
1850
1851 int
1852 main ()
1853 {
1854
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 rm -f conftest.o conftest.obj
1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>&5
1862 ac_status=$?
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; then
1865 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1866 case $ac_file in
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1869 break;;
1870 esac
1871 done
1872 else
1873 echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1877 See \`config.log' for more details." >&5
1878 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1879 See \`config.log' for more details." >&2;}
1880 { (exit 1); exit 1; }; }
1881 fi
1882
1883 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1884 fi
1885 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1886 echo "${ECHO_T}$ac_cv_objext" >&6
1887 OBJEXT=$ac_cv_objext
1888 ac_objext=$OBJEXT
1889 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1890 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 cat >conftest.$ac_ext <<_ACEOF
1895 /* confdefs.h. */
1896 _ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h. */
1900
1901 int
1902 main ()
1903 {
1904 #ifndef __GNUC__
1905 choke me
1906 #endif
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 rm -f conftest.$ac_objext
1913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1914 (eval $ac_compile) 2>conftest.er1
1915 ac_status=$?
1916 grep -v '^ *+' conftest.er1 >conftest.err
1917 rm -f conftest.er1
1918 cat conftest.err >&5
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); } &&
1921 { ac_try='test -z "$ac_c_werror_flag"
1922 || test ! -s conftest.err'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1924 (eval $ac_try) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; } &&
1928 { ac_try='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1934 ac_compiler_gnu=yes
1935 else
1936 echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 ac_compiler_gnu=no
1940 fi
1941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1943
1944 fi
1945 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1946 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947 GCC=`test $ac_compiler_gnu = yes && echo yes`
1948 ac_test_CFLAGS=${CFLAGS+set}
1949 ac_save_CFLAGS=$CFLAGS
1950 CFLAGS="-g"
1951 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1952 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953 if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956 cat >conftest.$ac_ext <<_ACEOF
1957 /* confdefs.h. */
1958 _ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1962
1963 int
1964 main ()
1965 {
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 rm -f conftest.$ac_objext
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>conftest.er1
1974 ac_status=$?
1975 grep -v '^ *+' conftest.er1 >conftest.err
1976 rm -f conftest.er1
1977 cat conftest.err >&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); } &&
1980 { ac_try='test -z "$ac_c_werror_flag"
1981 || test ! -s conftest.err'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 (eval $ac_try) 2>&5
1984 ac_status=$?
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; } &&
1987 { ac_try='test -s conftest.$ac_objext'
1988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989 (eval $ac_try) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; }; then
1993 ac_cv_prog_cc_g=yes
1994 else
1995 echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_cv_prog_cc_g=no
1999 fi
2000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2003 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2004 if test "$ac_test_CFLAGS" = set; then
2005 CFLAGS=$ac_save_CFLAGS
2006 elif test $ac_cv_prog_cc_g = yes; then
2007 if test "$GCC" = yes; then
2008 CFLAGS="-g -O2"
2009 else
2010 CFLAGS="-g"
2011 fi
2012 else
2013 if test "$GCC" = yes; then
2014 CFLAGS="-O2"
2015 else
2016 CFLAGS=
2017 fi
2018 fi
2019 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2020 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2021 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 ac_cv_prog_cc_stdc=no
2025 ac_save_CC=$CC
2026 cat >conftest.$ac_ext <<_ACEOF
2027 /* confdefs.h. */
2028 _ACEOF
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2032 #include <stdarg.h>
2033 #include <stdio.h>
2034 #include <sys/types.h>
2035 #include <sys/stat.h>
2036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2037 struct buf { int x; };
2038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2039 static char *e (p, i)
2040 char **p;
2041 int i;
2042 {
2043 return p[i];
2044 }
2045 static char *f (char * (*g) (char **, int), char **p, ...)
2046 {
2047 char *s;
2048 va_list v;
2049 va_start (v,p);
2050 s = g (p, va_arg (v,int));
2051 va_end (v);
2052 return s;
2053 }
2054
2055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2056 function prototypes and stuff, but not '\xHH' hex character constants.
2057 These don't provoke an error unfortunately, instead are silently treated
2058 as 'x'. The following induces an error, until -std1 is added to get
2059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2060 array size at least. It's necessary to write '\x00'==0 to get something
2061 that's true only with -std1. */
2062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2063
2064 int test (int i, double x);
2065 struct s1 {int (*f) (int a);};
2066 struct s2 {int (*f) (double a);};
2067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2068 int argc;
2069 char **argv;
2070 int
2071 main ()
2072 {
2073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 # Don't try gcc -ansi; that turns off useful extensions and
2079 # breaks some systems' header files.
2080 # AIX -qlanglvl=ansi
2081 # Ultrix and OSF/1 -std1
2082 # HP-UX 10.20 and later -Ae
2083 # HP-UX older versions -Aa -D_HPUX_SOURCE
2084 # SVR4 -Xc -D__EXTENSIONS__
2085 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2086 do
2087 CC="$ac_save_CC $ac_arg"
2088 rm -f conftest.$ac_objext
2089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>conftest.er1
2091 ac_status=$?
2092 grep -v '^ *+' conftest.er1 >conftest.err
2093 rm -f conftest.er1
2094 cat conftest.err >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try='test -z "$ac_c_werror_flag"
2098 || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2110 ac_cv_prog_cc_stdc=$ac_arg
2111 break
2112 else
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 fi
2117 rm -f conftest.err conftest.$ac_objext
2118 done
2119 rm -f conftest.$ac_ext conftest.$ac_objext
2120 CC=$ac_save_CC
2121
2122 fi
2123
2124 case "x$ac_cv_prog_cc_stdc" in
2125 x|xno)
2126 echo "$as_me:$LINENO: result: none needed" >&5
2127 echo "${ECHO_T}none needed" >&6 ;;
2128 *)
2129 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2130 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2131 CC="$CC $ac_cv_prog_cc_stdc" ;;
2132 esac
2133
2134 # Some people use a C++ compiler to compile C. Since we use `exit',
2135 # in C++ we need to declare it. In case someone uses the same compiler
2136 # for both compiling C and C++ we need to have the C++ compiler decide
2137 # the declaration of exit, since it's the most demanding environment.
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #ifndef __cplusplus
2140 choke me
2141 #endif
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>conftest.er1
2146 ac_status=$?
2147 grep -v '^ *+' conftest.er1 >conftest.err
2148 rm -f conftest.er1
2149 cat conftest.err >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2165 for ac_declaration in \
2166 '' \
2167 'extern "C" void std::exit (int) throw (); using std::exit;' \
2168 'extern "C" void std::exit (int); using std::exit;' \
2169 'extern "C" void exit (int) throw ();' \
2170 'extern "C" void exit (int);' \
2171 'void exit (int);'
2172 do
2173 cat >conftest.$ac_ext <<_ACEOF
2174 /* confdefs.h. */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2179 $ac_declaration
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184 exit (42);
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>conftest.er1
2192 ac_status=$?
2193 grep -v '^ *+' conftest.er1 >conftest.err
2194 rm -f conftest.er1
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -z "$ac_c_werror_flag"
2199 || test ! -s conftest.err'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 (eval $ac_try) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; } &&
2205 { ac_try='test -s conftest.$ac_objext'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2211 :
2212 else
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215
2216 continue
2217 fi
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 cat >conftest.$ac_ext <<_ACEOF
2220 /* confdefs.h. */
2221 _ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2225 $ac_declaration
2226 int
2227 main ()
2228 {
2229 exit (42);
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>conftest.er1
2237 ac_status=$?
2238 grep -v '^ *+' conftest.er1 >conftest.err
2239 rm -f conftest.er1
2240 cat conftest.err >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -z "$ac_c_werror_flag"
2244 || test ! -s conftest.err'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2256 break
2257 else
2258 echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 fi
2262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 rm -f conftest*
2265 if test -n "$ac_declaration"; then
2266 echo '#ifdef __cplusplus' >>confdefs.h
2267 echo $ac_declaration >>confdefs.h
2268 echo '#endif' >>confdefs.h
2269 fi
2270
2271 else
2272 echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 fi
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283 ac_aux_dir=
2284 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2285 if test -f $ac_dir/install-sh; then
2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/install-sh -c"
2288 break
2289 elif test -f $ac_dir/install.sh; then
2290 ac_aux_dir=$ac_dir
2291 ac_install_sh="$ac_aux_dir/install.sh -c"
2292 break
2293 elif test -f $ac_dir/shtool; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/shtool install -c"
2296 break
2297 fi
2298 done
2299 if test -z "$ac_aux_dir"; then
2300 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2301 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2302 { (exit 1); exit 1; }; }
2303 fi
2304 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2305 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2306 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2307
2308 # Find a good install program. We prefer a C program (faster),
2309 # so one script is as good as another. But avoid the broken or
2310 # incompatible versions:
2311 # SysV /etc/install, /usr/sbin/install
2312 # SunOS /usr/etc/install
2313 # IRIX /sbin/install
2314 # AIX /bin/install
2315 # AmigaOS /C/install, which installs bootblocks on floppy discs
2316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2319 # OS/2's system install, which has a completely different semantic
2320 # ./install, which can be erroneously created by make from ./install.sh.
2321 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2322 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2323 if test -z "$INSTALL"; then
2324 if test "${ac_cv_path_install+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 # Account for people who put trailing slashes in PATH elements.
2333 case $as_dir/ in
2334 ./ | .// | /cC/* | \
2335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2336 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2337 /usr/ucb/* ) ;;
2338 *)
2339 # OSF1 and SCO ODT 3.0 have their own names for install.
2340 # Don't use installbsd from OSF since it installs stuff as root
2341 # by default.
2342 for ac_prog in ginstall scoinst install; do
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2345 if test $ac_prog = install &&
2346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2347 # AIX install. It has an incompatible calling convention.
2348 :
2349 elif test $ac_prog = install &&
2350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2351 # program-specific install script used by HP pwplus--don't use.
2352 :
2353 else
2354 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2355 break 3
2356 fi
2357 fi
2358 done
2359 done
2360 ;;
2361 esac
2362 done
2363
2364
2365 fi
2366 if test "${ac_cv_path_install+set}" = set; then
2367 INSTALL=$ac_cv_path_install
2368 else
2369 # As a last resort, use the slow shell script. We don't cache a
2370 # path for INSTALL within a source directory, because that will
2371 # break other packages using the cache if that directory is
2372 # removed, or if the path is relative.
2373 INSTALL=$ac_install_sh
2374 fi
2375 fi
2376 echo "$as_me:$LINENO: result: $INSTALL" >&5
2377 echo "${ECHO_T}$INSTALL" >&6
2378
2379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2380 # It thinks the first close brace ends the variable substitution.
2381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2382
2383 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2384
2385 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2386
2387
2388
2389
2390 # Find ELLCC
2391
2392 # Extract the first word of "ellcc", so it can be a program name with args.
2393 set dummy ellcc; ac_word=$2
2394 echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396 if test "${ac_cv_path_ELLCC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 case $ELLCC in
2400 [\\/]* | ?:[\\/]*)
2401 ac_cv_path_ELLCC="$ELLCC" # Let the user override the test with a path.
2402 ;;
2403 *)
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_path_ELLCC="$as_dir/$ac_word$ac_exec_ext"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417
2418 test -z "$ac_cv_path_ELLCC" && ac_cv_path_ELLCC=""FAIL""
2419 ;;
2420 esac
2421 fi
2422 ELLCC=$ac_cv_path_ELLCC
2423
2424 if test -n "$ELLCC"; then
2425 echo "$as_me:$LINENO: result: $ELLCC" >&5
2426 echo "${ECHO_T}$ELLCC" >&6
2427 else
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2430 fi
2431
2432 if test "$ELLCC" = "FAIL"; then
2433 { { echo "$as_me:$LINENO: error: Cannot find ellcc" >&5
2434 echo "$as_me: error: Cannot find ellcc" >&2;}
2435 { (exit 1); exit 1; }; }
2436 fi
2437
2438
2439 # Insert autoconf macros here to find the headers, libraries, other
2440 # programs, etc. needed by your module. If other libraries will be linked
2441 # with your module, then after detecting them, use a line of this form last:
2442
2443 # detect canna
2444 canna_includes_found=no
2445 if test "$with_canna" != "no"; then
2446
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2453 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2454 # On Suns, sometimes $CPP names a directory.
2455 if test -n "$CPP" && test -d "$CPP"; then
2456 CPP=
2457 fi
2458 if test -z "$CPP"; then
2459 if test "${ac_cv_prog_CPP+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 # Double quotes because CPP needs to be expanded
2463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2464 do
2465 ac_preproc_ok=false
2466 for ac_c_preproc_warn_flag in '' yes
2467 do
2468 # Use a header file that comes with gcc, so configuring glibc
2469 # with a fresh cross-compiler works.
2470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 # <limits.h> exists even on freestanding compilers.
2472 # On the NeXT, cc -E runs the code through the compiler's parser,
2473 # not just through cpp. "Syntax error" is here to catch this case.
2474 cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h. */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2480 #ifdef __STDC__
2481 # include <limits.h>
2482 #else
2483 # include <assert.h>
2484 #endif
2485 Syntax error
2486 _ACEOF
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498 else
2499 ac_cpp_err=
2500 fi
2501 else
2502 ac_cpp_err=yes
2503 fi
2504 if test -z "$ac_cpp_err"; then
2505 :
2506 else
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 # Broken: fails on valid input.
2511 continue
2512 fi
2513 rm -f conftest.err conftest.$ac_ext
2514
2515 # OK, works on sane cases. Now check whether non-existent headers
2516 # can be detected and how.
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #include <ac_nonexistent.h>
2524 _ACEOF
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2536 else
2537 ac_cpp_err=
2538 fi
2539 else
2540 ac_cpp_err=yes
2541 fi
2542 if test -z "$ac_cpp_err"; then
2543 # Broken: success on invalid input.
2544 continue
2545 else
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 # Passes both tests.
2550 ac_preproc_ok=:
2551 break
2552 fi
2553 rm -f conftest.err conftest.$ac_ext
2554
2555 done
2556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2557 rm -f conftest.err conftest.$ac_ext
2558 if $ac_preproc_ok; then
2559 break
2560 fi
2561
2562 done
2563 ac_cv_prog_CPP=$CPP
2564
2565 fi
2566 CPP=$ac_cv_prog_CPP
2567 else
2568 ac_cv_prog_CPP=$CPP
2569 fi
2570 echo "$as_me:$LINENO: result: $CPP" >&5
2571 echo "${ECHO_T}$CPP" >&6
2572 ac_preproc_ok=false
2573 for ac_c_preproc_warn_flag in '' yes
2574 do
2575 # Use a header file that comes with gcc, so configuring glibc
2576 # with a fresh cross-compiler works.
2577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2578 # <limits.h> exists even on freestanding compilers.
2579 # On the NeXT, cc -E runs the code through the compiler's parser,
2580 # not just through cpp. "Syntax error" is here to catch this case.
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 #ifdef __STDC__
2588 # include <limits.h>
2589 #else
2590 # include <assert.h>
2591 #endif
2592 Syntax error
2593 _ACEOF
2594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } >/dev/null; then
2602 if test -s conftest.err; then
2603 ac_cpp_err=$ac_c_preproc_warn_flag
2604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2605 else
2606 ac_cpp_err=
2607 fi
2608 else
2609 ac_cpp_err=yes
2610 fi
2611 if test -z "$ac_cpp_err"; then
2612 :
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 # Broken: fails on valid input.
2618 continue
2619 fi
2620 rm -f conftest.err conftest.$ac_ext
2621
2622 # OK, works on sane cases. Now check whether non-existent headers
2623 # can be detected and how.
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630 #include <ac_nonexistent.h>
2631 _ACEOF
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2634 ac_status=$?
2635 grep -v '^ *+' conftest.er1 >conftest.err
2636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2643 else
2644 ac_cpp_err=
2645 fi
2646 else
2647 ac_cpp_err=yes
2648 fi
2649 if test -z "$ac_cpp_err"; then
2650 # Broken: success on invalid input.
2651 continue
2652 else
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 # Passes both tests.
2657 ac_preproc_ok=:
2658 break
2659 fi
2660 rm -f conftest.err conftest.$ac_ext
2661
2662 done
2663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2664 rm -f conftest.err conftest.$ac_ext
2665 if $ac_preproc_ok; then
2666 :
2667 else
2668 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2673 fi
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681
2682 echo "$as_me:$LINENO: checking for egrep" >&5
2683 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2684 if test "${ac_cv_prog_egrep+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2688 then ac_cv_prog_egrep='grep -E'
2689 else ac_cv_prog_egrep='egrep'
2690 fi
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2693 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2694 EGREP=$ac_cv_prog_egrep
2695
2696
2697 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2698 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2699 if test "${ac_cv_header_stdc+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708 #include <stdlib.h>
2709 #include <stdarg.h>
2710 #include <string.h>
2711 #include <float.h>
2712
2713 int
2714 main ()
2715 {
2716
2717 ;
2718 return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723 (eval $ac_compile) 2>conftest.er1
2724 ac_status=$?
2725 grep -v '^ *+' conftest.er1 >conftest.err
2726 rm -f conftest.er1
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } &&
2730 { ac_try='test -z "$ac_c_werror_flag"
2731 || test ! -s conftest.err'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; }; then
2743 ac_cv_header_stdc=yes
2744 else
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 ac_cv_header_stdc=no
2749 fi
2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751
2752 if test $ac_cv_header_stdc = yes; then
2753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760 #include <string.h>
2761
2762 _ACEOF
2763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2764 $EGREP "memchr" >/dev/null 2>&1; then
2765 :
2766 else
2767 ac_cv_header_stdc=no
2768 fi
2769 rm -f conftest*
2770
2771 fi
2772
2773 if test $ac_cv_header_stdc = yes; then
2774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h. */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2781 #include <stdlib.h>
2782
2783 _ACEOF
2784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2785 $EGREP "free" >/dev/null 2>&1; then
2786 :
2787 else
2788 ac_cv_header_stdc=no
2789 fi
2790 rm -f conftest*
2791
2792 fi
2793
2794 if test $ac_cv_header_stdc = yes; then
2795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2796 if test "$cross_compiling" = yes; then
2797 :
2798 else
2799 cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h. */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2805 #include <ctype.h>
2806 #if ((' ' & 0x0FF) == 0x020)
2807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2809 #else
2810 # define ISLOWER(c) \
2811 (('a' <= (c) && (c) <= 'i') \
2812 || ('j' <= (c) && (c) <= 'r') \
2813 || ('s' <= (c) && (c) <= 'z'))
2814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2815 #endif
2816
2817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2818 int
2819 main ()
2820 {
2821 int i;
2822 for (i = 0; i < 256; i++)
2823 if (XOR (islower (i), ISLOWER (i))
2824 || toupper (i) != TOUPPER (i))
2825 exit(2);
2826 exit (0);
2827 }
2828 _ACEOF
2829 rm -f conftest$ac_exeext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2831 (eval $ac_link) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 :
2841 else
2842 echo "$as_me: program exited with status $ac_status" >&5
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 ( exit $ac_status )
2847 ac_cv_header_stdc=no
2848 fi
2849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2850 fi
2851 fi
2852 fi
2853 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2854 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2855 if test $ac_cv_header_stdc = yes; then
2856
2857 cat >>confdefs.h <<\_ACEOF
2858 #define STDC_HEADERS 1
2859 _ACEOF
2860
2861 fi
2862
2863 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2874 inttypes.h stdint.h unistd.h
2875 do
2876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2877 echo "$as_me:$LINENO: checking for $ac_header" >&5
2878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h. */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2888 $ac_includes_default
2889
2890 #include <$ac_header>
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -z "$ac_c_werror_flag"
2902 || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2914 eval "$as_ac_Header=yes"
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 eval "$as_ac_Header=no"
2920 fi
2921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2926 cat >>confdefs.h <<_ACEOF
2927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2928 _ACEOF
2929
2930 fi
2931
2932 done
2933
2934
2935 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
2936 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
2937 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
2938 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 fi
2941 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
2942 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
2943 else
2944 # Is the header compilable?
2945 echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5
2946 echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 $ac_includes_default
2954 #include <canna/jrkanji.h>
2955 _ACEOF
2956 rm -f conftest.$ac_objext
2957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2958 (eval $ac_compile) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag"
2966 || test ! -s conftest.err'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_header_compiler=yes
2979 else
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 ac_header_compiler=no
2984 fi
2985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2987 echo "${ECHO_T}$ac_header_compiler" >&6
2988
2989 # Is the header present?
2990 echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5
2991 echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h. */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
2998 #include <canna/jrkanji.h>
2999 _ACEOF
3000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev/null; then
3008 if test -s conftest.err; then
3009 ac_cpp_err=$ac_c_preproc_warn_flag
3010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 else
3012 ac_cpp_err=
3013 fi
3014 else
3015 ac_cpp_err=yes
3016 fi
3017 if test -z "$ac_cpp_err"; then
3018 ac_header_preproc=yes
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023 ac_header_preproc=no
3024 fi
3025 rm -f conftest.err conftest.$ac_ext
3026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3027 echo "${ECHO_T}$ac_header_preproc" >&6
3028
3029 # So? What about this header?
3030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3031 yes:no: )
3032 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&5
3033 echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3034 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&5
3035 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&2;}
3036 ac_header_preproc=yes
3037 ;;
3038 no:yes:* )
3039 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be compiled" >&5
3040 echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled" >&2;}
3041 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&5
3042 echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&2;}
3043 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&5
3044 echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&2;}
3045 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&5
3046 echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&2;}
3047 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&5
3048 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&2;}
3049 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&5
3050 echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&2;}
3051 (
3052 cat <<\_ASBOX
3053 ## ------------------------------------- ##
3054 ## Report this to xemacs-beta@xemacs.org ##
3055 ## ------------------------------------- ##
3056 _ASBOX
3057 ) |
3058 sed "s/^/$as_me: WARNING: /" >&2
3059 ;;
3060 esac
3061 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
3062 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
3063 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 ac_cv_header_canna_jrkanji_h=$ac_header_preproc
3067 fi
3068 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
3069 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
3070
3071 fi
3072 if test $ac_cv_header_canna_jrkanji_h = yes; then
3073 canna_includes_found=yes
3074 fi
3075
3076
3077 fi
3078 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
3079 -d "/usr/local/canna/include"; then
3080 save_c_switch_site="$c_switch_site"
3081 c_switch_site="$c_switch_site -I/usr/local/canna/include"
3082 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
3083 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
3084 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
3085 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 fi
3088 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
3089 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
3090 else
3091 # Is the header compilable?
3092 echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5
3093 echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 $ac_includes_default
3101 #include <canna/jrkanji.h>
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 (eval $ac_try) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3125 ac_header_compiler=yes
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_header_compiler=no
3131 fi
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3134 echo "${ECHO_T}$ac_header_compiler" >&6
3135
3136 # Is the header present?
3137 echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5
3138 echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145 #include <canna/jrkanji.h>
3146 _ACEOF
3147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } >/dev/null; then
3155 if test -s conftest.err; then
3156 ac_cpp_err=$ac_c_preproc_warn_flag
3157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158 else
3159 ac_cpp_err=
3160 fi
3161 else
3162 ac_cpp_err=yes
3163 fi
3164 if test -z "$ac_cpp_err"; then
3165 ac_header_preproc=yes
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 ac_header_preproc=no
3171 fi
3172 rm -f conftest.err conftest.$ac_ext
3173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3174 echo "${ECHO_T}$ac_header_preproc" >&6
3175
3176 # So? What about this header?
3177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3178 yes:no: )
3179 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&5
3180 echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&5
3182 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&2;}
3183 ac_header_preproc=yes
3184 ;;
3185 no:yes:* )
3186 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be compiled" >&5
3187 echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled" >&2;}
3188 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&5
3189 echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&2;}
3190 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&5
3191 echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&2;}
3192 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&5
3193 echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&2;}
3194 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&5
3195 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&2;}
3196 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&5
3197 echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&2;}
3198 (
3199 cat <<\_ASBOX
3200 ## ------------------------------------- ##
3201 ## Report this to xemacs-beta@xemacs.org ##
3202 ## ------------------------------------- ##
3203 _ASBOX
3204 ) |
3205 sed "s/^/$as_me: WARNING: /" >&2
3206 ;;
3207 esac
3208 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
3209 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
3210 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 ac_cv_header_canna_jrkanji_h=$ac_header_preproc
3214 fi
3215 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
3216 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
3217
3218 fi
3219 if test $ac_cv_header_canna_jrkanji_h = yes; then
3220 canna_includes_found=yes
3221 fi
3222
3223
3224 if test "$canna_includes_found" != "yes"; then
3225 c_switch_site="$save_c_switch_site"
3226 with_canna="no"
3227 fi
3228 fi
3229
3230 test -z "$with_canna" && { if test "${ac_cv_header_canna_RK_h+set}" = set; then
3231 echo "$as_me:$LINENO: checking for canna/RK.h" >&5
3232 echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6
3233 if test "${ac_cv_header_canna_RK_h+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 fi
3236 echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5
3237 echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6
3238 else
3239 # Is the header compilable?
3240 echo "$as_me:$LINENO: checking canna/RK.h usability" >&5
3241 echo $ECHO_N "checking canna/RK.h usability... $ECHO_C" >&6
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3248 $ac_includes_default
3249 #include <canna/RK.h>
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
3260 { ac_try='test -z "$ac_c_werror_flag"
3261 || test ! -s conftest.err'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest.$ac_objext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 ac_header_compiler=yes
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 ac_header_compiler=no
3279 fi
3280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3282 echo "${ECHO_T}$ac_header_compiler" >&6
3283
3284 # Is the header present?
3285 echo "$as_me:$LINENO: checking canna/RK.h presence" >&5
3286 echo $ECHO_N "checking canna/RK.h presence... $ECHO_C" >&6
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <canna/RK.h>
3294 _ACEOF
3295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 else
3307 ac_cpp_err=
3308 fi
3309 else
3310 ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313 ac_header_preproc=yes
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 ac_header_preproc=no
3319 fi
3320 rm -f conftest.err conftest.$ac_ext
3321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3322 echo "${ECHO_T}$ac_header_preproc" >&6
3323
3324 # So? What about this header?
3325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3326 yes:no: )
3327 { echo "$as_me:$LINENO: WARNING: canna/RK.h: accepted by the compiler, rejected by the preprocessor!" >&5
3328 echo "$as_me: WARNING: canna/RK.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3329 { echo "$as_me:$LINENO: WARNING: canna/RK.h: proceeding with the compiler's result" >&5
3330 echo "$as_me: WARNING: canna/RK.h: proceeding with the compiler's result" >&2;}
3331 ac_header_preproc=yes
3332 ;;
3333 no:yes:* )
3334 { echo "$as_me:$LINENO: WARNING: canna/RK.h: present but cannot be compiled" >&5
3335 echo "$as_me: WARNING: canna/RK.h: present but cannot be compiled" >&2;}
3336 { echo "$as_me:$LINENO: WARNING: canna/RK.h: check for missing prerequisite headers?" >&5
3337 echo "$as_me: WARNING: canna/RK.h: check for missing prerequisite headers?" >&2;}
3338 { echo "$as_me:$LINENO: WARNING: canna/RK.h: see the Autoconf documentation" >&5
3339 echo "$as_me: WARNING: canna/RK.h: see the Autoconf documentation" >&2;}
3340 { echo "$as_me:$LINENO: WARNING: canna/RK.h: section \"Present But Cannot Be Compiled\"" >&5
3341 echo "$as_me: WARNING: canna/RK.h: section \"Present But Cannot Be Compiled\"" >&2;}
3342 { echo "$as_me:$LINENO: WARNING: canna/RK.h: proceeding with the preprocessor's result" >&5
3343 echo "$as_me: WARNING: canna/RK.h: proceeding with the preprocessor's result" >&2;}
3344 { echo "$as_me:$LINENO: WARNING: canna/RK.h: in the future, the compiler will take precedence" >&5
3345 echo "$as_me: WARNING: canna/RK.h: in the future, the compiler will take precedence" >&2;}
3346 (
3347 cat <<\_ASBOX
3348 ## ------------------------------------- ##
3349 ## Report this to xemacs-beta@xemacs.org ##
3350 ## ------------------------------------- ##
3351 _ASBOX
3352 ) |
3353 sed "s/^/$as_me: WARNING: /" >&2
3354 ;;
3355 esac
3356 echo "$as_me:$LINENO: checking for canna/RK.h" >&5
3357 echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6
3358 if test "${ac_cv_header_canna_RK_h+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 ac_cv_header_canna_RK_h=$ac_header_preproc
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5
3364 echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6
3365
3366 fi
3367 if test $ac_cv_header_canna_RK_h = yes; then
3368 :
3369 else
3370 with_canna=no
3371 fi
3372
3373 }
3374 test -z "$with_canna" && { echo "$as_me:$LINENO: checking for RkBgnBun in -lRKC" >&5
3375 echo $ECHO_N "checking for RkBgnBun in -lRKC... $ECHO_C" >&6
3376 if test "${ac_cv_lib_RKC_RkBgnBun+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379 ac_check_lib_save_LIBS=$LIBS
3380 LIBS="-lRKC $LIBS"
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387
3388 /* Override any gcc2 internal prototype to avoid an error. */
3389 #ifdef __cplusplus
3390 extern "C"
3391 #endif
3392 /* We use char because int might match the return type of a gcc2
3393 builtin and then its argument prototype would still apply. */
3394 char RkBgnBun ();
3395 int
3396 main ()
3397 {
3398 RkBgnBun ();
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext conftest$ac_exeext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3405 (eval $ac_link) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest$ac_exeext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 ac_cv_lib_RKC_RkBgnBun=yes
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 ac_cv_lib_RKC_RkBgnBun=no
3431 fi
3432 rm -f conftest.err conftest.$ac_objext \
3433 conftest$ac_exeext conftest.$ac_ext
3434 LIBS=$ac_check_lib_save_LIBS
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_lib_RKC_RkBgnBun" >&5
3437 echo "${ECHO_T}$ac_cv_lib_RKC_RkBgnBun" >&6
3438 if test $ac_cv_lib_RKC_RkBgnBun = yes; then
3439 :
3440 else
3441 with_canna=no
3442 fi
3443 }
3444 test -z "$with_canna" && { echo "$as_me:$LINENO: checking for jrKanjiControl in -lcanna" >&5
3445 echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6
3446 if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 ac_check_lib_save_LIBS=$LIBS
3450 LIBS="-lcanna $LIBS"
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 #ifdef __cplusplus
3460 extern "C"
3461 #endif
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3464 char jrKanjiControl ();
3465 int
3466 main ()
3467 {
3468 jrKanjiControl ();
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext conftest$ac_exeext
3474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3475 (eval $ac_link) 2>conftest.er1
3476 ac_status=$?
3477 grep -v '^ *+' conftest.er1 >conftest.err
3478 rm -f conftest.er1
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } &&
3482 { ac_try='test -z "$ac_c_werror_flag"
3483 || test ! -s conftest.err'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; } &&
3489 { ac_try='test -s conftest$ac_exeext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_cv_lib_canna_jrKanjiControl=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 ac_cv_lib_canna_jrKanjiControl=no
3501 fi
3502 rm -f conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504 LIBS=$ac_check_lib_save_LIBS
3505 fi
3506 echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5
3507 echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6
3508 if test $ac_cv_lib_canna_jrKanjiControl = yes; then
3509 :
3510 else
3511 with_canna=no
3512 fi
3513 }
3514 test -z "$with_canna" && with_canna=yes
3515 if test "$with_canna" = "yes"; then
3516 cat >>confdefs.h <<\_ACEOF
3517 #define HAVE_CANNA 1
3518 _ACEOF
3519
3520 LIBS="-lcanna -lRKC"
3521 fi
3522
3523 canna_libs="$LIBS"
3524
3525
3526 # This part should appear unchanged in every module configure.ac
3527 PROGNAME="module"
3528
3529 MOD_CC="@ELLCC@"
3530
3531 MODARCHDIR="\$(shell @ELLCC@ --mod-archdir)"
3532
3533 MAKE_DOCFILE="\$(MODARCHDIR)/make-docfile"
3534
3535 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include"
3536
3537 INSTALLPATH="\$(shell @ELLCC@ --mod-site-location)"
3538
3539 MOD_INSTALL_PROGRAM="@INSTALL_PROGRAM@"
3540
3541 OBJECT_TO_BUILD="\$(MODNAME).ell"
3542
3543
3544 ac_config_files="$ac_config_files Makefile.in Makefile"
3545
3546 cat >confcache <<\_ACEOF
3547 # This file is a shell script that caches the results of configure
3548 # tests run on this system so they can be shared between configure
3549 # scripts and configure runs, see configure's option --config-cache.
3550 # It is not useful on other systems. If it contains results you don't
3551 # want to keep, you may remove or edit it.
3552 #
3553 # config.status only pays attention to the cache file if you give it
3554 # the --recheck option to rerun configure.
3555 #
3556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3558 # following values.
3559
3560 _ACEOF
3561
3562 # The following way of writing the cache mishandles newlines in values,
3563 # but we know of no workaround that is simple, portable, and efficient.
3564 # So, don't put newlines in cache variables' values.
3565 # Ultrix sh set writes to stderr and can't be redirected directly,
3566 # and sets the high bit in the cache file unless we assign to the vars.
3567 {
3568 (set) 2>&1 |
3569 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3570 *ac_space=\ *)
3571 # `set' does not quote correctly, so add quotes (double-quote
3572 # substitution turns \\\\ into \\, and sed turns \\ into \).
3573 sed -n \
3574 "s/'/'\\\\''/g;
3575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3576 ;;
3577 *)
3578 # `set' quotes correctly as required by POSIX, so do not add quotes.
3579 sed -n \
3580 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3581 ;;
3582 esac;
3583 } |
3584 sed '
3585 t clear
3586 : clear
3587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3588 t end
3589 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3590 : end' >>confcache
3591 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3592 if test -w $cache_file; then
3593 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3594 cat confcache >$cache_file
3595 else
3596 echo "not updating unwritable cache $cache_file"
3597 fi
3598 fi
3599 rm -f confcache
3600
3601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3602 # Let make expand exec_prefix.
3603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3604
3605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3607 # trailing colons and then remove the whole line if VPATH becomes empty
3608 # (actually we leave an empty line to preserve line numbers).
3609 if test "x$srcdir" = x.; then
3610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3611 s/:*\$(srcdir):*/:/;
3612 s/:*\${srcdir}:*/:/;
3613 s/:*@srcdir@:*/:/;
3614 s/^\([^=]*=[ ]*\):*/\1/;
3615 s/:*$//;
3616 s/^[^=]*=[ ]*$//;
3617 }'
3618 fi
3619
3620 # Transform confdefs.h into DEFS.
3621 # Protect against shell expansion while executing Makefile rules.
3622 # Protect against Makefile macro expansion.
3623 #
3624 # If the first sed substitution is executed (which looks for macros that
3625 # take arguments), then we branch to the quote section. Otherwise,
3626 # look for a macro that doesn't take arguments.
3627 cat >confdef2opt.sed <<\_ACEOF
3628 t clear
3629 : clear
3630 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3631 t quote
3632 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3633 t quote
3634 d
3635 : quote
3636 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3637 s,\[,\\&,g
3638 s,\],\\&,g
3639 s,\$,$$,g
3640 p
3641 _ACEOF
3642 # We use echo to avoid assuming a particular line-breaking character.
3643 # The extra dot is to prevent the shell from consuming trailing
3644 # line-breaks from the sub-command output. A line-break within
3645 # single-quotes doesn't work because, if this script is created in a
3646 # platform that uses two characters for line-breaks (e.g., DOS), tr
3647 # would break.
3648 ac_LF_and_DOT=`echo; echo .`
3649 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3650 rm -f confdef2opt.sed
3651
3652
3653 ac_libobjs=
3654 ac_ltlibobjs=
3655 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3656 # 1. Remove the extension, and $U if already installed.
3657 ac_i=`echo "$ac_i" |
3658 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3659 # 2. Add them.
3660 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3661 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3662 done
3663 LIBOBJS=$ac_libobjs
3664
3665 LTLIBOBJS=$ac_ltlibobjs
3666
3667
3668
3669 : ${CONFIG_STATUS=./config.status}
3670 ac_clean_files_save=$ac_clean_files
3671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3674 cat >$CONFIG_STATUS <<_ACEOF
3675 #! $SHELL
3676 # Generated by $as_me.
3677 # Run this file to recreate the current configuration.
3678 # Compiler output produced by configure, useful for debugging
3679 # configure, is in config.log if it exists.
3680
3681 debug=false
3682 ac_cs_recheck=false
3683 ac_cs_silent=false
3684 SHELL=\${CONFIG_SHELL-$SHELL}
3685 _ACEOF
3686
3687 cat >>$CONFIG_STATUS <<\_ACEOF
3688 ## --------------------- ##
3689 ## M4sh Initialization. ##
3690 ## --------------------- ##
3691
3692 # Be Bourne compatible
3693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3694 emulate sh
3695 NULLCMD=:
3696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3697 # is contrary to our usage. Disable this feature.
3698 alias -g '${1+"$@"}'='"$@"'
3699 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3700 set -o posix
3701 fi
3702 DUALCASE=1; export DUALCASE # for MKS sh
3703
3704 # Support unset when possible.
3705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3706 as_unset=unset
3707 else
3708 as_unset=false
3709 fi
3710
3711
3712 # Work around bugs in pre-3.0 UWIN ksh.
3713 $as_unset ENV MAIL MAILPATH
3714 PS1='$ '
3715 PS2='> '
3716 PS4='+ '
3717
3718 # NLS nuisances.
3719 for as_var in \
3720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3722 LC_TELEPHONE LC_TIME
3723 do
3724 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3725 eval $as_var=C; export $as_var
3726 else
3727 $as_unset $as_var
3728 fi
3729 done
3730
3731 # Required to use basename.
3732 if expr a : '\(a\)' >/dev/null 2>&1; then
3733 as_expr=expr
3734 else
3735 as_expr=false
3736 fi
3737
3738 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3739 as_basename=basename
3740 else
3741 as_basename=false
3742 fi
3743
3744
3745 # Name of the executable.
3746 as_me=`$as_basename "$0" ||
3747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3748 X"$0" : 'X\(//\)$' \| \
3749 X"$0" : 'X\(/\)$' \| \
3750 . : '\(.\)' 2>/dev/null ||
3751 echo X/"$0" |
3752 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3753 /^X\/\(\/\/\)$/{ s//\1/; q; }
3754 /^X\/\(\/\).*/{ s//\1/; q; }
3755 s/.*/./; q'`
3756
3757
3758 # PATH needs CR, and LINENO needs CR and PATH.
3759 # Avoid depending upon Character Ranges.
3760 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3761 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3762 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3763 as_cr_digits='0123456789'
3764 as_cr_alnum=$as_cr_Letters$as_cr_digits
3765
3766 # The user is always right.
3767 if test "${PATH_SEPARATOR+set}" != set; then
3768 echo "#! /bin/sh" >conf$$.sh
3769 echo "exit 0" >>conf$$.sh
3770 chmod +x conf$$.sh
3771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3772 PATH_SEPARATOR=';'
3773 else
3774 PATH_SEPARATOR=:
3775 fi
3776 rm -f conf$$.sh
3777 fi
3778
3779
3780 as_lineno_1=$LINENO
3781 as_lineno_2=$LINENO
3782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3783 test "x$as_lineno_1" != "x$as_lineno_2" &&
3784 test "x$as_lineno_3" = "x$as_lineno_2" || {
3785 # Find who we are. Look in the path if we contain no path at all
3786 # relative or not.
3787 case $0 in
3788 *[\\/]* ) as_myself=$0 ;;
3789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3795 done
3796
3797 ;;
3798 esac
3799 # We did not find ourselves, most probably we were run as `sh COMMAND'
3800 # in which case we are not to be found in the path.
3801 if test "x$as_myself" = x; then
3802 as_myself=$0
3803 fi
3804 if test ! -f "$as_myself"; then
3805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3806 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3807 { (exit 1); exit 1; }; }
3808 fi
3809 case $CONFIG_SHELL in
3810 '')
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3813 do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for as_base in sh bash ksh sh5; do
3817 case $as_dir in
3818 /*)
3819 if ("$as_dir/$as_base" -c '
3820 as_lineno_1=$LINENO
3821 as_lineno_2=$LINENO
3822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3823 test "x$as_lineno_1" != "x$as_lineno_2" &&
3824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3825 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3826 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3827 CONFIG_SHELL=$as_dir/$as_base
3828 export CONFIG_SHELL
3829 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3830 fi;;
3831 esac
3832 done
3833 done
3834 ;;
3835 esac
3836
3837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3838 # uniformly replaced by the line number. The first 'sed' inserts a
3839 # line-number line before each line; the second 'sed' does the real
3840 # work. The second script uses 'N' to pair each line-number line
3841 # with the numbered line, and appends trailing '-' during
3842 # substitution so that $LINENO is not a special case at line end.
3843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3844 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3845 sed '=' <$as_myself |
3846 sed '
3847 N
3848 s,$,-,
3849 : loop
3850 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3851 t loop
3852 s,-$,,
3853 s,^['$as_cr_digits']*\n,,
3854 ' >$as_me.lineno &&
3855 chmod +x $as_me.lineno ||
3856 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3857 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3858 { (exit 1); exit 1; }; }
3859
3860 # Don't try to exec as it changes $[0], causing all sort of problems
3861 # (the dirname of $[0] is not the place where we might find the
3862 # original and so on. Autoconf is especially sensible to this).
3863 . ./$as_me.lineno
3864 # Exit status is that of the last command.
3865 exit
3866 }
3867
3868
3869 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3870 *c*,-n*) ECHO_N= ECHO_C='
3871 ' ECHO_T=' ' ;;
3872 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3873 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3874 esac
3875
3876 if expr a : '\(a\)' >/dev/null 2>&1; then
3877 as_expr=expr
3878 else
3879 as_expr=false
3880 fi
3881
3882 rm -f conf$$ conf$$.exe conf$$.file
3883 echo >conf$$.file
3884 if ln -s conf$$.file conf$$ 2>/dev/null; then
3885 # We could just check for DJGPP; but this test a) works b) is more generic
3886 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3887 if test -f conf$$.exe; then
3888 # Don't use ln at all; we don't have any links
3889 as_ln_s='cp -p'
3890 else
3891 as_ln_s='ln -s'
3892 fi
3893 elif ln conf$$.file conf$$ 2>/dev/null; then
3894 as_ln_s=ln
3895 else
3896 as_ln_s='cp -p'
3897 fi
3898 rm -f conf$$ conf$$.exe conf$$.file
3899
3900 if mkdir -p . 2>/dev/null; then
3901 as_mkdir_p=:
3902 else
3903 test -d ./-p && rmdir ./-p
3904 as_mkdir_p=false
3905 fi
3906
3907 as_executable_p="test -f"
3908
3909 # Sed expression to map a string onto a valid CPP name.
3910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3911
3912 # Sed expression to map a string onto a valid variable name.
3913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3914
3915
3916 # IFS
3917 # We need space, tab and new line, in precisely that order.
3918 as_nl='
3919 '
3920 IFS=" $as_nl"
3921
3922 # CDPATH.
3923 $as_unset CDPATH
3924
3925 exec 6>&1
3926
3927 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3928 # report actual input values of CONFIG_FILES etc. instead of their
3929 # values after options handling. Logging --version etc. is OK.
3930 exec 5>>config.log
3931 {
3932 echo
3933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3934 ## Running $as_me. ##
3935 _ASBOX
3936 } >&5
3937 cat >&5 <<_CSEOF
3938
3939 This file was extended by Sample module $as_me 1.0, which was
3940 generated by GNU Autoconf 2.59. Invocation command line was
3941
3942 CONFIG_FILES = $CONFIG_FILES
3943 CONFIG_HEADERS = $CONFIG_HEADERS
3944 CONFIG_LINKS = $CONFIG_LINKS
3945 CONFIG_COMMANDS = $CONFIG_COMMANDS
3946 $ $0 $@
3947
3948 _CSEOF
3949 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3950 echo >&5
3951 _ACEOF
3952
3953 # Files that config.status was made for.
3954 if test -n "$ac_config_files"; then
3955 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3956 fi
3957
3958 if test -n "$ac_config_headers"; then
3959 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3960 fi
3961
3962 if test -n "$ac_config_links"; then
3963 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3964 fi
3965
3966 if test -n "$ac_config_commands"; then
3967 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3968 fi
3969
3970 cat >>$CONFIG_STATUS <<\_ACEOF
3971
3972 ac_cs_usage="\
3973 \`$as_me' instantiates files from templates according to the
3974 current configuration.
3975
3976 Usage: $0 [OPTIONS] [FILE]...
3977
3978 -h, --help print this help, then exit
3979 -V, --version print version number, then exit
3980 -q, --quiet do not print progress messages
3981 -d, --debug don't remove temporary files
3982 --recheck update $as_me by reconfiguring in the same conditions
3983 --file=FILE[:TEMPLATE]
3984 instantiate the configuration file FILE
3985
3986 Configuration files:
3987 $config_files
3988
3989 Report bugs to <bug-autoconf@gnu.org>."
3990 _ACEOF
3991
3992 cat >>$CONFIG_STATUS <<_ACEOF
3993 ac_cs_version="\\
3994 Sample module config.status 1.0
3995 configured by $0, generated by GNU Autoconf 2.59,
3996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3997
3998 Copyright (C) 2003 Free Software Foundation, Inc.
3999 This config.status script is free software; the Free Software Foundation
4000 gives unlimited permission to copy, distribute and modify it."
4001 srcdir=$srcdir
4002 INSTALL="$INSTALL"
4003 _ACEOF
4004
4005 cat >>$CONFIG_STATUS <<\_ACEOF
4006 # If no file are specified by the user, then we need to provide default
4007 # value. By we need to know if files were specified by the user.
4008 ac_need_defaults=:
4009 while test $# != 0
4010 do
4011 case $1 in
4012 --*=*)
4013 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4015 ac_shift=:
4016 ;;
4017 -*)
4018 ac_option=$1
4019 ac_optarg=$2
4020 ac_shift=shift
4021 ;;
4022 *) # This is not an option, so the user has probably given explicit
4023 # arguments.
4024 ac_option=$1
4025 ac_need_defaults=false;;
4026 esac
4027
4028 case $ac_option in
4029 # Handling of the options.
4030 _ACEOF
4031 cat >>$CONFIG_STATUS <<\_ACEOF
4032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4033 ac_cs_recheck=: ;;
4034 --version | --vers* | -V )
4035 echo "$ac_cs_version"; exit 0 ;;
4036 --he | --h)
4037 # Conflict between --help and --header
4038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4039 Try \`$0 --help' for more information." >&5
4040 echo "$as_me: error: ambiguous option: $1
4041 Try \`$0 --help' for more information." >&2;}
4042 { (exit 1); exit 1; }; };;
4043 --help | --hel | -h )
4044 echo "$ac_cs_usage"; exit 0 ;;
4045 --debug | --d* | -d )
4046 debug=: ;;
4047 --file | --fil | --fi | --f )
4048 $ac_shift
4049 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4050 ac_need_defaults=false;;
4051 --header | --heade | --head | --hea )
4052 $ac_shift
4053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4054 ac_need_defaults=false;;
4055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4057 ac_cs_silent=: ;;
4058
4059 # This is an error.
4060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4061 Try \`$0 --help' for more information." >&5
4062 echo "$as_me: error: unrecognized option: $1
4063 Try \`$0 --help' for more information." >&2;}
4064 { (exit 1); exit 1; }; } ;;
4065
4066 *) ac_config_targets="$ac_config_targets $1" ;;
4067
4068 esac
4069 shift
4070 done
4071
4072 ac_configure_extra_args=
4073
4074 if $ac_cs_silent; then
4075 exec 6>/dev/null
4076 ac_configure_extra_args="$ac_configure_extra_args --silent"
4077 fi
4078
4079 _ACEOF
4080 cat >>$CONFIG_STATUS <<_ACEOF
4081 if \$ac_cs_recheck; then
4082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4084 fi
4085
4086 _ACEOF
4087
4088
4089
4090
4091
4092 cat >>$CONFIG_STATUS <<\_ACEOF
4093 for ac_config_target in $ac_config_targets
4094 do
4095 case "$ac_config_target" in
4096 # Handling of arguments.
4097 "Makefile.in" ) CONFIG_FILES="$CONFIG_FILES Makefile.in" ;;
4098 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4099 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4100 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4101 { (exit 1); exit 1; }; };;
4102 esac
4103 done
4104
4105 # If the user did not use the arguments to specify the items to instantiate,
4106 # then the envvar interface is used. Set only those that are not.
4107 # We use the long form for the default assignment because of an extremely
4108 # bizarre bug on SunOS 4.1.3.
4109 if $ac_need_defaults; then
4110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4111 fi
4112
4113 # Have a temporary directory for convenience. Make it in the build tree
4114 # simply because there is no reason to put it here, and in addition,
4115 # creating and moving files from /tmp can sometimes cause problems.
4116 # Create a temporary directory, and hook for its removal unless debugging.
4117 $debug ||
4118 {
4119 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4120 trap '{ (exit 1); exit 1; }' 1 2 13 15
4121 }
4122
4123 # Create a (secure) tmp directory for tmp files.
4124
4125 {
4126 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4127 test -n "$tmp" && test -d "$tmp"
4128 } ||
4129 {
4130 tmp=./confstat$$-$RANDOM
4131 (umask 077 && mkdir $tmp)
4132 } ||
4133 {
4134 echo "$me: cannot create a temporary directory in ." >&2
4135 { (exit 1); exit 1; }
4136 }
4137
4138 _ACEOF
4139
4140 cat >>$CONFIG_STATUS <<_ACEOF
4141
4142 #
4143 # CONFIG_FILES section.
4144 #
4145
4146 # No need to generate the scripts if there are no CONFIG_FILES.
4147 # This happens for instance when ./config.status config.h
4148 if test -n "\$CONFIG_FILES"; then
4149 # Protect against being on the right side of a sed subst in config.status.
4150 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4151 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4152 s,@SHELL@,$SHELL,;t t
4153 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4154 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4155 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4156 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4157 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4158 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4159 s,@exec_prefix@,$exec_prefix,;t t
4160 s,@prefix@,$prefix,;t t
4161 s,@program_transform_name@,$program_transform_name,;t t
4162 s,@bindir@,$bindir,;t t
4163 s,@sbindir@,$sbindir,;t t
4164 s,@libexecdir@,$libexecdir,;t t
4165 s,@datadir@,$datadir,;t t
4166 s,@sysconfdir@,$sysconfdir,;t t
4167 s,@sharedstatedir@,$sharedstatedir,;t t
4168 s,@localstatedir@,$localstatedir,;t t
4169 s,@libdir@,$libdir,;t t
4170 s,@includedir@,$includedir,;t t
4171 s,@oldincludedir@,$oldincludedir,;t t
4172 s,@infodir@,$infodir,;t t
4173 s,@mandir@,$mandir,;t t
4174 s,@build_alias@,$build_alias,;t t
4175 s,@host_alias@,$host_alias,;t t
4176 s,@target_alias@,$target_alias,;t t
4177 s,@DEFS@,$DEFS,;t t
4178 s,@ECHO_C@,$ECHO_C,;t t
4179 s,@ECHO_N@,$ECHO_N,;t t
4180 s,@ECHO_T@,$ECHO_T,;t t
4181 s,@LIBS@,$LIBS,;t t
4182 s,@CC@,$CC,;t t
4183 s,@CFLAGS@,$CFLAGS,;t t
4184 s,@LDFLAGS@,$LDFLAGS,;t t
4185 s,@CPPFLAGS@,$CPPFLAGS,;t t
4186 s,@ac_ct_CC@,$ac_ct_CC,;t t
4187 s,@EXEEXT@,$EXEEXT,;t t
4188 s,@OBJEXT@,$OBJEXT,;t t
4189 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4190 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4191 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4192 s,@ELLCC@,$ELLCC,;t t
4193 s,@CPP@,$CPP,;t t
4194 s,@EGREP@,$EGREP,;t t
4195 s,@canna_libs@,$canna_libs,;t t
4196 s,@PROGNAME@,$PROGNAME,;t t
4197 s,@MOD_CC@,$MOD_CC,;t t
4198 s,@MODARCHDIR@,$MODARCHDIR,;t t
4199 s,@MAKE_DOCFILE@,$MAKE_DOCFILE,;t t
4200 s,@MODCFLAGS@,$MODCFLAGS,;t t
4201 s,@INSTALLPATH@,$INSTALLPATH,;t t
4202 s,@MOD_INSTALL_PROGRAM@,$MOD_INSTALL_PROGRAM,;t t
4203 s,@OBJECT_TO_BUILD@,$OBJECT_TO_BUILD,;t t
4204 s,@LIBOBJS@,$LIBOBJS,;t t
4205 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4206 CEOF
4207
4208 _ACEOF
4209
4210 cat >>$CONFIG_STATUS <<\_ACEOF
4211 # Split the substitutions into bite-sized pieces for seds with
4212 # small command number limits, like on Digital OSF/1 and HP-UX.
4213 ac_max_sed_lines=48
4214 ac_sed_frag=1 # Number of current file.
4215 ac_beg=1 # First line for current file.
4216 ac_end=$ac_max_sed_lines # Line after last line for current file.
4217 ac_more_lines=:
4218 ac_sed_cmds=
4219 while $ac_more_lines; do
4220 if test $ac_beg -gt 1; then
4221 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4222 else
4223 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4224 fi
4225 if test ! -s $tmp/subs.frag; then
4226 ac_more_lines=false
4227 else
4228 # The purpose of the label and of the branching condition is to
4229 # speed up the sed processing (if there are no `@' at all, there
4230 # is no need to browse any of the substitutions).
4231 # These are the two extra sed commands mentioned above.
4232 (echo ':t
4233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4234 if test -z "$ac_sed_cmds"; then
4235 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4236 else
4237 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4238 fi
4239 ac_sed_frag=`expr $ac_sed_frag + 1`
4240 ac_beg=$ac_end
4241 ac_end=`expr $ac_end + $ac_max_sed_lines`
4242 fi
4243 done
4244 if test -z "$ac_sed_cmds"; then
4245 ac_sed_cmds=cat
4246 fi
4247 fi # test -n "$CONFIG_FILES"
4248
4249 _ACEOF
4250 cat >>$CONFIG_STATUS <<\_ACEOF
4251 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4253 case $ac_file in
4254 - | *:- | *:-:* ) # input from stdin
4255 cat >$tmp/stdin
4256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4260 * ) ac_file_in=$ac_file.in ;;
4261 esac
4262
4263 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4264 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4266 X"$ac_file" : 'X\(//\)[^/]' \| \
4267 X"$ac_file" : 'X\(//\)$' \| \
4268 X"$ac_file" : 'X\(/\)' \| \
4269 . : '\(.\)' 2>/dev/null ||
4270 echo X"$ac_file" |
4271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4273 /^X\(\/\/\)$/{ s//\1/; q; }
4274 /^X\(\/\).*/{ s//\1/; q; }
4275 s/.*/./; q'`
4276 { if $as_mkdir_p; then
4277 mkdir -p "$ac_dir"
4278 else
4279 as_dir="$ac_dir"
4280 as_dirs=
4281 while test ! -d "$as_dir"; do
4282 as_dirs="$as_dir $as_dirs"
4283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4285 X"$as_dir" : 'X\(//\)[^/]' \| \
4286 X"$as_dir" : 'X\(//\)$' \| \
4287 X"$as_dir" : 'X\(/\)' \| \
4288 . : '\(.\)' 2>/dev/null ||
4289 echo X"$as_dir" |
4290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4292 /^X\(\/\/\)$/{ s//\1/; q; }
4293 /^X\(\/\).*/{ s//\1/; q; }
4294 s/.*/./; q'`
4295 done
4296 test ! -n "$as_dirs" || mkdir $as_dirs
4297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4299 { (exit 1); exit 1; }; }; }
4300
4301 ac_builddir=.
4302
4303 if test "$ac_dir" != .; then
4304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4305 # A "../" for each directory in $ac_dir_suffix.
4306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4307 else
4308 ac_dir_suffix= ac_top_builddir=
4309 fi
4310
4311 case $srcdir in
4312 .) # No --srcdir option. We are building in place.
4313 ac_srcdir=.
4314 if test -z "$ac_top_builddir"; then
4315 ac_top_srcdir=.
4316 else
4317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4318 fi ;;
4319 [\\/]* | ?:[\\/]* ) # Absolute path.
4320 ac_srcdir=$srcdir$ac_dir_suffix;
4321 ac_top_srcdir=$srcdir ;;
4322 *) # Relative path.
4323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4324 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4325 esac
4326
4327 # Do not use `cd foo && pwd` to compute absolute paths, because
4328 # the directories may not exist.
4329 case `pwd` in
4330 .) ac_abs_builddir="$ac_dir";;
4331 *)
4332 case "$ac_dir" in
4333 .) ac_abs_builddir=`pwd`;;
4334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4335 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4336 esac;;
4337 esac
4338 case $ac_abs_builddir in
4339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4340 *)
4341 case ${ac_top_builddir}. in
4342 .) ac_abs_top_builddir=$ac_abs_builddir;;
4343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4345 esac;;
4346 esac
4347 case $ac_abs_builddir in
4348 .) ac_abs_srcdir=$ac_srcdir;;
4349 *)
4350 case $ac_srcdir in
4351 .) ac_abs_srcdir=$ac_abs_builddir;;
4352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4354 esac;;
4355 esac
4356 case $ac_abs_builddir in
4357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4358 *)
4359 case $ac_top_srcdir in
4360 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4363 esac;;
4364 esac
4365
4366
4367 case $INSTALL in
4368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4369 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4370 esac
4371
4372 if test x"$ac_file" != x-; then
4373 { echo "$as_me:$LINENO: creating $ac_file" >&5
4374 echo "$as_me: creating $ac_file" >&6;}
4375 rm -f "$ac_file"
4376 fi
4377 # Let's still pretend it is `configure' which instantiates (i.e., don't
4378 # use $as_me), people would be surprised to read:
4379 # /* config.h. Generated by config.status. */
4380 if test x"$ac_file" = x-; then
4381 configure_input=
4382 else
4383 configure_input="$ac_file. "
4384 fi
4385 configure_input=$configure_input"Generated from `echo $ac_file_in |
4386 sed 's,.*/,,'` by configure."
4387
4388 # First look for the input files in the build tree, otherwise in the
4389 # src tree.
4390 ac_file_inputs=`IFS=:
4391 for f in $ac_file_in; do
4392 case $f in
4393 -) echo $tmp/stdin ;;
4394 [\\/$]*)
4395 # Absolute (can't be DOS-style, as IFS=:)
4396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4397 echo "$as_me: error: cannot find input file: $f" >&2;}
4398 { (exit 1); exit 1; }; }
4399 echo "$f";;
4400 *) # Relative
4401 if test -f "$f"; then
4402 # Build tree
4403 echo "$f"
4404 elif test -f "$srcdir/$f"; then
4405 # Source tree
4406 echo "$srcdir/$f"
4407 else
4408 # /dev/null tree
4409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4410 echo "$as_me: error: cannot find input file: $f" >&2;}
4411 { (exit 1); exit 1; }; }
4412 fi;;
4413 esac
4414 done` || { (exit 1); exit 1; }
4415 _ACEOF
4416 cat >>$CONFIG_STATUS <<_ACEOF
4417 sed "$ac_vpsub
4418 $extrasub
4419 _ACEOF
4420 cat >>$CONFIG_STATUS <<\_ACEOF
4421 :t
4422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4423 s,@configure_input@,$configure_input,;t t
4424 s,@srcdir@,$ac_srcdir,;t t
4425 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4426 s,@top_srcdir@,$ac_top_srcdir,;t t
4427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4428 s,@builddir@,$ac_builddir,;t t
4429 s,@abs_builddir@,$ac_abs_builddir,;t t
4430 s,@top_builddir@,$ac_top_builddir,;t t
4431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4432 s,@INSTALL@,$ac_INSTALL,;t t
4433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4434 rm -f $tmp/stdin
4435 if test x"$ac_file" != x-; then
4436 mv $tmp/out $ac_file
4437 else
4438 cat $tmp/out
4439 rm -f $tmp/out
4440 fi
4441
4442 done
4443 _ACEOF
4444
4445 cat >>$CONFIG_STATUS <<\_ACEOF
4446
4447 { (exit 0); exit 0; }
4448 _ACEOF
4449 chmod +x $CONFIG_STATUS
4450 ac_clean_files=$ac_clean_files_save
4451
4452
4453 # configure is writing to config.log, and then calls config.status.
4454 # config.status does its own redirection, appending to config.log.
4455 # Unfortunately, on DOS this fails, as config.log is still kept open
4456 # by configure, so config.status won't be able to write to it; its
4457 # output is simply discarded. So we exec the FD to /dev/null,
4458 # effectively closing config.log, so it can be properly (re)opened and
4459 # appended to by config.status. When coming back to configure, we
4460 # need to make the FD available again.
4461 if test "$no_create" != yes; then
4462 ac_cs_success=:
4463 ac_config_status_args=
4464 test "$silent" = yes &&
4465 ac_config_status_args="$ac_config_status_args --quiet"
4466 exec 5>/dev/null
4467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4468 exec 5>>config.log
4469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4470 # would make configure fail if this is the last instruction.
4471 $ac_cs_success || { (exit 1); exit 1; }
4472 fi
4473