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