~ubuntu-branches/ubuntu/breezy/apt/breezy

« back to all changes in this revision

Viewing changes to apt-build/configure

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2005-03-07 20:08:33 UTC
  • Revision ID: james.westby@ubuntu.com-20050307200833-0lxdgg2cb4oculdv
Tags: 0.6.35
* Merge apt--mvo--0 (incorporates 0.6.34ubuntu1):
  - Implement MaxSize and MaxAge in apt.cron.daily, to prevent the cache
    from growing too large (Ubuntu #6761)
  - some comments about the pkgAcqMetaSig::Custom600Headers() added
  - use gpg --with-colons
  - commented the ftp no_proxy unseting in methods/ftp.cc
  - added support for "Acquire::gpgv::options" in methods/gpgv.cc
* Merge bubulle@debian.org--2005/apt--main--0
  - Make capitalization more consistent
  - Un-fuzzy translations resulting from capitalization changes
  - Italian translation update

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.13 
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
 
  --with-cpus             The number of cpus to be used for building(see --with-procs, default 1)"
16
 
ac_help="$ac_help
17
 
  --with-getconf          Enable automagical buildtime configuration"
18
 
ac_help="$ac_help
19
 
  --with-proc-multiply    Multiply this * number of cpus for parallel making(default 2)."
20
 
ac_help="$ac_help
21
 
  --with-procs            The number of processes to run in parallel during make(num_cpus * multiplier)."
22
 
 
23
 
# Initialize some variables set by options.
24
 
# The variables have the same names as the options, with
25
 
# dashes changed to underlines.
26
 
build=NONE
27
 
cache_file=./config.cache
28
 
exec_prefix=NONE
29
 
host=NONE
30
 
no_create=
31
 
nonopt=NONE
32
 
no_recursion=
33
 
prefix=NONE
34
 
program_prefix=NONE
35
 
program_suffix=NONE
36
 
program_transform_name=s,x,x,
37
 
silent=
38
 
site=
39
 
srcdir=
40
 
target=NONE
41
 
verbose=
42
 
x_includes=NONE
43
 
x_libraries=NONE
44
 
bindir='${exec_prefix}/bin'
45
 
sbindir='${exec_prefix}/sbin'
46
 
libexecdir='${exec_prefix}/libexec'
47
 
datadir='${prefix}/share'
48
 
sysconfdir='${prefix}/etc'
49
 
sharedstatedir='${prefix}/com'
50
 
localstatedir='${prefix}/var'
51
 
libdir='${exec_prefix}/lib'
52
 
includedir='${prefix}/include'
53
 
oldincludedir='/usr/include'
54
 
infodir='${prefix}/info'
55
 
mandir='${prefix}/man'
56
 
 
57
 
# Initialize some other variables.
58
 
subdirs=
59
 
MFLAGS= MAKEFLAGS=
60
 
SHELL=${CONFIG_SHELL-/bin/sh}
61
 
# Maximum number of lines to put in a shell here document.
62
 
ac_max_here_lines=12
63
 
 
64
 
ac_prev=
65
 
for ac_option
66
 
do
67
 
 
68
 
  # If the previous option needs an argument, assign it.
69
 
  if test -n "$ac_prev"; then
70
 
    eval "$ac_prev=\$ac_option"
71
 
    ac_prev=
72
 
    continue
73
 
  fi
74
 
 
75
 
  case "$ac_option" in
76
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77
 
  *) ac_optarg= ;;
78
 
  esac
79
 
 
80
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
81
 
 
82
 
  case "$ac_option" in
83
 
 
84
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85
 
    ac_prev=bindir ;;
86
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87
 
    bindir="$ac_optarg" ;;
88
 
 
89
 
  -build | --build | --buil | --bui | --bu)
90
 
    ac_prev=build ;;
91
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
 
    build="$ac_optarg" ;;
93
 
 
94
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
95
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96
 
    ac_prev=cache_file ;;
97
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99
 
    cache_file="$ac_optarg" ;;
100
 
 
101
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102
 
    ac_prev=datadir ;;
103
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104
 
  | --da=*)
105
 
    datadir="$ac_optarg" ;;
106
 
 
107
 
  -disable-* | --disable-*)
108
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109
 
    # Reject names that are not valid shell variable names.
110
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112
 
    fi
113
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114
 
    eval "enable_${ac_feature}=no" ;;
115
 
 
116
 
  -enable-* | --enable-*)
117
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118
 
    # Reject names that are not valid shell variable names.
119
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121
 
    fi
122
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
 
    case "$ac_option" in
124
 
      *=*) ;;
125
 
      *) ac_optarg=yes ;;
126
 
    esac
127
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
128
 
 
129
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131
 
  | --exec | --exe | --ex)
132
 
    ac_prev=exec_prefix ;;
133
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135
 
  | --exec=* | --exe=* | --ex=*)
136
 
    exec_prefix="$ac_optarg" ;;
137
 
 
138
 
  -gas | --gas | --ga | --g)
139
 
    # Obsolete; use --with-gas.
140
 
    with_gas=yes ;;
141
 
 
142
 
  -help | --help | --hel | --he)
143
 
    # Omit some internal or obsolete options to make the list less imposing.
144
 
    # This message is too long to be a string in the A/UX 3.1 sh.
145
 
    cat << EOF
146
 
Usage: configure [options] [host]
147
 
Options: [defaults in brackets after descriptions]
148
 
Configuration:
149
 
  --cache-file=FILE       cache test results in FILE
150
 
  --help                  print this message
151
 
  --no-create             do not create output files
152
 
  --quiet, --silent       do not print \`checking...' messages
153
 
  --version               print the version of autoconf that created configure
154
 
Directory and file names:
155
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
156
 
                          [$ac_default_prefix]
157
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158
 
                          [same as prefix]
159
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162
 
  --datadir=DIR           read-only architecture-independent data in DIR
163
 
                          [PREFIX/share]
164
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166
 
                          [PREFIX/com]
167
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
170
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
172
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
173
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
175
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
176
 
  --program-transform-name=PROGRAM
177
 
                          run sed PROGRAM on installed program names
178
 
EOF
179
 
    cat << EOF
180
 
Host type:
181
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182
 
  --host=HOST             configure for HOST [guessed]
183
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
184
 
Features and packages:
185
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189
 
  --x-includes=DIR        X include files are in DIR
190
 
  --x-libraries=DIR       X library files are in DIR
191
 
EOF
192
 
    if test -n "$ac_help"; then
193
 
      echo "--enable and --with options recognized:$ac_help"
194
 
    fi
195
 
    exit 0 ;;
196
 
 
197
 
  -host | --host | --hos | --ho)
198
 
    ac_prev=host ;;
199
 
  -host=* | --host=* | --hos=* | --ho=*)
200
 
    host="$ac_optarg" ;;
201
 
 
202
 
  -includedir | --includedir | --includedi | --included | --include \
203
 
  | --includ | --inclu | --incl | --inc)
204
 
    ac_prev=includedir ;;
205
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
207
 
    includedir="$ac_optarg" ;;
208
 
 
209
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
210
 
    ac_prev=infodir ;;
211
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212
 
    infodir="$ac_optarg" ;;
213
 
 
214
 
  -libdir | --libdir | --libdi | --libd)
215
 
    ac_prev=libdir ;;
216
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217
 
    libdir="$ac_optarg" ;;
218
 
 
219
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220
 
  | --libexe | --libex | --libe)
221
 
    ac_prev=libexecdir ;;
222
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223
 
  | --libexe=* | --libex=* | --libe=*)
224
 
    libexecdir="$ac_optarg" ;;
225
 
 
226
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
227
 
  | --localstate | --localstat | --localsta | --localst \
228
 
  | --locals | --local | --loca | --loc | --lo)
229
 
    ac_prev=localstatedir ;;
230
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233
 
    localstatedir="$ac_optarg" ;;
234
 
 
235
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236
 
    ac_prev=mandir ;;
237
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238
 
    mandir="$ac_optarg" ;;
239
 
 
240
 
  -nfp | --nfp | --nf)
241
 
    # Obsolete; use --without-fp.
242
 
    with_fp=no ;;
243
 
 
244
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245
 
  | --no-cr | --no-c)
246
 
    no_create=yes ;;
247
 
 
248
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250
 
    no_recursion=yes ;;
251
 
 
252
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254
 
  | --oldin | --oldi | --old | --ol | --o)
255
 
    ac_prev=oldincludedir ;;
256
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259
 
    oldincludedir="$ac_optarg" ;;
260
 
 
261
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262
 
    ac_prev=prefix ;;
263
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264
 
    prefix="$ac_optarg" ;;
265
 
 
266
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267
 
  | --program-pre | --program-pr | --program-p)
268
 
    ac_prev=program_prefix ;;
269
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271
 
    program_prefix="$ac_optarg" ;;
272
 
 
273
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274
 
  | --program-suf | --program-su | --program-s)
275
 
    ac_prev=program_suffix ;;
276
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278
 
    program_suffix="$ac_optarg" ;;
279
 
 
280
 
  -program-transform-name | --program-transform-name \
281
 
  | --program-transform-nam | --program-transform-na \
282
 
  | --program-transform-n | --program-transform- \
283
 
  | --program-transform | --program-transfor \
284
 
  | --program-transfo | --program-transf \
285
 
  | --program-trans | --program-tran \
286
 
  | --progr-tra | --program-tr | --program-t)
287
 
    ac_prev=program_transform_name ;;
288
 
  -program-transform-name=* | --program-transform-name=* \
289
 
  | --program-transform-nam=* | --program-transform-na=* \
290
 
  | --program-transform-n=* | --program-transform-=* \
291
 
  | --program-transform=* | --program-transfor=* \
292
 
  | --program-transfo=* | --program-transf=* \
293
 
  | --program-trans=* | --program-tran=* \
294
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
295
 
    program_transform_name="$ac_optarg" ;;
296
 
 
297
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298
 
  | -silent | --silent | --silen | --sile | --sil)
299
 
    silent=yes ;;
300
 
 
301
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302
 
    ac_prev=sbindir ;;
303
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304
 
  | --sbi=* | --sb=*)
305
 
    sbindir="$ac_optarg" ;;
306
 
 
307
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309
 
  | --sharedst | --shareds | --shared | --share | --shar \
310
 
  | --sha | --sh)
311
 
    ac_prev=sharedstatedir ;;
312
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315
 
  | --sha=* | --sh=*)
316
 
    sharedstatedir="$ac_optarg" ;;
317
 
 
318
 
  -site | --site | --sit)
319
 
    ac_prev=site ;;
320
 
  -site=* | --site=* | --sit=*)
321
 
    site="$ac_optarg" ;;
322
 
 
323
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324
 
    ac_prev=srcdir ;;
325
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326
 
    srcdir="$ac_optarg" ;;
327
 
 
328
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329
 
  | --syscon | --sysco | --sysc | --sys | --sy)
330
 
    ac_prev=sysconfdir ;;
331
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333
 
    sysconfdir="$ac_optarg" ;;
334
 
 
335
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
336
 
    ac_prev=target ;;
337
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338
 
    target="$ac_optarg" ;;
339
 
 
340
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
341
 
    verbose=yes ;;
342
 
 
343
 
  -version | --version | --versio | --versi | --vers)
344
 
    echo "configure generated by autoconf version 2.13"
345
 
    exit 0 ;;
346
 
 
347
 
  -with-* | --with-*)
348
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349
 
    # Reject names that are not valid shell variable names.
350
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352
 
    fi
353
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
354
 
    case "$ac_option" in
355
 
      *=*) ;;
356
 
      *) ac_optarg=yes ;;
357
 
    esac
358
 
    eval "with_${ac_package}='$ac_optarg'" ;;
359
 
 
360
 
  -without-* | --without-*)
361
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362
 
    # Reject names that are not valid shell variable names.
363
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365
 
    fi
366
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
367
 
    eval "with_${ac_package}=no" ;;
368
 
 
369
 
  --x)
370
 
    # Obsolete; use --with-x.
371
 
    with_x=yes ;;
372
 
 
373
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374
 
  | --x-incl | --x-inc | --x-in | --x-i)
375
 
    ac_prev=x_includes ;;
376
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378
 
    x_includes="$ac_optarg" ;;
379
 
 
380
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
381
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382
 
    ac_prev=x_libraries ;;
383
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385
 
    x_libraries="$ac_optarg" ;;
386
 
 
387
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388
 
    ;;
389
 
 
390
 
  *)
391
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
393
 
    fi
394
 
    if test "x$nonopt" != xNONE; then
395
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396
 
    fi
397
 
    nonopt="$ac_option"
398
 
    ;;
399
 
 
400
 
  esac
401
 
done
402
 
 
403
 
if test -n "$ac_prev"; then
404
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
 
fi
406
 
 
407
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
 
 
409
 
# File descriptor usage:
410
 
# 0 standard input
411
 
# 1 file creation
412
 
# 2 errors and warnings
413
 
# 3 some systems may open it to /dev/tty
414
 
# 4 used on the Kubota Titan
415
 
# 6 checking for... messages and results
416
 
# 5 compiler messages saved in config.log
417
 
if test "$silent" = yes; then
418
 
  exec 6>/dev/null
419
 
else
420
 
  exec 6>&1
421
 
fi
422
 
exec 5>./config.log
423
 
 
424
 
echo "\
425
 
This file contains any messages produced by compilers while
426
 
running configure, to aid debugging if configure makes a mistake.
427
 
" 1>&5
428
 
 
429
 
# Strip out --no-create and --no-recursion so they do not pile up.
430
 
# Also quote any args containing shell metacharacters.
431
 
ac_configure_args=
432
 
for ac_arg
433
 
do
434
 
  case "$ac_arg" in
435
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436
 
  | --no-cr | --no-c) ;;
437
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442
 
  esac
443
 
done
444
 
 
445
 
# NLS nuisances.
446
 
# Only set these to C if already set.  These must not be set unconditionally
447
 
# because not all systems understand e.g. LANG=C (notably SCO).
448
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449
 
# Non-C LC_CTYPE values break the ctype check.
450
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
 
 
455
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
456
 
rm -rf conftest* confdefs.h
457
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458
 
echo > confdefs.h
459
 
 
460
 
# A filename unique to this package, relative to the directory that
461
 
# configure is in, which we can look for to find out if srcdir is correct.
462
 
ac_unique_file=configure.in
463
 
 
464
 
# Find the source files, if location was not specified.
465
 
if test -z "$srcdir"; then
466
 
  ac_srcdir_defaulted=yes
467
 
  # Try the directory containing this script, then its parent.
468
 
  ac_prog=$0
469
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471
 
  srcdir=$ac_confdir
472
 
  if test ! -r $srcdir/$ac_unique_file; then
473
 
    srcdir=..
474
 
  fi
475
 
else
476
 
  ac_srcdir_defaulted=no
477
 
fi
478
 
if test ! -r $srcdir/$ac_unique_file; then
479
 
  if test "$ac_srcdir_defaulted" = yes; then
480
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481
 
  else
482
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483
 
  fi
484
 
fi
485
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
 
 
487
 
# Prefer explicitly selected file to automatically selected ones.
488
 
if test -z "$CONFIG_SITE"; then
489
 
  if test "x$prefix" != xNONE; then
490
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491
 
  else
492
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493
 
  fi
494
 
fi
495
 
for ac_site_file in $CONFIG_SITE; do
496
 
  if test -r "$ac_site_file"; then
497
 
    echo "loading site script $ac_site_file"
498
 
    . "$ac_site_file"
499
 
  fi
500
 
done
501
 
 
502
 
if test -r "$cache_file"; then
503
 
  echo "loading cache $cache_file"
504
 
  . $cache_file
505
 
else
506
 
  echo "creating cache $cache_file"
507
 
  > $cache_file
508
 
fi
509
 
 
510
 
ac_ext=c
511
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512
 
ac_cpp='$CPP $CPPFLAGS'
513
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515
 
cross_compiling=$ac_cv_prog_cc_cross
516
 
 
517
 
ac_exeext=
518
 
ac_objext=o
519
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522
 
    ac_n= ac_c='
523
 
' ac_t='        '
524
 
  else
525
 
    ac_n=-n ac_c= ac_t=
526
 
  fi
527
 
else
528
 
  ac_n= ac_c='\c' ac_t=
529
 
fi
530
 
 
531
 
 
532
 
ac_aux_dir=
533
 
for ac_dir in buildlib $srcdir/buildlib; do
534
 
  if test -f $ac_dir/install-sh; then
535
 
    ac_aux_dir=$ac_dir
536
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
537
 
    break
538
 
  elif test -f $ac_dir/install.sh; then
539
 
    ac_aux_dir=$ac_dir
540
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
541
 
    break
542
 
  fi
543
 
done
544
 
if test -z "$ac_aux_dir"; then
545
 
  { echo "configure: error: can not find install-sh or install.sh in buildlib $srcdir/buildlib" 1>&2; exit 1; }
546
 
fi
547
 
ac_config_guess=$ac_aux_dir/config.guess
548
 
ac_config_sub=$ac_aux_dir/config.sub
549
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
 
 
551
 
 
552
 
 
553
 
cat >> confdefs.h <<EOF
554
 
#define VERSION "0.5.4"
555
 
EOF
556
 
 
557
 
cat >> confdefs.h <<EOF
558
 
#define PACKAGE "apt"
559
 
EOF
560
 
 
561
 
 
562
 
 
563
 
# Do some error checking and defaulting for the host and target type.
564
 
# The inputs are:
565
 
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
566
 
#
567
 
# The rules are:
568
 
# 1. You are not allowed to specify --host, --target, and nonopt at the
569
 
#    same time.
570
 
# 2. Host defaults to nonopt.
571
 
# 3. If nonopt is not specified, then host defaults to the current host,
572
 
#    as determined by config.guess.
573
 
# 4. Target and build default to nonopt.
574
 
# 5. If nonopt is not specified, then target and build default to host.
575
 
 
576
 
# The aliases save the names the user supplied, while $host etc.
577
 
# will get canonicalized.
578
 
case $host---$target---$nonopt in
579
 
NONE---*---* | *---NONE---* | *---*---NONE) ;;
580
 
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581
 
esac
582
 
 
583
 
 
584
 
# Make sure we can run config.sub.
585
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587
 
fi
588
 
 
589
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
590
 
echo "configure:591: checking host system type" >&5
591
 
 
592
 
host_alias=$host
593
 
case "$host_alias" in
594
 
NONE)
595
 
  case $nonopt in
596
 
  NONE)
597
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599
 
    fi ;;
600
 
  *) host_alias=$nonopt ;;
601
 
  esac ;;
602
 
esac
603
 
 
604
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608
 
echo "$ac_t""$host" 1>&6
609
 
 
610
 
echo $ac_n "checking target system type""... $ac_c" 1>&6
611
 
echo "configure:612: checking target system type" >&5
612
 
 
613
 
target_alias=$target
614
 
case "$target_alias" in
615
 
NONE)
616
 
  case $nonopt in
617
 
  NONE) target_alias=$host_alias ;;
618
 
  *) target_alias=$nonopt ;;
619
 
  esac ;;
620
 
esac
621
 
 
622
 
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623
 
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624
 
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625
 
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626
 
echo "$ac_t""$target" 1>&6
627
 
 
628
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
629
 
echo "configure:630: checking build system type" >&5
630
 
 
631
 
build_alias=$build
632
 
case "$build_alias" in
633
 
NONE)
634
 
  case $nonopt in
635
 
  NONE) build_alias=$host_alias ;;
636
 
  *) build_alias=$nonopt ;;
637
 
  esac ;;
638
 
esac
639
 
 
640
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644
 
echo "$ac_t""$build" 1>&6
645
 
 
646
 
test "$host_alias" != "$target_alias" &&
647
 
  test "$program_prefix$program_suffix$program_transform_name" = \
648
 
    NONENONEs,x,x, &&
649
 
  program_prefix=${target_alias}-
650
 
 
651
 
 
652
 
if test $host != $build; then
653
 
  ac_tool_prefix=${host_alias}-
654
 
else
655
 
  ac_tool_prefix=
656
 
fi
657
 
 
658
 
# Extract the first word of "gcc", so it can be a program name with args.
659
 
set dummy gcc; ac_word=$2
660
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661
 
echo "configure:662: checking for $ac_word" >&5
662
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663
 
  echo $ac_n "(cached) $ac_c" 1>&6
664
 
else
665
 
  if test -n "$CC"; then
666
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
667
 
else
668
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
669
 
  ac_dummy="$PATH"
670
 
  for ac_dir in $ac_dummy; do
671
 
    test -z "$ac_dir" && ac_dir=.
672
 
    if test -f $ac_dir/$ac_word; then
673
 
      ac_cv_prog_CC="gcc"
674
 
      break
675
 
    fi
676
 
  done
677
 
  IFS="$ac_save_ifs"
678
 
fi
679
 
fi
680
 
CC="$ac_cv_prog_CC"
681
 
if test -n "$CC"; then
682
 
  echo "$ac_t""$CC" 1>&6
683
 
else
684
 
  echo "$ac_t""no" 1>&6
685
 
fi
686
 
 
687
 
if test -z "$CC"; then
688
 
  # Extract the first word of "cc", so it can be a program name with args.
689
 
set dummy cc; ac_word=$2
690
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691
 
echo "configure:692: checking for $ac_word" >&5
692
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693
 
  echo $ac_n "(cached) $ac_c" 1>&6
694
 
else
695
 
  if test -n "$CC"; then
696
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
697
 
else
698
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
699
 
  ac_prog_rejected=no
700
 
  ac_dummy="$PATH"
701
 
  for ac_dir in $ac_dummy; do
702
 
    test -z "$ac_dir" && ac_dir=.
703
 
    if test -f $ac_dir/$ac_word; then
704
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705
 
        ac_prog_rejected=yes
706
 
        continue
707
 
      fi
708
 
      ac_cv_prog_CC="cc"
709
 
      break
710
 
    fi
711
 
  done
712
 
  IFS="$ac_save_ifs"
713
 
if test $ac_prog_rejected = yes; then
714
 
  # We found a bogon in the path, so make sure we never use it.
715
 
  set dummy $ac_cv_prog_CC
716
 
  shift
717
 
  if test $# -gt 0; then
718
 
    # We chose a different compiler from the bogus one.
719
 
    # However, it has the same basename, so the bogon will be chosen
720
 
    # first if we set CC to just the basename; use the full file name.
721
 
    shift
722
 
    set dummy "$ac_dir/$ac_word" "$@"
723
 
    shift
724
 
    ac_cv_prog_CC="$@"
725
 
  fi
726
 
fi
727
 
fi
728
 
fi
729
 
CC="$ac_cv_prog_CC"
730
 
if test -n "$CC"; then
731
 
  echo "$ac_t""$CC" 1>&6
732
 
else
733
 
  echo "$ac_t""no" 1>&6
734
 
fi
735
 
 
736
 
  if test -z "$CC"; then
737
 
    case "`uname -s`" in
738
 
    *win32* | *WIN32*)
739
 
      # Extract the first word of "cl", so it can be a program name with args.
740
 
set dummy cl; ac_word=$2
741
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742
 
echo "configure:743: checking for $ac_word" >&5
743
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744
 
  echo $ac_n "(cached) $ac_c" 1>&6
745
 
else
746
 
  if test -n "$CC"; then
747
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
748
 
else
749
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
750
 
  ac_dummy="$PATH"
751
 
  for ac_dir in $ac_dummy; do
752
 
    test -z "$ac_dir" && ac_dir=.
753
 
    if test -f $ac_dir/$ac_word; then
754
 
      ac_cv_prog_CC="cl"
755
 
      break
756
 
    fi
757
 
  done
758
 
  IFS="$ac_save_ifs"
759
 
fi
760
 
fi
761
 
CC="$ac_cv_prog_CC"
762
 
if test -n "$CC"; then
763
 
  echo "$ac_t""$CC" 1>&6
764
 
else
765
 
  echo "$ac_t""no" 1>&6
766
 
fi
767
 
 ;;
768
 
    esac
769
 
  fi
770
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
771
 
fi
772
 
 
773
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774
 
echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
775
 
 
776
 
ac_ext=c
777
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778
 
ac_cpp='$CPP $CPPFLAGS'
779
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781
 
cross_compiling=$ac_cv_prog_cc_cross
782
 
 
783
 
cat > conftest.$ac_ext << EOF
784
 
 
785
 
#line 786 "configure"
786
 
#include "confdefs.h"
787
 
 
788
 
main(){return(0);}
789
 
EOF
790
 
if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
791
 
  ac_cv_prog_cc_works=yes
792
 
  # If we can't run a trivial program, we are probably using a cross compiler.
793
 
  if (./conftest; exit) 2>/dev/null; then
794
 
    ac_cv_prog_cc_cross=no
795
 
  else
796
 
    ac_cv_prog_cc_cross=yes
797
 
  fi
798
 
else
799
 
  echo "configure: failed program was:" >&5
800
 
  cat conftest.$ac_ext >&5
801
 
  ac_cv_prog_cc_works=no
802
 
fi
803
 
rm -fr conftest*
804
 
ac_ext=c
805
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806
 
ac_cpp='$CPP $CPPFLAGS'
807
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809
 
cross_compiling=$ac_cv_prog_cc_cross
810
 
 
811
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812
 
if test $ac_cv_prog_cc_works = no; then
813
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
814
 
fi
815
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816
 
echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818
 
cross_compiling=$ac_cv_prog_cc_cross
819
 
 
820
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821
 
echo "configure:822: checking whether we are using GNU C" >&5
822
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823
 
  echo $ac_n "(cached) $ac_c" 1>&6
824
 
else
825
 
  cat > conftest.c <<EOF
826
 
#ifdef __GNUC__
827
 
  yes;
828
 
#endif
829
 
EOF
830
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831
 
  ac_cv_prog_gcc=yes
832
 
else
833
 
  ac_cv_prog_gcc=no
834
 
fi
835
 
fi
836
 
 
837
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
838
 
 
839
 
if test $ac_cv_prog_gcc = yes; then
840
 
  GCC=yes
841
 
else
842
 
  GCC=
843
 
fi
844
 
 
845
 
ac_test_CFLAGS="${CFLAGS+set}"
846
 
ac_save_CFLAGS="$CFLAGS"
847
 
CFLAGS=
848
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849
 
echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851
 
  echo $ac_n "(cached) $ac_c" 1>&6
852
 
else
853
 
  echo 'void f(){}' > conftest.c
854
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855
 
  ac_cv_prog_cc_g=yes
856
 
else
857
 
  ac_cv_prog_cc_g=no
858
 
fi
859
 
rm -f conftest*
860
 
 
861
 
fi
862
 
 
863
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
864
 
if test "$ac_test_CFLAGS" = set; then
865
 
  CFLAGS="$ac_save_CFLAGS"
866
 
elif test $ac_cv_prog_cc_g = yes; then
867
 
  if test "$GCC" = yes; then
868
 
    CFLAGS="-g -O2"
869
 
  else
870
 
    CFLAGS="-g"
871
 
  fi
872
 
else
873
 
  if test "$GCC" = yes; then
874
 
    CFLAGS="-O2"
875
 
  else
876
 
    CFLAGS=
877
 
  fi
878
 
fi
879
 
 
880
 
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
881
 
echo "configure:882: checking for POSIXized ISC" >&5
882
 
if test -d /etc/conf/kconfig.d &&
883
 
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
884
 
then
885
 
  echo "$ac_t""yes" 1>&6
886
 
  ISC=yes # If later tests want to check for ISC.
887
 
  cat >> confdefs.h <<\EOF
888
 
#define _POSIX_SOURCE 1
889
 
EOF
890
 
 
891
 
  if test "$GCC" = yes; then
892
 
    CC="$CC -posix"
893
 
  else
894
 
    CC="$CC -Xp"
895
 
  fi
896
 
else
897
 
  echo "$ac_t""no" 1>&6
898
 
  ISC=
899
 
fi
900
 
 
901
 
 
902
 
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
903
 
do
904
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
905
 
set dummy $ac_prog; ac_word=$2
906
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
907
 
echo "configure:908: checking for $ac_word" >&5
908
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
909
 
  echo $ac_n "(cached) $ac_c" 1>&6
910
 
else
911
 
  if test -n "$CXX"; then
912
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
913
 
else
914
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
915
 
  ac_dummy="$PATH"
916
 
  for ac_dir in $ac_dummy; do
917
 
    test -z "$ac_dir" && ac_dir=.
918
 
    if test -f $ac_dir/$ac_word; then
919
 
      ac_cv_prog_CXX="$ac_prog"
920
 
      break
921
 
    fi
922
 
  done
923
 
  IFS="$ac_save_ifs"
924
 
fi
925
 
fi
926
 
CXX="$ac_cv_prog_CXX"
927
 
if test -n "$CXX"; then
928
 
  echo "$ac_t""$CXX" 1>&6
929
 
else
930
 
  echo "$ac_t""no" 1>&6
931
 
fi
932
 
 
933
 
test -n "$CXX" && break
934
 
done
935
 
test -n "$CXX" || CXX="gcc"
936
 
 
937
 
 
938
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
939
 
echo "configure:940: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
940
 
 
941
 
ac_ext=C
942
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943
 
ac_cpp='$CXXCPP $CPPFLAGS'
944
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946
 
cross_compiling=$ac_cv_prog_cxx_cross
947
 
 
948
 
cat > conftest.$ac_ext << EOF
949
 
 
950
 
#line 951 "configure"
951
 
#include "confdefs.h"
952
 
 
953
 
int main(){return(0);}
954
 
EOF
955
 
if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
956
 
  ac_cv_prog_cxx_works=yes
957
 
  # If we can't run a trivial program, we are probably using a cross compiler.
958
 
  if (./conftest; exit) 2>/dev/null; then
959
 
    ac_cv_prog_cxx_cross=no
960
 
  else
961
 
    ac_cv_prog_cxx_cross=yes
962
 
  fi
963
 
else
964
 
  echo "configure: failed program was:" >&5
965
 
  cat conftest.$ac_ext >&5
966
 
  ac_cv_prog_cxx_works=no
967
 
fi
968
 
rm -fr conftest*
969
 
ac_ext=c
970
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
971
 
ac_cpp='$CPP $CPPFLAGS'
972
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
973
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
974
 
cross_compiling=$ac_cv_prog_cc_cross
975
 
 
976
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
977
 
if test $ac_cv_prog_cxx_works = no; then
978
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
979
 
fi
980
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
981
 
echo "configure:982: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
982
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
983
 
cross_compiling=$ac_cv_prog_cxx_cross
984
 
 
985
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
986
 
echo "configure:987: checking whether we are using GNU C++" >&5
987
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
988
 
  echo $ac_n "(cached) $ac_c" 1>&6
989
 
else
990
 
  cat > conftest.C <<EOF
991
 
#ifdef __GNUC__
992
 
  yes;
993
 
#endif
994
 
EOF
995
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
996
 
  ac_cv_prog_gxx=yes
997
 
else
998
 
  ac_cv_prog_gxx=no
999
 
fi
1000
 
fi
1001
 
 
1002
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1003
 
 
1004
 
if test $ac_cv_prog_gxx = yes; then
1005
 
  GXX=yes
1006
 
else
1007
 
  GXX=
1008
 
fi
1009
 
 
1010
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1011
 
ac_save_CXXFLAGS="$CXXFLAGS"
1012
 
CXXFLAGS=
1013
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1014
 
echo "configure:1015: checking whether ${CXX-g++} accepts -g" >&5
1015
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1016
 
  echo $ac_n "(cached) $ac_c" 1>&6
1017
 
else
1018
 
  echo 'void f(){}' > conftest.cc
1019
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1020
 
  ac_cv_prog_cxx_g=yes
1021
 
else
1022
 
  ac_cv_prog_cxx_g=no
1023
 
fi
1024
 
rm -f conftest*
1025
 
 
1026
 
fi
1027
 
 
1028
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1029
 
if test "$ac_test_CXXFLAGS" = set; then
1030
 
  CXXFLAGS="$ac_save_CXXFLAGS"
1031
 
elif test $ac_cv_prog_cxx_g = yes; then
1032
 
  if test "$GXX" = yes; then
1033
 
    CXXFLAGS="-g -O2"
1034
 
  else
1035
 
    CXXFLAGS="-g"
1036
 
  fi
1037
 
else
1038
 
  if test "$GXX" = yes; then
1039
 
    CXXFLAGS="-O2"
1040
 
  else
1041
 
    CXXFLAGS=
1042
 
  fi
1043
 
fi
1044
 
 
1045
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1046
 
echo "configure:1047: checking how to run the C preprocessor" >&5
1047
 
# On Suns, sometimes $CPP names a directory.
1048
 
if test -n "$CPP" && test -d "$CPP"; then
1049
 
  CPP=
1050
 
fi
1051
 
if test -z "$CPP"; then
1052
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1053
 
  echo $ac_n "(cached) $ac_c" 1>&6
1054
 
else
1055
 
    # This must be in double quotes, not single quotes, because CPP may get
1056
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1057
 
  CPP="${CC-cc} -E"
1058
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1059
 
  # not just through cpp.
1060
 
  cat > conftest.$ac_ext <<EOF
1061
 
#line 1062 "configure"
1062
 
#include "confdefs.h"
1063
 
#include <assert.h>
1064
 
Syntax Error
1065
 
EOF
1066
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067
 
{ (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069
 
if test -z "$ac_err"; then
1070
 
  :
1071
 
else
1072
 
  echo "$ac_err" >&5
1073
 
  echo "configure: failed program was:" >&5
1074
 
  cat conftest.$ac_ext >&5
1075
 
  rm -rf conftest*
1076
 
  CPP="${CC-cc} -E -traditional-cpp"
1077
 
  cat > conftest.$ac_ext <<EOF
1078
 
#line 1079 "configure"
1079
 
#include "confdefs.h"
1080
 
#include <assert.h>
1081
 
Syntax Error
1082
 
EOF
1083
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084
 
{ (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1086
 
if test -z "$ac_err"; then
1087
 
  :
1088
 
else
1089
 
  echo "$ac_err" >&5
1090
 
  echo "configure: failed program was:" >&5
1091
 
  cat conftest.$ac_ext >&5
1092
 
  rm -rf conftest*
1093
 
  CPP="${CC-cc} -nologo -E"
1094
 
  cat > conftest.$ac_ext <<EOF
1095
 
#line 1096 "configure"
1096
 
#include "confdefs.h"
1097
 
#include <assert.h>
1098
 
Syntax Error
1099
 
EOF
1100
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1101
 
{ (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1102
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1103
 
if test -z "$ac_err"; then
1104
 
  :
1105
 
else
1106
 
  echo "$ac_err" >&5
1107
 
  echo "configure: failed program was:" >&5
1108
 
  cat conftest.$ac_ext >&5
1109
 
  rm -rf conftest*
1110
 
  CPP=/lib/cpp
1111
 
fi
1112
 
rm -f conftest*
1113
 
fi
1114
 
rm -f conftest*
1115
 
fi
1116
 
rm -f conftest*
1117
 
  ac_cv_prog_CPP="$CPP"
1118
 
fi
1119
 
  CPP="$ac_cv_prog_CPP"
1120
 
else
1121
 
  ac_cv_prog_CPP="$CPP"
1122
 
fi
1123
 
echo "$ac_t""$CPP" 1>&6
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=":"
1136
 
  ac_dummy="$PATH"
1137
 
  for ac_dir in $ac_dummy; do
1138
 
    test -z "$ac_dir" && ac_dir=.
1139
 
    if test -f $ac_dir/$ac_word; then
1140
 
      ac_cv_prog_RANLIB="ranlib"
1141
 
      break
1142
 
    fi
1143
 
  done
1144
 
  IFS="$ac_save_ifs"
1145
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1146
 
fi
1147
 
fi
1148
 
RANLIB="$ac_cv_prog_RANLIB"
1149
 
if test -n "$RANLIB"; then
1150
 
  echo "$ac_t""$RANLIB" 1>&6
1151
 
else
1152
 
  echo "$ac_t""no" 1>&6
1153
 
fi
1154
 
 
1155
 
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1156
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
1157
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158
 
echo "configure:1159: checking for $ac_word" >&5
1159
 
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1160
 
  echo $ac_n "(cached) $ac_c" 1>&6
1161
 
else
1162
 
  if test -n "$AR"; then
1163
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
1164
 
else
1165
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1166
 
  ac_dummy="$PATH"
1167
 
  for ac_dir in $ac_dummy; do
1168
 
    test -z "$ac_dir" && ac_dir=.
1169
 
    if test -f $ac_dir/$ac_word; then
1170
 
      ac_cv_prog_AR="${ac_tool_prefix}ar"
1171
 
      break
1172
 
    fi
1173
 
  done
1174
 
  IFS="$ac_save_ifs"
1175
 
fi
1176
 
fi
1177
 
AR="$ac_cv_prog_AR"
1178
 
if test -n "$AR"; then
1179
 
  echo "$ac_t""$AR" 1>&6
1180
 
else
1181
 
  echo "$ac_t""no" 1>&6
1182
 
fi
1183
 
 
1184
 
 
1185
 
if test -z "$ac_cv_prog_AR"; then
1186
 
if test -n "$ac_tool_prefix"; then
1187
 
  # Extract the first word of "ar", so it can be a program name with args.
1188
 
set dummy ar; ac_word=$2
1189
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190
 
echo "configure:1191: checking for $ac_word" >&5
1191
 
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1192
 
  echo $ac_n "(cached) $ac_c" 1>&6
1193
 
else
1194
 
  if test -n "$AR"; then
1195
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
1196
 
else
1197
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1198
 
  ac_dummy="$PATH"
1199
 
  for ac_dir in $ac_dummy; do
1200
 
    test -z "$ac_dir" && ac_dir=.
1201
 
    if test -f $ac_dir/$ac_word; then
1202
 
      ac_cv_prog_AR="ar"
1203
 
      break
1204
 
    fi
1205
 
  done
1206
 
  IFS="$ac_save_ifs"
1207
 
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""ar""
1208
 
fi
1209
 
fi
1210
 
AR="$ac_cv_prog_AR"
1211
 
if test -n "$AR"; then
1212
 
  echo "$ac_t""$AR" 1>&6
1213
 
else
1214
 
  echo "$ac_t""no" 1>&6
1215
 
fi
1216
 
 
1217
 
else
1218
 
  AR=""ar""
1219
 
fi
1220
 
fi
1221
 
 
1222
 
 
1223
 
SAVE_LIBS="$LIBS"
1224
 
LIBS=""
1225
 
 
1226
 
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
1227
 
echo "configure:1228: checking for library containing gethostbyname" >&5
1228
 
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
1229
 
  echo $ac_n "(cached) $ac_c" 1>&6
1230
 
else
1231
 
  ac_func_search_save_LIBS="$LIBS"
1232
 
ac_cv_search_gethostbyname="no"
1233
 
cat > conftest.$ac_ext <<EOF
1234
 
#line 1235 "configure"
1235
 
#include "confdefs.h"
1236
 
/* Override any gcc2 internal prototype to avoid an error.  */
1237
 
/* We use char because int might match the return type of a gcc2
1238
 
    builtin and then its argument prototype would still apply.  */
1239
 
char gethostbyname();
1240
 
 
1241
 
int main() {
1242
 
gethostbyname()
1243
 
; return 0; }
1244
 
EOF
1245
 
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246
 
  rm -rf conftest*
1247
 
  ac_cv_search_gethostbyname="none required"
1248
 
else
1249
 
  echo "configure: failed program was:" >&5
1250
 
  cat conftest.$ac_ext >&5
1251
 
fi
1252
 
rm -f conftest*
1253
 
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
1254
 
LIBS="-l$i  $ac_func_search_save_LIBS"
1255
 
cat > conftest.$ac_ext <<EOF
1256
 
#line 1257 "configure"
1257
 
#include "confdefs.h"
1258
 
/* Override any gcc2 internal prototype to avoid an error.  */
1259
 
/* We use char because int might match the return type of a gcc2
1260
 
    builtin and then its argument prototype would still apply.  */
1261
 
char gethostbyname();
1262
 
 
1263
 
int main() {
1264
 
gethostbyname()
1265
 
; return 0; }
1266
 
EOF
1267
 
if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1268
 
  rm -rf conftest*
1269
 
  ac_cv_search_gethostbyname="-l$i"
1270
 
break
1271
 
else
1272
 
  echo "configure: failed program was:" >&5
1273
 
  cat conftest.$ac_ext >&5
1274
 
fi
1275
 
rm -f conftest*
1276
 
done
1277
 
LIBS="$ac_func_search_save_LIBS"
1278
 
fi
1279
 
 
1280
 
echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
1281
 
if test "$ac_cv_search_gethostbyname" != "no"; then
1282
 
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
1283
 
  
1284
 
else :
1285
 
  
1286
 
fi
1287
 
 
1288
 
echo $ac_n "checking for library containing connect""... $ac_c" 1>&6
1289
 
echo "configure:1290: checking for library containing connect" >&5
1290
 
if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then
1291
 
  echo $ac_n "(cached) $ac_c" 1>&6
1292
 
else
1293
 
  ac_func_search_save_LIBS="$LIBS"
1294
 
ac_cv_search_connect="no"
1295
 
cat > conftest.$ac_ext <<EOF
1296
 
#line 1297 "configure"
1297
 
#include "confdefs.h"
1298
 
/* Override any gcc2 internal prototype to avoid an error.  */
1299
 
/* We use char because int might match the return type of a gcc2
1300
 
    builtin and then its argument prototype would still apply.  */
1301
 
char connect();
1302
 
 
1303
 
int main() {
1304
 
connect()
1305
 
; return 0; }
1306
 
EOF
1307
 
if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1308
 
  rm -rf conftest*
1309
 
  ac_cv_search_connect="none required"
1310
 
else
1311
 
  echo "configure: failed program was:" >&5
1312
 
  cat conftest.$ac_ext >&5
1313
 
fi
1314
 
rm -f conftest*
1315
 
test "$ac_cv_search_connect" = "no" && for i in socket; do
1316
 
LIBS="-l$i  $ac_func_search_save_LIBS"
1317
 
cat > conftest.$ac_ext <<EOF
1318
 
#line 1319 "configure"
1319
 
#include "confdefs.h"
1320
 
/* Override any gcc2 internal prototype to avoid an error.  */
1321
 
/* We use char because int might match the return type of a gcc2
1322
 
    builtin and then its argument prototype would still apply.  */
1323
 
char connect();
1324
 
 
1325
 
int main() {
1326
 
connect()
1327
 
; return 0; }
1328
 
EOF
1329
 
if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1330
 
  rm -rf conftest*
1331
 
  ac_cv_search_connect="-l$i"
1332
 
break
1333
 
else
1334
 
  echo "configure: failed program was:" >&5
1335
 
  cat conftest.$ac_ext >&5
1336
 
fi
1337
 
rm -f conftest*
1338
 
done
1339
 
LIBS="$ac_func_search_save_LIBS"
1340
 
fi
1341
 
 
1342
 
echo "$ac_t""$ac_cv_search_connect" 1>&6
1343
 
if test "$ac_cv_search_connect" != "no"; then
1344
 
  test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
1345
 
  
1346
 
else :
1347
 
  
1348
 
fi
1349
 
SOCKETLIBS="$LIBS"
1350
 
 
1351
 
LIBS="$SAVE_LIBS"
1352
 
 
1353
 
 
1354
 
 
1355
 
ac_safe=`echo "db2/db.h" | sed 'y%./+-%__p_%'`
1356
 
echo $ac_n "checking for db2/db.h""... $ac_c" 1>&6
1357
 
echo "configure:1358: checking for db2/db.h" >&5
1358
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1359
 
  echo $ac_n "(cached) $ac_c" 1>&6
1360
 
else
1361
 
  cat > conftest.$ac_ext <<EOF
1362
 
#line 1363 "configure"
1363
 
#include "confdefs.h"
1364
 
#include <db2/db.h>
1365
 
EOF
1366
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1367
 
{ (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1368
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1369
 
if test -z "$ac_err"; then
1370
 
  rm -rf conftest*
1371
 
  eval "ac_cv_header_$ac_safe=yes"
1372
 
else
1373
 
  echo "$ac_err" >&5
1374
 
  echo "configure: failed program was:" >&5
1375
 
  cat conftest.$ac_ext >&5
1376
 
  rm -rf conftest*
1377
 
  eval "ac_cv_header_$ac_safe=no"
1378
 
fi
1379
 
rm -f conftest*
1380
 
fi
1381
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1382
 
  echo "$ac_t""yes" 1>&6
1383
 
  echo $ac_n "checking for db_open in -ldb2""... $ac_c" 1>&6
1384
 
echo "configure:1385: checking for db_open in -ldb2" >&5
1385
 
ac_lib_var=`echo db2'_'db_open | sed 'y%./+-%__p_%'`
1386
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387
 
  echo $ac_n "(cached) $ac_c" 1>&6
1388
 
else
1389
 
  ac_save_LIBS="$LIBS"
1390
 
LIBS="-ldb2  $LIBS"
1391
 
cat > conftest.$ac_ext <<EOF
1392
 
#line 1393 "configure"
1393
 
#include "confdefs.h"
1394
 
/* Override any gcc2 internal prototype to avoid an error.  */
1395
 
/* We use char because int might match the return type of a gcc2
1396
 
    builtin and then its argument prototype would still apply.  */
1397
 
char db_open();
1398
 
 
1399
 
int main() {
1400
 
db_open()
1401
 
; return 0; }
1402
 
EOF
1403
 
if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404
 
  rm -rf conftest*
1405
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1406
 
else
1407
 
  echo "configure: failed program was:" >&5
1408
 
  cat conftest.$ac_ext >&5
1409
 
  rm -rf conftest*
1410
 
  eval "ac_cv_lib_$ac_lib_var=no"
1411
 
fi
1412
 
rm -f conftest*
1413
 
LIBS="$ac_save_LIBS"
1414
 
 
1415
 
fi
1416
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417
 
  echo "$ac_t""yes" 1>&6
1418
 
  cat >> confdefs.h <<\EOF
1419
 
#define HAVE_DB2 1
1420
 
EOF
1421
 
 DB2LIB="-ldb2"
1422
 
else
1423
 
  echo "$ac_t""no" 1>&6
1424
 
fi
1425
 
 
1426
 
else
1427
 
  echo "$ac_t""no" 1>&6
1428
 
fi
1429
 
 
1430
 
 
1431
 
 
1432
 
echo $ac_n "checking system architecture""... $ac_c" 1>&6
1433
 
echo "configure:1434: checking system architecture" >&5
1434
 
archset="`awk \" ! /^#|^\\\$/ { if(match(\\\"$target_cpu\\\",\\\"^\\\"\\\$1\\\"\\\$\\\")) {print \\\$2; exit}}\" $srcdir/buildlib/archtable`"
1435
 
if test "x$archset" = "x"; then
1436
 
  { echo "configure: error: failed: use --host=" 1>&2; exit 1; }
1437
 
fi
1438
 
echo "$ac_t""$archset" 1>&6
1439
 
cat >> confdefs.h <<EOF
1440
 
#define COMMON_CPU "$archset"
1441
 
EOF
1442
 
 
1443
 
 
1444
 
echo $ac_n "checking system OS""... $ac_c" 1>&6
1445
 
echo "configure:1446: checking system OS" >&5
1446
 
osset="`awk \" ! /^#|^\\\$/ {if (match(\\\"$target_vendor-$target_os\\\",\\\$1)) {print \\\$2; exit}}\" $srcdir/buildlib/ostable`"
1447
 
echo "$ac_t""$osset" 1>&6
1448
 
cat >> confdefs.h <<EOF
1449
 
#define COMMON_OS "$osset"
1450
 
EOF
1451
 
 
1452
 
 
1453
 
echo $ac_n "checking for C99 integer types""... $ac_c" 1>&6
1454
 
echo "configure:1455: checking for C99 integer types" >&5
1455
 
if eval "test \"`echo '$''{'c9x_ints'+set}'`\" = set"; then
1456
 
  echo $ac_n "(cached) $ac_c" 1>&6
1457
 
else
1458
 
  
1459
 
    cat > conftest.$ac_ext <<EOF
1460
 
#line 1461 "configure"
1461
 
#include "confdefs.h"
1462
 
#include <inttypes.h>
1463
 
int main() {
1464
 
uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;
1465
 
; return 0; }
1466
 
EOF
1467
 
if { (eval echo configure:1468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468
 
  rm -rf conftest*
1469
 
  c9x_ints=yes
1470
 
else
1471
 
  echo "configure: failed program was:" >&5
1472
 
  cat conftest.$ac_ext >&5
1473
 
  rm -rf conftest*
1474
 
  c9x_ints=no
1475
 
fi
1476
 
rm -f conftest*
1477
 
fi
1478
 
 
1479
 
echo "$ac_t""$c9x_ints" 1>&6
1480
 
 
1481
 
echo $ac_n "checking for statvfs""... $ac_c" 1>&6
1482
 
echo "configure:1483: checking for statvfs" >&5
1483
 
if eval "test \"`echo '$''{'ac_cv_func_statvfs'+set}'`\" = set"; then
1484
 
  echo $ac_n "(cached) $ac_c" 1>&6
1485
 
else
1486
 
  cat > conftest.$ac_ext <<EOF
1487
 
#line 1488 "configure"
1488
 
#include "confdefs.h"
1489
 
/* System header to define __stub macros and hopefully few prototypes,
1490
 
    which can conflict with char statvfs(); below.  */
1491
 
#include <assert.h>
1492
 
/* Override any gcc2 internal prototype to avoid an error.  */
1493
 
/* We use char because int might match the return type of a gcc2
1494
 
    builtin and then its argument prototype would still apply.  */
1495
 
char statvfs();
1496
 
 
1497
 
int main() {
1498
 
 
1499
 
/* The GNU C library defines this for functions which it implements
1500
 
    to always fail with ENOSYS.  Some functions are actually named
1501
 
    something starting with __ and the normal name is an alias.  */
1502
 
#if defined (__stub_statvfs) || defined (__stub___statvfs)
1503
 
choke me
1504
 
#else
1505
 
statvfs();
1506
 
#endif
1507
 
 
1508
 
; return 0; }
1509
 
EOF
1510
 
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511
 
  rm -rf conftest*
1512
 
  eval "ac_cv_func_statvfs=yes"
1513
 
else
1514
 
  echo "configure: failed program was:" >&5
1515
 
  cat conftest.$ac_ext >&5
1516
 
  rm -rf conftest*
1517
 
  eval "ac_cv_func_statvfs=no"
1518
 
fi
1519
 
rm -f conftest*
1520
 
fi
1521
 
 
1522
 
if eval "test \"`echo '$ac_cv_func_'statvfs`\" = yes"; then
1523
 
  echo "$ac_t""yes" 1>&6
1524
 
  HAVE_STATVFS=yes
1525
 
else
1526
 
  echo "$ac_t""no" 1>&6
1527
 
fi
1528
 
 
1529
 
 
1530
 
 
1531
 
if test x"$HAVE_STATVFS" != x"yes"; then
1532
 
   cat > conftest.$ac_ext <<EOF
1533
 
#line 1534 "configure"
1534
 
#include "confdefs.h"
1535
 
#include <sys/vfs.h>
1536
 
EOF
1537
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1538
 
  egrep "statfs" >/dev/null 2>&1; then
1539
 
  rm -rf conftest*
1540
 
  cat >> confdefs.h <<\EOF
1541
 
#define HAVE_VFS_H 1
1542
 
EOF
1543
 
 
1544
 
else
1545
 
  rm -rf conftest*
1546
 
  
1547
 
   cat > conftest.$ac_ext <<EOF
1548
 
#line 1549 "configure"
1549
 
#include "confdefs.h"
1550
 
#include <sys/mount.h>
1551
 
EOF
1552
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1553
 
  egrep "statfs" >/dev/null 2>&1; then
1554
 
  rm -rf conftest*
1555
 
  cat >> confdefs.h <<\EOF
1556
 
#define HAVE_MOUNT_H 1
1557
 
EOF
1558
 
 
1559
 
else
1560
 
  rm -rf conftest*
1561
 
  { echo "configure: error: failed: Need statvfs" 1>&2; exit 1; }
1562
 
fi
1563
 
rm -f conftest*
1564
 
 
1565
 
   
1566
 
fi
1567
 
rm -f conftest*
1568
 
 
1569
 
fi
1570
 
 
1571
 
 
1572
 
archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`"
1573
 
if test "x$archline" != "x"; then
1574
 
   
1575
 
   set $archline
1576
 
   if test "$1" = "little"; then
1577
 
      ac_cv_c_bigendian=no
1578
 
   else
1579
 
      ac_cv_c_bigendian=yes
1580
 
   fi
1581
 
   size_char=$2
1582
 
   size_int=$3
1583
 
   size_short=$4
1584
 
   size_long=$5
1585
 
fi
1586
 
 
1587
 
if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then
1588
 
  { echo "configure: error: When cross compiling" 1>&2; exit 1; }
1589
 
fi
1590
 
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1591
 
echo "configure:1592: checking whether byte ordering is bigendian" >&5
1592
 
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1593
 
  echo $ac_n "(cached) $ac_c" 1>&6
1594
 
else
1595
 
  ac_cv_c_bigendian=unknown
1596
 
# See if sys/param.h defines the BYTE_ORDER macro.
1597
 
cat > conftest.$ac_ext <<EOF
1598
 
#line 1599 "configure"
1599
 
#include "confdefs.h"
1600
 
#include <sys/types.h>
1601
 
#include <sys/param.h>
1602
 
int main() {
1603
 
 
1604
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1605
 
 bogus endian macros
1606
 
#endif
1607
 
; return 0; }
1608
 
EOF
1609
 
if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610
 
  rm -rf conftest*
1611
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
1612
 
cat > conftest.$ac_ext <<EOF
1613
 
#line 1614 "configure"
1614
 
#include "confdefs.h"
1615
 
#include <sys/types.h>
1616
 
#include <sys/param.h>
1617
 
int main() {
1618
 
 
1619
 
#if BYTE_ORDER != BIG_ENDIAN
1620
 
 not big endian
1621
 
#endif
1622
 
; return 0; }
1623
 
EOF
1624
 
if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625
 
  rm -rf conftest*
1626
 
  ac_cv_c_bigendian=yes
1627
 
else
1628
 
  echo "configure: failed program was:" >&5
1629
 
  cat conftest.$ac_ext >&5
1630
 
  rm -rf conftest*
1631
 
  ac_cv_c_bigendian=no
1632
 
fi
1633
 
rm -f conftest*
1634
 
else
1635
 
  echo "configure: failed program was:" >&5
1636
 
  cat conftest.$ac_ext >&5
1637
 
fi
1638
 
rm -f conftest*
1639
 
if test $ac_cv_c_bigendian = unknown; then
1640
 
if test "$cross_compiling" = yes; then
1641
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1642
 
else
1643
 
  cat > conftest.$ac_ext <<EOF
1644
 
#line 1645 "configure"
1645
 
#include "confdefs.h"
1646
 
main () {
1647
 
  /* Are we little or big endian?  From Harbison&Steele.  */
1648
 
  union
1649
 
  {
1650
 
    long l;
1651
 
    char c[sizeof (long)];
1652
 
  } u;
1653
 
  u.l = 1;
1654
 
  exit (u.c[sizeof (long) - 1] == 1);
1655
 
}
1656
 
EOF
1657
 
if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1658
 
then
1659
 
  ac_cv_c_bigendian=no
1660
 
else
1661
 
  echo "configure: failed program was:" >&5
1662
 
  cat conftest.$ac_ext >&5
1663
 
  rm -fr conftest*
1664
 
  ac_cv_c_bigendian=yes
1665
 
fi
1666
 
rm -fr conftest*
1667
 
fi
1668
 
 
1669
 
fi
1670
 
fi
1671
 
 
1672
 
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1673
 
if test $ac_cv_c_bigendian = yes; then
1674
 
  cat >> confdefs.h <<\EOF
1675
 
#define WORDS_BIGENDIAN 1
1676
 
EOF
1677
 
 
1678
 
fi
1679
 
 
1680
 
   
1681
 
HAVE_C9X=yes
1682
 
if test x"$c9x_ints" = x"no"; then
1683
 
   echo $ac_n "checking size of char""... $ac_c" 1>&6
1684
 
echo "configure:1685: checking size of char" >&5
1685
 
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1686
 
  echo $ac_n "(cached) $ac_c" 1>&6
1687
 
else
1688
 
  if test "$cross_compiling" = yes; then
1689
 
  ac_cv_sizeof_char=$size_char
1690
 
else
1691
 
  cat > conftest.$ac_ext <<EOF
1692
 
#line 1693 "configure"
1693
 
#include "confdefs.h"
1694
 
#include <stdio.h>
1695
 
#include <sys/types.h>
1696
 
main()
1697
 
{
1698
 
  FILE *f=fopen("conftestval", "w");
1699
 
  if (!f) exit(1);
1700
 
  fprintf(f, "%d\n", sizeof(char));
1701
 
  exit(0);
1702
 
}
1703
 
EOF
1704
 
if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1705
 
then
1706
 
  ac_cv_sizeof_char=`cat conftestval`
1707
 
else
1708
 
  echo "configure: failed program was:" >&5
1709
 
  cat conftest.$ac_ext >&5
1710
 
  rm -fr conftest*
1711
 
  ac_cv_sizeof_char=0
1712
 
fi
1713
 
rm -fr conftest*
1714
 
fi
1715
 
 
1716
 
fi
1717
 
echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1718
 
cat >> confdefs.h <<EOF
1719
 
#define SIZEOF_CHAR $ac_cv_sizeof_char
1720
 
EOF
1721
 
 
1722
 
 
1723
 
   echo $ac_n "checking size of int""... $ac_c" 1>&6
1724
 
echo "configure:1725: checking size of int" >&5
1725
 
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1726
 
  echo $ac_n "(cached) $ac_c" 1>&6
1727
 
else
1728
 
  if test "$cross_compiling" = yes; then
1729
 
  ac_cv_sizeof_int=$size_int
1730
 
else
1731
 
  cat > conftest.$ac_ext <<EOF
1732
 
#line 1733 "configure"
1733
 
#include "confdefs.h"
1734
 
#include <stdio.h>
1735
 
#include <sys/types.h>
1736
 
main()
1737
 
{
1738
 
  FILE *f=fopen("conftestval", "w");
1739
 
  if (!f) exit(1);
1740
 
  fprintf(f, "%d\n", sizeof(int));
1741
 
  exit(0);
1742
 
}
1743
 
EOF
1744
 
if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1745
 
then
1746
 
  ac_cv_sizeof_int=`cat conftestval`
1747
 
else
1748
 
  echo "configure: failed program was:" >&5
1749
 
  cat conftest.$ac_ext >&5
1750
 
  rm -fr conftest*
1751
 
  ac_cv_sizeof_int=0
1752
 
fi
1753
 
rm -fr conftest*
1754
 
fi
1755
 
 
1756
 
fi
1757
 
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1758
 
cat >> confdefs.h <<EOF
1759
 
#define SIZEOF_INT $ac_cv_sizeof_int
1760
 
EOF
1761
 
 
1762
 
 
1763
 
   echo $ac_n "checking size of short""... $ac_c" 1>&6
1764
 
echo "configure:1765: checking size of short" >&5
1765
 
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1766
 
  echo $ac_n "(cached) $ac_c" 1>&6
1767
 
else
1768
 
  if test "$cross_compiling" = yes; then
1769
 
  ac_cv_sizeof_short=$size_short
1770
 
else
1771
 
  cat > conftest.$ac_ext <<EOF
1772
 
#line 1773 "configure"
1773
 
#include "confdefs.h"
1774
 
#include <stdio.h>
1775
 
#include <sys/types.h>
1776
 
main()
1777
 
{
1778
 
  FILE *f=fopen("conftestval", "w");
1779
 
  if (!f) exit(1);
1780
 
  fprintf(f, "%d\n", sizeof(short));
1781
 
  exit(0);
1782
 
}
1783
 
EOF
1784
 
if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1785
 
then
1786
 
  ac_cv_sizeof_short=`cat conftestval`
1787
 
else
1788
 
  echo "configure: failed program was:" >&5
1789
 
  cat conftest.$ac_ext >&5
1790
 
  rm -fr conftest*
1791
 
  ac_cv_sizeof_short=0
1792
 
fi
1793
 
rm -fr conftest*
1794
 
fi
1795
 
 
1796
 
fi
1797
 
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1798
 
cat >> confdefs.h <<EOF
1799
 
#define SIZEOF_SHORT $ac_cv_sizeof_short
1800
 
EOF
1801
 
 
1802
 
 
1803
 
   echo $ac_n "checking size of long""... $ac_c" 1>&6
1804
 
echo "configure:1805: checking size of long" >&5
1805
 
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1806
 
  echo $ac_n "(cached) $ac_c" 1>&6
1807
 
else
1808
 
  if test "$cross_compiling" = yes; then
1809
 
  ac_cv_sizeof_long=$size_long
1810
 
else
1811
 
  cat > conftest.$ac_ext <<EOF
1812
 
#line 1813 "configure"
1813
 
#include "confdefs.h"
1814
 
#include <stdio.h>
1815
 
#include <sys/types.h>
1816
 
main()
1817
 
{
1818
 
  FILE *f=fopen("conftestval", "w");
1819
 
  if (!f) exit(1);
1820
 
  fprintf(f, "%d\n", sizeof(long));
1821
 
  exit(0);
1822
 
}
1823
 
EOF
1824
 
if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1825
 
then
1826
 
  ac_cv_sizeof_long=`cat conftestval`
1827
 
else
1828
 
  echo "configure: failed program was:" >&5
1829
 
  cat conftest.$ac_ext >&5
1830
 
  rm -fr conftest*
1831
 
  ac_cv_sizeof_long=0
1832
 
fi
1833
 
rm -fr conftest*
1834
 
fi
1835
 
 
1836
 
fi
1837
 
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1838
 
cat >> confdefs.h <<EOF
1839
 
#define SIZEOF_LONG $ac_cv_sizeof_long
1840
 
EOF
1841
 
 
1842
 
 
1843
 
  
1844
 
   HAVE_C9X=
1845
 
   
1846
 
fi
1847
 
 
1848
 
echo $ac_n "checking for missing socklen_t""... $ac_c" 1>&6
1849
 
echo "configure:1850: checking for missing socklen_t" >&5
1850
 
cat > conftest.$ac_ext <<EOF
1851
 
#line 1852 "configure"
1852
 
#include "confdefs.h"
1853
 
#include <sys/socket.h>
1854
 
EOF
1855
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1856
 
  egrep "socklen_t" >/dev/null 2>&1; then
1857
 
  rm -rf conftest*
1858
 
  echo "$ac_t""no" 1>&6
1859
 
else
1860
 
  rm -rf conftest*
1861
 
  
1862
 
        cat >> confdefs.h <<\EOF
1863
 
#define NEED_SOCKLEN_T_DEFINE 1
1864
 
EOF
1865
 
 
1866
 
        NEED_SOCKLEN_T_DEFINE=yes
1867
 
        echo "$ac_t""missing." 1>&6
1868
 
fi
1869
 
rm -f conftest*
1870
 
 
1871
 
 
1872
 
 
1873
 
echo $ac_n "checking for h_errno""... $ac_c" 1>&6
1874
 
echo "configure:1875: checking for h_errno" >&5
1875
 
cat > conftest.$ac_ext <<EOF
1876
 
#line 1877 "configure"
1877
 
#include "confdefs.h"
1878
 
#include <netdb.h>
1879
 
EOF
1880
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1881
 
  egrep "h_errno" >/dev/null 2>&1; then
1882
 
  rm -rf conftest*
1883
 
  echo "$ac_t""normal" 1>&6
1884
 
else
1885
 
  rm -rf conftest*
1886
 
  CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
1887
 
    cat > conftest.$ac_ext <<EOF
1888
 
#line 1889 "configure"
1889
 
#include "confdefs.h"
1890
 
#include <netdb.h>
1891
 
EOF
1892
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893
 
  egrep "h_errno" >/dev/null 2>&1; then
1894
 
  rm -rf conftest*
1895
 
  echo "$ac_t""needs _XOPEN_SOURCE_EXTENDED" 1>&6
1896
 
else
1897
 
  rm -rf conftest*
1898
 
  { echo "configure: error: "not found."" 1>&2; exit 1; }
1899
 
fi
1900
 
rm -f conftest*
1901
 
 
1902
 
   
1903
 
fi
1904
 
rm -f conftest*
1905
 
 
1906
 
 
1907
 
# Extract the first word of "debiandoc2html", so it can be a program name with args.
1908
 
set dummy debiandoc2html; ac_word=$2
1909
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910
 
echo "configure:1911: checking for $ac_word" >&5
1911
 
if eval "test \"`echo '$''{'ac_cv_path_DEBIANDOC_HTML'+set}'`\" = set"; then
1912
 
  echo $ac_n "(cached) $ac_c" 1>&6
1913
 
else
1914
 
  case "$DEBIANDOC_HTML" in
1915
 
  /*)
1916
 
  ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path.
1917
 
  ;;
1918
 
  ?:/*)                  
1919
 
  ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a dos path.
1920
 
  ;;
1921
 
  *)
1922
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1923
 
  ac_dummy="$PATH"
1924
 
  for ac_dir in $ac_dummy; do 
1925
 
    test -z "$ac_dir" && ac_dir=.
1926
 
    if test -f $ac_dir/$ac_word; then
1927
 
      ac_cv_path_DEBIANDOC_HTML="$ac_dir/$ac_word"
1928
 
      break
1929
 
    fi
1930
 
  done
1931
 
  IFS="$ac_save_ifs"
1932
 
  ;;
1933
 
esac
1934
 
fi
1935
 
DEBIANDOC_HTML="$ac_cv_path_DEBIANDOC_HTML"
1936
 
if test -n "$DEBIANDOC_HTML"; then
1937
 
  echo "$ac_t""$DEBIANDOC_HTML" 1>&6
1938
 
else
1939
 
  echo "$ac_t""no" 1>&6
1940
 
fi
1941
 
 
1942
 
# Extract the first word of "debiandoc2text", so it can be a program name with args.
1943
 
set dummy debiandoc2text; ac_word=$2
1944
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1945
 
echo "configure:1946: checking for $ac_word" >&5
1946
 
if eval "test \"`echo '$''{'ac_cv_path_DEBIANDOC_TEXT'+set}'`\" = set"; then
1947
 
  echo $ac_n "(cached) $ac_c" 1>&6
1948
 
else
1949
 
  case "$DEBIANDOC_TEXT" in
1950
 
  /*)
1951
 
  ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path.
1952
 
  ;;
1953
 
  ?:/*)                  
1954
 
  ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a dos path.
1955
 
  ;;
1956
 
  *)
1957
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1958
 
  ac_dummy="$PATH"
1959
 
  for ac_dir in $ac_dummy; do 
1960
 
    test -z "$ac_dir" && ac_dir=.
1961
 
    if test -f $ac_dir/$ac_word; then
1962
 
      ac_cv_path_DEBIANDOC_TEXT="$ac_dir/$ac_word"
1963
 
      break
1964
 
    fi
1965
 
  done
1966
 
  IFS="$ac_save_ifs"
1967
 
  ;;
1968
 
esac
1969
 
fi
1970
 
DEBIANDOC_TEXT="$ac_cv_path_DEBIANDOC_TEXT"
1971
 
if test -n "$DEBIANDOC_TEXT"; then
1972
 
  echo "$ac_t""$DEBIANDOC_TEXT" 1>&6
1973
 
else
1974
 
  echo "$ac_t""no" 1>&6
1975
 
fi
1976
 
 
1977
 
 
1978
 
# Extract the first word of "nsgmls", so it can be a program name with args.
1979
 
set dummy nsgmls; ac_word=$2
1980
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981
 
echo "configure:1982: checking for $ac_word" >&5
1982
 
if eval "test \"`echo '$''{'ac_cv_path_NSGMLS'+set}'`\" = set"; then
1983
 
  echo $ac_n "(cached) $ac_c" 1>&6
1984
 
else
1985
 
  case "$NSGMLS" in
1986
 
  /*)
1987
 
  ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a path.
1988
 
  ;;
1989
 
  ?:/*)                  
1990
 
  ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a dos path.
1991
 
  ;;
1992
 
  *)
1993
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1994
 
  ac_dummy="$PATH"
1995
 
  for ac_dir in $ac_dummy; do 
1996
 
    test -z "$ac_dir" && ac_dir=.
1997
 
    if test -f $ac_dir/$ac_word; then
1998
 
      ac_cv_path_NSGMLS="$ac_dir/$ac_word"
1999
 
      break
2000
 
    fi
2001
 
  done
2002
 
  IFS="$ac_save_ifs"
2003
 
  ;;
2004
 
esac
2005
 
fi
2006
 
NSGMLS="$ac_cv_path_NSGMLS"
2007
 
if test -n "$NSGMLS"; then
2008
 
  echo "$ac_t""$NSGMLS" 1>&6
2009
 
else
2010
 
  echo "$ac_t""no" 1>&6
2011
 
fi
2012
 
 
2013
 
# Extract the first word of "sgmlspl", so it can be a program name with args.
2014
 
set dummy sgmlspl; ac_word=$2
2015
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016
 
echo "configure:2017: checking for $ac_word" >&5
2017
 
if eval "test \"`echo '$''{'ac_cv_path_SGMLSPL'+set}'`\" = set"; then
2018
 
  echo $ac_n "(cached) $ac_c" 1>&6
2019
 
else
2020
 
  case "$SGMLSPL" in
2021
 
  /*)
2022
 
  ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a path.
2023
 
  ;;
2024
 
  ?:/*)                  
2025
 
  ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a dos path.
2026
 
  ;;
2027
 
  *)
2028
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2029
 
  ac_dummy="$PATH"
2030
 
  for ac_dir in $ac_dummy; do 
2031
 
    test -z "$ac_dir" && ac_dir=.
2032
 
    if test -f $ac_dir/$ac_word; then
2033
 
      ac_cv_path_SGMLSPL="$ac_dir/$ac_word"
2034
 
      break
2035
 
    fi
2036
 
  done
2037
 
  IFS="$ac_save_ifs"
2038
 
  ;;
2039
 
esac
2040
 
fi
2041
 
SGMLSPL="$ac_cv_path_SGMLSPL"
2042
 
if test -n "$SGMLSPL"; then
2043
 
  echo "$ac_t""$SGMLSPL" 1>&6
2044
 
else
2045
 
  echo "$ac_t""no" 1>&6
2046
 
fi
2047
 
 
2048
 
 
2049
 
 
2050
 
# Check whether --with-getconf or --without-getconf was given.
2051
 
if test "${with_getconf+set}" = set; then
2052
 
  withval="$with_getconf"
2053
 
  if test "$withval" = "yes"; then
2054
 
                        # Extract the first word of "getconf", so it can be a program name with args.
2055
 
set dummy getconf; ac_word=$2
2056
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057
 
echo "configure:2058: checking for $ac_word" >&5
2058
 
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
2059
 
  echo $ac_n "(cached) $ac_c" 1>&6
2060
 
else
2061
 
  case "$GETCONF" in
2062
 
  /*)
2063
 
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
2064
 
  ;;
2065
 
  ?:/*)                  
2066
 
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
2067
 
  ;;
2068
 
  *)
2069
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2070
 
  ac_dummy="$PATH"
2071
 
  for ac_dir in $ac_dummy; do 
2072
 
    test -z "$ac_dir" && ac_dir=.
2073
 
    if test -f $ac_dir/$ac_word; then
2074
 
      ac_cv_path_GETCONF="$ac_dir/$ac_word"
2075
 
      break
2076
 
    fi
2077
 
  done
2078
 
  IFS="$ac_save_ifs"
2079
 
  ;;
2080
 
esac
2081
 
fi
2082
 
GETCONF="$ac_cv_path_GETCONF"
2083
 
if test -n "$GETCONF"; then
2084
 
  echo "$ac_t""$GETCONF" 1>&6
2085
 
else
2086
 
  echo "$ac_t""no" 1>&6
2087
 
fi
2088
 
 
2089
 
                elif test ! "$withval" = "no";then 
2090
 
                        echo $ac_n "checking getconf""... $ac_c" 1>&6
2091
 
echo "configure:2092: checking getconf" >&5
2092
 
                        echo "$ac_t""$withval" 1>&6
2093
 
                        GETCONF=$withval
2094
 
                fi
2095
 
else
2096
 
  # Extract the first word of "getconf", so it can be a program name with args.
2097
 
set dummy getconf; ac_word=$2
2098
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099
 
echo "configure:2100: checking for $ac_word" >&5
2100
 
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
2101
 
  echo $ac_n "(cached) $ac_c" 1>&6
2102
 
else
2103
 
  case "$GETCONF" in
2104
 
  /*)
2105
 
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
2106
 
  ;;
2107
 
  ?:/*)                  
2108
 
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
2109
 
  ;;
2110
 
  *)
2111
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2112
 
  ac_dummy="$PATH"
2113
 
  for ac_dir in $ac_dummy; do 
2114
 
    test -z "$ac_dir" && ac_dir=.
2115
 
    if test -f $ac_dir/$ac_word; then
2116
 
      ac_cv_path_GETCONF="$ac_dir/$ac_word"
2117
 
      break
2118
 
    fi
2119
 
  done
2120
 
  IFS="$ac_save_ifs"
2121
 
  ;;
2122
 
esac
2123
 
fi
2124
 
GETCONF="$ac_cv_path_GETCONF"
2125
 
if test -n "$GETCONF"; then
2126
 
  echo "$ac_t""$GETCONF" 1>&6
2127
 
else
2128
 
  echo "$ac_t""no" 1>&6
2129
 
fi
2130
 
 
2131
 
        
2132
 
fi
2133
 
 
2134
 
        
2135
 
 
2136
 
echo $ac_n "checking number of cpus""... $ac_c" 1>&6
2137
 
echo "configure:2138: checking number of cpus" >&5
2138
 
        # Check whether --with-cpus or --without-cpus was given.
2139
 
if test "${with_cpus+set}" = set; then
2140
 
  withval="$with_cpus"
2141
 
  
2142
 
                if test "$withval" = "yes"; then
2143
 
                        
2144
 
        if test ! -z "$GETCONF";then
2145
 
                old_args="$@"
2146
 
                set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
2147
 
                while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
2148
 
                        eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
2149
 
                        shift
2150
 
                done
2151
 
        fi
2152
 
        if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
2153
 
                eval NUM_CPUS="1"
2154
 
        fi
2155
 
 
2156
 
                elif test ! "$withval" = "no";then
2157
 
                        NUM_CPUS=$withval
2158
 
                elif test "$withval" = "no";then
2159
 
                        NUM_CPUS=1
2160
 
                fi
2161
 
else
2162
 
  
2163
 
        if test ! -z "$GETCONF";then
2164
 
                old_args="$@"
2165
 
                set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
2166
 
                while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
2167
 
                        eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
2168
 
                        shift
2169
 
                done
2170
 
        fi
2171
 
        if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
2172
 
                eval NUM_CPUS="1"
2173
 
        fi
2174
 
 
2175
 
        
2176
 
fi
2177
 
 
2178
 
        ah_NUM_CPUS_msg="$NUM_CPUS"
2179
 
        if test "$NUM_CPUS" = "0"; then
2180
 
                # broken getconf, time to bitch.
2181
 
                ah_NUM_CPUS_msg="found 0 cpus.  Has someone done a lobotomy?"
2182
 
                NUM_CPUS=1
2183
 
        fi
2184
 
        if test $NUM_CPUS = 1 ;then
2185
 
                default_PROC_MULTIPLY=1
2186
 
        else
2187
 
                default_PROC_MULTIPLY=2
2188
 
        fi
2189
 
        echo "$ac_t""$ah_NUM_CPUS_msg" 1>&6
2190
 
        
2191
 
 
2192
 
 
2193
 
        echo $ac_n "checking processor multiplier""... $ac_c" 1>&6
2194
 
echo "configure:2195: checking processor multiplier" >&5
2195
 
        # Check whether --with-proc-multiply or --without-proc-multiply was given.
2196
 
if test "${with_proc_multiply+set}" = set; then
2197
 
  withval="$with_proc_multiply"
2198
 
  if test "$withval" = "yes"; then
2199
 
                        PROC_MULTIPLY=$default_PROC_MULTIPLY
2200
 
                elif test ! "$withval" = "no";then
2201
 
                        PROC_MULTIPLY=$withval
2202
 
                fi
2203
 
else
2204
 
  PROC_MULTIPLY=$default_PROC_MULTIPLY
2205
 
        
2206
 
fi
2207
 
 
2208
 
        echo "$ac_t""$PROC_MULTIPLY" 1>&6
2209
 
        
2210
 
 
2211
 
 
2212
 
        
2213
 
        echo $ac_n "checking number of processes to run during make""... $ac_c" 1>&6
2214
 
echo "configure:2215: checking number of processes to run during make" >&5
2215
 
        # Check whether --with-procs or --without-procs was given.
2216
 
if test "${with_procs+set}" = set; then
2217
 
  withval="$with_procs"
2218
 
  if test "$withval" = "yes"; then
2219
 
                        NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
2220
 
                elif test ! "$withval" = "no";then
2221
 
                        NUM_PROCS=$withval
2222
 
                fi
2223
 
else
2224
 
  NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
2225
 
        
2226
 
fi
2227
 
 
2228
 
        echo "$ac_t""$NUM_PROCS" 1>&6
2229
 
        
2230
 
 
2231
 
echo $ac_n "checking glibc version""... $ac_c" 1>&6
2232
 
echo "configure:2233: checking glibc version" >&5
2233
 
        dummy=if$$
2234
 
        cat <<_GLIBC_>$dummy.c
2235
 
#include <features.h>
2236
 
#include <stdio.h>
2237
 
#include <stdlib.h>
2238
 
int main(int argc, char **argv) { printf("libc6.%d",__GLIBC_MINOR__); exit(0); }
2239
 
_GLIBC_
2240
 
        ${CC-cc} $dummy.c -o $dummy > /dev/null 2>&1
2241
 
        if test "$?" = 0; then
2242
 
                GLIBC_VER=`./$dummy`
2243
 
                echo "$ac_t""$GLIBC_VER" 1>&6
2244
 
                GLIBC_VER="-$GLIBC_VER"
2245
 
        else
2246
 
                echo "configure: warning: cannot determine GNU C library minor version number" 1>&2
2247
 
        fi
2248
 
        rm -f $dummy $dummy.c
2249
 
        
2250
 
 
2251
 
echo $ac_n "checking libstdc++ version""... $ac_c" 1>&6
2252
 
echo "configure:2253: checking libstdc++ version" >&5
2253
 
        dummy=if$$
2254
 
        cat <<_LIBSTDCPP_>$dummy.cc
2255
 
#include <features.h>
2256
 
#include <stdio.h>
2257
 
#include <stdlib.h>
2258
 
int main(int argc, char **argv) { exit(0); }
2259
 
_LIBSTDCPP_
2260
 
        ${CXX-c++} $dummy.cc -o $dummy > /dev/null 2>&1
2261
 
 
2262
 
        if test "$?" = 0; then
2263
 
                soname=`objdump -p ./$dummy |grep NEEDED|grep libstd`
2264
 
                LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'`
2265
 
        fi
2266
 
        rm -f $dummy $dummy.cc
2267
 
 
2268
 
        if test -z "$LIBSTDCPP_VER"; then
2269
 
                echo "configure: warning: cannot determine standard C++ library version number" 1>&2
2270
 
        else
2271
 
                echo "$ac_t""$LIBSTDCPP_VER" 1>&6
2272
 
                LIBSTDCPP_VER="-$LIBSTDCPP_VER"
2273
 
        fi
2274
 
        
2275
 
 
2276
 
 
2277
 
        echo $ac_n "checking if $CXX -MD works""... $ac_c" 1>&6
2278
 
echo "configure:2279: checking if $CXX -MD works" >&5
2279
 
        touch gcc3dep.cc
2280
 
        ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc
2281
 
        rm -f gcc3dep.cc gcc3dep_test.o
2282
 
        if test -e gcc3dep.d; then
2283
 
                rm -f gcc3dep.d
2284
 
                GCC_MD=input
2285
 
                GCC3DEP=
2286
 
        elif test -e gcc3dep_test.d; then
2287
 
                rm -f gcc3dep_test.d
2288
 
                GCC_MD=output
2289
 
                GCC3DEP=yes
2290
 
        else
2291
 
                { echo "configure: error: no" 1>&2; exit 1; }
2292
 
        fi
2293
 
        echo "$ac_t""yes, for $GCC_MD" 1>&6
2294
 
        
2295
 
 
2296
 
 
2297
 
trap '' 1 2 15
2298
 
cat > confcache <<\EOF
2299
 
# This file is a shell script that caches the results of configure
2300
 
# tests run on this system so they can be shared between configure
2301
 
# scripts and configure runs.  It is not useful on other systems.
2302
 
# If it contains results you don't want to keep, you may remove or edit it.
2303
 
#
2304
 
# By default, configure uses ./config.cache as the cache file,
2305
 
# creating it if it does not exist already.  You can give configure
2306
 
# the --cache-file=FILE option to use a different cache file; that is
2307
 
# what configure does when it calls configure scripts in
2308
 
# subdirectories, so they share the cache.
2309
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2310
 
# config.status only pays attention to the cache file if you give it the
2311
 
# --recheck option to rerun configure.
2312
 
#
2313
 
EOF
2314
 
# The following way of writing the cache mishandles newlines in values,
2315
 
# but we know of no workaround that is simple, portable, and efficient.
2316
 
# So, don't put newlines in cache variables' values.
2317
 
# Ultrix sh set writes to stderr and can't be redirected directly,
2318
 
# and sets the high bit in the cache file unless we assign to the vars.
2319
 
(set) 2>&1 |
2320
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2321
 
  *ac_space=\ *)
2322
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
2323
 
    # turns \\\\ into \\, and sed turns \\ into \).
2324
 
    sed -n \
2325
 
      -e "s/'/'\\\\''/g" \
2326
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2327
 
    ;;
2328
 
  *)
2329
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2330
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2331
 
    ;;
2332
 
  esac >> confcache
2333
 
if cmp -s $cache_file confcache; then
2334
 
  :
2335
 
else
2336
 
  if test -w $cache_file; then
2337
 
    echo "updating cache $cache_file"
2338
 
    cat confcache > $cache_file
2339
 
  else
2340
 
    echo "not updating unwritable cache $cache_file"
2341
 
  fi
2342
 
fi
2343
 
rm -f confcache
2344
 
 
2345
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2346
 
 
2347
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2348
 
# Let make expand exec_prefix.
2349
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2350
 
 
2351
 
# Any assignment to VPATH causes Sun make to only execute
2352
 
# the first set of double-colon rules, so remove it if not needed.
2353
 
# If there is a colon in the path, we need to keep it.
2354
 
if test "x$srcdir" = x.; then
2355
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2356
 
fi
2357
 
 
2358
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2359
 
 
2360
 
DEFS=-DHAVE_CONFIG_H
2361
 
 
2362
 
# Without the "./", some shells look in PATH for config.status.
2363
 
: ${CONFIG_STATUS=./config.status}
2364
 
 
2365
 
echo creating $CONFIG_STATUS
2366
 
rm -f $CONFIG_STATUS
2367
 
cat > $CONFIG_STATUS <<EOF
2368
 
#! /bin/sh
2369
 
# Generated automatically by configure.
2370
 
# Run this file to recreate the current configuration.
2371
 
# This directory was configured as follows,
2372
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2373
 
#
2374
 
# $0 $ac_configure_args
2375
 
#
2376
 
# Compiler output produced by configure, useful for debugging
2377
 
# configure, is in ./config.log if it exists.
2378
 
 
2379
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2380
 
for ac_option
2381
 
do
2382
 
  case "\$ac_option" in
2383
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2384
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2385
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2386
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2387
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2388
 
    exit 0 ;;
2389
 
  -help | --help | --hel | --he | --h)
2390
 
    echo "\$ac_cs_usage"; exit 0 ;;
2391
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
2392
 
  esac
2393
 
done
2394
 
 
2395
 
ac_given_srcdir=$srcdir
2396
 
 
2397
 
trap 'rm -fr `echo "environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2398
 
EOF
2399
 
cat >> $CONFIG_STATUS <<EOF
2400
 
 
2401
 
# Protect against being on the right side of a sed subst in config.status.
2402
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2403
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2404
 
$ac_vpsub
2405
 
$extrasub
2406
 
s%@SHELL@%$SHELL%g
2407
 
s%@CFLAGS@%$CFLAGS%g
2408
 
s%@CPPFLAGS@%$CPPFLAGS%g
2409
 
s%@CXXFLAGS@%$CXXFLAGS%g
2410
 
s%@FFLAGS@%$FFLAGS%g
2411
 
s%@DEFS@%$DEFS%g
2412
 
s%@LDFLAGS@%$LDFLAGS%g
2413
 
s%@LIBS@%$LIBS%g
2414
 
s%@exec_prefix@%$exec_prefix%g
2415
 
s%@prefix@%$prefix%g
2416
 
s%@program_transform_name@%$program_transform_name%g
2417
 
s%@bindir@%$bindir%g
2418
 
s%@sbindir@%$sbindir%g
2419
 
s%@libexecdir@%$libexecdir%g
2420
 
s%@datadir@%$datadir%g
2421
 
s%@sysconfdir@%$sysconfdir%g
2422
 
s%@sharedstatedir@%$sharedstatedir%g
2423
 
s%@localstatedir@%$localstatedir%g
2424
 
s%@libdir@%$libdir%g
2425
 
s%@includedir@%$includedir%g
2426
 
s%@oldincludedir@%$oldincludedir%g
2427
 
s%@infodir@%$infodir%g
2428
 
s%@mandir@%$mandir%g
2429
 
s%@host@%$host%g
2430
 
s%@host_alias@%$host_alias%g
2431
 
s%@host_cpu@%$host_cpu%g
2432
 
s%@host_vendor@%$host_vendor%g
2433
 
s%@host_os@%$host_os%g
2434
 
s%@target@%$target%g
2435
 
s%@target_alias@%$target_alias%g
2436
 
s%@target_cpu@%$target_cpu%g
2437
 
s%@target_vendor@%$target_vendor%g
2438
 
s%@target_os@%$target_os%g
2439
 
s%@build@%$build%g
2440
 
s%@build_alias@%$build_alias%g
2441
 
s%@build_cpu@%$build_cpu%g
2442
 
s%@build_vendor@%$build_vendor%g
2443
 
s%@build_os@%$build_os%g
2444
 
s%@CC@%$CC%g
2445
 
s%@CXX@%$CXX%g
2446
 
s%@CPP@%$CPP%g
2447
 
s%@RANLIB@%$RANLIB%g
2448
 
s%@AR@%$AR%g
2449
 
s%@SOCKETLIBS@%$SOCKETLIBS%g
2450
 
s%@PTHREADLIB@%$PTHREADLIB%g
2451
 
s%@DB2LIB@%$DB2LIB%g
2452
 
s%@HAVE_STATVFS@%$HAVE_STATVFS%g
2453
 
s%@HAVE_C9X@%$HAVE_C9X%g
2454
 
s%@NEED_SOCKLEN_T_DEFINE@%$NEED_SOCKLEN_T_DEFINE%g
2455
 
s%@DEBIANDOC_HTML@%$DEBIANDOC_HTML%g
2456
 
s%@DEBIANDOC_TEXT@%$DEBIANDOC_TEXT%g
2457
 
s%@NSGMLS@%$NSGMLS%g
2458
 
s%@SGMLSPL@%$SGMLSPL%g
2459
 
s%@GETCONF@%$GETCONF%g
2460
 
s%@NUM_CPUS@%$NUM_CPUS%g
2461
 
s%@PROC_MULTIPLY@%$PROC_MULTIPLY%g
2462
 
s%@NUM_PROCS@%$NUM_PROCS%g
2463
 
s%@GLIBC_VER@%$GLIBC_VER%g
2464
 
s%@LIBSTDCPP_VER@%$LIBSTDCPP_VER%g
2465
 
s%@GCC3DEP@%$GCC3DEP%g
2466
 
 
2467
 
CEOF
2468
 
EOF
2469
 
 
2470
 
cat >> $CONFIG_STATUS <<\EOF
2471
 
 
2472
 
# Split the substitutions into bite-sized pieces for seds with
2473
 
# small command number limits, like on Digital OSF/1 and HP-UX.
2474
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2475
 
ac_file=1 # Number of current file.
2476
 
ac_beg=1 # First line for current file.
2477
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2478
 
ac_more_lines=:
2479
 
ac_sed_cmds=""
2480
 
while $ac_more_lines; do
2481
 
  if test $ac_beg -gt 1; then
2482
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2483
 
  else
2484
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2485
 
  fi
2486
 
  if test ! -s conftest.s$ac_file; then
2487
 
    ac_more_lines=false
2488
 
    rm -f conftest.s$ac_file
2489
 
  else
2490
 
    if test -z "$ac_sed_cmds"; then
2491
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
2492
 
    else
2493
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2494
 
    fi
2495
 
    ac_file=`expr $ac_file + 1`
2496
 
    ac_beg=$ac_end
2497
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2498
 
  fi
2499
 
done
2500
 
if test -z "$ac_sed_cmds"; then
2501
 
  ac_sed_cmds=cat
2502
 
fi
2503
 
EOF
2504
 
 
2505
 
cat >> $CONFIG_STATUS <<EOF
2506
 
 
2507
 
CONFIG_FILES=\${CONFIG_FILES-"environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"}
2508
 
EOF
2509
 
cat >> $CONFIG_STATUS <<\EOF
2510
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2511
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2512
 
  case "$ac_file" in
2513
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2514
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2515
 
  *) ac_file_in="${ac_file}.in" ;;
2516
 
  esac
2517
 
 
2518
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2519
 
 
2520
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
2521
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2522
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2523
 
    # The file is in a subdirectory.
2524
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2525
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2526
 
    # A "../" for each directory in $ac_dir_suffix.
2527
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2528
 
  else
2529
 
    ac_dir_suffix= ac_dots=
2530
 
  fi
2531
 
 
2532
 
  case "$ac_given_srcdir" in
2533
 
  .)  srcdir=.
2534
 
      if test -z "$ac_dots"; then top_srcdir=.
2535
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2536
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2537
 
  *) # Relative path.
2538
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2539
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2540
 
  esac
2541
 
 
2542
 
 
2543
 
  echo creating "$ac_file"
2544
 
  rm -f "$ac_file"
2545
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2546
 
  case "$ac_file" in
2547
 
  *Makefile*) ac_comsub="1i\\
2548
 
# $configure_input" ;;
2549
 
  *) ac_comsub= ;;
2550
 
  esac
2551
 
 
2552
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2553
 
  sed -e "$ac_comsub
2554
 
s%@configure_input@%$configure_input%g
2555
 
s%@srcdir@%$srcdir%g
2556
 
s%@top_srcdir@%$top_srcdir%g
2557
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2558
 
fi; done
2559
 
rm -f conftest.s*
2560
 
 
2561
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2562
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2563
 
#
2564
 
# ac_d sets the value in "#define NAME VALUE" lines.
2565
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2566
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2567
 
ac_dC='\3'
2568
 
ac_dD='%g'
2569
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2570
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2571
 
ac_uB='\([      ]\)%\1#\2define\3'
2572
 
ac_uC=' '
2573
 
ac_uD='\4%g'
2574
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2575
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2576
 
ac_eB='$%\1#\2define\3'
2577
 
ac_eC=' '
2578
 
ac_eD='%g'
2579
 
 
2580
 
if test "${CONFIG_HEADERS+set}" != set; then
2581
 
EOF
2582
 
cat >> $CONFIG_STATUS <<EOF
2583
 
  CONFIG_HEADERS="include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
2584
 
EOF
2585
 
cat >> $CONFIG_STATUS <<\EOF
2586
 
fi
2587
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2588
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2589
 
  case "$ac_file" in
2590
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2591
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2592
 
  *) ac_file_in="${ac_file}.in" ;;
2593
 
  esac
2594
 
 
2595
 
  echo creating $ac_file
2596
 
 
2597
 
  rm -f conftest.frag conftest.in conftest.out
2598
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2599
 
  cat $ac_file_inputs > conftest.in
2600
 
 
2601
 
EOF
2602
 
 
2603
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
2604
 
# the proper values into config.h.in to produce config.h.  And first:
2605
 
# Protect against being on the right side of a sed subst in config.status.
2606
 
# Protect against being in an unquoted here document in config.status.
2607
 
rm -f conftest.vals
2608
 
cat > conftest.hdr <<\EOF
2609
 
s/[\\&%]/\\&/g
2610
 
s%[\\$`]%\\&%g
2611
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2612
 
s%ac_d%ac_u%gp
2613
 
s%ac_u%ac_e%gp
2614
 
EOF
2615
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
2616
 
rm -f conftest.hdr
2617
 
 
2618
 
# This sed command replaces #undef with comments.  This is necessary, for
2619
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
2620
 
# on some systems where configure will not decide to define it.
2621
 
cat >> conftest.vals <<\EOF
2622
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2623
 
EOF
2624
 
 
2625
 
# Break up conftest.vals because some shells have a limit on
2626
 
# the size of here documents, and old seds have small limits too.
2627
 
 
2628
 
rm -f conftest.tail
2629
 
while :
2630
 
do
2631
 
  ac_lines=`grep -c . conftest.vals`
2632
 
  # grep -c gives empty output for an empty file on some AIX systems.
2633
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2634
 
  # Write a limited-size here document to conftest.frag.
2635
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2636
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2637
 
  echo 'CEOF
2638
 
  sed -f conftest.frag conftest.in > conftest.out
2639
 
  rm -f conftest.in
2640
 
  mv conftest.out conftest.in
2641
 
' >> $CONFIG_STATUS
2642
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2643
 
  rm -f conftest.vals
2644
 
  mv conftest.tail conftest.vals
2645
 
done
2646
 
rm -f conftest.vals
2647
 
 
2648
 
cat >> $CONFIG_STATUS <<\EOF
2649
 
  rm -f conftest.frag conftest.h
2650
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2651
 
  cat conftest.in >> conftest.h
2652
 
  rm -f conftest.in
2653
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2654
 
    echo "$ac_file is unchanged"
2655
 
    rm -f conftest.h
2656
 
  else
2657
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
2658
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2659
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2660
 
      # The file is in a subdirectory.
2661
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
2662
 
    fi
2663
 
    rm -f $ac_file
2664
 
    mv conftest.h $ac_file
2665
 
  fi
2666
 
fi; done
2667
 
 
2668
 
EOF
2669
 
cat >> $CONFIG_STATUS <<EOF
2670
 
 
2671
 
EOF
2672
 
cat >> $CONFIG_STATUS <<\EOF
2673
 
make -s dirs
2674
 
exit 0
2675
 
EOF
2676
 
chmod +x $CONFIG_STATUS
2677
 
rm -fr confdefs* $ac_clean_files
2678
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2679