xref: /openbsd-src/gnu/usr.bin/binutils-2.17/intl/configure (revision 3d8817e467ea46cf4772788d6804dd293abfb01a)
1*3d8817e4Smiod#! /bin/sh
2*3d8817e4Smiod
3*3d8817e4Smiod# Guess values for system-dependent variables and create Makefiles.
4*3d8817e4Smiod# Generated automatically using autoconf version 2.12.1
5*3d8817e4Smiod# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6*3d8817e4Smiod#
7*3d8817e4Smiod# This configure script is free software; the Free Software Foundation
8*3d8817e4Smiod# gives unlimited permission to copy, distribute and modify it.
9*3d8817e4Smiod
10*3d8817e4Smiod# Defaults:
11*3d8817e4Smiodac_help=
12*3d8817e4Smiodac_default_prefix=/usr/local
13*3d8817e4Smiod# Any additions from configure.in:
14*3d8817e4Smiodac_help="$ac_help
15*3d8817e4Smiod  --disable-nls           do not use Native Language Support"
16*3d8817e4Smiodac_help="$ac_help
17*3d8817e4Smiod  --with-included-gettext use the GNU gettext library included here"
18*3d8817e4Smiod
19*3d8817e4Smiod# Initialize some variables set by options.
20*3d8817e4Smiod# The variables have the same names as the options, with
21*3d8817e4Smiod# dashes changed to underlines.
22*3d8817e4Smiodbuild=NONE
23*3d8817e4Smiodcache_file=./config.cache
24*3d8817e4Smiodexec_prefix=NONE
25*3d8817e4Smiodhost=NONE
26*3d8817e4Smiodno_create=
27*3d8817e4Smiodnonopt=NONE
28*3d8817e4Smiodno_recursion=
29*3d8817e4Smiodprefix=NONE
30*3d8817e4Smiodprogram_prefix=NONE
31*3d8817e4Smiodprogram_suffix=NONE
32*3d8817e4Smiodprogram_transform_name=s,x,x,
33*3d8817e4Smiodsilent=
34*3d8817e4Smiodsite=
35*3d8817e4Smiodsrcdir=
36*3d8817e4Smiodtarget=NONE
37*3d8817e4Smiodverbose=
38*3d8817e4Smiodx_includes=NONE
39*3d8817e4Smiodx_libraries=NONE
40*3d8817e4Smiodbindir='${exec_prefix}/bin'
41*3d8817e4Smiodsbindir='${exec_prefix}/sbin'
42*3d8817e4Smiodlibexecdir='${exec_prefix}/libexec'
43*3d8817e4Smioddatadir='${prefix}/share'
44*3d8817e4Smiodsysconfdir='${prefix}/etc'
45*3d8817e4Smiodsharedstatedir='${prefix}/com'
46*3d8817e4Smiodlocalstatedir='${prefix}/var'
47*3d8817e4Smiodlibdir='${exec_prefix}/lib'
48*3d8817e4Smiodincludedir='${prefix}/include'
49*3d8817e4Smiodoldincludedir='/usr/include'
50*3d8817e4Smiodinfodir='${prefix}/info'
51*3d8817e4Smiodmandir='${prefix}/man'
52*3d8817e4Smiod
53*3d8817e4Smiod# Initialize some other variables.
54*3d8817e4Smiodsubdirs=
55*3d8817e4SmiodMFLAGS= MAKEFLAGS=
56*3d8817e4SmiodSHELL=${CONFIG_SHELL-/bin/sh}
57*3d8817e4Smiod# Maximum number of lines to put in a shell here document.
58*3d8817e4Smiodac_max_here_lines=12
59*3d8817e4Smiod
60*3d8817e4Smiodac_prev=
61*3d8817e4Smiodfor ac_option
62*3d8817e4Smioddo
63*3d8817e4Smiod
64*3d8817e4Smiod  # If the previous option needs an argument, assign it.
65*3d8817e4Smiod  if test -n "$ac_prev"; then
66*3d8817e4Smiod    eval "$ac_prev=\$ac_option"
67*3d8817e4Smiod    ac_prev=
68*3d8817e4Smiod    continue
69*3d8817e4Smiod  fi
70*3d8817e4Smiod
71*3d8817e4Smiod  case "$ac_option" in
72*3d8817e4Smiod  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73*3d8817e4Smiod  *) ac_optarg= ;;
74*3d8817e4Smiod  esac
75*3d8817e4Smiod
76*3d8817e4Smiod  # Accept the important Cygnus configure options, so we can diagnose typos.
77*3d8817e4Smiod
78*3d8817e4Smiod  case "$ac_option" in
79*3d8817e4Smiod
80*3d8817e4Smiod  -bindir | --bindir | --bindi | --bind | --bin | --bi)
81*3d8817e4Smiod    ac_prev=bindir ;;
82*3d8817e4Smiod  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83*3d8817e4Smiod    bindir="$ac_optarg" ;;
84*3d8817e4Smiod
85*3d8817e4Smiod  -build | --build | --buil | --bui | --bu)
86*3d8817e4Smiod    ac_prev=build ;;
87*3d8817e4Smiod  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88*3d8817e4Smiod    build="$ac_optarg" ;;
89*3d8817e4Smiod
90*3d8817e4Smiod  -cache-file | --cache-file | --cache-fil | --cache-fi \
91*3d8817e4Smiod  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92*3d8817e4Smiod    ac_prev=cache_file ;;
93*3d8817e4Smiod  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94*3d8817e4Smiod  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95*3d8817e4Smiod    cache_file="$ac_optarg" ;;
96*3d8817e4Smiod
97*3d8817e4Smiod  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98*3d8817e4Smiod    ac_prev=datadir ;;
99*3d8817e4Smiod  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100*3d8817e4Smiod  | --da=*)
101*3d8817e4Smiod    datadir="$ac_optarg" ;;
102*3d8817e4Smiod
103*3d8817e4Smiod  -disable-* | --disable-*)
104*3d8817e4Smiod    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105*3d8817e4Smiod    # Reject names that are not valid shell variable names.
106*3d8817e4Smiod    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107*3d8817e4Smiod      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108*3d8817e4Smiod    fi
109*3d8817e4Smiod    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110*3d8817e4Smiod    eval "enable_${ac_feature}=no" ;;
111*3d8817e4Smiod
112*3d8817e4Smiod  -enable-* | --enable-*)
113*3d8817e4Smiod    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114*3d8817e4Smiod    # Reject names that are not valid shell variable names.
115*3d8817e4Smiod    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116*3d8817e4Smiod      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117*3d8817e4Smiod    fi
118*3d8817e4Smiod    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119*3d8817e4Smiod    case "$ac_option" in
120*3d8817e4Smiod      *=*) ;;
121*3d8817e4Smiod      *) ac_optarg=yes ;;
122*3d8817e4Smiod    esac
123*3d8817e4Smiod    eval "enable_${ac_feature}='$ac_optarg'" ;;
124*3d8817e4Smiod
125*3d8817e4Smiod  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126*3d8817e4Smiod  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127*3d8817e4Smiod  | --exec | --exe | --ex)
128*3d8817e4Smiod    ac_prev=exec_prefix ;;
129*3d8817e4Smiod  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130*3d8817e4Smiod  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131*3d8817e4Smiod  | --exec=* | --exe=* | --ex=*)
132*3d8817e4Smiod    exec_prefix="$ac_optarg" ;;
133*3d8817e4Smiod
134*3d8817e4Smiod  -gas | --gas | --ga | --g)
135*3d8817e4Smiod    # Obsolete; use --with-gas.
136*3d8817e4Smiod    with_gas=yes ;;
137*3d8817e4Smiod
138*3d8817e4Smiod  -help | --help | --hel | --he)
139*3d8817e4Smiod    # Omit some internal or obsolete options to make the list less imposing.
140*3d8817e4Smiod    # This message is too long to be a string in the A/UX 3.1 sh.
141*3d8817e4Smiod    cat << EOF
142*3d8817e4SmiodUsage: configure [options] [host]
143*3d8817e4SmiodOptions: [defaults in brackets after descriptions]
144*3d8817e4SmiodConfiguration:
145*3d8817e4Smiod  --cache-file=FILE       cache test results in FILE
146*3d8817e4Smiod  --help                  print this message
147*3d8817e4Smiod  --no-create             do not create output files
148*3d8817e4Smiod  --quiet, --silent       do not print \`checking...' messages
149*3d8817e4Smiod  --version               print the version of autoconf that created configure
150*3d8817e4SmiodDirectory and file names:
151*3d8817e4Smiod  --prefix=PREFIX         install architecture-independent files in PREFIX
152*3d8817e4Smiod                          [$ac_default_prefix]
153*3d8817e4Smiod  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154*3d8817e4Smiod                          [same as prefix]
155*3d8817e4Smiod  --bindir=DIR            user executables in DIR [EPREFIX/bin]
156*3d8817e4Smiod  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157*3d8817e4Smiod  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158*3d8817e4Smiod  --datadir=DIR           read-only architecture-independent data in DIR
159*3d8817e4Smiod                          [PREFIX/share]
160*3d8817e4Smiod  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161*3d8817e4Smiod  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162*3d8817e4Smiod                          [PREFIX/com]
163*3d8817e4Smiod  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164*3d8817e4Smiod  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165*3d8817e4Smiod  --includedir=DIR        C header files in DIR [PREFIX/include]
166*3d8817e4Smiod  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167*3d8817e4Smiod  --infodir=DIR           info documentation in DIR [PREFIX/info]
168*3d8817e4Smiod  --mandir=DIR            man documentation in DIR [PREFIX/man]
169*3d8817e4Smiod  --srcdir=DIR            find the sources in DIR [configure dir or ..]
170*3d8817e4Smiod  --program-prefix=PREFIX prepend PREFIX to installed program names
171*3d8817e4Smiod  --program-suffix=SUFFIX append SUFFIX to installed program names
172*3d8817e4Smiod  --program-transform-name=PROGRAM
173*3d8817e4Smiod                          run sed PROGRAM on installed program names
174*3d8817e4SmiodEOF
175*3d8817e4Smiod    cat << EOF
176*3d8817e4SmiodHost type:
177*3d8817e4Smiod  --build=BUILD           configure for building on BUILD [BUILD=HOST]
178*3d8817e4Smiod  --host=HOST             configure for HOST [guessed]
179*3d8817e4Smiod  --target=TARGET         configure for TARGET [TARGET=HOST]
180*3d8817e4SmiodFeatures and packages:
181*3d8817e4Smiod  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182*3d8817e4Smiod  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183*3d8817e4Smiod  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184*3d8817e4Smiod  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185*3d8817e4Smiod  --x-includes=DIR        X include files are in DIR
186*3d8817e4Smiod  --x-libraries=DIR       X library files are in DIR
187*3d8817e4SmiodEOF
188*3d8817e4Smiod    if test -n "$ac_help"; then
189*3d8817e4Smiod      echo "--enable and --with options recognized:$ac_help"
190*3d8817e4Smiod    fi
191*3d8817e4Smiod    exit 0 ;;
192*3d8817e4Smiod
193*3d8817e4Smiod  -host | --host | --hos | --ho)
194*3d8817e4Smiod    ac_prev=host ;;
195*3d8817e4Smiod  -host=* | --host=* | --hos=* | --ho=*)
196*3d8817e4Smiod    host="$ac_optarg" ;;
197*3d8817e4Smiod
198*3d8817e4Smiod  -includedir | --includedir | --includedi | --included | --include \
199*3d8817e4Smiod  | --includ | --inclu | --incl | --inc)
200*3d8817e4Smiod    ac_prev=includedir ;;
201*3d8817e4Smiod  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202*3d8817e4Smiod  | --includ=* | --inclu=* | --incl=* | --inc=*)
203*3d8817e4Smiod    includedir="$ac_optarg" ;;
204*3d8817e4Smiod
205*3d8817e4Smiod  -infodir | --infodir | --infodi | --infod | --info | --inf)
206*3d8817e4Smiod    ac_prev=infodir ;;
207*3d8817e4Smiod  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208*3d8817e4Smiod    infodir="$ac_optarg" ;;
209*3d8817e4Smiod
210*3d8817e4Smiod  -libdir | --libdir | --libdi | --libd)
211*3d8817e4Smiod    ac_prev=libdir ;;
212*3d8817e4Smiod  -libdir=* | --libdir=* | --libdi=* | --libd=*)
213*3d8817e4Smiod    libdir="$ac_optarg" ;;
214*3d8817e4Smiod
215*3d8817e4Smiod  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216*3d8817e4Smiod  | --libexe | --libex | --libe)
217*3d8817e4Smiod    ac_prev=libexecdir ;;
218*3d8817e4Smiod  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219*3d8817e4Smiod  | --libexe=* | --libex=* | --libe=*)
220*3d8817e4Smiod    libexecdir="$ac_optarg" ;;
221*3d8817e4Smiod
222*3d8817e4Smiod  -localstatedir | --localstatedir | --localstatedi | --localstated \
223*3d8817e4Smiod  | --localstate | --localstat | --localsta | --localst \
224*3d8817e4Smiod  | --locals | --local | --loca | --loc | --lo)
225*3d8817e4Smiod    ac_prev=localstatedir ;;
226*3d8817e4Smiod  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227*3d8817e4Smiod  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228*3d8817e4Smiod  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229*3d8817e4Smiod    localstatedir="$ac_optarg" ;;
230*3d8817e4Smiod
231*3d8817e4Smiod  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232*3d8817e4Smiod    ac_prev=mandir ;;
233*3d8817e4Smiod  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234*3d8817e4Smiod    mandir="$ac_optarg" ;;
235*3d8817e4Smiod
236*3d8817e4Smiod  -nfp | --nfp | --nf)
237*3d8817e4Smiod    # Obsolete; use --without-fp.
238*3d8817e4Smiod    with_fp=no ;;
239*3d8817e4Smiod
240*3d8817e4Smiod  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241*3d8817e4Smiod  | --no-cr | --no-c)
242*3d8817e4Smiod    no_create=yes ;;
243*3d8817e4Smiod
244*3d8817e4Smiod  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245*3d8817e4Smiod  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246*3d8817e4Smiod    no_recursion=yes ;;
247*3d8817e4Smiod
248*3d8817e4Smiod  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249*3d8817e4Smiod  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250*3d8817e4Smiod  | --oldin | --oldi | --old | --ol | --o)
251*3d8817e4Smiod    ac_prev=oldincludedir ;;
252*3d8817e4Smiod  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253*3d8817e4Smiod  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254*3d8817e4Smiod  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255*3d8817e4Smiod    oldincludedir="$ac_optarg" ;;
256*3d8817e4Smiod
257*3d8817e4Smiod  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258*3d8817e4Smiod    ac_prev=prefix ;;
259*3d8817e4Smiod  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260*3d8817e4Smiod    prefix="$ac_optarg" ;;
261*3d8817e4Smiod
262*3d8817e4Smiod  -program-prefix | --program-prefix | --program-prefi | --program-pref \
263*3d8817e4Smiod  | --program-pre | --program-pr | --program-p)
264*3d8817e4Smiod    ac_prev=program_prefix ;;
265*3d8817e4Smiod  -program-prefix=* | --program-prefix=* | --program-prefi=* \
266*3d8817e4Smiod  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267*3d8817e4Smiod    program_prefix="$ac_optarg" ;;
268*3d8817e4Smiod
269*3d8817e4Smiod  -program-suffix | --program-suffix | --program-suffi | --program-suff \
270*3d8817e4Smiod  | --program-suf | --program-su | --program-s)
271*3d8817e4Smiod    ac_prev=program_suffix ;;
272*3d8817e4Smiod  -program-suffix=* | --program-suffix=* | --program-suffi=* \
273*3d8817e4Smiod  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274*3d8817e4Smiod    program_suffix="$ac_optarg" ;;
275*3d8817e4Smiod
276*3d8817e4Smiod  -program-transform-name | --program-transform-name \
277*3d8817e4Smiod  | --program-transform-nam | --program-transform-na \
278*3d8817e4Smiod  | --program-transform-n | --program-transform- \
279*3d8817e4Smiod  | --program-transform | --program-transfor \
280*3d8817e4Smiod  | --program-transfo | --program-transf \
281*3d8817e4Smiod  | --program-trans | --program-tran \
282*3d8817e4Smiod  | --progr-tra | --program-tr | --program-t)
283*3d8817e4Smiod    ac_prev=program_transform_name ;;
284*3d8817e4Smiod  -program-transform-name=* | --program-transform-name=* \
285*3d8817e4Smiod  | --program-transform-nam=* | --program-transform-na=* \
286*3d8817e4Smiod  | --program-transform-n=* | --program-transform-=* \
287*3d8817e4Smiod  | --program-transform=* | --program-transfor=* \
288*3d8817e4Smiod  | --program-transfo=* | --program-transf=* \
289*3d8817e4Smiod  | --program-trans=* | --program-tran=* \
290*3d8817e4Smiod  | --progr-tra=* | --program-tr=* | --program-t=*)
291*3d8817e4Smiod    program_transform_name="$ac_optarg" ;;
292*3d8817e4Smiod
293*3d8817e4Smiod  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294*3d8817e4Smiod  | -silent | --silent | --silen | --sile | --sil)
295*3d8817e4Smiod    silent=yes ;;
296*3d8817e4Smiod
297*3d8817e4Smiod  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298*3d8817e4Smiod    ac_prev=sbindir ;;
299*3d8817e4Smiod  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300*3d8817e4Smiod  | --sbi=* | --sb=*)
301*3d8817e4Smiod    sbindir="$ac_optarg" ;;
302*3d8817e4Smiod
303*3d8817e4Smiod  -sharedstatedir | --sharedstatedir | --sharedstatedi \
304*3d8817e4Smiod  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305*3d8817e4Smiod  | --sharedst | --shareds | --shared | --share | --shar \
306*3d8817e4Smiod  | --sha | --sh)
307*3d8817e4Smiod    ac_prev=sharedstatedir ;;
308*3d8817e4Smiod  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309*3d8817e4Smiod  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310*3d8817e4Smiod  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311*3d8817e4Smiod  | --sha=* | --sh=*)
312*3d8817e4Smiod    sharedstatedir="$ac_optarg" ;;
313*3d8817e4Smiod
314*3d8817e4Smiod  -site | --site | --sit)
315*3d8817e4Smiod    ac_prev=site ;;
316*3d8817e4Smiod  -site=* | --site=* | --sit=*)
317*3d8817e4Smiod    site="$ac_optarg" ;;
318*3d8817e4Smiod
319*3d8817e4Smiod  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320*3d8817e4Smiod    ac_prev=srcdir ;;
321*3d8817e4Smiod  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322*3d8817e4Smiod    srcdir="$ac_optarg" ;;
323*3d8817e4Smiod
324*3d8817e4Smiod  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325*3d8817e4Smiod  | --syscon | --sysco | --sysc | --sys | --sy)
326*3d8817e4Smiod    ac_prev=sysconfdir ;;
327*3d8817e4Smiod  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328*3d8817e4Smiod  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329*3d8817e4Smiod    sysconfdir="$ac_optarg" ;;
330*3d8817e4Smiod
331*3d8817e4Smiod  -target | --target | --targe | --targ | --tar | --ta | --t)
332*3d8817e4Smiod    ac_prev=target ;;
333*3d8817e4Smiod  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334*3d8817e4Smiod    target="$ac_optarg" ;;
335*3d8817e4Smiod
336*3d8817e4Smiod  -v | -verbose | --verbose | --verbos | --verbo | --verb)
337*3d8817e4Smiod    verbose=yes ;;
338*3d8817e4Smiod
339*3d8817e4Smiod  -version | --version | --versio | --versi | --vers)
340*3d8817e4Smiod    echo "configure generated by autoconf version 2.12.1"
341*3d8817e4Smiod    exit 0 ;;
342*3d8817e4Smiod
343*3d8817e4Smiod  -with-* | --with-*)
344*3d8817e4Smiod    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345*3d8817e4Smiod    # Reject names that are not valid shell variable names.
346*3d8817e4Smiod    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347*3d8817e4Smiod      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348*3d8817e4Smiod    fi
349*3d8817e4Smiod    ac_package=`echo $ac_package| sed 's/-/_/g'`
350*3d8817e4Smiod    case "$ac_option" in
351*3d8817e4Smiod      *=*) ;;
352*3d8817e4Smiod      *) ac_optarg=yes ;;
353*3d8817e4Smiod    esac
354*3d8817e4Smiod    eval "with_${ac_package}='$ac_optarg'" ;;
355*3d8817e4Smiod
356*3d8817e4Smiod  -without-* | --without-*)
357*3d8817e4Smiod    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358*3d8817e4Smiod    # Reject names that are not valid shell variable names.
359*3d8817e4Smiod    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360*3d8817e4Smiod      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361*3d8817e4Smiod    fi
362*3d8817e4Smiod    ac_package=`echo $ac_package| sed 's/-/_/g'`
363*3d8817e4Smiod    eval "with_${ac_package}=no" ;;
364*3d8817e4Smiod
365*3d8817e4Smiod  --x)
366*3d8817e4Smiod    # Obsolete; use --with-x.
367*3d8817e4Smiod    with_x=yes ;;
368*3d8817e4Smiod
369*3d8817e4Smiod  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370*3d8817e4Smiod  | --x-incl | --x-inc | --x-in | --x-i)
371*3d8817e4Smiod    ac_prev=x_includes ;;
372*3d8817e4Smiod  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373*3d8817e4Smiod  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374*3d8817e4Smiod    x_includes="$ac_optarg" ;;
375*3d8817e4Smiod
376*3d8817e4Smiod  -x-libraries | --x-libraries | --x-librarie | --x-librari \
377*3d8817e4Smiod  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378*3d8817e4Smiod    ac_prev=x_libraries ;;
379*3d8817e4Smiod  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380*3d8817e4Smiod  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381*3d8817e4Smiod    x_libraries="$ac_optarg" ;;
382*3d8817e4Smiod
383*3d8817e4Smiod  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384*3d8817e4Smiod    ;;
385*3d8817e4Smiod
386*3d8817e4Smiod  *)
387*3d8817e4Smiod    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388*3d8817e4Smiod      echo "configure: warning: $ac_option: invalid host type" 1>&2
389*3d8817e4Smiod    fi
390*3d8817e4Smiod    if test "x$nonopt" != xNONE; then
391*3d8817e4Smiod      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392*3d8817e4Smiod    fi
393*3d8817e4Smiod    nonopt="$ac_option"
394*3d8817e4Smiod    ;;
395*3d8817e4Smiod
396*3d8817e4Smiod  esac
397*3d8817e4Smioddone
398*3d8817e4Smiod
399*3d8817e4Smiodif test -n "$ac_prev"; then
400*3d8817e4Smiod  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401*3d8817e4Smiodfi
402*3d8817e4Smiod
403*3d8817e4Smiodtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404*3d8817e4Smiod
405*3d8817e4Smiod# File descriptor usage:
406*3d8817e4Smiod# 0 standard input
407*3d8817e4Smiod# 1 file creation
408*3d8817e4Smiod# 2 errors and warnings
409*3d8817e4Smiod# 3 some systems may open it to /dev/tty
410*3d8817e4Smiod# 4 used on the Kubota Titan
411*3d8817e4Smiod# 6 checking for... messages and results
412*3d8817e4Smiod# 5 compiler messages saved in config.log
413*3d8817e4Smiodif test "$silent" = yes; then
414*3d8817e4Smiod  exec 6>/dev/null
415*3d8817e4Smiodelse
416*3d8817e4Smiod  exec 6>&1
417*3d8817e4Smiodfi
418*3d8817e4Smiodexec 5>./config.log
419*3d8817e4Smiod
420*3d8817e4Smiodecho "\
421*3d8817e4SmiodThis file contains any messages produced by compilers while
422*3d8817e4Smiodrunning configure, to aid debugging if configure makes a mistake.
423*3d8817e4Smiod" 1>&5
424*3d8817e4Smiod
425*3d8817e4Smiod# Strip out --no-create and --no-recursion so they do not pile up.
426*3d8817e4Smiod# Also quote any args containing shell metacharacters.
427*3d8817e4Smiodac_configure_args=
428*3d8817e4Smiodfor ac_arg
429*3d8817e4Smioddo
430*3d8817e4Smiod  case "$ac_arg" in
431*3d8817e4Smiod  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432*3d8817e4Smiod  | --no-cr | --no-c) ;;
433*3d8817e4Smiod  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434*3d8817e4Smiod  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435*3d8817e4Smiod  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436*3d8817e4Smiod  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437*3d8817e4Smiod  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438*3d8817e4Smiod  esac
439*3d8817e4Smioddone
440*3d8817e4Smiod
441*3d8817e4Smiod# NLS nuisances.
442*3d8817e4Smiod# Only set these to C if already set.  These must not be set unconditionally
443*3d8817e4Smiod# because not all systems understand e.g. LANG=C (notably SCO).
444*3d8817e4Smiod# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445*3d8817e4Smiod# Non-C LC_CTYPE values break the ctype check.
446*3d8817e4Smiodif test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
447*3d8817e4Smiodif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448*3d8817e4Smiodif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449*3d8817e4Smiodif test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
450*3d8817e4Smiod
451*3d8817e4Smiod# confdefs.h avoids OS command line length limits that DEFS can exceed.
452*3d8817e4Smiodrm -rf conftest* confdefs.h
453*3d8817e4Smiod# AIX cpp loses on an empty file, so make sure it contains at least a newline.
454*3d8817e4Smiodecho > confdefs.h
455*3d8817e4Smiod
456*3d8817e4Smiod# A filename unique to this package, relative to the directory that
457*3d8817e4Smiod# configure is in, which we can look for to find out if srcdir is correct.
458*3d8817e4Smiodac_unique_file=dgettext.c
459*3d8817e4Smiod
460*3d8817e4Smiod# Find the source files, if location was not specified.
461*3d8817e4Smiodif test -z "$srcdir"; then
462*3d8817e4Smiod  ac_srcdir_defaulted=yes
463*3d8817e4Smiod  # Try the directory containing this script, then its parent.
464*3d8817e4Smiod  ac_prog=$0
465*3d8817e4Smiod  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466*3d8817e4Smiod  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467*3d8817e4Smiod  srcdir=$ac_confdir
468*3d8817e4Smiod  if test ! -r $srcdir/$ac_unique_file; then
469*3d8817e4Smiod    srcdir=..
470*3d8817e4Smiod  fi
471*3d8817e4Smiodelse
472*3d8817e4Smiod  ac_srcdir_defaulted=no
473*3d8817e4Smiodfi
474*3d8817e4Smiodif test ! -r $srcdir/$ac_unique_file; then
475*3d8817e4Smiod  if test "$ac_srcdir_defaulted" = yes; then
476*3d8817e4Smiod    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477*3d8817e4Smiod  else
478*3d8817e4Smiod    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479*3d8817e4Smiod  fi
480*3d8817e4Smiodfi
481*3d8817e4Smiodsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482*3d8817e4Smiod
483*3d8817e4Smiod# Prefer explicitly selected file to automatically selected ones.
484*3d8817e4Smiodif test -z "$CONFIG_SITE"; then
485*3d8817e4Smiod  if test "x$prefix" != xNONE; then
486*3d8817e4Smiod    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487*3d8817e4Smiod  else
488*3d8817e4Smiod    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489*3d8817e4Smiod  fi
490*3d8817e4Smiodfi
491*3d8817e4Smiodfor ac_site_file in $CONFIG_SITE; do
492*3d8817e4Smiod  if test -r "$ac_site_file"; then
493*3d8817e4Smiod    echo "loading site script $ac_site_file"
494*3d8817e4Smiod    . "$ac_site_file"
495*3d8817e4Smiod  fi
496*3d8817e4Smioddone
497*3d8817e4Smiod
498*3d8817e4Smiodif test -r "$cache_file"; then
499*3d8817e4Smiod  echo "loading cache $cache_file"
500*3d8817e4Smiod  . $cache_file
501*3d8817e4Smiodelse
502*3d8817e4Smiod  echo "creating cache $cache_file"
503*3d8817e4Smiod  > $cache_file
504*3d8817e4Smiodfi
505*3d8817e4Smiod
506*3d8817e4Smiodac_ext=c
507*3d8817e4Smiod# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508*3d8817e4Smiodac_cpp='$CPP $CPPFLAGS'
509*3d8817e4Smiodac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510*3d8817e4Smiodac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511*3d8817e4Smiodcross_compiling=$ac_cv_prog_cc_cross
512*3d8817e4Smiod
513*3d8817e4Smiodif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514*3d8817e4Smiod  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515*3d8817e4Smiod  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516*3d8817e4Smiod    ac_n= ac_c='
517*3d8817e4Smiod' ac_t='	'
518*3d8817e4Smiod  else
519*3d8817e4Smiod    ac_n=-n ac_c= ac_t=
520*3d8817e4Smiod  fi
521*3d8817e4Smiodelse
522*3d8817e4Smiod  ac_n= ac_c='\c' ac_t=
523*3d8817e4Smiodfi
524*3d8817e4Smiod
525*3d8817e4Smiod
526*3d8817e4Smiod
527*3d8817e4Smiod
528*3d8817e4Smiod
529*3d8817e4Smiod
530*3d8817e4Smiodac_aux_dir=
531*3d8817e4Smiodfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
532*3d8817e4Smiod  if test -f $ac_dir/install-sh; then
533*3d8817e4Smiod    ac_aux_dir=$ac_dir
534*3d8817e4Smiod    ac_install_sh="$ac_aux_dir/install-sh -c"
535*3d8817e4Smiod    break
536*3d8817e4Smiod  elif test -f $ac_dir/install.sh; then
537*3d8817e4Smiod    ac_aux_dir=$ac_dir
538*3d8817e4Smiod    ac_install_sh="$ac_aux_dir/install.sh -c"
539*3d8817e4Smiod    break
540*3d8817e4Smiod  fi
541*3d8817e4Smioddone
542*3d8817e4Smiodif test -z "$ac_aux_dir"; then
543*3d8817e4Smiod  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
544*3d8817e4Smiodfi
545*3d8817e4Smiodac_config_guess=$ac_aux_dir/config.guess
546*3d8817e4Smiodac_config_sub=$ac_aux_dir/config.sub
547*3d8817e4Smiodac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
548*3d8817e4Smiod
549*3d8817e4Smiod# Find a good install program.  We prefer a C program (faster),
550*3d8817e4Smiod# so one script is as good as another.  But avoid the broken or
551*3d8817e4Smiod# incompatible versions:
552*3d8817e4Smiod# SysV /etc/install, /usr/sbin/install
553*3d8817e4Smiod# SunOS /usr/etc/install
554*3d8817e4Smiod# IRIX /sbin/install
555*3d8817e4Smiod# AIX /bin/install
556*3d8817e4Smiod# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
557*3d8817e4Smiod# AFS /usr/afsws/bin/install, which mishandles nonexistent args
558*3d8817e4Smiod# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
559*3d8817e4Smiod# ./install, which can be erroneously created by make from ./install.sh.
560*3d8817e4Smiodecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
561*3d8817e4Smiodecho "configure:562: checking for a BSD compatible install" >&5
562*3d8817e4Smiodif test -z "$INSTALL"; then
563*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
564*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
565*3d8817e4Smiodelse
566*3d8817e4Smiod    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
567*3d8817e4Smiod  for ac_dir in $PATH; do
568*3d8817e4Smiod    # Account for people who put trailing slashes in PATH elements.
569*3d8817e4Smiod    case "$ac_dir/" in
570*3d8817e4Smiod    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
571*3d8817e4Smiod    *)
572*3d8817e4Smiod      # OSF1 and SCO ODT 3.0 have their own names for install.
573*3d8817e4Smiod      # Don't use installbsd from OSF since it installs stuff as root
574*3d8817e4Smiod      # by default.
575*3d8817e4Smiod      for ac_prog in ginstall scoinst install; do
576*3d8817e4Smiod        if test -f $ac_dir/$ac_prog; then
577*3d8817e4Smiod	  if test $ac_prog = install &&
578*3d8817e4Smiod            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
579*3d8817e4Smiod	    # AIX install.  It has an incompatible calling convention.
580*3d8817e4Smiod	    :
581*3d8817e4Smiod	  else
582*3d8817e4Smiod	    ac_cv_path_install="$ac_dir/$ac_prog -c"
583*3d8817e4Smiod	    break 2
584*3d8817e4Smiod	  fi
585*3d8817e4Smiod	fi
586*3d8817e4Smiod      done
587*3d8817e4Smiod      ;;
588*3d8817e4Smiod    esac
589*3d8817e4Smiod  done
590*3d8817e4Smiod  IFS="$ac_save_IFS"
591*3d8817e4Smiod
592*3d8817e4Smiodfi
593*3d8817e4Smiod  if test "${ac_cv_path_install+set}" = set; then
594*3d8817e4Smiod    INSTALL="$ac_cv_path_install"
595*3d8817e4Smiod  else
596*3d8817e4Smiod    # As a last resort, use the slow shell script.  We don't cache a
597*3d8817e4Smiod    # path for INSTALL within a source directory, because that will
598*3d8817e4Smiod    # break other packages using the cache if that directory is
599*3d8817e4Smiod    # removed, or if the path is relative.
600*3d8817e4Smiod    INSTALL="$ac_install_sh"
601*3d8817e4Smiod  fi
602*3d8817e4Smiodfi
603*3d8817e4Smiodecho "$ac_t""$INSTALL" 1>&6
604*3d8817e4Smiod
605*3d8817e4Smiod# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
606*3d8817e4Smiod# It thinks the first close brace ends the variable substitution.
607*3d8817e4Smiodtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
608*3d8817e4Smiod
609*3d8817e4Smiodtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
610*3d8817e4Smiod
611*3d8817e4Smiod
612*3d8817e4Smiodtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
613*3d8817e4Smiod
614*3d8817e4Smiodecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
615*3d8817e4Smiodecho "configure:616: checking how to run the C preprocessor" >&5
616*3d8817e4Smiod# On Suns, sometimes $CPP names a directory.
617*3d8817e4Smiodif test -n "$CPP" && test -d "$CPP"; then
618*3d8817e4Smiod  CPP=
619*3d8817e4Smiodfi
620*3d8817e4Smiodif test -z "$CPP"; then
621*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
622*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
623*3d8817e4Smiodelse
624*3d8817e4Smiod    # This must be in double quotes, not single quotes, because CPP may get
625*3d8817e4Smiod  # substituted into the Makefile and "${CC-cc}" will confuse make.
626*3d8817e4Smiod  CPP="${CC-cc} -E"
627*3d8817e4Smiod  # On the NeXT, cc -E runs the code through the compiler's parser,
628*3d8817e4Smiod  # not just through cpp.
629*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
630*3d8817e4Smiod#line 631 "configure"
631*3d8817e4Smiod#include "confdefs.h"
632*3d8817e4Smiod#include <assert.h>
633*3d8817e4SmiodSyntax Error
634*3d8817e4SmiodEOF
635*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
636*3d8817e4Smiod{ (eval echo configure:637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
637*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
638*3d8817e4Smiodif test -z "$ac_err"; then
639*3d8817e4Smiod  :
640*3d8817e4Smiodelse
641*3d8817e4Smiod  echo "$ac_err" >&5
642*3d8817e4Smiod  echo "configure: failed program was:" >&5
643*3d8817e4Smiod  cat conftest.$ac_ext >&5
644*3d8817e4Smiod  rm -rf conftest*
645*3d8817e4Smiod  CPP="${CC-cc} -E -traditional-cpp"
646*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
647*3d8817e4Smiod#line 648 "configure"
648*3d8817e4Smiod#include "confdefs.h"
649*3d8817e4Smiod#include <assert.h>
650*3d8817e4SmiodSyntax Error
651*3d8817e4SmiodEOF
652*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
653*3d8817e4Smiod{ (eval echo configure:654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
654*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
655*3d8817e4Smiodif test -z "$ac_err"; then
656*3d8817e4Smiod  :
657*3d8817e4Smiodelse
658*3d8817e4Smiod  echo "$ac_err" >&5
659*3d8817e4Smiod  echo "configure: failed program was:" >&5
660*3d8817e4Smiod  cat conftest.$ac_ext >&5
661*3d8817e4Smiod  rm -rf conftest*
662*3d8817e4Smiod  CPP=/lib/cpp
663*3d8817e4Smiodfi
664*3d8817e4Smiodrm -f conftest*
665*3d8817e4Smiodfi
666*3d8817e4Smiodrm -f conftest*
667*3d8817e4Smiod  ac_cv_prog_CPP="$CPP"
668*3d8817e4Smiodfi
669*3d8817e4Smiod  CPP="$ac_cv_prog_CPP"
670*3d8817e4Smiodelse
671*3d8817e4Smiod  ac_cv_prog_CPP="$CPP"
672*3d8817e4Smiodfi
673*3d8817e4Smiodecho "$ac_t""$CPP" 1>&6
674*3d8817e4Smiod
675*3d8817e4Smiodecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
676*3d8817e4Smiodecho "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
677*3d8817e4Smiodset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
678*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
679*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
680*3d8817e4Smiodelse
681*3d8817e4Smiod  cat > conftestmake <<\EOF
682*3d8817e4Smiodall:
683*3d8817e4Smiod	@echo 'ac_maketemp="${MAKE}"'
684*3d8817e4SmiodEOF
685*3d8817e4Smiod# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
686*3d8817e4Smiodeval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
687*3d8817e4Smiodif test -n "$ac_maketemp"; then
688*3d8817e4Smiod  eval ac_cv_prog_make_${ac_make}_set=yes
689*3d8817e4Smiodelse
690*3d8817e4Smiod  eval ac_cv_prog_make_${ac_make}_set=no
691*3d8817e4Smiodfi
692*3d8817e4Smiodrm -f conftestmake
693*3d8817e4Smiodfi
694*3d8817e4Smiodif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
695*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
696*3d8817e4Smiod  SET_MAKE=
697*3d8817e4Smiodelse
698*3d8817e4Smiod  echo "$ac_t""no" 1>&6
699*3d8817e4Smiod  SET_MAKE="MAKE=${MAKE-make}"
700*3d8817e4Smiodfi
701*3d8817e4Smiod
702*3d8817e4Smiod# Extract the first word of "gcc", so it can be a program name with args.
703*3d8817e4Smiodset dummy gcc; ac_word=$2
704*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
705*3d8817e4Smiodecho "configure:706: checking for $ac_word" >&5
706*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
708*3d8817e4Smiodelse
709*3d8817e4Smiod  if test -n "$CC"; then
710*3d8817e4Smiod  ac_cv_prog_CC="$CC" # Let the user override the test.
711*3d8817e4Smiodelse
712*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
713*3d8817e4Smiod  for ac_dir in $PATH; do
714*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
715*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
716*3d8817e4Smiod      ac_cv_prog_CC="gcc"
717*3d8817e4Smiod      break
718*3d8817e4Smiod    fi
719*3d8817e4Smiod  done
720*3d8817e4Smiod  IFS="$ac_save_ifs"
721*3d8817e4Smiodfi
722*3d8817e4Smiodfi
723*3d8817e4SmiodCC="$ac_cv_prog_CC"
724*3d8817e4Smiodif test -n "$CC"; then
725*3d8817e4Smiod  echo "$ac_t""$CC" 1>&6
726*3d8817e4Smiodelse
727*3d8817e4Smiod  echo "$ac_t""no" 1>&6
728*3d8817e4Smiodfi
729*3d8817e4Smiod
730*3d8817e4Smiodif test -z "$CC"; then
731*3d8817e4Smiod  # Extract the first word of "cc", so it can be a program name with args.
732*3d8817e4Smiodset dummy cc; ac_word=$2
733*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
734*3d8817e4Smiodecho "configure:735: checking for $ac_word" >&5
735*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
737*3d8817e4Smiodelse
738*3d8817e4Smiod  if test -n "$CC"; then
739*3d8817e4Smiod  ac_cv_prog_CC="$CC" # Let the user override the test.
740*3d8817e4Smiodelse
741*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
742*3d8817e4Smiod  ac_prog_rejected=no
743*3d8817e4Smiod  for ac_dir in $PATH; do
744*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
745*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
746*3d8817e4Smiod      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
747*3d8817e4Smiod        ac_prog_rejected=yes
748*3d8817e4Smiod	continue
749*3d8817e4Smiod      fi
750*3d8817e4Smiod      ac_cv_prog_CC="cc"
751*3d8817e4Smiod      break
752*3d8817e4Smiod    fi
753*3d8817e4Smiod  done
754*3d8817e4Smiod  IFS="$ac_save_ifs"
755*3d8817e4Smiodif test $ac_prog_rejected = yes; then
756*3d8817e4Smiod  # We found a bogon in the path, so make sure we never use it.
757*3d8817e4Smiod  set dummy $ac_cv_prog_CC
758*3d8817e4Smiod  shift
759*3d8817e4Smiod  if test $# -gt 0; then
760*3d8817e4Smiod    # We chose a different compiler from the bogus one.
761*3d8817e4Smiod    # However, it has the same basename, so the bogon will be chosen
762*3d8817e4Smiod    # first if we set CC to just the basename; use the full file name.
763*3d8817e4Smiod    shift
764*3d8817e4Smiod    set dummy "$ac_dir/$ac_word" "$@"
765*3d8817e4Smiod    shift
766*3d8817e4Smiod    ac_cv_prog_CC="$@"
767*3d8817e4Smiod  fi
768*3d8817e4Smiodfi
769*3d8817e4Smiodfi
770*3d8817e4Smiodfi
771*3d8817e4SmiodCC="$ac_cv_prog_CC"
772*3d8817e4Smiodif test -n "$CC"; then
773*3d8817e4Smiod  echo "$ac_t""$CC" 1>&6
774*3d8817e4Smiodelse
775*3d8817e4Smiod  echo "$ac_t""no" 1>&6
776*3d8817e4Smiodfi
777*3d8817e4Smiod
778*3d8817e4Smiod  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
779*3d8817e4Smiodfi
780*3d8817e4Smiod
781*3d8817e4Smiodecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782*3d8817e4Smiodecho "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
783*3d8817e4Smiod
784*3d8817e4Smiodac_ext=c
785*3d8817e4Smiod# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786*3d8817e4Smiodac_cpp='$CPP $CPPFLAGS'
787*3d8817e4Smiodac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788*3d8817e4Smiodac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789*3d8817e4Smiodcross_compiling=$ac_cv_prog_cc_cross
790*3d8817e4Smiod
791*3d8817e4Smiodcat > conftest.$ac_ext <<EOF
792*3d8817e4Smiod#line 793 "configure"
793*3d8817e4Smiod#include "confdefs.h"
794*3d8817e4Smiodmain(){return(0);}
795*3d8817e4SmiodEOF
796*3d8817e4Smiodif { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
797*3d8817e4Smiod  ac_cv_prog_cc_works=yes
798*3d8817e4Smiod  # If we can't run a trivial program, we are probably using a cross compiler.
799*3d8817e4Smiod  if (./conftest; exit) 2>/dev/null; then
800*3d8817e4Smiod    ac_cv_prog_cc_cross=no
801*3d8817e4Smiod  else
802*3d8817e4Smiod    ac_cv_prog_cc_cross=yes
803*3d8817e4Smiod  fi
804*3d8817e4Smiodelse
805*3d8817e4Smiod  echo "configure: failed program was:" >&5
806*3d8817e4Smiod  cat conftest.$ac_ext >&5
807*3d8817e4Smiod  ac_cv_prog_cc_works=no
808*3d8817e4Smiodfi
809*3d8817e4Smiodrm -fr conftest*
810*3d8817e4Smiod
811*3d8817e4Smiodecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
812*3d8817e4Smiodif test $ac_cv_prog_cc_works = no; then
813*3d8817e4Smiod  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
814*3d8817e4Smiodfi
815*3d8817e4Smiodecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816*3d8817e4Smiodecho "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817*3d8817e4Smiodecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818*3d8817e4Smiodcross_compiling=$ac_cv_prog_cc_cross
819*3d8817e4Smiod
820*3d8817e4Smiodecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821*3d8817e4Smiodecho "configure:822: checking whether we are using GNU C" >&5
822*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
824*3d8817e4Smiodelse
825*3d8817e4Smiod  cat > conftest.c <<EOF
826*3d8817e4Smiod#ifdef __GNUC__
827*3d8817e4Smiod  yes;
828*3d8817e4Smiod#endif
829*3d8817e4SmiodEOF
830*3d8817e4Smiodif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831*3d8817e4Smiod  ac_cv_prog_gcc=yes
832*3d8817e4Smiodelse
833*3d8817e4Smiod  ac_cv_prog_gcc=no
834*3d8817e4Smiodfi
835*3d8817e4Smiodfi
836*3d8817e4Smiod
837*3d8817e4Smiodecho "$ac_t""$ac_cv_prog_gcc" 1>&6
838*3d8817e4Smiod
839*3d8817e4Smiodif test $ac_cv_prog_gcc = yes; then
840*3d8817e4Smiod  GCC=yes
841*3d8817e4Smiod  ac_test_CFLAGS="${CFLAGS+set}"
842*3d8817e4Smiod  ac_save_CFLAGS="$CFLAGS"
843*3d8817e4Smiod  CFLAGS=
844*3d8817e4Smiod  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845*3d8817e4Smiodecho "configure:846: checking whether ${CC-cc} accepts -g" >&5
846*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
848*3d8817e4Smiodelse
849*3d8817e4Smiod  echo 'void f(){}' > conftest.c
850*3d8817e4Smiodif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851*3d8817e4Smiod  ac_cv_prog_cc_g=yes
852*3d8817e4Smiodelse
853*3d8817e4Smiod  ac_cv_prog_cc_g=no
854*3d8817e4Smiodfi
855*3d8817e4Smiodrm -f conftest*
856*3d8817e4Smiod
857*3d8817e4Smiodfi
858*3d8817e4Smiod
859*3d8817e4Smiodecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
860*3d8817e4Smiod  if test "$ac_test_CFLAGS" = set; then
861*3d8817e4Smiod    CFLAGS="$ac_save_CFLAGS"
862*3d8817e4Smiod  elif test $ac_cv_prog_cc_g = yes; then
863*3d8817e4Smiod    CFLAGS="-g -O2"
864*3d8817e4Smiod  else
865*3d8817e4Smiod    CFLAGS="-O2"
866*3d8817e4Smiod  fi
867*3d8817e4Smiodelse
868*3d8817e4Smiod  GCC=
869*3d8817e4Smiod  test "${CFLAGS+set}" = set || CFLAGS="-g"
870*3d8817e4Smiodfi
871*3d8817e4Smiod
872*3d8817e4Smiod# Extract the first word of "ranlib", so it can be a program name with args.
873*3d8817e4Smiodset dummy ranlib; ac_word=$2
874*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
875*3d8817e4Smiodecho "configure:876: checking for $ac_word" >&5
876*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
877*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
878*3d8817e4Smiodelse
879*3d8817e4Smiod  if test -n "$RANLIB"; then
880*3d8817e4Smiod  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
881*3d8817e4Smiodelse
882*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883*3d8817e4Smiod  for ac_dir in $PATH; do
884*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
885*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
886*3d8817e4Smiod      ac_cv_prog_RANLIB="ranlib"
887*3d8817e4Smiod      break
888*3d8817e4Smiod    fi
889*3d8817e4Smiod  done
890*3d8817e4Smiod  IFS="$ac_save_ifs"
891*3d8817e4Smiod  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
892*3d8817e4Smiodfi
893*3d8817e4Smiodfi
894*3d8817e4SmiodRANLIB="$ac_cv_prog_RANLIB"
895*3d8817e4Smiodif test -n "$RANLIB"; then
896*3d8817e4Smiod  echo "$ac_t""$RANLIB" 1>&6
897*3d8817e4Smiodelse
898*3d8817e4Smiod  echo "$ac_t""no" 1>&6
899*3d8817e4Smiodfi
900*3d8817e4Smiod
901*3d8817e4Smiodecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
902*3d8817e4Smiodecho "configure:903: checking for POSIXized ISC" >&5
903*3d8817e4Smiodif test -d /etc/conf/kconfig.d &&
904*3d8817e4Smiod  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
905*3d8817e4Smiodthen
906*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
907*3d8817e4Smiod  ISC=yes # If later tests want to check for ISC.
908*3d8817e4Smiod  cat >> confdefs.h <<\EOF
909*3d8817e4Smiod#define _POSIX_SOURCE 1
910*3d8817e4SmiodEOF
911*3d8817e4Smiod
912*3d8817e4Smiod  if test "$GCC" = yes; then
913*3d8817e4Smiod    CC="$CC -posix"
914*3d8817e4Smiod  else
915*3d8817e4Smiod    CC="$CC -Xp"
916*3d8817e4Smiod  fi
917*3d8817e4Smiodelse
918*3d8817e4Smiod  echo "$ac_t""no" 1>&6
919*3d8817e4Smiod  ISC=
920*3d8817e4Smiodfi
921*3d8817e4Smiod
922*3d8817e4Smiodecho $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
923*3d8817e4Smiodecho "configure:924: checking for ANSI C header files" >&5
924*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
925*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
926*3d8817e4Smiodelse
927*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
928*3d8817e4Smiod#line 929 "configure"
929*3d8817e4Smiod#include "confdefs.h"
930*3d8817e4Smiod#include <stdlib.h>
931*3d8817e4Smiod#include <stdarg.h>
932*3d8817e4Smiod#include <string.h>
933*3d8817e4Smiod#include <float.h>
934*3d8817e4SmiodEOF
935*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936*3d8817e4Smiod{ (eval echo configure:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
938*3d8817e4Smiodif test -z "$ac_err"; then
939*3d8817e4Smiod  rm -rf conftest*
940*3d8817e4Smiod  ac_cv_header_stdc=yes
941*3d8817e4Smiodelse
942*3d8817e4Smiod  echo "$ac_err" >&5
943*3d8817e4Smiod  echo "configure: failed program was:" >&5
944*3d8817e4Smiod  cat conftest.$ac_ext >&5
945*3d8817e4Smiod  rm -rf conftest*
946*3d8817e4Smiod  ac_cv_header_stdc=no
947*3d8817e4Smiodfi
948*3d8817e4Smiodrm -f conftest*
949*3d8817e4Smiod
950*3d8817e4Smiodif test $ac_cv_header_stdc = yes; then
951*3d8817e4Smiod  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
952*3d8817e4Smiodcat > conftest.$ac_ext <<EOF
953*3d8817e4Smiod#line 954 "configure"
954*3d8817e4Smiod#include "confdefs.h"
955*3d8817e4Smiod#include <string.h>
956*3d8817e4SmiodEOF
957*3d8817e4Smiodif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
958*3d8817e4Smiod  egrep "memchr" >/dev/null 2>&1; then
959*3d8817e4Smiod  :
960*3d8817e4Smiodelse
961*3d8817e4Smiod  rm -rf conftest*
962*3d8817e4Smiod  ac_cv_header_stdc=no
963*3d8817e4Smiodfi
964*3d8817e4Smiodrm -f conftest*
965*3d8817e4Smiod
966*3d8817e4Smiodfi
967*3d8817e4Smiod
968*3d8817e4Smiodif test $ac_cv_header_stdc = yes; then
969*3d8817e4Smiod  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
970*3d8817e4Smiodcat > conftest.$ac_ext <<EOF
971*3d8817e4Smiod#line 972 "configure"
972*3d8817e4Smiod#include "confdefs.h"
973*3d8817e4Smiod#include <stdlib.h>
974*3d8817e4SmiodEOF
975*3d8817e4Smiodif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
976*3d8817e4Smiod  egrep "free" >/dev/null 2>&1; then
977*3d8817e4Smiod  :
978*3d8817e4Smiodelse
979*3d8817e4Smiod  rm -rf conftest*
980*3d8817e4Smiod  ac_cv_header_stdc=no
981*3d8817e4Smiodfi
982*3d8817e4Smiodrm -f conftest*
983*3d8817e4Smiod
984*3d8817e4Smiodfi
985*3d8817e4Smiod
986*3d8817e4Smiodif test $ac_cv_header_stdc = yes; then
987*3d8817e4Smiod  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
988*3d8817e4Smiodif test "$cross_compiling" = yes; then
989*3d8817e4Smiod  :
990*3d8817e4Smiodelse
991*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
992*3d8817e4Smiod#line 993 "configure"
993*3d8817e4Smiod#include "confdefs.h"
994*3d8817e4Smiod#include <ctype.h>
995*3d8817e4Smiod#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
996*3d8817e4Smiod#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
997*3d8817e4Smiod#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
998*3d8817e4Smiodint main () { int i; for (i = 0; i < 256; i++)
999*3d8817e4Smiodif (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1000*3d8817e4Smiodexit (0); }
1001*3d8817e4Smiod
1002*3d8817e4SmiodEOF
1003*3d8817e4Smiodif { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1004*3d8817e4Smiodthen
1005*3d8817e4Smiod  :
1006*3d8817e4Smiodelse
1007*3d8817e4Smiod  echo "configure: failed program was:" >&5
1008*3d8817e4Smiod  cat conftest.$ac_ext >&5
1009*3d8817e4Smiod  rm -fr conftest*
1010*3d8817e4Smiod  ac_cv_header_stdc=no
1011*3d8817e4Smiodfi
1012*3d8817e4Smiodrm -fr conftest*
1013*3d8817e4Smiodfi
1014*3d8817e4Smiod
1015*3d8817e4Smiodfi
1016*3d8817e4Smiodfi
1017*3d8817e4Smiod
1018*3d8817e4Smiodecho "$ac_t""$ac_cv_header_stdc" 1>&6
1019*3d8817e4Smiodif test $ac_cv_header_stdc = yes; then
1020*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1021*3d8817e4Smiod#define STDC_HEADERS 1
1022*3d8817e4SmiodEOF
1023*3d8817e4Smiod
1024*3d8817e4Smiodfi
1025*3d8817e4Smiod
1026*3d8817e4Smiodecho $ac_n "checking for working const""... $ac_c" 1>&6
1027*3d8817e4Smiodecho "configure:1028: checking for working const" >&5
1028*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1029*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1030*3d8817e4Smiodelse
1031*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1032*3d8817e4Smiod#line 1033 "configure"
1033*3d8817e4Smiod#include "confdefs.h"
1034*3d8817e4Smiod
1035*3d8817e4Smiodint main() {
1036*3d8817e4Smiod
1037*3d8817e4Smiod/* Ultrix mips cc rejects this.  */
1038*3d8817e4Smiodtypedef int charset[2]; const charset x;
1039*3d8817e4Smiod/* SunOS 4.1.1 cc rejects this.  */
1040*3d8817e4Smiodchar const *const *ccp;
1041*3d8817e4Smiodchar **p;
1042*3d8817e4Smiod/* NEC SVR4.0.2 mips cc rejects this.  */
1043*3d8817e4Smiodstruct point {int x, y;};
1044*3d8817e4Smiodstatic struct point const zero = {0,0};
1045*3d8817e4Smiod/* AIX XL C 1.02.0.0 rejects this.
1046*3d8817e4Smiod   It does not let you subtract one const X* pointer from another in an arm
1047*3d8817e4Smiod   of an if-expression whose if-part is not a constant expression */
1048*3d8817e4Smiodconst char *g = "string";
1049*3d8817e4Smiodccp = &g + (g ? g-g : 0);
1050*3d8817e4Smiod/* HPUX 7.0 cc rejects these. */
1051*3d8817e4Smiod++ccp;
1052*3d8817e4Smiodp = (char**) ccp;
1053*3d8817e4Smiodccp = (char const *const *) p;
1054*3d8817e4Smiod{ /* SCO 3.2v4 cc rejects this.  */
1055*3d8817e4Smiod  char *t;
1056*3d8817e4Smiod  char const *s = 0 ? (char *) 0 : (char const *) 0;
1057*3d8817e4Smiod
1058*3d8817e4Smiod  *t++ = 0;
1059*3d8817e4Smiod}
1060*3d8817e4Smiod{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1061*3d8817e4Smiod  int x[] = {25, 17};
1062*3d8817e4Smiod  const int *foo = &x[0];
1063*3d8817e4Smiod  ++foo;
1064*3d8817e4Smiod}
1065*3d8817e4Smiod{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1066*3d8817e4Smiod  typedef const int *iptr;
1067*3d8817e4Smiod  iptr p = 0;
1068*3d8817e4Smiod  ++p;
1069*3d8817e4Smiod}
1070*3d8817e4Smiod{ /* AIX XL C 1.02.0.0 rejects this saying
1071*3d8817e4Smiod     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1072*3d8817e4Smiod  struct s { int j; const int *ap[3]; };
1073*3d8817e4Smiod  struct s *b; b->j = 5;
1074*3d8817e4Smiod}
1075*3d8817e4Smiod{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1076*3d8817e4Smiod  const int foo = 10;
1077*3d8817e4Smiod}
1078*3d8817e4Smiod
1079*3d8817e4Smiod; return 0; }
1080*3d8817e4SmiodEOF
1081*3d8817e4Smiodif { (eval echo configure:1082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1082*3d8817e4Smiod  rm -rf conftest*
1083*3d8817e4Smiod  ac_cv_c_const=yes
1084*3d8817e4Smiodelse
1085*3d8817e4Smiod  echo "configure: failed program was:" >&5
1086*3d8817e4Smiod  cat conftest.$ac_ext >&5
1087*3d8817e4Smiod  rm -rf conftest*
1088*3d8817e4Smiod  ac_cv_c_const=no
1089*3d8817e4Smiodfi
1090*3d8817e4Smiodrm -f conftest*
1091*3d8817e4Smiodfi
1092*3d8817e4Smiod
1093*3d8817e4Smiodecho "$ac_t""$ac_cv_c_const" 1>&6
1094*3d8817e4Smiodif test $ac_cv_c_const = no; then
1095*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1096*3d8817e4Smiod#define const
1097*3d8817e4SmiodEOF
1098*3d8817e4Smiod
1099*3d8817e4Smiodfi
1100*3d8817e4Smiod
1101*3d8817e4Smiodecho $ac_n "checking for inline""... $ac_c" 1>&6
1102*3d8817e4Smiodecho "configure:1103: checking for inline" >&5
1103*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1104*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1105*3d8817e4Smiodelse
1106*3d8817e4Smiod  ac_cv_c_inline=no
1107*3d8817e4Smiodfor ac_kw in inline __inline__ __inline; do
1108*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1109*3d8817e4Smiod#line 1110 "configure"
1110*3d8817e4Smiod#include "confdefs.h"
1111*3d8817e4Smiod
1112*3d8817e4Smiodint main() {
1113*3d8817e4Smiod} $ac_kw foo() {
1114*3d8817e4Smiod; return 0; }
1115*3d8817e4SmiodEOF
1116*3d8817e4Smiodif { (eval echo configure:1117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1117*3d8817e4Smiod  rm -rf conftest*
1118*3d8817e4Smiod  ac_cv_c_inline=$ac_kw; break
1119*3d8817e4Smiodelse
1120*3d8817e4Smiod  echo "configure: failed program was:" >&5
1121*3d8817e4Smiod  cat conftest.$ac_ext >&5
1122*3d8817e4Smiodfi
1123*3d8817e4Smiodrm -f conftest*
1124*3d8817e4Smioddone
1125*3d8817e4Smiod
1126*3d8817e4Smiodfi
1127*3d8817e4Smiod
1128*3d8817e4Smiodecho "$ac_t""$ac_cv_c_inline" 1>&6
1129*3d8817e4Smiodcase "$ac_cv_c_inline" in
1130*3d8817e4Smiod  inline | yes) ;;
1131*3d8817e4Smiod  no) cat >> confdefs.h <<\EOF
1132*3d8817e4Smiod#define inline
1133*3d8817e4SmiodEOF
1134*3d8817e4Smiod ;;
1135*3d8817e4Smiod  *)  cat >> confdefs.h <<EOF
1136*3d8817e4Smiod#define inline $ac_cv_c_inline
1137*3d8817e4SmiodEOF
1138*3d8817e4Smiod ;;
1139*3d8817e4Smiodesac
1140*3d8817e4Smiod
1141*3d8817e4Smiodecho $ac_n "checking for off_t""... $ac_c" 1>&6
1142*3d8817e4Smiodecho "configure:1143: checking for off_t" >&5
1143*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1144*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1145*3d8817e4Smiodelse
1146*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1147*3d8817e4Smiod#line 1148 "configure"
1148*3d8817e4Smiod#include "confdefs.h"
1149*3d8817e4Smiod#include <sys/types.h>
1150*3d8817e4Smiod#if STDC_HEADERS
1151*3d8817e4Smiod#include <stdlib.h>
1152*3d8817e4Smiod#include <stddef.h>
1153*3d8817e4Smiod#endif
1154*3d8817e4SmiodEOF
1155*3d8817e4Smiodif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1156*3d8817e4Smiod  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1157*3d8817e4Smiod  rm -rf conftest*
1158*3d8817e4Smiod  ac_cv_type_off_t=yes
1159*3d8817e4Smiodelse
1160*3d8817e4Smiod  rm -rf conftest*
1161*3d8817e4Smiod  ac_cv_type_off_t=no
1162*3d8817e4Smiodfi
1163*3d8817e4Smiodrm -f conftest*
1164*3d8817e4Smiod
1165*3d8817e4Smiodfi
1166*3d8817e4Smiodecho "$ac_t""$ac_cv_type_off_t" 1>&6
1167*3d8817e4Smiodif test $ac_cv_type_off_t = no; then
1168*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1169*3d8817e4Smiod#define off_t long
1170*3d8817e4SmiodEOF
1171*3d8817e4Smiod
1172*3d8817e4Smiodfi
1173*3d8817e4Smiod
1174*3d8817e4Smiodecho $ac_n "checking for size_t""... $ac_c" 1>&6
1175*3d8817e4Smiodecho "configure:1176: checking for size_t" >&5
1176*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1177*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1178*3d8817e4Smiodelse
1179*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1180*3d8817e4Smiod#line 1181 "configure"
1181*3d8817e4Smiod#include "confdefs.h"
1182*3d8817e4Smiod#include <sys/types.h>
1183*3d8817e4Smiod#if STDC_HEADERS
1184*3d8817e4Smiod#include <stdlib.h>
1185*3d8817e4Smiod#include <stddef.h>
1186*3d8817e4Smiod#endif
1187*3d8817e4SmiodEOF
1188*3d8817e4Smiodif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1189*3d8817e4Smiod  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1190*3d8817e4Smiod  rm -rf conftest*
1191*3d8817e4Smiod  ac_cv_type_size_t=yes
1192*3d8817e4Smiodelse
1193*3d8817e4Smiod  rm -rf conftest*
1194*3d8817e4Smiod  ac_cv_type_size_t=no
1195*3d8817e4Smiodfi
1196*3d8817e4Smiodrm -f conftest*
1197*3d8817e4Smiod
1198*3d8817e4Smiodfi
1199*3d8817e4Smiodecho "$ac_t""$ac_cv_type_size_t" 1>&6
1200*3d8817e4Smiodif test $ac_cv_type_size_t = no; then
1201*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1202*3d8817e4Smiod#define size_t unsigned
1203*3d8817e4SmiodEOF
1204*3d8817e4Smiod
1205*3d8817e4Smiodfi
1206*3d8817e4Smiod
1207*3d8817e4Smiod# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1208*3d8817e4Smiod# for constant arguments.  Useless!
1209*3d8817e4Smiodecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1210*3d8817e4Smiodecho "configure:1211: checking for working alloca.h" >&5
1211*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1212*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1213*3d8817e4Smiodelse
1214*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1215*3d8817e4Smiod#line 1216 "configure"
1216*3d8817e4Smiod#include "confdefs.h"
1217*3d8817e4Smiod#include <alloca.h>
1218*3d8817e4Smiodint main() {
1219*3d8817e4Smiodchar *p = alloca(2 * sizeof(int));
1220*3d8817e4Smiod; return 0; }
1221*3d8817e4SmiodEOF
1222*3d8817e4Smiodif { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1223*3d8817e4Smiod  rm -rf conftest*
1224*3d8817e4Smiod  ac_cv_header_alloca_h=yes
1225*3d8817e4Smiodelse
1226*3d8817e4Smiod  echo "configure: failed program was:" >&5
1227*3d8817e4Smiod  cat conftest.$ac_ext >&5
1228*3d8817e4Smiod  rm -rf conftest*
1229*3d8817e4Smiod  ac_cv_header_alloca_h=no
1230*3d8817e4Smiodfi
1231*3d8817e4Smiodrm -f conftest*
1232*3d8817e4Smiodfi
1233*3d8817e4Smiod
1234*3d8817e4Smiodecho "$ac_t""$ac_cv_header_alloca_h" 1>&6
1235*3d8817e4Smiodif test $ac_cv_header_alloca_h = yes; then
1236*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1237*3d8817e4Smiod#define HAVE_ALLOCA_H 1
1238*3d8817e4SmiodEOF
1239*3d8817e4Smiod
1240*3d8817e4Smiodfi
1241*3d8817e4Smiod
1242*3d8817e4Smiodecho $ac_n "checking for alloca""... $ac_c" 1>&6
1243*3d8817e4Smiodecho "configure:1244: checking for alloca" >&5
1244*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1245*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1246*3d8817e4Smiodelse
1247*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1248*3d8817e4Smiod#line 1249 "configure"
1249*3d8817e4Smiod#include "confdefs.h"
1250*3d8817e4Smiod
1251*3d8817e4Smiod#ifdef __GNUC__
1252*3d8817e4Smiod# define alloca __builtin_alloca
1253*3d8817e4Smiod#else
1254*3d8817e4Smiod# if HAVE_ALLOCA_H
1255*3d8817e4Smiod#  include <alloca.h>
1256*3d8817e4Smiod# else
1257*3d8817e4Smiod#  ifdef _AIX
1258*3d8817e4Smiod #pragma alloca
1259*3d8817e4Smiod#  else
1260*3d8817e4Smiod#   ifndef alloca /* predefined by HP cc +Olibcalls */
1261*3d8817e4Smiodchar *alloca ();
1262*3d8817e4Smiod#   endif
1263*3d8817e4Smiod#  endif
1264*3d8817e4Smiod# endif
1265*3d8817e4Smiod#endif
1266*3d8817e4Smiod
1267*3d8817e4Smiodint main() {
1268*3d8817e4Smiodchar *p = (char *) alloca(1);
1269*3d8817e4Smiod; return 0; }
1270*3d8817e4SmiodEOF
1271*3d8817e4Smiodif { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1272*3d8817e4Smiod  rm -rf conftest*
1273*3d8817e4Smiod  ac_cv_func_alloca_works=yes
1274*3d8817e4Smiodelse
1275*3d8817e4Smiod  echo "configure: failed program was:" >&5
1276*3d8817e4Smiod  cat conftest.$ac_ext >&5
1277*3d8817e4Smiod  rm -rf conftest*
1278*3d8817e4Smiod  ac_cv_func_alloca_works=no
1279*3d8817e4Smiodfi
1280*3d8817e4Smiodrm -f conftest*
1281*3d8817e4Smiodfi
1282*3d8817e4Smiod
1283*3d8817e4Smiodecho "$ac_t""$ac_cv_func_alloca_works" 1>&6
1284*3d8817e4Smiodif test $ac_cv_func_alloca_works = yes; then
1285*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1286*3d8817e4Smiod#define HAVE_ALLOCA 1
1287*3d8817e4SmiodEOF
1288*3d8817e4Smiod
1289*3d8817e4Smiodfi
1290*3d8817e4Smiod
1291*3d8817e4Smiodif test $ac_cv_func_alloca_works = no; then
1292*3d8817e4Smiod  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1293*3d8817e4Smiod  # that cause trouble.  Some versions do not even contain alloca or
1294*3d8817e4Smiod  # contain a buggy version.  If you still want to use their alloca,
1295*3d8817e4Smiod  # use ar to extract alloca.o from them instead of compiling alloca.c.
1296*3d8817e4Smiod  ALLOCA=alloca.o
1297*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1298*3d8817e4Smiod#define C_ALLOCA 1
1299*3d8817e4SmiodEOF
1300*3d8817e4Smiod
1301*3d8817e4Smiod
1302*3d8817e4Smiodecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1303*3d8817e4Smiodecho "configure:1304: checking whether alloca needs Cray hooks" >&5
1304*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1305*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1306*3d8817e4Smiodelse
1307*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1308*3d8817e4Smiod#line 1309 "configure"
1309*3d8817e4Smiod#include "confdefs.h"
1310*3d8817e4Smiod#if defined(CRAY) && ! defined(CRAY2)
1311*3d8817e4Smiodwebecray
1312*3d8817e4Smiod#else
1313*3d8817e4Smiodwenotbecray
1314*3d8817e4Smiod#endif
1315*3d8817e4Smiod
1316*3d8817e4SmiodEOF
1317*3d8817e4Smiodif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318*3d8817e4Smiod  egrep "webecray" >/dev/null 2>&1; then
1319*3d8817e4Smiod  rm -rf conftest*
1320*3d8817e4Smiod  ac_cv_os_cray=yes
1321*3d8817e4Smiodelse
1322*3d8817e4Smiod  rm -rf conftest*
1323*3d8817e4Smiod  ac_cv_os_cray=no
1324*3d8817e4Smiodfi
1325*3d8817e4Smiodrm -f conftest*
1326*3d8817e4Smiod
1327*3d8817e4Smiodfi
1328*3d8817e4Smiod
1329*3d8817e4Smiodecho "$ac_t""$ac_cv_os_cray" 1>&6
1330*3d8817e4Smiodif test $ac_cv_os_cray = yes; then
1331*3d8817e4Smiodfor ac_func in _getb67 GETB67 getb67; do
1332*3d8817e4Smiod  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1333*3d8817e4Smiodecho "configure:1334: checking for $ac_func" >&5
1334*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1335*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1336*3d8817e4Smiodelse
1337*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1338*3d8817e4Smiod#line 1339 "configure"
1339*3d8817e4Smiod#include "confdefs.h"
1340*3d8817e4Smiod/* System header to define __stub macros and hopefully few prototypes,
1341*3d8817e4Smiod    which can conflict with char $ac_func(); below.  */
1342*3d8817e4Smiod#include <assert.h>
1343*3d8817e4Smiod/* Override any gcc2 internal prototype to avoid an error.  */
1344*3d8817e4Smiod/* We use char because int might match the return type of a gcc2
1345*3d8817e4Smiod    builtin and then its argument prototype would still apply.  */
1346*3d8817e4Smiodchar $ac_func();
1347*3d8817e4Smiod
1348*3d8817e4Smiodint main() {
1349*3d8817e4Smiod
1350*3d8817e4Smiod/* The GNU C library defines this for functions which it implements
1351*3d8817e4Smiod    to always fail with ENOSYS.  Some functions are actually named
1352*3d8817e4Smiod    something starting with __ and the normal name is an alias.  */
1353*3d8817e4Smiod#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1354*3d8817e4Smiodchoke me
1355*3d8817e4Smiod#else
1356*3d8817e4Smiod$ac_func();
1357*3d8817e4Smiod#endif
1358*3d8817e4Smiod
1359*3d8817e4Smiod; return 0; }
1360*3d8817e4SmiodEOF
1361*3d8817e4Smiodif { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1362*3d8817e4Smiod  rm -rf conftest*
1363*3d8817e4Smiod  eval "ac_cv_func_$ac_func=yes"
1364*3d8817e4Smiodelse
1365*3d8817e4Smiod  echo "configure: failed program was:" >&5
1366*3d8817e4Smiod  cat conftest.$ac_ext >&5
1367*3d8817e4Smiod  rm -rf conftest*
1368*3d8817e4Smiod  eval "ac_cv_func_$ac_func=no"
1369*3d8817e4Smiodfi
1370*3d8817e4Smiodrm -f conftest*
1371*3d8817e4Smiodfi
1372*3d8817e4Smiod
1373*3d8817e4Smiodif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1374*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1375*3d8817e4Smiod  cat >> confdefs.h <<EOF
1376*3d8817e4Smiod#define CRAY_STACKSEG_END $ac_func
1377*3d8817e4SmiodEOF
1378*3d8817e4Smiod
1379*3d8817e4Smiod  break
1380*3d8817e4Smiodelse
1381*3d8817e4Smiod  echo "$ac_t""no" 1>&6
1382*3d8817e4Smiodfi
1383*3d8817e4Smiod
1384*3d8817e4Smioddone
1385*3d8817e4Smiodfi
1386*3d8817e4Smiod
1387*3d8817e4Smiodecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1388*3d8817e4Smiodecho "configure:1389: checking stack direction for C alloca" >&5
1389*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1390*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1391*3d8817e4Smiodelse
1392*3d8817e4Smiod  if test "$cross_compiling" = yes; then
1393*3d8817e4Smiod  ac_cv_c_stack_direction=0
1394*3d8817e4Smiodelse
1395*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1396*3d8817e4Smiod#line 1397 "configure"
1397*3d8817e4Smiod#include "confdefs.h"
1398*3d8817e4Smiodfind_stack_direction ()
1399*3d8817e4Smiod{
1400*3d8817e4Smiod  static char *addr = 0;
1401*3d8817e4Smiod  auto char dummy;
1402*3d8817e4Smiod  if (addr == 0)
1403*3d8817e4Smiod    {
1404*3d8817e4Smiod      addr = &dummy;
1405*3d8817e4Smiod      return find_stack_direction ();
1406*3d8817e4Smiod    }
1407*3d8817e4Smiod  else
1408*3d8817e4Smiod    return (&dummy > addr) ? 1 : -1;
1409*3d8817e4Smiod}
1410*3d8817e4Smiodmain ()
1411*3d8817e4Smiod{
1412*3d8817e4Smiod  exit (find_stack_direction() < 0);
1413*3d8817e4Smiod}
1414*3d8817e4SmiodEOF
1415*3d8817e4Smiodif { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1416*3d8817e4Smiodthen
1417*3d8817e4Smiod  ac_cv_c_stack_direction=1
1418*3d8817e4Smiodelse
1419*3d8817e4Smiod  echo "configure: failed program was:" >&5
1420*3d8817e4Smiod  cat conftest.$ac_ext >&5
1421*3d8817e4Smiod  rm -fr conftest*
1422*3d8817e4Smiod  ac_cv_c_stack_direction=-1
1423*3d8817e4Smiodfi
1424*3d8817e4Smiodrm -fr conftest*
1425*3d8817e4Smiodfi
1426*3d8817e4Smiod
1427*3d8817e4Smiodfi
1428*3d8817e4Smiod
1429*3d8817e4Smiodecho "$ac_t""$ac_cv_c_stack_direction" 1>&6
1430*3d8817e4Smiodcat >> confdefs.h <<EOF
1431*3d8817e4Smiod#define STACK_DIRECTION $ac_cv_c_stack_direction
1432*3d8817e4SmiodEOF
1433*3d8817e4Smiod
1434*3d8817e4Smiodfi
1435*3d8817e4Smiod
1436*3d8817e4Smiodfor ac_hdr in unistd.h
1437*3d8817e4Smioddo
1438*3d8817e4Smiodac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1439*3d8817e4Smiodecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1440*3d8817e4Smiodecho "configure:1441: checking for $ac_hdr" >&5
1441*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1442*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1443*3d8817e4Smiodelse
1444*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1445*3d8817e4Smiod#line 1446 "configure"
1446*3d8817e4Smiod#include "confdefs.h"
1447*3d8817e4Smiod#include <$ac_hdr>
1448*3d8817e4SmiodEOF
1449*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1450*3d8817e4Smiod{ (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1451*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
1452*3d8817e4Smiodif test -z "$ac_err"; then
1453*3d8817e4Smiod  rm -rf conftest*
1454*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=yes"
1455*3d8817e4Smiodelse
1456*3d8817e4Smiod  echo "$ac_err" >&5
1457*3d8817e4Smiod  echo "configure: failed program was:" >&5
1458*3d8817e4Smiod  cat conftest.$ac_ext >&5
1459*3d8817e4Smiod  rm -rf conftest*
1460*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=no"
1461*3d8817e4Smiodfi
1462*3d8817e4Smiodrm -f conftest*
1463*3d8817e4Smiodfi
1464*3d8817e4Smiodif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1465*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1466*3d8817e4Smiod    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1467*3d8817e4Smiod  cat >> confdefs.h <<EOF
1468*3d8817e4Smiod#define $ac_tr_hdr 1
1469*3d8817e4SmiodEOF
1470*3d8817e4Smiod
1471*3d8817e4Smiodelse
1472*3d8817e4Smiod  echo "$ac_t""no" 1>&6
1473*3d8817e4Smiodfi
1474*3d8817e4Smioddone
1475*3d8817e4Smiod
1476*3d8817e4Smiodfor ac_func in getpagesize
1477*3d8817e4Smioddo
1478*3d8817e4Smiodecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
1479*3d8817e4Smiodecho "configure:1480: checking for $ac_func" >&5
1480*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1481*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1482*3d8817e4Smiodelse
1483*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1484*3d8817e4Smiod#line 1485 "configure"
1485*3d8817e4Smiod#include "confdefs.h"
1486*3d8817e4Smiod/* System header to define __stub macros and hopefully few prototypes,
1487*3d8817e4Smiod    which can conflict with char $ac_func(); below.  */
1488*3d8817e4Smiod#include <assert.h>
1489*3d8817e4Smiod/* Override any gcc2 internal prototype to avoid an error.  */
1490*3d8817e4Smiod/* We use char because int might match the return type of a gcc2
1491*3d8817e4Smiod    builtin and then its argument prototype would still apply.  */
1492*3d8817e4Smiodchar $ac_func();
1493*3d8817e4Smiod
1494*3d8817e4Smiodint main() {
1495*3d8817e4Smiod
1496*3d8817e4Smiod/* The GNU C library defines this for functions which it implements
1497*3d8817e4Smiod    to always fail with ENOSYS.  Some functions are actually named
1498*3d8817e4Smiod    something starting with __ and the normal name is an alias.  */
1499*3d8817e4Smiod#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1500*3d8817e4Smiodchoke me
1501*3d8817e4Smiod#else
1502*3d8817e4Smiod$ac_func();
1503*3d8817e4Smiod#endif
1504*3d8817e4Smiod
1505*3d8817e4Smiod; return 0; }
1506*3d8817e4SmiodEOF
1507*3d8817e4Smiodif { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1508*3d8817e4Smiod  rm -rf conftest*
1509*3d8817e4Smiod  eval "ac_cv_func_$ac_func=yes"
1510*3d8817e4Smiodelse
1511*3d8817e4Smiod  echo "configure: failed program was:" >&5
1512*3d8817e4Smiod  cat conftest.$ac_ext >&5
1513*3d8817e4Smiod  rm -rf conftest*
1514*3d8817e4Smiod  eval "ac_cv_func_$ac_func=no"
1515*3d8817e4Smiodfi
1516*3d8817e4Smiodrm -f conftest*
1517*3d8817e4Smiodfi
1518*3d8817e4Smiod
1519*3d8817e4Smiodif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1520*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1521*3d8817e4Smiod    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1522*3d8817e4Smiod  cat >> confdefs.h <<EOF
1523*3d8817e4Smiod#define $ac_tr_func 1
1524*3d8817e4SmiodEOF
1525*3d8817e4Smiod
1526*3d8817e4Smiodelse
1527*3d8817e4Smiod  echo "$ac_t""no" 1>&6
1528*3d8817e4Smiodfi
1529*3d8817e4Smioddone
1530*3d8817e4Smiod
1531*3d8817e4Smiodecho $ac_n "checking for working mmap""... $ac_c" 1>&6
1532*3d8817e4Smiodecho "configure:1533: checking for working mmap" >&5
1533*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1534*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1535*3d8817e4Smiodelse
1536*3d8817e4Smiod  if test "$cross_compiling" = yes; then
1537*3d8817e4Smiod  ac_cv_func_mmap_fixed_mapped=no
1538*3d8817e4Smiodelse
1539*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1540*3d8817e4Smiod#line 1541 "configure"
1541*3d8817e4Smiod#include "confdefs.h"
1542*3d8817e4Smiod
1543*3d8817e4Smiod/* Thanks to Mike Haertel and Jim Avera for this test.
1544*3d8817e4Smiod   Here is a matrix of mmap possibilities:
1545*3d8817e4Smiod	mmap private not fixed
1546*3d8817e4Smiod	mmap private fixed at somewhere currently unmapped
1547*3d8817e4Smiod	mmap private fixed at somewhere already mapped
1548*3d8817e4Smiod	mmap shared not fixed
1549*3d8817e4Smiod	mmap shared fixed at somewhere currently unmapped
1550*3d8817e4Smiod	mmap shared fixed at somewhere already mapped
1551*3d8817e4Smiod   For private mappings, we should verify that changes cannot be read()
1552*3d8817e4Smiod   back from the file, nor mmap's back from the file at a different
1553*3d8817e4Smiod   address.  (There have been systems where private was not correctly
1554*3d8817e4Smiod   implemented like the infamous i386 svr4.0, and systems where the
1555*3d8817e4Smiod   VM page cache was not coherent with the filesystem buffer cache
1556*3d8817e4Smiod   like early versions of FreeBSD and possibly contemporary NetBSD.)
1557*3d8817e4Smiod   For shared mappings, we should conversely verify that changes get
1558*3d8817e4Smiod   propogated back to all the places they're supposed to be.
1559*3d8817e4Smiod
1560*3d8817e4Smiod   Grep wants private fixed already mapped.
1561*3d8817e4Smiod   The main things grep needs to know about mmap are:
1562*3d8817e4Smiod   * does it exist and is it safe to write into the mmap'd area
1563*3d8817e4Smiod   * how to use it (BSD variants)  */
1564*3d8817e4Smiod#include <sys/types.h>
1565*3d8817e4Smiod#include <fcntl.h>
1566*3d8817e4Smiod#include <sys/mman.h>
1567*3d8817e4Smiod
1568*3d8817e4Smiod/* This mess was copied from the GNU getpagesize.h.  */
1569*3d8817e4Smiod#ifndef HAVE_GETPAGESIZE
1570*3d8817e4Smiod# ifdef HAVE_UNISTD_H
1571*3d8817e4Smiod#  include <unistd.h>
1572*3d8817e4Smiod# endif
1573*3d8817e4Smiod
1574*3d8817e4Smiod/* Assume that all systems that can run configure have sys/param.h.  */
1575*3d8817e4Smiod# ifndef HAVE_SYS_PARAM_H
1576*3d8817e4Smiod#  define HAVE_SYS_PARAM_H 1
1577*3d8817e4Smiod# endif
1578*3d8817e4Smiod
1579*3d8817e4Smiod# ifdef _SC_PAGESIZE
1580*3d8817e4Smiod#  define getpagesize() sysconf(_SC_PAGESIZE)
1581*3d8817e4Smiod# else /* no _SC_PAGESIZE */
1582*3d8817e4Smiod#  ifdef HAVE_SYS_PARAM_H
1583*3d8817e4Smiod#   include <sys/param.h>
1584*3d8817e4Smiod#   ifdef EXEC_PAGESIZE
1585*3d8817e4Smiod#    define getpagesize() EXEC_PAGESIZE
1586*3d8817e4Smiod#   else /* no EXEC_PAGESIZE */
1587*3d8817e4Smiod#    ifdef NBPG
1588*3d8817e4Smiod#     define getpagesize() NBPG * CLSIZE
1589*3d8817e4Smiod#     ifndef CLSIZE
1590*3d8817e4Smiod#      define CLSIZE 1
1591*3d8817e4Smiod#     endif /* no CLSIZE */
1592*3d8817e4Smiod#    else /* no NBPG */
1593*3d8817e4Smiod#     ifdef NBPC
1594*3d8817e4Smiod#      define getpagesize() NBPC
1595*3d8817e4Smiod#     else /* no NBPC */
1596*3d8817e4Smiod#      ifdef PAGESIZE
1597*3d8817e4Smiod#       define getpagesize() PAGESIZE
1598*3d8817e4Smiod#      endif /* PAGESIZE */
1599*3d8817e4Smiod#     endif /* no NBPC */
1600*3d8817e4Smiod#    endif /* no NBPG */
1601*3d8817e4Smiod#   endif /* no EXEC_PAGESIZE */
1602*3d8817e4Smiod#  else /* no HAVE_SYS_PARAM_H */
1603*3d8817e4Smiod#   define getpagesize() 8192	/* punt totally */
1604*3d8817e4Smiod#  endif /* no HAVE_SYS_PARAM_H */
1605*3d8817e4Smiod# endif /* no _SC_PAGESIZE */
1606*3d8817e4Smiod
1607*3d8817e4Smiod#endif /* no HAVE_GETPAGESIZE */
1608*3d8817e4Smiod
1609*3d8817e4Smiod#ifdef __cplusplus
1610*3d8817e4Smiodextern "C" { void *malloc(unsigned); }
1611*3d8817e4Smiod#else
1612*3d8817e4Smiodchar *malloc();
1613*3d8817e4Smiod#endif
1614*3d8817e4Smiod
1615*3d8817e4Smiodint
1616*3d8817e4Smiodmain()
1617*3d8817e4Smiod{
1618*3d8817e4Smiod	char *data, *data2, *data3;
1619*3d8817e4Smiod	int i, pagesize;
1620*3d8817e4Smiod	int fd;
1621*3d8817e4Smiod
1622*3d8817e4Smiod	pagesize = getpagesize();
1623*3d8817e4Smiod
1624*3d8817e4Smiod	/*
1625*3d8817e4Smiod	 * First, make a file with some known garbage in it.
1626*3d8817e4Smiod	 */
1627*3d8817e4Smiod	data = malloc(pagesize);
1628*3d8817e4Smiod	if (!data)
1629*3d8817e4Smiod		exit(1);
1630*3d8817e4Smiod	for (i = 0; i < pagesize; ++i)
1631*3d8817e4Smiod		*(data + i) = rand();
1632*3d8817e4Smiod	umask(0);
1633*3d8817e4Smiod	fd = creat("conftestmmap", 0600);
1634*3d8817e4Smiod	if (fd < 0)
1635*3d8817e4Smiod		exit(1);
1636*3d8817e4Smiod	if (write(fd, data, pagesize) != pagesize)
1637*3d8817e4Smiod		exit(1);
1638*3d8817e4Smiod	close(fd);
1639*3d8817e4Smiod
1640*3d8817e4Smiod	/*
1641*3d8817e4Smiod	 * Next, try to mmap the file at a fixed address which
1642*3d8817e4Smiod	 * already has something else allocated at it.  If we can,
1643*3d8817e4Smiod	 * also make sure that we see the same garbage.
1644*3d8817e4Smiod	 */
1645*3d8817e4Smiod	fd = open("conftestmmap", O_RDWR);
1646*3d8817e4Smiod	if (fd < 0)
1647*3d8817e4Smiod		exit(1);
1648*3d8817e4Smiod	data2 = malloc(2 * pagesize);
1649*3d8817e4Smiod	if (!data2)
1650*3d8817e4Smiod		exit(1);
1651*3d8817e4Smiod	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1652*3d8817e4Smiod	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1653*3d8817e4Smiod	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
1654*3d8817e4Smiod		exit(1);
1655*3d8817e4Smiod	for (i = 0; i < pagesize; ++i)
1656*3d8817e4Smiod		if (*(data + i) != *(data2 + i))
1657*3d8817e4Smiod			exit(1);
1658*3d8817e4Smiod
1659*3d8817e4Smiod	/*
1660*3d8817e4Smiod	 * Finally, make sure that changes to the mapped area
1661*3d8817e4Smiod	 * do not percolate back to the file as seen by read().
1662*3d8817e4Smiod	 * (This is a bug on some variants of i386 svr4.0.)
1663*3d8817e4Smiod	 */
1664*3d8817e4Smiod	for (i = 0; i < pagesize; ++i)
1665*3d8817e4Smiod		*(data2 + i) = *(data2 + i) + 1;
1666*3d8817e4Smiod	data3 = malloc(pagesize);
1667*3d8817e4Smiod	if (!data3)
1668*3d8817e4Smiod		exit(1);
1669*3d8817e4Smiod	if (read(fd, data3, pagesize) != pagesize)
1670*3d8817e4Smiod		exit(1);
1671*3d8817e4Smiod	for (i = 0; i < pagesize; ++i)
1672*3d8817e4Smiod		if (*(data + i) != *(data3 + i))
1673*3d8817e4Smiod			exit(1);
1674*3d8817e4Smiod	close(fd);
1675*3d8817e4Smiod	unlink("conftestmmap");
1676*3d8817e4Smiod	exit(0);
1677*3d8817e4Smiod}
1678*3d8817e4Smiod
1679*3d8817e4SmiodEOF
1680*3d8817e4Smiodif { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1681*3d8817e4Smiodthen
1682*3d8817e4Smiod  ac_cv_func_mmap_fixed_mapped=yes
1683*3d8817e4Smiodelse
1684*3d8817e4Smiod  echo "configure: failed program was:" >&5
1685*3d8817e4Smiod  cat conftest.$ac_ext >&5
1686*3d8817e4Smiod  rm -fr conftest*
1687*3d8817e4Smiod  ac_cv_func_mmap_fixed_mapped=no
1688*3d8817e4Smiodfi
1689*3d8817e4Smiodrm -fr conftest*
1690*3d8817e4Smiodfi
1691*3d8817e4Smiod
1692*3d8817e4Smiodfi
1693*3d8817e4Smiod
1694*3d8817e4Smiodecho "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1695*3d8817e4Smiodif test $ac_cv_func_mmap_fixed_mapped = yes; then
1696*3d8817e4Smiod  cat >> confdefs.h <<\EOF
1697*3d8817e4Smiod#define HAVE_MMAP 1
1698*3d8817e4SmiodEOF
1699*3d8817e4Smiod
1700*3d8817e4Smiodfi
1701*3d8817e4Smiod
1702*3d8817e4Smiod
1703*3d8817e4Smiod   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1704*3d8817e4Smiodunistd.h values.h sys/param.h
1705*3d8817e4Smioddo
1706*3d8817e4Smiodac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1707*3d8817e4Smiodecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1708*3d8817e4Smiodecho "configure:1709: checking for $ac_hdr" >&5
1709*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1710*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1711*3d8817e4Smiodelse
1712*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1713*3d8817e4Smiod#line 1714 "configure"
1714*3d8817e4Smiod#include "confdefs.h"
1715*3d8817e4Smiod#include <$ac_hdr>
1716*3d8817e4SmiodEOF
1717*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1718*3d8817e4Smiod{ (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1719*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
1720*3d8817e4Smiodif test -z "$ac_err"; then
1721*3d8817e4Smiod  rm -rf conftest*
1722*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=yes"
1723*3d8817e4Smiodelse
1724*3d8817e4Smiod  echo "$ac_err" >&5
1725*3d8817e4Smiod  echo "configure: failed program was:" >&5
1726*3d8817e4Smiod  cat conftest.$ac_ext >&5
1727*3d8817e4Smiod  rm -rf conftest*
1728*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=no"
1729*3d8817e4Smiodfi
1730*3d8817e4Smiodrm -f conftest*
1731*3d8817e4Smiodfi
1732*3d8817e4Smiodif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1733*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1734*3d8817e4Smiod    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1735*3d8817e4Smiod  cat >> confdefs.h <<EOF
1736*3d8817e4Smiod#define $ac_tr_hdr 1
1737*3d8817e4SmiodEOF
1738*3d8817e4Smiod
1739*3d8817e4Smiodelse
1740*3d8817e4Smiod  echo "$ac_t""no" 1>&6
1741*3d8817e4Smiodfi
1742*3d8817e4Smioddone
1743*3d8817e4Smiod
1744*3d8817e4Smiod   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1745*3d8817e4Smiod__argz_count __argz_stringify __argz_next
1746*3d8817e4Smioddo
1747*3d8817e4Smiodecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
1748*3d8817e4Smiodecho "configure:1749: checking for $ac_func" >&5
1749*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1750*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1751*3d8817e4Smiodelse
1752*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1753*3d8817e4Smiod#line 1754 "configure"
1754*3d8817e4Smiod#include "confdefs.h"
1755*3d8817e4Smiod/* System header to define __stub macros and hopefully few prototypes,
1756*3d8817e4Smiod    which can conflict with char $ac_func(); below.  */
1757*3d8817e4Smiod#include <assert.h>
1758*3d8817e4Smiod/* Override any gcc2 internal prototype to avoid an error.  */
1759*3d8817e4Smiod/* We use char because int might match the return type of a gcc2
1760*3d8817e4Smiod    builtin and then its argument prototype would still apply.  */
1761*3d8817e4Smiodchar $ac_func();
1762*3d8817e4Smiod
1763*3d8817e4Smiodint main() {
1764*3d8817e4Smiod
1765*3d8817e4Smiod/* The GNU C library defines this for functions which it implements
1766*3d8817e4Smiod    to always fail with ENOSYS.  Some functions are actually named
1767*3d8817e4Smiod    something starting with __ and the normal name is an alias.  */
1768*3d8817e4Smiod#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1769*3d8817e4Smiodchoke me
1770*3d8817e4Smiod#else
1771*3d8817e4Smiod$ac_func();
1772*3d8817e4Smiod#endif
1773*3d8817e4Smiod
1774*3d8817e4Smiod; return 0; }
1775*3d8817e4SmiodEOF
1776*3d8817e4Smiodif { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1777*3d8817e4Smiod  rm -rf conftest*
1778*3d8817e4Smiod  eval "ac_cv_func_$ac_func=yes"
1779*3d8817e4Smiodelse
1780*3d8817e4Smiod  echo "configure: failed program was:" >&5
1781*3d8817e4Smiod  cat conftest.$ac_ext >&5
1782*3d8817e4Smiod  rm -rf conftest*
1783*3d8817e4Smiod  eval "ac_cv_func_$ac_func=no"
1784*3d8817e4Smiodfi
1785*3d8817e4Smiodrm -f conftest*
1786*3d8817e4Smiodfi
1787*3d8817e4Smiod
1788*3d8817e4Smiodif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1789*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1790*3d8817e4Smiod    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1791*3d8817e4Smiod  cat >> confdefs.h <<EOF
1792*3d8817e4Smiod#define $ac_tr_func 1
1793*3d8817e4SmiodEOF
1794*3d8817e4Smiod
1795*3d8817e4Smiodelse
1796*3d8817e4Smiod  echo "$ac_t""no" 1>&6
1797*3d8817e4Smiodfi
1798*3d8817e4Smioddone
1799*3d8817e4Smiod
1800*3d8817e4Smiod
1801*3d8817e4Smiod   if test "${ac_cv_func_stpcpy+set}" != "set"; then
1802*3d8817e4Smiod     for ac_func in stpcpy
1803*3d8817e4Smioddo
1804*3d8817e4Smiodecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
1805*3d8817e4Smiodecho "configure:1806: checking for $ac_func" >&5
1806*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1807*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1808*3d8817e4Smiodelse
1809*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1810*3d8817e4Smiod#line 1811 "configure"
1811*3d8817e4Smiod#include "confdefs.h"
1812*3d8817e4Smiod/* System header to define __stub macros and hopefully few prototypes,
1813*3d8817e4Smiod    which can conflict with char $ac_func(); below.  */
1814*3d8817e4Smiod#include <assert.h>
1815*3d8817e4Smiod/* Override any gcc2 internal prototype to avoid an error.  */
1816*3d8817e4Smiod/* We use char because int might match the return type of a gcc2
1817*3d8817e4Smiod    builtin and then its argument prototype would still apply.  */
1818*3d8817e4Smiodchar $ac_func();
1819*3d8817e4Smiod
1820*3d8817e4Smiodint main() {
1821*3d8817e4Smiod
1822*3d8817e4Smiod/* The GNU C library defines this for functions which it implements
1823*3d8817e4Smiod    to always fail with ENOSYS.  Some functions are actually named
1824*3d8817e4Smiod    something starting with __ and the normal name is an alias.  */
1825*3d8817e4Smiod#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1826*3d8817e4Smiodchoke me
1827*3d8817e4Smiod#else
1828*3d8817e4Smiod$ac_func();
1829*3d8817e4Smiod#endif
1830*3d8817e4Smiod
1831*3d8817e4Smiod; return 0; }
1832*3d8817e4SmiodEOF
1833*3d8817e4Smiodif { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1834*3d8817e4Smiod  rm -rf conftest*
1835*3d8817e4Smiod  eval "ac_cv_func_$ac_func=yes"
1836*3d8817e4Smiodelse
1837*3d8817e4Smiod  echo "configure: failed program was:" >&5
1838*3d8817e4Smiod  cat conftest.$ac_ext >&5
1839*3d8817e4Smiod  rm -rf conftest*
1840*3d8817e4Smiod  eval "ac_cv_func_$ac_func=no"
1841*3d8817e4Smiodfi
1842*3d8817e4Smiodrm -f conftest*
1843*3d8817e4Smiodfi
1844*3d8817e4Smiod
1845*3d8817e4Smiodif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1846*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1847*3d8817e4Smiod    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1848*3d8817e4Smiod  cat >> confdefs.h <<EOF
1849*3d8817e4Smiod#define $ac_tr_func 1
1850*3d8817e4SmiodEOF
1851*3d8817e4Smiod
1852*3d8817e4Smiodelse
1853*3d8817e4Smiod  echo "$ac_t""no" 1>&6
1854*3d8817e4Smiodfi
1855*3d8817e4Smioddone
1856*3d8817e4Smiod
1857*3d8817e4Smiod   fi
1858*3d8817e4Smiod   if test "${ac_cv_func_stpcpy}" = "yes"; then
1859*3d8817e4Smiod     cat >> confdefs.h <<\EOF
1860*3d8817e4Smiod#define HAVE_STPCPY 1
1861*3d8817e4SmiodEOF
1862*3d8817e4Smiod
1863*3d8817e4Smiod   fi
1864*3d8817e4Smiod
1865*3d8817e4Smiod   if test $ac_cv_header_locale_h = yes; then
1866*3d8817e4Smiod    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1867*3d8817e4Smiodecho "configure:1868: checking for LC_MESSAGES" >&5
1868*3d8817e4Smiodif eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1869*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1870*3d8817e4Smiodelse
1871*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1872*3d8817e4Smiod#line 1873 "configure"
1873*3d8817e4Smiod#include "confdefs.h"
1874*3d8817e4Smiod#include <locale.h>
1875*3d8817e4Smiodint main() {
1876*3d8817e4Smiodreturn LC_MESSAGES
1877*3d8817e4Smiod; return 0; }
1878*3d8817e4SmiodEOF
1879*3d8817e4Smiodif { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1880*3d8817e4Smiod  rm -rf conftest*
1881*3d8817e4Smiod  am_cv_val_LC_MESSAGES=yes
1882*3d8817e4Smiodelse
1883*3d8817e4Smiod  echo "configure: failed program was:" >&5
1884*3d8817e4Smiod  cat conftest.$ac_ext >&5
1885*3d8817e4Smiod  rm -rf conftest*
1886*3d8817e4Smiod  am_cv_val_LC_MESSAGES=no
1887*3d8817e4Smiodfi
1888*3d8817e4Smiodrm -f conftest*
1889*3d8817e4Smiodfi
1890*3d8817e4Smiod
1891*3d8817e4Smiodecho "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
1892*3d8817e4Smiod    if test $am_cv_val_LC_MESSAGES = yes; then
1893*3d8817e4Smiod      cat >> confdefs.h <<\EOF
1894*3d8817e4Smiod#define HAVE_LC_MESSAGES 1
1895*3d8817e4SmiodEOF
1896*3d8817e4Smiod
1897*3d8817e4Smiod    fi
1898*3d8817e4Smiod  fi
1899*3d8817e4Smiod   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
1900*3d8817e4Smiodecho "configure:1901: checking whether NLS is requested" >&5
1901*3d8817e4Smiod        # Check whether --enable-nls or --disable-nls was given.
1902*3d8817e4Smiodif test "${enable_nls+set}" = set; then
1903*3d8817e4Smiod  enableval="$enable_nls"
1904*3d8817e4Smiod  USE_NLS=$enableval
1905*3d8817e4Smiodelse
1906*3d8817e4Smiod  USE_NLS=yes
1907*3d8817e4Smiodfi
1908*3d8817e4Smiod
1909*3d8817e4Smiod    echo "$ac_t""$USE_NLS" 1>&6
1910*3d8817e4Smiod
1911*3d8817e4Smiod
1912*3d8817e4Smiod    USE_INCLUDED_LIBINTL=no
1913*3d8817e4Smiod
1914*3d8817e4Smiod        if test "$USE_NLS" = "yes"; then
1915*3d8817e4Smiod      cat >> confdefs.h <<\EOF
1916*3d8817e4Smiod#define ENABLE_NLS 1
1917*3d8817e4SmiodEOF
1918*3d8817e4Smiod
1919*3d8817e4Smiod      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
1920*3d8817e4Smiodecho "configure:1921: checking whether included gettext is requested" >&5
1921*3d8817e4Smiod      # Check whether --with-included-gettext or --without-included-gettext was given.
1922*3d8817e4Smiodif test "${with_included_gettext+set}" = set; then
1923*3d8817e4Smiod  withval="$with_included_gettext"
1924*3d8817e4Smiod  nls_cv_force_use_gnu_gettext=$withval
1925*3d8817e4Smiodelse
1926*3d8817e4Smiod  nls_cv_force_use_gnu_gettext=no
1927*3d8817e4Smiodfi
1928*3d8817e4Smiod
1929*3d8817e4Smiod      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
1930*3d8817e4Smiod
1931*3d8817e4Smiod      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
1932*3d8817e4Smiod      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
1933*3d8817e4Smiod                        		nls_cv_header_intl=
1934*3d8817e4Smiod	nls_cv_header_libgt=
1935*3d8817e4Smiod	CATOBJEXT=NONE
1936*3d8817e4Smiod
1937*3d8817e4Smiod	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
1938*3d8817e4Smiodecho $ac_n "checking for libintl.h""... $ac_c" 1>&6
1939*3d8817e4Smiodecho "configure:1940: checking for libintl.h" >&5
1940*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1942*3d8817e4Smiodelse
1943*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1944*3d8817e4Smiod#line 1945 "configure"
1945*3d8817e4Smiod#include "confdefs.h"
1946*3d8817e4Smiod#include <libintl.h>
1947*3d8817e4SmiodEOF
1948*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949*3d8817e4Smiod{ (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
1951*3d8817e4Smiodif test -z "$ac_err"; then
1952*3d8817e4Smiod  rm -rf conftest*
1953*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=yes"
1954*3d8817e4Smiodelse
1955*3d8817e4Smiod  echo "$ac_err" >&5
1956*3d8817e4Smiod  echo "configure: failed program was:" >&5
1957*3d8817e4Smiod  cat conftest.$ac_ext >&5
1958*3d8817e4Smiod  rm -rf conftest*
1959*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=no"
1960*3d8817e4Smiodfi
1961*3d8817e4Smiodrm -f conftest*
1962*3d8817e4Smiodfi
1963*3d8817e4Smiodif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
1965*3d8817e4Smiod  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
1966*3d8817e4Smiodecho "configure:1967: checking for gettext in libc" >&5
1967*3d8817e4Smiodif eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
1968*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1969*3d8817e4Smiodelse
1970*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
1971*3d8817e4Smiod#line 1972 "configure"
1972*3d8817e4Smiod#include "confdefs.h"
1973*3d8817e4Smiod#include <libintl.h>
1974*3d8817e4Smiodint main() {
1975*3d8817e4Smiodreturn (int) gettext ("")
1976*3d8817e4Smiod; return 0; }
1977*3d8817e4SmiodEOF
1978*3d8817e4Smiodif { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1979*3d8817e4Smiod  rm -rf conftest*
1980*3d8817e4Smiod  gt_cv_func_gettext_libc=yes
1981*3d8817e4Smiodelse
1982*3d8817e4Smiod  echo "configure: failed program was:" >&5
1983*3d8817e4Smiod  cat conftest.$ac_ext >&5
1984*3d8817e4Smiod  rm -rf conftest*
1985*3d8817e4Smiod  gt_cv_func_gettext_libc=no
1986*3d8817e4Smiodfi
1987*3d8817e4Smiodrm -f conftest*
1988*3d8817e4Smiodfi
1989*3d8817e4Smiod
1990*3d8817e4Smiodecho "$ac_t""$gt_cv_func_gettext_libc" 1>&6
1991*3d8817e4Smiod
1992*3d8817e4Smiod	   if test "$gt_cv_func_gettext_libc" != "yes"; then
1993*3d8817e4Smiod	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
1994*3d8817e4Smiodecho "configure:1995: checking for bindtextdomain in -lintl" >&5
1995*3d8817e4Smiodac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
1996*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1997*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
1998*3d8817e4Smiodelse
1999*3d8817e4Smiod  ac_save_LIBS="$LIBS"
2000*3d8817e4SmiodLIBS="-lintl  $LIBS"
2001*3d8817e4Smiodcat > conftest.$ac_ext <<EOF
2002*3d8817e4Smiod#line 2003 "configure"
2003*3d8817e4Smiod#include "confdefs.h"
2004*3d8817e4Smiod/* Override any gcc2 internal prototype to avoid an error.  */
2005*3d8817e4Smiod/* We use char because int might match the return type of a gcc2
2006*3d8817e4Smiod    builtin and then its argument prototype would still apply.  */
2007*3d8817e4Smiodchar bindtextdomain();
2008*3d8817e4Smiod
2009*3d8817e4Smiodint main() {
2010*3d8817e4Smiodbindtextdomain()
2011*3d8817e4Smiod; return 0; }
2012*3d8817e4SmiodEOF
2013*3d8817e4Smiodif { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2014*3d8817e4Smiod  rm -rf conftest*
2015*3d8817e4Smiod  eval "ac_cv_lib_$ac_lib_var=yes"
2016*3d8817e4Smiodelse
2017*3d8817e4Smiod  echo "configure: failed program was:" >&5
2018*3d8817e4Smiod  cat conftest.$ac_ext >&5
2019*3d8817e4Smiod  rm -rf conftest*
2020*3d8817e4Smiod  eval "ac_cv_lib_$ac_lib_var=no"
2021*3d8817e4Smiodfi
2022*3d8817e4Smiodrm -f conftest*
2023*3d8817e4SmiodLIBS="$ac_save_LIBS"
2024*3d8817e4Smiod
2025*3d8817e4Smiodfi
2026*3d8817e4Smiodif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2027*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
2028*3d8817e4Smiod  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2029*3d8817e4Smiodecho "configure:2030: checking for gettext in libintl" >&5
2030*3d8817e4Smiodif eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2031*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2032*3d8817e4Smiodelse
2033*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
2034*3d8817e4Smiod#line 2035 "configure"
2035*3d8817e4Smiod#include "confdefs.h"
2036*3d8817e4Smiod
2037*3d8817e4Smiodint main() {
2038*3d8817e4Smiodreturn (int) gettext ("")
2039*3d8817e4Smiod; return 0; }
2040*3d8817e4SmiodEOF
2041*3d8817e4Smiodif { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2042*3d8817e4Smiod  rm -rf conftest*
2043*3d8817e4Smiod  gt_cv_func_gettext_libintl=yes
2044*3d8817e4Smiodelse
2045*3d8817e4Smiod  echo "configure: failed program was:" >&5
2046*3d8817e4Smiod  cat conftest.$ac_ext >&5
2047*3d8817e4Smiod  rm -rf conftest*
2048*3d8817e4Smiod  gt_cv_func_gettext_libintl=no
2049*3d8817e4Smiodfi
2050*3d8817e4Smiodrm -f conftest*
2051*3d8817e4Smiodfi
2052*3d8817e4Smiod
2053*3d8817e4Smiodecho "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2054*3d8817e4Smiodelse
2055*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2056*3d8817e4Smiodfi
2057*3d8817e4Smiod
2058*3d8817e4Smiod	   fi
2059*3d8817e4Smiod
2060*3d8817e4Smiod	   if test "$gt_cv_func_gettext_libc" = "yes" \
2061*3d8817e4Smiod	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
2062*3d8817e4Smiod	      cat >> confdefs.h <<\EOF
2063*3d8817e4Smiod#define HAVE_GETTEXT 1
2064*3d8817e4SmiodEOF
2065*3d8817e4Smiod
2066*3d8817e4Smiod	      # Extract the first word of "msgfmt", so it can be a program name with args.
2067*3d8817e4Smiodset dummy msgfmt; ac_word=$2
2068*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069*3d8817e4Smiodecho "configure:2070: checking for $ac_word" >&5
2070*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2071*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2072*3d8817e4Smiodelse
2073*3d8817e4Smiod  case "$MSGFMT" in
2074*3d8817e4Smiod  /*)
2075*3d8817e4Smiod  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2076*3d8817e4Smiod  ;;
2077*3d8817e4Smiod  *)
2078*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2079*3d8817e4Smiod  for ac_dir in $PATH; do
2080*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
2081*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
2082*3d8817e4Smiod      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2083*3d8817e4Smiod	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2084*3d8817e4Smiod	break
2085*3d8817e4Smiod      fi
2086*3d8817e4Smiod    fi
2087*3d8817e4Smiod  done
2088*3d8817e4Smiod  IFS="$ac_save_ifs"
2089*3d8817e4Smiod  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2090*3d8817e4Smiod  ;;
2091*3d8817e4Smiodesac
2092*3d8817e4Smiodfi
2093*3d8817e4SmiodMSGFMT="$ac_cv_path_MSGFMT"
2094*3d8817e4Smiodif test -n "$MSGFMT"; then
2095*3d8817e4Smiod  echo "$ac_t""$MSGFMT" 1>&6
2096*3d8817e4Smiodelse
2097*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2098*3d8817e4Smiodfi
2099*3d8817e4Smiod	      if test "$MSGFMT" != "no"; then
2100*3d8817e4Smiod		for ac_func in dcgettext
2101*3d8817e4Smioddo
2102*3d8817e4Smiodecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
2103*3d8817e4Smiodecho "configure:2104: checking for $ac_func" >&5
2104*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2105*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2106*3d8817e4Smiodelse
2107*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
2108*3d8817e4Smiod#line 2109 "configure"
2109*3d8817e4Smiod#include "confdefs.h"
2110*3d8817e4Smiod/* System header to define __stub macros and hopefully few prototypes,
2111*3d8817e4Smiod    which can conflict with char $ac_func(); below.  */
2112*3d8817e4Smiod#include <assert.h>
2113*3d8817e4Smiod/* Override any gcc2 internal prototype to avoid an error.  */
2114*3d8817e4Smiod/* We use char because int might match the return type of a gcc2
2115*3d8817e4Smiod    builtin and then its argument prototype would still apply.  */
2116*3d8817e4Smiodchar $ac_func();
2117*3d8817e4Smiod
2118*3d8817e4Smiodint main() {
2119*3d8817e4Smiod
2120*3d8817e4Smiod/* The GNU C library defines this for functions which it implements
2121*3d8817e4Smiod    to always fail with ENOSYS.  Some functions are actually named
2122*3d8817e4Smiod    something starting with __ and the normal name is an alias.  */
2123*3d8817e4Smiod#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2124*3d8817e4Smiodchoke me
2125*3d8817e4Smiod#else
2126*3d8817e4Smiod$ac_func();
2127*3d8817e4Smiod#endif
2128*3d8817e4Smiod
2129*3d8817e4Smiod; return 0; }
2130*3d8817e4SmiodEOF
2131*3d8817e4Smiodif { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2132*3d8817e4Smiod  rm -rf conftest*
2133*3d8817e4Smiod  eval "ac_cv_func_$ac_func=yes"
2134*3d8817e4Smiodelse
2135*3d8817e4Smiod  echo "configure: failed program was:" >&5
2136*3d8817e4Smiod  cat conftest.$ac_ext >&5
2137*3d8817e4Smiod  rm -rf conftest*
2138*3d8817e4Smiod  eval "ac_cv_func_$ac_func=no"
2139*3d8817e4Smiodfi
2140*3d8817e4Smiodrm -f conftest*
2141*3d8817e4Smiodfi
2142*3d8817e4Smiod
2143*3d8817e4Smiodif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2144*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
2145*3d8817e4Smiod    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2146*3d8817e4Smiod  cat >> confdefs.h <<EOF
2147*3d8817e4Smiod#define $ac_tr_func 1
2148*3d8817e4SmiodEOF
2149*3d8817e4Smiod
2150*3d8817e4Smiodelse
2151*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2152*3d8817e4Smiodfi
2153*3d8817e4Smioddone
2154*3d8817e4Smiod
2155*3d8817e4Smiod		# Extract the first word of "gmsgfmt", so it can be a program name with args.
2156*3d8817e4Smiodset dummy gmsgfmt; ac_word=$2
2157*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158*3d8817e4Smiodecho "configure:2159: checking for $ac_word" >&5
2159*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2160*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2161*3d8817e4Smiodelse
2162*3d8817e4Smiod  case "$GMSGFMT" in
2163*3d8817e4Smiod  /*)
2164*3d8817e4Smiod  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2165*3d8817e4Smiod  ;;
2166*3d8817e4Smiod  ?:/*)
2167*3d8817e4Smiod  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2168*3d8817e4Smiod  ;;
2169*3d8817e4Smiod  *)
2170*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2171*3d8817e4Smiod  for ac_dir in $PATH; do
2172*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
2173*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
2174*3d8817e4Smiod      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2175*3d8817e4Smiod      break
2176*3d8817e4Smiod    fi
2177*3d8817e4Smiod  done
2178*3d8817e4Smiod  IFS="$ac_save_ifs"
2179*3d8817e4Smiod  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2180*3d8817e4Smiod  ;;
2181*3d8817e4Smiodesac
2182*3d8817e4Smiodfi
2183*3d8817e4SmiodGMSGFMT="$ac_cv_path_GMSGFMT"
2184*3d8817e4Smiodif test -n "$GMSGFMT"; then
2185*3d8817e4Smiod  echo "$ac_t""$GMSGFMT" 1>&6
2186*3d8817e4Smiodelse
2187*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2188*3d8817e4Smiodfi
2189*3d8817e4Smiod
2190*3d8817e4Smiod		# Extract the first word of "xgettext", so it can be a program name with args.
2191*3d8817e4Smiodset dummy xgettext; ac_word=$2
2192*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
2193*3d8817e4Smiodecho "configure:2194: checking for $ac_word" >&5
2194*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2195*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2196*3d8817e4Smiodelse
2197*3d8817e4Smiod  case "$XGETTEXT" in
2198*3d8817e4Smiod  /*)
2199*3d8817e4Smiod  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2200*3d8817e4Smiod  ;;
2201*3d8817e4Smiod  *)
2202*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2203*3d8817e4Smiod  for ac_dir in $PATH; do
2204*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
2205*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
2206*3d8817e4Smiod      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2207*3d8817e4Smiod	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2208*3d8817e4Smiod	break
2209*3d8817e4Smiod      fi
2210*3d8817e4Smiod    fi
2211*3d8817e4Smiod  done
2212*3d8817e4Smiod  IFS="$ac_save_ifs"
2213*3d8817e4Smiod  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2214*3d8817e4Smiod  ;;
2215*3d8817e4Smiodesac
2216*3d8817e4Smiodfi
2217*3d8817e4SmiodXGETTEXT="$ac_cv_path_XGETTEXT"
2218*3d8817e4Smiodif test -n "$XGETTEXT"; then
2219*3d8817e4Smiod  echo "$ac_t""$XGETTEXT" 1>&6
2220*3d8817e4Smiodelse
2221*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2222*3d8817e4Smiodfi
2223*3d8817e4Smiod
2224*3d8817e4Smiod		cat > conftest.$ac_ext <<EOF
2225*3d8817e4Smiod#line 2226 "configure"
2226*3d8817e4Smiod#include "confdefs.h"
2227*3d8817e4Smiod
2228*3d8817e4Smiodint main() {
2229*3d8817e4Smiodextern int _nl_msg_cat_cntr;
2230*3d8817e4Smiod			       return _nl_msg_cat_cntr
2231*3d8817e4Smiod; return 0; }
2232*3d8817e4SmiodEOF
2233*3d8817e4Smiodif { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2234*3d8817e4Smiod  rm -rf conftest*
2235*3d8817e4Smiod  CATOBJEXT=.gmo
2236*3d8817e4Smiod		   DATADIRNAME=share
2237*3d8817e4Smiodelse
2238*3d8817e4Smiod  echo "configure: failed program was:" >&5
2239*3d8817e4Smiod  cat conftest.$ac_ext >&5
2240*3d8817e4Smiod  rm -rf conftest*
2241*3d8817e4Smiod  CATOBJEXT=.mo
2242*3d8817e4Smiod		   DATADIRNAME=lib
2243*3d8817e4Smiodfi
2244*3d8817e4Smiodrm -f conftest*
2245*3d8817e4Smiod		INSTOBJEXT=.mo
2246*3d8817e4Smiod	      fi
2247*3d8817e4Smiod	    fi
2248*3d8817e4Smiod
2249*3d8817e4Smiodelse
2250*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2251*3d8817e4Smiodfi
2252*3d8817e4Smiod
2253*3d8817e4Smiod
2254*3d8817e4Smiod
2255*3d8817e4Smiod        if test "$CATOBJEXT" = "NONE"; then
2256*3d8817e4Smiod	  	  	  nls_cv_use_gnu_gettext=yes
2257*3d8817e4Smiod        fi
2258*3d8817e4Smiod      fi
2259*3d8817e4Smiod
2260*3d8817e4Smiod      if test "$nls_cv_use_gnu_gettext" = "yes"; then
2261*3d8817e4Smiod                INTLOBJS="\$(GETTOBJS)"
2262*3d8817e4Smiod        # Extract the first word of "msgfmt", so it can be a program name with args.
2263*3d8817e4Smiodset dummy msgfmt; ac_word=$2
2264*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265*3d8817e4Smiodecho "configure:2266: checking for $ac_word" >&5
2266*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2267*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2268*3d8817e4Smiodelse
2269*3d8817e4Smiod  case "$MSGFMT" in
2270*3d8817e4Smiod  /*)
2271*3d8817e4Smiod  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2272*3d8817e4Smiod  ;;
2273*3d8817e4Smiod  *)
2274*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2275*3d8817e4Smiod  for ac_dir in $PATH; do
2276*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
2277*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
2278*3d8817e4Smiod      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2279*3d8817e4Smiod	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2280*3d8817e4Smiod	break
2281*3d8817e4Smiod      fi
2282*3d8817e4Smiod    fi
2283*3d8817e4Smiod  done
2284*3d8817e4Smiod  IFS="$ac_save_ifs"
2285*3d8817e4Smiod  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2286*3d8817e4Smiod  ;;
2287*3d8817e4Smiodesac
2288*3d8817e4Smiodfi
2289*3d8817e4SmiodMSGFMT="$ac_cv_path_MSGFMT"
2290*3d8817e4Smiodif test -n "$MSGFMT"; then
2291*3d8817e4Smiod  echo "$ac_t""$MSGFMT" 1>&6
2292*3d8817e4Smiodelse
2293*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2294*3d8817e4Smiodfi
2295*3d8817e4Smiod
2296*3d8817e4Smiod        # Extract the first word of "gmsgfmt", so it can be a program name with args.
2297*3d8817e4Smiodset dummy gmsgfmt; ac_word=$2
2298*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299*3d8817e4Smiodecho "configure:2300: checking for $ac_word" >&5
2300*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2301*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2302*3d8817e4Smiodelse
2303*3d8817e4Smiod  case "$GMSGFMT" in
2304*3d8817e4Smiod  /*)
2305*3d8817e4Smiod  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2306*3d8817e4Smiod  ;;
2307*3d8817e4Smiod  ?:/*)
2308*3d8817e4Smiod  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2309*3d8817e4Smiod  ;;
2310*3d8817e4Smiod  *)
2311*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2312*3d8817e4Smiod  for ac_dir in $PATH; do
2313*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
2314*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
2315*3d8817e4Smiod      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2316*3d8817e4Smiod      break
2317*3d8817e4Smiod    fi
2318*3d8817e4Smiod  done
2319*3d8817e4Smiod  IFS="$ac_save_ifs"
2320*3d8817e4Smiod  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2321*3d8817e4Smiod  ;;
2322*3d8817e4Smiodesac
2323*3d8817e4Smiodfi
2324*3d8817e4SmiodGMSGFMT="$ac_cv_path_GMSGFMT"
2325*3d8817e4Smiodif test -n "$GMSGFMT"; then
2326*3d8817e4Smiod  echo "$ac_t""$GMSGFMT" 1>&6
2327*3d8817e4Smiodelse
2328*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2329*3d8817e4Smiodfi
2330*3d8817e4Smiod
2331*3d8817e4Smiod        # Extract the first word of "xgettext", so it can be a program name with args.
2332*3d8817e4Smiodset dummy xgettext; ac_word=$2
2333*3d8817e4Smiodecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334*3d8817e4Smiodecho "configure:2335: checking for $ac_word" >&5
2335*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2336*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2337*3d8817e4Smiodelse
2338*3d8817e4Smiod  case "$XGETTEXT" in
2339*3d8817e4Smiod  /*)
2340*3d8817e4Smiod  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2341*3d8817e4Smiod  ;;
2342*3d8817e4Smiod  *)
2343*3d8817e4Smiod  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2344*3d8817e4Smiod  for ac_dir in $PATH; do
2345*3d8817e4Smiod    test -z "$ac_dir" && ac_dir=.
2346*3d8817e4Smiod    if test -f $ac_dir/$ac_word; then
2347*3d8817e4Smiod      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2348*3d8817e4Smiod	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2349*3d8817e4Smiod	break
2350*3d8817e4Smiod      fi
2351*3d8817e4Smiod    fi
2352*3d8817e4Smiod  done
2353*3d8817e4Smiod  IFS="$ac_save_ifs"
2354*3d8817e4Smiod  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2355*3d8817e4Smiod  ;;
2356*3d8817e4Smiodesac
2357*3d8817e4Smiodfi
2358*3d8817e4SmiodXGETTEXT="$ac_cv_path_XGETTEXT"
2359*3d8817e4Smiodif test -n "$XGETTEXT"; then
2360*3d8817e4Smiod  echo "$ac_t""$XGETTEXT" 1>&6
2361*3d8817e4Smiodelse
2362*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2363*3d8817e4Smiodfi
2364*3d8817e4Smiod
2365*3d8817e4Smiod
2366*3d8817e4Smiod	USE_INCLUDED_LIBINTL=yes
2367*3d8817e4Smiod        CATOBJEXT=.gmo
2368*3d8817e4Smiod        INSTOBJEXT=.mo
2369*3d8817e4Smiod        DATADIRNAME=share
2370*3d8817e4Smiod	INTLDEPS='$(top_builddir)/../intl/libintl.a'
2371*3d8817e4Smiod	INTLLIBS=$INTLDEPS
2372*3d8817e4Smiod	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2373*3d8817e4Smiod        nls_cv_header_intl=libintl.h
2374*3d8817e4Smiod        nls_cv_header_libgt=libgettext.h
2375*3d8817e4Smiod      fi
2376*3d8817e4Smiod
2377*3d8817e4Smiod            if test "$XGETTEXT" != ":"; then
2378*3d8817e4Smiod			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2379*3d8817e4Smiod	  : ;
2380*3d8817e4Smiod	else
2381*3d8817e4Smiod	  echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2382*3d8817e4Smiod	  XGETTEXT=":"
2383*3d8817e4Smiod	fi
2384*3d8817e4Smiod      fi
2385*3d8817e4Smiod
2386*3d8817e4Smiod      # We need to process the po/ directory.
2387*3d8817e4Smiod      POSUB=po
2388*3d8817e4Smiod    else
2389*3d8817e4Smiod      DATADIRNAME=share
2390*3d8817e4Smiod      nls_cv_header_intl=libintl.h
2391*3d8817e4Smiod      nls_cv_header_libgt=libgettext.h
2392*3d8817e4Smiod    fi
2393*3d8817e4Smiod
2394*3d8817e4Smiod    # If this is used in GNU gettext we have to set USE_NLS to `yes'
2395*3d8817e4Smiod    # because some of the sources are only built for this goal.
2396*3d8817e4Smiod    if test "$PACKAGE" = gettext; then
2397*3d8817e4Smiod      USE_NLS=yes
2398*3d8817e4Smiod      USE_INCLUDED_LIBINTL=yes
2399*3d8817e4Smiod    fi
2400*3d8817e4Smiod
2401*3d8817e4Smiod                for lang in $ALL_LINGUAS; do
2402*3d8817e4Smiod      GMOFILES="$GMOFILES $lang.gmo"
2403*3d8817e4Smiod      POFILES="$POFILES $lang.po"
2404*3d8817e4Smiod    done
2405*3d8817e4Smiod
2406*3d8817e4Smiod
2407*3d8817e4Smiod
2408*3d8817e4Smiod
2409*3d8817e4Smiod
2410*3d8817e4Smiod
2411*3d8817e4Smiod
2412*3d8817e4Smiod
2413*3d8817e4Smiod
2414*3d8817e4Smiod
2415*3d8817e4Smiod
2416*3d8817e4Smiod
2417*3d8817e4Smiod
2418*3d8817e4Smiod
2419*3d8817e4Smiod   if test "x$CATOBJEXT" != "x"; then
2420*3d8817e4Smiod     if test "x$ALL_LINGUAS" = "x"; then
2421*3d8817e4Smiod       LINGUAS=
2422*3d8817e4Smiod     else
2423*3d8817e4Smiod       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2424*3d8817e4Smiodecho "configure:2425: checking for catalogs to be installed" >&5
2425*3d8817e4Smiod       NEW_LINGUAS=
2426*3d8817e4Smiod       for lang in ${LINGUAS=$ALL_LINGUAS}; do
2427*3d8817e4Smiod         case "$ALL_LINGUAS" in
2428*3d8817e4Smiod          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2429*3d8817e4Smiod         esac
2430*3d8817e4Smiod       done
2431*3d8817e4Smiod       LINGUAS=$NEW_LINGUAS
2432*3d8817e4Smiod       echo "$ac_t""$LINGUAS" 1>&6
2433*3d8817e4Smiod     fi
2434*3d8817e4Smiod
2435*3d8817e4Smiod          if test -n "$LINGUAS"; then
2436*3d8817e4Smiod       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2437*3d8817e4Smiod     fi
2438*3d8817e4Smiod   fi
2439*3d8817e4Smiod
2440*3d8817e4Smiod            if test $ac_cv_header_locale_h = yes; then
2441*3d8817e4Smiod     INCLUDE_LOCALE_H="#include <locale.h>"
2442*3d8817e4Smiod   else
2443*3d8817e4Smiod     INCLUDE_LOCALE_H="\
2444*3d8817e4Smiod/* The system does not provide the header <locale.h>.  Take care yourself.  */"
2445*3d8817e4Smiod   fi
2446*3d8817e4Smiod
2447*3d8817e4Smiod
2448*3d8817e4Smiod            if test -f $srcdir/po2tbl.sed.in; then
2449*3d8817e4Smiod      if test "$CATOBJEXT" = ".cat"; then
2450*3d8817e4Smiod	 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2451*3d8817e4Smiodecho $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2452*3d8817e4Smiodecho "configure:2453: checking for linux/version.h" >&5
2453*3d8817e4Smiodif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2454*3d8817e4Smiod  echo $ac_n "(cached) $ac_c" 1>&6
2455*3d8817e4Smiodelse
2456*3d8817e4Smiod  cat > conftest.$ac_ext <<EOF
2457*3d8817e4Smiod#line 2458 "configure"
2458*3d8817e4Smiod#include "confdefs.h"
2459*3d8817e4Smiod#include <linux/version.h>
2460*3d8817e4SmiodEOF
2461*3d8817e4Smiodac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462*3d8817e4Smiod{ (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463*3d8817e4Smiodac_err=`grep -v '^ *+' conftest.out`
2464*3d8817e4Smiodif test -z "$ac_err"; then
2465*3d8817e4Smiod  rm -rf conftest*
2466*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=yes"
2467*3d8817e4Smiodelse
2468*3d8817e4Smiod  echo "$ac_err" >&5
2469*3d8817e4Smiod  echo "configure: failed program was:" >&5
2470*3d8817e4Smiod  cat conftest.$ac_ext >&5
2471*3d8817e4Smiod  rm -rf conftest*
2472*3d8817e4Smiod  eval "ac_cv_header_$ac_safe=no"
2473*3d8817e4Smiodfi
2474*3d8817e4Smiodrm -f conftest*
2475*3d8817e4Smiodfi
2476*3d8817e4Smiodif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2477*3d8817e4Smiod  echo "$ac_t""yes" 1>&6
2478*3d8817e4Smiod  msgformat=linux
2479*3d8817e4Smiodelse
2480*3d8817e4Smiod  echo "$ac_t""no" 1>&6
2481*3d8817e4Smiodmsgformat=xopen
2482*3d8817e4Smiodfi
2483*3d8817e4Smiod
2484*3d8817e4Smiod
2485*3d8817e4Smiod	          	 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2486*3d8817e4Smiod      fi
2487*3d8817e4Smiod            sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2488*3d8817e4Smiod	 $srcdir/po2tbl.sed.in > po2tbl.sed
2489*3d8817e4Smiod   fi
2490*3d8817e4Smiod
2491*3d8817e4Smiod            if test "$PACKAGE" = "gettext"; then
2492*3d8817e4Smiod     GT_NO="#NO#"
2493*3d8817e4Smiod     GT_YES=
2494*3d8817e4Smiod   else
2495*3d8817e4Smiod     GT_NO=
2496*3d8817e4Smiod     GT_YES="#YES#"
2497*3d8817e4Smiod   fi
2498*3d8817e4Smiod
2499*3d8817e4Smiod
2500*3d8817e4Smiod
2501*3d8817e4Smiod   MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2502*3d8817e4Smiod
2503*3d8817e4Smiod
2504*3d8817e4Smiod      l=
2505*3d8817e4Smiod
2506*3d8817e4Smiod
2507*3d8817e4Smiod            if test -d $srcdir/po; then
2508*3d8817e4Smiod      test -d po || mkdir po
2509*3d8817e4Smiod      if test "x$srcdir" != "x."; then
2510*3d8817e4Smiod	 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2511*3d8817e4Smiod	    posrcprefix="$srcdir/"
2512*3d8817e4Smiod	 else
2513*3d8817e4Smiod	    posrcprefix="../$srcdir/"
2514*3d8817e4Smiod	 fi
2515*3d8817e4Smiod      else
2516*3d8817e4Smiod	 posrcprefix="../"
2517*3d8817e4Smiod      fi
2518*3d8817e4Smiod      rm -f po/POTFILES
2519*3d8817e4Smiod      sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2520*3d8817e4Smiod	 < $srcdir/po/POTFILES.in > po/POTFILES
2521*3d8817e4Smiod   fi
2522*3d8817e4Smiod
2523*3d8817e4Smiod
2524*3d8817e4Smiod
2525*3d8817e4Smiodtrap '' 1 2 15
2526*3d8817e4Smiodcat > confcache <<\EOF
2527*3d8817e4Smiod# This file is a shell script that caches the results of configure
2528*3d8817e4Smiod# tests run on this system so they can be shared between configure
2529*3d8817e4Smiod# scripts and configure runs.  It is not useful on other systems.
2530*3d8817e4Smiod# If it contains results you don't want to keep, you may remove or edit it.
2531*3d8817e4Smiod#
2532*3d8817e4Smiod# By default, configure uses ./config.cache as the cache file,
2533*3d8817e4Smiod# creating it if it does not exist already.  You can give configure
2534*3d8817e4Smiod# the --cache-file=FILE option to use a different cache file; that is
2535*3d8817e4Smiod# what configure does when it calls configure scripts in
2536*3d8817e4Smiod# subdirectories, so they share the cache.
2537*3d8817e4Smiod# Giving --cache-file=/dev/null disables caching, for debugging configure.
2538*3d8817e4Smiod# config.status only pays attention to the cache file if you give it the
2539*3d8817e4Smiod# --recheck option to rerun configure.
2540*3d8817e4Smiod#
2541*3d8817e4SmiodEOF
2542*3d8817e4Smiod# The following way of writing the cache mishandles newlines in values,
2543*3d8817e4Smiod# but we know of no workaround that is simple, portable, and efficient.
2544*3d8817e4Smiod# So, don't put newlines in cache variables' values.
2545*3d8817e4Smiod# Ultrix sh set writes to stderr and can't be redirected directly,
2546*3d8817e4Smiod# and sets the high bit in the cache file unless we assign to the vars.
2547*3d8817e4Smiod(set) 2>&1 |
2548*3d8817e4Smiod  case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2549*3d8817e4Smiod  *ac_space=\ *)
2550*3d8817e4Smiod    # `set' does not quote correctly, so add quotes (double-quote substitution
2551*3d8817e4Smiod    # turns \\\\ into \\, and sed turns \\ into \).
2552*3d8817e4Smiod    sed -n \
2553*3d8817e4Smiod      -e "s/'/'\\\\''/g" \
2554*3d8817e4Smiod      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2555*3d8817e4Smiod    ;;
2556*3d8817e4Smiod  *)
2557*3d8817e4Smiod    # `set' quotes correctly as required by POSIX, so do not add quotes.
2558*3d8817e4Smiod    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2559*3d8817e4Smiod    ;;
2560*3d8817e4Smiod  esac >> confcache
2561*3d8817e4Smiodif cmp -s $cache_file confcache; then
2562*3d8817e4Smiod  :
2563*3d8817e4Smiodelse
2564*3d8817e4Smiod  if test -w $cache_file; then
2565*3d8817e4Smiod    echo "updating cache $cache_file"
2566*3d8817e4Smiod    cat confcache > $cache_file
2567*3d8817e4Smiod  else
2568*3d8817e4Smiod    echo "not updating unwritable cache $cache_file"
2569*3d8817e4Smiod  fi
2570*3d8817e4Smiodfi
2571*3d8817e4Smiodrm -f confcache
2572*3d8817e4Smiod
2573*3d8817e4Smiodtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2574*3d8817e4Smiod
2575*3d8817e4Smiodtest "x$prefix" = xNONE && prefix=$ac_default_prefix
2576*3d8817e4Smiod# Let make expand exec_prefix.
2577*3d8817e4Smiodtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2578*3d8817e4Smiod
2579*3d8817e4Smiod# Any assignment to VPATH causes Sun make to only execute
2580*3d8817e4Smiod# the first set of double-colon rules, so remove it if not needed.
2581*3d8817e4Smiod# If there is a colon in the path, we need to keep it.
2582*3d8817e4Smiodif test "x$srcdir" = x.; then
2583*3d8817e4Smiod  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2584*3d8817e4Smiodfi
2585*3d8817e4Smiod
2586*3d8817e4Smiodtrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2587*3d8817e4Smiod
2588*3d8817e4SmiodDEFS=-DHAVE_CONFIG_H
2589*3d8817e4Smiod
2590*3d8817e4Smiod# Without the "./", some shells look in PATH for config.status.
2591*3d8817e4Smiod: ${CONFIG_STATUS=./config.status}
2592*3d8817e4Smiod
2593*3d8817e4Smiodecho creating $CONFIG_STATUS
2594*3d8817e4Smiodrm -f $CONFIG_STATUS
2595*3d8817e4Smiodcat > $CONFIG_STATUS <<EOF
2596*3d8817e4Smiod#! /bin/sh
2597*3d8817e4Smiod# Generated automatically by configure.
2598*3d8817e4Smiod# Run this file to recreate the current configuration.
2599*3d8817e4Smiod# This directory was configured as follows,
2600*3d8817e4Smiod# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2601*3d8817e4Smiod#
2602*3d8817e4Smiod# $0 $ac_configure_args
2603*3d8817e4Smiod#
2604*3d8817e4Smiod# Compiler output produced by configure, useful for debugging
2605*3d8817e4Smiod# configure, is in ./config.log if it exists.
2606*3d8817e4Smiod
2607*3d8817e4Smiodac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2608*3d8817e4Smiodfor ac_option
2609*3d8817e4Smioddo
2610*3d8817e4Smiod  case "\$ac_option" in
2611*3d8817e4Smiod  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2612*3d8817e4Smiod    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2613*3d8817e4Smiod    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2614*3d8817e4Smiod  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2615*3d8817e4Smiod    echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
2616*3d8817e4Smiod    exit 0 ;;
2617*3d8817e4Smiod  -help | --help | --hel | --he | --h)
2618*3d8817e4Smiod    echo "\$ac_cs_usage"; exit 0 ;;
2619*3d8817e4Smiod  *) echo "\$ac_cs_usage"; exit 1 ;;
2620*3d8817e4Smiod  esac
2621*3d8817e4Smioddone
2622*3d8817e4Smiod
2623*3d8817e4Smiodac_given_srcdir=$srcdir
2624*3d8817e4Smiodac_given_INSTALL="$INSTALL"
2625*3d8817e4Smiod
2626*3d8817e4Smiodtrap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2627*3d8817e4SmiodEOF
2628*3d8817e4Smiodcat >> $CONFIG_STATUS <<EOF
2629*3d8817e4Smiod
2630*3d8817e4Smiod# Protect against being on the right side of a sed subst in config.status.
2631*3d8817e4Smiodsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2632*3d8817e4Smiod s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2633*3d8817e4Smiod$ac_vpsub
2634*3d8817e4Smiod$extrasub
2635*3d8817e4Smiods%@SHELL@%$SHELL%g
2636*3d8817e4Smiods%@CFLAGS@%$CFLAGS%g
2637*3d8817e4Smiods%@CPPFLAGS@%$CPPFLAGS%g
2638*3d8817e4Smiods%@CXXFLAGS@%$CXXFLAGS%g
2639*3d8817e4Smiods%@DEFS@%$DEFS%g
2640*3d8817e4Smiods%@LDFLAGS@%$LDFLAGS%g
2641*3d8817e4Smiods%@LIBS@%$LIBS%g
2642*3d8817e4Smiods%@exec_prefix@%$exec_prefix%g
2643*3d8817e4Smiods%@prefix@%$prefix%g
2644*3d8817e4Smiods%@program_transform_name@%$program_transform_name%g
2645*3d8817e4Smiods%@bindir@%$bindir%g
2646*3d8817e4Smiods%@sbindir@%$sbindir%g
2647*3d8817e4Smiods%@libexecdir@%$libexecdir%g
2648*3d8817e4Smiods%@datadir@%$datadir%g
2649*3d8817e4Smiods%@sysconfdir@%$sysconfdir%g
2650*3d8817e4Smiods%@sharedstatedir@%$sharedstatedir%g
2651*3d8817e4Smiods%@localstatedir@%$localstatedir%g
2652*3d8817e4Smiods%@libdir@%$libdir%g
2653*3d8817e4Smiods%@includedir@%$includedir%g
2654*3d8817e4Smiods%@oldincludedir@%$oldincludedir%g
2655*3d8817e4Smiods%@infodir@%$infodir%g
2656*3d8817e4Smiods%@mandir@%$mandir%g
2657*3d8817e4Smiods%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2658*3d8817e4Smiods%@INSTALL_DATA@%$INSTALL_DATA%g
2659*3d8817e4Smiods%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2660*3d8817e4Smiods%@SET_MAKE@%$SET_MAKE%g
2661*3d8817e4Smiods%@CC@%$CC%g
2662*3d8817e4Smiods%@RANLIB@%$RANLIB%g
2663*3d8817e4Smiods%@CPP@%$CPP%g
2664*3d8817e4Smiods%@ALLOCA@%$ALLOCA%g
2665*3d8817e4Smiods%@USE_NLS@%$USE_NLS%g
2666*3d8817e4Smiods%@MSGFMT@%$MSGFMT%g
2667*3d8817e4Smiods%@GMSGFMT@%$GMSGFMT%g
2668*3d8817e4Smiods%@XGETTEXT@%$XGETTEXT%g
2669*3d8817e4Smiods%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
2670*3d8817e4Smiods%@CATALOGS@%$CATALOGS%g
2671*3d8817e4Smiods%@CATOBJEXT@%$CATOBJEXT%g
2672*3d8817e4Smiods%@DATADIRNAME@%$DATADIRNAME%g
2673*3d8817e4Smiods%@GMOFILES@%$GMOFILES%g
2674*3d8817e4Smiods%@INSTOBJEXT@%$INSTOBJEXT%g
2675*3d8817e4Smiods%@INTLDEPS@%$INTLDEPS%g
2676*3d8817e4Smiods%@INTLLIBS@%$INTLLIBS%g
2677*3d8817e4Smiods%@INTLOBJS@%$INTLOBJS%g
2678*3d8817e4Smiods%@POFILES@%$POFILES%g
2679*3d8817e4Smiods%@POSUB@%$POSUB%g
2680*3d8817e4Smiods%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
2681*3d8817e4Smiods%@GT_NO@%$GT_NO%g
2682*3d8817e4Smiods%@GT_YES@%$GT_YES%g
2683*3d8817e4Smiods%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
2684*3d8817e4Smiods%@l@%$l%g
2685*3d8817e4Smiod
2686*3d8817e4SmiodCEOF
2687*3d8817e4SmiodEOF
2688*3d8817e4Smiod
2689*3d8817e4Smiodcat >> $CONFIG_STATUS <<\EOF
2690*3d8817e4Smiod
2691*3d8817e4Smiod# Split the substitutions into bite-sized pieces for seds with
2692*3d8817e4Smiod# small command number limits, like on Digital OSF/1 and HP-UX.
2693*3d8817e4Smiodac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2694*3d8817e4Smiodac_file=1 # Number of current file.
2695*3d8817e4Smiodac_beg=1 # First line for current file.
2696*3d8817e4Smiodac_end=$ac_max_sed_cmds # Line after last line for current file.
2697*3d8817e4Smiodac_more_lines=:
2698*3d8817e4Smiodac_sed_cmds=""
2699*3d8817e4Smiodwhile $ac_more_lines; do
2700*3d8817e4Smiod  if test $ac_beg -gt 1; then
2701*3d8817e4Smiod    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2702*3d8817e4Smiod  else
2703*3d8817e4Smiod    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2704*3d8817e4Smiod  fi
2705*3d8817e4Smiod  if test ! -s conftest.s$ac_file; then
2706*3d8817e4Smiod    ac_more_lines=false
2707*3d8817e4Smiod    rm -f conftest.s$ac_file
2708*3d8817e4Smiod  else
2709*3d8817e4Smiod    if test -z "$ac_sed_cmds"; then
2710*3d8817e4Smiod      ac_sed_cmds="sed -f conftest.s$ac_file"
2711*3d8817e4Smiod    else
2712*3d8817e4Smiod      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2713*3d8817e4Smiod    fi
2714*3d8817e4Smiod    ac_file=`expr $ac_file + 1`
2715*3d8817e4Smiod    ac_beg=$ac_end
2716*3d8817e4Smiod    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2717*3d8817e4Smiod  fi
2718*3d8817e4Smioddone
2719*3d8817e4Smiodif test -z "$ac_sed_cmds"; then
2720*3d8817e4Smiod  ac_sed_cmds=cat
2721*3d8817e4Smiodfi
2722*3d8817e4SmiodEOF
2723*3d8817e4Smiod
2724*3d8817e4Smiodcat >> $CONFIG_STATUS <<EOF
2725*3d8817e4Smiod
2726*3d8817e4SmiodCONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2727*3d8817e4SmiodEOF
2728*3d8817e4Smiodcat >> $CONFIG_STATUS <<\EOF
2729*3d8817e4Smiodfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2730*3d8817e4Smiod  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2731*3d8817e4Smiod  case "$ac_file" in
2732*3d8817e4Smiod  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2733*3d8817e4Smiod       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2734*3d8817e4Smiod  *) ac_file_in="${ac_file}.in" ;;
2735*3d8817e4Smiod  esac
2736*3d8817e4Smiod
2737*3d8817e4Smiod  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2738*3d8817e4Smiod
2739*3d8817e4Smiod  # Remove last slash and all that follows it.  Not all systems have dirname.
2740*3d8817e4Smiod  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2741*3d8817e4Smiod  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2742*3d8817e4Smiod    # The file is in a subdirectory.
2743*3d8817e4Smiod    test ! -d "$ac_dir" && mkdir "$ac_dir"
2744*3d8817e4Smiod    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2745*3d8817e4Smiod    # A "../" for each directory in $ac_dir_suffix.
2746*3d8817e4Smiod    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2747*3d8817e4Smiod  else
2748*3d8817e4Smiod    ac_dir_suffix= ac_dots=
2749*3d8817e4Smiod  fi
2750*3d8817e4Smiod
2751*3d8817e4Smiod  case "$ac_given_srcdir" in
2752*3d8817e4Smiod  .)  srcdir=.
2753*3d8817e4Smiod      if test -z "$ac_dots"; then top_srcdir=.
2754*3d8817e4Smiod      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2755*3d8817e4Smiod  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2756*3d8817e4Smiod  *) # Relative path.
2757*3d8817e4Smiod    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2758*3d8817e4Smiod    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2759*3d8817e4Smiod  esac
2760*3d8817e4Smiod
2761*3d8817e4Smiod  case "$ac_given_INSTALL" in
2762*3d8817e4Smiod  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2763*3d8817e4Smiod  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2764*3d8817e4Smiod  esac
2765*3d8817e4Smiod
2766*3d8817e4Smiod  echo creating "$ac_file"
2767*3d8817e4Smiod  rm -f "$ac_file"
2768*3d8817e4Smiod  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2769*3d8817e4Smiod  case "$ac_file" in
2770*3d8817e4Smiod  *Makefile*) ac_comsub="1i\\
2771*3d8817e4Smiod# $configure_input" ;;
2772*3d8817e4Smiod  *) ac_comsub= ;;
2773*3d8817e4Smiod  esac
2774*3d8817e4Smiod
2775*3d8817e4Smiod  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2776*3d8817e4Smiod  sed -e "$ac_comsub
2777*3d8817e4Smiods%@configure_input@%$configure_input%g
2778*3d8817e4Smiods%@srcdir@%$srcdir%g
2779*3d8817e4Smiods%@top_srcdir@%$top_srcdir%g
2780*3d8817e4Smiods%@INSTALL@%$INSTALL%g
2781*3d8817e4Smiod" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2782*3d8817e4Smiodfi; done
2783*3d8817e4Smiodrm -f conftest.s*
2784*3d8817e4Smiod
2785*3d8817e4Smiod# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2786*3d8817e4Smiod# NAME is the cpp macro being defined and VALUE is the value it is being given.
2787*3d8817e4Smiod#
2788*3d8817e4Smiod# ac_d sets the value in "#define NAME VALUE" lines.
2789*3d8817e4Smiodac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2790*3d8817e4Smiodac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
2791*3d8817e4Smiodac_dC='\3'
2792*3d8817e4Smiodac_dD='%g'
2793*3d8817e4Smiod# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2794*3d8817e4Smiodac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2795*3d8817e4Smiodac_uB='\([ 	]\)%\1#\2define\3'
2796*3d8817e4Smiodac_uC=' '
2797*3d8817e4Smiodac_uD='\4%g'
2798*3d8817e4Smiod# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2799*3d8817e4Smiodac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2800*3d8817e4Smiodac_eB='$%\1#\2define\3'
2801*3d8817e4Smiodac_eC=' '
2802*3d8817e4Smiodac_eD='%g'
2803*3d8817e4Smiod
2804*3d8817e4Smiodif test "${CONFIG_HEADERS+set}" != set; then
2805*3d8817e4SmiodEOF
2806*3d8817e4Smiodcat >> $CONFIG_STATUS <<EOF
2807*3d8817e4Smiod  CONFIG_HEADERS="config.h:config.in"
2808*3d8817e4SmiodEOF
2809*3d8817e4Smiodcat >> $CONFIG_STATUS <<\EOF
2810*3d8817e4Smiodfi
2811*3d8817e4Smiodfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2812*3d8817e4Smiod  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2813*3d8817e4Smiod  case "$ac_file" in
2814*3d8817e4Smiod  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2815*3d8817e4Smiod       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2816*3d8817e4Smiod  *) ac_file_in="${ac_file}.in" ;;
2817*3d8817e4Smiod  esac
2818*3d8817e4Smiod
2819*3d8817e4Smiod  echo creating $ac_file
2820*3d8817e4Smiod
2821*3d8817e4Smiod  rm -f conftest.frag conftest.in conftest.out
2822*3d8817e4Smiod  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2823*3d8817e4Smiod  cat $ac_file_inputs > conftest.in
2824*3d8817e4Smiod
2825*3d8817e4SmiodEOF
2826*3d8817e4Smiod
2827*3d8817e4Smiod# Transform confdefs.h into a sed script conftest.vals that substitutes
2828*3d8817e4Smiod# the proper values into config.h.in to produce config.h.  And first:
2829*3d8817e4Smiod# Protect against being on the right side of a sed subst in config.status.
2830*3d8817e4Smiod# Protect against being in an unquoted here document in config.status.
2831*3d8817e4Smiodrm -f conftest.vals
2832*3d8817e4Smiodcat > conftest.hdr <<\EOF
2833*3d8817e4Smiods/[\\&%]/\\&/g
2834*3d8817e4Smiods%[\\$`]%\\&%g
2835*3d8817e4Smiods%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2836*3d8817e4Smiods%ac_d%ac_u%gp
2837*3d8817e4Smiods%ac_u%ac_e%gp
2838*3d8817e4SmiodEOF
2839*3d8817e4Smiodsed -n -f conftest.hdr confdefs.h > conftest.vals
2840*3d8817e4Smiodrm -f conftest.hdr
2841*3d8817e4Smiod
2842*3d8817e4Smiod# This sed command replaces #undef with comments.  This is necessary, for
2843*3d8817e4Smiod# example, in the case of _POSIX_SOURCE, which is predefined and required
2844*3d8817e4Smiod# on some systems where configure will not decide to define it.
2845*3d8817e4Smiodcat >> conftest.vals <<\EOF
2846*3d8817e4Smiods%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2847*3d8817e4SmiodEOF
2848*3d8817e4Smiod
2849*3d8817e4Smiod# Break up conftest.vals because some shells have a limit on
2850*3d8817e4Smiod# the size of here documents, and old seds have small limits too.
2851*3d8817e4Smiod
2852*3d8817e4Smiodrm -f conftest.tail
2853*3d8817e4Smiodwhile :
2854*3d8817e4Smioddo
2855*3d8817e4Smiod  ac_lines=`grep -c . conftest.vals`
2856*3d8817e4Smiod  # grep -c gives empty output for an empty file on some AIX systems.
2857*3d8817e4Smiod  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2858*3d8817e4Smiod  # Write a limited-size here document to conftest.frag.
2859*3d8817e4Smiod  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2860*3d8817e4Smiod  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2861*3d8817e4Smiod  echo 'CEOF
2862*3d8817e4Smiod  sed -f conftest.frag conftest.in > conftest.out
2863*3d8817e4Smiod  rm -f conftest.in
2864*3d8817e4Smiod  mv conftest.out conftest.in
2865*3d8817e4Smiod' >> $CONFIG_STATUS
2866*3d8817e4Smiod  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2867*3d8817e4Smiod  rm -f conftest.vals
2868*3d8817e4Smiod  mv conftest.tail conftest.vals
2869*3d8817e4Smioddone
2870*3d8817e4Smiodrm -f conftest.vals
2871*3d8817e4Smiod
2872*3d8817e4Smiodcat >> $CONFIG_STATUS <<\EOF
2873*3d8817e4Smiod  rm -f conftest.frag conftest.h
2874*3d8817e4Smiod  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2875*3d8817e4Smiod  cat conftest.in >> conftest.h
2876*3d8817e4Smiod  rm -f conftest.in
2877*3d8817e4Smiod  if cmp -s $ac_file conftest.h 2>/dev/null; then
2878*3d8817e4Smiod    echo "$ac_file is unchanged"
2879*3d8817e4Smiod    rm -f conftest.h
2880*3d8817e4Smiod  else
2881*3d8817e4Smiod    # Remove last slash and all that follows it.  Not all systems have dirname.
2882*3d8817e4Smiod      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2883*3d8817e4Smiod      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2884*3d8817e4Smiod      # The file is in a subdirectory.
2885*3d8817e4Smiod      test ! -d "$ac_dir" && mkdir "$ac_dir"
2886*3d8817e4Smiod    fi
2887*3d8817e4Smiod    rm -f $ac_file
2888*3d8817e4Smiod    mv conftest.h $ac_file
2889*3d8817e4Smiod  fi
2890*3d8817e4Smiodfi; done
2891*3d8817e4Smiod
2892*3d8817e4SmiodEOF
2893*3d8817e4Smiod
2894*3d8817e4Smiodcat >> $CONFIG_STATUS <<EOF
2895*3d8817e4Smiodac_sources="$nls_cv_header_libgt"
2896*3d8817e4Smiodac_dests="$nls_cv_header_intl"
2897*3d8817e4SmiodEOF
2898*3d8817e4Smiod
2899*3d8817e4Smiodcat >> $CONFIG_STATUS <<\EOF
2900*3d8817e4Smiodsrcdir=$ac_given_srcdir
2901*3d8817e4Smiodwhile test -n "$ac_sources"; do
2902*3d8817e4Smiod  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2903*3d8817e4Smiod  set $ac_sources; ac_source=$1; shift; ac_sources=$*
2904*3d8817e4Smiod
2905*3d8817e4Smiod  echo "linking $srcdir/$ac_source to $ac_dest"
2906*3d8817e4Smiod
2907*3d8817e4Smiod  if test ! -r $srcdir/$ac_source; then
2908*3d8817e4Smiod    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2909*3d8817e4Smiod  fi
2910*3d8817e4Smiod  rm -f $ac_dest
2911*3d8817e4Smiod
2912*3d8817e4Smiod  # Make relative symlinks.
2913*3d8817e4Smiod  # Remove last slash and all that follows it.  Not all systems have dirname.
2914*3d8817e4Smiod  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2915*3d8817e4Smiod  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2916*3d8817e4Smiod    # The dest file is in a subdirectory.
2917*3d8817e4Smiod    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2918*3d8817e4Smiod    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2919*3d8817e4Smiod    # A "../" for each directory in $ac_dest_dir_suffix.
2920*3d8817e4Smiod    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2921*3d8817e4Smiod  else
2922*3d8817e4Smiod    ac_dest_dir_suffix= ac_dots=
2923*3d8817e4Smiod  fi
2924*3d8817e4Smiod
2925*3d8817e4Smiod  case "$srcdir" in
2926*3d8817e4Smiod  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2927*3d8817e4Smiod  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2928*3d8817e4Smiod  esac
2929*3d8817e4Smiod
2930*3d8817e4Smiod  # Make a symlink if possible; otherwise try a hard link.
2931*3d8817e4Smiod  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2932*3d8817e4Smiod    ln $srcdir/$ac_source $ac_dest; then :
2933*3d8817e4Smiod  else
2934*3d8817e4Smiod    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2935*3d8817e4Smiod  fi
2936*3d8817e4Smioddone
2937*3d8817e4SmiodEOF
2938*3d8817e4Smiodcat >> $CONFIG_STATUS <<EOF
2939*3d8817e4Smiod
2940*3d8817e4Smiod
2941*3d8817e4SmiodEOF
2942*3d8817e4Smiodcat >> $CONFIG_STATUS <<\EOF
2943*3d8817e4Smiodtest -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2944*3d8817e4Smiod
2945*3d8817e4Smiodexit 0
2946*3d8817e4SmiodEOF
2947*3d8817e4Smiodchmod +x $CONFIG_STATUS
2948*3d8817e4Smiodrm -fr confdefs* $ac_clean_files
2949*3d8817e4Smiodtest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2950*3d8817e4Smiod
2951