~ubuntu-branches/ubuntu/lucid/rlpr/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Brian Mays
  • Date: 2002-03-20 11:21:15 UTC
  • Revision ID: james.westby@ubuntu.com-20020320112115-whl7m242ig71nu3h
Tags: upstream-2.02
ImportĀ upstreamĀ versionĀ 2.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.12 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --disable-nls           do not use Native Language Support"
 
16
ac_help="$ac_help
 
17
  --with-included-gettext use the GNU gettext library included here"
 
18
ac_help="$ac_help
 
19
  --with-catgets          use catgets functions if available"
 
20
 
 
21
# Initialize some variables set by options.
 
22
# The variables have the same names as the options, with
 
23
# dashes changed to underlines.
 
24
build=NONE
 
25
cache_file=./config.cache
 
26
exec_prefix=NONE
 
27
host=NONE
 
28
no_create=
 
29
nonopt=NONE
 
30
no_recursion=
 
31
prefix=NONE
 
32
program_prefix=NONE
 
33
program_suffix=NONE
 
34
program_transform_name=s,x,x,
 
35
silent=
 
36
site=
 
37
srcdir=
 
38
target=NONE
 
39
verbose=
 
40
x_includes=NONE
 
41
x_libraries=NONE
 
42
bindir='${exec_prefix}/bin'
 
43
sbindir='${exec_prefix}/sbin'
 
44
libexecdir='${exec_prefix}/libexec'
 
45
datadir='${prefix}/share'
 
46
sysconfdir='${prefix}/etc'
 
47
sharedstatedir='${prefix}/com'
 
48
localstatedir='${prefix}/var'
 
49
libdir='${exec_prefix}/lib'
 
50
includedir='${prefix}/include'
 
51
oldincludedir='/usr/include'
 
52
infodir='${prefix}/info'
 
53
mandir='${prefix}/man'
 
54
 
 
55
# Initialize some other variables.
 
56
subdirs=
 
57
MFLAGS= MAKEFLAGS=
 
58
# Maximum number of lines to put in a shell here document.
 
59
ac_max_here_lines=12
 
60
 
 
61
ac_prev=
 
62
for ac_option
 
63
do
 
64
 
 
65
  # If the previous option needs an argument, assign it.
 
66
  if test -n "$ac_prev"; then
 
67
    eval "$ac_prev=\$ac_option"
 
68
    ac_prev=
 
69
    continue
 
70
  fi
 
71
 
 
72
  case "$ac_option" in
 
73
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
74
  *) ac_optarg= ;;
 
75
  esac
 
76
 
 
77
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
78
 
 
79
  case "$ac_option" in
 
80
 
 
81
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
82
    ac_prev=bindir ;;
 
83
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
84
    bindir="$ac_optarg" ;;
 
85
 
 
86
  -build | --build | --buil | --bui | --bu)
 
87
    ac_prev=build ;;
 
88
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
89
    build="$ac_optarg" ;;
 
90
 
 
91
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
92
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
93
    ac_prev=cache_file ;;
 
94
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
95
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
96
    cache_file="$ac_optarg" ;;
 
97
 
 
98
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
99
    ac_prev=datadir ;;
 
100
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
101
  | --da=*)
 
102
    datadir="$ac_optarg" ;;
 
103
 
 
104
  -disable-* | --disable-*)
 
105
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
106
    # Reject names that are not valid shell variable names.
 
107
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
108
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
109
    fi
 
110
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
111
    eval "enable_${ac_feature}=no" ;;
 
112
 
 
113
  -enable-* | --enable-*)
 
114
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
115
    # Reject names that are not valid shell variable names.
 
116
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
117
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
118
    fi
 
119
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
120
    case "$ac_option" in
 
121
      *=*) ;;
 
122
      *) ac_optarg=yes ;;
 
123
    esac
 
124
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
125
 
 
126
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
127
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
128
  | --exec | --exe | --ex)
 
129
    ac_prev=exec_prefix ;;
 
130
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
131
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
132
  | --exec=* | --exe=* | --ex=*)
 
133
    exec_prefix="$ac_optarg" ;;
 
134
 
 
135
  -gas | --gas | --ga | --g)
 
136
    # Obsolete; use --with-gas.
 
137
    with_gas=yes ;;
 
138
 
 
139
  -help | --help | --hel | --he)
 
140
    # Omit some internal or obsolete options to make the list less imposing.
 
141
    # This message is too long to be a string in the A/UX 3.1 sh.
 
142
    cat << EOF
 
143
Usage: configure [options] [host]
 
144
Options: [defaults in brackets after descriptions]
 
145
Configuration:
 
146
  --cache-file=FILE       cache test results in FILE
 
147
  --help                  print this message
 
148
  --no-create             do not create output files
 
149
  --quiet, --silent       do not print \`checking...' messages
 
150
  --version               print the version of autoconf that created configure
 
151
Directory and file names:
 
152
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
153
                          [$ac_default_prefix]
 
154
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
155
                          [same as prefix]
 
156
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
157
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
158
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
159
  --datadir=DIR           read-only architecture-independent data in DIR
 
160
                          [PREFIX/share]
 
161
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
162
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
163
                          [PREFIX/com]
 
164
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
165
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
166
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
167
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
168
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
169
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
170
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
171
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
172
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
173
  --program-transform-name=PROGRAM
 
174
                          run sed PROGRAM on installed program names
 
175
EOF
 
176
    cat << EOF
 
177
Host type:
 
178
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
179
  --host=HOST             configure for HOST [guessed]
 
180
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
181
Features and packages:
 
182
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
183
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
184
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
185
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
186
  --x-includes=DIR        X include files are in DIR
 
187
  --x-libraries=DIR       X library files are in DIR
 
188
EOF
 
189
    if test -n "$ac_help"; then
 
190
      echo "--enable and --with options recognized:$ac_help"
 
191
    fi
 
192
    exit 0 ;;
 
193
 
 
194
  -host | --host | --hos | --ho)
 
195
    ac_prev=host ;;
 
196
  -host=* | --host=* | --hos=* | --ho=*)
 
197
    host="$ac_optarg" ;;
 
198
 
 
199
  -includedir | --includedir | --includedi | --included | --include \
 
200
  | --includ | --inclu | --incl | --inc)
 
201
    ac_prev=includedir ;;
 
202
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
203
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
204
    includedir="$ac_optarg" ;;
 
205
 
 
206
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
207
    ac_prev=infodir ;;
 
208
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
209
    infodir="$ac_optarg" ;;
 
210
 
 
211
  -libdir | --libdir | --libdi | --libd)
 
212
    ac_prev=libdir ;;
 
213
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
214
    libdir="$ac_optarg" ;;
 
215
 
 
216
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
217
  | --libexe | --libex | --libe)
 
218
    ac_prev=libexecdir ;;
 
219
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
220
  | --libexe=* | --libex=* | --libe=*)
 
221
    libexecdir="$ac_optarg" ;;
 
222
 
 
223
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
224
  | --localstate | --localstat | --localsta | --localst \
 
225
  | --locals | --local | --loca | --loc | --lo)
 
226
    ac_prev=localstatedir ;;
 
227
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
228
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
229
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
230
    localstatedir="$ac_optarg" ;;
 
231
 
 
232
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
233
    ac_prev=mandir ;;
 
234
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
235
    mandir="$ac_optarg" ;;
 
236
 
 
237
  -nfp | --nfp | --nf)
 
238
    # Obsolete; use --without-fp.
 
239
    with_fp=no ;;
 
240
 
 
241
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
242
  | --no-cr | --no-c)
 
243
    no_create=yes ;;
 
244
 
 
245
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
246
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
247
    no_recursion=yes ;;
 
248
 
 
249
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
250
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
251
  | --oldin | --oldi | --old | --ol | --o)
 
252
    ac_prev=oldincludedir ;;
 
253
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
254
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
255
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
256
    oldincludedir="$ac_optarg" ;;
 
257
 
 
258
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
259
    ac_prev=prefix ;;
 
260
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
261
    prefix="$ac_optarg" ;;
 
262
 
 
263
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
264
  | --program-pre | --program-pr | --program-p)
 
265
    ac_prev=program_prefix ;;
 
266
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
267
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
268
    program_prefix="$ac_optarg" ;;
 
269
 
 
270
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
271
  | --program-suf | --program-su | --program-s)
 
272
    ac_prev=program_suffix ;;
 
273
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
274
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
275
    program_suffix="$ac_optarg" ;;
 
276
 
 
277
  -program-transform-name | --program-transform-name \
 
278
  | --program-transform-nam | --program-transform-na \
 
279
  | --program-transform-n | --program-transform- \
 
280
  | --program-transform | --program-transfor \
 
281
  | --program-transfo | --program-transf \
 
282
  | --program-trans | --program-tran \
 
283
  | --progr-tra | --program-tr | --program-t)
 
284
    ac_prev=program_transform_name ;;
 
285
  -program-transform-name=* | --program-transform-name=* \
 
286
  | --program-transform-nam=* | --program-transform-na=* \
 
287
  | --program-transform-n=* | --program-transform-=* \
 
288
  | --program-transform=* | --program-transfor=* \
 
289
  | --program-transfo=* | --program-transf=* \
 
290
  | --program-trans=* | --program-tran=* \
 
291
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
292
    program_transform_name="$ac_optarg" ;;
 
293
 
 
294
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
295
  | -silent | --silent | --silen | --sile | --sil)
 
296
    silent=yes ;;
 
297
 
 
298
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
299
    ac_prev=sbindir ;;
 
300
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
301
  | --sbi=* | --sb=*)
 
302
    sbindir="$ac_optarg" ;;
 
303
 
 
304
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
305
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
306
  | --sharedst | --shareds | --shared | --share | --shar \
 
307
  | --sha | --sh)
 
308
    ac_prev=sharedstatedir ;;
 
309
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
310
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
311
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
312
  | --sha=* | --sh=*)
 
313
    sharedstatedir="$ac_optarg" ;;
 
314
 
 
315
  -site | --site | --sit)
 
316
    ac_prev=site ;;
 
317
  -site=* | --site=* | --sit=*)
 
318
    site="$ac_optarg" ;;
 
319
 
 
320
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
321
    ac_prev=srcdir ;;
 
322
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
323
    srcdir="$ac_optarg" ;;
 
324
 
 
325
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
326
  | --syscon | --sysco | --sysc | --sys | --sy)
 
327
    ac_prev=sysconfdir ;;
 
328
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
329
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
330
    sysconfdir="$ac_optarg" ;;
 
331
 
 
332
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
333
    ac_prev=target ;;
 
334
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
335
    target="$ac_optarg" ;;
 
336
 
 
337
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
338
    verbose=yes ;;
 
339
 
 
340
  -version | --version | --versio | --versi | --vers)
 
341
    echo "configure generated by autoconf version 2.12"
 
342
    exit 0 ;;
 
343
 
 
344
  -with-* | --with-*)
 
345
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
346
    # Reject names that are not valid shell variable names.
 
347
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
348
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
349
    fi
 
350
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
351
    case "$ac_option" in
 
352
      *=*) ;;
 
353
      *) ac_optarg=yes ;;
 
354
    esac
 
355
    eval "with_${ac_package}='$ac_optarg'" ;;
 
356
 
 
357
  -without-* | --without-*)
 
358
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
359
    # Reject names that are not valid shell variable names.
 
360
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
361
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
362
    fi
 
363
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
364
    eval "with_${ac_package}=no" ;;
 
365
 
 
366
  --x)
 
367
    # Obsolete; use --with-x.
 
368
    with_x=yes ;;
 
369
 
 
370
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
371
  | --x-incl | --x-inc | --x-in | --x-i)
 
372
    ac_prev=x_includes ;;
 
373
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
374
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
375
    x_includes="$ac_optarg" ;;
 
376
 
 
377
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
378
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
379
    ac_prev=x_libraries ;;
 
380
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
381
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
382
    x_libraries="$ac_optarg" ;;
 
383
 
 
384
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
385
    ;;
 
386
 
 
387
  *)
 
388
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
389
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
390
    fi
 
391
    if test "x$nonopt" != xNONE; then
 
392
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
393
    fi
 
394
    nonopt="$ac_option"
 
395
    ;;
 
396
 
 
397
  esac
 
398
done
 
399
 
 
400
if test -n "$ac_prev"; then
 
401
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
402
fi
 
403
 
 
404
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
405
 
 
406
# File descriptor usage:
 
407
# 0 standard input
 
408
# 1 file creation
 
409
# 2 errors and warnings
 
410
# 3 some systems may open it to /dev/tty
 
411
# 4 used on the Kubota Titan
 
412
# 6 checking for... messages and results
 
413
# 5 compiler messages saved in config.log
 
414
if test "$silent" = yes; then
 
415
  exec 6>/dev/null
 
416
else
 
417
  exec 6>&1
 
418
fi
 
419
exec 5>./config.log
 
420
 
 
421
echo "\
 
422
This file contains any messages produced by compilers while
 
423
running configure, to aid debugging if configure makes a mistake.
 
424
" 1>&5
 
425
 
 
426
# Strip out --no-create and --no-recursion so they do not pile up.
 
427
# Also quote any args containing shell metacharacters.
 
428
ac_configure_args=
 
429
for ac_arg
 
430
do
 
431
  case "$ac_arg" in
 
432
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
433
  | --no-cr | --no-c) ;;
 
434
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
435
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
436
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
437
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
438
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
439
  esac
 
440
done
 
441
 
 
442
# NLS nuisances.
 
443
# Only set these to C if already set.  These must not be set unconditionally
 
444
# because not all systems understand e.g. LANG=C (notably SCO).
 
445
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
446
# Non-C LC_CTYPE values break the ctype check.
 
447
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
448
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
449
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
450
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
451
 
 
452
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
453
rm -rf conftest* confdefs.h
 
454
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
455
echo > confdefs.h
 
456
 
 
457
# A filename unique to this package, relative to the directory that
 
458
# configure is in, which we can look for to find out if srcdir is correct.
 
459
ac_unique_file=src/rlpr.c
 
460
 
 
461
# Find the source files, if location was not specified.
 
462
if test -z "$srcdir"; then
 
463
  ac_srcdir_defaulted=yes
 
464
  # Try the directory containing this script, then its parent.
 
465
  ac_prog=$0
 
466
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
467
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
468
  srcdir=$ac_confdir
 
469
  if test ! -r $srcdir/$ac_unique_file; then
 
470
    srcdir=..
 
471
  fi
 
472
else
 
473
  ac_srcdir_defaulted=no
 
474
fi
 
475
if test ! -r $srcdir/$ac_unique_file; then
 
476
  if test "$ac_srcdir_defaulted" = yes; then
 
477
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
478
  else
 
479
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
480
  fi
 
481
fi
 
482
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
483
 
 
484
# Prefer explicitly selected file to automatically selected ones.
 
485
if test -z "$CONFIG_SITE"; then
 
486
  if test "x$prefix" != xNONE; then
 
487
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
488
  else
 
489
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
490
  fi
 
491
fi
 
492
for ac_site_file in $CONFIG_SITE; do
 
493
  if test -r "$ac_site_file"; then
 
494
    echo "loading site script $ac_site_file"
 
495
    . "$ac_site_file"
 
496
  fi
 
497
done
 
498
 
 
499
if test -r "$cache_file"; then
 
500
  echo "loading cache $cache_file"
 
501
  . $cache_file
 
502
else
 
503
  echo "creating cache $cache_file"
 
504
  > $cache_file
 
505
fi
 
506
 
 
507
ac_ext=c
 
508
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
509
ac_cpp='$CPP $CPPFLAGS'
 
510
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
511
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
512
cross_compiling=$ac_cv_prog_cc_cross
 
513
 
 
514
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
515
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
516
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
517
    ac_n= ac_c='
 
518
' ac_t='        '
 
519
  else
 
520
    ac_n=-n ac_c= ac_t=
 
521
  fi
 
522
else
 
523
  ac_n= ac_c='\c' ac_t=
 
524
fi
 
525
 
 
526
 
 
527
 
 
528
 
 
529
 
 
530
 
 
531
ac_aux_dir=
 
532
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
533
  if test -f $ac_dir/install-sh; then
 
534
    ac_aux_dir=$ac_dir
 
535
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
536
    break
 
537
  elif test -f $ac_dir/install.sh; then
 
538
    ac_aux_dir=$ac_dir
 
539
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
540
    break
 
541
  fi
 
542
done
 
543
if test -z "$ac_aux_dir"; then
 
544
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
545
fi
 
546
ac_config_guess=$ac_aux_dir/config.guess
 
547
ac_config_sub=$ac_aux_dir/config.sub
 
548
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
549
 
 
550
# Find a good install program.  We prefer a C program (faster),
 
551
# so one script is as good as another.  But avoid the broken or
 
552
# incompatible versions:
 
553
# SysV /etc/install, /usr/sbin/install
 
554
# SunOS /usr/etc/install
 
555
# IRIX /sbin/install
 
556
# AIX /bin/install
 
557
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
558
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
559
# ./install, which can be erroneously created by make from ./install.sh.
 
560
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
561
echo "configure:562: checking for a BSD compatible install" >&5
 
562
if test -z "$INSTALL"; then
 
563
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
564
  echo $ac_n "(cached) $ac_c" 1>&6
 
565
else
 
566
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
 
567
  for ac_dir in $PATH; do
 
568
    # Account for people who put trailing slashes in PATH elements.
 
569
    case "$ac_dir/" in
 
570
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
571
    *)
 
572
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
573
      for ac_prog in ginstall installbsd scoinst install; do
 
574
        if test -f $ac_dir/$ac_prog; then
 
575
          if test $ac_prog = install &&
 
576
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
577
            # AIX install.  It has an incompatible calling convention.
 
578
            # OSF/1 installbsd also uses dspmsg, but is usable.
 
579
            :
 
580
          else
 
581
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
582
            break 2
 
583
          fi
 
584
        fi
 
585
      done
 
586
      ;;
 
587
    esac
 
588
  done
 
589
  IFS="$ac_save_IFS"
 
590
 
 
591
fi
 
592
  if test "${ac_cv_path_install+set}" = set; then
 
593
    INSTALL="$ac_cv_path_install"
 
594
  else
 
595
    # As a last resort, use the slow shell script.  We don't cache a
 
596
    # path for INSTALL within a source directory, because that will
 
597
    # break other packages using the cache if that directory is
 
598
    # removed, or if the path is relative.
 
599
    INSTALL="$ac_install_sh"
 
600
  fi
 
601
fi
 
602
echo "$ac_t""$INSTALL" 1>&6
 
603
 
 
604
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
605
# It thinks the first close brace ends the variable substitution.
 
606
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
607
 
 
608
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
609
 
 
610
 
 
611
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
612
 
 
613
 
 
614
PACKAGE=rlpr
 
615
 
 
616
VERSION="2.02"
 
617
 
 
618
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
619
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
620
fi
 
621
cat >> confdefs.h <<EOF
 
622
#define PACKAGE "$PACKAGE"
 
623
EOF
 
624
 
 
625
cat >> confdefs.h <<EOF
 
626
#define VERSION "$VERSION"
 
627
EOF
 
628
 
 
629
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 
630
echo "configure:631: checking whether build environment is sane" >&5
 
631
# Just in case
 
632
sleep 1
 
633
echo timestamp > conftestfile
 
634
# Do `set' in a subshell so we don't clobber the current shell's
 
635
# arguments.  Must try -L first in case configure is actually a
 
636
# symlink; some systems play weird games with the mod time of symlinks
 
637
# (eg FreeBSD returns the mod time of the symlink's containing
 
638
# directory).
 
639
if (
 
640
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
641
   if test "" = "X"; then
 
642
      # -L didn't work.
 
643
      set X `ls -t $srcdir/configure conftestfile`
 
644
   fi
 
645
   test "$2" = conftestfile
 
646
   )
 
647
then
 
648
   # Ok.
 
649
   :
 
650
else
 
651
   { echo "configure: error: newly created file is older than distributed files!
 
652
Check your system clock" 1>&2; exit 1; }
 
653
fi
 
654
rm -f conftest*
 
655
echo "$ac_t""yes" 1>&6
 
656
if test "$program_transform_name" = s,x,x,; then
 
657
  program_transform_name=
 
658
else
 
659
  # Double any \ or $.  echo might interpret backslashes.
 
660
  cat <<\EOF_SED > conftestsed
 
661
s,\\,\\\\,g; s,\$,$$,g
 
662
EOF_SED
 
663
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
664
  rm -f conftestsed
 
665
fi
 
666
test "$program_prefix" != NONE &&
 
667
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
668
# Use a double $ so make ignores it.
 
669
test "$program_suffix" != NONE &&
 
670
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
671
 
 
672
# sed with no file args requires a program.
 
673
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
674
 
 
675
missing_dir=`cd $ac_aux_dir && pwd`
 
676
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 
677
echo "configure:678: checking for working aclocal" >&5
 
678
# Run test in a subshell; some versions of sh will print an error if
 
679
# an executable is not found, even if stderr is redirected.
 
680
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
681
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
682
   ACLOCAL=aclocal
 
683
   echo "$ac_t""found" 1>&6
 
684
else
 
685
   ACLOCAL="$missing_dir/missing aclocal"
 
686
   echo "$ac_t""missing" 1>&6
 
687
fi
 
688
 
 
689
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 
690
echo "configure:691: checking for working autoconf" >&5
 
691
# Run test in a subshell; some versions of sh will print an error if
 
692
# an executable is not found, even if stderr is redirected.
 
693
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
694
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
695
   AUTOCONF=autoconf
 
696
   echo "$ac_t""found" 1>&6
 
697
else
 
698
   AUTOCONF="$missing_dir/missing autoconf"
 
699
   echo "$ac_t""missing" 1>&6
 
700
fi
 
701
 
 
702
echo $ac_n "checking for working automake""... $ac_c" 1>&6
 
703
echo "configure:704: checking for working automake" >&5
 
704
# Run test in a subshell; some versions of sh will print an error if
 
705
# an executable is not found, even if stderr is redirected.
 
706
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
707
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
708
   AUTOMAKE=automake
 
709
   echo "$ac_t""found" 1>&6
 
710
else
 
711
   AUTOMAKE="$missing_dir/missing automake"
 
712
   echo "$ac_t""missing" 1>&6
 
713
fi
 
714
 
 
715
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 
716
echo "configure:717: checking for working autoheader" >&5
 
717
# Run test in a subshell; some versions of sh will print an error if
 
718
# an executable is not found, even if stderr is redirected.
 
719
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
720
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
721
   AUTOHEADER=autoheader
 
722
   echo "$ac_t""found" 1>&6
 
723
else
 
724
   AUTOHEADER="$missing_dir/missing autoheader"
 
725
   echo "$ac_t""missing" 1>&6
 
726
fi
 
727
 
 
728
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 
729
echo "configure:730: checking for working makeinfo" >&5
 
730
# Run test in a subshell; some versions of sh will print an error if
 
731
# an executable is not found, even if stderr is redirected.
 
732
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
733
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
734
   MAKEINFO=makeinfo
 
735
   echo "$ac_t""found" 1>&6
 
736
else
 
737
   MAKEINFO="$missing_dir/missing makeinfo"
 
738
   echo "$ac_t""missing" 1>&6
 
739
fi
 
740
 
 
741
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
742
echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
743
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
744
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
745
  echo $ac_n "(cached) $ac_c" 1>&6
 
746
else
 
747
  cat > conftestmake <<\EOF
 
748
all:
 
749
        @echo 'ac_maketemp="${MAKE}"'
 
750
EOF
 
751
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
752
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
753
if test -n "$ac_maketemp"; then
 
754
  eval ac_cv_prog_make_${ac_make}_set=yes
 
755
else
 
756
  eval ac_cv_prog_make_${ac_make}_set=no
 
757
fi
 
758
rm -f conftestmake
 
759
fi
 
760
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
761
  echo "$ac_t""yes" 1>&6
 
762
  SET_MAKE=
 
763
else
 
764
  echo "$ac_t""no" 1>&6
 
765
  SET_MAKE="MAKE=${MAKE-make}"
 
766
fi
 
767
 
 
768
if test "x$prefix" = xNONE; then
 
769
echo $ac_n "checking for prefix by $ac_c" 1>&6
 
770
# Extract the first word of "rlpr", so it can be a program name with args.
 
771
set dummy rlpr; ac_word=$2
 
772
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
773
echo "configure:774: checking for $ac_word" >&5
 
774
if eval "test \"`echo '$''{'ac_cv_path_RLPR'+set}'`\" = set"; then
 
775
  echo $ac_n "(cached) $ac_c" 1>&6
 
776
else
 
777
  case "$RLPR" in
 
778
  /*)
 
779
  ac_cv_path_RLPR="$RLPR" # Let the user override the test with a path.
 
780
  ;;
 
781
  *)
 
782
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
783
  for ac_dir in $PATH; do
 
784
    test -z "$ac_dir" && ac_dir=.
 
785
    if test -f $ac_dir/$ac_word; then
 
786
      ac_cv_path_RLPR="$ac_dir/$ac_word"
 
787
      break
 
788
    fi
 
789
  done
 
790
  IFS="$ac_save_ifs"
 
791
  ;;
 
792
esac
 
793
fi
 
794
RLPR="$ac_cv_path_RLPR"
 
795
if test -n "$RLPR"; then
 
796
  echo "$ac_t""$RLPR" 1>&6
 
797
else
 
798
  echo "$ac_t""no" 1>&6
 
799
fi
 
800
 
 
801
  if test -n "$ac_cv_path_RLPR"; then
 
802
    prefix=`echo $ac_cv_path_RLPR|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
 
803
  fi
 
804
fi
 
805
 
 
806
 
 
807
ALL_LINGUAS=
 
808
 
 
809
LIBOBJS=
 
810
 
 
811
 
 
812
# Find a good install program.  We prefer a C program (faster),
 
813
# so one script is as good as another.  But avoid the broken or
 
814
# incompatible versions:
 
815
# SysV /etc/install, /usr/sbin/install
 
816
# SunOS /usr/etc/install
 
817
# IRIX /sbin/install
 
818
# AIX /bin/install
 
819
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
820
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
821
# ./install, which can be erroneously created by make from ./install.sh.
 
822
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
823
echo "configure:824: checking for a BSD compatible install" >&5
 
824
if test -z "$INSTALL"; then
 
825
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
826
  echo $ac_n "(cached) $ac_c" 1>&6
 
827
else
 
828
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
 
829
  for ac_dir in $PATH; do
 
830
    # Account for people who put trailing slashes in PATH elements.
 
831
    case "$ac_dir/" in
 
832
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
833
    *)
 
834
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
835
      for ac_prog in ginstall installbsd scoinst install; do
 
836
        if test -f $ac_dir/$ac_prog; then
 
837
          if test $ac_prog = install &&
 
838
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
839
            # AIX install.  It has an incompatible calling convention.
 
840
            # OSF/1 installbsd also uses dspmsg, but is usable.
 
841
            :
 
842
          else
 
843
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
844
            break 2
 
845
          fi
 
846
        fi
 
847
      done
 
848
      ;;
 
849
    esac
 
850
  done
 
851
  IFS="$ac_save_IFS"
 
852
 
 
853
fi
 
854
  if test "${ac_cv_path_install+set}" = set; then
 
855
    INSTALL="$ac_cv_path_install"
 
856
  else
 
857
    # As a last resort, use the slow shell script.  We don't cache a
 
858
    # path for INSTALL within a source directory, because that will
 
859
    # break other packages using the cache if that directory is
 
860
    # removed, or if the path is relative.
 
861
    INSTALL="$ac_install_sh"
 
862
  fi
 
863
fi
 
864
echo "$ac_t""$INSTALL" 1>&6
 
865
 
 
866
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
867
# It thinks the first close brace ends the variable substitution.
 
868
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
869
 
 
870
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
871
 
 
872
# Extract the first word of "gcc", so it can be a program name with args.
 
873
set dummy gcc; ac_word=$2
 
874
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
875
echo "configure:876: checking for $ac_word" >&5
 
876
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
877
  echo $ac_n "(cached) $ac_c" 1>&6
 
878
else
 
879
  if test -n "$CC"; then
 
880
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
881
else
 
882
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
883
  for ac_dir in $PATH; do
 
884
    test -z "$ac_dir" && ac_dir=.
 
885
    if test -f $ac_dir/$ac_word; then
 
886
      ac_cv_prog_CC="gcc"
 
887
      break
 
888
    fi
 
889
  done
 
890
  IFS="$ac_save_ifs"
 
891
fi
 
892
fi
 
893
CC="$ac_cv_prog_CC"
 
894
if test -n "$CC"; then
 
895
  echo "$ac_t""$CC" 1>&6
 
896
else
 
897
  echo "$ac_t""no" 1>&6
 
898
fi
 
899
 
 
900
if test -z "$CC"; then
 
901
  # Extract the first word of "cc", so it can be a program name with args.
 
902
set dummy cc; ac_word=$2
 
903
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
904
echo "configure:905: checking for $ac_word" >&5
 
905
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
906
  echo $ac_n "(cached) $ac_c" 1>&6
 
907
else
 
908
  if test -n "$CC"; then
 
909
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
910
else
 
911
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
912
  ac_prog_rejected=no
 
913
  for ac_dir in $PATH; do
 
914
    test -z "$ac_dir" && ac_dir=.
 
915
    if test -f $ac_dir/$ac_word; then
 
916
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
917
        ac_prog_rejected=yes
 
918
        continue
 
919
      fi
 
920
      ac_cv_prog_CC="cc"
 
921
      break
 
922
    fi
 
923
  done
 
924
  IFS="$ac_save_ifs"
 
925
if test $ac_prog_rejected = yes; then
 
926
  # We found a bogon in the path, so make sure we never use it.
 
927
  set dummy $ac_cv_prog_CC
 
928
  shift
 
929
  if test $# -gt 0; then
 
930
    # We chose a different compiler from the bogus one.
 
931
    # However, it has the same basename, so the bogon will be chosen
 
932
    # first if we set CC to just the basename; use the full file name.
 
933
    shift
 
934
    set dummy "$ac_dir/$ac_word" "$@"
 
935
    shift
 
936
    ac_cv_prog_CC="$@"
 
937
  fi
 
938
fi
 
939
fi
 
940
fi
 
941
CC="$ac_cv_prog_CC"
 
942
if test -n "$CC"; then
 
943
  echo "$ac_t""$CC" 1>&6
 
944
else
 
945
  echo "$ac_t""no" 1>&6
 
946
fi
 
947
 
 
948
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
949
fi
 
950
 
 
951
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
952
echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
953
 
 
954
ac_ext=c
 
955
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
956
ac_cpp='$CPP $CPPFLAGS'
 
957
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
958
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
959
cross_compiling=$ac_cv_prog_cc_cross
 
960
 
 
961
cat > conftest.$ac_ext <<EOF
 
962
#line 963 "configure"
 
963
#include "confdefs.h"
 
964
main(){return(0);}
 
965
EOF
 
966
if { (eval echo configure:967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
967
  ac_cv_prog_cc_works=yes
 
968
  # If we can't run a trivial program, we are probably using a cross compiler.
 
969
  if (./conftest; exit) 2>/dev/null; then
 
970
    ac_cv_prog_cc_cross=no
 
971
  else
 
972
    ac_cv_prog_cc_cross=yes
 
973
  fi
 
974
else
 
975
  echo "configure: failed program was:" >&5
 
976
  cat conftest.$ac_ext >&5
 
977
  ac_cv_prog_cc_works=no
 
978
fi
 
979
rm -fr conftest*
 
980
 
 
981
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
982
if test $ac_cv_prog_cc_works = no; then
 
983
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
984
fi
 
985
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
986
echo "configure:987: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
987
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
988
cross_compiling=$ac_cv_prog_cc_cross
 
989
 
 
990
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
991
echo "configure:992: checking whether we are using GNU C" >&5
 
992
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
993
  echo $ac_n "(cached) $ac_c" 1>&6
 
994
else
 
995
  cat > conftest.c <<EOF
 
996
#ifdef __GNUC__
 
997
  yes;
 
998
#endif
 
999
EOF
 
1000
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1001
  ac_cv_prog_gcc=yes
 
1002
else
 
1003
  ac_cv_prog_gcc=no
 
1004
fi
 
1005
fi
 
1006
 
 
1007
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1008
 
 
1009
if test $ac_cv_prog_gcc = yes; then
 
1010
  GCC=yes
 
1011
  ac_test_CFLAGS="${CFLAGS+set}"
 
1012
  ac_save_CFLAGS="$CFLAGS"
 
1013
  CFLAGS=
 
1014
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1015
echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5
 
1016
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1017
  echo $ac_n "(cached) $ac_c" 1>&6
 
1018
else
 
1019
  echo 'void f(){}' > conftest.c
 
1020
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1021
  ac_cv_prog_cc_g=yes
 
1022
else
 
1023
  ac_cv_prog_cc_g=no
 
1024
fi
 
1025
rm -f conftest*
 
1026
 
 
1027
fi
 
1028
 
 
1029
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1030
  if test "$ac_test_CFLAGS" = set; then
 
1031
    CFLAGS="$ac_save_CFLAGS"
 
1032
  elif test $ac_cv_prog_cc_g = yes; then
 
1033
    CFLAGS="-g -O2"
 
1034
  else
 
1035
    CFLAGS="-O2"
 
1036
  fi
 
1037
else
 
1038
  GCC=
 
1039
  test "${CFLAGS+set}" = set || CFLAGS="-g"
 
1040
fi
 
1041
 
 
1042
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1043
echo "configure:1044: checking how to run the C preprocessor" >&5
 
1044
# On Suns, sometimes $CPP names a directory.
 
1045
if test -n "$CPP" && test -d "$CPP"; then
 
1046
  CPP=
 
1047
fi
 
1048
if test -z "$CPP"; then
 
1049
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1050
  echo $ac_n "(cached) $ac_c" 1>&6
 
1051
else
 
1052
    # This must be in double quotes, not single quotes, because CPP may get
 
1053
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1054
  CPP="${CC-cc} -E"
 
1055
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1056
  # not just through cpp.
 
1057
  cat > conftest.$ac_ext <<EOF
 
1058
#line 1059 "configure"
 
1059
#include "confdefs.h"
 
1060
#include <assert.h>
 
1061
Syntax Error
 
1062
EOF
 
1063
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1064
{ (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1065
ac_err=`grep -v '^ *+' conftest.out`
 
1066
if test -z "$ac_err"; then
 
1067
  :
 
1068
else
 
1069
  echo "$ac_err" >&5
 
1070
  echo "configure: failed program was:" >&5
 
1071
  cat conftest.$ac_ext >&5
 
1072
  rm -rf conftest*
 
1073
  CPP="${CC-cc} -E -traditional-cpp"
 
1074
  cat > conftest.$ac_ext <<EOF
 
1075
#line 1076 "configure"
 
1076
#include "confdefs.h"
 
1077
#include <assert.h>
 
1078
Syntax Error
 
1079
EOF
 
1080
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1081
{ (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1082
ac_err=`grep -v '^ *+' conftest.out`
 
1083
if test -z "$ac_err"; then
 
1084
  :
 
1085
else
 
1086
  echo "$ac_err" >&5
 
1087
  echo "configure: failed program was:" >&5
 
1088
  cat conftest.$ac_ext >&5
 
1089
  rm -rf conftest*
 
1090
  CPP=/lib/cpp
 
1091
fi
 
1092
rm -f conftest*
 
1093
fi
 
1094
rm -f conftest*
 
1095
  ac_cv_prog_CPP="$CPP"
 
1096
fi
 
1097
  CPP="$ac_cv_prog_CPP"
 
1098
else
 
1099
  ac_cv_prog_CPP="$CPP"
 
1100
fi
 
1101
echo "$ac_t""$CPP" 1>&6
 
1102
 
 
1103
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 
1104
echo "configure:1105: checking whether ln -s works" >&5
 
1105
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 
1106
  echo $ac_n "(cached) $ac_c" 1>&6
 
1107
else
 
1108
  rm -f conftestdata
 
1109
if ln -s X conftestdata 2>/dev/null
 
1110
then
 
1111
  rm -f conftestdata
 
1112
  ac_cv_prog_LN_S="ln -s"
 
1113
else
 
1114
  ac_cv_prog_LN_S=ln
 
1115
fi
 
1116
fi
 
1117
LN_S="$ac_cv_prog_LN_S"
 
1118
if test "$ac_cv_prog_LN_S" = "ln -s"; then
 
1119
  echo "$ac_t""yes" 1>&6
 
1120
else
 
1121
  echo "$ac_t""no" 1>&6
 
1122
fi
 
1123
 
 
1124
 
 
1125
# Extract the first word of "ranlib", so it can be a program name with args.
 
1126
set dummy ranlib; ac_word=$2
 
1127
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1128
echo "configure:1129: checking for $ac_word" >&5
 
1129
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
1130
  echo $ac_n "(cached) $ac_c" 1>&6
 
1131
else
 
1132
  if test -n "$RANLIB"; then
 
1133
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
1134
else
 
1135
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
1136
  for ac_dir in $PATH; do
 
1137
    test -z "$ac_dir" && ac_dir=.
 
1138
    if test -f $ac_dir/$ac_word; then
 
1139
      ac_cv_prog_RANLIB="ranlib"
 
1140
      break
 
1141
    fi
 
1142
  done
 
1143
  IFS="$ac_save_ifs"
 
1144
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
1145
fi
 
1146
fi
 
1147
RANLIB="$ac_cv_prog_RANLIB"
 
1148
if test -n "$RANLIB"; then
 
1149
  echo "$ac_t""$RANLIB" 1>&6
 
1150
else
 
1151
  echo "$ac_t""no" 1>&6
 
1152
fi
 
1153
 
 
1154
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
 
1155
echo "configure:1156: checking for POSIXized ISC" >&5
 
1156
if test -d /etc/conf/kconfig.d &&
 
1157
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
 
1158
then
 
1159
  echo "$ac_t""yes" 1>&6
 
1160
  ISC=yes # If later tests want to check for ISC.
 
1161
  cat >> confdefs.h <<\EOF
 
1162
#define _POSIX_SOURCE 1
 
1163
EOF
 
1164
 
 
1165
  if test "$GCC" = yes; then
 
1166
    CC="$CC -posix"
 
1167
  else
 
1168
    CC="$CC -Xp"
 
1169
  fi
 
1170
else
 
1171
  echo "$ac_t""no" 1>&6
 
1172
  ISC=
 
1173
fi
 
1174
 
 
1175
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1176
echo "configure:1177: checking for ANSI C header files" >&5
 
1177
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1178
  echo $ac_n "(cached) $ac_c" 1>&6
 
1179
else
 
1180
  cat > conftest.$ac_ext <<EOF
 
1181
#line 1182 "configure"
 
1182
#include "confdefs.h"
 
1183
#include <stdlib.h>
 
1184
#include <stdarg.h>
 
1185
#include <string.h>
 
1186
#include <float.h>
 
1187
EOF
 
1188
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1189
{ (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1190
ac_err=`grep -v '^ *+' conftest.out`
 
1191
if test -z "$ac_err"; then
 
1192
  rm -rf conftest*
 
1193
  ac_cv_header_stdc=yes
 
1194
else
 
1195
  echo "$ac_err" >&5
 
1196
  echo "configure: failed program was:" >&5
 
1197
  cat conftest.$ac_ext >&5
 
1198
  rm -rf conftest*
 
1199
  ac_cv_header_stdc=no
 
1200
fi
 
1201
rm -f conftest*
 
1202
 
 
1203
if test $ac_cv_header_stdc = yes; then
 
1204
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1205
cat > conftest.$ac_ext <<EOF
 
1206
#line 1207 "configure"
 
1207
#include "confdefs.h"
 
1208
#include <string.h>
 
1209
EOF
 
1210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1211
  egrep "memchr" >/dev/null 2>&1; then
 
1212
  :
 
1213
else
 
1214
  rm -rf conftest*
 
1215
  ac_cv_header_stdc=no
 
1216
fi
 
1217
rm -f conftest*
 
1218
 
 
1219
fi
 
1220
 
 
1221
if test $ac_cv_header_stdc = yes; then
 
1222
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1223
cat > conftest.$ac_ext <<EOF
 
1224
#line 1225 "configure"
 
1225
#include "confdefs.h"
 
1226
#include <stdlib.h>
 
1227
EOF
 
1228
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1229
  egrep "free" >/dev/null 2>&1; then
 
1230
  :
 
1231
else
 
1232
  rm -rf conftest*
 
1233
  ac_cv_header_stdc=no
 
1234
fi
 
1235
rm -f conftest*
 
1236
 
 
1237
fi
 
1238
 
 
1239
if test $ac_cv_header_stdc = yes; then
 
1240
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1241
if test "$cross_compiling" = yes; then
 
1242
  :
 
1243
else
 
1244
  cat > conftest.$ac_ext <<EOF
 
1245
#line 1246 "configure"
 
1246
#include "confdefs.h"
 
1247
#include <ctype.h>
 
1248
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1249
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1250
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1251
int main () { int i; for (i = 0; i < 256; i++)
 
1252
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1253
exit (0); }
 
1254
 
 
1255
EOF
 
1256
if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 
1257
then
 
1258
  :
 
1259
else
 
1260
  echo "configure: failed program was:" >&5
 
1261
  cat conftest.$ac_ext >&5
 
1262
  rm -fr conftest*
 
1263
  ac_cv_header_stdc=no
 
1264
fi
 
1265
rm -fr conftest*
 
1266
fi
 
1267
 
 
1268
fi
 
1269
fi
 
1270
 
 
1271
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1272
if test $ac_cv_header_stdc = yes; then
 
1273
  cat >> confdefs.h <<\EOF
 
1274
#define STDC_HEADERS 1
 
1275
EOF
 
1276
 
 
1277
fi
 
1278
 
 
1279
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
1280
echo "configure:1281: checking for working const" >&5
 
1281
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
1282
  echo $ac_n "(cached) $ac_c" 1>&6
 
1283
else
 
1284
  cat > conftest.$ac_ext <<EOF
 
1285
#line 1286 "configure"
 
1286
#include "confdefs.h"
 
1287
 
 
1288
int main() {
 
1289
 
 
1290
/* Ultrix mips cc rejects this.  */
 
1291
typedef int charset[2]; const charset x;
 
1292
/* SunOS 4.1.1 cc rejects this.  */
 
1293
char const *const *ccp;
 
1294
char **p;
 
1295
/* NEC SVR4.0.2 mips cc rejects this.  */
 
1296
struct point {int x, y;};
 
1297
static struct point const zero = {0,0};
 
1298
/* AIX XL C 1.02.0.0 rejects this.
 
1299
   It does not let you subtract one const X* pointer from another in an arm
 
1300
   of an if-expression whose if-part is not a constant expression */
 
1301
const char *g = "string";
 
1302
ccp = &g + (g ? g-g : 0);
 
1303
/* HPUX 7.0 cc rejects these. */
 
1304
++ccp;
 
1305
p = (char**) ccp;
 
1306
ccp = (char const *const *) p;
 
1307
{ /* SCO 3.2v4 cc rejects this.  */
 
1308
  char *t;
 
1309
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1310
 
 
1311
  *t++ = 0;
 
1312
}
 
1313
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1314
  int x[] = {25, 17};
 
1315
  const int *foo = &x[0];
 
1316
  ++foo;
 
1317
}
 
1318
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
1319
  typedef const int *iptr;
 
1320
  iptr p = 0;
 
1321
  ++p;
 
1322
}
 
1323
{ /* AIX XL C 1.02.0.0 rejects this saying
 
1324
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
1325
  struct s { int j; const int *ap[3]; };
 
1326
  struct s *b; b->j = 5;
 
1327
}
 
1328
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
1329
  const int foo = 10;
 
1330
}
 
1331
 
 
1332
; return 0; }
 
1333
EOF
 
1334
if { (eval echo configure:1335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1335
  rm -rf conftest*
 
1336
  ac_cv_c_const=yes
 
1337
else
 
1338
  echo "configure: failed program was:" >&5
 
1339
  cat conftest.$ac_ext >&5
 
1340
  rm -rf conftest*
 
1341
  ac_cv_c_const=no
 
1342
fi
 
1343
rm -f conftest*
 
1344
fi
 
1345
 
 
1346
echo "$ac_t""$ac_cv_c_const" 1>&6
 
1347
if test $ac_cv_c_const = no; then
 
1348
  cat >> confdefs.h <<\EOF
 
1349
#define const 
 
1350
EOF
 
1351
 
 
1352
fi
 
1353
 
 
1354
echo $ac_n "checking for inline""... $ac_c" 1>&6
 
1355
echo "configure:1356: checking for inline" >&5
 
1356
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 
1357
  echo $ac_n "(cached) $ac_c" 1>&6
 
1358
else
 
1359
  ac_cv_c_inline=no
 
1360
for ac_kw in inline __inline__ __inline; do
 
1361
  cat > conftest.$ac_ext <<EOF
 
1362
#line 1363 "configure"
 
1363
#include "confdefs.h"
 
1364
 
 
1365
int main() {
 
1366
} $ac_kw foo() {
 
1367
; return 0; }
 
1368
EOF
 
1369
if { (eval echo configure:1370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1370
  rm -rf conftest*
 
1371
  ac_cv_c_inline=$ac_kw; break
 
1372
else
 
1373
  echo "configure: failed program was:" >&5
 
1374
  cat conftest.$ac_ext >&5
 
1375
fi
 
1376
rm -f conftest*
 
1377
done
 
1378
 
 
1379
fi
 
1380
 
 
1381
echo "$ac_t""$ac_cv_c_inline" 1>&6
 
1382
case "$ac_cv_c_inline" in
 
1383
  inline | yes) ;;
 
1384
  no) cat >> confdefs.h <<\EOF
 
1385
#define inline 
 
1386
EOF
 
1387
 ;;
 
1388
  *)  cat >> confdefs.h <<EOF
 
1389
#define inline $ac_cv_c_inline
 
1390
EOF
 
1391
 ;;
 
1392
esac
 
1393
 
 
1394
echo $ac_n "checking for off_t""... $ac_c" 1>&6
 
1395
echo "configure:1396: checking for off_t" >&5
 
1396
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
 
1397
  echo $ac_n "(cached) $ac_c" 1>&6
 
1398
else
 
1399
  cat > conftest.$ac_ext <<EOF
 
1400
#line 1401 "configure"
 
1401
#include "confdefs.h"
 
1402
#include <sys/types.h>
 
1403
#if STDC_HEADERS
 
1404
#include <stdlib.h>
 
1405
#include <stddef.h>
 
1406
#endif
 
1407
EOF
 
1408
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1409
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1410
  rm -rf conftest*
 
1411
  ac_cv_type_off_t=yes
 
1412
else
 
1413
  rm -rf conftest*
 
1414
  ac_cv_type_off_t=no
 
1415
fi
 
1416
rm -f conftest*
 
1417
 
 
1418
fi
 
1419
echo "$ac_t""$ac_cv_type_off_t" 1>&6
 
1420
if test $ac_cv_type_off_t = no; then
 
1421
  cat >> confdefs.h <<\EOF
 
1422
#define off_t long
 
1423
EOF
 
1424
 
 
1425
fi
 
1426
 
 
1427
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
1428
echo "configure:1429: checking for size_t" >&5
 
1429
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
1430
  echo $ac_n "(cached) $ac_c" 1>&6
 
1431
else
 
1432
  cat > conftest.$ac_ext <<EOF
 
1433
#line 1434 "configure"
 
1434
#include "confdefs.h"
 
1435
#include <sys/types.h>
 
1436
#if STDC_HEADERS
 
1437
#include <stdlib.h>
 
1438
#include <stddef.h>
 
1439
#endif
 
1440
EOF
 
1441
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1442
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1443
  rm -rf conftest*
 
1444
  ac_cv_type_size_t=yes
 
1445
else
 
1446
  rm -rf conftest*
 
1447
  ac_cv_type_size_t=no
 
1448
fi
 
1449
rm -f conftest*
 
1450
 
 
1451
fi
 
1452
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
1453
if test $ac_cv_type_size_t = no; then
 
1454
  cat >> confdefs.h <<\EOF
 
1455
#define size_t unsigned
 
1456
EOF
 
1457
 
 
1458
fi
 
1459
 
 
1460
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
1461
# for constant arguments.  Useless!
 
1462
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
1463
echo "configure:1464: checking for working alloca.h" >&5
 
1464
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
1465
  echo $ac_n "(cached) $ac_c" 1>&6
 
1466
else
 
1467
  cat > conftest.$ac_ext <<EOF
 
1468
#line 1469 "configure"
 
1469
#include "confdefs.h"
 
1470
#include <alloca.h>
 
1471
int main() {
 
1472
char *p = alloca(2 * sizeof(int));
 
1473
; return 0; }
 
1474
EOF
 
1475
if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
1476
  rm -rf conftest*
 
1477
  ac_cv_header_alloca_h=yes
 
1478
else
 
1479
  echo "configure: failed program was:" >&5
 
1480
  cat conftest.$ac_ext >&5
 
1481
  rm -rf conftest*
 
1482
  ac_cv_header_alloca_h=no
 
1483
fi
 
1484
rm -f conftest*
 
1485
fi
 
1486
 
 
1487
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
1488
if test $ac_cv_header_alloca_h = yes; then
 
1489
  cat >> confdefs.h <<\EOF
 
1490
#define HAVE_ALLOCA_H 1
 
1491
EOF
 
1492
 
 
1493
fi
 
1494
 
 
1495
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
1496
echo "configure:1497: checking for alloca" >&5
 
1497
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
1498
  echo $ac_n "(cached) $ac_c" 1>&6
 
1499
else
 
1500
  cat > conftest.$ac_ext <<EOF
 
1501
#line 1502 "configure"
 
1502
#include "confdefs.h"
 
1503
 
 
1504
#ifdef __GNUC__
 
1505
# define alloca __builtin_alloca
 
1506
#else
 
1507
# if HAVE_ALLOCA_H
 
1508
#  include <alloca.h>
 
1509
# else
 
1510
#  ifdef _AIX
 
1511
 #pragma alloca
 
1512
#  else
 
1513
#   ifndef alloca /* predefined by HP cc +Olibcalls */
 
1514
char *alloca ();
 
1515
#   endif
 
1516
#  endif
 
1517
# endif
 
1518
#endif
 
1519
 
 
1520
int main() {
 
1521
char *p = (char *) alloca(1);
 
1522
; return 0; }
 
1523
EOF
 
1524
if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
1525
  rm -rf conftest*
 
1526
  ac_cv_func_alloca_works=yes
 
1527
else
 
1528
  echo "configure: failed program was:" >&5
 
1529
  cat conftest.$ac_ext >&5
 
1530
  rm -rf conftest*
 
1531
  ac_cv_func_alloca_works=no
 
1532
fi
 
1533
rm -f conftest*
 
1534
fi
 
1535
 
 
1536
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
1537
if test $ac_cv_func_alloca_works = yes; then
 
1538
  cat >> confdefs.h <<\EOF
 
1539
#define HAVE_ALLOCA 1
 
1540
EOF
 
1541
 
 
1542
fi
 
1543
 
 
1544
if test $ac_cv_func_alloca_works = no; then
 
1545
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
1546
  # that cause trouble.  Some versions do not even contain alloca or
 
1547
  # contain a buggy version.  If you still want to use their alloca,
 
1548
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
1549
  ALLOCA=alloca.o
 
1550
  cat >> confdefs.h <<\EOF
 
1551
#define C_ALLOCA 1
 
1552
EOF
 
1553
 
 
1554
 
 
1555
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
1556
echo "configure:1557: checking whether alloca needs Cray hooks" >&5
 
1557
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
1558
  echo $ac_n "(cached) $ac_c" 1>&6
 
1559
else
 
1560
  cat > conftest.$ac_ext <<EOF
 
1561
#line 1562 "configure"
 
1562
#include "confdefs.h"
 
1563
#if defined(CRAY) && ! defined(CRAY2)
 
1564
webecray
 
1565
#else
 
1566
wenotbecray
 
1567
#endif
 
1568
 
 
1569
EOF
 
1570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1571
  egrep "webecray" >/dev/null 2>&1; then
 
1572
  rm -rf conftest*
 
1573
  ac_cv_os_cray=yes
 
1574
else
 
1575
  rm -rf conftest*
 
1576
  ac_cv_os_cray=no
 
1577
fi
 
1578
rm -f conftest*
 
1579
 
 
1580
fi
 
1581
 
 
1582
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
1583
if test $ac_cv_os_cray = yes; then
 
1584
for ac_func in _getb67 GETB67 getb67; do
 
1585
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1586
echo "configure:1587: checking for $ac_func" >&5
 
1587
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1588
  echo $ac_n "(cached) $ac_c" 1>&6
 
1589
else
 
1590
  cat > conftest.$ac_ext <<EOF
 
1591
#line 1592 "configure"
 
1592
#include "confdefs.h"
 
1593
/* System header to define __stub macros and hopefully few prototypes,
 
1594
    which can conflict with char $ac_func(); below.  */
 
1595
#include <assert.h>
 
1596
/* Override any gcc2 internal prototype to avoid an error.  */
 
1597
/* We use char because int might match the return type of a gcc2
 
1598
    builtin and then its argument prototype would still apply.  */
 
1599
char $ac_func();
 
1600
 
 
1601
int main() {
 
1602
 
 
1603
/* The GNU C library defines this for functions which it implements
 
1604
    to always fail with ENOSYS.  Some functions are actually named
 
1605
    something starting with __ and the normal name is an alias.  */
 
1606
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1607
choke me
 
1608
#else
 
1609
$ac_func();
 
1610
#endif
 
1611
 
 
1612
; return 0; }
 
1613
EOF
 
1614
if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
1615
  rm -rf conftest*
 
1616
  eval "ac_cv_func_$ac_func=yes"
 
1617
else
 
1618
  echo "configure: failed program was:" >&5
 
1619
  cat conftest.$ac_ext >&5
 
1620
  rm -rf conftest*
 
1621
  eval "ac_cv_func_$ac_func=no"
 
1622
fi
 
1623
rm -f conftest*
 
1624
fi
 
1625
 
 
1626
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1627
  echo "$ac_t""yes" 1>&6
 
1628
  cat >> confdefs.h <<EOF
 
1629
#define CRAY_STACKSEG_END $ac_func
 
1630
EOF
 
1631
 
 
1632
  break
 
1633
else
 
1634
  echo "$ac_t""no" 1>&6
 
1635
fi
 
1636
 
 
1637
done
 
1638
fi
 
1639
 
 
1640
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
1641
echo "configure:1642: checking stack direction for C alloca" >&5
 
1642
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
1643
  echo $ac_n "(cached) $ac_c" 1>&6
 
1644
else
 
1645
  if test "$cross_compiling" = yes; then
 
1646
  ac_cv_c_stack_direction=0
 
1647
else
 
1648
  cat > conftest.$ac_ext <<EOF
 
1649
#line 1650 "configure"
 
1650
#include "confdefs.h"
 
1651
find_stack_direction ()
 
1652
{
 
1653
  static char *addr = 0;
 
1654
  auto char dummy;
 
1655
  if (addr == 0)
 
1656
    {
 
1657
      addr = &dummy;
 
1658
      return find_stack_direction ();
 
1659
    }
 
1660
  else
 
1661
    return (&dummy > addr) ? 1 : -1;
 
1662
}
 
1663
main ()
 
1664
{
 
1665
  exit (find_stack_direction() < 0);
 
1666
}
 
1667
EOF
 
1668
if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 
1669
then
 
1670
  ac_cv_c_stack_direction=1
 
1671
else
 
1672
  echo "configure: failed program was:" >&5
 
1673
  cat conftest.$ac_ext >&5
 
1674
  rm -fr conftest*
 
1675
  ac_cv_c_stack_direction=-1
 
1676
fi
 
1677
rm -fr conftest*
 
1678
fi
 
1679
 
 
1680
fi
 
1681
 
 
1682
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
1683
cat >> confdefs.h <<EOF
 
1684
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
1685
EOF
 
1686
 
 
1687
fi
 
1688
 
 
1689
for ac_hdr in unistd.h
 
1690
do
 
1691
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1692
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1693
echo "configure:1694: checking for $ac_hdr" >&5
 
1694
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1695
  echo $ac_n "(cached) $ac_c" 1>&6
 
1696
else
 
1697
  cat > conftest.$ac_ext <<EOF
 
1698
#line 1699 "configure"
 
1699
#include "confdefs.h"
 
1700
#include <$ac_hdr>
 
1701
EOF
 
1702
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1703
{ (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1704
ac_err=`grep -v '^ *+' conftest.out`
 
1705
if test -z "$ac_err"; then
 
1706
  rm -rf conftest*
 
1707
  eval "ac_cv_header_$ac_safe=yes"
 
1708
else
 
1709
  echo "$ac_err" >&5
 
1710
  echo "configure: failed program was:" >&5
 
1711
  cat conftest.$ac_ext >&5
 
1712
  rm -rf conftest*
 
1713
  eval "ac_cv_header_$ac_safe=no"
 
1714
fi
 
1715
rm -f conftest*
 
1716
fi
 
1717
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1718
  echo "$ac_t""yes" 1>&6
 
1719
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1720
  cat >> confdefs.h <<EOF
 
1721
#define $ac_tr_hdr 1
 
1722
EOF
 
1723
 
 
1724
else
 
1725
  echo "$ac_t""no" 1>&6
 
1726
fi
 
1727
done
 
1728
 
 
1729
for ac_func in getpagesize
 
1730
do
 
1731
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1732
echo "configure:1733: checking for $ac_func" >&5
 
1733
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1734
  echo $ac_n "(cached) $ac_c" 1>&6
 
1735
else
 
1736
  cat > conftest.$ac_ext <<EOF
 
1737
#line 1738 "configure"
 
1738
#include "confdefs.h"
 
1739
/* System header to define __stub macros and hopefully few prototypes,
 
1740
    which can conflict with char $ac_func(); below.  */
 
1741
#include <assert.h>
 
1742
/* Override any gcc2 internal prototype to avoid an error.  */
 
1743
/* We use char because int might match the return type of a gcc2
 
1744
    builtin and then its argument prototype would still apply.  */
 
1745
char $ac_func();
 
1746
 
 
1747
int main() {
 
1748
 
 
1749
/* The GNU C library defines this for functions which it implements
 
1750
    to always fail with ENOSYS.  Some functions are actually named
 
1751
    something starting with __ and the normal name is an alias.  */
 
1752
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1753
choke me
 
1754
#else
 
1755
$ac_func();
 
1756
#endif
 
1757
 
 
1758
; return 0; }
 
1759
EOF
 
1760
if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
1761
  rm -rf conftest*
 
1762
  eval "ac_cv_func_$ac_func=yes"
 
1763
else
 
1764
  echo "configure: failed program was:" >&5
 
1765
  cat conftest.$ac_ext >&5
 
1766
  rm -rf conftest*
 
1767
  eval "ac_cv_func_$ac_func=no"
 
1768
fi
 
1769
rm -f conftest*
 
1770
fi
 
1771
 
 
1772
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1773
  echo "$ac_t""yes" 1>&6
 
1774
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1775
  cat >> confdefs.h <<EOF
 
1776
#define $ac_tr_func 1
 
1777
EOF
 
1778
 
 
1779
else
 
1780
  echo "$ac_t""no" 1>&6
 
1781
fi
 
1782
done
 
1783
 
 
1784
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
 
1785
echo "configure:1786: checking for working mmap" >&5
 
1786
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
 
1787
  echo $ac_n "(cached) $ac_c" 1>&6
 
1788
else
 
1789
  if test "$cross_compiling" = yes; then
 
1790
  ac_cv_func_mmap_fixed_mapped=no
 
1791
else
 
1792
  cat > conftest.$ac_ext <<EOF
 
1793
#line 1794 "configure"
 
1794
#include "confdefs.h"
 
1795
 
 
1796
/* Thanks to Mike Haertel and Jim Avera for this test.
 
1797
   Here is a matrix of mmap possibilities:
 
1798
        mmap private not fixed
 
1799
        mmap private fixed at somewhere currently unmapped
 
1800
        mmap private fixed at somewhere already mapped
 
1801
        mmap shared not fixed
 
1802
        mmap shared fixed at somewhere currently unmapped
 
1803
        mmap shared fixed at somewhere already mapped
 
1804
   For private mappings, we should verify that changes cannot be read()
 
1805
   back from the file, nor mmap's back from the file at a different
 
1806
   address.  (There have been systems where private was not correctly
 
1807
   implemented like the infamous i386 svr4.0, and systems where the
 
1808
   VM page cache was not coherent with the filesystem buffer cache
 
1809
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
1810
   For shared mappings, we should conversely verify that changes get
 
1811
   propogated back to all the places they're supposed to be.
 
1812
 
 
1813
   Grep wants private fixed already mapped.
 
1814
   The main things grep needs to know about mmap are:
 
1815
   * does it exist and is it safe to write into the mmap'd area
 
1816
   * how to use it (BSD variants)  */
 
1817
#include <sys/types.h>
 
1818
#include <fcntl.h>
 
1819
#include <sys/mman.h>
 
1820
 
 
1821
/* This mess was copied from the GNU getpagesize.h.  */
 
1822
#ifndef HAVE_GETPAGESIZE
 
1823
# ifdef HAVE_UNISTD_H
 
1824
#  include <unistd.h>
 
1825
# endif
 
1826
 
 
1827
/* Assume that all systems that can run configure have sys/param.h.  */
 
1828
# ifndef HAVE_SYS_PARAM_H
 
1829
#  define HAVE_SYS_PARAM_H 1
 
1830
# endif
 
1831
 
 
1832
# ifdef _SC_PAGESIZE
 
1833
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
1834
# else /* no _SC_PAGESIZE */
 
1835
#  ifdef HAVE_SYS_PARAM_H
 
1836
#   include <sys/param.h>
 
1837
#   ifdef EXEC_PAGESIZE
 
1838
#    define getpagesize() EXEC_PAGESIZE
 
1839
#   else /* no EXEC_PAGESIZE */
 
1840
#    ifdef NBPG
 
1841
#     define getpagesize() NBPG * CLSIZE
 
1842
#     ifndef CLSIZE
 
1843
#      define CLSIZE 1
 
1844
#     endif /* no CLSIZE */
 
1845
#    else /* no NBPG */
 
1846
#     ifdef NBPC
 
1847
#      define getpagesize() NBPC
 
1848
#     else /* no NBPC */
 
1849
#      ifdef PAGESIZE
 
1850
#       define getpagesize() PAGESIZE
 
1851
#      endif /* PAGESIZE */
 
1852
#     endif /* no NBPC */
 
1853
#    endif /* no NBPG */
 
1854
#   endif /* no EXEC_PAGESIZE */
 
1855
#  else /* no HAVE_SYS_PARAM_H */
 
1856
#   define getpagesize() 8192   /* punt totally */
 
1857
#  endif /* no HAVE_SYS_PARAM_H */
 
1858
# endif /* no _SC_PAGESIZE */
 
1859
 
 
1860
#endif /* no HAVE_GETPAGESIZE */
 
1861
 
 
1862
#ifdef __cplusplus
 
1863
extern "C" { void *malloc(unsigned); }
 
1864
#else
 
1865
char *malloc();
 
1866
#endif
 
1867
 
 
1868
int
 
1869
main()
 
1870
{
 
1871
        char *data, *data2, *data3;
 
1872
        int i, pagesize;
 
1873
        int fd;
 
1874
 
 
1875
        pagesize = getpagesize();
 
1876
 
 
1877
        /*
 
1878
         * First, make a file with some known garbage in it.
 
1879
         */
 
1880
        data = malloc(pagesize);
 
1881
        if (!data)
 
1882
                exit(1);
 
1883
        for (i = 0; i < pagesize; ++i)
 
1884
                *(data + i) = rand();
 
1885
        umask(0);
 
1886
        fd = creat("conftestmmap", 0600);
 
1887
        if (fd < 0)
 
1888
                exit(1);
 
1889
        if (write(fd, data, pagesize) != pagesize)
 
1890
                exit(1);
 
1891
        close(fd);
 
1892
 
 
1893
        /*
 
1894
         * Next, try to mmap the file at a fixed address which
 
1895
         * already has something else allocated at it.  If we can,
 
1896
         * also make sure that we see the same garbage.
 
1897
         */
 
1898
        fd = open("conftestmmap", O_RDWR);
 
1899
        if (fd < 0)
 
1900
                exit(1);
 
1901
        data2 = malloc(2 * pagesize);
 
1902
        if (!data2)
 
1903
                exit(1);
 
1904
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
1905
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
 
1906
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
1907
                exit(1);
 
1908
        for (i = 0; i < pagesize; ++i)
 
1909
                if (*(data + i) != *(data2 + i))
 
1910
                        exit(1);
 
1911
 
 
1912
        /*
 
1913
         * Finally, make sure that changes to the mapped area
 
1914
         * do not percolate back to the file as seen by read().
 
1915
         * (This is a bug on some variants of i386 svr4.0.)
 
1916
         */
 
1917
        for (i = 0; i < pagesize; ++i)
 
1918
                *(data2 + i) = *(data2 + i) + 1;
 
1919
        data3 = malloc(pagesize);
 
1920
        if (!data3)
 
1921
                exit(1);
 
1922
        if (read(fd, data3, pagesize) != pagesize)
 
1923
                exit(1);
 
1924
        for (i = 0; i < pagesize; ++i)
 
1925
                if (*(data + i) != *(data3 + i))
 
1926
                        exit(1);
 
1927
        close(fd);
 
1928
        unlink("conftestmmap");
 
1929
        exit(0);
 
1930
}
 
1931
 
 
1932
EOF
 
1933
if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 
1934
then
 
1935
  ac_cv_func_mmap_fixed_mapped=yes
 
1936
else
 
1937
  echo "configure: failed program was:" >&5
 
1938
  cat conftest.$ac_ext >&5
 
1939
  rm -fr conftest*
 
1940
  ac_cv_func_mmap_fixed_mapped=no
 
1941
fi
 
1942
rm -fr conftest*
 
1943
fi
 
1944
 
 
1945
fi
 
1946
 
 
1947
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
 
1948
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
1949
  cat >> confdefs.h <<\EOF
 
1950
#define HAVE_MMAP 1
 
1951
EOF
 
1952
 
 
1953
fi
 
1954
 
 
1955
                              
 
1956
   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
 
1957
unistd.h values.h sys/param.h
 
1958
do
 
1959
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1960
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1961
echo "configure:1962: checking for $ac_hdr" >&5
 
1962
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1963
  echo $ac_n "(cached) $ac_c" 1>&6
 
1964
else
 
1965
  cat > conftest.$ac_ext <<EOF
 
1966
#line 1967 "configure"
 
1967
#include "confdefs.h"
 
1968
#include <$ac_hdr>
 
1969
EOF
 
1970
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1971
{ (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1972
ac_err=`grep -v '^ *+' conftest.out`
 
1973
if test -z "$ac_err"; then
 
1974
  rm -rf conftest*
 
1975
  eval "ac_cv_header_$ac_safe=yes"
 
1976
else
 
1977
  echo "$ac_err" >&5
 
1978
  echo "configure: failed program was:" >&5
 
1979
  cat conftest.$ac_ext >&5
 
1980
  rm -rf conftest*
 
1981
  eval "ac_cv_header_$ac_safe=no"
 
1982
fi
 
1983
rm -f conftest*
 
1984
fi
 
1985
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1986
  echo "$ac_t""yes" 1>&6
 
1987
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1988
  cat >> confdefs.h <<EOF
 
1989
#define $ac_tr_hdr 1
 
1990
EOF
 
1991
 
 
1992
else
 
1993
  echo "$ac_t""no" 1>&6
 
1994
fi
 
1995
done
 
1996
 
 
1997
   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
 
1998
__argz_count __argz_stringify __argz_next
 
1999
do
 
2000
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2001
echo "configure:2002: checking for $ac_func" >&5
 
2002
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2003
  echo $ac_n "(cached) $ac_c" 1>&6
 
2004
else
 
2005
  cat > conftest.$ac_ext <<EOF
 
2006
#line 2007 "configure"
 
2007
#include "confdefs.h"
 
2008
/* System header to define __stub macros and hopefully few prototypes,
 
2009
    which can conflict with char $ac_func(); below.  */
 
2010
#include <assert.h>
 
2011
/* Override any gcc2 internal prototype to avoid an error.  */
 
2012
/* We use char because int might match the return type of a gcc2
 
2013
    builtin and then its argument prototype would still apply.  */
 
2014
char $ac_func();
 
2015
 
 
2016
int main() {
 
2017
 
 
2018
/* The GNU C library defines this for functions which it implements
 
2019
    to always fail with ENOSYS.  Some functions are actually named
 
2020
    something starting with __ and the normal name is an alias.  */
 
2021
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2022
choke me
 
2023
#else
 
2024
$ac_func();
 
2025
#endif
 
2026
 
 
2027
; return 0; }
 
2028
EOF
 
2029
if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2030
  rm -rf conftest*
 
2031
  eval "ac_cv_func_$ac_func=yes"
 
2032
else
 
2033
  echo "configure: failed program was:" >&5
 
2034
  cat conftest.$ac_ext >&5
 
2035
  rm -rf conftest*
 
2036
  eval "ac_cv_func_$ac_func=no"
 
2037
fi
 
2038
rm -f conftest*
 
2039
fi
 
2040
 
 
2041
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2042
  echo "$ac_t""yes" 1>&6
 
2043
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2044
  cat >> confdefs.h <<EOF
 
2045
#define $ac_tr_func 1
 
2046
EOF
 
2047
 
 
2048
else
 
2049
  echo "$ac_t""no" 1>&6
 
2050
fi
 
2051
done
 
2052
 
 
2053
 
 
2054
   if test "${ac_cv_func_stpcpy+set}" != "set"; then
 
2055
     for ac_func in stpcpy
 
2056
do
 
2057
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2058
echo "configure:2059: checking for $ac_func" >&5
 
2059
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2060
  echo $ac_n "(cached) $ac_c" 1>&6
 
2061
else
 
2062
  cat > conftest.$ac_ext <<EOF
 
2063
#line 2064 "configure"
 
2064
#include "confdefs.h"
 
2065
/* System header to define __stub macros and hopefully few prototypes,
 
2066
    which can conflict with char $ac_func(); below.  */
 
2067
#include <assert.h>
 
2068
/* Override any gcc2 internal prototype to avoid an error.  */
 
2069
/* We use char because int might match the return type of a gcc2
 
2070
    builtin and then its argument prototype would still apply.  */
 
2071
char $ac_func();
 
2072
 
 
2073
int main() {
 
2074
 
 
2075
/* The GNU C library defines this for functions which it implements
 
2076
    to always fail with ENOSYS.  Some functions are actually named
 
2077
    something starting with __ and the normal name is an alias.  */
 
2078
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2079
choke me
 
2080
#else
 
2081
$ac_func();
 
2082
#endif
 
2083
 
 
2084
; return 0; }
 
2085
EOF
 
2086
if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2087
  rm -rf conftest*
 
2088
  eval "ac_cv_func_$ac_func=yes"
 
2089
else
 
2090
  echo "configure: failed program was:" >&5
 
2091
  cat conftest.$ac_ext >&5
 
2092
  rm -rf conftest*
 
2093
  eval "ac_cv_func_$ac_func=no"
 
2094
fi
 
2095
rm -f conftest*
 
2096
fi
 
2097
 
 
2098
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2099
  echo "$ac_t""yes" 1>&6
 
2100
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2101
  cat >> confdefs.h <<EOF
 
2102
#define $ac_tr_func 1
 
2103
EOF
 
2104
 
 
2105
else
 
2106
  echo "$ac_t""no" 1>&6
 
2107
fi
 
2108
done
 
2109
 
 
2110
   fi
 
2111
   if test "${ac_cv_func_stpcpy}" = "yes"; then
 
2112
     cat >> confdefs.h <<\EOF
 
2113
#define HAVE_STPCPY 1
 
2114
EOF
 
2115
 
 
2116
   fi
 
2117
 
 
2118
   if test $ac_cv_header_locale_h = yes; then
 
2119
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
 
2120
echo "configure:2121: checking for LC_MESSAGES" >&5
 
2121
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
 
2122
  echo $ac_n "(cached) $ac_c" 1>&6
 
2123
else
 
2124
  cat > conftest.$ac_ext <<EOF
 
2125
#line 2126 "configure"
 
2126
#include "confdefs.h"
 
2127
#include <locale.h>
 
2128
int main() {
 
2129
return LC_MESSAGES
 
2130
; return 0; }
 
2131
EOF
 
2132
if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2133
  rm -rf conftest*
 
2134
  am_cv_val_LC_MESSAGES=yes
 
2135
else
 
2136
  echo "configure: failed program was:" >&5
 
2137
  cat conftest.$ac_ext >&5
 
2138
  rm -rf conftest*
 
2139
  am_cv_val_LC_MESSAGES=no
 
2140
fi
 
2141
rm -f conftest*
 
2142
fi
 
2143
 
 
2144
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
 
2145
    if test $am_cv_val_LC_MESSAGES = yes; then
 
2146
      cat >> confdefs.h <<\EOF
 
2147
#define HAVE_LC_MESSAGES 1
 
2148
EOF
 
2149
 
 
2150
    fi
 
2151
  fi
 
2152
   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
 
2153
echo "configure:2154: checking whether NLS is requested" >&5
 
2154
        # Check whether --enable-nls or --disable-nls was given.
 
2155
if test "${enable_nls+set}" = set; then
 
2156
  enableval="$enable_nls"
 
2157
  USE_NLS=$enableval
 
2158
else
 
2159
  USE_NLS=yes
 
2160
fi
 
2161
 
 
2162
    echo "$ac_t""$USE_NLS" 1>&6
 
2163
    
 
2164
 
 
2165
    USE_INCLUDED_LIBINTL=no
 
2166
 
 
2167
        if test "$USE_NLS" = "yes"; then
 
2168
      cat >> confdefs.h <<\EOF
 
2169
#define ENABLE_NLS 1
 
2170
EOF
 
2171
 
 
2172
      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
 
2173
echo "configure:2174: checking whether included gettext is requested" >&5
 
2174
      # Check whether --with-included-gettext or --without-included-gettext was given.
 
2175
if test "${with_included_gettext+set}" = set; then
 
2176
  withval="$with_included_gettext"
 
2177
  nls_cv_force_use_gnu_gettext=$withval
 
2178
else
 
2179
  nls_cv_force_use_gnu_gettext=no
 
2180
fi
 
2181
 
 
2182
      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
 
2183
 
 
2184
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
2185
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
2186
                                        nls_cv_header_intl=
 
2187
        nls_cv_header_libgt=
 
2188
        CATOBJEXT=NONE
 
2189
 
 
2190
        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
 
2191
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
 
2192
echo "configure:2193: checking for libintl.h" >&5
 
2193
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2194
  echo $ac_n "(cached) $ac_c" 1>&6
 
2195
else
 
2196
  cat > conftest.$ac_ext <<EOF
 
2197
#line 2198 "configure"
 
2198
#include "confdefs.h"
 
2199
#include <libintl.h>
 
2200
EOF
 
2201
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2202
{ (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2203
ac_err=`grep -v '^ *+' conftest.out`
 
2204
if test -z "$ac_err"; then
 
2205
  rm -rf conftest*
 
2206
  eval "ac_cv_header_$ac_safe=yes"
 
2207
else
 
2208
  echo "$ac_err" >&5
 
2209
  echo "configure: failed program was:" >&5
 
2210
  cat conftest.$ac_ext >&5
 
2211
  rm -rf conftest*
 
2212
  eval "ac_cv_header_$ac_safe=no"
 
2213
fi
 
2214
rm -f conftest*
 
2215
fi
 
2216
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2217
  echo "$ac_t""yes" 1>&6
 
2218
  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
 
2219
echo "configure:2220: checking for gettext in libc" >&5
 
2220
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
 
2221
  echo $ac_n "(cached) $ac_c" 1>&6
 
2222
else
 
2223
  cat > conftest.$ac_ext <<EOF
 
2224
#line 2225 "configure"
 
2225
#include "confdefs.h"
 
2226
#include <libintl.h>
 
2227
int main() {
 
2228
return (int) gettext ("")
 
2229
; return 0; }
 
2230
EOF
 
2231
if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2232
  rm -rf conftest*
 
2233
  gt_cv_func_gettext_libc=yes
 
2234
else
 
2235
  echo "configure: failed program was:" >&5
 
2236
  cat conftest.$ac_ext >&5
 
2237
  rm -rf conftest*
 
2238
  gt_cv_func_gettext_libc=no
 
2239
fi
 
2240
rm -f conftest*
 
2241
fi
 
2242
 
 
2243
echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
 
2244
 
 
2245
           if test "$gt_cv_func_gettext_libc" != "yes"; then
 
2246
             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
 
2247
echo "configure:2248: checking for bindtextdomain in -lintl" >&5
 
2248
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
 
2249
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2250
  echo $ac_n "(cached) $ac_c" 1>&6
 
2251
else
 
2252
  ac_save_LIBS="$LIBS"
 
2253
LIBS="-lintl  $LIBS"
 
2254
cat > conftest.$ac_ext <<EOF
 
2255
#line 2256 "configure"
 
2256
#include "confdefs.h"
 
2257
/* Override any gcc2 internal prototype to avoid an error.  */
 
2258
/* We use char because int might match the return type of a gcc2
 
2259
    builtin and then its argument prototype would still apply.  */
 
2260
char bindtextdomain();
 
2261
 
 
2262
int main() {
 
2263
bindtextdomain()
 
2264
; return 0; }
 
2265
EOF
 
2266
if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2267
  rm -rf conftest*
 
2268
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2269
else
 
2270
  echo "configure: failed program was:" >&5
 
2271
  cat conftest.$ac_ext >&5
 
2272
  rm -rf conftest*
 
2273
  eval "ac_cv_lib_$ac_lib_var=no"
 
2274
fi
 
2275
rm -f conftest*
 
2276
LIBS="$ac_save_LIBS"
 
2277
 
 
2278
fi
 
2279
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2280
  echo "$ac_t""yes" 1>&6
 
2281
  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
 
2282
echo "configure:2283: checking for gettext in libintl" >&5
 
2283
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
 
2284
  echo $ac_n "(cached) $ac_c" 1>&6
 
2285
else
 
2286
  cat > conftest.$ac_ext <<EOF
 
2287
#line 2288 "configure"
 
2288
#include "confdefs.h"
 
2289
 
 
2290
int main() {
 
2291
return (int) gettext ("")
 
2292
; return 0; }
 
2293
EOF
 
2294
if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2295
  rm -rf conftest*
 
2296
  gt_cv_func_gettext_libintl=yes
 
2297
else
 
2298
  echo "configure: failed program was:" >&5
 
2299
  cat conftest.$ac_ext >&5
 
2300
  rm -rf conftest*
 
2301
  gt_cv_func_gettext_libintl=no
 
2302
fi
 
2303
rm -f conftest*
 
2304
fi
 
2305
 
 
2306
echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
 
2307
else
 
2308
  echo "$ac_t""no" 1>&6
 
2309
fi
 
2310
 
 
2311
           fi
 
2312
 
 
2313
           if test "$gt_cv_func_gettext_libc" = "yes" \
 
2314
              || test "$gt_cv_func_gettext_libintl" = "yes"; then
 
2315
              cat >> confdefs.h <<\EOF
 
2316
#define HAVE_GETTEXT 1
 
2317
EOF
 
2318
 
 
2319
              # Extract the first word of "msgfmt", so it can be a program name with args.
 
2320
set dummy msgfmt; ac_word=$2
 
2321
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2322
echo "configure:2323: checking for $ac_word" >&5
 
2323
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 
2324
  echo $ac_n "(cached) $ac_c" 1>&6
 
2325
else
 
2326
  case "$MSGFMT" in
 
2327
  /*)
 
2328
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2329
  ;;
 
2330
  *)
 
2331
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2332
  for ac_dir in $PATH; do
 
2333
    test -z "$ac_dir" && ac_dir=.
 
2334
    if test -f $ac_dir/$ac_word; then
 
2335
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
2336
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
2337
        break
 
2338
      fi
 
2339
    fi
 
2340
  done
 
2341
  IFS="$ac_save_ifs"
 
2342
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
2343
  ;;
 
2344
esac
 
2345
fi
 
2346
MSGFMT="$ac_cv_path_MSGFMT"
 
2347
if test -n "$MSGFMT"; then
 
2348
  echo "$ac_t""$MSGFMT" 1>&6
 
2349
else
 
2350
  echo "$ac_t""no" 1>&6
 
2351
fi
 
2352
              if test "$MSGFMT" != "no"; then
 
2353
                for ac_func in dcgettext
 
2354
do
 
2355
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2356
echo "configure:2357: checking for $ac_func" >&5
 
2357
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2358
  echo $ac_n "(cached) $ac_c" 1>&6
 
2359
else
 
2360
  cat > conftest.$ac_ext <<EOF
 
2361
#line 2362 "configure"
 
2362
#include "confdefs.h"
 
2363
/* System header to define __stub macros and hopefully few prototypes,
 
2364
    which can conflict with char $ac_func(); below.  */
 
2365
#include <assert.h>
 
2366
/* Override any gcc2 internal prototype to avoid an error.  */
 
2367
/* We use char because int might match the return type of a gcc2
 
2368
    builtin and then its argument prototype would still apply.  */
 
2369
char $ac_func();
 
2370
 
 
2371
int main() {
 
2372
 
 
2373
/* The GNU C library defines this for functions which it implements
 
2374
    to always fail with ENOSYS.  Some functions are actually named
 
2375
    something starting with __ and the normal name is an alias.  */
 
2376
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2377
choke me
 
2378
#else
 
2379
$ac_func();
 
2380
#endif
 
2381
 
 
2382
; return 0; }
 
2383
EOF
 
2384
if { (eval echo configure:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2385
  rm -rf conftest*
 
2386
  eval "ac_cv_func_$ac_func=yes"
 
2387
else
 
2388
  echo "configure: failed program was:" >&5
 
2389
  cat conftest.$ac_ext >&5
 
2390
  rm -rf conftest*
 
2391
  eval "ac_cv_func_$ac_func=no"
 
2392
fi
 
2393
rm -f conftest*
 
2394
fi
 
2395
 
 
2396
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2397
  echo "$ac_t""yes" 1>&6
 
2398
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2399
  cat >> confdefs.h <<EOF
 
2400
#define $ac_tr_func 1
 
2401
EOF
 
2402
 
 
2403
else
 
2404
  echo "$ac_t""no" 1>&6
 
2405
fi
 
2406
done
 
2407
 
 
2408
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2409
set dummy gmsgfmt; ac_word=$2
 
2410
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2411
echo "configure:2412: checking for $ac_word" >&5
 
2412
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2413
  echo $ac_n "(cached) $ac_c" 1>&6
 
2414
else
 
2415
  case "$GMSGFMT" in
 
2416
  /*)
 
2417
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2418
  ;;
 
2419
  *)
 
2420
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2421
  for ac_dir in $PATH; do
 
2422
    test -z "$ac_dir" && ac_dir=.
 
2423
    if test -f $ac_dir/$ac_word; then
 
2424
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2425
      break
 
2426
    fi
 
2427
  done
 
2428
  IFS="$ac_save_ifs"
 
2429
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2430
  ;;
 
2431
esac
 
2432
fi
 
2433
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2434
if test -n "$GMSGFMT"; then
 
2435
  echo "$ac_t""$GMSGFMT" 1>&6
 
2436
else
 
2437
  echo "$ac_t""no" 1>&6
 
2438
fi
 
2439
 
 
2440
                # Extract the first word of "xgettext", so it can be a program name with args.
 
2441
set dummy xgettext; ac_word=$2
 
2442
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2443
echo "configure:2444: checking for $ac_word" >&5
 
2444
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2445
  echo $ac_n "(cached) $ac_c" 1>&6
 
2446
else
 
2447
  case "$XGETTEXT" in
 
2448
  /*)
 
2449
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2450
  ;;
 
2451
  *)
 
2452
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2453
  for ac_dir in $PATH; do
 
2454
    test -z "$ac_dir" && ac_dir=.
 
2455
    if test -f $ac_dir/$ac_word; then
 
2456
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
2457
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2458
        break
 
2459
      fi
 
2460
    fi
 
2461
  done
 
2462
  IFS="$ac_save_ifs"
 
2463
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2464
  ;;
 
2465
esac
 
2466
fi
 
2467
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2468
if test -n "$XGETTEXT"; then
 
2469
  echo "$ac_t""$XGETTEXT" 1>&6
 
2470
else
 
2471
  echo "$ac_t""no" 1>&6
 
2472
fi
 
2473
 
 
2474
                cat > conftest.$ac_ext <<EOF
 
2475
#line 2476 "configure"
 
2476
#include "confdefs.h"
 
2477
 
 
2478
int main() {
 
2479
extern int _nl_msg_cat_cntr;
 
2480
                               return _nl_msg_cat_cntr
 
2481
; return 0; }
 
2482
EOF
 
2483
if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2484
  rm -rf conftest*
 
2485
  CATOBJEXT=.gmo
 
2486
                   DATADIRNAME=share
 
2487
else
 
2488
  echo "configure: failed program was:" >&5
 
2489
  cat conftest.$ac_ext >&5
 
2490
  rm -rf conftest*
 
2491
  CATOBJEXT=.mo
 
2492
                   DATADIRNAME=lib
 
2493
fi
 
2494
rm -f conftest*
 
2495
                INSTOBJEXT=.mo
 
2496
              fi
 
2497
            fi
 
2498
        
 
2499
else
 
2500
  echo "$ac_t""no" 1>&6
 
2501
fi
 
2502
 
 
2503
 
 
2504
        if test "$CATOBJEXT" = "NONE"; then
 
2505
          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
 
2506
echo "configure:2507: checking whether catgets can be used" >&5
 
2507
          # Check whether --with-catgets or --without-catgets was given.
 
2508
if test "${with_catgets+set}" = set; then
 
2509
  withval="$with_catgets"
 
2510
  nls_cv_use_catgets=$withval
 
2511
else
 
2512
  nls_cv_use_catgets=no
 
2513
fi
 
2514
 
 
2515
          echo "$ac_t""$nls_cv_use_catgets" 1>&6
 
2516
 
 
2517
          if test "$nls_cv_use_catgets" = "yes"; then
 
2518
                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
 
2519
echo "configure:2520: checking for main in -li" >&5
 
2520
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
 
2521
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2522
  echo $ac_n "(cached) $ac_c" 1>&6
 
2523
else
 
2524
  ac_save_LIBS="$LIBS"
 
2525
LIBS="-li  $LIBS"
 
2526
cat > conftest.$ac_ext <<EOF
 
2527
#line 2528 "configure"
 
2528
#include "confdefs.h"
 
2529
 
 
2530
int main() {
 
2531
main()
 
2532
; return 0; }
 
2533
EOF
 
2534
if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2535
  rm -rf conftest*
 
2536
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2537
else
 
2538
  echo "configure: failed program was:" >&5
 
2539
  cat conftest.$ac_ext >&5
 
2540
  rm -rf conftest*
 
2541
  eval "ac_cv_lib_$ac_lib_var=no"
 
2542
fi
 
2543
rm -f conftest*
 
2544
LIBS="$ac_save_LIBS"
 
2545
 
 
2546
fi
 
2547
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2548
  echo "$ac_t""yes" 1>&6
 
2549
    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2550
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2551
  cat >> confdefs.h <<EOF
 
2552
#define $ac_tr_lib 1
 
2553
EOF
 
2554
 
 
2555
  LIBS="-li $LIBS"
 
2556
 
 
2557
else
 
2558
  echo "$ac_t""no" 1>&6
 
2559
fi
 
2560
 
 
2561
            echo $ac_n "checking for catgets""... $ac_c" 1>&6
 
2562
echo "configure:2563: checking for catgets" >&5
 
2563
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
 
2564
  echo $ac_n "(cached) $ac_c" 1>&6
 
2565
else
 
2566
  cat > conftest.$ac_ext <<EOF
 
2567
#line 2568 "configure"
 
2568
#include "confdefs.h"
 
2569
/* System header to define __stub macros and hopefully few prototypes,
 
2570
    which can conflict with char catgets(); below.  */
 
2571
#include <assert.h>
 
2572
/* Override any gcc2 internal prototype to avoid an error.  */
 
2573
/* We use char because int might match the return type of a gcc2
 
2574
    builtin and then its argument prototype would still apply.  */
 
2575
char catgets();
 
2576
 
 
2577
int main() {
 
2578
 
 
2579
/* The GNU C library defines this for functions which it implements
 
2580
    to always fail with ENOSYS.  Some functions are actually named
 
2581
    something starting with __ and the normal name is an alias.  */
 
2582
#if defined (__stub_catgets) || defined (__stub___catgets)
 
2583
choke me
 
2584
#else
 
2585
catgets();
 
2586
#endif
 
2587
 
 
2588
; return 0; }
 
2589
EOF
 
2590
if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2591
  rm -rf conftest*
 
2592
  eval "ac_cv_func_catgets=yes"
 
2593
else
 
2594
  echo "configure: failed program was:" >&5
 
2595
  cat conftest.$ac_ext >&5
 
2596
  rm -rf conftest*
 
2597
  eval "ac_cv_func_catgets=no"
 
2598
fi
 
2599
rm -f conftest*
 
2600
fi
 
2601
 
 
2602
if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
 
2603
  echo "$ac_t""yes" 1>&6
 
2604
  cat >> confdefs.h <<\EOF
 
2605
#define HAVE_CATGETS 1
 
2606
EOF
 
2607
 
 
2608
               INTLOBJS="\$(CATOBJS)"
 
2609
               # Extract the first word of "gencat", so it can be a program name with args.
 
2610
set dummy gencat; ac_word=$2
 
2611
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2612
echo "configure:2613: checking for $ac_word" >&5
 
2613
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
 
2614
  echo $ac_n "(cached) $ac_c" 1>&6
 
2615
else
 
2616
  case "$GENCAT" in
 
2617
  /*)
 
2618
  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
 
2619
  ;;
 
2620
  *)
 
2621
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2622
  for ac_dir in $PATH; do
 
2623
    test -z "$ac_dir" && ac_dir=.
 
2624
    if test -f $ac_dir/$ac_word; then
 
2625
      ac_cv_path_GENCAT="$ac_dir/$ac_word"
 
2626
      break
 
2627
    fi
 
2628
  done
 
2629
  IFS="$ac_save_ifs"
 
2630
  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
 
2631
  ;;
 
2632
esac
 
2633
fi
 
2634
GENCAT="$ac_cv_path_GENCAT"
 
2635
if test -n "$GENCAT"; then
 
2636
  echo "$ac_t""$GENCAT" 1>&6
 
2637
else
 
2638
  echo "$ac_t""no" 1>&6
 
2639
fi
 
2640
               if test "$GENCAT" != "no"; then
 
2641
                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2642
set dummy gmsgfmt; ac_word=$2
 
2643
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2644
echo "configure:2645: checking for $ac_word" >&5
 
2645
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2646
  echo $ac_n "(cached) $ac_c" 1>&6
 
2647
else
 
2648
  case "$GMSGFMT" in
 
2649
  /*)
 
2650
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2651
  ;;
 
2652
  *)
 
2653
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2654
  for ac_dir in $PATH; do
 
2655
    test -z "$ac_dir" && ac_dir=.
 
2656
    if test -f $ac_dir/$ac_word; then
 
2657
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2658
      break
 
2659
    fi
 
2660
  done
 
2661
  IFS="$ac_save_ifs"
 
2662
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
 
2663
  ;;
 
2664
esac
 
2665
fi
 
2666
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2667
if test -n "$GMSGFMT"; then
 
2668
  echo "$ac_t""$GMSGFMT" 1>&6
 
2669
else
 
2670
  echo "$ac_t""no" 1>&6
 
2671
fi
 
2672
 
 
2673
                 if test "$GMSGFMT" = "no"; then
 
2674
                   # Extract the first word of "msgfmt", so it can be a program name with args.
 
2675
set dummy msgfmt; ac_word=$2
 
2676
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2677
echo "configure:2678: checking for $ac_word" >&5
 
2678
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2679
  echo $ac_n "(cached) $ac_c" 1>&6
 
2680
else
 
2681
  case "$GMSGFMT" in
 
2682
  /*)
 
2683
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2684
  ;;
 
2685
  *)
 
2686
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2687
  for ac_dir in $PATH; do
 
2688
    test -z "$ac_dir" && ac_dir=.
 
2689
    if test -f $ac_dir/$ac_word; then
 
2690
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
2691
        ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2692
        break
 
2693
      fi
 
2694
    fi
 
2695
  done
 
2696
  IFS="$ac_save_ifs"
 
2697
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
 
2698
  ;;
 
2699
esac
 
2700
fi
 
2701
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2702
if test -n "$GMSGFMT"; then
 
2703
  echo "$ac_t""$GMSGFMT" 1>&6
 
2704
else
 
2705
  echo "$ac_t""no" 1>&6
 
2706
fi
 
2707
 
 
2708
                 fi
 
2709
                 # Extract the first word of "xgettext", so it can be a program name with args.
 
2710
set dummy xgettext; ac_word=$2
 
2711
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2712
echo "configure:2713: checking for $ac_word" >&5
 
2713
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2714
  echo $ac_n "(cached) $ac_c" 1>&6
 
2715
else
 
2716
  case "$XGETTEXT" in
 
2717
  /*)
 
2718
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2719
  ;;
 
2720
  *)
 
2721
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2722
  for ac_dir in $PATH; do
 
2723
    test -z "$ac_dir" && ac_dir=.
 
2724
    if test -f $ac_dir/$ac_word; then
 
2725
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
2726
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2727
        break
 
2728
      fi
 
2729
    fi
 
2730
  done
 
2731
  IFS="$ac_save_ifs"
 
2732
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2733
  ;;
 
2734
esac
 
2735
fi
 
2736
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2737
if test -n "$XGETTEXT"; then
 
2738
  echo "$ac_t""$XGETTEXT" 1>&6
 
2739
else
 
2740
  echo "$ac_t""no" 1>&6
 
2741
fi
 
2742
 
 
2743
                 USE_INCLUDED_LIBINTL=yes
 
2744
                 CATOBJEXT=.cat
 
2745
                 INSTOBJEXT=.cat
 
2746
                 DATADIRNAME=lib
 
2747
                 INTLDEPS='$(top_builddir)/intl/libintl.a'
 
2748
                 INTLLIBS=$INTLDEPS
 
2749
                 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
 
2750
                 nls_cv_header_intl=intl/libintl.h
 
2751
                 nls_cv_header_libgt=intl/libgettext.h
 
2752
               fi
 
2753
else
 
2754
  echo "$ac_t""no" 1>&6
 
2755
fi
 
2756
 
 
2757
          fi
 
2758
        fi
 
2759
 
 
2760
        if test "$CATOBJEXT" = "NONE"; then
 
2761
                          nls_cv_use_gnu_gettext=yes
 
2762
        fi
 
2763
      fi
 
2764
 
 
2765
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
2766
                INTLOBJS="\$(GETTOBJS)"
 
2767
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
2768
set dummy msgfmt; ac_word=$2
 
2769
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2770
echo "configure:2771: checking for $ac_word" >&5
 
2771
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 
2772
  echo $ac_n "(cached) $ac_c" 1>&6
 
2773
else
 
2774
  case "$MSGFMT" in
 
2775
  /*)
 
2776
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
2777
  ;;
 
2778
  *)
 
2779
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2780
  for ac_dir in $PATH; do
 
2781
    test -z "$ac_dir" && ac_dir=.
 
2782
    if test -f $ac_dir/$ac_word; then
 
2783
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
2784
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
2785
        break
 
2786
      fi
 
2787
    fi
 
2788
  done
 
2789
  IFS="$ac_save_ifs"
 
2790
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
2791
  ;;
 
2792
esac
 
2793
fi
 
2794
MSGFMT="$ac_cv_path_MSGFMT"
 
2795
if test -n "$MSGFMT"; then
 
2796
  echo "$ac_t""$MSGFMT" 1>&6
 
2797
else
 
2798
  echo "$ac_t""no" 1>&6
 
2799
fi
 
2800
 
 
2801
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
2802
set dummy gmsgfmt; ac_word=$2
 
2803
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2804
echo "configure:2805: checking for $ac_word" >&5
 
2805
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
2806
  echo $ac_n "(cached) $ac_c" 1>&6
 
2807
else
 
2808
  case "$GMSGFMT" in
 
2809
  /*)
 
2810
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
2811
  ;;
 
2812
  *)
 
2813
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2814
  for ac_dir in $PATH; do
 
2815
    test -z "$ac_dir" && ac_dir=.
 
2816
    if test -f $ac_dir/$ac_word; then
 
2817
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
2818
      break
 
2819
    fi
 
2820
  done
 
2821
  IFS="$ac_save_ifs"
 
2822
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
2823
  ;;
 
2824
esac
 
2825
fi
 
2826
GMSGFMT="$ac_cv_path_GMSGFMT"
 
2827
if test -n "$GMSGFMT"; then
 
2828
  echo "$ac_t""$GMSGFMT" 1>&6
 
2829
else
 
2830
  echo "$ac_t""no" 1>&6
 
2831
fi
 
2832
 
 
2833
        # Extract the first word of "xgettext", so it can be a program name with args.
 
2834
set dummy xgettext; ac_word=$2
 
2835
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2836
echo "configure:2837: checking for $ac_word" >&5
 
2837
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
2838
  echo $ac_n "(cached) $ac_c" 1>&6
 
2839
else
 
2840
  case "$XGETTEXT" in
 
2841
  /*)
 
2842
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
2843
  ;;
 
2844
  *)
 
2845
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
2846
  for ac_dir in $PATH; do
 
2847
    test -z "$ac_dir" && ac_dir=.
 
2848
    if test -f $ac_dir/$ac_word; then
 
2849
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
2850
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
2851
        break
 
2852
      fi
 
2853
    fi
 
2854
  done
 
2855
  IFS="$ac_save_ifs"
 
2856
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
2857
  ;;
 
2858
esac
 
2859
fi
 
2860
XGETTEXT="$ac_cv_path_XGETTEXT"
 
2861
if test -n "$XGETTEXT"; then
 
2862
  echo "$ac_t""$XGETTEXT" 1>&6
 
2863
else
 
2864
  echo "$ac_t""no" 1>&6
 
2865
fi
 
2866
 
 
2867
        
 
2868
        USE_INCLUDED_LIBINTL=yes
 
2869
        CATOBJEXT=.gmo
 
2870
        INSTOBJEXT=.mo
 
2871
        DATADIRNAME=share
 
2872
        INTLDEPS='$(top_builddir)/intl/libintl.a'
 
2873
        INTLLIBS=$INTLDEPS
 
2874
        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
 
2875
        nls_cv_header_intl=intl/libintl.h
 
2876
        nls_cv_header_libgt=intl/libgettext.h
 
2877
      fi
 
2878
 
 
2879
            if test "$XGETTEXT" != ":"; then
 
2880
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
2881
          : ;
 
2882
        else
 
2883
          echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
 
2884
          XGETTEXT=":"
 
2885
        fi
 
2886
      fi
 
2887
 
 
2888
      # We need to process the po/ directory.
 
2889
      POSUB=po
 
2890
    else
 
2891
      DATADIRNAME=share
 
2892
      nls_cv_header_intl=intl/libintl.h
 
2893
      nls_cv_header_libgt=intl/libgettext.h
 
2894
    fi
 
2895
 
 
2896
    # If this is used in GNU gettext we have to set USE_NLS to `yes'
 
2897
    # because some of the sources are only built for this goal.
 
2898
    if test "$PACKAGE" = gettext; then
 
2899
      USE_NLS=yes
 
2900
      USE_INCLUDED_LIBINTL=yes
 
2901
    fi
 
2902
 
 
2903
                for lang in $ALL_LINGUAS; do
 
2904
      GMOFILES="$GMOFILES $lang.gmo"
 
2905
      POFILES="$POFILES $lang.po"
 
2906
    done
 
2907
 
 
2908
        
 
2909
    
 
2910
    
 
2911
    
 
2912
    
 
2913
    
 
2914
    
 
2915
    
 
2916
    
 
2917
    
 
2918
    
 
2919
  
 
2920
 
 
2921
   if test "x$CATOBJEXT" != "x"; then
 
2922
     if test "x$ALL_LINGUAS" = "x"; then
 
2923
       LINGUAS=
 
2924
     else
 
2925
       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
 
2926
echo "configure:2927: checking for catalogs to be installed" >&5
 
2927
       NEW_LINGUAS=
 
2928
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
 
2929
         case "$ALL_LINGUAS" in
 
2930
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
 
2931
         esac
 
2932
       done
 
2933
       LINGUAS=$NEW_LINGUAS
 
2934
       echo "$ac_t""$LINGUAS" 1>&6
 
2935
     fi
 
2936
 
 
2937
          if test -n "$LINGUAS"; then
 
2938
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
2939
     fi
 
2940
   fi
 
2941
 
 
2942
            if test $ac_cv_header_locale_h = yes; then
 
2943
     INCLUDE_LOCALE_H="#include <locale.h>"
 
2944
   else
 
2945
     INCLUDE_LOCALE_H="\
 
2946
/* The system does not provide the header <locale.h>.  Take care yourself.  */"
 
2947
   fi
 
2948
   
 
2949
 
 
2950
            test -d intl || mkdir intl
 
2951
   if test "$CATOBJEXT" = ".cat"; then
 
2952
     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
 
2953
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
 
2954
echo "configure:2955: checking for linux/version.h" >&5
 
2955
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2956
  echo $ac_n "(cached) $ac_c" 1>&6
 
2957
else
 
2958
  cat > conftest.$ac_ext <<EOF
 
2959
#line 2960 "configure"
 
2960
#include "confdefs.h"
 
2961
#include <linux/version.h>
 
2962
EOF
 
2963
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2964
{ (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2965
ac_err=`grep -v '^ *+' conftest.out`
 
2966
if test -z "$ac_err"; then
 
2967
  rm -rf conftest*
 
2968
  eval "ac_cv_header_$ac_safe=yes"
 
2969
else
 
2970
  echo "$ac_err" >&5
 
2971
  echo "configure: failed program was:" >&5
 
2972
  cat conftest.$ac_ext >&5
 
2973
  rm -rf conftest*
 
2974
  eval "ac_cv_header_$ac_safe=no"
 
2975
fi
 
2976
rm -f conftest*
 
2977
fi
 
2978
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2979
  echo "$ac_t""yes" 1>&6
 
2980
  msgformat=linux
 
2981
else
 
2982
  echo "$ac_t""no" 1>&6
 
2983
msgformat=xopen
 
2984
fi
 
2985
 
 
2986
 
 
2987
               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
 
2988
   fi
 
2989
      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
 
2990
     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
 
2991
 
 
2992
            if test "$PACKAGE" = "gettext"; then
 
2993
     GT_NO="#NO#"
 
2994
     GT_YES=
 
2995
   else
 
2996
     GT_NO=
 
2997
     GT_YES="#YES#"
 
2998
   fi
 
2999
   
 
3000
   
 
3001
 
 
3002
            MKINSTALLDIRS=
 
3003
   if test -n "$ac_aux_dir"; then
 
3004
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
3005
   fi
 
3006
   if test -z "$MKINSTALLDIRS"; then
 
3007
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
3008
   fi
 
3009
   
 
3010
 
 
3011
      l=
 
3012
   
 
3013
 
 
3014
         test -d po || mkdir po
 
3015
   if test "x$srcdir" != "x."; then
 
3016
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
3017
       posrcprefix="$srcdir/"
 
3018
     else
 
3019
       posrcprefix="../$srcdir/"
 
3020
     fi
 
3021
   else
 
3022
     posrcprefix="../"
 
3023
   fi
 
3024
   rm -f po/POTFILES
 
3025
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
3026
        < $srcdir/po/POTFILES.in > po/POTFILES
 
3027
  
 
3028
 
 
3029
 
 
3030
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
 
3031
echo "configure:3032: checking for gethostbyname in -lnsl" >&5
 
3032
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
 
3033
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3034
  echo $ac_n "(cached) $ac_c" 1>&6
 
3035
else
 
3036
  ac_save_LIBS="$LIBS"
 
3037
LIBS="-lnsl  $LIBS"
 
3038
cat > conftest.$ac_ext <<EOF
 
3039
#line 3040 "configure"
 
3040
#include "confdefs.h"
 
3041
/* Override any gcc2 internal prototype to avoid an error.  */
 
3042
/* We use char because int might match the return type of a gcc2
 
3043
    builtin and then its argument prototype would still apply.  */
 
3044
char gethostbyname();
 
3045
 
 
3046
int main() {
 
3047
gethostbyname()
 
3048
; return 0; }
 
3049
EOF
 
3050
if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
3051
  rm -rf conftest*
 
3052
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3053
else
 
3054
  echo "configure: failed program was:" >&5
 
3055
  cat conftest.$ac_ext >&5
 
3056
  rm -rf conftest*
 
3057
  eval "ac_cv_lib_$ac_lib_var=no"
 
3058
fi
 
3059
rm -f conftest*
 
3060
LIBS="$ac_save_LIBS"
 
3061
 
 
3062
fi
 
3063
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3064
  echo "$ac_t""yes" 1>&6
 
3065
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
3066
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
3067
  cat >> confdefs.h <<EOF
 
3068
#define $ac_tr_lib 1
 
3069
EOF
 
3070
 
 
3071
  LIBS="-lnsl $LIBS"
 
3072
 
 
3073
else
 
3074
  echo "$ac_t""no" 1>&6
 
3075
fi
 
3076
 
 
3077
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
 
3078
echo "configure:3079: checking for socket in -lsocket" >&5
 
3079
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
 
3080
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3081
  echo $ac_n "(cached) $ac_c" 1>&6
 
3082
else
 
3083
  ac_save_LIBS="$LIBS"
 
3084
LIBS="-lsocket  $LIBS"
 
3085
cat > conftest.$ac_ext <<EOF
 
3086
#line 3087 "configure"
 
3087
#include "confdefs.h"
 
3088
/* Override any gcc2 internal prototype to avoid an error.  */
 
3089
/* We use char because int might match the return type of a gcc2
 
3090
    builtin and then its argument prototype would still apply.  */
 
3091
char socket();
 
3092
 
 
3093
int main() {
 
3094
socket()
 
3095
; return 0; }
 
3096
EOF
 
3097
if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
3098
  rm -rf conftest*
 
3099
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3100
else
 
3101
  echo "configure: failed program was:" >&5
 
3102
  cat conftest.$ac_ext >&5
 
3103
  rm -rf conftest*
 
3104
  eval "ac_cv_lib_$ac_lib_var=no"
 
3105
fi
 
3106
rm -f conftest*
 
3107
LIBS="$ac_save_LIBS"
 
3108
 
 
3109
fi
 
3110
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3111
  echo "$ac_t""yes" 1>&6
 
3112
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
3113
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
3114
  cat >> confdefs.h <<EOF
 
3115
#define $ac_tr_lib 1
 
3116
EOF
 
3117
 
 
3118
  LIBS="-lsocket $LIBS"
 
3119
 
 
3120
else
 
3121
  echo "$ac_t""no" 1>&6
 
3122
fi
 
3123
 
 
3124
 
 
3125
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
3126
echo "configure:3127: checking for ANSI C header files" >&5
 
3127
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
3128
  echo $ac_n "(cached) $ac_c" 1>&6
 
3129
else
 
3130
  cat > conftest.$ac_ext <<EOF
 
3131
#line 3132 "configure"
 
3132
#include "confdefs.h"
 
3133
#include <stdlib.h>
 
3134
#include <stdarg.h>
 
3135
#include <string.h>
 
3136
#include <float.h>
 
3137
EOF
 
3138
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3139
{ (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3140
ac_err=`grep -v '^ *+' conftest.out`
 
3141
if test -z "$ac_err"; then
 
3142
  rm -rf conftest*
 
3143
  ac_cv_header_stdc=yes
 
3144
else
 
3145
  echo "$ac_err" >&5
 
3146
  echo "configure: failed program was:" >&5
 
3147
  cat conftest.$ac_ext >&5
 
3148
  rm -rf conftest*
 
3149
  ac_cv_header_stdc=no
 
3150
fi
 
3151
rm -f conftest*
 
3152
 
 
3153
if test $ac_cv_header_stdc = yes; then
 
3154
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3155
cat > conftest.$ac_ext <<EOF
 
3156
#line 3157 "configure"
 
3157
#include "confdefs.h"
 
3158
#include <string.h>
 
3159
EOF
 
3160
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3161
  egrep "memchr" >/dev/null 2>&1; then
 
3162
  :
 
3163
else
 
3164
  rm -rf conftest*
 
3165
  ac_cv_header_stdc=no
 
3166
fi
 
3167
rm -f conftest*
 
3168
 
 
3169
fi
 
3170
 
 
3171
if test $ac_cv_header_stdc = yes; then
 
3172
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3173
cat > conftest.$ac_ext <<EOF
 
3174
#line 3175 "configure"
 
3175
#include "confdefs.h"
 
3176
#include <stdlib.h>
 
3177
EOF
 
3178
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3179
  egrep "free" >/dev/null 2>&1; then
 
3180
  :
 
3181
else
 
3182
  rm -rf conftest*
 
3183
  ac_cv_header_stdc=no
 
3184
fi
 
3185
rm -f conftest*
 
3186
 
 
3187
fi
 
3188
 
 
3189
if test $ac_cv_header_stdc = yes; then
 
3190
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3191
if test "$cross_compiling" = yes; then
 
3192
  :
 
3193
else
 
3194
  cat > conftest.$ac_ext <<EOF
 
3195
#line 3196 "configure"
 
3196
#include "confdefs.h"
 
3197
#include <ctype.h>
 
3198
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3199
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3200
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3201
int main () { int i; for (i = 0; i < 256; i++)
 
3202
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
3203
exit (0); }
 
3204
 
 
3205
EOF
 
3206
if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 
3207
then
 
3208
  :
 
3209
else
 
3210
  echo "configure: failed program was:" >&5
 
3211
  cat conftest.$ac_ext >&5
 
3212
  rm -fr conftest*
 
3213
  ac_cv_header_stdc=no
 
3214
fi
 
3215
rm -fr conftest*
 
3216
fi
 
3217
 
 
3218
fi
 
3219
fi
 
3220
 
 
3221
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
3222
if test $ac_cv_header_stdc = yes; then
 
3223
  cat >> confdefs.h <<\EOF
 
3224
#define STDC_HEADERS 1
 
3225
EOF
 
3226
 
 
3227
fi
 
3228
 
 
3229
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
 
3230
echo "configure:3231: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
3231
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
 
3232
  echo $ac_n "(cached) $ac_c" 1>&6
 
3233
else
 
3234
  cat > conftest.$ac_ext <<EOF
 
3235
#line 3236 "configure"
 
3236
#include "confdefs.h"
 
3237
#include <sys/types.h>
 
3238
#include <sys/wait.h>
 
3239
#ifndef WEXITSTATUS
 
3240
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
3241
#endif
 
3242
#ifndef WIFEXITED
 
3243
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
3244
#endif
 
3245
int main() {
 
3246
int s;
 
3247
wait (&s);
 
3248
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
3249
; return 0; }
 
3250
EOF
 
3251
if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3252
  rm -rf conftest*
 
3253
  ac_cv_header_sys_wait_h=yes
 
3254
else
 
3255
  echo "configure: failed program was:" >&5
 
3256
  cat conftest.$ac_ext >&5
 
3257
  rm -rf conftest*
 
3258
  ac_cv_header_sys_wait_h=no
 
3259
fi
 
3260
rm -f conftest*
 
3261
fi
 
3262
 
 
3263
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
 
3264
if test $ac_cv_header_sys_wait_h = yes; then
 
3265
  cat >> confdefs.h <<\EOF
 
3266
#define HAVE_SYS_WAIT_H 1
 
3267
EOF
 
3268
 
 
3269
fi
 
3270
 
 
3271
for ac_hdr in libintl.h string.h limits.h select.h sys/select.h
 
3272
do
 
3273
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
3274
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
3275
echo "configure:3276: checking for $ac_hdr" >&5
 
3276
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
3277
  echo $ac_n "(cached) $ac_c" 1>&6
 
3278
else
 
3279
  cat > conftest.$ac_ext <<EOF
 
3280
#line 3281 "configure"
 
3281
#include "confdefs.h"
 
3282
#include <$ac_hdr>
 
3283
EOF
 
3284
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3285
{ (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3286
ac_err=`grep -v '^ *+' conftest.out`
 
3287
if test -z "$ac_err"; then
 
3288
  rm -rf conftest*
 
3289
  eval "ac_cv_header_$ac_safe=yes"
 
3290
else
 
3291
  echo "$ac_err" >&5
 
3292
  echo "configure: failed program was:" >&5
 
3293
  cat conftest.$ac_ext >&5
 
3294
  rm -rf conftest*
 
3295
  eval "ac_cv_header_$ac_safe=no"
 
3296
fi
 
3297
rm -f conftest*
 
3298
fi
 
3299
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
3300
  echo "$ac_t""yes" 1>&6
 
3301
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
3302
  cat >> confdefs.h <<EOF
 
3303
#define $ac_tr_hdr 1
 
3304
EOF
 
3305
 
 
3306
else
 
3307
  echo "$ac_t""no" 1>&6
 
3308
fi
 
3309
done
 
3310
 
 
3311
 
 
3312
echo $ac_n "checking where MAXHOSTNAMELEN is defined""... $ac_c" 1>&6
 
3313
echo "configure:3314: checking where MAXHOSTNAMELEN is defined" >&5
 
3314
cat > conftest.$ac_ext <<EOF
 
3315
#line 3316 "configure"
 
3316
#include "confdefs.h"
 
3317
 
 
3318
#include <netdb.h>
 
3319
#ifdef MAXHOSTNAMELEN
 
3320
yes
 
3321
#endif
 
3322
 
 
3323
EOF
 
3324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3325
  egrep "yes" >/dev/null 2>&1; then
 
3326
  rm -rf conftest*
 
3327
  cat >> confdefs.h <<\EOF
 
3328
#define R_MAXHOSTNAMELEN_HDR <netdb.h>
 
3329
EOF
 
3330
 echo "$ac_t""<netdb.h>" 1>&6
 
3331
else
 
3332
  rm -rf conftest*
 
3333
  cat >> confdefs.h <<\EOF
 
3334
#define R_MAXHOSTNAMELEN_HDR <sys/param.h>
 
3335
EOF
 
3336
 echo "$ac_t""<sys/param.h>" 1>&6
 
3337
 
 
3338
fi
 
3339
rm -f conftest*
 
3340
 
 
3341
 
 
3342
echo $ac_n "checking whether off_t is a long or a longlong""... $ac_c" 1>&6
 
3343
echo "configure:3344: checking whether off_t is a long or a longlong" >&5
 
3344
if test "$cross_compiling" = yes; then
 
3345
  cat >> confdefs.h <<\EOF
 
3346
#define R_OFF_T_FMT "%ld"
 
3347
EOF
 
3348
  echo "$ac_t""(guessed) long" 1>&6
 
3349
 
 
3350
else
 
3351
  cat > conftest.$ac_ext <<EOF
 
3352
#line 3353 "configure"
 
3353
#include "confdefs.h"
 
3354
 
 
3355
#include <sys/types.h>
 
3356
int main() { return sizeof (long) != sizeof (off_t); }
 
3357
 
 
3358
EOF
 
3359
if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 
3360
then
 
3361
  cat >> confdefs.h <<\EOF
 
3362
#define R_OFF_T_FMT "%ld"
 
3363
EOF
 
3364
  echo "$ac_t""long" 1>&6
 
3365
else
 
3366
  echo "configure: failed program was:" >&5
 
3367
  cat conftest.$ac_ext >&5
 
3368
  rm -fr conftest*
 
3369
  cat >> confdefs.h <<\EOF
 
3370
#define R_OFF_T_FMT "%lld"
 
3371
EOF
 
3372
 echo "$ac_t""long long" 1>&6
 
3373
fi
 
3374
rm -fr conftest*
 
3375
fi
 
3376
 
 
3377
 
 
3378
echo $ac_n "checking whether h_errno is declared (in <netdb.h>)""... $ac_c" 1>&6
 
3379
echo "configure:3380: checking whether h_errno is declared (in <netdb.h>)" >&5
 
3380
cat > conftest.$ac_ext <<EOF
 
3381
#line 3382 "configure"
 
3382
#include "confdefs.h"
 
3383
#include <netdb.h>
 
3384
int main() {
 
3385
int i = h_errno;
 
3386
; return 0; }
 
3387
EOF
 
3388
if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3389
  rm -rf conftest*
 
3390
  cat >> confdefs.h <<\EOF
 
3391
#define H_ERRNO_DECLARED 1
 
3392
EOF
 
3393
 echo "$ac_t""yes" 1>&6
 
3394
else
 
3395
  echo "configure: failed program was:" >&5
 
3396
  cat conftest.$ac_ext >&5
 
3397
  rm -rf conftest*
 
3398
  echo "$ac_t""no" 1>&6
 
3399
 
 
3400
fi
 
3401
rm -f conftest*
 
3402
 
 
3403
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
 
3404
echo "configure:3405: checking for pid_t" >&5
 
3405
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
 
3406
  echo $ac_n "(cached) $ac_c" 1>&6
 
3407
else
 
3408
  cat > conftest.$ac_ext <<EOF
 
3409
#line 3410 "configure"
 
3410
#include "confdefs.h"
 
3411
#include <sys/types.h>
 
3412
#if STDC_HEADERS
 
3413
#include <stdlib.h>
 
3414
#include <stddef.h>
 
3415
#endif
 
3416
EOF
 
3417
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3418
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
3419
  rm -rf conftest*
 
3420
  ac_cv_type_pid_t=yes
 
3421
else
 
3422
  rm -rf conftest*
 
3423
  ac_cv_type_pid_t=no
 
3424
fi
 
3425
rm -f conftest*
 
3426
 
 
3427
fi
 
3428
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
 
3429
if test $ac_cv_type_pid_t = no; then
 
3430
  cat >> confdefs.h <<\EOF
 
3431
#define pid_t int
 
3432
EOF
 
3433
 
 
3434
fi
 
3435
 
 
3436
echo $ac_n "checking for off_t""... $ac_c" 1>&6
 
3437
echo "configure:3438: checking for off_t" >&5
 
3438
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
 
3439
  echo $ac_n "(cached) $ac_c" 1>&6
 
3440
else
 
3441
  cat > conftest.$ac_ext <<EOF
 
3442
#line 3443 "configure"
 
3443
#include "confdefs.h"
 
3444
#include <sys/types.h>
 
3445
#if STDC_HEADERS
 
3446
#include <stdlib.h>
 
3447
#include <stddef.h>
 
3448
#endif
 
3449
EOF
 
3450
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3451
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
3452
  rm -rf conftest*
 
3453
  ac_cv_type_off_t=yes
 
3454
else
 
3455
  rm -rf conftest*
 
3456
  ac_cv_type_off_t=no
 
3457
fi
 
3458
rm -f conftest*
 
3459
 
 
3460
fi
 
3461
echo "$ac_t""$ac_cv_type_off_t" 1>&6
 
3462
if test $ac_cv_type_off_t = no; then
 
3463
  cat >> confdefs.h <<\EOF
 
3464
#define off_t long
 
3465
EOF
 
3466
 
 
3467
fi
 
3468
 
 
3469
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
3470
echo "configure:3471: checking for size_t" >&5
 
3471
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
3472
  echo $ac_n "(cached) $ac_c" 1>&6
 
3473
else
 
3474
  cat > conftest.$ac_ext <<EOF
 
3475
#line 3476 "configure"
 
3476
#include "confdefs.h"
 
3477
#include <sys/types.h>
 
3478
#if STDC_HEADERS
 
3479
#include <stdlib.h>
 
3480
#include <stddef.h>
 
3481
#endif
 
3482
EOF
 
3483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3484
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
3485
  rm -rf conftest*
 
3486
  ac_cv_type_size_t=yes
 
3487
else
 
3488
  rm -rf conftest*
 
3489
  ac_cv_type_size_t=no
 
3490
fi
 
3491
rm -f conftest*
 
3492
 
 
3493
fi
 
3494
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
3495
if test $ac_cv_type_size_t = no; then
 
3496
  cat >> confdefs.h <<\EOF
 
3497
#define size_t unsigned
 
3498
EOF
 
3499
 
 
3500
fi
 
3501
 
 
3502
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
 
3503
echo "configure:3504: checking for ssize_t" >&5
 
3504
if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
 
3505
  echo $ac_n "(cached) $ac_c" 1>&6
 
3506
else
 
3507
  cat > conftest.$ac_ext <<EOF
 
3508
#line 3509 "configure"
 
3509
#include "confdefs.h"
 
3510
#include <sys/types.h>
 
3511
#if STDC_HEADERS
 
3512
#include <stdlib.h>
 
3513
#include <stddef.h>
 
3514
#endif
 
3515
EOF
 
3516
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3517
  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
3518
  rm -rf conftest*
 
3519
  ac_cv_type_ssize_t=yes
 
3520
else
 
3521
  rm -rf conftest*
 
3522
  ac_cv_type_ssize_t=no
 
3523
fi
 
3524
rm -f conftest*
 
3525
 
 
3526
fi
 
3527
echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
 
3528
if test $ac_cv_type_ssize_t = no; then
 
3529
  cat >> confdefs.h <<\EOF
 
3530
#define ssize_t long int
 
3531
EOF
 
3532
 
 
3533
fi
 
3534
 
 
3535
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 
3536
echo "configure:3537: checking return type of signal handlers" >&5
 
3537
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
 
3538
  echo $ac_n "(cached) $ac_c" 1>&6
 
3539
else
 
3540
  cat > conftest.$ac_ext <<EOF
 
3541
#line 3542 "configure"
 
3542
#include "confdefs.h"
 
3543
#include <sys/types.h>
 
3544
#include <signal.h>
 
3545
#ifdef signal
 
3546
#undef signal
 
3547
#endif
 
3548
#ifdef __cplusplus
 
3549
extern "C" void (*signal (int, void (*)(int)))(int);
 
3550
#else
 
3551
void (*signal ()) ();
 
3552
#endif
 
3553
 
 
3554
int main() {
 
3555
int i;
 
3556
; return 0; }
 
3557
EOF
 
3558
if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3559
  rm -rf conftest*
 
3560
  ac_cv_type_signal=void
 
3561
else
 
3562
  echo "configure: failed program was:" >&5
 
3563
  cat conftest.$ac_ext >&5
 
3564
  rm -rf conftest*
 
3565
  ac_cv_type_signal=int
 
3566
fi
 
3567
rm -f conftest*
 
3568
fi
 
3569
 
 
3570
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
3571
cat >> confdefs.h <<EOF
 
3572
#define RETSIGTYPE $ac_cv_type_signal
 
3573
EOF
 
3574
 
 
3575
 
 
3576
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
3577
echo "configure:3578: checking for working const" >&5
 
3578
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
3579
  echo $ac_n "(cached) $ac_c" 1>&6
 
3580
else
 
3581
  cat > conftest.$ac_ext <<EOF
 
3582
#line 3583 "configure"
 
3583
#include "confdefs.h"
 
3584
 
 
3585
int main() {
 
3586
 
 
3587
/* Ultrix mips cc rejects this.  */
 
3588
typedef int charset[2]; const charset x;
 
3589
/* SunOS 4.1.1 cc rejects this.  */
 
3590
char const *const *ccp;
 
3591
char **p;
 
3592
/* NEC SVR4.0.2 mips cc rejects this.  */
 
3593
struct point {int x, y;};
 
3594
static struct point const zero = {0,0};
 
3595
/* AIX XL C 1.02.0.0 rejects this.
 
3596
   It does not let you subtract one const X* pointer from another in an arm
 
3597
   of an if-expression whose if-part is not a constant expression */
 
3598
const char *g = "string";
 
3599
ccp = &g + (g ? g-g : 0);
 
3600
/* HPUX 7.0 cc rejects these. */
 
3601
++ccp;
 
3602
p = (char**) ccp;
 
3603
ccp = (char const *const *) p;
 
3604
{ /* SCO 3.2v4 cc rejects this.  */
 
3605
  char *t;
 
3606
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
3607
 
 
3608
  *t++ = 0;
 
3609
}
 
3610
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
3611
  int x[] = {25, 17};
 
3612
  const int *foo = &x[0];
 
3613
  ++foo;
 
3614
}
 
3615
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
3616
  typedef const int *iptr;
 
3617
  iptr p = 0;
 
3618
  ++p;
 
3619
}
 
3620
{ /* AIX XL C 1.02.0.0 rejects this saying
 
3621
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
3622
  struct s { int j; const int *ap[3]; };
 
3623
  struct s *b; b->j = 5;
 
3624
}
 
3625
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
3626
  const int foo = 10;
 
3627
}
 
3628
 
 
3629
; return 0; }
 
3630
EOF
 
3631
if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3632
  rm -rf conftest*
 
3633
  ac_cv_c_const=yes
 
3634
else
 
3635
  echo "configure: failed program was:" >&5
 
3636
  cat conftest.$ac_ext >&5
 
3637
  rm -rf conftest*
 
3638
  ac_cv_c_const=no
 
3639
fi
 
3640
rm -f conftest*
 
3641
fi
 
3642
 
 
3643
echo "$ac_t""$ac_cv_c_const" 1>&6
 
3644
if test $ac_cv_c_const = no; then
 
3645
  cat >> confdefs.h <<\EOF
 
3646
#define const 
 
3647
EOF
 
3648
 
 
3649
fi
 
3650
 
 
3651
echo $ac_n "checking for inline""... $ac_c" 1>&6
 
3652
echo "configure:3653: checking for inline" >&5
 
3653
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 
3654
  echo $ac_n "(cached) $ac_c" 1>&6
 
3655
else
 
3656
  ac_cv_c_inline=no
 
3657
for ac_kw in inline __inline__ __inline; do
 
3658
  cat > conftest.$ac_ext <<EOF
 
3659
#line 3660 "configure"
 
3660
#include "confdefs.h"
 
3661
 
 
3662
int main() {
 
3663
} $ac_kw foo() {
 
3664
; return 0; }
 
3665
EOF
 
3666
if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3667
  rm -rf conftest*
 
3668
  ac_cv_c_inline=$ac_kw; break
 
3669
else
 
3670
  echo "configure: failed program was:" >&5
 
3671
  cat conftest.$ac_ext >&5
 
3672
fi
 
3673
rm -f conftest*
 
3674
done
 
3675
 
 
3676
fi
 
3677
 
 
3678
echo "$ac_t""$ac_cv_c_inline" 1>&6
 
3679
case "$ac_cv_c_inline" in
 
3680
  inline | yes) ;;
 
3681
  no) cat >> confdefs.h <<\EOF
 
3682
#define inline 
 
3683
EOF
 
3684
 ;;
 
3685
  *)  cat >> confdefs.h <<EOF
 
3686
#define inline $ac_cv_c_inline
 
3687
EOF
 
3688
 ;;
 
3689
esac
 
3690
 
 
3691
 
 
3692
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
3693
# for constant arguments.  Useless!
 
3694
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
 
3695
echo "configure:3696: checking for working alloca.h" >&5
 
3696
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
 
3697
  echo $ac_n "(cached) $ac_c" 1>&6
 
3698
else
 
3699
  cat > conftest.$ac_ext <<EOF
 
3700
#line 3701 "configure"
 
3701
#include "confdefs.h"
 
3702
#include <alloca.h>
 
3703
int main() {
 
3704
char *p = alloca(2 * sizeof(int));
 
3705
; return 0; }
 
3706
EOF
 
3707
if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
3708
  rm -rf conftest*
 
3709
  ac_cv_header_alloca_h=yes
 
3710
else
 
3711
  echo "configure: failed program was:" >&5
 
3712
  cat conftest.$ac_ext >&5
 
3713
  rm -rf conftest*
 
3714
  ac_cv_header_alloca_h=no
 
3715
fi
 
3716
rm -f conftest*
 
3717
fi
 
3718
 
 
3719
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
 
3720
if test $ac_cv_header_alloca_h = yes; then
 
3721
  cat >> confdefs.h <<\EOF
 
3722
#define HAVE_ALLOCA_H 1
 
3723
EOF
 
3724
 
 
3725
fi
 
3726
 
 
3727
echo $ac_n "checking for alloca""... $ac_c" 1>&6
 
3728
echo "configure:3729: checking for alloca" >&5
 
3729
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
 
3730
  echo $ac_n "(cached) $ac_c" 1>&6
 
3731
else
 
3732
  cat > conftest.$ac_ext <<EOF
 
3733
#line 3734 "configure"
 
3734
#include "confdefs.h"
 
3735
 
 
3736
#ifdef __GNUC__
 
3737
# define alloca __builtin_alloca
 
3738
#else
 
3739
# if HAVE_ALLOCA_H
 
3740
#  include <alloca.h>
 
3741
# else
 
3742
#  ifdef _AIX
 
3743
 #pragma alloca
 
3744
#  else
 
3745
#   ifndef alloca /* predefined by HP cc +Olibcalls */
 
3746
char *alloca ();
 
3747
#   endif
 
3748
#  endif
 
3749
# endif
 
3750
#endif
 
3751
 
 
3752
int main() {
 
3753
char *p = (char *) alloca(1);
 
3754
; return 0; }
 
3755
EOF
 
3756
if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
3757
  rm -rf conftest*
 
3758
  ac_cv_func_alloca_works=yes
 
3759
else
 
3760
  echo "configure: failed program was:" >&5
 
3761
  cat conftest.$ac_ext >&5
 
3762
  rm -rf conftest*
 
3763
  ac_cv_func_alloca_works=no
 
3764
fi
 
3765
rm -f conftest*
 
3766
fi
 
3767
 
 
3768
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
3769
if test $ac_cv_func_alloca_works = yes; then
 
3770
  cat >> confdefs.h <<\EOF
 
3771
#define HAVE_ALLOCA 1
 
3772
EOF
 
3773
 
 
3774
fi
 
3775
 
 
3776
if test $ac_cv_func_alloca_works = no; then
 
3777
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
3778
  # that cause trouble.  Some versions do not even contain alloca or
 
3779
  # contain a buggy version.  If you still want to use their alloca,
 
3780
  # use ar to extract alloca.o from them instead of compiling alloca.c.
 
3781
  ALLOCA=alloca.o
 
3782
  cat >> confdefs.h <<\EOF
 
3783
#define C_ALLOCA 1
 
3784
EOF
 
3785
 
 
3786
 
 
3787
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
 
3788
echo "configure:3789: checking whether alloca needs Cray hooks" >&5
 
3789
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
 
3790
  echo $ac_n "(cached) $ac_c" 1>&6
 
3791
else
 
3792
  cat > conftest.$ac_ext <<EOF
 
3793
#line 3794 "configure"
 
3794
#include "confdefs.h"
 
3795
#if defined(CRAY) && ! defined(CRAY2)
 
3796
webecray
 
3797
#else
 
3798
wenotbecray
 
3799
#endif
 
3800
 
 
3801
EOF
 
3802
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3803
  egrep "webecray" >/dev/null 2>&1; then
 
3804
  rm -rf conftest*
 
3805
  ac_cv_os_cray=yes
 
3806
else
 
3807
  rm -rf conftest*
 
3808
  ac_cv_os_cray=no
 
3809
fi
 
3810
rm -f conftest*
 
3811
 
 
3812
fi
 
3813
 
 
3814
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
3815
if test $ac_cv_os_cray = yes; then
 
3816
for ac_func in _getb67 GETB67 getb67; do
 
3817
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
3818
echo "configure:3819: checking for $ac_func" >&5
 
3819
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
3820
  echo $ac_n "(cached) $ac_c" 1>&6
 
3821
else
 
3822
  cat > conftest.$ac_ext <<EOF
 
3823
#line 3824 "configure"
 
3824
#include "confdefs.h"
 
3825
/* System header to define __stub macros and hopefully few prototypes,
 
3826
    which can conflict with char $ac_func(); below.  */
 
3827
#include <assert.h>
 
3828
/* Override any gcc2 internal prototype to avoid an error.  */
 
3829
/* We use char because int might match the return type of a gcc2
 
3830
    builtin and then its argument prototype would still apply.  */
 
3831
char $ac_func();
 
3832
 
 
3833
int main() {
 
3834
 
 
3835
/* The GNU C library defines this for functions which it implements
 
3836
    to always fail with ENOSYS.  Some functions are actually named
 
3837
    something starting with __ and the normal name is an alias.  */
 
3838
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3839
choke me
 
3840
#else
 
3841
$ac_func();
 
3842
#endif
 
3843
 
 
3844
; return 0; }
 
3845
EOF
 
3846
if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
3847
  rm -rf conftest*
 
3848
  eval "ac_cv_func_$ac_func=yes"
 
3849
else
 
3850
  echo "configure: failed program was:" >&5
 
3851
  cat conftest.$ac_ext >&5
 
3852
  rm -rf conftest*
 
3853
  eval "ac_cv_func_$ac_func=no"
 
3854
fi
 
3855
rm -f conftest*
 
3856
fi
 
3857
 
 
3858
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
3859
  echo "$ac_t""yes" 1>&6
 
3860
  cat >> confdefs.h <<EOF
 
3861
#define CRAY_STACKSEG_END $ac_func
 
3862
EOF
 
3863
 
 
3864
  break
 
3865
else
 
3866
  echo "$ac_t""no" 1>&6
 
3867
fi
 
3868
 
 
3869
done
 
3870
fi
 
3871
 
 
3872
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
 
3873
echo "configure:3874: checking stack direction for C alloca" >&5
 
3874
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
 
3875
  echo $ac_n "(cached) $ac_c" 1>&6
 
3876
else
 
3877
  if test "$cross_compiling" = yes; then
 
3878
  ac_cv_c_stack_direction=0
 
3879
else
 
3880
  cat > conftest.$ac_ext <<EOF
 
3881
#line 3882 "configure"
 
3882
#include "confdefs.h"
 
3883
find_stack_direction ()
 
3884
{
 
3885
  static char *addr = 0;
 
3886
  auto char dummy;
 
3887
  if (addr == 0)
 
3888
    {
 
3889
      addr = &dummy;
 
3890
      return find_stack_direction ();
 
3891
    }
 
3892
  else
 
3893
    return (&dummy > addr) ? 1 : -1;
 
3894
}
 
3895
main ()
 
3896
{
 
3897
  exit (find_stack_direction() < 0);
 
3898
}
 
3899
EOF
 
3900
if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 
3901
then
 
3902
  ac_cv_c_stack_direction=1
 
3903
else
 
3904
  echo "configure: failed program was:" >&5
 
3905
  cat conftest.$ac_ext >&5
 
3906
  rm -fr conftest*
 
3907
  ac_cv_c_stack_direction=-1
 
3908
fi
 
3909
rm -fr conftest*
 
3910
fi
 
3911
 
 
3912
fi
 
3913
 
 
3914
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
 
3915
cat >> confdefs.h <<EOF
 
3916
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
3917
EOF
 
3918
 
 
3919
fi
 
3920
 
 
3921
for ac_func in strerror seteuid setreuid vprintf setresuid strdup strstr
 
3922
do
 
3923
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
3924
echo "configure:3925: checking for $ac_func" >&5
 
3925
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
3926
  echo $ac_n "(cached) $ac_c" 1>&6
 
3927
else
 
3928
  cat > conftest.$ac_ext <<EOF
 
3929
#line 3930 "configure"
 
3930
#include "confdefs.h"
 
3931
/* System header to define __stub macros and hopefully few prototypes,
 
3932
    which can conflict with char $ac_func(); below.  */
 
3933
#include <assert.h>
 
3934
/* Override any gcc2 internal prototype to avoid an error.  */
 
3935
/* We use char because int might match the return type of a gcc2
 
3936
    builtin and then its argument prototype would still apply.  */
 
3937
char $ac_func();
 
3938
 
 
3939
int main() {
 
3940
 
 
3941
/* The GNU C library defines this for functions which it implements
 
3942
    to always fail with ENOSYS.  Some functions are actually named
 
3943
    something starting with __ and the normal name is an alias.  */
 
3944
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3945
choke me
 
3946
#else
 
3947
$ac_func();
 
3948
#endif
 
3949
 
 
3950
; return 0; }
 
3951
EOF
 
3952
if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
3953
  rm -rf conftest*
 
3954
  eval "ac_cv_func_$ac_func=yes"
 
3955
else
 
3956
  echo "configure: failed program was:" >&5
 
3957
  cat conftest.$ac_ext >&5
 
3958
  rm -rf conftest*
 
3959
  eval "ac_cv_func_$ac_func=no"
 
3960
fi
 
3961
rm -f conftest*
 
3962
fi
 
3963
 
 
3964
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
3965
  echo "$ac_t""yes" 1>&6
 
3966
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
3967
  cat >> confdefs.h <<EOF
 
3968
#define $ac_tr_func 1
 
3969
EOF
 
3970
 
 
3971
else
 
3972
  echo "$ac_t""no" 1>&6
 
3973
fi
 
3974
done
 
3975
 
 
3976
for ac_func in strchr getopt_long strcasecmp
 
3977
do
 
3978
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
3979
echo "configure:3980: checking for $ac_func" >&5
 
3980
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
3981
  echo $ac_n "(cached) $ac_c" 1>&6
 
3982
else
 
3983
  cat > conftest.$ac_ext <<EOF
 
3984
#line 3985 "configure"
 
3985
#include "confdefs.h"
 
3986
/* System header to define __stub macros and hopefully few prototypes,
 
3987
    which can conflict with char $ac_func(); below.  */
 
3988
#include <assert.h>
 
3989
/* Override any gcc2 internal prototype to avoid an error.  */
 
3990
/* We use char because int might match the return type of a gcc2
 
3991
    builtin and then its argument prototype would still apply.  */
 
3992
char $ac_func();
 
3993
 
 
3994
int main() {
 
3995
 
 
3996
/* The GNU C library defines this for functions which it implements
 
3997
    to always fail with ENOSYS.  Some functions are actually named
 
3998
    something starting with __ and the normal name is an alias.  */
 
3999
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4000
choke me
 
4001
#else
 
4002
$ac_func();
 
4003
#endif
 
4004
 
 
4005
; return 0; }
 
4006
EOF
 
4007
if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
4008
  rm -rf conftest*
 
4009
  eval "ac_cv_func_$ac_func=yes"
 
4010
else
 
4011
  echo "configure: failed program was:" >&5
 
4012
  cat conftest.$ac_ext >&5
 
4013
  rm -rf conftest*
 
4014
  eval "ac_cv_func_$ac_func=no"
 
4015
fi
 
4016
rm -f conftest*
 
4017
fi
 
4018
 
 
4019
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
4020
  echo "$ac_t""yes" 1>&6
 
4021
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
4022
  cat >> confdefs.h <<EOF
 
4023
#define $ac_tr_func 1
 
4024
EOF
 
4025
 
 
4026
else
 
4027
  echo "$ac_t""no" 1>&6
 
4028
fi
 
4029
done
 
4030
 
 
4031
 
 
4032
for ac_func in strdup strstr strcasecmp
 
4033
do
 
4034
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
4035
echo "configure:4036: checking for $ac_func" >&5
 
4036
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
4037
  echo $ac_n "(cached) $ac_c" 1>&6
 
4038
else
 
4039
  cat > conftest.$ac_ext <<EOF
 
4040
#line 4041 "configure"
 
4041
#include "confdefs.h"
 
4042
/* System header to define __stub macros and hopefully few prototypes,
 
4043
    which can conflict with char $ac_func(); below.  */
 
4044
#include <assert.h>
 
4045
/* Override any gcc2 internal prototype to avoid an error.  */
 
4046
/* We use char because int might match the return type of a gcc2
 
4047
    builtin and then its argument prototype would still apply.  */
 
4048
char $ac_func();
 
4049
 
 
4050
int main() {
 
4051
 
 
4052
/* The GNU C library defines this for functions which it implements
 
4053
    to always fail with ENOSYS.  Some functions are actually named
 
4054
    something starting with __ and the normal name is an alias.  */
 
4055
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4056
choke me
 
4057
#else
 
4058
$ac_func();
 
4059
#endif
 
4060
 
 
4061
; return 0; }
 
4062
EOF
 
4063
if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
4064
  rm -rf conftest*
 
4065
  eval "ac_cv_func_$ac_func=yes"
 
4066
else
 
4067
  echo "configure: failed program was:" >&5
 
4068
  cat conftest.$ac_ext >&5
 
4069
  rm -rf conftest*
 
4070
  eval "ac_cv_func_$ac_func=no"
 
4071
fi
 
4072
rm -f conftest*
 
4073
fi
 
4074
 
 
4075
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
4076
  echo "$ac_t""yes" 1>&6
 
4077
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
4078
  cat >> confdefs.h <<EOF
 
4079
#define $ac_tr_func 1
 
4080
EOF
 
4081
 
 
4082
else
 
4083
  echo "$ac_t""no" 1>&6
 
4084
LIBOBJS="$LIBOBJS ${ac_func}.o"
 
4085
fi
 
4086
done
 
4087
 
 
4088
 
 
4089
echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
 
4090
echo "configure:4091: checking for getopt_long" >&5
 
4091
if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
 
4092
  echo $ac_n "(cached) $ac_c" 1>&6
 
4093
else
 
4094
  cat > conftest.$ac_ext <<EOF
 
4095
#line 4096 "configure"
 
4096
#include "confdefs.h"
 
4097
/* System header to define __stub macros and hopefully few prototypes,
 
4098
    which can conflict with char getopt_long(); below.  */
 
4099
#include <assert.h>
 
4100
/* Override any gcc2 internal prototype to avoid an error.  */
 
4101
/* We use char because int might match the return type of a gcc2
 
4102
    builtin and then its argument prototype would still apply.  */
 
4103
char getopt_long();
 
4104
 
 
4105
int main() {
 
4106
 
 
4107
/* The GNU C library defines this for functions which it implements
 
4108
    to always fail with ENOSYS.  Some functions are actually named
 
4109
    something starting with __ and the normal name is an alias.  */
 
4110
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
 
4111
choke me
 
4112
#else
 
4113
getopt_long();
 
4114
#endif
 
4115
 
 
4116
; return 0; }
 
4117
EOF
 
4118
if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
4119
  rm -rf conftest*
 
4120
  eval "ac_cv_func_getopt_long=yes"
 
4121
else
 
4122
  echo "configure: failed program was:" >&5
 
4123
  cat conftest.$ac_ext >&5
 
4124
  rm -rf conftest*
 
4125
  eval "ac_cv_func_getopt_long=no"
 
4126
fi
 
4127
rm -f conftest*
 
4128
fi
 
4129
 
 
4130
if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
 
4131
  echo "$ac_t""yes" 1>&6
 
4132
  :
 
4133
else
 
4134
  echo "$ac_t""no" 1>&6
 
4135
LIBOBJS="$LIBOBJS getopt1.o getopt.o"
 
4136
fi
 
4137
 
 
4138
 
 
4139
trap '' 1 2 15
 
4140
cat > confcache <<\EOF
 
4141
# This file is a shell script that caches the results of configure
 
4142
# tests run on this system so they can be shared between configure
 
4143
# scripts and configure runs.  It is not useful on other systems.
 
4144
# If it contains results you don't want to keep, you may remove or edit it.
 
4145
#
 
4146
# By default, configure uses ./config.cache as the cache file,
 
4147
# creating it if it does not exist already.  You can give configure
 
4148
# the --cache-file=FILE option to use a different cache file; that is
 
4149
# what configure does when it calls configure scripts in
 
4150
# subdirectories, so they share the cache.
 
4151
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
4152
# config.status only pays attention to the cache file if you give it the
 
4153
# --recheck option to rerun configure.
 
4154
#
 
4155
EOF
 
4156
# The following way of writing the cache mishandles newlines in values,
 
4157
# but we know of no workaround that is simple, portable, and efficient.
 
4158
# So, don't put newlines in cache variables' values.
 
4159
# Ultrix sh set writes to stderr and can't be redirected directly,
 
4160
# and sets the high bit in the cache file unless we assign to the vars.
 
4161
(set) 2>&1 |
 
4162
  case `(ac_space=' '; set) 2>&1` in
 
4163
  *ac_space=\ *)
 
4164
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
4165
    # turns \\\\ into \\, and sed turns \\ into \).
 
4166
    sed -n \
 
4167
      -e "s/'/'\\\\''/g" \
 
4168
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
4169
    ;;
 
4170
  *)
 
4171
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4172
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
4173
    ;;
 
4174
  esac >> confcache
 
4175
if cmp -s $cache_file confcache; then
 
4176
  :
 
4177
else
 
4178
  if test -w $cache_file; then
 
4179
    echo "updating cache $cache_file"
 
4180
    cat confcache > $cache_file
 
4181
  else
 
4182
    echo "not updating unwritable cache $cache_file"
 
4183
  fi
 
4184
fi
 
4185
rm -f confcache
 
4186
 
 
4187
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
4188
 
 
4189
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
4190
# Let make expand exec_prefix.
 
4191
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
4192
 
 
4193
# Any assignment to VPATH causes Sun make to only execute
 
4194
# the first set of double-colon rules, so remove it if not needed.
 
4195
# If there is a colon in the path, we need to keep it.
 
4196
if test "x$srcdir" = x.; then
 
4197
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
4198
fi
 
4199
 
 
4200
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
4201
 
 
4202
DEFS=-DHAVE_CONFIG_H
 
4203
 
 
4204
# Without the "./", some shells look in PATH for config.status.
 
4205
: ${CONFIG_STATUS=./config.status}
 
4206
 
 
4207
echo creating $CONFIG_STATUS
 
4208
rm -f $CONFIG_STATUS
 
4209
cat > $CONFIG_STATUS <<EOF
 
4210
#! /bin/sh
 
4211
# Generated automatically by configure.
 
4212
# Run this file to recreate the current configuration.
 
4213
# This directory was configured as follows,
 
4214
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4215
#
 
4216
# $0 $ac_configure_args
 
4217
#
 
4218
# Compiler output produced by configure, useful for debugging
 
4219
# configure, is in ./config.log if it exists.
 
4220
 
 
4221
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
4222
for ac_option
 
4223
do
 
4224
  case "\$ac_option" in
 
4225
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
4226
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
4227
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
4228
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
4229
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
 
4230
    exit 0 ;;
 
4231
  -help | --help | --hel | --he | --h)
 
4232
    echo "\$ac_cs_usage"; exit 0 ;;
 
4233
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
4234
  esac
 
4235
done
 
4236
 
 
4237
ac_given_srcdir=$srcdir
 
4238
ac_given_INSTALL="$INSTALL"
 
4239
 
 
4240
trap 'rm -fr `echo "Makefile lib/Makefile src/Makefile intl/Makefile man/Makefile po/Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
4241
EOF
 
4242
cat >> $CONFIG_STATUS <<EOF
 
4243
 
 
4244
# Protect against being on the right side of a sed subst in config.status.
 
4245
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
4246
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
4247
$ac_vpsub
 
4248
$extrasub
 
4249
s%@CFLAGS@%$CFLAGS%g
 
4250
s%@CPPFLAGS@%$CPPFLAGS%g
 
4251
s%@CXXFLAGS@%$CXXFLAGS%g
 
4252
s%@DEFS@%$DEFS%g
 
4253
s%@LDFLAGS@%$LDFLAGS%g
 
4254
s%@LIBS@%$LIBS%g
 
4255
s%@exec_prefix@%$exec_prefix%g
 
4256
s%@prefix@%$prefix%g
 
4257
s%@program_transform_name@%$program_transform_name%g
 
4258
s%@bindir@%$bindir%g
 
4259
s%@sbindir@%$sbindir%g
 
4260
s%@libexecdir@%$libexecdir%g
 
4261
s%@datadir@%$datadir%g
 
4262
s%@sysconfdir@%$sysconfdir%g
 
4263
s%@sharedstatedir@%$sharedstatedir%g
 
4264
s%@localstatedir@%$localstatedir%g
 
4265
s%@libdir@%$libdir%g
 
4266
s%@includedir@%$includedir%g
 
4267
s%@oldincludedir@%$oldincludedir%g
 
4268
s%@infodir@%$infodir%g
 
4269
s%@mandir@%$mandir%g
 
4270
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
4271
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
4272
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
4273
s%@PACKAGE@%$PACKAGE%g
 
4274
s%@VERSION@%$VERSION%g
 
4275
s%@ACLOCAL@%$ACLOCAL%g
 
4276
s%@AUTOCONF@%$AUTOCONF%g
 
4277
s%@AUTOMAKE@%$AUTOMAKE%g
 
4278
s%@AUTOHEADER@%$AUTOHEADER%g
 
4279
s%@MAKEINFO@%$MAKEINFO%g
 
4280
s%@SET_MAKE@%$SET_MAKE%g
 
4281
s%@RLPR@%$RLPR%g
 
4282
s%@LIBOBJS@%$LIBOBJS%g
 
4283
s%@CC@%$CC%g
 
4284
s%@CPP@%$CPP%g
 
4285
s%@LN_S@%$LN_S%g
 
4286
s%@RANLIB@%$RANLIB%g
 
4287
s%@ALLOCA@%$ALLOCA%g
 
4288
s%@USE_NLS@%$USE_NLS%g
 
4289
s%@MSGFMT@%$MSGFMT%g
 
4290
s%@GMSGFMT@%$GMSGFMT%g
 
4291
s%@XGETTEXT@%$XGETTEXT%g
 
4292
s%@GENCAT@%$GENCAT%g
 
4293
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
 
4294
s%@CATALOGS@%$CATALOGS%g
 
4295
s%@CATOBJEXT@%$CATOBJEXT%g
 
4296
s%@DATADIRNAME@%$DATADIRNAME%g
 
4297
s%@GMOFILES@%$GMOFILES%g
 
4298
s%@INSTOBJEXT@%$INSTOBJEXT%g
 
4299
s%@INTLDEPS@%$INTLDEPS%g
 
4300
s%@INTLLIBS@%$INTLLIBS%g
 
4301
s%@INTLOBJS@%$INTLOBJS%g
 
4302
s%@POFILES@%$POFILES%g
 
4303
s%@POSUB@%$POSUB%g
 
4304
s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
 
4305
s%@GT_NO@%$GT_NO%g
 
4306
s%@GT_YES@%$GT_YES%g
 
4307
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
 
4308
s%@l@%$l%g
 
4309
 
 
4310
CEOF
 
4311
EOF
 
4312
 
 
4313
cat >> $CONFIG_STATUS <<\EOF
 
4314
 
 
4315
# Split the substitutions into bite-sized pieces for seds with
 
4316
# small command number limits, like on Digital OSF/1 and HP-UX.
 
4317
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
4318
ac_file=1 # Number of current file.
 
4319
ac_beg=1 # First line for current file.
 
4320
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
4321
ac_more_lines=:
 
4322
ac_sed_cmds=""
 
4323
while $ac_more_lines; do
 
4324
  if test $ac_beg -gt 1; then
 
4325
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
4326
  else
 
4327
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
4328
  fi
 
4329
  if test ! -s conftest.s$ac_file; then
 
4330
    ac_more_lines=false
 
4331
    rm -f conftest.s$ac_file
 
4332
  else
 
4333
    if test -z "$ac_sed_cmds"; then
 
4334
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
4335
    else
 
4336
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
4337
    fi
 
4338
    ac_file=`expr $ac_file + 1`
 
4339
    ac_beg=$ac_end
 
4340
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
4341
  fi
 
4342
done
 
4343
if test -z "$ac_sed_cmds"; then
 
4344
  ac_sed_cmds=cat
 
4345
fi
 
4346
EOF
 
4347
 
 
4348
cat >> $CONFIG_STATUS <<EOF
 
4349
 
 
4350
CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile src/Makefile intl/Makefile man/Makefile po/Makefile.in"}
 
4351
EOF
 
4352
cat >> $CONFIG_STATUS <<\EOF
 
4353
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
4354
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4355
  case "$ac_file" in
 
4356
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
4357
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
4358
  *) ac_file_in="${ac_file}.in" ;;
 
4359
  esac
 
4360
 
 
4361
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
4362
 
 
4363
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
4364
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
4365
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
4366
    # The file is in a subdirectory.
 
4367
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
4368
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
4369
    # A "../" for each directory in $ac_dir_suffix.
 
4370
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
4371
  else
 
4372
    ac_dir_suffix= ac_dots=
 
4373
  fi
 
4374
 
 
4375
  case "$ac_given_srcdir" in
 
4376
  .)  srcdir=.
 
4377
      if test -z "$ac_dots"; then top_srcdir=.
 
4378
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
4379
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
4380
  *) # Relative path.
 
4381
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
4382
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
4383
  esac
 
4384
 
 
4385
  case "$ac_given_INSTALL" in
 
4386
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
4387
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
4388
  esac
 
4389
 
 
4390
  echo creating "$ac_file"
 
4391
  rm -f "$ac_file"
 
4392
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
4393
  case "$ac_file" in
 
4394
  *Makefile*) ac_comsub="1i\\
 
4395
# $configure_input" ;;
 
4396
  *) ac_comsub= ;;
 
4397
  esac
 
4398
 
 
4399
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
4400
  sed -e "$ac_comsub
 
4401
s%@configure_input@%$configure_input%g
 
4402
s%@srcdir@%$srcdir%g
 
4403
s%@top_srcdir@%$top_srcdir%g
 
4404
s%@INSTALL@%$INSTALL%g
 
4405
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
4406
fi; done
 
4407
rm -f conftest.s*
 
4408
 
 
4409
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
4410
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
4411
#
 
4412
# ac_d sets the value in "#define NAME VALUE" lines.
 
4413
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
4414
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
4415
ac_dC='\3'
 
4416
ac_dD='%g'
 
4417
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
4418
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4419
ac_uB='\([      ]\)%\1#\2define\3'
 
4420
ac_uC=' '
 
4421
ac_uD='\4%g'
 
4422
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
4423
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4424
ac_eB='$%\1#\2define\3'
 
4425
ac_eC=' '
 
4426
ac_eD='%g'
 
4427
 
 
4428
if test "${CONFIG_HEADERS+set}" != set; then
 
4429
EOF
 
4430
cat >> $CONFIG_STATUS <<EOF
 
4431
  CONFIG_HEADERS="config.h"
 
4432
EOF
 
4433
cat >> $CONFIG_STATUS <<\EOF
 
4434
fi
 
4435
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
4436
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4437
  case "$ac_file" in
 
4438
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
4439
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
4440
  *) ac_file_in="${ac_file}.in" ;;
 
4441
  esac
 
4442
 
 
4443
  echo creating $ac_file
 
4444
 
 
4445
  rm -f conftest.frag conftest.in conftest.out
 
4446
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
4447
  cat $ac_file_inputs > conftest.in
 
4448
 
 
4449
EOF
 
4450
 
 
4451
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
4452
# the proper values into config.h.in to produce config.h.  And first:
 
4453
# Protect against being on the right side of a sed subst in config.status.
 
4454
# Protect against being in an unquoted here document in config.status.
 
4455
rm -f conftest.vals
 
4456
cat > conftest.hdr <<\EOF
 
4457
s/[\\&%]/\\&/g
 
4458
s%[\\$`]%\\&%g
 
4459
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
4460
s%ac_d%ac_u%gp
 
4461
s%ac_u%ac_e%gp
 
4462
EOF
 
4463
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
4464
rm -f conftest.hdr
 
4465
 
 
4466
# This sed command replaces #undef with comments.  This is necessary, for
 
4467
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
4468
# on some systems where configure will not decide to define it.
 
4469
cat >> conftest.vals <<\EOF
 
4470
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
4471
EOF
 
4472
 
 
4473
# Break up conftest.vals because some shells have a limit on
 
4474
# the size of here documents, and old seds have small limits too.
 
4475
 
 
4476
rm -f conftest.tail
 
4477
while :
 
4478
do
 
4479
  ac_lines=`grep -c . conftest.vals`
 
4480
  # grep -c gives empty output for an empty file on some AIX systems.
 
4481
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
4482
  # Write a limited-size here document to conftest.frag.
 
4483
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
4484
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
4485
  echo 'CEOF
 
4486
  sed -f conftest.frag conftest.in > conftest.out
 
4487
  rm -f conftest.in
 
4488
  mv conftest.out conftest.in
 
4489
' >> $CONFIG_STATUS
 
4490
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
4491
  rm -f conftest.vals
 
4492
  mv conftest.tail conftest.vals
 
4493
done
 
4494
rm -f conftest.vals
 
4495
 
 
4496
cat >> $CONFIG_STATUS <<\EOF
 
4497
  rm -f conftest.frag conftest.h
 
4498
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
4499
  cat conftest.in >> conftest.h
 
4500
  rm -f conftest.in
 
4501
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
4502
    echo "$ac_file is unchanged"
 
4503
    rm -f conftest.h
 
4504
  else
 
4505
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
4506
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
4507
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
4508
      # The file is in a subdirectory.
 
4509
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
4510
    fi
 
4511
    rm -f $ac_file
 
4512
    mv conftest.h $ac_file
 
4513
  fi
 
4514
fi; done
 
4515
 
 
4516
EOF
 
4517
 
 
4518
cat >> $CONFIG_STATUS <<EOF
 
4519
ac_sources="$nls_cv_header_libgt"
 
4520
ac_dests="$nls_cv_header_intl"
 
4521
EOF
 
4522
 
 
4523
cat >> $CONFIG_STATUS <<\EOF
 
4524
srcdir=$ac_given_srcdir
 
4525
while test -n "$ac_sources"; do
 
4526
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
 
4527
  set $ac_sources; ac_source=$1; shift; ac_sources=$*
 
4528
 
 
4529
  echo "linking $srcdir/$ac_source to $ac_dest"
 
4530
 
 
4531
  if test ! -r $srcdir/$ac_source; then
 
4532
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
 
4533
  fi
 
4534
  rm -f $ac_dest
 
4535
 
 
4536
  # Make relative symlinks.
 
4537
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
4538
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
 
4539
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
 
4540
    # The dest file is in a subdirectory.
 
4541
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
 
4542
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
 
4543
    # A "../" for each directory in $ac_dest_dir_suffix.
 
4544
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
 
4545
  else
 
4546
    ac_dest_dir_suffix= ac_dots=
 
4547
  fi
 
4548
 
 
4549
  case "$srcdir" in
 
4550
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
 
4551
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
 
4552
  esac
 
4553
 
 
4554
  # Make a symlink if possible; otherwise try a hard link.
 
4555
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 
4556
    ln $srcdir/$ac_source $ac_dest; then :
 
4557
  else
 
4558
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
 
4559
  fi
 
4560
done
 
4561
EOF
 
4562
cat >> $CONFIG_STATUS <<EOF
 
4563
 
 
4564
 
 
4565
EOF
 
4566
cat >> $CONFIG_STATUS <<\EOF
 
4567
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
4568
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
4569
exit 0
 
4570
EOF
 
4571
chmod +x $CONFIG_STATUS
 
4572
rm -fr confdefs* $ac_clean_files
 
4573
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
4574
 
 
4575