OSDN Git Service

2009-09-08 Michael Snyder <msnyder@vmware.com>
[pf3gnuchains/pf3gnuchains3x.git] / libgui / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/subcommand.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE INSTALL_LIBGUI_TRUE INSTALL_LIBGUI_FALSE RANLIB ac_ct_RANLIB AR ac_ct_AR ALLOCA CPP EGREP IDE_ENABLED_TRUE IDE_ENABLED_FALSE LIBGUI_CFLAGS LIBGUI_LIBRARY_DIR TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TCL_DEFS TCL_INCLUDES TK_DEFS TK_INCLUDES TK_XINCLUDES TCL_LIBS TK_LIBRARY TCL_LIBRARY TK_LIBS TCL_SHARED_TRUE TCL_SHARED_FALSE RPATH_ENVVAR LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-maintainer-mode  enable make rules and dependencies not useful
853                           (and sometimes confusing) to the casual installer
854   --disable-dependency-tracking  speeds up one-time build
855   --enable-dependency-tracking   do not reject slow dependency extractors
856 \
857     --enable-install-libgui Install libgui.a and library header files
858   --enable-ide            Enable IDE support
859
860 Optional Packages:
861   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
862   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
863   --with-tcl              directory containing tcl configuration (tclConfig.sh)
864   --with-tk               directory containing tk configuration (tkConfig.sh)
865
866 Some influential environment variables:
867   CC          C compiler command
868   CFLAGS      C compiler flags
869   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
870               nonstandard directory <lib dir>
871   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
872               headers in a nonstandard directory <include dir>
873   CPP         C preprocessor
874
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
877
878 _ACEOF
879 fi
880
881 if test "$ac_init_help" = "recursive"; then
882   # If there are subdirs, report their specific --help.
883   ac_popdir=`pwd`
884   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885     test -d $ac_dir || continue
886     ac_builddir=.
887
888 if test "$ac_dir" != .; then
889   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890   # A "../" for each directory in $ac_dir_suffix.
891   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893   ac_dir_suffix= ac_top_builddir=
894 fi
895
896 case $srcdir in
897   .)  # No --srcdir option.  We are building in place.
898     ac_srcdir=.
899     if test -z "$ac_top_builddir"; then
900        ac_top_srcdir=.
901     else
902        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903     fi ;;
904   [\\/]* | ?:[\\/]* )  # Absolute path.
905     ac_srcdir=$srcdir$ac_dir_suffix;
906     ac_top_srcdir=$srcdir ;;
907   *) # Relative path.
908     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909     ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
911
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
916 *)
917   case "$ac_dir" in
918   .) ac_abs_builddir=`pwd`;;
919   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920   *) ac_abs_builddir=`pwd`/"$ac_dir";;
921   esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 *)
926   case ${ac_top_builddir}. in
927   .) ac_abs_top_builddir=$ac_abs_builddir;;
928   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930   esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
934 *)
935   case $ac_srcdir in
936   .) ac_abs_srcdir=$ac_abs_builddir;;
937   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 *)
944   case $ac_top_srcdir in
945   .) ac_abs_top_srcdir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948   esac;;
949 esac
950
951     cd $ac_dir
952     # Check for guested configure; otherwise get Cygnus style configure.
953     if test -f $ac_srcdir/configure.gnu; then
954       echo
955       $SHELL $ac_srcdir/configure.gnu  --help=recursive
956     elif test -f $ac_srcdir/configure; then
957       echo
958       $SHELL $ac_srcdir/configure  --help=recursive
959     elif test -f $ac_srcdir/configure.ac ||
960            test -f $ac_srcdir/configure.in; then
961       echo
962       $ac_configure --help
963     else
964       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965     fi
966     cd $ac_popdir
967   done
968 fi
969
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972   cat <<\_ACEOF
973
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978   exit 0
979 fi
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
984
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59.  Invocation command line was
987
988   $ $0 $@
989
990 _ACEOF
991 {
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
996
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1005
1006 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1007 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1010 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1011 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1012 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1013
1014 _ASUNAME
1015
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1018 do
1019   IFS=$as_save_IFS
1020   test -z "$as_dir" && as_dir=.
1021   echo "PATH: $as_dir"
1022 done
1023
1024 } >&5
1025
1026 cat >&5 <<_ACEOF
1027
1028
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1032
1033 _ACEOF
1034
1035
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1047 do
1048   for ac_arg
1049   do
1050     case $ac_arg in
1051     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053     | -silent | --silent | --silen | --sile | --sil)
1054       continue ;;
1055     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057     esac
1058     case $ac_pass in
1059     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060     2)
1061       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062       if test $ac_must_keep_next = true; then
1063         ac_must_keep_next=false # Got value, back to normal.
1064       else
1065         case $ac_arg in
1066           *=* | --config-cache | -C | -disable-* | --disable-* \
1067           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069           | -with-* | --with-* | -without-* | --without-* | --x)
1070             case "$ac_configure_args0 " in
1071               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072             esac
1073             ;;
1074           -* ) ac_must_keep_next=true ;;
1075         esac
1076       fi
1077       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078       # Get rid of the leading space.
1079       ac_sep=" "
1080       ;;
1081     esac
1082   done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log.  We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093   # Save into config.log some information that might help in debugging.
1094   {
1095     echo
1096
1097     cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102     echo
1103     # The following way of writing the cache mishandles newlines in values,
1104 {
1105   (set) 2>&1 |
1106     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107     *ac_space=\ *)
1108       sed -n \
1109         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111       ;;
1112     *)
1113       sed -n \
1114         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115       ;;
1116     esac;
1117 }
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125     echo
1126     for ac_var in $ac_subst_vars
1127     do
1128       eval ac_val=$`echo $ac_var`
1129       echo "$ac_var='"'"'$ac_val'"'"'"
1130     done | sort
1131     echo
1132
1133     if test -n "$ac_subst_files"; then
1134       cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139       echo
1140       for ac_var in $ac_subst_files
1141       do
1142         eval ac_val=$`echo $ac_var`
1143         echo "$ac_var='"'"'$ac_val'"'"'"
1144       done | sort
1145       echo
1146     fi
1147
1148     if test -s confdefs.h; then
1149       cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154       echo
1155       sed "/^$/d" confdefs.h | sort
1156       echo
1157     fi
1158     test "$ac_signal" != 0 &&
1159       echo "$as_me: caught signal $ac_signal"
1160     echo "$as_me: exit $exit_status"
1161   } >&5
1162   rm -f core *.core &&
1163   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164     exit $exit_status
1165      ' 0
1166 for ac_signal in 1 2 13 15; do
1167   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1170
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1175
1176 # Predefined preprocessor variables.
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1201
1202
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206   if test "x$prefix" != xNONE; then
1207     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208   else
1209     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210   fi
1211 fi
1212 for ac_site_file in $CONFIG_SITE; do
1213   if test -r "$ac_site_file"; then
1214     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216     sed 's/^/| /' "$ac_site_file" >&5
1217     . "$ac_site_file"
1218   fi
1219 done
1220
1221 if test -r "$cache_file"; then
1222   # Some versions of bash will fail to source /dev/null (special
1223   # files actually), so we avoid doing that.
1224   if test -f "$cache_file"; then
1225     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227     case $cache_file in
1228       [\\/]* | ?:[\\/]* ) . $cache_file;;
1229       *)                      . ./$cache_file;;
1230     esac
1231   fi
1232 else
1233   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235   >$cache_file
1236 fi
1237
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244   eval ac_new_set=\$ac_env_${ac_var}_set
1245   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246   eval ac_new_val="\$ac_env_${ac_var}_value"
1247   case $ac_old_set,$ac_new_set in
1248     set,)
1249       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251       ac_cache_corrupted=: ;;
1252     ,set)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,);;
1257     *)
1258       if test "x$ac_old_val" != "x$ac_new_val"; then
1259         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1262 echo "$as_me:   former value:  $ac_old_val" >&2;}
1263         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1264 echo "$as_me:   current value: $ac_new_val" >&2;}
1265         ac_cache_corrupted=:
1266       fi;;
1267   esac
1268   # Pass precious variables to config.status.
1269   if test "$ac_new_set" = set; then
1270     case $ac_new_val in
1271     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273     *) ac_arg=$ac_var=$ac_new_val ;;
1274     esac
1275     case " $ac_configure_args " in
1276       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1277       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278     esac
1279   fi
1280 done
1281 if $ac_cache_corrupted; then
1282   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286    { (exit 1); exit 1; }; }
1287 fi
1288
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313 am__api_version="1.9"
1314 ac_aux_dir=
1315 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1316   if test -f $ac_dir/install-sh; then
1317     ac_aux_dir=$ac_dir
1318     ac_install_sh="$ac_aux_dir/install-sh -c"
1319     break
1320   elif test -f $ac_dir/install.sh; then
1321     ac_aux_dir=$ac_dir
1322     ac_install_sh="$ac_aux_dir/install.sh -c"
1323     break
1324   elif test -f $ac_dir/shtool; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/shtool install -c"
1327     break
1328   fi
1329 done
1330 if test -z "$ac_aux_dir"; then
1331   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333    { (exit 1); exit 1; }; }
1334 fi
1335 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338
1339 # Find a good install program.  We prefer a C program (faster),
1340 # so one script is as good as another.  But avoid the broken or
1341 # incompatible versions:
1342 # SysV /etc/install, /usr/sbin/install
1343 # SunOS /usr/etc/install
1344 # IRIX /sbin/install
1345 # AIX /bin/install
1346 # AmigaOS /C/install, which installs bootblocks on floppy discs
1347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1350 # OS/2's system install, which has a completely different semantic
1351 # ./install, which can be erroneously created by make from ./install.sh.
1352 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1353 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1354 if test -z "$INSTALL"; then
1355 if test "${ac_cv_path_install+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 for as_dir in $PATH
1360 do
1361   IFS=$as_save_IFS
1362   test -z "$as_dir" && as_dir=.
1363   # Account for people who put trailing slashes in PATH elements.
1364 case $as_dir/ in
1365   ./ | .// | /cC/* | \
1366   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1367   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1368   /usr/ucb/* ) ;;
1369   *)
1370     # OSF1 and SCO ODT 3.0 have their own names for install.
1371     # Don't use installbsd from OSF since it installs stuff as root
1372     # by default.
1373     for ac_prog in ginstall scoinst install; do
1374       for ac_exec_ext in '' $ac_executable_extensions; do
1375         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1376           if test $ac_prog = install &&
1377             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378             # AIX install.  It has an incompatible calling convention.
1379             :
1380           elif test $ac_prog = install &&
1381             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382             # program-specific install script used by HP pwplus--don't use.
1383             :
1384           else
1385             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1386             break 3
1387           fi
1388         fi
1389       done
1390     done
1391     ;;
1392 esac
1393 done
1394
1395
1396 fi
1397   if test "${ac_cv_path_install+set}" = set; then
1398     INSTALL=$ac_cv_path_install
1399   else
1400     # As a last resort, use the slow shell script.  We don't cache a
1401     # path for INSTALL within a source directory, because that will
1402     # break other packages using the cache if that directory is
1403     # removed, or if the path is relative.
1404     INSTALL=$ac_install_sh
1405   fi
1406 fi
1407 echo "$as_me:$LINENO: result: $INSTALL" >&5
1408 echo "${ECHO_T}$INSTALL" >&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1419 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1420 # Just in case
1421 sleep 1
1422 echo timestamp > conftest.file
1423 # Do `set' in a subshell so we don't clobber the current shell's
1424 # arguments.  Must try -L first in case configure is actually a
1425 # symlink; some systems play weird games with the mod time of symlinks
1426 # (eg FreeBSD returns the mod time of the symlink's containing
1427 # directory).
1428 if (
1429    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1430    if test "$*" = "X"; then
1431       # -L didn't work.
1432       set X `ls -t $srcdir/configure conftest.file`
1433    fi
1434    rm -f conftest.file
1435    if test "$*" != "X $srcdir/configure conftest.file" \
1436       && test "$*" != "X conftest.file $srcdir/configure"; then
1437
1438       # If neither matched, then we have a broken ls.  This can happen
1439       # if, for instance, CONFIG_SHELL is bash and it inherits a
1440       # broken ls alias from the environment.  This has actually
1441       # happened.  Such a system could not be considered "sane".
1442       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1443 alias in your environment" >&5
1444 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1445 alias in your environment" >&2;}
1446    { (exit 1); exit 1; }; }
1447    fi
1448
1449    test "$2" = conftest.file
1450    )
1451 then
1452    # Ok.
1453    :
1454 else
1455    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1456 Check your system clock" >&5
1457 echo "$as_me: error: newly created file is older than distributed files!
1458 Check your system clock" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461 echo "$as_me:$LINENO: result: yes" >&5
1462 echo "${ECHO_T}yes" >&6
1463 test "$program_prefix" != NONE &&
1464   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1465 # Use a double $ so make ignores it.
1466 test "$program_suffix" != NONE &&
1467   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1468 # Double any \ or $.  echo might interpret backslashes.
1469 # By default was `s,x,x', remove it if useless.
1470 cat <<\_ACEOF >conftest.sed
1471 s/[\\$]/&&/g;s/;s,x,x,$//
1472 _ACEOF
1473 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1474 rm conftest.sed
1475
1476 # expand $ac_aux_dir to an absolute path
1477 am_aux_dir=`cd $ac_aux_dir && pwd`
1478
1479 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1480 # Use eval to expand $SHELL
1481 if eval "$MISSING --run true"; then
1482   am_missing_run="$MISSING --run "
1483 else
1484   am_missing_run=
1485   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1486 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1487 fi
1488
1489 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1490   # We used to keeping the `.' as first argument, in order to
1491   # allow $(mkdir_p) to be used without argument.  As in
1492   #   $(mkdir_p) $(somedir)
1493   # where $(somedir) is conditionally defined.  However this is wrong
1494   # for two reasons:
1495   #  1. if the package is installed by a user who cannot write `.'
1496   #     make install will fail,
1497   #  2. the above comment should most certainly read
1498   #     $(mkdir_p) $(DESTDIR)$(somedir)
1499   #     so it does not work when $(somedir) is undefined and
1500   #     $(DESTDIR) is not.
1501   #  To support the latter case, we have to write
1502   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1503   #  so the `.' trick is pointless.
1504   mkdir_p='mkdir -p --'
1505 else
1506   # On NextStep and OpenStep, the `mkdir' command does not
1507   # recognize any option.  It will interpret all options as
1508   # directories to create, and then abort because `.' already
1509   # exists.
1510   for d in ./-p ./--version;
1511   do
1512     test -d $d && rmdir $d
1513   done
1514   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1515   if test -f "$ac_aux_dir/mkinstalldirs"; then
1516     mkdir_p='$(mkinstalldirs)'
1517   else
1518     mkdir_p='$(install_sh) -d'
1519   fi
1520 fi
1521
1522 for ac_prog in gawk mawk nawk awk
1523 do
1524   # Extract the first word of "$ac_prog", so it can be a program name with args.
1525 set dummy $ac_prog; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_AWK+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$AWK"; then
1532   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_AWK="$ac_prog"
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 fi
1549 fi
1550 AWK=$ac_cv_prog_AWK
1551 if test -n "$AWK"; then
1552   echo "$as_me:$LINENO: result: $AWK" >&5
1553 echo "${ECHO_T}$AWK" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559   test -n "$AWK" && break
1560 done
1561
1562 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1563 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1565 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   cat >conftest.make <<\_ACEOF
1569 all:
1570         @echo 'ac_maketemp="$(MAKE)"'
1571 _ACEOF
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575   eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577   eval ac_cv_prog_make_${ac_make}_set=no
1578 fi
1579 rm -f conftest.make
1580 fi
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582   echo "$as_me:$LINENO: result: yes" >&5
1583 echo "${ECHO_T}yes" >&6
1584   SET_MAKE=
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588   SET_MAKE="MAKE=${MAKE-make}"
1589 fi
1590
1591 rm -rf .tst 2>/dev/null
1592 mkdir .tst 2>/dev/null
1593 if test -d .tst; then
1594   am__leading_dot=.
1595 else
1596   am__leading_dot=_
1597 fi
1598 rmdir .tst 2>/dev/null
1599
1600 # test to see if srcdir already configured
1601 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1602    test -f $srcdir/config.status; then
1603   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1604 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1605    { (exit 1); exit 1; }; }
1606 fi
1607
1608 # test whether we have cygpath
1609 if test -z "$CYGPATH_W"; then
1610   if (cygpath --version) >/dev/null 2>/dev/null; then
1611     CYGPATH_W='cygpath -w'
1612   else
1613     CYGPATH_W=echo
1614   fi
1615 fi
1616
1617
1618 # Define the identity of the package.
1619  PACKAGE=libgui
1620  VERSION=0.0
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE "$PACKAGE"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define VERSION "$VERSION"
1630 _ACEOF
1631
1632 # Some tools Automake needs.
1633
1634 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1635
1636
1637 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1638
1639
1640 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1641
1642
1643 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1644
1645
1646 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1647
1648 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1649
1650 # Installed binaries are usually stripped using `strip' when the user
1651 # run `make install-strip'.  However `strip' might not be the right
1652 # tool to use in cross-compilation environments, therefore Automake
1653 # will honor the `STRIP' environment variable to overrule this program.
1654 if test "$cross_compiling" != no; then
1655   if test -n "$ac_tool_prefix"; then
1656   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1657 set dummy ${ac_tool_prefix}strip; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_STRIP+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$STRIP"; then
1664   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 STRIP=$ac_cv_prog_STRIP
1683 if test -n "$STRIP"; then
1684   echo "$as_me:$LINENO: result: $STRIP" >&5
1685 echo "${ECHO_T}$STRIP" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691 fi
1692 if test -z "$ac_cv_prog_STRIP"; then
1693   ac_ct_STRIP=$STRIP
1694   # Extract the first word of "strip", so it can be a program name with args.
1695 set dummy strip; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_STRIP"; then
1702   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_ac_ct_STRIP="strip"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1719 fi
1720 fi
1721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1722 if test -n "$ac_ct_STRIP"; then
1723   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1724 echo "${ECHO_T}$ac_ct_STRIP" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730   STRIP=$ac_ct_STRIP
1731 else
1732   STRIP="$ac_cv_prog_STRIP"
1733 fi
1734
1735 fi
1736 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1737
1738 # We need awk for the "check" target.  The system "awk" is bad on
1739 # some platforms.
1740 # Always define AMTAR for backward compatibility.
1741
1742 AMTAR=${AMTAR-"${am_missing_run}tar"}
1743
1744 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1745
1746
1747
1748
1749
1750           ac_config_headers="$ac_config_headers config.h"
1751
1752 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1753 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1754     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1755 if test "${enable_maintainer_mode+set}" = set; then
1756   enableval="$enable_maintainer_mode"
1757   USE_MAINTAINER_MODE=$enableval
1758 else
1759   USE_MAINTAINER_MODE=no
1760 fi;
1761   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1762 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1763
1764
1765 if test $USE_MAINTAINER_MODE = yes; then
1766   MAINTAINER_MODE_TRUE=
1767   MAINTAINER_MODE_FALSE='#'
1768 else
1769   MAINTAINER_MODE_TRUE='#'
1770   MAINTAINER_MODE_FALSE=
1771 fi
1772
1773   MAINT=$MAINTAINER_MODE_TRUE
1774
1775
1776 # Make sure we can run config.sub.
1777 $ac_config_sub sun4 >/dev/null 2>&1 ||
1778   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1779 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1780    { (exit 1); exit 1; }; }
1781
1782 echo "$as_me:$LINENO: checking build system type" >&5
1783 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1784 if test "${ac_cv_build+set}" = set; then
1785   echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787   ac_cv_build_alias=$build_alias
1788 test -z "$ac_cv_build_alias" &&
1789   ac_cv_build_alias=`$ac_config_guess`
1790 test -z "$ac_cv_build_alias" &&
1791   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1792 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1793    { (exit 1); exit 1; }; }
1794 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1795   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1796 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1797    { (exit 1); exit 1; }; }
1798
1799 fi
1800 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1801 echo "${ECHO_T}$ac_cv_build" >&6
1802 build=$ac_cv_build
1803 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1804 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1805 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1806
1807
1808 echo "$as_me:$LINENO: checking host system type" >&5
1809 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1810 if test "${ac_cv_host+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   ac_cv_host_alias=$host_alias
1814 test -z "$ac_cv_host_alias" &&
1815   ac_cv_host_alias=$ac_cv_build_alias
1816 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1817   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1818 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1819    { (exit 1); exit 1; }; }
1820
1821 fi
1822 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1823 echo "${ECHO_T}$ac_cv_host" >&6
1824 host=$ac_cv_host
1825 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1826 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1827 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1828
1829
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   if test -n "$CC"; then
1844   ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851   for ac_exec_ext in '' $ac_executable_extensions; do
1852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855     break 2
1856   fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864   echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867   echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 fi
1872 if test -z "$ac_cv_prog_CC"; then
1873   ac_ct_CC=$CC
1874   # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_CC"; then
1882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_CC="gcc"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   CC=$ac_ct_CC
1910 else
1911   CC="$ac_cv_prog_CC"
1912 fi
1913
1914 if test -z "$CC"; then
1915   if test -n "$ac_tool_prefix"; then
1916   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$CC"; then
1924   ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_CC="${ac_tool_prefix}cc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944   echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953   ac_ct_CC=$CC
1954   # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CC"; then
1962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_CC="cc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989   CC=$ac_ct_CC
1990 else
1991   CC="$ac_cv_prog_CC"
1992 fi
1993
1994 fi
1995 if test -z "$CC"; then
1996   # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$CC"; then
2004   ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006   ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015        ac_prog_rejected=yes
2016        continue
2017      fi
2018     ac_cv_prog_CC="cc"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 if test $ac_prog_rejected = yes; then
2026   # We found a bogon in the path, so make sure we never use it.
2027   set dummy $ac_cv_prog_CC
2028   shift
2029   if test $# != 0; then
2030     # We chose a different compiler from the bogus one.
2031     # However, it has the same basename, so the bogon will be chosen
2032     # first if we set CC to just the basename; use the full file name.
2033     shift
2034     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2035   fi
2036 fi
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041   echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$CC"; then
2050   if test -n "$ac_tool_prefix"; then
2051   for ac_prog in cl
2052   do
2053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   if test -n "$CC"; then
2061   ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   for ac_exec_ext in '' $ac_executable_extensions; do
2069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072     break 2
2073   fi
2074 done
2075 done
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084   echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088     test -n "$CC" && break
2089   done
2090 fi
2091 if test -z "$CC"; then
2092   ac_ct_CC=$CC
2093   for ac_prog in cl
2094 do
2095   # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$ac_ct_CC"; then
2103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112     ac_cv_prog_ac_ct_CC="$ac_prog"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118
2119 fi
2120 fi
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2125 else
2126   echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2128 fi
2129
2130   test -n "$ac_ct_CC" && break
2131 done
2132
2133   CC=$ac_ct_CC
2134 fi
2135
2136 fi
2137
2138
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147      "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150   (eval $ac_compiler --version </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155   (eval $ac_compiler -v </dev/null >&5) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160   (eval $ac_compiler -V </dev/null >&5) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189   (eval $ac_link_default) 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }; then
2193   # Find the output, starting from the most likely.  This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # resort.
2196
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199 ac_cv_exeext=
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202 do
2203   test -f "$ac_file" || continue
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206         ;;
2207     conftest.$ac_ext )
2208         # This is the source file.
2209         ;;
2210     [ab].out )
2211         # We found the default executable, but exeext='' is most
2212         # certainly right.
2213         break;;
2214     *.* )
2215         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         # FIXME: I believe we export ac_cv_exeext for Libtool,
2217         # but it would be cool to find out if it's true.  Does anybody
2218         # maintain Libtool? --akim.
2219         export ac_cv_exeext
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 else
2226   echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233    { (exit 77); exit 77; }; }
2234 fi
2235
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2239
2240 # Check the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247   if { ac_try='./$ac_file'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253     cross_compiling=no
2254   else
2255     if test "$cross_compiling" = maybe; then
2256         cross_compiling=yes
2257     else
2258         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264    { (exit 1); exit 1; }; }
2265     fi
2266   fi
2267 fi
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2270
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run.  If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2279
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283   (eval $ac_link) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; then
2287   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 # `rm'.
2291 for ac_file in conftest.exe conftest conftest.*; do
2292   test -f "$ac_file" || continue
2293   case $ac_file in
2294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296           export ac_cv_exeext
2297           break;;
2298     * ) break;;
2299   esac
2300 done
2301 else
2302   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327
2328 int
2329 main ()
2330 {
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338   (eval $ac_compile) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; then
2342   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343   case $ac_file in
2344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346        break;;
2347   esac
2348 done
2349 else
2350   echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381 #ifndef __GNUC__
2382        choke me
2383 #endif
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391   (eval $ac_compile) 2>conftest.er1
2392   ac_status=$?
2393   grep -v '^ *+' conftest.er1 >conftest.err
2394   rm -f conftest.er1
2395   cat conftest.err >&5
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); } &&
2398          { ac_try='test -z "$ac_c_werror_flag"
2399                          || test ! -s conftest.err'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_compiler_gnu=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
2417 fi
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_prog_cc_g=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_cv_prog_cc_g=no
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481 if test "$ac_test_CFLAGS" = set; then
2482   CFLAGS=$ac_save_CFLAGS
2483 elif test $ac_cv_prog_cc_g = yes; then
2484   if test "$GCC" = yes; then
2485     CFLAGS="-g -O2"
2486   else
2487     CFLAGS="-g"
2488   fi
2489 else
2490   if test "$GCC" = yes; then
2491     CFLAGS="-O2"
2492   else
2493     CFLAGS=
2494   fi
2495 fi
2496 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   ac_cv_prog_cc_stdc=no
2502 ac_save_CC=$CC
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509 #include <stdarg.h>
2510 #include <stdio.h>
2511 #include <sys/types.h>
2512 #include <sys/stat.h>
2513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514 struct buf { int x; };
2515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516 static char *e (p, i)
2517      char **p;
2518      int i;
2519 {
2520   return p[i];
2521 }
2522 static char *f (char * (*g) (char **, int), char **p, ...)
2523 {
2524   char *s;
2525   va_list v;
2526   va_start (v,p);
2527   s = g (p, va_arg (v,int));
2528   va_end (v);
2529   return s;
2530 }
2531
2532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533    function prototypes and stuff, but not '\xHH' hex character constants.
2534    These don't provoke an error unfortunately, instead are silently treated
2535    as 'x'.  The following induces an error, until -std1 is added to get
2536    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537    array size at least.  It's necessary to write '\x00'==0 to get something
2538    that's true only with -std1.  */
2539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2544 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 int argc;
2546 char **argv;
2547 int
2548 main ()
2549 {
2550 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX                   -qlanglvl=ansi
2558 # Ultrix and OSF/1      -std1
2559 # HP-UX 10.20 and later -Ae
2560 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2561 # SVR4                  -Xc -D__EXTENSIONS__
2562 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563 do
2564   CC="$ac_save_CC $ac_arg"
2565   rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag"
2575                          || test ! -s conftest.err'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cc_stdc=$ac_arg
2588 break
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 fi
2594 rm -f conftest.err conftest.$ac_objext
2595 done
2596 rm -f conftest.$ac_ext conftest.$ac_objext
2597 CC=$ac_save_CC
2598
2599 fi
2600
2601 case "x$ac_cv_prog_cc_stdc" in
2602   x|xno)
2603     echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6 ;;
2605   *)
2606     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608     CC="$CC $ac_cv_prog_cc_stdc" ;;
2609 esac
2610
2611 # Some people use a C++ compiler to compile C.  Since we use `exit',
2612 # in C++ we need to declare it.  In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #ifndef __cplusplus
2617   choke me
2618 #endif
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"
2630                          || test ! -s conftest.err'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   for ac_declaration in \
2643    '' \
2644    'extern "C" void std::exit (int) throw (); using std::exit;' \
2645    'extern "C" void std::exit (int); using std::exit;' \
2646    'extern "C" void exit (int) throw ();' \
2647    'extern "C" void exit (int);' \
2648    'void exit (int);'
2649 do
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656 $ac_declaration
2657 #include <stdlib.h>
2658 int
2659 main ()
2660 {
2661 exit (42);
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   :
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 continue
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   break
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 rm -f conftest*
2742 if test -n "$ac_declaration"; then
2743   echo '#ifdef __cplusplus' >>confdefs.h
2744   echo $ac_declaration      >>confdefs.h
2745   echo '#endif'             >>confdefs.h
2746 fi
2747
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 DEPDIR="${am__leading_dot}deps"
2760
2761           ac_config_commands="$ac_config_commands depfiles"
2762
2763
2764 am_make=${MAKE-make}
2765 cat > confinc << 'END'
2766 am__doit:
2767         @echo done
2768 .PHONY: am__doit
2769 END
2770 # If we don't find an include directive, just comment out the code.
2771 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2772 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2773 am__include="#"
2774 am__quote=
2775 _am_result=none
2776 # First try GNU make style include.
2777 echo "include confinc" > confmf
2778 # We grep out `Entering directory' and `Leaving directory'
2779 # messages which can occur if `w' ends up in MAKEFLAGS.
2780 # In particular we don't look at `^make:' because GNU make might
2781 # be invoked under some other name (usually "gmake"), in which
2782 # case it prints its new name instead of `make'.
2783 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2784    am__include=include
2785    am__quote=
2786    _am_result=GNU
2787 fi
2788 # Now try BSD make style include.
2789 if test "$am__include" = "#"; then
2790    echo '.include "confinc"' > confmf
2791    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2792       am__include=.include
2793       am__quote="\""
2794       _am_result=BSD
2795    fi
2796 fi
2797
2798
2799 echo "$as_me:$LINENO: result: $_am_result" >&5
2800 echo "${ECHO_T}$_am_result" >&6
2801 rm -f confinc confmf
2802
2803 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2804 if test "${enable_dependency_tracking+set}" = set; then
2805   enableval="$enable_dependency_tracking"
2806
2807 fi;
2808 if test "x$enable_dependency_tracking" != xno; then
2809   am_depcomp="$ac_aux_dir/depcomp"
2810   AMDEPBACKSLASH='\'
2811 fi
2812
2813
2814 if test "x$enable_dependency_tracking" != xno; then
2815   AMDEP_TRUE=
2816   AMDEP_FALSE='#'
2817 else
2818   AMDEP_TRUE='#'
2819   AMDEP_FALSE=
2820 fi
2821
2822
2823
2824
2825 depcc="$CC"   am_compiler_list=
2826
2827 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2828 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2829 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2833   # We make a subdir and do the tests there.  Otherwise we can end up
2834   # making bogus files that we don't know about and never remove.  For
2835   # instance it was reported that on HP-UX the gcc test will end up
2836   # making a dummy file named `D' -- because `-MD' means `put the output
2837   # in D'.
2838   mkdir conftest.dir
2839   # Copy depcomp to subdir because otherwise we won't find it if we're
2840   # using a relative directory.
2841   cp "$am_depcomp" conftest.dir
2842   cd conftest.dir
2843   # We will build objects and dependencies in a subdirectory because
2844   # it helps to detect inapplicable dependency modes.  For instance
2845   # both Tru64's cc and ICC support -MD to output dependencies as a
2846   # side effect of compilation, but ICC will put the dependencies in
2847   # the current directory while Tru64 will put them in the object
2848   # directory.
2849   mkdir sub
2850
2851   am_cv_CC_dependencies_compiler_type=none
2852   if test "$am_compiler_list" = ""; then
2853      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2854   fi
2855   for depmode in $am_compiler_list; do
2856     # Setup a source with many dependencies, because some compilers
2857     # like to wrap large dependency lists on column 80 (with \), and
2858     # we should not choose a depcomp mode which is confused by this.
2859     #
2860     # We need to recreate these files for each test, as the compiler may
2861     # overwrite some of them when testing with obscure command lines.
2862     # This happens at least with the AIX C compiler.
2863     : > sub/conftest.c
2864     for i in 1 2 3 4 5 6; do
2865       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2866       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2867       # Solaris 8's {/usr,}/bin/sh.
2868       touch sub/conftst$i.h
2869     done
2870     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2871
2872     case $depmode in
2873     nosideeffect)
2874       # after this tag, mechanisms are not by side-effect, so they'll
2875       # only be used when explicitly requested
2876       if test "x$enable_dependency_tracking" = xyes; then
2877         continue
2878       else
2879         break
2880       fi
2881       ;;
2882     none) break ;;
2883     esac
2884     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2885     # mode.  It turns out that the SunPro C++ compiler does not properly
2886     # handle `-M -o', and we need to detect this.
2887     if depmode=$depmode \
2888        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2889        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2890        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2891          >/dev/null 2>conftest.err &&
2892        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2893        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2894        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2895       # icc doesn't choke on unknown options, it will just issue warnings
2896       # or remarks (even with -Werror).  So we grep stderr for any message
2897       # that says an option was ignored or not supported.
2898       # When given -MP, icc 7.0 and 7.1 complain thusly:
2899       #   icc: Command line warning: ignoring option '-M'; no argument required
2900       # The diagnosis changed in icc 8.0:
2901       #   icc: Command line remark: option '-MP' not supported
2902       if (grep 'ignoring option' conftest.err ||
2903           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2904         am_cv_CC_dependencies_compiler_type=$depmode
2905         break
2906       fi
2907     fi
2908   done
2909
2910   cd ..
2911   rm -rf conftest.dir
2912 else
2913   am_cv_CC_dependencies_compiler_type=none
2914 fi
2915
2916 fi
2917 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2918 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2920
2921
2922
2923 if
2924   test "x$enable_dependency_tracking" != xno \
2925   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2926   am__fastdepCC_TRUE=
2927   am__fastdepCC_FALSE='#'
2928 else
2929   am__fastdepCC_TRUE='#'
2930   am__fastdepCC_FALSE=
2931 fi
2932
2933
2934
2935
2936 # Check whether --enable-install-libgui or --disable-install-libgui was given.
2937 if test "${enable_install_libgui+set}" = set; then
2938   enableval="$enable_install_libgui"
2939
2940 fi;
2941
2942
2943 if test x$cross_compiling = xyes; then
2944   CROSS_COMPILING_TRUE=
2945   CROSS_COMPILING_FALSE='#'
2946 else
2947   CROSS_COMPILING_TRUE='#'
2948   CROSS_COMPILING_FALSE=
2949 fi
2950
2951
2952
2953 if test x$enable_install_libgui = xyes; then
2954   INSTALL_LIBGUI_TRUE=
2955   INSTALL_LIBGUI_FALSE='#'
2956 else
2957   INSTALL_LIBGUI_TRUE='#'
2958   INSTALL_LIBGUI_FALSE=
2959 fi
2960
2961 if test -n "$ac_tool_prefix"; then
2962   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_RANLIB+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   if test -n "$RANLIB"; then
2970   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977   for ac_exec_ext in '' $ac_executable_extensions; do
2978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984 done
2985
2986 fi
2987 fi
2988 RANLIB=$ac_cv_prog_RANLIB
2989 if test -n "$RANLIB"; then
2990   echo "$as_me:$LINENO: result: $RANLIB" >&5
2991 echo "${ECHO_T}$RANLIB" >&6
2992 else
2993   echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2995 fi
2996
2997 fi
2998 if test -z "$ac_cv_prog_RANLIB"; then
2999   ac_ct_RANLIB=$RANLIB
3000   # Extract the first word of "ranlib", so it can be a program name with args.
3001 set dummy ranlib; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   if test -n "$ac_ct_RANLIB"; then
3008   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015   for ac_exec_ext in '' $ac_executable_extensions; do
3016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_ac_ct_RANLIB="ranlib"
3018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022 done
3023
3024   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3025 fi
3026 fi
3027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3028 if test -n "$ac_ct_RANLIB"; then
3029   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3030 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3031 else
3032   echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3034 fi
3035
3036   RANLIB=$ac_ct_RANLIB
3037 else
3038   RANLIB="$ac_cv_prog_RANLIB"
3039 fi
3040
3041 if test -n "$ac_tool_prefix"; then
3042   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}ar; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_AR+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   if test -n "$AR"; then
3050   ac_cv_prog_AR="$AR" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057   for ac_exec_ext in '' $ac_executable_extensions; do
3058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059     ac_cv_prog_AR="${ac_tool_prefix}ar"
3060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064 done
3065
3066 fi
3067 fi
3068 AR=$ac_cv_prog_AR
3069 if test -n "$AR"; then
3070   echo "$as_me:$LINENO: result: $AR" >&5
3071 echo "${ECHO_T}$AR" >&6
3072 else
3073   echo "$as_me:$LINENO: result: no" >&5
3074 echo "${ECHO_T}no" >&6
3075 fi
3076
3077 fi
3078 if test -z "$ac_cv_prog_AR"; then
3079   ac_ct_AR=$AR
3080   # Extract the first word of "ar", so it can be a program name with args.
3081 set dummy ar; ac_word=$2
3082 echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   if test -n "$ac_ct_AR"; then
3088   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095   for ac_exec_ext in '' $ac_executable_extensions; do
3096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097     ac_cv_prog_ac_ct_AR="ar"
3098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102 done
3103
3104   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
3105 fi
3106 fi
3107 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3108 if test -n "$ac_ct_AR"; then
3109   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3110 echo "${ECHO_T}$ac_ct_AR" >&6
3111 else
3112   echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3114 fi
3115
3116   AR=$ac_ct_AR
3117 else
3118   AR="$ac_cv_prog_AR"
3119 fi
3120
3121
3122
3123 ac_ext=c
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3129 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3130 # On Suns, sometimes $CPP names a directory.
3131 if test -n "$CPP" && test -d "$CPP"; then
3132   CPP=
3133 fi
3134 if test -z "$CPP"; then
3135   if test "${ac_cv_prog_CPP+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138       # Double quotes because CPP needs to be expanded
3139     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3140     do
3141       ac_preproc_ok=false
3142 for ac_c_preproc_warn_flag in '' yes
3143 do
3144   # Use a header file that comes with gcc, so configuring glibc
3145   # with a fresh cross-compiler works.
3146   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3147   # <limits.h> exists even on freestanding compilers.
3148   # On the NeXT, cc -E runs the code through the compiler's parser,
3149   # not just through cpp. "Syntax error" is here to catch this case.
3150   cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156 #ifdef __STDC__
3157 # include <limits.h>
3158 #else
3159 # include <assert.h>
3160 #endif
3161                      Syntax error
3162 _ACEOF
3163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } >/dev/null; then
3171   if test -s conftest.err; then
3172     ac_cpp_err=$ac_c_preproc_warn_flag
3173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3174   else
3175     ac_cpp_err=
3176   fi
3177 else
3178   ac_cpp_err=yes
3179 fi
3180 if test -z "$ac_cpp_err"; then
3181   :
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186   # Broken: fails on valid input.
3187 continue
3188 fi
3189 rm -f conftest.err conftest.$ac_ext
3190
3191   # OK, works on sane cases.  Now check whether non-existent headers
3192   # can be detected and how.
3193   cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h.  */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h.  */
3199 #include <ac_nonexistent.h>
3200 _ACEOF
3201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } >/dev/null; then
3209   if test -s conftest.err; then
3210     ac_cpp_err=$ac_c_preproc_warn_flag
3211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212   else
3213     ac_cpp_err=
3214   fi
3215 else
3216   ac_cpp_err=yes
3217 fi
3218 if test -z "$ac_cpp_err"; then
3219   # Broken: success on invalid input.
3220 continue
3221 else
3222   echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225   # Passes both tests.
3226 ac_preproc_ok=:
3227 break
3228 fi
3229 rm -f conftest.err conftest.$ac_ext
3230
3231 done
3232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3233 rm -f conftest.err conftest.$ac_ext
3234 if $ac_preproc_ok; then
3235   break
3236 fi
3237
3238     done
3239     ac_cv_prog_CPP=$CPP
3240
3241 fi
3242   CPP=$ac_cv_prog_CPP
3243 else
3244   ac_cv_prog_CPP=$CPP
3245 fi
3246 echo "$as_me:$LINENO: result: $CPP" >&5
3247 echo "${ECHO_T}$CPP" >&6
3248 ac_preproc_ok=false
3249 for ac_c_preproc_warn_flag in '' yes
3250 do
3251   # Use a header file that comes with gcc, so configuring glibc
3252   # with a fresh cross-compiler works.
3253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254   # <limits.h> exists even on freestanding compilers.
3255   # On the NeXT, cc -E runs the code through the compiler's parser,
3256   # not just through cpp. "Syntax error" is here to catch this case.
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263 #ifdef __STDC__
3264 # include <limits.h>
3265 #else
3266 # include <assert.h>
3267 #endif
3268                      Syntax error
3269 _ACEOF
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272   ac_status=$?
3273   grep -v '^ *+' conftest.er1 >conftest.err
3274   rm -f conftest.er1
3275   cat conftest.err >&5
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); } >/dev/null; then
3278   if test -s conftest.err; then
3279     ac_cpp_err=$ac_c_preproc_warn_flag
3280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281   else
3282     ac_cpp_err=
3283   fi
3284 else
3285   ac_cpp_err=yes
3286 fi
3287 if test -z "$ac_cpp_err"; then
3288   :
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293   # Broken: fails on valid input.
3294 continue
3295 fi
3296 rm -f conftest.err conftest.$ac_ext
3297
3298   # OK, works on sane cases.  Now check whether non-existent headers
3299   # can be detected and how.
3300   cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h.  */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h.  */
3306 #include <ac_nonexistent.h>
3307 _ACEOF
3308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310   ac_status=$?
3311   grep -v '^ *+' conftest.er1 >conftest.err
3312   rm -f conftest.er1
3313   cat conftest.err >&5
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); } >/dev/null; then
3316   if test -s conftest.err; then
3317     ac_cpp_err=$ac_c_preproc_warn_flag
3318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319   else
3320     ac_cpp_err=
3321   fi
3322 else
3323   ac_cpp_err=yes
3324 fi
3325 if test -z "$ac_cpp_err"; then
3326   # Broken: success on invalid input.
3327 continue
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3335 fi
3336 rm -f conftest.err conftest.$ac_ext
3337
3338 done
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3342   :
3343 else
3344   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3347 See \`config.log' for more details." >&2;}
3348    { (exit 1); exit 1; }; }
3349 fi
3350
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357
3358 echo "$as_me:$LINENO: checking for egrep" >&5
3359 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3360 if test "${ac_cv_prog_egrep+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3364     then ac_cv_prog_egrep='grep -E'
3365     else ac_cv_prog_egrep='egrep'
3366     fi
3367 fi
3368 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3369 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3370  EGREP=$ac_cv_prog_egrep
3371
3372
3373 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3374 # for constant arguments.  Useless!
3375 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3376 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3377 if test "${ac_cv_working_alloca_h+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 #include <alloca.h>
3387 int
3388 main ()
3389 {
3390 char *p = (char *) alloca (2 * sizeof (int));
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397   (eval $ac_link) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"
3405                          || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest$ac_exeext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   ac_cv_working_alloca_h=yes
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 ac_cv_working_alloca_h=no
3423 fi
3424 rm -f conftest.err conftest.$ac_objext \
3425       conftest$ac_exeext conftest.$ac_ext
3426 fi
3427 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3428 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3429 if test $ac_cv_working_alloca_h = yes; then
3430
3431 cat >>confdefs.h <<\_ACEOF
3432 #define HAVE_ALLOCA_H 1
3433 _ACEOF
3434
3435 fi
3436
3437 echo "$as_me:$LINENO: checking for alloca" >&5
3438 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3439 if test "${ac_cv_func_alloca_works+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 #ifdef __GNUC__
3449 # define alloca __builtin_alloca
3450 #else
3451 # ifdef _MSC_VER
3452 #  include <malloc.h>
3453 #  define alloca _alloca
3454 # else
3455 #  if HAVE_ALLOCA_H
3456 #   include <alloca.h>
3457 #  else
3458 #   ifdef _AIX
3459  #pragma alloca
3460 #   else
3461 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3462 char *alloca ();
3463 #    endif
3464 #   endif
3465 #  endif
3466 # endif
3467 #endif
3468
3469 int
3470 main ()
3471 {
3472 char *p = (char *) alloca (1);
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext conftest$ac_exeext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3479   (eval $ac_link) 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } &&
3486          { ac_try='test -z "$ac_c_werror_flag"
3487                          || test ! -s conftest.err'
3488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489   (eval $ac_try) 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }; } &&
3493          { ac_try='test -s conftest$ac_exeext'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; }; then
3499   ac_cv_func_alloca_works=yes
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 ac_cv_func_alloca_works=no
3505 fi
3506 rm -f conftest.err conftest.$ac_objext \
3507       conftest$ac_exeext conftest.$ac_ext
3508 fi
3509 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3510 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3511
3512 if test $ac_cv_func_alloca_works = yes; then
3513
3514 cat >>confdefs.h <<\_ACEOF
3515 #define HAVE_ALLOCA 1
3516 _ACEOF
3517
3518 else
3519   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3520 # that cause trouble.  Some versions do not even contain alloca or
3521 # contain a buggy version.  If you still want to use their alloca,
3522 # use ar to extract alloca.o from them instead of compiling alloca.c.
3523
3524 ALLOCA=alloca.$ac_objext
3525
3526 cat >>confdefs.h <<\_ACEOF
3527 #define C_ALLOCA 1
3528 _ACEOF
3529
3530
3531 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3532 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3533 if test "${ac_cv_os_cray+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #if defined(CRAY) && ! defined(CRAY2)
3543 webecray
3544 #else
3545 wenotbecray
3546 #endif
3547
3548 _ACEOF
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550   $EGREP "webecray" >/dev/null 2>&1; then
3551   ac_cv_os_cray=yes
3552 else
3553   ac_cv_os_cray=no
3554 fi
3555 rm -f conftest*
3556
3557 fi
3558 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3559 echo "${ECHO_T}$ac_cv_os_cray" >&6
3560 if test $ac_cv_os_cray = yes; then
3561   for ac_func in _getb67 GETB67 getb67; do
3562     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3563 echo "$as_me:$LINENO: checking for $ac_func" >&5
3564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3565 if eval "test \"\${$as_ac_var+set}\" = set"; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h.  */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h.  */
3574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3576 #define $ac_func innocuous_$ac_func
3577
3578 /* System header to define __stub macros and hopefully few prototypes,
3579     which can conflict with char $ac_func (); below.
3580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3581     <limits.h> exists even on freestanding compilers.  */
3582
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588
3589 #undef $ac_func
3590
3591 /* Override any gcc2 internal prototype to avoid an error.  */
3592 #ifdef __cplusplus
3593 extern "C"
3594 {
3595 #endif
3596 /* We use char because int might match the return type of a gcc2
3597    builtin and then its argument prototype would still apply.  */
3598 char $ac_func ();
3599 /* The GNU C library defines this for functions which it implements
3600     to always fail with ENOSYS.  Some functions are actually named
3601     something starting with __ and the normal name is an alias.  */
3602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3603 choke me
3604 #else
3605 char (*f) () = $ac_func;
3606 #endif
3607 #ifdef __cplusplus
3608 }
3609 #endif
3610
3611 int
3612 main ()
3613 {
3614 return f != $ac_func;
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.$ac_objext conftest$ac_exeext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621   (eval $ac_link) 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } &&
3628          { ac_try='test -z "$ac_c_werror_flag"
3629                          || test ! -s conftest.err'
3630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631   (eval $ac_try) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; } &&
3635          { ac_try='test -s conftest$ac_exeext'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   eval "$as_ac_var=yes"
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 eval "$as_ac_var=no"
3647 fi
3648 rm -f conftest.err conftest.$ac_objext \
3649       conftest$ac_exeext conftest.$ac_ext
3650 fi
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3653 if test `eval echo '${'$as_ac_var'}'` = yes; then
3654
3655 cat >>confdefs.h <<_ACEOF
3656 #define CRAY_STACKSEG_END $ac_func
3657 _ACEOF
3658
3659     break
3660 fi
3661
3662   done
3663 fi
3664
3665 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3666 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3667 if test "${ac_cv_c_stack_direction+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   if test "$cross_compiling" = yes; then
3671   ac_cv_c_stack_direction=0
3672 else
3673   cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h.  */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h.  */
3679 int
3680 find_stack_direction ()
3681 {
3682   static char *addr = 0;
3683   auto char dummy;
3684   if (addr == 0)
3685     {
3686       addr = &dummy;
3687       return find_stack_direction ();
3688     }
3689   else
3690     return (&dummy > addr) ? 1 : -1;
3691 }
3692
3693 int
3694 main ()
3695 {
3696   exit (find_stack_direction () < 0);
3697 }
3698 _ACEOF
3699 rm -f conftest$ac_exeext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3701   (eval $ac_link) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706   (eval $ac_try) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; }; then
3710   ac_cv_c_stack_direction=1
3711 else
3712   echo "$as_me: program exited with status $ac_status" >&5
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ( exit $ac_status )
3717 ac_cv_c_stack_direction=-1
3718 fi
3719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 fi
3722 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3723 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3724
3725 cat >>confdefs.h <<_ACEOF
3726 #define STACK_DIRECTION $ac_cv_c_stack_direction
3727 _ACEOF
3728
3729
3730 fi
3731
3732 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3734 if test "${ac_cv_header_stdc+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   cat >conftest.$ac_ext <<_ACEOF
3738 /* confdefs.h.  */
3739 _ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h.  */
3743 #include <stdlib.h>
3744 #include <stdarg.h>
3745 #include <string.h>
3746 #include <float.h>
3747
3748 int
3749 main ()
3750 {
3751
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758   (eval $ac_compile) 2>conftest.er1
3759   ac_status=$?
3760   grep -v '^ *+' conftest.er1 >conftest.err
3761   rm -f conftest.er1
3762   cat conftest.err >&5
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); } &&
3765          { ac_try='test -z "$ac_c_werror_flag"
3766                          || test ! -s conftest.err'
3767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768   (eval $ac_try) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }; } &&
3772          { ac_try='test -s conftest.$ac_objext'
3773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774   (eval $ac_try) 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); }; }; then
3778   ac_cv_header_stdc=yes
3779 else
3780   echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3782
3783 ac_cv_header_stdc=no
3784 fi
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786
3787 if test $ac_cv_header_stdc = yes; then
3788   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3789   cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795 #include <string.h>
3796
3797 _ACEOF
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799   $EGREP "memchr" >/dev/null 2>&1; then
3800   :
3801 else
3802   ac_cv_header_stdc=no
3803 fi
3804 rm -f conftest*
3805
3806 fi
3807
3808 if test $ac_cv_header_stdc = yes; then
3809   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816 #include <stdlib.h>
3817
3818 _ACEOF
3819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820   $EGREP "free" >/dev/null 2>&1; then
3821   :
3822 else
3823   ac_cv_header_stdc=no
3824 fi
3825 rm -f conftest*
3826
3827 fi
3828
3829 if test $ac_cv_header_stdc = yes; then
3830   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831   if test "$cross_compiling" = yes; then
3832   :
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <ctype.h>
3841 #if ((' ' & 0x0FF) == 0x020)
3842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844 #else
3845 # define ISLOWER(c) \
3846                    (('a' <= (c) && (c) <= 'i') \
3847                      || ('j' <= (c) && (c) <= 'r') \
3848                      || ('s' <= (c) && (c) <= 'z'))
3849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3850 #endif
3851
3852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3853 int
3854 main ()
3855 {
3856   int i;
3857   for (i = 0; i < 256; i++)
3858     if (XOR (islower (i), ISLOWER (i))
3859         || toupper (i) != TOUPPER (i))
3860       exit(2);
3861   exit (0);
3862 }
3863 _ACEOF
3864 rm -f conftest$ac_exeext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866   (eval $ac_link) 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; }; then
3875   :
3876 else
3877   echo "$as_me: program exited with status $ac_status" >&5
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ( exit $ac_status )
3882 ac_cv_header_stdc=no
3883 fi
3884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3885 fi
3886 fi
3887 fi
3888 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3889 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3890 if test $ac_cv_header_stdc = yes; then
3891
3892 cat >>confdefs.h <<\_ACEOF
3893 #define STDC_HEADERS 1
3894 _ACEOF
3895
3896 fi
3897
3898 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3909                   inttypes.h stdint.h unistd.h
3910 do
3911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3912 echo "$as_me:$LINENO: checking for $ac_header" >&5
3913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923 $ac_includes_default
3924
3925 #include <$ac_header>
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929   (eval $ac_compile) 2>conftest.er1
3930   ac_status=$?
3931   grep -v '^ *+' conftest.er1 >conftest.err
3932   rm -f conftest.er1
3933   cat conftest.err >&5
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } &&
3936          { ac_try='test -z "$ac_c_werror_flag"
3937                          || test ! -s conftest.err'
3938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939   (eval $ac_try) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; } &&
3943          { ac_try='test -s conftest.$ac_objext'
3944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945   (eval $ac_try) 2>&5
3946   ac_status=$?
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); }; }; then
3949   eval "$as_ac_Header=yes"
3950 else
3951   echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 eval "$as_ac_Header=no"
3955 fi
3956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3957 fi
3958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3961   cat >>confdefs.h <<_ACEOF
3962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3963 _ACEOF
3964
3965 fi
3966
3967 done
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979 for ac_header in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
3980 do
3981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3983   echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 fi
3988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3990 else
3991   # Is the header compilable?
3992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 $ac_includes_default
4001 #include <$ac_header>
4002 _ACEOF
4003 rm -f conftest.$ac_objext
4004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005   (eval $ac_compile) 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } &&
4012          { ac_try='test -z "$ac_c_werror_flag"
4013                          || test ! -s conftest.err'
4014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015   (eval $ac_try) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; } &&
4019          { ac_try='test -s conftest.$ac_objext'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; }; then
4025   ac_header_compiler=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_header_compiler=no
4031 fi
4032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4034 echo "${ECHO_T}$ac_header_compiler" >&6
4035
4036 # Is the header present?
4037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 #include <$ac_header>
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049   ac_status=$?
4050   grep -v '^ *+' conftest.er1 >conftest.err
4051   rm -f conftest.er1
4052   cat conftest.err >&5
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } >/dev/null; then
4055   if test -s conftest.err; then
4056     ac_cpp_err=$ac_c_preproc_warn_flag
4057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058   else
4059     ac_cpp_err=
4060   fi
4061 else
4062   ac_cpp_err=yes
4063 fi
4064 if test -z "$ac_cpp_err"; then
4065   ac_header_preproc=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070   ac_header_preproc=no
4071 fi
4072 rm -f conftest.err conftest.$ac_ext
4073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4074 echo "${ECHO_T}$ac_header_preproc" >&6
4075
4076 # So?  What about this header?
4077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4078   yes:no: )
4079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4083     ac_header_preproc=yes
4084     ;;
4085   no:yes:* )
4086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4098     (
4099       cat <<\_ASBOX
4100 ## ------------------------------------------ ##
4101 ## Report this to the AC_PACKAGE_NAME lists.  ##
4102 ## ------------------------------------------ ##
4103 _ASBOX
4104     ) |
4105       sed "s/^/$as_me: WARNING:     /" >&2
4106     ;;
4107 esac
4108 echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   eval "$as_ac_Header=\$ac_header_preproc"
4114 fi
4115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4117
4118 fi
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120   cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4123
4124 fi
4125
4126 done
4127
4128
4129 for ac_func in raise
4130 do
4131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4132 echo "$as_me:$LINENO: checking for $ac_func" >&5
4133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4134 if eval "test \"\${$as_ac_var+set}\" = set"; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4145 #define $ac_func innocuous_$ac_func
4146
4147 /* System header to define __stub macros and hopefully few prototypes,
4148     which can conflict with char $ac_func (); below.
4149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150     <limits.h> exists even on freestanding compilers.  */
4151
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157
4158 #undef $ac_func
4159
4160 /* Override any gcc2 internal prototype to avoid an error.  */
4161 #ifdef __cplusplus
4162 extern "C"
4163 {
4164 #endif
4165 /* We use char because int might match the return type of a gcc2
4166    builtin and then its argument prototype would still apply.  */
4167 char $ac_func ();
4168 /* The GNU C library defines this for functions which it implements
4169     to always fail with ENOSYS.  Some functions are actually named
4170     something starting with __ and the normal name is an alias.  */
4171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4172 choke me
4173 #else
4174 char (*f) () = $ac_func;
4175 #endif
4176 #ifdef __cplusplus
4177 }
4178 #endif
4179
4180 int
4181 main ()
4182 {
4183 return f != $ac_func;
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190   (eval $ac_link) 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } &&
4197          { ac_try='test -z "$ac_c_werror_flag"
4198                          || test ! -s conftest.err'
4199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200   (eval $ac_try) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; } &&
4204          { ac_try='test -s conftest$ac_exeext'
4205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206   (eval $ac_try) 2>&5
4207   ac_status=$?
4208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209   (exit $ac_status); }; }; then
4210   eval "$as_ac_var=yes"
4211 else
4212   echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 eval "$as_ac_var=no"
4216 fi
4217 rm -f conftest.err conftest.$ac_objext \
4218       conftest$ac_exeext conftest.$ac_ext
4219 fi
4220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4222 if test `eval echo '${'$as_ac_var'}'` = yes; then
4223   cat >>confdefs.h <<_ACEOF
4224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4225 _ACEOF
4226
4227 fi
4228 done
4229
4230
4231 # Check whether --enable-ide or --disable-ide was given.
4232 if test "${enable_ide+set}" = set; then
4233   enableval="$enable_ide"
4234   case "${enableval}" in
4235   yes) ide=yes ;;
4236   no)  ide=no ;;
4237   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for enable-ide option" >&5
4238 echo "$as_me: error: bad value ${enableval} for enable-ide option" >&2;}
4239    { (exit 1); exit 1; }; } ;;
4240 esac
4241 else
4242   ide=no
4243 fi;
4244
4245
4246 if test x$ide = xyes; then
4247   IDE_ENABLED_TRUE=
4248   IDE_ENABLED_FALSE='#'
4249 else
4250   IDE_ENABLED_TRUE='#'
4251   IDE_ENABLED_FALSE=
4252 fi
4253
4254 if test x$ide = xyes; then
4255   cat >>confdefs.h <<\_ACEOF
4256 #define IDE_ENABLED 1
4257 _ACEOF
4258
4259 fi
4260
4261 # If we have random, assume we have srandom.  If we have drand48,
4262 # assume we have srand48.  If we have rand, assume we have srand.
4263
4264
4265
4266 for ac_func in random drand48 rand
4267 do
4268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4269 echo "$as_me:$LINENO: checking for $ac_func" >&5
4270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4271 if eval "test \"\${$as_ac_var+set}\" = set"; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4282 #define $ac_func innocuous_$ac_func
4283
4284 /* System header to define __stub macros and hopefully few prototypes,
4285     which can conflict with char $ac_func (); below.
4286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287     <limits.h> exists even on freestanding compilers.  */
4288
4289 #ifdef __STDC__
4290 # include <limits.h>
4291 #else
4292 # include <assert.h>
4293 #endif
4294
4295 #undef $ac_func
4296
4297 /* Override any gcc2 internal prototype to avoid an error.  */
4298 #ifdef __cplusplus
4299 extern "C"
4300 {
4301 #endif
4302 /* We use char because int might match the return type of a gcc2
4303    builtin and then its argument prototype would still apply.  */
4304 char $ac_func ();
4305 /* The GNU C library defines this for functions which it implements
4306     to always fail with ENOSYS.  Some functions are actually named
4307     something starting with __ and the normal name is an alias.  */
4308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4309 choke me
4310 #else
4311 char (*f) () = $ac_func;
4312 #endif
4313 #ifdef __cplusplus
4314 }
4315 #endif
4316
4317 int
4318 main ()
4319 {
4320 return f != $ac_func;
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327   (eval $ac_link) 2>conftest.er1
4328   ac_status=$?
4329   grep -v '^ *+' conftest.er1 >conftest.err
4330   rm -f conftest.er1
4331   cat conftest.err >&5
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } &&
4334          { ac_try='test -z "$ac_c_werror_flag"
4335                          || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest$ac_exeext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   eval "$as_ac_var=yes"
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 eval "$as_ac_var=no"
4353 fi
4354 rm -f conftest.err conftest.$ac_objext \
4355       conftest$ac_exeext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4359 if test `eval echo '${'$as_ac_var'}'` = yes; then
4360   cat >>confdefs.h <<_ACEOF
4361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4362 _ACEOF
4363  break
4364 fi
4365 done
4366
4367
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 #include <string.h>
4375 _ACEOF
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377   $EGREP "strncasecmp" >/dev/null 2>&1; then
4378   cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_STRNCASECMP_DECL 1
4380 _ACEOF
4381
4382 fi
4383 rm -f conftest*
4384
4385
4386
4387 echo "$as_me:$LINENO: checking for cygwin32" >&5
4388 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
4389 if test "${ide_cv_os_cygwin32+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398
4399 #ifdef __CYGWIN32__
4400 lose
4401 #endif
4402 _ACEOF
4403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4404   $EGREP "lose" >/dev/null 2>&1; then
4405   ide_cv_os_cygwin32=yes
4406 else
4407   ide_cv_os_cygwin32=no
4408 fi
4409 rm -f conftest*
4410
4411 fi
4412 echo "$as_me:$LINENO: result: $ide_cv_os_cygwin32" >&5
4413 echo "${ECHO_T}$ide_cv_os_cygwin32" >&6
4414 ac_win_build="no"
4415 if test x$ide_cv_os_cygwin32 = xyes; then
4416   ac_win_build="yes"
4417 fi
4418
4419 case "${host}" in
4420 *-*-cygwin*)
4421         touch ac$$.c
4422         if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
4423             case "$LIBGUI_CFLAGS" in
4424                 *-mwin32*) ;;
4425                 *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
4426             esac
4427         fi
4428         rm -f ac$$.o ac$$.c
4429         ;;
4430 esac
4431 case "${host}" in
4432 *-*-cygwin*)
4433         LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;;
4434 esac
4435
4436
4437 tmp="`cd $srcdir/library; pwd`"
4438 if test x"$ac_cv_prog_CC" = xcl ; then
4439   tmp2="`cygpath --windows $tmp`"
4440   LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
4441 else
4442   LIBGUI_LIBRARY_DIR=$tmp
4443 fi
4444
4445
4446 # Check for Tcl and Tk.
4447
4448     #
4449     # Ok, lets find the tcl configuration
4450     # First, look for one uninstalled.
4451     # the alternative search directory is invoked by --with-tcl
4452     #
4453
4454     if test x"${no_tcl}" = x ; then
4455         # we reset no_tcl in case something fails here
4456         no_tcl=true
4457
4458 # Check whether --with-tcl or --without-tcl was given.
4459 if test "${with_tcl+set}" = set; then
4460   withval="$with_tcl"
4461   with_tclconfig=${withval}
4462 fi;
4463         echo "$as_me:$LINENO: checking for Tcl configuration" >&5
4464 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
4465         if test "${ac_cv_c_tclconfig+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468
4469
4470             # First check to see if --with-tcl was specified.
4471             case "${host}" in
4472                 *-*-cygwin*) platDir="win" ;;
4473                 *) platDir="unix" ;;
4474             esac
4475             if test x"${with_tclconfig}" != x ; then
4476                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4477                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4478                 else
4479                     { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
4480 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
4481    { (exit 1); exit 1; }; }
4482                 fi
4483             fi
4484
4485             # then check for a private Tcl installation
4486             if test x"${ac_cv_c_tclconfig}" = x ; then
4487                 for i in \
4488                         ../tcl \
4489                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4490                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
4491                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
4492                         ../../tcl \
4493                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4494                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
4495                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
4496                         ../../../tcl \
4497                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4498                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
4499                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
4500                     if test -f "$i/$platDir/tclConfig.sh" ; then
4501                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4502                         break
4503                     fi
4504                 done
4505             fi
4506
4507             # on Darwin, check in Framework installation locations
4508             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
4509                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4510                         `ls -d /Library/Frameworks 2>/dev/null` \
4511                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
4512                         `ls -d /System/Library/Frameworks 2>/dev/null` \
4513                         ; do
4514                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
4515                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
4516                         break
4517                     fi
4518                 done
4519             fi
4520
4521             # check in a few common install locations
4522             if test x"${ac_cv_c_tclconfig}" = x ; then
4523                 for i in `ls -d ${libdir} 2>/dev/null` \
4524                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
4525                         `ls -d ${prefix}/lib 2>/dev/null` \
4526                         `ls -d /usr/local/lib 2>/dev/null` \
4527                         `ls -d /usr/contrib/lib 2>/dev/null` \
4528                         `ls -d /usr/lib 2>/dev/null` \
4529                         ; do
4530                     if test -f "$i/tclConfig.sh" ; then
4531                         ac_cv_c_tclconfig=`(cd $i; pwd)`
4532                         break
4533                     fi
4534                 done
4535             fi
4536
4537             # check in a few other private locations
4538             if test x"${ac_cv_c_tclconfig}" = x ; then
4539                 for i in \
4540                         ${srcdir}/../tcl \
4541                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4542                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
4543                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
4544                     if test -f "$i/$platDir/tclConfig.sh" ; then
4545                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4546                     break
4547                 fi
4548                 done
4549             fi
4550
4551 fi
4552
4553
4554         if test x"${ac_cv_c_tclconfig}" = x ; then
4555             TCL_BIN_DIR="# no Tcl configs found"
4556             { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
4557 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
4558             exit 0
4559         else
4560             no_tcl=
4561             TCL_BIN_DIR=${ac_cv_c_tclconfig}
4562             echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
4563 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
4564         fi
4565     fi
4566
4567
4568     echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
4569 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
4570
4571     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
4572         echo "$as_me:$LINENO: result: loading" >&5
4573 echo "${ECHO_T}loading" >&6
4574         . ${TCL_BIN_DIR}/tclConfig.sh
4575     else
4576         echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
4577 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
4578     fi
4579
4580     # eval is required to do the TCL_DBGX substitution
4581     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
4582     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
4583
4584     # If the TCL_BIN_DIR is the build directory (not the install directory),
4585     # then set the common variable name to the value of the build variables.
4586     # For example, the variable TCL_LIB_SPEC will be set to the value
4587     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
4588     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
4589     # installed and uninstalled version of Tcl.
4590     if test -f ${TCL_BIN_DIR}/Makefile ; then
4591         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
4592         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
4593         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
4594     elif test "`uname -s`" = "Darwin"; then
4595         # If Tcl was built as a framework, attempt to use the libraries
4596         # from the framework at the given location so that linking works
4597         # against Tcl.framework installed in an arbitary location.
4598         case ${TCL_DEFS} in
4599             *TCL_FRAMEWORK*)
4600                 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
4601                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
4602                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
4603                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
4604                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
4605                             break
4606                         fi
4607                     done
4608                 fi
4609                 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
4610                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
4611                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
4612                 fi
4613                 ;;
4614         esac
4615     fi
4616
4617     # eval is required to do the TCL_DBGX substitution
4618     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
4619     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
4620     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
4621     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637     #
4638     # Ok, lets find the tk configuration
4639     # First, look for one uninstalled.
4640     # the alternative search directory is invoked by --with-tk
4641     #
4642
4643     if test x"${no_tk}" = x ; then
4644         # we reset no_tk in case something fails here
4645         no_tk=true
4646
4647 # Check whether --with-tk or --without-tk was given.
4648 if test "${with_tk+set}" = set; then
4649   withval="$with_tk"
4650   with_tkconfig=${withval}
4651 fi;
4652         echo "$as_me:$LINENO: checking for Tk configuration" >&5
4653 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
4654         if test "${ac_cv_c_tkconfig+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657
4658
4659             # First check to see if --with-tkconfig was specified.
4660             if test x"${with_tkconfig}" != x ; then
4661                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4662                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4663                 else
4664                     { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
4665 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668             fi
4669
4670             # then check for a private Tk library
4671             case "${host}" in
4672                 *-*-cygwin*) platDir="win" ;;
4673                 *) platDir="unix" ;;
4674             esac
4675             if test x"${ac_cv_c_tkconfig}" = x ; then
4676                 for i in \
4677                         ../tk \
4678                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4679                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4680                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4681                         ../../tk \
4682                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4683                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4684                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4685                         ../../../tk \
4686                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4687                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4688                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4689                     if test -f "$i/$platDir/tkConfig.sh" ; then
4690                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4691                         break
4692                     fi
4693                 done
4694             fi
4695
4696             # on Darwin, check in Framework installation locations
4697             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4698                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4699                         `ls -d /Library/Frameworks 2>/dev/null` \
4700                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
4701                         `ls -d /System/Library/Frameworks 2>/dev/null` \
4702                         ; do
4703                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
4704                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
4705                         break
4706                     fi
4707                 done
4708             fi
4709
4710             # check in a few common install locations
4711             if test x"${ac_cv_c_tkconfig}" = x ; then
4712                 for i in `ls -d ${libdir} 2>/dev/null` \
4713                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
4714                         `ls -d ${prefix}/lib 2>/dev/null` \
4715                         `ls -d /usr/local/lib 2>/dev/null` \
4716                         `ls -d /usr/contrib/lib 2>/dev/null` \
4717                         `ls -d /usr/lib 2>/dev/null` \
4718                         ; do
4719                     if test -f "$i/tkConfig.sh" ; then
4720                         ac_cv_c_tkconfig=`(cd $i; pwd)`
4721                         break
4722                     fi
4723                 done
4724             fi
4725             # check in a few other private locations
4726             if test x"${ac_cv_c_tkconfig}" = x ; then
4727                 for i in \
4728                         ${srcdir}/../tk \
4729                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4730                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4731                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4732                     if test -f "$i/$platDir/tkConfig.sh" ; then
4733                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4734                         break
4735                     fi
4736                 done
4737             fi
4738
4739 fi
4740
4741
4742         if test x"${ac_cv_c_tkconfig}" = x ; then
4743             TK_BIN_DIR="# no Tk configs found"
4744             { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
4745 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
4746             exit 0
4747         else
4748             no_tk=
4749             TK_BIN_DIR=${ac_cv_c_tkconfig}
4750             echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4751 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
4752         fi
4753     fi
4754
4755
4756     echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4757 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
4758
4759     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4760         echo "$as_me:$LINENO: result: loading" >&5
4761 echo "${ECHO_T}loading" >&6
4762         . ${TK_BIN_DIR}/tkConfig.sh
4763     else
4764         echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4765 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
4766     fi
4767
4768     # eval is required to do the TK_DBGX substitution
4769     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
4770     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
4771
4772     # If the TK_BIN_DIR is the build directory (not the install directory),
4773     # then set the common variable name to the value of the build variables.
4774     # For example, the variable TK_LIB_SPEC will be set to the value
4775     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4776     # instead of TK_BUILD_LIB_SPEC since it will work with both an
4777     # installed and uninstalled version of Tcl.
4778     if test -f ${TK_BIN_DIR}/Makefile ; then
4779         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
4780         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
4781         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
4782     elif test "`uname -s`" = "Darwin"; then
4783         # If Tk was built as a framework, attempt to use the libraries
4784         # from the framework at the given location so that linking works
4785         # against Tk.framework installed in an arbitary location.
4786         case ${TK_DEFS} in
4787             *TK_FRAMEWORK*)
4788                 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
4789                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
4790                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
4791                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4792                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
4793                             break
4794                         fi
4795                     done
4796                 fi
4797                 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
4798                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
4799                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4800                 fi
4801                 ;;
4802         esac
4803     fi
4804
4805     # eval is required to do the TK_DBGX substitution
4806     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
4807     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
4808     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
4809     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824 here=`pwd`
4825 cd ${srcdir}/..
4826 topdir=`pwd`
4827 cd ${here}
4828
4829 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
4830   # Using in-tree Tcl/Tk
4831   case "${host}" in
4832     *-*-cygwin*) platDir="win" ;;
4833     *) platDir="unix" ;;
4834   esac
4835
4836   TCL_INCLUDES="-I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/${platDir}"
4837   TCL_LIBRARY=${TCL_BUILD_LIB_SPEC}
4838   TK_INCLUDES="-I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/${platDir}"
4839   TK_LIBRARY=${TK_BUILD_LIB_SPEC}
4840 else
4841   # Using installed Tcl/Tk
4842
4843   echo "$as_me:$LINENO: checking for Tcl private headers" >&5
4844 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
4845   private_dir=""
4846   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
4847   if test -f ${dir}/tclInt.h ; then
4848     private_dir=${dir}
4849   fi
4850
4851   if test x"${private_dir}" = x; then
4852     { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
4853 echo "$as_me: error: could not find private Tcl headers" >&2;}
4854    { (exit 1); exit 1; }; }
4855   else
4856     TCL_PRIVATE_INCLUDE="-I${private_dir}"
4857     echo "$as_me:$LINENO: result: ${private_dir}" >&5
4858 echo "${ECHO_T}${private_dir}" >&6
4859   fi
4860
4861
4862   echo "$as_me:$LINENO: checking for Tk private headers" >&5
4863 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
4864   private_dir=""
4865   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
4866   if test -f ${dir}/tkInt.h; then
4867     private_dir=${dir}
4868   fi
4869
4870   if test x"${private_dir}" = x; then
4871     { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
4872 echo "$as_me: error: could not find Tk private headers" >&2;}
4873    { (exit 1); exit 1; }; }
4874   else
4875     TK_PRIVATE_INCLUDE="-I${private_dir}"
4876     echo "$as_me:$LINENO: result: ${private_dir}" >&5
4877 echo "${ECHO_T}${private_dir}" >&6
4878   fi
4879
4880   TCL_INCLUDES="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
4881   TCL_LIBRARY=${TCL_LIB_SPEC}
4882   TK_INCLUDES="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
4883   TK_LIBRARY=${TK_LIB_SPEC}
4884 fi
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 if test x$TCL_SHARED_BUILD = x1; then
4899   TCL_SHARED_TRUE=
4900   TCL_SHARED_FALSE='#'
4901 else
4902   TCL_SHARED_TRUE='#'
4903   TCL_SHARED_FALSE=
4904 fi
4905
4906
4907
4908
4909                               ac_config_files="$ac_config_files Makefile library/Makefile src/Makefile"
4910 cat >confcache <<\_ACEOF
4911 # This file is a shell script that caches the results of configure
4912 # tests run on this system so they can be shared between configure
4913 # scripts and configure runs, see configure's option --config-cache.
4914 # It is not useful on other systems.  If it contains results you don't
4915 # want to keep, you may remove or edit it.
4916 #
4917 # config.status only pays attention to the cache file if you give it
4918 # the --recheck option to rerun configure.
4919 #
4920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4922 # following values.
4923
4924 _ACEOF
4925
4926 # The following way of writing the cache mishandles newlines in values,
4927 # but we know of no workaround that is simple, portable, and efficient.
4928 # So, don't put newlines in cache variables' values.
4929 # Ultrix sh set writes to stderr and can't be redirected directly,
4930 # and sets the high bit in the cache file unless we assign to the vars.
4931 {
4932   (set) 2>&1 |
4933     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4934     *ac_space=\ *)
4935       # `set' does not quote correctly, so add quotes (double-quote
4936       # substitution turns \\\\ into \\, and sed turns \\ into \).
4937       sed -n \
4938         "s/'/'\\\\''/g;
4939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4940       ;;
4941     *)
4942       # `set' quotes correctly as required by POSIX, so do not add quotes.
4943       sed -n \
4944         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4945       ;;
4946     esac;
4947 } |
4948   sed '
4949      t clear
4950      : clear
4951      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4952      t end
4953      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4954      : end' >>confcache
4955 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4956   if test -w $cache_file; then
4957     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4958     cat confcache >$cache_file
4959   else
4960     echo "not updating unwritable cache $cache_file"
4961   fi
4962 fi
4963 rm -f confcache
4964
4965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4966 # Let make expand exec_prefix.
4967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4968
4969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4971 # trailing colons and then remove the whole line if VPATH becomes empty
4972 # (actually we leave an empty line to preserve line numbers).
4973 if test "x$srcdir" = x.; then
4974   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4975 s/:*\$(srcdir):*/:/;
4976 s/:*\${srcdir}:*/:/;
4977 s/:*@srcdir@:*/:/;
4978 s/^\([^=]*=[     ]*\):*/\1/;
4979 s/:*$//;
4980 s/^[^=]*=[       ]*$//;
4981 }'
4982 fi
4983
4984 DEFS=-DHAVE_CONFIG_H
4985
4986 ac_libobjs=
4987 ac_ltlibobjs=
4988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4989   # 1. Remove the extension, and $U if already installed.
4990   ac_i=`echo "$ac_i" |
4991          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4992   # 2. Add them.
4993   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4994   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4995 done
4996 LIBOBJS=$ac_libobjs
4997
4998 LTLIBOBJS=$ac_ltlibobjs
4999
5000
5001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5002   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5003 Usually this means the macro was only invoked conditionally." >&5
5004 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5005 Usually this means the macro was only invoked conditionally." >&2;}
5006    { (exit 1); exit 1; }; }
5007 fi
5008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5009   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5010 Usually this means the macro was only invoked conditionally." >&5
5011 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5012 Usually this means the macro was only invoked conditionally." >&2;}
5013    { (exit 1); exit 1; }; }
5014 fi
5015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5016   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5017 Usually this means the macro was only invoked conditionally." >&5
5018 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5019 Usually this means the macro was only invoked conditionally." >&2;}
5020    { (exit 1); exit 1; }; }
5021 fi
5022 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
5023   { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
5024 Usually this means the macro was only invoked conditionally." >&5
5025 echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
5026 Usually this means the macro was only invoked conditionally." >&2;}
5027    { (exit 1); exit 1; }; }
5028 fi
5029 if test -z "${INSTALL_LIBGUI_TRUE}" && test -z "${INSTALL_LIBGUI_FALSE}"; then
5030   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBGUI\" was never defined.
5031 Usually this means the macro was only invoked conditionally." >&5
5032 echo "$as_me: error: conditional \"INSTALL_LIBGUI\" was never defined.
5033 Usually this means the macro was only invoked conditionally." >&2;}
5034    { (exit 1); exit 1; }; }
5035 fi
5036 if test -z "${IDE_ENABLED_TRUE}" && test -z "${IDE_ENABLED_FALSE}"; then
5037   { { echo "$as_me:$LINENO: error: conditional \"IDE_ENABLED\" was never defined.
5038 Usually this means the macro was only invoked conditionally." >&5
5039 echo "$as_me: error: conditional \"IDE_ENABLED\" was never defined.
5040 Usually this means the macro was only invoked conditionally." >&2;}
5041    { (exit 1); exit 1; }; }
5042 fi
5043 if test -z "${TCL_SHARED_TRUE}" && test -z "${TCL_SHARED_FALSE}"; then
5044   { { echo "$as_me:$LINENO: error: conditional \"TCL_SHARED\" was never defined.
5045 Usually this means the macro was only invoked conditionally." >&5
5046 echo "$as_me: error: conditional \"TCL_SHARED\" was never defined.
5047 Usually this means the macro was only invoked conditionally." >&2;}
5048    { (exit 1); exit 1; }; }
5049 fi
5050
5051 : ${CONFIG_STATUS=./config.status}
5052 ac_clean_files_save=$ac_clean_files
5053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5054 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5055 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5056 cat >$CONFIG_STATUS <<_ACEOF
5057 #! $SHELL
5058 # Generated by $as_me.
5059 # Run this file to recreate the current configuration.
5060 # Compiler output produced by configure, useful for debugging
5061 # configure, is in config.log if it exists.
5062
5063 debug=false
5064 ac_cs_recheck=false
5065 ac_cs_silent=false
5066 SHELL=\${CONFIG_SHELL-$SHELL}
5067 _ACEOF
5068
5069 cat >>$CONFIG_STATUS <<\_ACEOF
5070 ## --------------------- ##
5071 ## M4sh Initialization.  ##
5072 ## --------------------- ##
5073
5074 # Be Bourne compatible
5075 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5076   emulate sh
5077   NULLCMD=:
5078   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5079   # is contrary to our usage.  Disable this feature.
5080   alias -g '${1+"$@"}'='"$@"'
5081 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5082   set -o posix
5083 fi
5084 DUALCASE=1; export DUALCASE # for MKS sh
5085
5086 # Support unset when possible.
5087 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5088   as_unset=unset
5089 else
5090   as_unset=false
5091 fi
5092
5093
5094 # Work around bugs in pre-3.0 UWIN ksh.
5095 $as_unset ENV MAIL MAILPATH
5096 PS1='$ '
5097 PS2='> '
5098 PS4='+ '
5099
5100 # NLS nuisances.
5101 for as_var in \
5102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5104   LC_TELEPHONE LC_TIME
5105 do
5106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5107     eval $as_var=C; export $as_var
5108   else
5109     $as_unset $as_var
5110   fi
5111 done
5112
5113 # Required to use basename.
5114 if expr a : '\(a\)' >/dev/null 2>&1; then
5115   as_expr=expr
5116 else
5117   as_expr=false
5118 fi
5119
5120 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5121   as_basename=basename
5122 else
5123   as_basename=false
5124 fi
5125
5126
5127 # Name of the executable.
5128 as_me=`$as_basename "$0" ||
5129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5130          X"$0" : 'X\(//\)$' \| \
5131          X"$0" : 'X\(/\)$' \| \
5132          .     : '\(.\)' 2>/dev/null ||
5133 echo X/"$0" |
5134     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5135           /^X\/\(\/\/\)$/{ s//\1/; q; }
5136           /^X\/\(\/\).*/{ s//\1/; q; }
5137           s/.*/./; q'`
5138
5139
5140 # PATH needs CR, and LINENO needs CR and PATH.
5141 # Avoid depending upon Character Ranges.
5142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5145 as_cr_digits='0123456789'
5146 as_cr_alnum=$as_cr_Letters$as_cr_digits
5147
5148 # The user is always right.
5149 if test "${PATH_SEPARATOR+set}" != set; then
5150   echo "#! /bin/sh" >conf$$.sh
5151   echo  "exit 0"   >>conf$$.sh
5152   chmod +x conf$$.sh
5153   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5154     PATH_SEPARATOR=';'
5155   else
5156     PATH_SEPARATOR=:
5157   fi
5158   rm -f conf$$.sh
5159 fi
5160
5161
5162   as_lineno_1=$LINENO
5163   as_lineno_2=$LINENO
5164   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5165   test "x$as_lineno_1" != "x$as_lineno_2" &&
5166   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5167   # Find who we are.  Look in the path if we contain no path at all
5168   # relative or not.
5169   case $0 in
5170     *[\\/]* ) as_myself=$0 ;;
5171     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5177 done
5178
5179        ;;
5180   esac
5181   # We did not find ourselves, most probably we were run as `sh COMMAND'
5182   # in which case we are not to be found in the path.
5183   if test "x$as_myself" = x; then
5184     as_myself=$0
5185   fi
5186   if test ! -f "$as_myself"; then
5187     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5188 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5189    { (exit 1); exit 1; }; }
5190   fi
5191   case $CONFIG_SHELL in
5192   '')
5193     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for as_base in sh bash ksh sh5; do
5199          case $as_dir in
5200          /*)
5201            if ("$as_dir/$as_base" -c '
5202   as_lineno_1=$LINENO
5203   as_lineno_2=$LINENO
5204   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5205   test "x$as_lineno_1" != "x$as_lineno_2" &&
5206   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5207              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5208              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5209              CONFIG_SHELL=$as_dir/$as_base
5210              export CONFIG_SHELL
5211              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5212            fi;;
5213          esac
5214        done
5215 done
5216 ;;
5217   esac
5218
5219   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5220   # uniformly replaced by the line number.  The first 'sed' inserts a
5221   # line-number line before each line; the second 'sed' does the real
5222   # work.  The second script uses 'N' to pair each line-number line
5223   # with the numbered line, and appends trailing '-' during
5224   # substitution so that $LINENO is not a special case at line end.
5225   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5226   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5227   sed '=' <$as_myself |
5228     sed '
5229       N
5230       s,$,-,
5231       : loop
5232       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5233       t loop
5234       s,-$,,
5235       s,^['$as_cr_digits']*\n,,
5236     ' >$as_me.lineno &&
5237   chmod +x $as_me.lineno ||
5238     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5239 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5240    { (exit 1); exit 1; }; }
5241
5242   # Don't try to exec as it changes $[0], causing all sort of problems
5243   # (the dirname of $[0] is not the place where we might find the
5244   # original and so on.  Autoconf is especially sensible to this).
5245   . ./$as_me.lineno
5246   # Exit status is that of the last command.
5247   exit
5248 }
5249
5250
5251 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5252   *c*,-n*) ECHO_N= ECHO_C='
5253 ' ECHO_T='      ' ;;
5254   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5255   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5256 esac
5257
5258 if expr a : '\(a\)' >/dev/null 2>&1; then
5259   as_expr=expr
5260 else
5261   as_expr=false
5262 fi
5263
5264 rm -f conf$$ conf$$.exe conf$$.file
5265 echo >conf$$.file
5266 if ln -s conf$$.file conf$$ 2>/dev/null; then
5267   # We could just check for DJGPP; but this test a) works b) is more generic
5268   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5269   if test -f conf$$.exe; then
5270     # Don't use ln at all; we don't have any links
5271     as_ln_s='cp -p'
5272   else
5273     as_ln_s='ln -s'
5274   fi
5275 elif ln conf$$.file conf$$ 2>/dev/null; then
5276   as_ln_s=ln
5277 else
5278   as_ln_s='cp -p'
5279 fi
5280 rm -f conf$$ conf$$.exe conf$$.file
5281
5282 if mkdir -p . 2>/dev/null; then
5283   as_mkdir_p=:
5284 else
5285   test -d ./-p && rmdir ./-p
5286   as_mkdir_p=false
5287 fi
5288
5289 as_executable_p="test -f"
5290
5291 # Sed expression to map a string onto a valid CPP name.
5292 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5293
5294 # Sed expression to map a string onto a valid variable name.
5295 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5296
5297
5298 # IFS
5299 # We need space, tab and new line, in precisely that order.
5300 as_nl='
5301 '
5302 IFS="   $as_nl"
5303
5304 # CDPATH.
5305 $as_unset CDPATH
5306
5307 exec 6>&1
5308
5309 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5310 # report actual input values of CONFIG_FILES etc. instead of their
5311 # values after options handling.  Logging --version etc. is OK.
5312 exec 5>>config.log
5313 {
5314   echo
5315   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5316 ## Running $as_me. ##
5317 _ASBOX
5318 } >&5
5319 cat >&5 <<_CSEOF
5320
5321 This file was extended by $as_me, which was
5322 generated by GNU Autoconf 2.59.  Invocation command line was
5323
5324   CONFIG_FILES    = $CONFIG_FILES
5325   CONFIG_HEADERS  = $CONFIG_HEADERS
5326   CONFIG_LINKS    = $CONFIG_LINKS
5327   CONFIG_COMMANDS = $CONFIG_COMMANDS
5328   $ $0 $@
5329
5330 _CSEOF
5331 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5332 echo >&5
5333 _ACEOF
5334
5335 # Files that config.status was made for.
5336 if test -n "$ac_config_files"; then
5337   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5338 fi
5339
5340 if test -n "$ac_config_headers"; then
5341   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5342 fi
5343
5344 if test -n "$ac_config_links"; then
5345   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5346 fi
5347
5348 if test -n "$ac_config_commands"; then
5349   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5350 fi
5351
5352 cat >>$CONFIG_STATUS <<\_ACEOF
5353
5354 ac_cs_usage="\
5355 \`$as_me' instantiates files from templates according to the
5356 current configuration.
5357
5358 Usage: $0 [OPTIONS] [FILE]...
5359
5360   -h, --help       print this help, then exit
5361   -V, --version    print version number, then exit
5362   -q, --quiet      do not print progress messages
5363   -d, --debug      don't remove temporary files
5364       --recheck    update $as_me by reconfiguring in the same conditions
5365   --file=FILE[:TEMPLATE]
5366                    instantiate the configuration file FILE
5367   --header=FILE[:TEMPLATE]
5368                    instantiate the configuration header FILE
5369
5370 Configuration files:
5371 $config_files
5372
5373 Configuration headers:
5374 $config_headers
5375
5376 Configuration commands:
5377 $config_commands
5378
5379 Report bugs to <bug-autoconf@gnu.org>."
5380 _ACEOF
5381
5382 cat >>$CONFIG_STATUS <<_ACEOF
5383 ac_cs_version="\\
5384 config.status
5385 configured by $0, generated by GNU Autoconf 2.59,
5386   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5387
5388 Copyright (C) 2003 Free Software Foundation, Inc.
5389 This config.status script is free software; the Free Software Foundation
5390 gives unlimited permission to copy, distribute and modify it."
5391 srcdir=$srcdir
5392 INSTALL="$INSTALL"
5393 _ACEOF
5394
5395 cat >>$CONFIG_STATUS <<\_ACEOF
5396 # If no file are specified by the user, then we need to provide default
5397 # value.  By we need to know if files were specified by the user.
5398 ac_need_defaults=:
5399 while test $# != 0
5400 do
5401   case $1 in
5402   --*=*)
5403     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5404     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5405     ac_shift=:
5406     ;;
5407   -*)
5408     ac_option=$1
5409     ac_optarg=$2
5410     ac_shift=shift
5411     ;;
5412   *) # This is not an option, so the user has probably given explicit
5413      # arguments.
5414      ac_option=$1
5415      ac_need_defaults=false;;
5416   esac
5417
5418   case $ac_option in
5419   # Handling of the options.
5420 _ACEOF
5421 cat >>$CONFIG_STATUS <<\_ACEOF
5422   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5423     ac_cs_recheck=: ;;
5424   --version | --vers* | -V )
5425     echo "$ac_cs_version"; exit 0 ;;
5426   --he | --h)
5427     # Conflict between --help and --header
5428     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5429 Try \`$0 --help' for more information." >&5
5430 echo "$as_me: error: ambiguous option: $1
5431 Try \`$0 --help' for more information." >&2;}
5432    { (exit 1); exit 1; }; };;
5433   --help | --hel | -h )
5434     echo "$ac_cs_usage"; exit 0 ;;
5435   --debug | --d* | -d )
5436     debug=: ;;
5437   --file | --fil | --fi | --f )
5438     $ac_shift
5439     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5440     ac_need_defaults=false;;
5441   --header | --heade | --head | --hea )
5442     $ac_shift
5443     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5444     ac_need_defaults=false;;
5445   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5446   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5447     ac_cs_silent=: ;;
5448
5449   # This is an error.
5450   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5451 Try \`$0 --help' for more information." >&5
5452 echo "$as_me: error: unrecognized option: $1
5453 Try \`$0 --help' for more information." >&2;}
5454    { (exit 1); exit 1; }; } ;;
5455
5456   *) ac_config_targets="$ac_config_targets $1" ;;
5457
5458   esac
5459   shift
5460 done
5461
5462 ac_configure_extra_args=
5463
5464 if $ac_cs_silent; then
5465   exec 6>/dev/null
5466   ac_configure_extra_args="$ac_configure_extra_args --silent"
5467 fi
5468
5469 _ACEOF
5470 cat >>$CONFIG_STATUS <<_ACEOF
5471 if \$ac_cs_recheck; then
5472   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5473   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5474 fi
5475
5476 _ACEOF
5477
5478 cat >>$CONFIG_STATUS <<_ACEOF
5479 #
5480 # INIT-COMMANDS section.
5481 #
5482
5483 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5484
5485 _ACEOF
5486
5487
5488
5489 cat >>$CONFIG_STATUS <<\_ACEOF
5490 for ac_config_target in $ac_config_targets
5491 do
5492   case "$ac_config_target" in
5493   # Handling of arguments.
5494   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5495   "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
5496   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5497   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5498   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5499   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5501    { (exit 1); exit 1; }; };;
5502   esac
5503 done
5504
5505 # If the user did not use the arguments to specify the items to instantiate,
5506 # then the envvar interface is used.  Set only those that are not.
5507 # We use the long form for the default assignment because of an extremely
5508 # bizarre bug on SunOS 4.1.3.
5509 if $ac_need_defaults; then
5510   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5511   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5512   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5513 fi
5514
5515 # Have a temporary directory for convenience.  Make it in the build tree
5516 # simply because there is no reason to put it here, and in addition,
5517 # creating and moving files from /tmp can sometimes cause problems.
5518 # Create a temporary directory, and hook for its removal unless debugging.
5519 $debug ||
5520 {
5521   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5522   trap '{ (exit 1); exit 1; }' 1 2 13 15
5523 }
5524
5525 # Create a (secure) tmp directory for tmp files.
5526
5527 {
5528   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5529   test -n "$tmp" && test -d "$tmp"
5530 }  ||
5531 {
5532   tmp=./confstat$$-$RANDOM
5533   (umask 077 && mkdir $tmp)
5534 } ||
5535 {
5536    echo "$me: cannot create a temporary directory in ." >&2
5537    { (exit 1); exit 1; }
5538 }
5539
5540 _ACEOF
5541
5542 cat >>$CONFIG_STATUS <<_ACEOF
5543
5544 #
5545 # CONFIG_FILES section.
5546 #
5547
5548 # No need to generate the scripts if there are no CONFIG_FILES.
5549 # This happens for instance when ./config.status config.h
5550 if test -n "\$CONFIG_FILES"; then
5551   # Protect against being on the right side of a sed subst in config.status.
5552   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5553    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5554 s,@SHELL@,$SHELL,;t t
5555 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5556 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5557 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5558 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5559 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5560 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5561 s,@exec_prefix@,$exec_prefix,;t t
5562 s,@prefix@,$prefix,;t t
5563 s,@program_transform_name@,$program_transform_name,;t t
5564 s,@bindir@,$bindir,;t t
5565 s,@sbindir@,$sbindir,;t t
5566 s,@libexecdir@,$libexecdir,;t t
5567 s,@datadir@,$datadir,;t t
5568 s,@sysconfdir@,$sysconfdir,;t t
5569 s,@sharedstatedir@,$sharedstatedir,;t t
5570 s,@localstatedir@,$localstatedir,;t t
5571 s,@libdir@,$libdir,;t t
5572 s,@includedir@,$includedir,;t t
5573 s,@oldincludedir@,$oldincludedir,;t t
5574 s,@infodir@,$infodir,;t t
5575 s,@mandir@,$mandir,;t t
5576 s,@build_alias@,$build_alias,;t t
5577 s,@host_alias@,$host_alias,;t t
5578 s,@target_alias@,$target_alias,;t t
5579 s,@DEFS@,$DEFS,;t t
5580 s,@ECHO_C@,$ECHO_C,;t t
5581 s,@ECHO_N@,$ECHO_N,;t t
5582 s,@ECHO_T@,$ECHO_T,;t t
5583 s,@LIBS@,$LIBS,;t t
5584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5585 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5586 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5587 s,@CYGPATH_W@,$CYGPATH_W,;t t
5588 s,@PACKAGE@,$PACKAGE,;t t
5589 s,@VERSION@,$VERSION,;t t
5590 s,@ACLOCAL@,$ACLOCAL,;t t
5591 s,@AUTOCONF@,$AUTOCONF,;t t
5592 s,@AUTOMAKE@,$AUTOMAKE,;t t
5593 s,@AUTOHEADER@,$AUTOHEADER,;t t
5594 s,@MAKEINFO@,$MAKEINFO,;t t
5595 s,@install_sh@,$install_sh,;t t
5596 s,@STRIP@,$STRIP,;t t
5597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5598 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5599 s,@mkdir_p@,$mkdir_p,;t t
5600 s,@AWK@,$AWK,;t t
5601 s,@SET_MAKE@,$SET_MAKE,;t t
5602 s,@am__leading_dot@,$am__leading_dot,;t t
5603 s,@AMTAR@,$AMTAR,;t t
5604 s,@am__tar@,$am__tar,;t t
5605 s,@am__untar@,$am__untar,;t t
5606 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5607 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5608 s,@MAINT@,$MAINT,;t t
5609 s,@build@,$build,;t t
5610 s,@build_cpu@,$build_cpu,;t t
5611 s,@build_vendor@,$build_vendor,;t t
5612 s,@build_os@,$build_os,;t t
5613 s,@host@,$host,;t t
5614 s,@host_cpu@,$host_cpu,;t t
5615 s,@host_vendor@,$host_vendor,;t t
5616 s,@host_os@,$host_os,;t t
5617 s,@CC@,$CC,;t t
5618 s,@CFLAGS@,$CFLAGS,;t t
5619 s,@LDFLAGS@,$LDFLAGS,;t t
5620 s,@CPPFLAGS@,$CPPFLAGS,;t t
5621 s,@ac_ct_CC@,$ac_ct_CC,;t t
5622 s,@EXEEXT@,$EXEEXT,;t t
5623 s,@OBJEXT@,$OBJEXT,;t t
5624 s,@DEPDIR@,$DEPDIR,;t t
5625 s,@am__include@,$am__include,;t t
5626 s,@am__quote@,$am__quote,;t t
5627 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5628 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5629 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5630 s,@CCDEPMODE@,$CCDEPMODE,;t t
5631 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5632 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5633 s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
5634 s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
5635 s,@INSTALL_LIBGUI_TRUE@,$INSTALL_LIBGUI_TRUE,;t t
5636 s,@INSTALL_LIBGUI_FALSE@,$INSTALL_LIBGUI_FALSE,;t t
5637 s,@RANLIB@,$RANLIB,;t t
5638 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5639 s,@AR@,$AR,;t t
5640 s,@ac_ct_AR@,$ac_ct_AR,;t t
5641 s,@ALLOCA@,$ALLOCA,;t t
5642 s,@CPP@,$CPP,;t t
5643 s,@EGREP@,$EGREP,;t t
5644 s,@IDE_ENABLED_TRUE@,$IDE_ENABLED_TRUE,;t t
5645 s,@IDE_ENABLED_FALSE@,$IDE_ENABLED_FALSE,;t t
5646 s,@LIBGUI_CFLAGS@,$LIBGUI_CFLAGS,;t t
5647 s,@LIBGUI_LIBRARY_DIR@,$LIBGUI_LIBRARY_DIR,;t t
5648 s,@TCL_VERSION@,$TCL_VERSION,;t t
5649 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
5650 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
5651 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
5652 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
5653 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
5654 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
5655 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
5656 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
5657 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
5658 s,@TK_VERSION@,$TK_VERSION,;t t
5659 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
5660 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
5661 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
5662 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
5663 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
5664 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
5665 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
5666 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
5667 s,@TCL_DEFS@,$TCL_DEFS,;t t
5668 s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
5669 s,@TK_DEFS@,$TK_DEFS,;t t
5670 s,@TK_INCLUDES@,$TK_INCLUDES,;t t
5671 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
5672 s,@TCL_LIBS@,$TCL_LIBS,;t t
5673 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
5674 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
5675 s,@TK_LIBS@,$TK_LIBS,;t t
5676 s,@TCL_SHARED_TRUE@,$TCL_SHARED_TRUE,;t t
5677 s,@TCL_SHARED_FALSE@,$TCL_SHARED_FALSE,;t t
5678 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
5679 s,@LIBOBJS@,$LIBOBJS,;t t
5680 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5681 CEOF
5682
5683 _ACEOF
5684
5685   cat >>$CONFIG_STATUS <<\_ACEOF
5686   # Split the substitutions into bite-sized pieces for seds with
5687   # small command number limits, like on Digital OSF/1 and HP-UX.
5688   ac_max_sed_lines=48
5689   ac_sed_frag=1 # Number of current file.
5690   ac_beg=1 # First line for current file.
5691   ac_end=$ac_max_sed_lines # Line after last line for current file.
5692   ac_more_lines=:
5693   ac_sed_cmds=
5694   while $ac_more_lines; do
5695     if test $ac_beg -gt 1; then
5696       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5697     else
5698       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5699     fi
5700     if test ! -s $tmp/subs.frag; then
5701       ac_more_lines=false
5702     else
5703       # The purpose of the label and of the branching condition is to
5704       # speed up the sed processing (if there are no `@' at all, there
5705       # is no need to browse any of the substitutions).
5706       # These are the two extra sed commands mentioned above.
5707       (echo ':t
5708   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5709       if test -z "$ac_sed_cmds"; then
5710         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5711       else
5712         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5713       fi
5714       ac_sed_frag=`expr $ac_sed_frag + 1`
5715       ac_beg=$ac_end
5716       ac_end=`expr $ac_end + $ac_max_sed_lines`
5717     fi
5718   done
5719   if test -z "$ac_sed_cmds"; then
5720     ac_sed_cmds=cat
5721   fi
5722 fi # test -n "$CONFIG_FILES"
5723
5724 _ACEOF
5725 cat >>$CONFIG_STATUS <<\_ACEOF
5726 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5727   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5728   case $ac_file in
5729   - | *:- | *:-:* ) # input from stdin
5730         cat >$tmp/stdin
5731         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5732         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5733   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5734         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5735   * )   ac_file_in=$ac_file.in ;;
5736   esac
5737
5738   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5739   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5741          X"$ac_file" : 'X\(//\)[^/]' \| \
5742          X"$ac_file" : 'X\(//\)$' \| \
5743          X"$ac_file" : 'X\(/\)' \| \
5744          .     : '\(.\)' 2>/dev/null ||
5745 echo X"$ac_file" |
5746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5747           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5748           /^X\(\/\/\)$/{ s//\1/; q; }
5749           /^X\(\/\).*/{ s//\1/; q; }
5750           s/.*/./; q'`
5751   { if $as_mkdir_p; then
5752     mkdir -p "$ac_dir"
5753   else
5754     as_dir="$ac_dir"
5755     as_dirs=
5756     while test ! -d "$as_dir"; do
5757       as_dirs="$as_dir $as_dirs"
5758       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5760          X"$as_dir" : 'X\(//\)[^/]' \| \
5761          X"$as_dir" : 'X\(//\)$' \| \
5762          X"$as_dir" : 'X\(/\)' \| \
5763          .     : '\(.\)' 2>/dev/null ||
5764 echo X"$as_dir" |
5765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5767           /^X\(\/\/\)$/{ s//\1/; q; }
5768           /^X\(\/\).*/{ s//\1/; q; }
5769           s/.*/./; q'`
5770     done
5771     test ! -n "$as_dirs" || mkdir $as_dirs
5772   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5774    { (exit 1); exit 1; }; }; }
5775
5776   ac_builddir=.
5777
5778 if test "$ac_dir" != .; then
5779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5780   # A "../" for each directory in $ac_dir_suffix.
5781   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5782 else
5783   ac_dir_suffix= ac_top_builddir=
5784 fi
5785
5786 case $srcdir in
5787   .)  # No --srcdir option.  We are building in place.
5788     ac_srcdir=.
5789     if test -z "$ac_top_builddir"; then
5790        ac_top_srcdir=.
5791     else
5792        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5793     fi ;;
5794   [\\/]* | ?:[\\/]* )  # Absolute path.
5795     ac_srcdir=$srcdir$ac_dir_suffix;
5796     ac_top_srcdir=$srcdir ;;
5797   *) # Relative path.
5798     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5799     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5800 esac
5801
5802 # Do not use `cd foo && pwd` to compute absolute paths, because
5803 # the directories may not exist.
5804 case `pwd` in
5805 .) ac_abs_builddir="$ac_dir";;
5806 *)
5807   case "$ac_dir" in
5808   .) ac_abs_builddir=`pwd`;;
5809   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5810   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5811   esac;;
5812 esac
5813 case $ac_abs_builddir in
5814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5815 *)
5816   case ${ac_top_builddir}. in
5817   .) ac_abs_top_builddir=$ac_abs_builddir;;
5818   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5819   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5820   esac;;
5821 esac
5822 case $ac_abs_builddir in
5823 .) ac_abs_srcdir=$ac_srcdir;;
5824 *)
5825   case $ac_srcdir in
5826   .) ac_abs_srcdir=$ac_abs_builddir;;
5827   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5828   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5829   esac;;
5830 esac
5831 case $ac_abs_builddir in
5832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5833 *)
5834   case $ac_top_srcdir in
5835   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5836   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5837   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5838   esac;;
5839 esac
5840
5841
5842   case $INSTALL in
5843   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5844   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5845   esac
5846
5847   if test x"$ac_file" != x-; then
5848     { echo "$as_me:$LINENO: creating $ac_file" >&5
5849 echo "$as_me: creating $ac_file" >&6;}
5850     rm -f "$ac_file"
5851   fi
5852   # Let's still pretend it is `configure' which instantiates (i.e., don't
5853   # use $as_me), people would be surprised to read:
5854   #    /* config.h.  Generated by config.status.  */
5855   if test x"$ac_file" = x-; then
5856     configure_input=
5857   else
5858     configure_input="$ac_file.  "
5859   fi
5860   configure_input=$configure_input"Generated from `echo $ac_file_in |
5861                                      sed 's,.*/,,'` by configure."
5862
5863   # First look for the input files in the build tree, otherwise in the
5864   # src tree.
5865   ac_file_inputs=`IFS=:
5866     for f in $ac_file_in; do
5867       case $f in
5868       -) echo $tmp/stdin ;;
5869       [\\/$]*)
5870          # Absolute (can't be DOS-style, as IFS=:)
5871          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5872 echo "$as_me: error: cannot find input file: $f" >&2;}
5873    { (exit 1); exit 1; }; }
5874          echo "$f";;
5875       *) # Relative
5876          if test -f "$f"; then
5877            # Build tree
5878            echo "$f"
5879          elif test -f "$srcdir/$f"; then
5880            # Source tree
5881            echo "$srcdir/$f"
5882          else
5883            # /dev/null tree
5884            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5885 echo "$as_me: error: cannot find input file: $f" >&2;}
5886    { (exit 1); exit 1; }; }
5887          fi;;
5888       esac
5889     done` || { (exit 1); exit 1; }
5890 _ACEOF
5891 cat >>$CONFIG_STATUS <<_ACEOF
5892   sed "$ac_vpsub
5893 $extrasub
5894 _ACEOF
5895 cat >>$CONFIG_STATUS <<\_ACEOF
5896 :t
5897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5898 s,@configure_input@,$configure_input,;t t
5899 s,@srcdir@,$ac_srcdir,;t t
5900 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5901 s,@top_srcdir@,$ac_top_srcdir,;t t
5902 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5903 s,@builddir@,$ac_builddir,;t t
5904 s,@abs_builddir@,$ac_abs_builddir,;t t
5905 s,@top_builddir@,$ac_top_builddir,;t t
5906 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5907 s,@INSTALL@,$ac_INSTALL,;t t
5908 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5909   rm -f $tmp/stdin
5910   if test x"$ac_file" != x-; then
5911     mv $tmp/out $ac_file
5912   else
5913     cat $tmp/out
5914     rm -f $tmp/out
5915   fi
5916
5917 done
5918 _ACEOF
5919 cat >>$CONFIG_STATUS <<\_ACEOF
5920
5921 #
5922 # CONFIG_HEADER section.
5923 #
5924
5925 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5926 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5927 #
5928 # ac_d sets the value in "#define NAME VALUE" lines.
5929 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
5930 ac_dB='[         ].*$,\1#\2'
5931 ac_dC=' '
5932 ac_dD=',;t'
5933 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5934 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5935 ac_uB='$,\1#\2define\3'
5936 ac_uC=' '
5937 ac_uD=',;t'
5938
5939 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5940   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5941   case $ac_file in
5942   - | *:- | *:-:* ) # input from stdin
5943         cat >$tmp/stdin
5944         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5945         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5946   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5947         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5948   * )   ac_file_in=$ac_file.in ;;
5949   esac
5950
5951   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5952 echo "$as_me: creating $ac_file" >&6;}
5953
5954   # First look for the input files in the build tree, otherwise in the
5955   # src tree.
5956   ac_file_inputs=`IFS=:
5957     for f in $ac_file_in; do
5958       case $f in
5959       -) echo $tmp/stdin ;;
5960       [\\/$]*)
5961          # Absolute (can't be DOS-style, as IFS=:)
5962          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5963 echo "$as_me: error: cannot find input file: $f" >&2;}
5964    { (exit 1); exit 1; }; }
5965          # Do quote $f, to prevent DOS paths from being IFS'd.
5966          echo "$f";;
5967       *) # Relative
5968          if test -f "$f"; then
5969            # Build tree
5970            echo "$f"
5971          elif test -f "$srcdir/$f"; then
5972            # Source tree
5973            echo "$srcdir/$f"
5974          else
5975            # /dev/null tree
5976            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5977 echo "$as_me: error: cannot find input file: $f" >&2;}
5978    { (exit 1); exit 1; }; }
5979          fi;;
5980       esac
5981     done` || { (exit 1); exit 1; }
5982   # Remove the trailing spaces.
5983   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
5984
5985 _ACEOF
5986
5987 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5988 # `conftest.undefs', that substitutes the proper values into
5989 # config.h.in to produce config.h.  The first handles `#define'
5990 # templates, and the second `#undef' templates.
5991 # And first: Protect against being on the right side of a sed subst in
5992 # config.status.  Protect against being in an unquoted here document
5993 # in config.status.
5994 rm -f conftest.defines conftest.undefs
5995 # Using a here document instead of a string reduces the quoting nightmare.
5996 # Putting comments in sed scripts is not portable.
5997 #
5998 # `end' is used to avoid that the second main sed command (meant for
5999 # 0-ary CPP macros) applies to n-ary macro definitions.
6000 # See the Autoconf documentation for `clear'.
6001 cat >confdef2sed.sed <<\_ACEOF
6002 s/[\\&,]/\\&/g
6003 s,[\\$`],\\&,g
6004 t clear
6005 : clear
6006 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6007 t end
6008 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6009 : end
6010 _ACEOF
6011 # If some macros were called several times there might be several times
6012 # the same #defines, which is useless.  Nevertheless, we may not want to
6013 # sort them, since we want the *last* AC-DEFINE to be honored.
6014 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6015 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6016 rm -f confdef2sed.sed
6017
6018 # This sed command replaces #undef with comments.  This is necessary, for
6019 # example, in the case of _POSIX_SOURCE, which is predefined and required
6020 # on some systems where configure will not decide to define it.
6021 cat >>conftest.undefs <<\_ACEOF
6022 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6023 _ACEOF
6024
6025 # Break up conftest.defines because some shells have a limit on the size
6026 # of here documents, and old seds have small limits too (100 cmds).
6027 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6028 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6029 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6030 echo '  :' >>$CONFIG_STATUS
6031 rm -f conftest.tail
6032 while grep . conftest.defines >/dev/null
6033 do
6034   # Write a limited-size here document to $tmp/defines.sed.
6035   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6036   # Speed up: don't consider the non `#define' lines.
6037   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6038   # Work around the forget-to-reset-the-flag bug.
6039   echo 't clr' >>$CONFIG_STATUS
6040   echo ': clr' >>$CONFIG_STATUS
6041   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6042   echo 'CEOF
6043   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6044   rm -f $tmp/in
6045   mv $tmp/out $tmp/in
6046 ' >>$CONFIG_STATUS
6047   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6048   rm -f conftest.defines
6049   mv conftest.tail conftest.defines
6050 done
6051 rm -f conftest.defines
6052 echo '  fi # grep' >>$CONFIG_STATUS
6053 echo >>$CONFIG_STATUS
6054
6055 # Break up conftest.undefs because some shells have a limit on the size
6056 # of here documents, and old seds have small limits too (100 cmds).
6057 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6058 rm -f conftest.tail
6059 while grep . conftest.undefs >/dev/null
6060 do
6061   # Write a limited-size here document to $tmp/undefs.sed.
6062   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6063   # Speed up: don't consider the non `#undef'
6064   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6065   # Work around the forget-to-reset-the-flag bug.
6066   echo 't clr' >>$CONFIG_STATUS
6067   echo ': clr' >>$CONFIG_STATUS
6068   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6069   echo 'CEOF
6070   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6071   rm -f $tmp/in
6072   mv $tmp/out $tmp/in
6073 ' >>$CONFIG_STATUS
6074   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6075   rm -f conftest.undefs
6076   mv conftest.tail conftest.undefs
6077 done
6078 rm -f conftest.undefs
6079
6080 cat >>$CONFIG_STATUS <<\_ACEOF
6081   # Let's still pretend it is `configure' which instantiates (i.e., don't
6082   # use $as_me), people would be surprised to read:
6083   #    /* config.h.  Generated by config.status.  */
6084   if test x"$ac_file" = x-; then
6085     echo "/* Generated by configure.  */" >$tmp/config.h
6086   else
6087     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6088   fi
6089   cat $tmp/in >>$tmp/config.h
6090   rm -f $tmp/in
6091   if test x"$ac_file" != x-; then
6092     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6093       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6094 echo "$as_me: $ac_file is unchanged" >&6;}
6095     else
6096       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098          X"$ac_file" : 'X\(//\)[^/]' \| \
6099          X"$ac_file" : 'X\(//\)$' \| \
6100          X"$ac_file" : 'X\(/\)' \| \
6101          .     : '\(.\)' 2>/dev/null ||
6102 echo X"$ac_file" |
6103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6104           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6105           /^X\(\/\/\)$/{ s//\1/; q; }
6106           /^X\(\/\).*/{ s//\1/; q; }
6107           s/.*/./; q'`
6108       { if $as_mkdir_p; then
6109     mkdir -p "$ac_dir"
6110   else
6111     as_dir="$ac_dir"
6112     as_dirs=
6113     while test ! -d "$as_dir"; do
6114       as_dirs="$as_dir $as_dirs"
6115       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6117          X"$as_dir" : 'X\(//\)[^/]' \| \
6118          X"$as_dir" : 'X\(//\)$' \| \
6119          X"$as_dir" : 'X\(/\)' \| \
6120          .     : '\(.\)' 2>/dev/null ||
6121 echo X"$as_dir" |
6122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6123           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6124           /^X\(\/\/\)$/{ s//\1/; q; }
6125           /^X\(\/\).*/{ s//\1/; q; }
6126           s/.*/./; q'`
6127     done
6128     test ! -n "$as_dirs" || mkdir $as_dirs
6129   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6130 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6131    { (exit 1); exit 1; }; }; }
6132
6133       rm -f $ac_file
6134       mv $tmp/config.h $ac_file
6135     fi
6136   else
6137     cat $tmp/config.h
6138     rm -f $tmp/config.h
6139   fi
6140 # Compute $ac_file's index in $config_headers.
6141 _am_stamp_count=1
6142 for _am_header in $config_headers :; do
6143   case $_am_header in
6144     $ac_file | $ac_file:* )
6145       break ;;
6146     * )
6147       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6148   esac
6149 done
6150 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6151 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6152          X$ac_file : 'X\(//\)[^/]' \| \
6153          X$ac_file : 'X\(//\)$' \| \
6154          X$ac_file : 'X\(/\)' \| \
6155          .     : '\(.\)' 2>/dev/null ||
6156 echo X$ac_file |
6157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6159           /^X\(\/\/\)$/{ s//\1/; q; }
6160           /^X\(\/\).*/{ s//\1/; q; }
6161           s/.*/./; q'`/stamp-h$_am_stamp_count
6162 done
6163 _ACEOF
6164 cat >>$CONFIG_STATUS <<\_ACEOF
6165
6166 #
6167 # CONFIG_COMMANDS section.
6168 #
6169 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6170   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6171   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6172   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6173 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6174          X"$ac_dest" : 'X\(//\)[^/]' \| \
6175          X"$ac_dest" : 'X\(//\)$' \| \
6176          X"$ac_dest" : 'X\(/\)' \| \
6177          .     : '\(.\)' 2>/dev/null ||
6178 echo X"$ac_dest" |
6179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6180           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6181           /^X\(\/\/\)$/{ s//\1/; q; }
6182           /^X\(\/\).*/{ s//\1/; q; }
6183           s/.*/./; q'`
6184   { if $as_mkdir_p; then
6185     mkdir -p "$ac_dir"
6186   else
6187     as_dir="$ac_dir"
6188     as_dirs=
6189     while test ! -d "$as_dir"; do
6190       as_dirs="$as_dir $as_dirs"
6191       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6193          X"$as_dir" : 'X\(//\)[^/]' \| \
6194          X"$as_dir" : 'X\(//\)$' \| \
6195          X"$as_dir" : 'X\(/\)' \| \
6196          .     : '\(.\)' 2>/dev/null ||
6197 echo X"$as_dir" |
6198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6199           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6200           /^X\(\/\/\)$/{ s//\1/; q; }
6201           /^X\(\/\).*/{ s//\1/; q; }
6202           s/.*/./; q'`
6203     done
6204     test ! -n "$as_dirs" || mkdir $as_dirs
6205   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6207    { (exit 1); exit 1; }; }; }
6208
6209   ac_builddir=.
6210
6211 if test "$ac_dir" != .; then
6212   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6213   # A "../" for each directory in $ac_dir_suffix.
6214   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6215 else
6216   ac_dir_suffix= ac_top_builddir=
6217 fi
6218
6219 case $srcdir in
6220   .)  # No --srcdir option.  We are building in place.
6221     ac_srcdir=.
6222     if test -z "$ac_top_builddir"; then
6223        ac_top_srcdir=.
6224     else
6225        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6226     fi ;;
6227   [\\/]* | ?:[\\/]* )  # Absolute path.
6228     ac_srcdir=$srcdir$ac_dir_suffix;
6229     ac_top_srcdir=$srcdir ;;
6230   *) # Relative path.
6231     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6232     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6233 esac
6234
6235 # Do not use `cd foo && pwd` to compute absolute paths, because
6236 # the directories may not exist.
6237 case `pwd` in
6238 .) ac_abs_builddir="$ac_dir";;
6239 *)
6240   case "$ac_dir" in
6241   .) ac_abs_builddir=`pwd`;;
6242   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6243   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6244   esac;;
6245 esac
6246 case $ac_abs_builddir in
6247 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6248 *)
6249   case ${ac_top_builddir}. in
6250   .) ac_abs_top_builddir=$ac_abs_builddir;;
6251   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6252   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6253   esac;;
6254 esac
6255 case $ac_abs_builddir in
6256 .) ac_abs_srcdir=$ac_srcdir;;
6257 *)
6258   case $ac_srcdir in
6259   .) ac_abs_srcdir=$ac_abs_builddir;;
6260   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6261   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6262   esac;;
6263 esac
6264 case $ac_abs_builddir in
6265 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6266 *)
6267   case $ac_top_srcdir in
6268   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6269   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6270   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6271   esac;;
6272 esac
6273
6274
6275   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6276 echo "$as_me: executing $ac_dest commands" >&6;}
6277   case $ac_dest in
6278     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6279   # Strip MF so we end up with the name of the file.
6280   mf=`echo "$mf" | sed -e 's/:.*$//'`
6281   # Check whether this is an Automake generated Makefile or not.
6282   # We used to match only the files named `Makefile.in', but
6283   # some people rename them; so instead we look at the file content.
6284   # Grep'ing the first line is not enough: some people post-process
6285   # each Makefile.in and add a new line on top of each file to say so.
6286   # So let's grep whole file.
6287   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6288     dirpart=`(dirname "$mf") 2>/dev/null ||
6289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6290          X"$mf" : 'X\(//\)[^/]' \| \
6291          X"$mf" : 'X\(//\)$' \| \
6292          X"$mf" : 'X\(/\)' \| \
6293          .     : '\(.\)' 2>/dev/null ||
6294 echo X"$mf" |
6295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6297           /^X\(\/\/\)$/{ s//\1/; q; }
6298           /^X\(\/\).*/{ s//\1/; q; }
6299           s/.*/./; q'`
6300   else
6301     continue
6302   fi
6303   # Extract the definition of DEPDIR, am__include, and am__quote
6304   # from the Makefile without running `make'.
6305   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6306   test -z "$DEPDIR" && continue
6307   am__include=`sed -n 's/^am__include = //p' < "$mf"`
6308   test -z "am__include" && continue
6309   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6310   # When using ansi2knr, U may be empty or an underscore; expand it
6311   U=`sed -n 's/^U = //p' < "$mf"`
6312   # Find all dependency output files, they are included files with
6313   # $(DEPDIR) in their names.  We invoke sed twice because it is the
6314   # simplest approach to changing $(DEPDIR) to its actual value in the
6315   # expansion.
6316   for file in `sed -n "
6317     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6318        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6319     # Make sure the directory exists.
6320     test -f "$dirpart/$file" && continue
6321     fdir=`(dirname "$file") 2>/dev/null ||
6322 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6323          X"$file" : 'X\(//\)[^/]' \| \
6324          X"$file" : 'X\(//\)$' \| \
6325          X"$file" : 'X\(/\)' \| \
6326          .     : '\(.\)' 2>/dev/null ||
6327 echo X"$file" |
6328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6330           /^X\(\/\/\)$/{ s//\1/; q; }
6331           /^X\(\/\).*/{ s//\1/; q; }
6332           s/.*/./; q'`
6333     { if $as_mkdir_p; then
6334     mkdir -p $dirpart/$fdir
6335   else
6336     as_dir=$dirpart/$fdir
6337     as_dirs=
6338     while test ! -d "$as_dir"; do
6339       as_dirs="$as_dir $as_dirs"
6340       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6342          X"$as_dir" : 'X\(//\)[^/]' \| \
6343          X"$as_dir" : 'X\(//\)$' \| \
6344          X"$as_dir" : 'X\(/\)' \| \
6345          .     : '\(.\)' 2>/dev/null ||
6346 echo X"$as_dir" |
6347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6349           /^X\(\/\/\)$/{ s//\1/; q; }
6350           /^X\(\/\).*/{ s//\1/; q; }
6351           s/.*/./; q'`
6352     done
6353     test ! -n "$as_dirs" || mkdir $as_dirs
6354   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6355 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6356    { (exit 1); exit 1; }; }; }
6357
6358     # echo "creating $dirpart/$file"
6359     echo '# dummy' > "$dirpart/$file"
6360   done
6361 done
6362  ;;
6363   esac
6364 done
6365 _ACEOF
6366
6367 cat >>$CONFIG_STATUS <<\_ACEOF
6368
6369 { (exit 0); exit 0; }
6370 _ACEOF
6371 chmod +x $CONFIG_STATUS
6372 ac_clean_files=$ac_clean_files_save
6373
6374
6375 # configure is writing to config.log, and then calls config.status.
6376 # config.status does its own redirection, appending to config.log.
6377 # Unfortunately, on DOS this fails, as config.log is still kept open
6378 # by configure, so config.status won't be able to write to it; its
6379 # output is simply discarded.  So we exec the FD to /dev/null,
6380 # effectively closing config.log, so it can be properly (re)opened and
6381 # appended to by config.status.  When coming back to configure, we
6382 # need to make the FD available again.
6383 if test "$no_create" != yes; then
6384   ac_cs_success=:
6385   ac_config_status_args=
6386   test "$silent" = yes &&
6387     ac_config_status_args="$ac_config_status_args --quiet"
6388   exec 5>/dev/null
6389   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6390   exec 5>>config.log
6391   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6392   # would make configure fail if this is the last instruction.
6393   $ac_cs_success || { (exit 1); exit 1; }
6394 fi
6395
6396
6397
6398