Remove fatal_error, last part IV
[texmacs.git] / server / configure
blob75975778cd24b3ee3a14d2d32239f9b753cec72f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
262 # Initialize some variables set by options.
263 ac_init_help=
264 ac_init_version=false
265 # The variables have the same names as the options, with
266 # dashes changed to underlines.
267 cache_file=/dev/null
268 exec_prefix=NONE
269 no_create=
270 no_recursion=
271 prefix=NONE
272 program_prefix=NONE
273 program_suffix=NONE
274 program_transform_name=s,x,x,
275 silent=
276 site=
277 srcdir=
278 verbose=
279 x_includes=NONE
280 x_libraries=NONE
282 # Installation directory options.
283 # These are left unexpanded so users can "make install exec_prefix=/foo"
284 # and all the variables that are supposed to be based on exec_prefix
285 # by default will actually change.
286 # Use braces instead of parens because sh, perl, etc. also accept them.
287 bindir='${exec_prefix}/bin'
288 sbindir='${exec_prefix}/sbin'
289 libexecdir='${exec_prefix}/libexec'
290 datadir='${prefix}/share'
291 sysconfdir='${prefix}/etc'
292 sharedstatedir='${prefix}/com'
293 localstatedir='${prefix}/var'
294 libdir='${exec_prefix}/lib'
295 includedir='${prefix}/include'
296 oldincludedir='/usr/include'
297 infodir='${prefix}/info'
298 mandir='${prefix}/man'
300 ac_prev=
301 for ac_option
303 # If the previous option needs an argument, assign it.
304 if test -n "$ac_prev"; then
305 eval "$ac_prev=\$ac_option"
306 ac_prev=
307 continue
310 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
312 # Accept the important Cygnus configure options, so we can diagnose typos.
314 case $ac_option in
316 -bindir | --bindir | --bindi | --bind | --bin | --bi)
317 ac_prev=bindir ;;
318 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
319 bindir=$ac_optarg ;;
321 -build | --build | --buil | --bui | --bu)
322 ac_prev=build_alias ;;
323 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
324 build_alias=$ac_optarg ;;
326 -cache-file | --cache-file | --cache-fil | --cache-fi \
327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
328 ac_prev=cache_file ;;
329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
331 cache_file=$ac_optarg ;;
333 --config-cache | -C)
334 cache_file=config.cache ;;
336 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
337 ac_prev=datadir ;;
338 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
339 | --da=*)
340 datadir=$ac_optarg ;;
342 -disable-* | --disable-*)
343 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
344 # Reject names that are not valid shell variable names.
345 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
346 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
347 { (exit 1); exit 1; }; }
348 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
349 eval "enable_$ac_feature=no" ;;
351 -enable-* | --enable-*)
352 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
353 # Reject names that are not valid shell variable names.
354 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
355 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
356 { (exit 1); exit 1; }; }
357 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
358 case $ac_option in
359 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
360 *) ac_optarg=yes ;;
361 esac
362 eval "enable_$ac_feature='$ac_optarg'" ;;
364 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
365 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
366 | --exec | --exe | --ex)
367 ac_prev=exec_prefix ;;
368 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
369 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
370 | --exec=* | --exe=* | --ex=*)
371 exec_prefix=$ac_optarg ;;
373 -gas | --gas | --ga | --g)
374 # Obsolete; use --with-gas.
375 with_gas=yes ;;
377 -help | --help | --hel | --he | -h)
378 ac_init_help=long ;;
379 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
380 ac_init_help=recursive ;;
381 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
382 ac_init_help=short ;;
384 -host | --host | --hos | --ho)
385 ac_prev=host_alias ;;
386 -host=* | --host=* | --hos=* | --ho=*)
387 host_alias=$ac_optarg ;;
389 -includedir | --includedir | --includedi | --included | --include \
390 | --includ | --inclu | --incl | --inc)
391 ac_prev=includedir ;;
392 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
393 | --includ=* | --inclu=* | --incl=* | --inc=*)
394 includedir=$ac_optarg ;;
396 -infodir | --infodir | --infodi | --infod | --info | --inf)
397 ac_prev=infodir ;;
398 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
399 infodir=$ac_optarg ;;
401 -libdir | --libdir | --libdi | --libd)
402 ac_prev=libdir ;;
403 -libdir=* | --libdir=* | --libdi=* | --libd=*)
404 libdir=$ac_optarg ;;
406 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
407 | --libexe | --libex | --libe)
408 ac_prev=libexecdir ;;
409 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
410 | --libexe=* | --libex=* | --libe=*)
411 libexecdir=$ac_optarg ;;
413 -localstatedir | --localstatedir | --localstatedi | --localstated \
414 | --localstate | --localstat | --localsta | --localst \
415 | --locals | --local | --loca | --loc | --lo)
416 ac_prev=localstatedir ;;
417 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
418 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
419 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
420 localstatedir=$ac_optarg ;;
422 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
423 ac_prev=mandir ;;
424 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
425 mandir=$ac_optarg ;;
427 -nfp | --nfp | --nf)
428 # Obsolete; use --without-fp.
429 with_fp=no ;;
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c | -n)
433 no_create=yes ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
437 no_recursion=yes ;;
439 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
440 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
441 | --oldin | --oldi | --old | --ol | --o)
442 ac_prev=oldincludedir ;;
443 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
444 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
445 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
446 oldincludedir=$ac_optarg ;;
448 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
449 ac_prev=prefix ;;
450 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
451 prefix=$ac_optarg ;;
453 -program-prefix | --program-prefix | --program-prefi | --program-pref \
454 | --program-pre | --program-pr | --program-p)
455 ac_prev=program_prefix ;;
456 -program-prefix=* | --program-prefix=* | --program-prefi=* \
457 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
458 program_prefix=$ac_optarg ;;
460 -program-suffix | --program-suffix | --program-suffi | --program-suff \
461 | --program-suf | --program-su | --program-s)
462 ac_prev=program_suffix ;;
463 -program-suffix=* | --program-suffix=* | --program-suffi=* \
464 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
465 program_suffix=$ac_optarg ;;
467 -program-transform-name | --program-transform-name \
468 | --program-transform-nam | --program-transform-na \
469 | --program-transform-n | --program-transform- \
470 | --program-transform | --program-transfor \
471 | --program-transfo | --program-transf \
472 | --program-trans | --program-tran \
473 | --progr-tra | --program-tr | --program-t)
474 ac_prev=program_transform_name ;;
475 -program-transform-name=* | --program-transform-name=* \
476 | --program-transform-nam=* | --program-transform-na=* \
477 | --program-transform-n=* | --program-transform-=* \
478 | --program-transform=* | --program-transfor=* \
479 | --program-transfo=* | --program-transf=* \
480 | --program-trans=* | --program-tran=* \
481 | --progr-tra=* | --program-tr=* | --program-t=*)
482 program_transform_name=$ac_optarg ;;
484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
485 | -silent | --silent | --silen | --sile | --sil)
486 silent=yes ;;
488 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
489 ac_prev=sbindir ;;
490 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
491 | --sbi=* | --sb=*)
492 sbindir=$ac_optarg ;;
494 -sharedstatedir | --sharedstatedir | --sharedstatedi \
495 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
496 | --sharedst | --shareds | --shared | --share | --shar \
497 | --sha | --sh)
498 ac_prev=sharedstatedir ;;
499 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
500 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
501 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
502 | --sha=* | --sh=*)
503 sharedstatedir=$ac_optarg ;;
505 -site | --site | --sit)
506 ac_prev=site ;;
507 -site=* | --site=* | --sit=*)
508 site=$ac_optarg ;;
510 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
511 ac_prev=srcdir ;;
512 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
513 srcdir=$ac_optarg ;;
515 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
516 | --syscon | --sysco | --sysc | --sys | --sy)
517 ac_prev=sysconfdir ;;
518 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
519 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
520 sysconfdir=$ac_optarg ;;
522 -target | --target | --targe | --targ | --tar | --ta | --t)
523 ac_prev=target_alias ;;
524 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
525 target_alias=$ac_optarg ;;
527 -v | -verbose | --verbose | --verbos | --verbo | --verb)
528 verbose=yes ;;
530 -version | --version | --versio | --versi | --vers | -V)
531 ac_init_version=: ;;
533 -with-* | --with-*)
534 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
535 # Reject names that are not valid shell variable names.
536 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
537 { echo "$as_me: error: invalid package name: $ac_package" >&2
538 { (exit 1); exit 1; }; }
539 ac_package=`echo $ac_package| sed 's/-/_/g'`
540 case $ac_option in
541 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
542 *) ac_optarg=yes ;;
543 esac
544 eval "with_$ac_package='$ac_optarg'" ;;
546 -without-* | --without-*)
547 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid package name: $ac_package" >&2
551 { (exit 1); exit 1; }; }
552 ac_package=`echo $ac_package | sed 's/-/_/g'`
553 eval "with_$ac_package=no" ;;
555 --x)
556 # Obsolete; use --with-x.
557 with_x=yes ;;
559 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
560 | --x-incl | --x-inc | --x-in | --x-i)
561 ac_prev=x_includes ;;
562 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
563 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
564 x_includes=$ac_optarg ;;
566 -x-libraries | --x-libraries | --x-librarie | --x-librari \
567 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
568 ac_prev=x_libraries ;;
569 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
570 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
571 x_libraries=$ac_optarg ;;
573 -*) { echo "$as_me: error: unrecognized option: $ac_option
574 Try \`$0 --help' for more information." >&2
575 { (exit 1); exit 1; }; }
578 *=*)
579 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
580 # Reject names that are not valid shell variable names.
581 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
582 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
583 { (exit 1); exit 1; }; }
584 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
585 eval "$ac_envvar='$ac_optarg'"
586 export $ac_envvar ;;
589 # FIXME: should be removed in autoconf 3.0.
590 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
591 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
592 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
593 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
596 esac
597 done
599 if test -n "$ac_prev"; then
600 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
601 { echo "$as_me: error: missing argument to $ac_option" >&2
602 { (exit 1); exit 1; }; }
605 # Be sure to have absolute paths.
606 for ac_var in exec_prefix prefix
608 eval ac_val=$`echo $ac_var`
609 case $ac_val in
610 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
611 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
612 { (exit 1); exit 1; }; };;
613 esac
614 done
616 # Be sure to have absolute paths.
617 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
618 localstatedir libdir includedir oldincludedir infodir mandir
620 eval ac_val=$`echo $ac_var`
621 case $ac_val in
622 [\\/$]* | ?:[\\/]* ) ;;
623 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
624 { (exit 1); exit 1; }; };;
625 esac
626 done
628 # There might be people who depend on the old broken behavior: `$host'
629 # used to hold the argument of --host etc.
630 # FIXME: To remove some day.
631 build=$build_alias
632 host=$host_alias
633 target=$target_alias
635 # FIXME: To remove some day.
636 if test "x$host_alias" != x; then
637 if test "x$build_alias" = x; then
638 cross_compiling=maybe
639 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
640 If a cross compiler is detected then cross compile mode will be used." >&2
641 elif test "x$build_alias" != "x$host_alias"; then
642 cross_compiling=yes
646 ac_tool_prefix=
647 test -n "$host_alias" && ac_tool_prefix=$host_alias-
649 test "$silent" = yes && exec 6>/dev/null
652 # Find the source files, if location was not specified.
653 if test -z "$srcdir"; then
654 ac_srcdir_defaulted=yes
655 # Try the directory containing this script, then its parent.
656 ac_confdir=`(dirname "$0") 2>/dev/null ||
657 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
658 X"$0" : 'X\(//\)[^/]' \| \
659 X"$0" : 'X\(//\)$' \| \
660 X"$0" : 'X\(/\)' \| \
661 . : '\(.\)' 2>/dev/null ||
662 echo X"$0" |
663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
665 /^X\(\/\/\)$/{ s//\1/; q; }
666 /^X\(\/\).*/{ s//\1/; q; }
667 s/.*/./; q'`
668 srcdir=$ac_confdir
669 if test ! -r $srcdir/$ac_unique_file; then
670 srcdir=..
672 else
673 ac_srcdir_defaulted=no
675 if test ! -r $srcdir/$ac_unique_file; then
676 if test "$ac_srcdir_defaulted" = yes; then
677 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
678 { (exit 1); exit 1; }; }
679 else
680 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
681 { (exit 1); exit 1; }; }
684 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
685 ac_env_build_alias_set=${build_alias+set}
686 ac_env_build_alias_value=$build_alias
687 ac_cv_env_build_alias_set=${build_alias+set}
688 ac_cv_env_build_alias_value=$build_alias
689 ac_env_host_alias_set=${host_alias+set}
690 ac_env_host_alias_value=$host_alias
691 ac_cv_env_host_alias_set=${host_alias+set}
692 ac_cv_env_host_alias_value=$host_alias
693 ac_env_target_alias_set=${target_alias+set}
694 ac_env_target_alias_value=$target_alias
695 ac_cv_env_target_alias_set=${target_alias+set}
696 ac_cv_env_target_alias_value=$target_alias
699 # Report the --help message.
701 if test "$ac_init_help" = "long"; then
702 # Omit some internal or obsolete options to make the list less imposing.
703 # This message is too long to be a string in the A/UX 3.1 sh.
704 cat <<_ACEOF
705 \`configure' configures this package to adapt to many kinds of systems.
707 Usage: $0 [OPTION]... [VAR=VALUE]...
709 To assign environment variables (e.g., CC, CFLAGS...), specify them as
710 VAR=VALUE. See below for descriptions of some of the useful variables.
712 Defaults for the options are specified in brackets.
714 Configuration:
715 -h, --help display this help and exit
716 --help=short display options specific to this package
717 --help=recursive display the short help of all the included packages
718 -V, --version display version information and exit
719 -q, --quiet, --silent do not print \`checking...' messages
720 --cache-file=FILE cache test results in FILE [disabled]
721 -C, --config-cache alias for \`--cache-file=config.cache'
722 -n, --no-create do not create output files
723 --srcdir=DIR find the sources in DIR [configure dir or \`..']
725 _ACEOF
727 cat <<_ACEOF
728 Installation directories:
729 --prefix=PREFIX install architecture-independent files in PREFIX
730 [$ac_default_prefix]
731 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
732 [PREFIX]
734 By default, \`make install' will install all the files in
735 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
736 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
737 for instance \`--prefix=\$HOME'.
739 For better control, use the options below.
741 Fine tuning of the installation directories:
742 --bindir=DIR user executables [EPREFIX/bin]
743 --sbindir=DIR system admin executables [EPREFIX/sbin]
744 --libexecdir=DIR program executables [EPREFIX/libexec]
745 --datadir=DIR read-only architecture-independent data [PREFIX/share]
746 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
747 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
748 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
749 --libdir=DIR object code libraries [EPREFIX/lib]
750 --includedir=DIR C header files [PREFIX/include]
751 --oldincludedir=DIR C header files for non-gcc [/usr/include]
752 --infodir=DIR info documentation [PREFIX/info]
753 --mandir=DIR man documentation [PREFIX/man]
754 _ACEOF
756 cat <<\_ACEOF
757 _ACEOF
760 if test -n "$ac_init_help"; then
762 cat <<\_ACEOF
764 _ACEOF
767 if test "$ac_init_help" = "recursive"; then
768 # If there are subdirs, report their specific --help.
769 ac_popdir=`pwd`
770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
771 test -d $ac_dir || continue
772 ac_builddir=.
774 if test "$ac_dir" != .; then
775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
776 # A "../" for each directory in $ac_dir_suffix.
777 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
778 else
779 ac_dir_suffix= ac_top_builddir=
782 case $srcdir in
783 .) # No --srcdir option. We are building in place.
784 ac_srcdir=.
785 if test -z "$ac_top_builddir"; then
786 ac_top_srcdir=.
787 else
788 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
789 fi ;;
790 [\\/]* | ?:[\\/]* ) # Absolute path.
791 ac_srcdir=$srcdir$ac_dir_suffix;
792 ac_top_srcdir=$srcdir ;;
793 *) # Relative path.
794 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
795 ac_top_srcdir=$ac_top_builddir$srcdir ;;
796 esac
797 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
798 # absolute.
799 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
800 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
801 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
802 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
804 cd $ac_dir
805 # Check for guested configure; otherwise get Cygnus style configure.
806 if test -f $ac_srcdir/configure.gnu; then
807 echo
808 $SHELL $ac_srcdir/configure.gnu --help=recursive
809 elif test -f $ac_srcdir/configure; then
810 echo
811 $SHELL $ac_srcdir/configure --help=recursive
812 elif test -f $ac_srcdir/configure.ac ||
813 test -f $ac_srcdir/configure.in; then
814 echo
815 $ac_configure --help
816 else
817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
819 cd $ac_popdir
820 done
823 test -n "$ac_init_help" && exit 0
824 if $ac_init_version; then
825 cat <<\_ACEOF
827 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
828 Free Software Foundation, Inc.
829 This configure script is free software; the Free Software Foundation
830 gives unlimited permission to copy, distribute and modify it.
831 _ACEOF
832 exit 0
834 exec 5>config.log
835 cat >&5 <<_ACEOF
836 This file contains any messages produced by compilers while
837 running configure, to aid debugging if configure makes a mistake.
839 It was created by $as_me, which was
840 generated by GNU Autoconf 2.53. Invocation command line was
842 $ $0 $@
844 _ACEOF
846 cat <<_ASUNAME
847 ## --------- ##
848 ## Platform. ##
849 ## --------- ##
851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
863 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
868 _ASUNAME
870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
871 for as_dir in $PATH
873 IFS=$as_save_IFS
874 test -z "$as_dir" && as_dir=.
875 echo "PATH: $as_dir"
876 done
878 } >&5
880 cat >&5 <<_ACEOF
883 ## ----------- ##
884 ## Core tests. ##
885 ## ----------- ##
887 _ACEOF
890 # Keep a trace of the command line.
891 # Strip out --no-create and --no-recursion so they do not pile up.
892 # Also quote any args containing shell meta-characters.
893 ac_configure_args=
894 ac_sep=
895 for ac_arg
897 case $ac_arg in
898 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
899 | --no-cr | --no-c | -n ) continue ;;
900 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
901 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
902 continue ;;
903 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
904 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
905 esac
906 case " $ac_configure_args " in
907 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
908 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
909 ac_sep=" " ;;
910 esac
911 # Get rid of the leading space.
912 done
914 # When interrupted or exit'd, cleanup temporary files, and complete
915 # config.log. We remove comments because anyway the quotes in there
916 # would cause problems or look ugly.
917 # WARNING: Be sure not to use single quotes in there, as some shells,
918 # such as our DU 5.0 friend, will then `close' the trap.
919 trap 'exit_status=$?
920 # Save into config.log some information that might help in debugging.
922 echo
923 cat <<\_ASBOX
924 ## ---------------- ##
925 ## Cache variables. ##
926 ## ---------------- ##
927 _ASBOX
928 echo
929 # The following way of writing the cache mishandles newlines in values,
931 (set) 2>&1 |
932 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
933 *ac_space=\ *)
934 sed -n \
935 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
939 sed -n \
940 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
942 esac;
944 echo
945 if test -s confdefs.h; then
946 cat <<\_ASBOX
947 ## ----------- ##
948 ## confdefs.h. ##
949 ## ----------- ##
950 _ASBOX
951 echo
952 sed "/^$/d" confdefs.h
953 echo
955 test "$ac_signal" != 0 &&
956 echo "$as_me: caught signal $ac_signal"
957 echo "$as_me: exit $exit_status"
958 } >&5
959 rm -f core core.* *.core &&
960 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
961 exit $exit_status
963 for ac_signal in 1 2 13 15; do
964 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
965 done
966 ac_signal=0
968 # confdefs.h avoids OS command line length limits that DEFS can exceed.
969 rm -rf conftest* confdefs.h
970 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
971 echo >confdefs.h
973 # Predefined preprocessor variables.
975 cat >>confdefs.h <<_ACEOF
976 #define PACKAGE_NAME "$PACKAGE_NAME"
977 _ACEOF
980 cat >>confdefs.h <<_ACEOF
981 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
982 _ACEOF
985 cat >>confdefs.h <<_ACEOF
986 #define PACKAGE_VERSION "$PACKAGE_VERSION"
987 _ACEOF
990 cat >>confdefs.h <<_ACEOF
991 #define PACKAGE_STRING "$PACKAGE_STRING"
992 _ACEOF
995 cat >>confdefs.h <<_ACEOF
996 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
997 _ACEOF
1000 # Let the site file select an alternate cache file if it wants to.
1001 # Prefer explicitly selected file to automatically selected ones.
1002 if test -z "$CONFIG_SITE"; then
1003 if test "x$prefix" != xNONE; then
1004 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1005 else
1006 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1009 for ac_site_file in $CONFIG_SITE; do
1010 if test -r "$ac_site_file"; then
1011 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1012 echo "$as_me: loading site script $ac_site_file" >&6;}
1013 sed 's/^/| /' "$ac_site_file" >&5
1014 . "$ac_site_file"
1016 done
1018 if test -r "$cache_file"; then
1019 # Some versions of bash will fail to source /dev/null (special
1020 # files actually), so we avoid doing that.
1021 if test -f "$cache_file"; then
1022 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1023 echo "$as_me: loading cache $cache_file" >&6;}
1024 case $cache_file in
1025 [\\/]* | ?:[\\/]* ) . $cache_file;;
1026 *) . ./$cache_file;;
1027 esac
1029 else
1030 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1031 echo "$as_me: creating cache $cache_file" >&6;}
1032 >$cache_file
1035 # Check that the precious variables saved in the cache have kept the same
1036 # value.
1037 ac_cache_corrupted=false
1038 for ac_var in `(set) 2>&1 |
1039 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1041 eval ac_new_set=\$ac_env_${ac_var}_set
1042 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1043 eval ac_new_val="\$ac_env_${ac_var}_value"
1044 case $ac_old_set,$ac_new_set in
1045 set,)
1046 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1047 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1048 ac_cache_corrupted=: ;;
1049 ,set)
1050 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1053 ,);;
1055 if test "x$ac_old_val" != "x$ac_new_val"; then
1056 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1057 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1058 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1059 echo "$as_me: former value: $ac_old_val" >&2;}
1060 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1061 echo "$as_me: current value: $ac_new_val" >&2;}
1062 ac_cache_corrupted=:
1063 fi;;
1064 esac
1065 # Pass precious variables to config.status.
1066 if test "$ac_new_set" = set; then
1067 case $ac_new_val in
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 *) ac_arg=$ac_var=$ac_new_val ;;
1071 esac
1072 case " $ac_configure_args " in
1073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1074 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1075 esac
1077 done
1078 if $ac_cache_corrupted; then
1079 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1080 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1081 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1082 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1083 { (exit 1); exit 1; }; }
1086 ac_ext=c
1087 ac_cpp='$CPP $CPPFLAGS'
1088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1110 PACKAGE="texmacsd"
1111 VERSION="0.0"
1112 RELEASE="1"
1117 #--------------------------------------------------------------------
1118 # Checks for Guile
1119 #--------------------------------------------------------------------
1122 ## The GUILE_FLAGS macro.
1123 ## First, let's just see if we can find Guile at all.
1124 echo "$as_me:$LINENO: checking for Guile" >&5
1125 echo $ECHO_N "checking for Guile... $ECHO_C" >&6
1126 guile-config link > /dev/null || {
1127 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
1128 exit 1
1130 GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
1131 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
1132 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
1133 GUILE_LDFLAGS="`guile-config link`"
1134 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
1137 echo "$as_me:$LINENO: result: yes" >&5
1138 echo "${ECHO_T}yes" >&6
1140 echo "$as_me:$LINENO: checking version of guile" >&5
1141 echo $ECHO_N "checking version of guile... $ECHO_C" >&6
1142 GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
1143 echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
1144 echo "${ECHO_T}$GUILE_VERSION" >&6
1146 #--------------------------------------------------------------------
1147 # Default paths for installation
1148 #--------------------------------------------------------------------
1150 if test "$prefix" = ""; then
1151 prefix=/usr/local
1153 if test "$prefix" = "NONE"; then
1154 prefix=/usr/local
1156 if test "$exec_prefix" = ""; then
1157 exec_prefix=${prefix}
1159 if test "$exec_prefix" = "NONE"; then
1160 exec_prefix=${prefix}
1162 if test "$exec_prefix" = '${prefix}'; then
1163 exec_prefix=${prefix}
1165 if test "$bindir" = ""; then
1166 bindir=${exec_prefix}/bin
1168 if test "$bindir" = "NONE"; then
1169 bindir=${exec_prefix}/bin
1171 if test "$bindir" = '${exec_prefix}/bin'; then
1172 bindir=${exec_prefix}/bin
1174 if test "$datadir" = ""; then
1175 datadir=${prefix}/share
1177 if test "$datadir" = "NONE"; then
1178 datadir=${prefix}/share
1180 if test "$datadir" = '${prefix}/share'; then
1181 datadir=${prefix}/share
1183 if test "$libexecdir" = ""; then
1184 libexecdir=${exec_prefix}/libexec
1186 if test "$libexecdir" = "NONE"; then
1187 libexecdir=${exec_prefix}/libexec
1189 if test "$libexecdir" = '${exec_prefix}/libexec'; then
1190 libexecdir=${exec_prefix}/libexec
1193 curdir="`pwd`"
1194 tmorig=${curdir}
1195 tmdir=${PACKAGE}
1196 tmsrc=${curdir}/${tmdir}
1197 progdir=${datadir}/texmacsd
1203 #--------------------------------------------------------------------
1204 # Done
1205 #--------------------------------------------------------------------
1207 ac_config_files="$ac_config_files Makefile:Makefile.in bin/texmacsd:bin/texmacsd.in bin/tm-client:bin/tm-client.in"
1208 cat >confcache <<\_ACEOF
1209 # This file is a shell script that caches the results of configure
1210 # tests run on this system so they can be shared between configure
1211 # scripts and configure runs, see configure's option --config-cache.
1212 # It is not useful on other systems. If it contains results you don't
1213 # want to keep, you may remove or edit it.
1215 # config.status only pays attention to the cache file if you give it
1216 # the --recheck option to rerun configure.
1218 # `ac_cv_env_foo' variables (set or unset) will be overriden when
1219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1220 # following values.
1222 _ACEOF
1224 # The following way of writing the cache mishandles newlines in values,
1225 # but we know of no workaround that is simple, portable, and efficient.
1226 # So, don't put newlines in cache variables' values.
1227 # Ultrix sh set writes to stderr and can't be redirected directly,
1228 # and sets the high bit in the cache file unless we assign to the vars.
1230 (set) 2>&1 |
1231 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1232 *ac_space=\ *)
1233 # `set' does not quote correctly, so add quotes (double-quote
1234 # substitution turns \\\\ into \\, and sed turns \\ into \).
1235 sed -n \
1236 "s/'/'\\\\''/g;
1237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1240 # `set' quotes correctly as required by POSIX, so do not add quotes.
1241 sed -n \
1242 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1244 esac;
1246 sed '
1247 t clear
1248 : clear
1249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1250 t end
1251 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1252 : end' >>confcache
1253 if cmp -s $cache_file confcache; then :; else
1254 if test -w $cache_file; then
1255 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1256 cat confcache >$cache_file
1257 else
1258 echo "not updating unwritable cache $cache_file"
1261 rm -f confcache
1263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1264 # Let make expand exec_prefix.
1265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1269 # trailing colons and then remove the whole line if VPATH becomes empty
1270 # (actually we leave an empty line to preserve line numbers).
1271 if test "x$srcdir" = x.; then
1272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
1273 s/:*\$(srcdir):*/:/;
1274 s/:*\${srcdir}:*/:/;
1275 s/:*@srcdir@:*/:/;
1276 s/^\([^=]*=[ ]*\):*/\1/;
1277 s/:*$//;
1278 s/^[^=]*=[ ]*$//;
1282 # Transform confdefs.h into DEFS.
1283 # Protect against shell expansion while executing Makefile rules.
1284 # Protect against Makefile macro expansion.
1286 # If the first sed substitution is executed (which looks for macros that
1287 # take arguments), then we branch to the quote section. Otherwise,
1288 # look for a macro that doesn't take arguments.
1289 cat >confdef2opt.sed <<\_ACEOF
1290 t clear
1291 : clear
1292 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1293 t quote
1294 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1295 t quote
1297 : quote
1298 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1299 s,\[,\\&,g
1300 s,\],\\&,g
1301 s,\$,$$,g
1303 _ACEOF
1304 # We use echo to avoid assuming a particular line-breaking character.
1305 # The extra dot is to prevent the shell from consuming trailing
1306 # line-breaks from the sub-command output. A line-break within
1307 # single-quotes doesn't work because, if this script is created in a
1308 # platform that uses two characters for line-breaks (e.g., DOS), tr
1309 # would break.
1310 ac_LF_and_DOT=`echo; echo .`
1311 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1312 rm -f confdef2opt.sed
1316 : ${CONFIG_STATUS=./config.status}
1317 ac_clean_files_save=$ac_clean_files
1318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1321 cat >$CONFIG_STATUS <<_ACEOF
1322 #! $SHELL
1323 # Generated by $as_me.
1324 # Run this file to recreate the current configuration.
1325 # Compiler output produced by configure, useful for debugging
1326 # configure, is in config.log if it exists.
1328 debug=false
1329 SHELL=\${CONFIG_SHELL-$SHELL}
1330 _ACEOF
1332 cat >>$CONFIG_STATUS <<\_ACEOF
1334 ## --------------------- ##
1335 ## M4sh Initialization. ##
1336 ## --------------------- ##
1338 # Be Bourne compatible
1339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1340 emulate sh
1341 NULLCMD=:
1342 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1343 set -o posix
1346 # NLS nuisances.
1347 # Support unset when possible.
1348 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1349 as_unset=unset
1350 else
1351 as_unset=false
1354 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
1355 { $as_unset LANG || test "${LANG+set}" != set; } ||
1356 { LANG=C; export LANG; }
1357 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
1358 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
1359 { LC_ALL=C; export LC_ALL; }
1360 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
1361 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
1362 { LC_TIME=C; export LC_TIME; }
1363 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
1364 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
1365 { LC_CTYPE=C; export LC_CTYPE; }
1366 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
1367 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
1368 { LANGUAGE=C; export LANGUAGE; }
1369 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
1370 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
1371 { LC_COLLATE=C; export LC_COLLATE; }
1372 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
1373 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
1374 { LC_NUMERIC=C; export LC_NUMERIC; }
1375 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
1376 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
1377 { LC_MESSAGES=C; export LC_MESSAGES; }
1380 # Name of the executable.
1381 as_me=`(basename "$0") 2>/dev/null ||
1382 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1383 X"$0" : 'X\(//\)$' \| \
1384 X"$0" : 'X\(/\)$' \| \
1385 . : '\(.\)' 2>/dev/null ||
1386 echo X/"$0" |
1387 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1388 /^X\/\(\/\/\)$/{ s//\1/; q; }
1389 /^X\/\(\/\).*/{ s//\1/; q; }
1390 s/.*/./; q'`
1392 # PATH needs CR, and LINENO needs CR and PATH.
1393 # Avoid depending upon Character Ranges.
1394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1397 as_cr_digits='0123456789'
1398 as_cr_alnum=$as_cr_Letters$as_cr_digits
1400 # The user is always right.
1401 if test "${PATH_SEPARATOR+set}" != set; then
1402 echo "#! /bin/sh" >conftest.sh
1403 echo "exit 0" >>conftest.sh
1404 chmod +x conftest.sh
1405 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
1406 PATH_SEPARATOR=';'
1407 else
1408 PATH_SEPARATOR=:
1410 rm -f conftest.sh
1414 as_lineno_1=$LINENO
1415 as_lineno_2=$LINENO
1416 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1417 test "x$as_lineno_1" != "x$as_lineno_2" &&
1418 test "x$as_lineno_3" = "x$as_lineno_2" || {
1419 # Find who we are. Look in the path if we contain no path at all
1420 # relative or not.
1421 case $0 in
1422 *[\\/]* ) as_myself=$0 ;;
1423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1429 done
1432 esac
1433 # We did not find ourselves, most probably we were run as `sh COMMAND'
1434 # in which case we are not to be found in the path.
1435 if test "x$as_myself" = x; then
1436 as_myself=$0
1438 if test ! -f "$as_myself"; then
1439 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
1440 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
1441 { (exit 1); exit 1; }; }
1443 case $CONFIG_SHELL in
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for as_base in sh bash ksh sh5; do
1451 case $as_dir in
1453 if ("$as_dir/$as_base" -c '
1454 as_lineno_1=$LINENO
1455 as_lineno_2=$LINENO
1456 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1457 test "x$as_lineno_1" != "x$as_lineno_2" &&
1458 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1459 CONFIG_SHELL=$as_dir/$as_base
1460 export CONFIG_SHELL
1461 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1462 fi;;
1463 esac
1464 done
1465 done
1467 esac
1469 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1470 # uniformly replaced by the line number. The first 'sed' inserts a
1471 # line-number line before each line; the second 'sed' does the real
1472 # work. The second script uses 'N' to pair each line-number line
1473 # with the numbered line, and appends trailing '-' during
1474 # substitution so that $LINENO is not a special case at line end.
1475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1476 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1477 sed '=' <$as_myself |
1478 sed '
1480 s,$,-,
1481 : loop
1482 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1483 t loop
1484 s,-$,,
1485 s,^['$as_cr_digits']*\n,,
1486 ' >$as_me.lineno &&
1487 chmod +x $as_me.lineno ||
1488 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
1489 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1490 { (exit 1); exit 1; }; }
1492 # Don't try to exec as it changes $[0], causing all sort of problems
1493 # (the dirname of $[0] is not the place where we might find the
1494 # original and so on. Autoconf is especially sensible to this).
1495 . ./$as_me.lineno
1496 # Exit status is that of the last command.
1497 exit
1501 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1502 *c*,-n*) ECHO_N= ECHO_C='
1503 ' ECHO_T=' ' ;;
1504 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1505 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1506 esac
1508 if expr a : '\(a\)' >/dev/null 2>&1; then
1509 as_expr=expr
1510 else
1511 as_expr=false
1514 rm -f conf$$ conf$$.exe conf$$.file
1515 echo >conf$$.file
1516 if ln -s conf$$.file conf$$ 2>/dev/null; then
1517 # We could just check for DJGPP; but this test a) works b) is more generic
1518 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1519 if test -f conf$$.exe; then
1520 # Don't use ln at all; we don't have any links
1521 as_ln_s='cp -p'
1522 else
1523 as_ln_s='ln -s'
1525 elif ln conf$$.file conf$$ 2>/dev/null; then
1526 as_ln_s=ln
1527 else
1528 as_ln_s='cp -p'
1530 rm -f conf$$ conf$$.exe conf$$.file
1532 as_executable_p="test -f"
1534 # Sed expression to map a string onto a valid CPP name.
1535 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
1537 # Sed expression to map a string onto a valid variable name.
1538 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1541 # IFS
1542 # We need space, tab and new line, in precisely that order.
1543 as_nl='
1545 IFS=" $as_nl"
1547 # CDPATH.
1548 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
1550 exec 6>&1
1552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
1553 # report actual input values of CONFIG_FILES etc. instead of their
1554 # values after options handling. Logging --version etc. is OK.
1555 exec 5>>config.log
1557 echo
1558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1559 ## Running $as_me. ##
1560 _ASBOX
1561 } >&5
1562 cat >&5 <<_CSEOF
1564 This file was extended by $as_me, which was
1565 generated by GNU Autoconf 2.53. Invocation command line was
1567 CONFIG_FILES = $CONFIG_FILES
1568 CONFIG_HEADERS = $CONFIG_HEADERS
1569 CONFIG_LINKS = $CONFIG_LINKS
1570 CONFIG_COMMANDS = $CONFIG_COMMANDS
1571 $ $0 $@
1573 _CSEOF
1574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
1575 echo >&5
1576 _ACEOF
1578 # Files that config.status was made for.
1579 if test -n "$ac_config_files"; then
1580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1583 if test -n "$ac_config_headers"; then
1584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1587 if test -n "$ac_config_links"; then
1588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1591 if test -n "$ac_config_commands"; then
1592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1595 cat >>$CONFIG_STATUS <<\_ACEOF
1597 ac_cs_usage="\
1598 \`$as_me' instantiates files from templates according to the
1599 current configuration.
1601 Usage: $0 [OPTIONS] [FILE]...
1603 -h, --help print this help, then exit
1604 -V, --version print version number, then exit
1605 -d, --debug don't remove temporary files
1606 --recheck update $as_me by reconfiguring in the same conditions
1607 --file=FILE[:TEMPLATE]
1608 instantiate the configuration file FILE
1610 Configuration files:
1611 $config_files
1613 Report bugs to <bug-autoconf@gnu.org>."
1614 _ACEOF
1616 cat >>$CONFIG_STATUS <<_ACEOF
1617 ac_cs_version="\\
1618 config.status
1619 configured by $0, generated by GNU Autoconf 2.53,
1620 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1622 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1623 Free Software Foundation, Inc.
1624 This config.status script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it."
1626 srcdir=$srcdir
1627 _ACEOF
1629 cat >>$CONFIG_STATUS <<\_ACEOF
1630 # If no file are specified by the user, then we need to provide default
1631 # value. By we need to know if files were specified by the user.
1632 ac_need_defaults=:
1633 while test $# != 0
1635 case $1 in
1636 --*=*)
1637 ac_option=`expr "x$1" : 'x\([^=]*\)='`
1638 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1639 shift
1640 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1641 shift
1643 -*);;
1644 *) # This is not an option, so the user has probably given explicit
1645 # arguments.
1646 ac_need_defaults=false;;
1647 esac
1649 case $1 in
1650 # Handling of the options.
1651 _ACEOF
1652 cat >>$CONFIG_STATUS <<_ACEOF
1653 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1654 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1655 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1656 _ACEOF
1657 cat >>$CONFIG_STATUS <<\_ACEOF
1658 --version | --vers* | -V )
1659 echo "$ac_cs_version"; exit 0 ;;
1660 --he | --h)
1661 # Conflict between --help and --header
1662 { { echo "$as_me:$LINENO: error: ambiguous option: $1
1663 Try \`$0 --help' for more information." >&5
1664 echo "$as_me: error: ambiguous option: $1
1665 Try \`$0 --help' for more information." >&2;}
1666 { (exit 1); exit 1; }; };;
1667 --help | --hel | -h )
1668 echo "$ac_cs_usage"; exit 0 ;;
1669 --debug | --d* | -d )
1670 debug=: ;;
1671 --file | --fil | --fi | --f )
1672 shift
1673 CONFIG_FILES="$CONFIG_FILES $1"
1674 ac_need_defaults=false;;
1675 --header | --heade | --head | --hea )
1676 shift
1677 CONFIG_HEADERS="$CONFIG_HEADERS $1"
1678 ac_need_defaults=false;;
1680 # This is an error.
1681 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1682 Try \`$0 --help' for more information." >&5
1683 echo "$as_me: error: unrecognized option: $1
1684 Try \`$0 --help' for more information." >&2;}
1685 { (exit 1); exit 1; }; } ;;
1687 *) ac_config_targets="$ac_config_targets $1" ;;
1689 esac
1690 shift
1691 done
1693 _ACEOF
1699 cat >>$CONFIG_STATUS <<\_ACEOF
1700 for ac_config_target in $ac_config_targets
1702 case "$ac_config_target" in
1703 # Handling of arguments.
1704 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
1705 "bin/texmacsd" ) CONFIG_FILES="$CONFIG_FILES bin/texmacsd:bin/texmacsd.in" ;;
1706 "bin/tm-client" ) CONFIG_FILES="$CONFIG_FILES bin/tm-client:bin/tm-client.in" ;;
1707 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1708 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1709 { (exit 1); exit 1; }; };;
1710 esac
1711 done
1713 # If the user did not use the arguments to specify the items to instantiate,
1714 # then the envvar interface is used. Set only those that are not.
1715 # We use the long form for the default assignment because of an extremely
1716 # bizarre bug on SunOS 4.1.3.
1717 if $ac_need_defaults; then
1718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1721 # Create a temporary directory, and hook for its removal unless debugging.
1722 $debug ||
1724 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1725 trap '{ (exit 1); exit 1; }' 1 2 13 15
1728 # Create a (secure) tmp directory for tmp files.
1729 : ${TMPDIR=/tmp}
1731 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1732 test -n "$tmp" && test -d "$tmp"
1733 } ||
1735 tmp=$TMPDIR/cs$$-$RANDOM
1736 (umask 077 && mkdir $tmp)
1737 } ||
1739 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1740 { (exit 1); exit 1; }
1743 _ACEOF
1745 cat >>$CONFIG_STATUS <<_ACEOF
1748 # CONFIG_FILES section.
1751 # No need to generate the scripts if there are no CONFIG_FILES.
1752 # This happens for instance when ./config.status config.h
1753 if test -n "\$CONFIG_FILES"; then
1754 # Protect against being on the right side of a sed subst in config.status.
1755 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1756 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1757 s,@SHELL@,$SHELL,;t t
1758 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1759 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1760 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1761 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1762 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1763 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1764 s,@exec_prefix@,$exec_prefix,;t t
1765 s,@prefix@,$prefix,;t t
1766 s,@program_transform_name@,$program_transform_name,;t t
1767 s,@bindir@,$bindir,;t t
1768 s,@sbindir@,$sbindir,;t t
1769 s,@libexecdir@,$libexecdir,;t t
1770 s,@datadir@,$datadir,;t t
1771 s,@sysconfdir@,$sysconfdir,;t t
1772 s,@sharedstatedir@,$sharedstatedir,;t t
1773 s,@localstatedir@,$localstatedir,;t t
1774 s,@libdir@,$libdir,;t t
1775 s,@includedir@,$includedir,;t t
1776 s,@oldincludedir@,$oldincludedir,;t t
1777 s,@infodir@,$infodir,;t t
1778 s,@mandir@,$mandir,;t t
1779 s,@build_alias@,$build_alias,;t t
1780 s,@host_alias@,$host_alias,;t t
1781 s,@target_alias@,$target_alias,;t t
1782 s,@DEFS@,$DEFS,;t t
1783 s,@ECHO_C@,$ECHO_C,;t t
1784 s,@ECHO_N@,$ECHO_N,;t t
1785 s,@ECHO_T@,$ECHO_T,;t t
1786 s,@LIBS@,$LIBS,;t t
1787 s,@PACKAGE@,$PACKAGE,;t t
1788 s,@VERSION@,$VERSION,;t t
1789 s,@RELEASE@,$RELEASE,;t t
1790 s,@GUILE_CFLAGS@,$GUILE_CFLAGS,;t t
1791 s,@GUILE_LDFLAGS@,$GUILE_LDFLAGS,;t t
1792 s,@tmorig@,$tmorig,;t t
1793 s,@tmdir@,$tmdir,;t t
1794 s,@tmsrc@,$tmsrc,;t t
1795 s,@tmdata@,$tmdata,;t t
1796 CEOF
1798 _ACEOF
1800 cat >>$CONFIG_STATUS <<\_ACEOF
1801 # Split the substitutions into bite-sized pieces for seds with
1802 # small command number limits, like on Digital OSF/1 and HP-UX.
1803 ac_max_sed_lines=48
1804 ac_sed_frag=1 # Number of current file.
1805 ac_beg=1 # First line for current file.
1806 ac_end=$ac_max_sed_lines # Line after last line for current file.
1807 ac_more_lines=:
1808 ac_sed_cmds=
1809 while $ac_more_lines; do
1810 if test $ac_beg -gt 1; then
1811 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1812 else
1813 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1815 if test ! -s $tmp/subs.frag; then
1816 ac_more_lines=false
1817 else
1818 # The purpose of the label and of the branching condition is to
1819 # speed up the sed processing (if there are no `@' at all, there
1820 # is no need to browse any of the substitutions).
1821 # These are the two extra sed commands mentioned above.
1822 (echo ':t
1823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1824 if test -z "$ac_sed_cmds"; then
1825 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1826 else
1827 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1829 ac_sed_frag=`expr $ac_sed_frag + 1`
1830 ac_beg=$ac_end
1831 ac_end=`expr $ac_end + $ac_max_sed_lines`
1833 done
1834 if test -z "$ac_sed_cmds"; then
1835 ac_sed_cmds=cat
1837 fi # test -n "$CONFIG_FILES"
1839 _ACEOF
1840 cat >>$CONFIG_STATUS <<\_ACEOF
1841 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1843 case $ac_file in
1844 - | *:- | *:-:* ) # input from stdin
1845 cat >$tmp/stdin
1846 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1848 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1849 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1850 * ) ac_file_in=$ac_file.in ;;
1851 esac
1853 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1854 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1856 X"$ac_file" : 'X\(//\)[^/]' \| \
1857 X"$ac_file" : 'X\(//\)$' \| \
1858 X"$ac_file" : 'X\(/\)' \| \
1859 . : '\(.\)' 2>/dev/null ||
1860 echo X"$ac_file" |
1861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1863 /^X\(\/\/\)$/{ s//\1/; q; }
1864 /^X\(\/\).*/{ s//\1/; q; }
1865 s/.*/./; q'`
1866 { case "$ac_dir" in
1867 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
1868 *) as_incr_dir=.;;
1869 esac
1870 as_dummy="$ac_dir"
1871 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
1872 case $as_mkdir_dir in
1873 # Skip DOS drivespec
1874 ?:) as_incr_dir=$as_mkdir_dir ;;
1876 as_incr_dir=$as_incr_dir/$as_mkdir_dir
1877 test -d "$as_incr_dir" ||
1878 mkdir "$as_incr_dir" ||
1879 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
1880 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
1881 { (exit 1); exit 1; }; }
1883 esac
1884 done; }
1886 ac_builddir=.
1888 if test "$ac_dir" != .; then
1889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1890 # A "../" for each directory in $ac_dir_suffix.
1891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1892 else
1893 ac_dir_suffix= ac_top_builddir=
1896 case $srcdir in
1897 .) # No --srcdir option. We are building in place.
1898 ac_srcdir=.
1899 if test -z "$ac_top_builddir"; then
1900 ac_top_srcdir=.
1901 else
1902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1903 fi ;;
1904 [\\/]* | ?:[\\/]* ) # Absolute path.
1905 ac_srcdir=$srcdir$ac_dir_suffix;
1906 ac_top_srcdir=$srcdir ;;
1907 *) # Relative path.
1908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1910 esac
1911 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1912 # absolute.
1913 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1914 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1915 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1916 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1920 if test x"$ac_file" != x-; then
1921 { echo "$as_me:$LINENO: creating $ac_file" >&5
1922 echo "$as_me: creating $ac_file" >&6;}
1923 rm -f "$ac_file"
1925 # Let's still pretend it is `configure' which instantiates (i.e., don't
1926 # use $as_me), people would be surprised to read:
1927 # /* config.h. Generated by config.status. */
1928 if test x"$ac_file" = x-; then
1929 configure_input=
1930 else
1931 configure_input="$ac_file. "
1933 configure_input=$configure_input"Generated from `echo $ac_file_in |
1934 sed 's,.*/,,'` by configure."
1936 # First look for the input files in the build tree, otherwise in the
1937 # src tree.
1938 ac_file_inputs=`IFS=:
1939 for f in $ac_file_in; do
1940 case $f in
1941 -) echo $tmp/stdin ;;
1942 [\\/$]*)
1943 # Absolute (can't be DOS-style, as IFS=:)
1944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1945 echo "$as_me: error: cannot find input file: $f" >&2;}
1946 { (exit 1); exit 1; }; }
1947 echo $f;;
1948 *) # Relative
1949 if test -f "$f"; then
1950 # Build tree
1951 echo $f
1952 elif test -f "$srcdir/$f"; then
1953 # Source tree
1954 echo $srcdir/$f
1955 else
1956 # /dev/null tree
1957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1958 echo "$as_me: error: cannot find input file: $f" >&2;}
1959 { (exit 1); exit 1; }; }
1960 fi;;
1961 esac
1962 done` || { (exit 1); exit 1; }
1963 _ACEOF
1964 cat >>$CONFIG_STATUS <<_ACEOF
1965 sed "$ac_vpsub
1966 $extrasub
1967 _ACEOF
1968 cat >>$CONFIG_STATUS <<\_ACEOF
1970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1971 s,@configure_input@,$configure_input,;t t
1972 s,@srcdir@,$ac_srcdir,;t t
1973 s,@abs_srcdir@,$ac_abs_srcdir,;t t
1974 s,@top_srcdir@,$ac_top_srcdir,;t t
1975 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
1976 s,@builddir@,$ac_builddir,;t t
1977 s,@abs_builddir@,$ac_abs_builddir,;t t
1978 s,@top_builddir@,$ac_top_builddir,;t t
1979 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1980 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1981 rm -f $tmp/stdin
1982 if test x"$ac_file" != x-; then
1983 mv $tmp/out $ac_file
1984 else
1985 cat $tmp/out
1986 rm -f $tmp/out
1989 done
1990 _ACEOF
1992 cat >>$CONFIG_STATUS <<\_ACEOF
1994 { (exit 0); exit 0; }
1995 _ACEOF
1996 chmod +x $CONFIG_STATUS
1997 ac_clean_files=$ac_clean_files_save
2000 # configure is writing to config.log, and then calls config.status.
2001 # config.status does its own redirection, appending to config.log.
2002 # Unfortunately, on DOS this fails, as config.log is still kept open
2003 # by configure, so config.status won't be able to write to it; its
2004 # output is simply discarded. So we exec the FD to /dev/null,
2005 # effectively closing config.log, so it can be properly (re)opened and
2006 # appended to by config.status. When coming back to configure, we
2007 # need to make the FD available again.
2008 if test "$no_create" != yes; then
2009 ac_cs_success=:
2010 exec 5>/dev/null
2011 $SHELL $CONFIG_STATUS || ac_cs_success=false
2012 exec 5>>config.log
2013 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2014 # would make configure fail if this is the last instruction.
2015 $ac_cs_success || { (exit 1); exit 1; }