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