Doc.
[rsync/rsync.git] / popt-1.2 / configure
CommitLineData
62402cb1
MP
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14
15# Initialize some variables set by options.
16# The variables have the same names as the options, with
17# dashes changed to underlines.
18build=NONE
19cache_file=./config.cache
20exec_prefix=NONE
21host=NONE
22no_create=
23nonopt=NONE
24no_recursion=
25prefix=NONE
26program_prefix=NONE
27program_suffix=NONE
28program_transform_name=s,x,x,
29silent=
30site=
31srcdir=
32target=NONE
33verbose=
34x_includes=NONE
35x_libraries=NONE
36bindir='${exec_prefix}/bin'
37sbindir='${exec_prefix}/sbin'
38libexecdir='${exec_prefix}/libexec'
39datadir='${prefix}/share'
40sysconfdir='${prefix}/etc'
41sharedstatedir='${prefix}/com'
42localstatedir='${prefix}/var'
43libdir='${exec_prefix}/lib'
44includedir='${prefix}/include'
45oldincludedir='/usr/include'
46infodir='${prefix}/info'
47mandir='${prefix}/man'
48
49# Initialize some other variables.
50subdirs=
51MFLAGS= MAKEFLAGS=
52# Maximum number of lines to put in a shell here document.
53ac_max_here_lines=12
54
55ac_prev=
56for ac_option
57do
58
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
62 ac_prev=
63 continue
64 fi
65
66 case "$ac_option" in
67 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 *) ac_optarg= ;;
69 esac
70
71 # Accept the important Cygnus configure options, so we can diagnose typos.
72
73 case "$ac_option" in
74
75 -bindir | --bindir | --bindi | --bind | --bin | --bi)
76 ac_prev=bindir ;;
77 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
78 bindir="$ac_optarg" ;;
79
80 -build | --build | --buil | --bui | --bu)
81 ac_prev=build ;;
82 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
83 build="$ac_optarg" ;;
84
85 -cache-file | --cache-file | --cache-fil | --cache-fi \
86 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
87 ac_prev=cache_file ;;
88 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
89 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
90 cache_file="$ac_optarg" ;;
91
92 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
93 ac_prev=datadir ;;
94 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
95 | --da=*)
96 datadir="$ac_optarg" ;;
97
98 -disable-* | --disable-*)
99 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
103 fi
104 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
106
107 -enable-* | --enable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 case "$ac_option" in
115 *=*) ;;
116 *) ac_optarg=yes ;;
117 esac
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
119
120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
122 | --exec | --exe | --ex)
123 ac_prev=exec_prefix ;;
124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
126 | --exec=* | --exe=* | --ex=*)
127 exec_prefix="$ac_optarg" ;;
128
129 -gas | --gas | --ga | --g)
130 # Obsolete; use --with-gas.
131 with_gas=yes ;;
132
133 -help | --help | --hel | --he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
136 cat << EOF
137Usage: configure [options] [host]
138Options: [defaults in brackets after descriptions]
139Configuration:
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
147 [$ac_default_prefix]
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
149 [same as prefix]
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
154 [PREFIX/share]
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
157 [PREFIX/com]
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
169EOF
170 cat << EOF
171Host type:
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
182EOF
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
185 fi
186 exit 0 ;;
187
188 -host | --host | --hos | --ho)
189 ac_prev=host ;;
190 -host=* | --host=* | --hos=* | --ho=*)
191 host="$ac_optarg" ;;
192
193 -includedir | --includedir | --includedi | --included | --include \
194 | --includ | --inclu | --incl | --inc)
195 ac_prev=includedir ;;
196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
197 | --includ=* | --inclu=* | --incl=* | --inc=*)
198 includedir="$ac_optarg" ;;
199
200 -infodir | --infodir | --infodi | --infod | --info | --inf)
201 ac_prev=infodir ;;
202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
203 infodir="$ac_optarg" ;;
204
205 -libdir | --libdir | --libdi | --libd)
206 ac_prev=libdir ;;
207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
208 libdir="$ac_optarg" ;;
209
210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
211 | --libexe | --libex | --libe)
212 ac_prev=libexecdir ;;
213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
214 | --libexe=* | --libex=* | --libe=*)
215 libexecdir="$ac_optarg" ;;
216
217 -localstatedir | --localstatedir | --localstatedi | --localstated \
218 | --localstate | --localstat | --localsta | --localst \
219 | --locals | --local | --loca | --loc | --lo)
220 ac_prev=localstatedir ;;
221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
222 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
223 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
224 localstatedir="$ac_optarg" ;;
225
226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
227 ac_prev=mandir ;;
228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
229 mandir="$ac_optarg" ;;
230
231 -nfp | --nfp | --nf)
232 # Obsolete; use --without-fp.
233 with_fp=no ;;
234
235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
236 | --no-cr | --no-c)
237 no_create=yes ;;
238
239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
241 no_recursion=yes ;;
242
243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
245 | --oldin | --oldi | --old | --ol | --o)
246 ac_prev=oldincludedir ;;
247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
250 oldincludedir="$ac_optarg" ;;
251
252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
253 ac_prev=prefix ;;
254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
255 prefix="$ac_optarg" ;;
256
257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
258 | --program-pre | --program-pr | --program-p)
259 ac_prev=program_prefix ;;
260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
262 program_prefix="$ac_optarg" ;;
263
264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
265 | --program-suf | --program-su | --program-s)
266 ac_prev=program_suffix ;;
267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
269 program_suffix="$ac_optarg" ;;
270
271 -program-transform-name | --program-transform-name \
272 | --program-transform-nam | --program-transform-na \
273 | --program-transform-n | --program-transform- \
274 | --program-transform | --program-transfor \
275 | --program-transfo | --program-transf \
276 | --program-trans | --program-tran \
277 | --progr-tra | --program-tr | --program-t)
278 ac_prev=program_transform_name ;;
279 -program-transform-name=* | --program-transform-name=* \
280 | --program-transform-nam=* | --program-transform-na=* \
281 | --program-transform-n=* | --program-transform-=* \
282 | --program-transform=* | --program-transfor=* \
283 | --program-transfo=* | --program-transf=* \
284 | --program-trans=* | --program-tran=* \
285 | --progr-tra=* | --program-tr=* | --program-t=*)
286 program_transform_name="$ac_optarg" ;;
287
288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
289 | -silent | --silent | --silen | --sile | --sil)
290 silent=yes ;;
291
292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
293 ac_prev=sbindir ;;
294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
295 | --sbi=* | --sb=*)
296 sbindir="$ac_optarg" ;;
297
298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
300 | --sharedst | --shareds | --shared | --share | --shar \
301 | --sha | --sh)
302 ac_prev=sharedstatedir ;;
303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
306 | --sha=* | --sh=*)
307 sharedstatedir="$ac_optarg" ;;
308
309 -site | --site | --sit)
310 ac_prev=site ;;
311 -site=* | --site=* | --sit=*)
312 site="$ac_optarg" ;;
313
314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
315 ac_prev=srcdir ;;
316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
317 srcdir="$ac_optarg" ;;
318
319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
320 | --syscon | --sysco | --sysc | --sys | --sy)
321 ac_prev=sysconfdir ;;
322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
324 sysconfdir="$ac_optarg" ;;
325
326 -target | --target | --targe | --targ | --tar | --ta | --t)
327 ac_prev=target ;;
328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
329 target="$ac_optarg" ;;
330
331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
332 verbose=yes ;;
333
334 -version | --version | --versio | --versi | --vers)
335 echo "configure generated by autoconf version 2.12"
336 exit 0 ;;
337
338 -with-* | --with-*)
339 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
343 fi
344 ac_package=`echo $ac_package| sed 's/-/_/g'`
345 case "$ac_option" in
346 *=*) ;;
347 *) ac_optarg=yes ;;
348 esac
349 eval "with_${ac_package}='$ac_optarg'" ;;
350
351 -without-* | --without-*)
352 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356 fi
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
359
360 --x)
361 # Obsolete; use --with-x.
362 with_x=yes ;;
363
364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
365 | --x-incl | --x-inc | --x-in | --x-i)
366 ac_prev=x_includes ;;
367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
369 x_includes="$ac_optarg" ;;
370
371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
373 ac_prev=x_libraries ;;
374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
376 x_libraries="$ac_optarg" ;;
377
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
379 ;;
380
381 *)
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
384 fi
385 if test "x$nonopt" != xNONE; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
387 fi
388 nonopt="$ac_option"
389 ;;
390
391 esac
392done
393
394if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396fi
397
398trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
399
400# File descriptor usage:
401# 0 standard input
402# 1 file creation
403# 2 errors and warnings
404# 3 some systems may open it to /dev/tty
405# 4 used on the Kubota Titan
406# 6 checking for... messages and results
407# 5 compiler messages saved in config.log
408if test "$silent" = yes; then
409 exec 6>/dev/null
410else
411 exec 6>&1
412fi
413exec 5>./config.log
414
415echo "\
416This file contains any messages produced by compilers while
417running configure, to aid debugging if configure makes a mistake.
418" 1>&5
419
420# Strip out --no-create and --no-recursion so they do not pile up.
421# Also quote any args containing shell metacharacters.
422ac_configure_args=
423for ac_arg
424do
425 case "$ac_arg" in
426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
427 | --no-cr | --no-c) ;;
428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
433 esac
434done
435
436# NLS nuisances.
437# Only set these to C if already set. These must not be set unconditionally
438# because not all systems understand e.g. LANG=C (notably SCO).
439# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440# Non-C LC_CTYPE values break the ctype check.
441if test "${LANG+set}" = set; then LANG=C; export LANG; fi
442if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
443if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
444if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
445
446# confdefs.h avoids OS command line length limits that DEFS can exceed.
447rm -rf conftest* confdefs.h
448# AIX cpp loses on an empty file, so make sure it contains at least a newline.
449echo > confdefs.h
450
451# A filename unique to this package, relative to the directory that
452# configure is in, which we can look for to find out if srcdir is correct.
453ac_unique_file=popt.h
454
455# Find the source files, if location was not specified.
456if test -z "$srcdir"; then
457 ac_srcdir_defaulted=yes
458 # Try the directory containing this script, then its parent.
459 ac_prog=$0
460 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
462 srcdir=$ac_confdir
463 if test ! -r $srcdir/$ac_unique_file; then
464 srcdir=..
465 fi
466else
467 ac_srcdir_defaulted=no
468fi
469if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 else
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
474 fi
475fi
476srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477
478# Prefer explicitly selected file to automatically selected ones.
479if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE; then
481 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
482 else
483 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
484 fi
485fi
486for ac_site_file in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
489 . "$ac_site_file"
490 fi
491done
492
493if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
495 . $cache_file
496else
497 echo "creating cache $cache_file"
498 > $cache_file
499fi
500
501ac_ext=c
502# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503ac_cpp='$CPP $CPPFLAGS'
504ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506cross_compiling=$ac_cv_prog_cc_cross
507
508if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511 ac_n= ac_c='
512' ac_t=' '
513 else
514 ac_n=-n ac_c= ac_t=
515 fi
516else
517 ac_n= ac_c='\c' ac_t=
518fi
519
520
521ac_aux_dir=
522for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
523 if test -f $ac_dir/install-sh; then
524 ac_aux_dir=$ac_dir
525 ac_install_sh="$ac_aux_dir/install-sh -c"
526 break
527 elif test -f $ac_dir/install.sh; then
528 ac_aux_dir=$ac_dir
529 ac_install_sh="$ac_aux_dir/install.sh -c"
530 break
531 fi
532done
533if test -z "$ac_aux_dir"; then
534 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
535fi
536ac_config_guess=$ac_aux_dir/config.guess
537ac_config_sub=$ac_aux_dir/config.sub
538ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
539
540# Find a good install program. We prefer a C program (faster),
541# so one script is as good as another. But avoid the broken or
542# incompatible versions:
543# SysV /etc/install, /usr/sbin/install
544# SunOS /usr/etc/install
545# IRIX /sbin/install
546# AIX /bin/install
547# AFS /usr/afsws/bin/install, which mishandles nonexistent args
548# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
549# ./install, which can be erroneously created by make from ./install.sh.
550echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
551echo "configure:552: checking for a BSD compatible install" >&5
552if test -z "$INSTALL"; then
553if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
555else
556 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
557 for ac_dir in $PATH; do
558 # Account for people who put trailing slashes in PATH elements.
559 case "$ac_dir/" in
560 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
561 *)
562 # OSF1 and SCO ODT 3.0 have their own names for install.
563 for ac_prog in ginstall installbsd scoinst install; do
564 if test -f $ac_dir/$ac_prog; then
565 if test $ac_prog = install &&
566 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
567 # AIX install. It has an incompatible calling convention.
568 # OSF/1 installbsd also uses dspmsg, but is usable.
569 :
570 else
571 ac_cv_path_install="$ac_dir/$ac_prog -c"
572 break 2
573 fi
574 fi
575 done
576 ;;
577 esac
578 done
579 IFS="$ac_save_IFS"
580
581fi
582 if test "${ac_cv_path_install+set}" = set; then
583 INSTALL="$ac_cv_path_install"
584 else
585 # As a last resort, use the slow shell script. We don't cache a
586 # path for INSTALL within a source directory, because that will
587 # break other packages using the cache if that directory is
588 # removed, or if the path is relative.
589 INSTALL="$ac_install_sh"
590 fi
591fi
592echo "$ac_t""$INSTALL" 1>&6
593
594# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
595# It thinks the first close brace ends the variable substitution.
596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
597
598test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
599
600
601test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
602
603echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
604echo "configure:605: checking whether build environment is sane" >&5
605# Just in case
606sleep 1
607echo timestamp > conftestfile
608# Do `set' in a subshell so we don't clobber the current shell's
609# arguments. Must try -L first in case configure is actually a
610# symlink; some systems play weird games with the mod time of symlinks
611# (eg FreeBSD returns the mod time of the symlink's containing
612# directory).
613if (
614 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
615 if test "$*" = "X"; then
616 # -L didn't work.
617 set X `ls -t $srcdir/configure conftestfile`
618 fi
619 if test "$*" != "X $srcdir/configure conftestfile" \
620 && test "$*" != "X conftestfile $srcdir/configure"; then
621
622 # If neither matched, then we have a broken ls. This can happen
623 # if, for instance, CONFIG_SHELL is bash and it inherits a
624 # broken ls alias from the environment. This has actually
625 # happened. Such a system could not be considered "sane".
626 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
627alias in your environment" 1>&2; exit 1; }
628 fi
629
630 test "$2" = conftestfile
631 )
632then
633 # Ok.
634 :
635else
636 { echo "configure: error: newly created file is older than distributed files!
637Check your system clock" 1>&2; exit 1; }
638fi
639rm -f conftest*
640echo "$ac_t""yes" 1>&6
641if test "$program_transform_name" = s,x,x,; then
642 program_transform_name=
643else
644 # Double any \ or $. echo might interpret backslashes.
645 cat <<\EOF_SED > conftestsed
646s,\\,\\\\,g; s,\$,$$,g
647EOF_SED
648 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
649 rm -f conftestsed
650fi
651test "$program_prefix" != NONE &&
652 program_transform_name="s,^,${program_prefix},; $program_transform_name"
653# Use a double $ so make ignores it.
654test "$program_suffix" != NONE &&
655 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
656
657# sed with no file args requires a program.
658test "$program_transform_name" = "" && program_transform_name="s,x,x,"
659
660echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
661echo "configure:662: checking whether ${MAKE-make} sets \${MAKE}" >&5
662set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
663if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665else
666 cat > conftestmake <<\EOF
667all:
668 @echo 'ac_maketemp="${MAKE}"'
669EOF
670# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
671eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
672if test -n "$ac_maketemp"; then
673 eval ac_cv_prog_make_${ac_make}_set=yes
674else
675 eval ac_cv_prog_make_${ac_make}_set=no
676fi
677rm -f conftestmake
678fi
679if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
680 echo "$ac_t""yes" 1>&6
681 SET_MAKE=
682else
683 echo "$ac_t""no" 1>&6
684 SET_MAKE="MAKE=${MAKE-make}"
685fi
686
687
688PACKAGE=popt
689
690VERSION=1.2
691
692if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
693 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
694fi
695cat >> confdefs.h <<EOF
696#define PACKAGE "$PACKAGE"
697EOF
698
699cat >> confdefs.h <<EOF
700#define VERSION "$VERSION"
701EOF
702
703
704
705missing_dir=`cd $ac_aux_dir && pwd`
706echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
707echo "configure:708: checking for working aclocal" >&5
708# Run test in a subshell; some versions of sh will print an error if
709# an executable is not found, even if stderr is redirected.
710# Redirect stdin to placate older versions of autoconf. Sigh.
711if (aclocal --version) < /dev/null > /dev/null 2>&1; then
712 ACLOCAL=aclocal
713 echo "$ac_t""found" 1>&6
714else
715 ACLOCAL="$missing_dir/missing aclocal"
716 echo "$ac_t""missing" 1>&6
717fi
718
719echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
720echo "configure:721: checking for working autoconf" >&5
721# Run test in a subshell; some versions of sh will print an error if
722# an executable is not found, even if stderr is redirected.
723# Redirect stdin to placate older versions of autoconf. Sigh.
724if (autoconf --version) < /dev/null > /dev/null 2>&1; then
725 AUTOCONF=autoconf
726 echo "$ac_t""found" 1>&6
727else
728 AUTOCONF="$missing_dir/missing autoconf"
729 echo "$ac_t""missing" 1>&6
730fi
731
732echo $ac_n "checking for working automake""... $ac_c" 1>&6
733echo "configure:734: checking for working automake" >&5
734# Run test in a subshell; some versions of sh will print an error if
735# an executable is not found, even if stderr is redirected.
736# Redirect stdin to placate older versions of autoconf. Sigh.
737if (automake --version) < /dev/null > /dev/null 2>&1; then
738 AUTOMAKE=automake
739 echo "$ac_t""found" 1>&6
740else
741 AUTOMAKE="$missing_dir/missing automake"
742 echo "$ac_t""missing" 1>&6
743fi
744
745echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
746echo "configure:747: checking for working autoheader" >&5
747# Run test in a subshell; some versions of sh will print an error if
748# an executable is not found, even if stderr is redirected.
749# Redirect stdin to placate older versions of autoconf. Sigh.
750if (autoheader --version) < /dev/null > /dev/null 2>&1; then
751 AUTOHEADER=autoheader
752 echo "$ac_t""found" 1>&6
753else
754 AUTOHEADER="$missing_dir/missing autoheader"
755 echo "$ac_t""missing" 1>&6
756fi
757
758echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
759echo "configure:760: checking for working makeinfo" >&5
760# Run test in a subshell; some versions of sh will print an error if
761# an executable is not found, even if stderr is redirected.
762# Redirect stdin to placate older versions of autoconf. Sigh.
763if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
764 MAKEINFO=makeinfo
765 echo "$ac_t""found" 1>&6
766else
767 MAKEINFO="$missing_dir/missing makeinfo"
768 echo "$ac_t""missing" 1>&6
769fi
770
771
772
773
774
775
776# Extract the first word of "gcc", so it can be a program name with args.
777set dummy gcc; ac_word=$2
778echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
779echo "configure:780: checking for $ac_word" >&5
780if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
782else
783 if test -n "$CC"; then
784 ac_cv_prog_CC="$CC" # Let the user override the test.
785else
786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
787 for ac_dir in $PATH; do
788 test -z "$ac_dir" && ac_dir=.
789 if test -f $ac_dir/$ac_word; then
790 ac_cv_prog_CC="gcc"
791 break
792 fi
793 done
794 IFS="$ac_save_ifs"
795fi
796fi
797CC="$ac_cv_prog_CC"
798if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
800else
801 echo "$ac_t""no" 1>&6
802fi
803
804if test -z "$CC"; then
805 # Extract the first word of "cc", so it can be a program name with args.
806set dummy cc; ac_word=$2
807echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808echo "configure:809: checking for $ac_word" >&5
809if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
811else
812 if test -n "$CC"; then
813 ac_cv_prog_CC="$CC" # Let the user override the test.
814else
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816 ac_prog_rejected=no
817 for ac_dir in $PATH; do
818 test -z "$ac_dir" && ac_dir=.
819 if test -f $ac_dir/$ac_word; then
820 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
821 ac_prog_rejected=yes
822 continue
823 fi
824 ac_cv_prog_CC="cc"
825 break
826 fi
827 done
828 IFS="$ac_save_ifs"
829if test $ac_prog_rejected = yes; then
830 # We found a bogon in the path, so make sure we never use it.
831 set dummy $ac_cv_prog_CC
832 shift
833 if test $# -gt 0; then
834 # We chose a different compiler from the bogus one.
835 # However, it has the same basename, so the bogon will be chosen
836 # first if we set CC to just the basename; use the full file name.
837 shift
838 set dummy "$ac_dir/$ac_word" "$@"
839 shift
840 ac_cv_prog_CC="$@"
841 fi
842fi
843fi
844fi
845CC="$ac_cv_prog_CC"
846if test -n "$CC"; then
847 echo "$ac_t""$CC" 1>&6
848else
849 echo "$ac_t""no" 1>&6
850fi
851
852 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
853fi
854
855echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
856echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
857
858ac_ext=c
859# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
860ac_cpp='$CPP $CPPFLAGS'
861ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
862ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
863cross_compiling=$ac_cv_prog_cc_cross
864
865cat > conftest.$ac_ext <<EOF
866#line 867 "configure"
867#include "confdefs.h"
868main(){return(0);}
869EOF
870if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
871 ac_cv_prog_cc_works=yes
872 # If we can't run a trivial program, we are probably using a cross compiler.
873 if (./conftest; exit) 2>/dev/null; then
874 ac_cv_prog_cc_cross=no
875 else
876 ac_cv_prog_cc_cross=yes
877 fi
878else
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 ac_cv_prog_cc_works=no
882fi
883rm -fr conftest*
884
885echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
886if test $ac_cv_prog_cc_works = no; then
887 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
888fi
889echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
890echo "configure:891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
891echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
892cross_compiling=$ac_cv_prog_cc_cross
893
894echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
895echo "configure:896: checking whether we are using GNU C" >&5
896if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
898else
899 cat > conftest.c <<EOF
900#ifdef __GNUC__
901 yes;
902#endif
903EOF
904if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
905 ac_cv_prog_gcc=yes
906else
907 ac_cv_prog_gcc=no
908fi
909fi
910
911echo "$ac_t""$ac_cv_prog_gcc" 1>&6
912
913if test $ac_cv_prog_gcc = yes; then
914 GCC=yes
915 ac_test_CFLAGS="${CFLAGS+set}"
916 ac_save_CFLAGS="$CFLAGS"
917 CFLAGS=
918 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
919echo "configure:920: checking whether ${CC-cc} accepts -g" >&5
920if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
922else
923 echo 'void f(){}' > conftest.c
924if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
925 ac_cv_prog_cc_g=yes
926else
927 ac_cv_prog_cc_g=no
928fi
929rm -f conftest*
930
931fi
932
933echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
934 if test "$ac_test_CFLAGS" = set; then
935 CFLAGS="$ac_save_CFLAGS"
936 elif test $ac_cv_prog_cc_g = yes; then
937 CFLAGS="-g -O2"
938 else
939 CFLAGS="-O2"
940 fi
941else
942 GCC=
943 test "${CFLAGS+set}" = set || CFLAGS="-g"
944fi
945
946echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
947echo "configure:948: checking how to run the C preprocessor" >&5
948# On Suns, sometimes $CPP names a directory.
949if test -n "$CPP" && test -d "$CPP"; then
950 CPP=
951fi
952if test -z "$CPP"; then
953if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
955else
956 # This must be in double quotes, not single quotes, because CPP may get
957 # substituted into the Makefile and "${CC-cc}" will confuse make.
958 CPP="${CC-cc} -E"
959 # On the NeXT, cc -E runs the code through the compiler's parser,
960 # not just through cpp.
961 cat > conftest.$ac_ext <<EOF
962#line 963 "configure"
963#include "confdefs.h"
964#include <assert.h>
965Syntax Error
966EOF
967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
968{ (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
969ac_err=`grep -v '^ *+' conftest.out`
970if test -z "$ac_err"; then
971 :
972else
973 echo "$ac_err" >&5
974 echo "configure: failed program was:" >&5
975 cat conftest.$ac_ext >&5
976 rm -rf conftest*
977 CPP="${CC-cc} -E -traditional-cpp"
978 cat > conftest.$ac_ext <<EOF
979#line 980 "configure"
980#include "confdefs.h"
981#include <assert.h>
982Syntax Error
983EOF
984ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
985{ (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
986ac_err=`grep -v '^ *+' conftest.out`
987if test -z "$ac_err"; then
988 :
989else
990 echo "$ac_err" >&5
991 echo "configure: failed program was:" >&5
992 cat conftest.$ac_ext >&5
993 rm -rf conftest*
994 CPP=/lib/cpp
995fi
996rm -f conftest*
997fi
998rm -f conftest*
999 ac_cv_prog_CPP="$CPP"
1000fi
1001 CPP="$ac_cv_prog_CPP"
1002else
1003 ac_cv_prog_CPP="$CPP"
1004fi
1005echo "$ac_t""$CPP" 1>&6
1006
1007if test $ac_cv_prog_gcc = yes; then
1008 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1009echo "configure:1010: checking whether ${CC-cc} needs -traditional" >&5
1010if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1012else
1013 ac_pattern="Autoconf.*'x'"
1014 cat > conftest.$ac_ext <<EOF
1015#line 1016 "configure"
1016#include "confdefs.h"
1017#include <sgtty.h>
1018Autoconf TIOCGETP
1019EOF
1020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1021 egrep "$ac_pattern" >/dev/null 2>&1; then
1022 rm -rf conftest*
1023 ac_cv_prog_gcc_traditional=yes
1024else
1025 rm -rf conftest*
1026 ac_cv_prog_gcc_traditional=no
1027fi
1028rm -f conftest*
1029
1030
1031 if test $ac_cv_prog_gcc_traditional = no; then
1032 cat > conftest.$ac_ext <<EOF
1033#line 1034 "configure"
1034#include "confdefs.h"
1035#include <termio.h>
1036Autoconf TCGETA
1037EOF
1038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1039 egrep "$ac_pattern" >/dev/null 2>&1; then
1040 rm -rf conftest*
1041 ac_cv_prog_gcc_traditional=yes
1042fi
1043rm -f conftest*
1044
1045 fi
1046fi
1047
1048echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1049 if test $ac_cv_prog_gcc_traditional = yes; then
1050 CC="$CC -traditional"
1051 fi
1052fi
1053
1054
1055
1056
1057echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1058echo "configure:1059: checking for ${CC-cc} option to accept ANSI C" >&5
1059if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061else
1062 am_cv_prog_cc_stdc=no
1063ac_save_CC="$CC"
1064# Don't try gcc -ansi; that turns off useful extensions and
1065# breaks some systems' header files.
1066# AIX -qlanglvl=ansi
1067# Ultrix and OSF/1 -std1
1068# HP-UX -Aa -D_HPUX_SOURCE
1069# SVR4 -Xc -D__EXTENSIONS__
1070for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1071do
1072 CC="$ac_save_CC $ac_arg"
1073 cat > conftest.$ac_ext <<EOF
1074#line 1075 "configure"
1075#include "confdefs.h"
1076#include <stdarg.h>
1077#include <stdio.h>
1078#include <sys/types.h>
1079#include <sys/stat.h>
1080/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1081struct buf { int x; };
1082FILE * (*rcsopen) (struct buf *, struct stat *, int);
1083static char *e (p, i)
1084 char **p;
1085 int i;
1086{
1087 return p[i];
1088}
1089static char *f (char * (*g) (char **, int), char **p, ...)
1090{
1091 char *s;
1092 va_list v;
1093 va_start (v,p);
1094 s = g (p, va_arg (v,int));
1095 va_end (v);
1096 return s;
1097}
1098int test (int i, double x);
1099struct s1 {int (*f) (int a);};
1100struct s2 {int (*f) (double a);};
1101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1102int argc;
1103char **argv;
1104
1105int main() {
1106
1107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1108
1109; return 0; }
1110EOF
1111if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1112 rm -rf conftest*
1113 am_cv_prog_cc_stdc="$ac_arg"; break
1114else
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1117fi
1118rm -f conftest*
1119done
1120CC="$ac_save_CC"
1121
1122fi
1123
1124if test -z "$am_cv_prog_cc_stdc"; then
1125 echo "$ac_t""none needed" 1>&6
1126else
1127 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1128fi
1129case "x$am_cv_prog_cc_stdc" in
1130 x|xno) ;;
1131 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1132esac
1133
1134
1135
1136echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1137echo "configure:1138: checking for function prototypes" >&5
1138if test "$am_cv_prog_cc_stdc" != no; then
1139 echo "$ac_t""yes" 1>&6
1140 cat >> confdefs.h <<\EOF
1141#define PROTOTYPES 1
1142EOF
1143
1144 U= ANSI2KNR=
1145else
1146 echo "$ac_t""no" 1>&6
1147 U=_ ANSI2KNR=./ansi2knr
1148 # Ensure some checks needed by ansi2knr itself.
1149 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1150echo "configure:1151: checking for ANSI C header files" >&5
1151if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153else
1154 cat > conftest.$ac_ext <<EOF
1155#line 1156 "configure"
1156#include "confdefs.h"
1157#include <stdlib.h>
1158#include <stdarg.h>
1159#include <string.h>
1160#include <float.h>
1161EOF
1162ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1163{ (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1164ac_err=`grep -v '^ *+' conftest.out`
1165if test -z "$ac_err"; then
1166 rm -rf conftest*
1167 ac_cv_header_stdc=yes
1168else
1169 echo "$ac_err" >&5
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1172 rm -rf conftest*
1173 ac_cv_header_stdc=no
1174fi
1175rm -f conftest*
1176
1177if test $ac_cv_header_stdc = yes; then
1178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1179cat > conftest.$ac_ext <<EOF
1180#line 1181 "configure"
1181#include "confdefs.h"
1182#include <string.h>
1183EOF
1184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1185 egrep "memchr" >/dev/null 2>&1; then
1186 :
1187else
1188 rm -rf conftest*
1189 ac_cv_header_stdc=no
1190fi
1191rm -f conftest*
1192
1193fi
1194
1195if test $ac_cv_header_stdc = yes; then
1196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1197cat > conftest.$ac_ext <<EOF
1198#line 1199 "configure"
1199#include "confdefs.h"
1200#include <stdlib.h>
1201EOF
1202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1203 egrep "free" >/dev/null 2>&1; then
1204 :
1205else
1206 rm -rf conftest*
1207 ac_cv_header_stdc=no
1208fi
1209rm -f conftest*
1210
1211fi
1212
1213if test $ac_cv_header_stdc = yes; then
1214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1215if test "$cross_compiling" = yes; then
1216 :
1217else
1218 cat > conftest.$ac_ext <<EOF
1219#line 1220 "configure"
1220#include "confdefs.h"
1221#include <ctype.h>
1222#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1223#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1225int main () { int i; for (i = 0; i < 256; i++)
1226if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1227exit (0); }
1228
1229EOF
1230if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1231then
1232 :
1233else
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1236 rm -fr conftest*
1237 ac_cv_header_stdc=no
1238fi
1239rm -fr conftest*
1240fi
1241
1242fi
1243fi
1244
1245echo "$ac_t""$ac_cv_header_stdc" 1>&6
1246if test $ac_cv_header_stdc = yes; then
1247 cat >> confdefs.h <<\EOF
1248#define STDC_HEADERS 1
1249EOF
1250
1251fi
1252
1253 for ac_hdr in string.h
1254do
1255ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1256echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1257echo "configure:1258: checking for $ac_hdr" >&5
1258if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1260else
1261 cat > conftest.$ac_ext <<EOF
1262#line 1263 "configure"
1263#include "confdefs.h"
1264#include <$ac_hdr>
1265EOF
1266ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267{ (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268ac_err=`grep -v '^ *+' conftest.out`
1269if test -z "$ac_err"; then
1270 rm -rf conftest*
1271 eval "ac_cv_header_$ac_safe=yes"
1272else
1273 echo "$ac_err" >&5
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1276 rm -rf conftest*
1277 eval "ac_cv_header_$ac_safe=no"
1278fi
1279rm -f conftest*
1280fi
1281if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1284 cat >> confdefs.h <<EOF
1285#define $ac_tr_hdr 1
1286EOF
1287
1288else
1289 echo "$ac_t""no" 1>&6
1290fi
1291done
1292
1293fi
1294
1295
1296# Extract the first word of "ranlib", so it can be a program name with args.
1297set dummy ranlib; ac_word=$2
1298echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299echo "configure:1300: checking for $ac_word" >&5
1300if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1302else
1303 if test -n "$RANLIB"; then
1304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1305else
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1307 for ac_dir in $PATH; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="ranlib"
1311 break
1312 fi
1313 done
1314 IFS="$ac_save_ifs"
1315 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1316fi
1317fi
1318RANLIB="$ac_cv_prog_RANLIB"
1319if test -n "$RANLIB"; then
1320 echo "$ac_t""$RANLIB" 1>&6
1321else
1322 echo "$ac_t""no" 1>&6
1323fi
1324
1325# Find a good install program. We prefer a C program (faster),
1326# so one script is as good as another. But avoid the broken or
1327# incompatible versions:
1328# SysV /etc/install, /usr/sbin/install
1329# SunOS /usr/etc/install
1330# IRIX /sbin/install
1331# AIX /bin/install
1332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1334# ./install, which can be erroneously created by make from ./install.sh.
1335echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1336echo "configure:1337: checking for a BSD compatible install" >&5
1337if test -z "$INSTALL"; then
1338if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1342 for ac_dir in $PATH; do
1343 # Account for people who put trailing slashes in PATH elements.
1344 case "$ac_dir/" in
1345 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1346 *)
1347 # OSF1 and SCO ODT 3.0 have their own names for install.
1348 for ac_prog in ginstall installbsd scoinst install; do
1349 if test -f $ac_dir/$ac_prog; then
1350 if test $ac_prog = install &&
1351 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1352 # AIX install. It has an incompatible calling convention.
1353 # OSF/1 installbsd also uses dspmsg, but is usable.
1354 :
1355 else
1356 ac_cv_path_install="$ac_dir/$ac_prog -c"
1357 break 2
1358 fi
1359 fi
1360 done
1361 ;;
1362 esac
1363 done
1364 IFS="$ac_save_IFS"
1365
1366fi
1367 if test "${ac_cv_path_install+set}" = set; then
1368 INSTALL="$ac_cv_path_install"
1369 else
1370 # As a last resort, use the slow shell script. We don't cache a
1371 # path for INSTALL within a source directory, because that will
1372 # break other packages using the cache if that directory is
1373 # removed, or if the path is relative.
1374 INSTALL="$ac_install_sh"
1375 fi
1376fi
1377echo "$ac_t""$INSTALL" 1>&6
1378
1379# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1380# It thinks the first close brace ends the variable substitution.
1381test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1382
1383test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1384
1385
1386if test $CC = gcc; then
1387 CFLAGS="-Wall $CFLAGS"
1388fi
1389addlib() {
1390 l=$1
1391 shift
1392 case "$target" in
1393 *-*-solaris*) LIBS="$LIBS -L$l -R $l $*";;
1394 *) LIBS="$LIBS -L$l $*";;
1395 esac
1396}
1397
1398if test X"$GCC" = Xyes ; then
1399 TARGET="depend allprogs"
1400else
1401 TARGET="everything"
1402 #
1403 # let the Makefile know that we're done with `depend', since we don't
1404 # have gcc we're not going to rebuild our dependencies at all.
1405 #
1406 echo > .depend-done
1407fi
1408
1409
1410for ac_hdr in unistd.h alloca.h libintl.h
1411do
1412ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1413echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1414echo "configure:1415: checking for $ac_hdr" >&5
1415if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1417else
1418 cat > conftest.$ac_ext <<EOF
1419#line 1420 "configure"
1420#include "confdefs.h"
1421#include <$ac_hdr>
1422EOF
1423ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424{ (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425ac_err=`grep -v '^ *+' conftest.out`
1426if test -z "$ac_err"; then
1427 rm -rf conftest*
1428 eval "ac_cv_header_$ac_safe=yes"
1429else
1430 echo "$ac_err" >&5
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1433 rm -rf conftest*
1434 eval "ac_cv_header_$ac_safe=no"
1435fi
1436rm -f conftest*
1437fi
1438if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1439 echo "$ac_t""yes" 1>&6
1440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1441 cat >> confdefs.h <<EOF
1442#define $ac_tr_hdr 1
1443EOF
1444
1445else
1446 echo "$ac_t""no" 1>&6
1447fi
1448done
1449
1450echo $ac_n "checking for /usr/ucblib in LIBS""... $ac_c" 1>&6
1451echo "configure:1452: checking for /usr/ucblib in LIBS" >&5
1452if test -d /usr/ucblib ; then
1453 if test "$build" = "mips-sni-sysv4" ; then
1454 addlib /usr/ccs/lib -lc
1455 fi
1456
1457 addlib /usr/ucblib
1458
1459 echo "$ac_t""yes" 1>&6
1460else
1461 echo "$ac_t""no" 1>&6
1462fi
1463
1464for ac_func in strerror
1465do
1466echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1467echo "configure:1468: checking for $ac_func" >&5
1468if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470else
1471 cat > conftest.$ac_ext <<EOF
1472#line 1473 "configure"
1473#include "confdefs.h"
1474/* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char $ac_func(); below. */
1476#include <assert.h>
1477/* Override any gcc2 internal prototype to avoid an error. */
1478/* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1480char $ac_func();
1481
1482int main() {
1483
1484/* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1488choke me
1489#else
1490$ac_func();
1491#endif
1492
1493; return 0; }
1494EOF
1495if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1496 rm -rf conftest*
1497 eval "ac_cv_func_$ac_func=yes"
1498else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_func_$ac_func=no"
1503fi
1504rm -f conftest*
1505fi
1506
1507if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1510 cat >> confdefs.h <<EOF
1511#define $ac_tr_func 1
1512EOF
1513
1514else
1515 echo "$ac_t""no" 1>&6
1516fi
1517done
1518
1519for ac_func in gettext
1520do
1521echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1522echo "configure:1523: checking for $ac_func" >&5
1523if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525else
1526 cat > conftest.$ac_ext <<EOF
1527#line 1528 "configure"
1528#include "confdefs.h"
1529/* System header to define __stub macros and hopefully few prototypes,
1530 which can conflict with char $ac_func(); below. */
1531#include <assert.h>
1532/* Override any gcc2 internal prototype to avoid an error. */
1533/* We use char because int might match the return type of a gcc2
1534 builtin and then its argument prototype would still apply. */
1535char $ac_func();
1536
1537int main() {
1538
1539/* The GNU C library defines this for functions which it implements
1540 to always fail with ENOSYS. Some functions are actually named
1541 something starting with __ and the normal name is an alias. */
1542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1543choke me
1544#else
1545$ac_func();
1546#endif
1547
1548; return 0; }
1549EOF
1550if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1551 rm -rf conftest*
1552 eval "ac_cv_func_$ac_func=yes"
1553else
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1556 rm -rf conftest*
1557 eval "ac_cv_func_$ac_func=no"
1558fi
1559rm -f conftest*
1560fi
1561
1562if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1563 echo "$ac_t""yes" 1>&6
1564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1565 cat >> confdefs.h <<EOF
1566#define $ac_tr_func 1
1567EOF
1568
1569else
1570 echo "$ac_t""no" 1>&6
1571fi
1572done
1573
1574for ac_func in dgettext
1575do
1576echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1577echo "configure:1578: checking for $ac_func" >&5
1578if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1580else
1581 cat > conftest.$ac_ext <<EOF
1582#line 1583 "configure"
1583#include "confdefs.h"
1584/* System header to define __stub macros and hopefully few prototypes,
1585 which can conflict with char $ac_func(); below. */
1586#include <assert.h>
1587/* Override any gcc2 internal prototype to avoid an error. */
1588/* We use char because int might match the return type of a gcc2
1589 builtin and then its argument prototype would still apply. */
1590char $ac_func();
1591
1592int main() {
1593
1594/* The GNU C library defines this for functions which it implements
1595 to always fail with ENOSYS. Some functions are actually named
1596 something starting with __ and the normal name is an alias. */
1597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1598choke me
1599#else
1600$ac_func();
1601#endif
1602
1603; return 0; }
1604EOF
1605if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1606 rm -rf conftest*
1607 eval "ac_cv_func_$ac_func=yes"
1608else
1609 echo "configure: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 rm -rf conftest*
1612 eval "ac_cv_func_$ac_func=no"
1613fi
1614rm -f conftest*
1615fi
1616
1617if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1620 cat >> confdefs.h <<EOF
1621#define $ac_tr_func 1
1622EOF
1623
1624else
1625 echo "$ac_t""no" 1>&6
1626fi
1627done
1628
1629echo $ac_n "checking for setreuid""... $ac_c" 1>&6
1630echo "configure:1631: checking for setreuid" >&5
1631if eval "test \"`echo '$''{'ac_cv_func_setreuid'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1633else
1634 cat > conftest.$ac_ext <<EOF
1635#line 1636 "configure"
1636#include "confdefs.h"
1637/* System header to define __stub macros and hopefully few prototypes,
1638 which can conflict with char setreuid(); below. */
1639#include <assert.h>
1640/* Override any gcc2 internal prototype to avoid an error. */
1641/* We use char because int might match the return type of a gcc2
1642 builtin and then its argument prototype would still apply. */
1643char setreuid();
1644
1645int main() {
1646
1647/* The GNU C library defines this for functions which it implements
1648 to always fail with ENOSYS. Some functions are actually named
1649 something starting with __ and the normal name is an alias. */
1650#if defined (__stub_setreuid) || defined (__stub___setreuid)
1651choke me
1652#else
1653setreuid();
1654#endif
1655
1656; return 0; }
1657EOF
1658if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1659 rm -rf conftest*
1660 eval "ac_cv_func_setreuid=yes"
1661else
1662 echo "configure: failed program was:" >&5
1663 cat conftest.$ac_ext >&5
1664 rm -rf conftest*
1665 eval "ac_cv_func_setreuid=no"
1666fi
1667rm -f conftest*
1668fi
1669
1670if eval "test \"`echo '$ac_cv_func_'setreuid`\" = yes"; then
1671 echo "$ac_t""yes" 1>&6
1672 :
1673else
1674 echo "$ac_t""no" 1>&6
1675
1676 echo $ac_n "checking for setreuid in -lucb""... $ac_c" 1>&6
1677echo "configure:1678: checking for setreuid in -lucb" >&5
1678ac_lib_var=`echo ucb'_'setreuid | sed 'y%./+-%__p_%'`
1679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681else
1682 ac_save_LIBS="$LIBS"
1683LIBS="-lucb $LIBS"
1684cat > conftest.$ac_ext <<EOF
1685#line 1686 "configure"
1686#include "confdefs.h"
1687/* Override any gcc2 internal prototype to avoid an error. */
1688/* We use char because int might match the return type of a gcc2
1689 builtin and then its argument prototype would still apply. */
1690char setreuid();
1691
1692int main() {
1693setreuid()
1694; return 0; }
1695EOF
1696if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1697 rm -rf conftest*
1698 eval "ac_cv_lib_$ac_lib_var=yes"
1699else
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
1703 eval "ac_cv_lib_$ac_lib_var=no"
1704fi
1705rm -f conftest*
1706LIBS="$ac_save_LIBS"
1707
1708fi
1709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
1712else
1713 echo "$ac_t""no" 1>&6
1714fi
1715
1716
1717fi
1718
1719
1720trap '' 1 2 15
1721cat > confcache <<\EOF
1722# This file is a shell script that caches the results of configure
1723# tests run on this system so they can be shared between configure
1724# scripts and configure runs. It is not useful on other systems.
1725# If it contains results you don't want to keep, you may remove or edit it.
1726#
1727# By default, configure uses ./config.cache as the cache file,
1728# creating it if it does not exist already. You can give configure
1729# the --cache-file=FILE option to use a different cache file; that is
1730# what configure does when it calls configure scripts in
1731# subdirectories, so they share the cache.
1732# Giving --cache-file=/dev/null disables caching, for debugging configure.
1733# config.status only pays attention to the cache file if you give it the
1734# --recheck option to rerun configure.
1735#
1736EOF
1737# The following way of writing the cache mishandles newlines in values,
1738# but we know of no workaround that is simple, portable, and efficient.
1739# So, don't put newlines in cache variables' values.
1740# Ultrix sh set writes to stderr and can't be redirected directly,
1741# and sets the high bit in the cache file unless we assign to the vars.
1742(set) 2>&1 |
1743 case `(ac_space=' '; set) 2>&1` in
1744 *ac_space=\ *)
1745 # `set' does not quote correctly, so add quotes (double-quote substitution
1746 # turns \\\\ into \\, and sed turns \\ into \).
1747 sed -n \
1748 -e "s/'/'\\\\''/g" \
1749 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1750 ;;
1751 *)
1752 # `set' quotes correctly as required by POSIX, so do not add quotes.
1753 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1754 ;;
1755 esac >> confcache
1756if cmp -s $cache_file confcache; then
1757 :
1758else
1759 if test -w $cache_file; then
1760 echo "updating cache $cache_file"
1761 cat confcache > $cache_file
1762 else
1763 echo "not updating unwritable cache $cache_file"
1764 fi
1765fi
1766rm -f confcache
1767
1768trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1769
1770test "x$prefix" = xNONE && prefix=$ac_default_prefix
1771# Let make expand exec_prefix.
1772test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1773
1774# Any assignment to VPATH causes Sun make to only execute
1775# the first set of double-colon rules, so remove it if not needed.
1776# If there is a colon in the path, we need to keep it.
1777if test "x$srcdir" = x.; then
1778 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1779fi
1780
1781trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1782
1783DEFS=-DHAVE_CONFIG_H
1784
1785# Without the "./", some shells look in PATH for config.status.
1786: ${CONFIG_STATUS=./config.status}
1787
1788echo creating $CONFIG_STATUS
1789rm -f $CONFIG_STATUS
1790cat > $CONFIG_STATUS <<EOF
1791#! /bin/sh
1792# Generated automatically by configure.
1793# Run this file to recreate the current configuration.
1794# This directory was configured as follows,
1795# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1796#
1797# $0 $ac_configure_args
1798#
1799# Compiler output produced by configure, useful for debugging
1800# configure, is in ./config.log if it exists.
1801
1802ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1803for ac_option
1804do
1805 case "\$ac_option" in
1806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1807 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1808 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1809 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1810 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1811 exit 0 ;;
1812 -help | --help | --hel | --he | --h)
1813 echo "\$ac_cs_usage"; exit 0 ;;
1814 *) echo "\$ac_cs_usage"; exit 1 ;;
1815 esac
1816done
1817
1818ac_given_srcdir=$srcdir
1819ac_given_INSTALL="$INSTALL"
1820
1821trap 'rm -fr `echo "Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1822EOF
1823cat >> $CONFIG_STATUS <<EOF
1824
1825# Protect against being on the right side of a sed subst in config.status.
1826sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1827 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1828$ac_vpsub
1829$extrasub
1830s%@CFLAGS@%$CFLAGS%g
1831s%@CPPFLAGS@%$CPPFLAGS%g
1832s%@CXXFLAGS@%$CXXFLAGS%g
1833s%@DEFS@%$DEFS%g
1834s%@LDFLAGS@%$LDFLAGS%g
1835s%@LIBS@%$LIBS%g
1836s%@exec_prefix@%$exec_prefix%g
1837s%@prefix@%$prefix%g
1838s%@program_transform_name@%$program_transform_name%g
1839s%@bindir@%$bindir%g
1840s%@sbindir@%$sbindir%g
1841s%@libexecdir@%$libexecdir%g
1842s%@datadir@%$datadir%g
1843s%@sysconfdir@%$sysconfdir%g
1844s%@sharedstatedir@%$sharedstatedir%g
1845s%@localstatedir@%$localstatedir%g
1846s%@libdir@%$libdir%g
1847s%@includedir@%$includedir%g
1848s%@oldincludedir@%$oldincludedir%g
1849s%@infodir@%$infodir%g
1850s%@mandir@%$mandir%g
1851s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1852s%@INSTALL_DATA@%$INSTALL_DATA%g
1853s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1854s%@PACKAGE@%$PACKAGE%g
1855s%@VERSION@%$VERSION%g
1856s%@ACLOCAL@%$ACLOCAL%g
1857s%@AUTOCONF@%$AUTOCONF%g
1858s%@AUTOMAKE@%$AUTOMAKE%g
1859s%@AUTOHEADER@%$AUTOHEADER%g
1860s%@MAKEINFO@%$MAKEINFO%g
1861s%@SET_MAKE@%$SET_MAKE%g
1862s%@CC@%$CC%g
1863s%@CPP@%$CPP%g
1864s%@U@%$U%g
1865s%@ANSI2KNR@%$ANSI2KNR%g
1866s%@RANLIB@%$RANLIB%g
1867s%@TARGET@%$TARGET%g
1868
1869CEOF
1870EOF
1871
1872cat >> $CONFIG_STATUS <<\EOF
1873
1874# Split the substitutions into bite-sized pieces for seds with
1875# small command number limits, like on Digital OSF/1 and HP-UX.
1876ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1877ac_file=1 # Number of current file.
1878ac_beg=1 # First line for current file.
1879ac_end=$ac_max_sed_cmds # Line after last line for current file.
1880ac_more_lines=:
1881ac_sed_cmds=""
1882while $ac_more_lines; do
1883 if test $ac_beg -gt 1; then
1884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1885 else
1886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1887 fi
1888 if test ! -s conftest.s$ac_file; then
1889 ac_more_lines=false
1890 rm -f conftest.s$ac_file
1891 else
1892 if test -z "$ac_sed_cmds"; then
1893 ac_sed_cmds="sed -f conftest.s$ac_file"
1894 else
1895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1896 fi
1897 ac_file=`expr $ac_file + 1`
1898 ac_beg=$ac_end
1899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1900 fi
1901done
1902if test -z "$ac_sed_cmds"; then
1903 ac_sed_cmds=cat
1904fi
1905EOF
1906
1907cat >> $CONFIG_STATUS <<EOF
1908
1909CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in"}
1910EOF
1911cat >> $CONFIG_STATUS <<\EOF
1912for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1914 case "$ac_file" in
1915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1917 *) ac_file_in="${ac_file}.in" ;;
1918 esac
1919
1920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1921
1922 # Remove last slash and all that follows it. Not all systems have dirname.
1923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1925 # The file is in a subdirectory.
1926 test ! -d "$ac_dir" && mkdir "$ac_dir"
1927 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1928 # A "../" for each directory in $ac_dir_suffix.
1929 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1930 else
1931 ac_dir_suffix= ac_dots=
1932 fi
1933
1934 case "$ac_given_srcdir" in
1935 .) srcdir=.
1936 if test -z "$ac_dots"; then top_srcdir=.
1937 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1938 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1939 *) # Relative path.
1940 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1941 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1942 esac
1943
1944 case "$ac_given_INSTALL" in
1945 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1946 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1947 esac
1948
1949 echo creating "$ac_file"
1950 rm -f "$ac_file"
1951 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1952 case "$ac_file" in
1953 *Makefile*) ac_comsub="1i\\
1954# $configure_input" ;;
1955 *) ac_comsub= ;;
1956 esac
1957
1958 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1959 sed -e "$ac_comsub
1960s%@configure_input@%$configure_input%g
1961s%@srcdir@%$srcdir%g
1962s%@top_srcdir@%$top_srcdir%g
1963s%@INSTALL@%$INSTALL%g
1964" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1965fi; done
1966rm -f conftest.s*
1967
1968# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1969# NAME is the cpp macro being defined and VALUE is the value it is being given.
1970#
1971# ac_d sets the value in "#define NAME VALUE" lines.
1972ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1973ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1974ac_dC='\3'
1975ac_dD='%g'
1976# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1977ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1978ac_uB='\([ ]\)%\1#\2define\3'
1979ac_uC=' '
1980ac_uD='\4%g'
1981# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1982ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1983ac_eB='$%\1#\2define\3'
1984ac_eC=' '
1985ac_eD='%g'
1986
1987if test "${CONFIG_HEADERS+set}" != set; then
1988EOF
1989cat >> $CONFIG_STATUS <<EOF
1990 CONFIG_HEADERS="config.h"
1991EOF
1992cat >> $CONFIG_STATUS <<\EOF
1993fi
1994for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1996 case "$ac_file" in
1997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1999 *) ac_file_in="${ac_file}.in" ;;
2000 esac
2001
2002 echo creating $ac_file
2003
2004 rm -f conftest.frag conftest.in conftest.out
2005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2006 cat $ac_file_inputs > conftest.in
2007
2008EOF
2009
2010# Transform confdefs.h into a sed script conftest.vals that substitutes
2011# the proper values into config.h.in to produce config.h. And first:
2012# Protect against being on the right side of a sed subst in config.status.
2013# Protect against being in an unquoted here document in config.status.
2014rm -f conftest.vals
2015cat > conftest.hdr <<\EOF
2016s/[\\&%]/\\&/g
2017s%[\\$`]%\\&%g
2018s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2019s%ac_d%ac_u%gp
2020s%ac_u%ac_e%gp
2021EOF
2022sed -n -f conftest.hdr confdefs.h > conftest.vals
2023rm -f conftest.hdr
2024
2025# This sed command replaces #undef with comments. This is necessary, for
2026# example, in the case of _POSIX_SOURCE, which is predefined and required
2027# on some systems where configure will not decide to define it.
2028cat >> conftest.vals <<\EOF
2029s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2030EOF
2031
2032# Break up conftest.vals because some shells have a limit on
2033# the size of here documents, and old seds have small limits too.
2034
2035rm -f conftest.tail
2036while :
2037do
2038 ac_lines=`grep -c . conftest.vals`
2039 # grep -c gives empty output for an empty file on some AIX systems.
2040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2041 # Write a limited-size here document to conftest.frag.
2042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2044 echo 'CEOF
2045 sed -f conftest.frag conftest.in > conftest.out
2046 rm -f conftest.in
2047 mv conftest.out conftest.in
2048' >> $CONFIG_STATUS
2049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2050 rm -f conftest.vals
2051 mv conftest.tail conftest.vals
2052done
2053rm -f conftest.vals
2054
2055cat >> $CONFIG_STATUS <<\EOF
2056 rm -f conftest.frag conftest.h
2057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2058 cat conftest.in >> conftest.h
2059 rm -f conftest.in
2060 if cmp -s $ac_file conftest.h 2>/dev/null; then
2061 echo "$ac_file is unchanged"
2062 rm -f conftest.h
2063 else
2064 # Remove last slash and all that follows it. Not all systems have dirname.
2065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2067 # The file is in a subdirectory.
2068 test ! -d "$ac_dir" && mkdir "$ac_dir"
2069 fi
2070 rm -f $ac_file
2071 mv conftest.h $ac_file
2072 fi
2073fi; done
2074
2075EOF
2076cat >> $CONFIG_STATUS <<EOF
2077
2078
2079EOF
2080cat >> $CONFIG_STATUS <<\EOF
2081test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2082sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
2083exit 0
2084EOF
2085chmod +x $CONFIG_STATUS
2086rm -fr confdefs* $ac_clean_files
2087test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2088