configure 87.5 KB
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
#! /bin/sh
Per Cederqvist's avatar
Per Cederqvist committed
2

3
# From configure.in Revision: 1.42 
Per Cederqvist's avatar
Per Cederqvist committed
4

Per Cederqvist's avatar
Per Cederqvist committed
5
# Guess values for system-dependent variables and create Makefiles.
Per Cederqvist's avatar
Per Cederqvist committed
6
7
# Generated automatically using autoconf version 2.12 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Per Cederqvist's avatar
Per Cederqvist committed
8
9
10
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
Per Cederqvist's avatar
Per Cederqvist committed
11

Per Cederqvist's avatar
Per Cederqvist committed
12
13
14
15
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
Per Cederqvist's avatar
Per Cederqvist committed
16
17
ac_help="$ac_help
  --with-gnu-malloc       use GNU malloc"
Per Cederqvist's avatar
Per Cederqvist committed
18
19
ac_help="$ac_help
  --with-purify           link with Purify"
Per Cederqvist's avatar
Per Cederqvist committed
20
ac_default_prefix=/usr/lyskom
Per Cederqvist's avatar
Per Cederqvist committed
21
22
23
24
25

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
Per Cederqvist's avatar
Per Cederqvist committed
26
27
cache_file=./config.cache
exec_prefix=NONE
Per Cederqvist's avatar
Per Cederqvist committed
28
29
30
host=NONE
no_create=
nonopt=NONE
Per Cederqvist's avatar
Per Cederqvist committed
31
32
33
34
35
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
Per Cederqvist's avatar
Per Cederqvist committed
36
silent=
Per Cederqvist's avatar
Per Cederqvist committed
37
site=
Per Cederqvist's avatar
Per Cederqvist committed
38
39
40
srcdir=
target=NONE
verbose=
Per Cederqvist's avatar
Per Cederqvist committed
41
42
x_includes=NONE
x_libraries=NONE
Per Cederqvist's avatar
Per Cederqvist committed
43
44
45
46
47
48
49
50
51
52
53
54
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
Per Cederqvist's avatar
Per Cederqvist committed
55
56
57

# Initialize some other variables.
subdirs=
Per Cederqvist's avatar
Per Cederqvist committed
58
MFLAGS= MAKEFLAGS=
Per Cederqvist's avatar
Per Cederqvist committed
59
60
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
Per Cederqvist's avatar
Per Cederqvist committed
61
62
63

ac_prev=
for ac_option
Per Cederqvist's avatar
Per Cederqvist committed
64
do
Per Cederqvist's avatar
Per Cederqvist committed
65
66
67
68
69
70

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
Per Cederqvist's avatar
Per Cederqvist committed
71
  fi
Per Cederqvist's avatar
Per Cederqvist committed
72
73
74
75
76
77

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

Per Cederqvist's avatar
Per Cederqvist committed
78
79
  # Accept the important Cygnus configure options, so we can diagnose typos.

Per Cederqvist's avatar
Per Cederqvist committed
80
81
  case "$ac_option" in

Per Cederqvist's avatar
Per Cederqvist committed
82
83
84
85
86
87
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
Per Cederqvist's avatar
Per Cederqvist committed
88
    ac_prev=build ;;
Per Cederqvist's avatar
Per Cederqvist committed
89
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Per Cederqvist's avatar
Per Cederqvist committed
90
91
    build="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
92
93
94
95
96
97
98
  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
99
100
101
102
103
104
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
105
106
  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Per Cederqvist's avatar
Per Cederqvist committed
107
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
108
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
109
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
110
111
112
113
114
115
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Per Cederqvist's avatar
Per Cederqvist committed
116
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
117
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
118
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
Per Cederqvist's avatar
Per Cederqvist committed
137
138
    # Obsolete; use --with-gas.
    with_gas=yes ;;
Per Cederqvist's avatar
Per Cederqvist committed
139
140

  -help | --help | --hel | --he)
Per Cederqvist's avatar
Per Cederqvist committed
141
142
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
Per Cederqvist's avatar
Per Cederqvist committed
143
    cat << EOF
Per Cederqvist's avatar
Per Cederqvist committed
144
145
146
147
148
149
150
151
152
153
154
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
Per Cederqvist's avatar
Per Cederqvist committed
155
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
Per Cederqvist's avatar
Per Cederqvist committed
156
                          [same as prefix]
Per Cederqvist's avatar
Per Cederqvist committed
157
158
159
160
161
162
163
164
165
166
167
168
169
170
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
Per Cederqvist's avatar
Per Cederqvist committed
171
172
173
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
Per Cederqvist's avatar
Per Cederqvist committed
174
175
176
177
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Per Cederqvist's avatar
Per Cederqvist committed
178
179
180
181
182
183
184
185
186
187
188
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
Per Cederqvist's avatar
Per Cederqvist committed
189
EOF
Per Cederqvist's avatar
Per Cederqvist committed
190
191
192
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
Per Cederqvist's avatar
Per Cederqvist committed
193
194
195
196
197
198
199
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
238
  -nfp | --nfp | --nf)
Per Cederqvist's avatar
Per Cederqvist committed
239
240
    # Obsolete; use --without-fp.
    with_fp=no ;;
Per Cederqvist's avatar
Per Cederqvist committed
241
242
243
244
245

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

Per Cederqvist's avatar
Per Cederqvist committed
246
247
248
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;
Per Cederqvist's avatar
Per Cederqvist committed
249

Per Cederqvist's avatar
Per Cederqvist committed
250
251
252
253
254
255
256
257
258
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

Per Cederqvist's avatar
Per Cederqvist committed
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
316
317
318
319
320
  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
321
322
323
324
325
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
326
327
328
329
330
331
332
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
333
334
335
336
337
338
339
340
341
  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
Per Cederqvist's avatar
Per Cederqvist committed
342
    echo "configure generated by autoconf version 2.12"
Per Cederqvist's avatar
Per Cederqvist committed
343
344
345
346
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Per Cederqvist's avatar
Per Cederqvist committed
347
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
348
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
349
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
350
351
352
353
354
355
356
357
358
359
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Per Cederqvist's avatar
Per Cederqvist committed
360
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
361
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
362
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
363
364
365
366
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

Per Cederqvist's avatar
Per Cederqvist committed
367
368
369
  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;
Per Cederqvist's avatar
Per Cederqvist committed
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
385
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
386
387
    ;;

Per Cederqvist's avatar
Per Cederqvist committed
388
  *)
Per Cederqvist's avatar
Per Cederqvist committed
389
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
390
      echo "configure: warning: $ac_option: invalid host type" 1>&2
Per Cederqvist's avatar
Per Cederqvist committed
391
392
    fi
    if test "x$nonopt" != xNONE; then
Per Cederqvist's avatar
Per Cederqvist committed
393
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
394
395
396
397
398
    fi
    nonopt="$ac_option"
    ;;

  esac
Per Cederqvist's avatar
Per Cederqvist committed
399
400
done

Per Cederqvist's avatar
Per Cederqvist committed
401
if test -n "$ac_prev"; then
Per Cederqvist's avatar
Per Cederqvist committed
402
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
403
404
fi

Per Cederqvist's avatar
Per Cederqvist committed
405
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
Per Cederqvist's avatar
Per Cederqvist committed
406

Per Cederqvist's avatar
Per Cederqvist committed
407
# File descriptor usage:
Per Cederqvist's avatar
Per Cederqvist committed
408
# 0 standard input
Per Cederqvist's avatar
Per Cederqvist committed
409
410
# 1 file creation
# 2 errors and warnings
Per Cederqvist's avatar
Per Cederqvist committed
411
412
413
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
Per Cederqvist's avatar
Per Cederqvist committed
414
415
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
416
  exec 6>/dev/null
Per Cederqvist's avatar
Per Cederqvist committed
417
else
Per Cederqvist's avatar
Per Cederqvist committed
418
  exec 6>&1
Per Cederqvist's avatar
Per Cederqvist committed
419
420
421
422
423
424
425
426
427
428
429
430
431
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
Per Cederqvist's avatar
Per Cederqvist committed
432
433
434
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
Per Cederqvist's avatar
Per Cederqvist committed
435
436
437
438
439
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Per Cederqvist's avatar
Per Cederqvist committed
440
441
  esac
done
Per Cederqvist's avatar
Per Cederqvist committed
442
443

# NLS nuisances.
Per Cederqvist's avatar
Per Cederqvist committed
444
445
446
447
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
Per Cederqvist's avatar
Per Cederqvist committed
448
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
Per Cederqvist's avatar
Per Cederqvist committed
449
450
451
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
Per Cederqvist's avatar
Per Cederqvist committed
452

Per Cederqvist's avatar
Per Cederqvist committed
453
454
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
Per Cederqvist's avatar
Per Cederqvist committed
455
456
457
458
459
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
Per Cederqvist's avatar
Per Cederqvist committed
460
ac_unique_file=src/server/lyskomd.h
Per Cederqvist's avatar
Per Cederqvist committed
461
462
463

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
Per Cederqvist's avatar
Per Cederqvist committed
464
  ac_srcdir_defaulted=yes
Per Cederqvist's avatar
Per Cederqvist committed
465
  # Try the directory containing this script, then its parent.
Per Cederqvist's avatar
Per Cederqvist committed
466
467
468
469
470
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
Per Cederqvist's avatar
Per Cederqvist committed
471
472
    srcdir=..
  fi
Per Cederqvist's avatar
Per Cederqvist committed
473
474
else
  ac_srcdir_defaulted=no
Per Cederqvist's avatar
Per Cederqvist committed
475
fi
Per Cederqvist's avatar
Per Cederqvist committed
476
if test ! -r $srcdir/$ac_unique_file; then
Per Cederqvist's avatar
Per Cederqvist committed
477
478
479
480
481
482
483
484
485
486
487
488
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
Per Cederqvist's avatar
Per Cederqvist committed
489
  else
Per Cederqvist's avatar
Per Cederqvist committed
490
491
492
493
494
495
496
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
Per Cederqvist's avatar
Per Cederqvist committed
497
  fi
Per Cederqvist's avatar
Per Cederqvist committed
498
499
500
501
502
503
504
505
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
Per Cederqvist's avatar
Per Cederqvist committed
506
fi
Per Cederqvist's avatar
Per Cederqvist committed
507

Per Cederqvist's avatar
Per Cederqvist committed
508
509
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Per Cederqvist's avatar
Per Cederqvist committed
510
511
512
513
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
Per Cederqvist's avatar
Per Cederqvist committed
514
515
516
517
518
519
520
521
522
523
524
525

if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi
Per Cederqvist's avatar
Per Cederqvist committed
526
527


Per Cederqvist's avatar
Per Cederqvist committed
528
# Check whether --with-gnu-malloc or --without-gnu-malloc was given.
Per Cederqvist's avatar
Per Cederqvist committed
529
530
if test "${with_gnu_malloc+set}" = set; then
  withval="$with_gnu_malloc"
Per Cederqvist's avatar
Per Cederqvist committed
531
532
533
534
535
  use_gnu_malloc=$withval
else
  use_gnu_malloc=no
fi

Per Cederqvist's avatar
Per Cederqvist committed
536
537
538
539
540
541
542
543
# Check whether --with-purify or --without-purify was given.
if test "${with_purify+set}" = set; then
  withval="$with_purify"
  use_purify=$withval
else
  use_purify=no
fi

Per Cederqvist's avatar
Per Cederqvist committed
544

Per Cederqvist's avatar
Per Cederqvist committed
545
546
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
Per Cederqvist's avatar
Per Cederqvist committed
547
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
548
echo "configure:549: checking for $ac_word" >&5
Per Cederqvist's avatar
Per Cederqvist committed
549
550
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
551
552
553
554
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
Per Cederqvist's avatar
Per Cederqvist committed
555
556
557
558
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
Per Cederqvist's avatar
Per Cederqvist committed
559
      ac_cv_prog_CC="gcc"
Per Cederqvist's avatar
Per Cederqvist committed
560
561
562
      break
    fi
  done
Per Cederqvist's avatar
Per Cederqvist committed
563
  IFS="$ac_save_ifs"
Per Cederqvist's avatar
Per Cederqvist committed
564
565
566
567
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
Per Cederqvist's avatar
Per Cederqvist committed
568
  echo "$ac_t""$CC" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
569
else
Per Cederqvist's avatar
Per Cederqvist committed
570
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
571
572
fi

Per Cederqvist's avatar
Per Cederqvist committed
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:578: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  ac_prog_rejected=no
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:626: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 636 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:660: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
Per Cederqvist's avatar
Per Cederqvist committed
662

Per Cederqvist's avatar
Per Cederqvist committed
663
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
664
echo "configure:665: checking whether we are using GNU C" >&5
Per Cederqvist's avatar
Per Cederqvist committed
665
666
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
667
668
else
  cat > conftest.c <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
669
#ifdef __GNUC__
Per Cederqvist's avatar
Per Cederqvist committed
670
  yes;
Per Cederqvist's avatar
Per Cederqvist committed
671
672
#endif
EOF
Per Cederqvist's avatar
Per Cederqvist committed
673
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Per Cederqvist's avatar
Per Cederqvist committed
674
675
676
677
678
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi
Per Cederqvist's avatar
Per Cederqvist committed
679

Per Cederqvist's avatar
Per Cederqvist committed
680
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
681

Per Cederqvist's avatar
Per Cederqvist committed
682
683
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
Per Cederqvist's avatar
Per Cederqvist committed
684
685
686
687
688
689
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:689: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Per Cederqvist's avatar
Per Cederqvist committed
690
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
691
692
693
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Per Cederqvist's avatar
Per Cederqvist committed
694
  ac_cv_prog_cc_g=yes
Per Cederqvist's avatar
Per Cederqvist committed
695
else
Per Cederqvist's avatar
Per Cederqvist committed
696
  ac_cv_prog_cc_g=no
Per Cederqvist's avatar
Per Cederqvist committed
697
698
699
fi
rm -f conftest*

Per Cederqvist's avatar
Per Cederqvist committed
700
fi
Per Cederqvist's avatar
Per Cederqvist committed
701

Per Cederqvist's avatar
Per Cederqvist committed
702
703
704
705
706
707
708
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
Per Cederqvist's avatar
Per Cederqvist committed
709
710
711
712
713
714
715
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi


Per Cederqvist's avatar
Per Cederqvist committed
716
717
718
719




Per Cederqvist's avatar
Per Cederqvist committed
720
721

EXTRAARFLAGS=
Per Cederqvist's avatar
Per Cederqvist committed
722
INCLUDE_CURRENT=-I.
Per Cederqvist's avatar
Per Cederqvist committed
723
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
724
echo "configure:725: checking how to run the C preprocessor" >&5
Per Cederqvist's avatar
Per Cederqvist committed
725
726
727
728
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
Per Cederqvist's avatar
Per Cederqvist committed
729
if test -z "$CPP"; then
Per Cederqvist's avatar
Per Cederqvist committed
730
731
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
732
733
734
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
Per Cederqvist's avatar
Per Cederqvist committed
735
  CPP="${CC-cc} -E"
Per Cederqvist's avatar
Per Cederqvist committed
736
737
738
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
739
#line 740 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
740
#include "confdefs.h"
Per Cederqvist's avatar
Per Cederqvist committed
741
#include <assert.h>
Per Cederqvist's avatar
Per Cederqvist committed
742
743
Syntax Error
EOF
Per Cederqvist's avatar
Per Cederqvist committed
744
745
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Per Cederqvist's avatar
Per Cederqvist committed
746
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
747
748
749
if test -z "$ac_err"; then
  :
else
Per Cederqvist's avatar
Per Cederqvist committed
750
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
751
752
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
753
754
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
Per Cederqvist's avatar
Per Cederqvist committed
755
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
756
#line 757 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
757
#include "confdefs.h"
Per Cederqvist's avatar
Per Cederqvist committed
758
#include <assert.h>
Per Cederqvist's avatar
Per Cederqvist committed
759
760
Syntax Error
EOF
Per Cederqvist's avatar
Per Cederqvist committed
761
762
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Per Cederqvist's avatar
Per Cederqvist committed
763
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
764
if test -z "$ac_err"; then
Per Cederqvist's avatar
Per Cederqvist committed
765
766
  :
else
Per Cederqvist's avatar
Per Cederqvist committed
767
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
768
769
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
770
771
772
773
774
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
Per Cederqvist's avatar
Per Cederqvist committed
775
rm -f conftest*
Per Cederqvist's avatar
Per Cederqvist committed
776
777
  ac_cv_prog_CPP="$CPP"
fi
Per Cederqvist's avatar
Per Cederqvist committed
778
779
780
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
Per Cederqvist's avatar
Per Cederqvist committed
781
fi
Per Cederqvist's avatar
Per Cederqvist committed
782
echo "$ac_t""$CPP" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
783

Per Cederqvist's avatar
Per Cederqvist committed
784
echo $ac_n "checking for AIX""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
785
echo "configure:786: checking for AIX" >&5
Per Cederqvist's avatar
Per Cederqvist committed
786
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
787
#line 788 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
788
789
790
791
792
793
#include "confdefs.h"
#ifdef _AIX
  yes
#endif

EOF
Per Cederqvist's avatar
Per Cederqvist committed
794
795
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
Per Cederqvist's avatar
Per Cederqvist committed
796
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
797
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
Per Cederqvist's avatar
Per Cederqvist committed
798
799
#define _ALL_SOURCE 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
800

Per Cederqvist's avatar
Per Cederqvist committed
801
802
else
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
803
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
804
805
806
807
fi
rm -f conftest*


Per Cederqvist's avatar
Per Cederqvist committed
808
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
809
echo "configure:810: checking for POSIXized ISC" >&5
Per Cederqvist's avatar
Per Cederqvist committed
810
811
812
if test -d /etc/conf/kconfig.d &&
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
Per Cederqvist's avatar
Per Cederqvist committed
813
  echo "$ac_t""yes" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
814
815
816
817
  ISC=yes # If later tests want to check for ISC.
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
818

Per Cederqvist's avatar
Per Cederqvist committed
819
  if test "$GCC" = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
820
821
822
823
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
Per Cederqvist's avatar
Per Cederqvist committed
824
else
Per Cederqvist's avatar
Per Cederqvist committed
825
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
826
  ISC=
Per Cederqvist's avatar
Per Cederqvist committed
827
828
fi

Per Cederqvist's avatar
Per Cederqvist committed
829
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
Per Cederqvist's avatar
Per Cederqvist committed
830
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
831
echo "configure:832: checking for minix/config.h" >&5
Per Cederqvist's avatar
Per Cederqvist committed
832
833
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
834
835
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
836
#line 837 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
837
838
839
#include "confdefs.h"
#include <minix/config.h>
EOF
Per Cederqvist's avatar
Per Cederqvist committed
840
841
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Per Cederqvist's avatar
Per Cederqvist committed
842
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
843
if test -z "$ac_err"; then
Per Cederqvist's avatar
Per Cederqvist committed
844
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
845
846
847
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
848
849
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
850
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
851
  eval "ac_cv_header_$ac_safe=no"
Per Cederqvist's avatar
Per Cederqvist committed
852
853
fi
rm -f conftest*
Per Cederqvist's avatar
Per Cederqvist committed
854
855
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
Per Cederqvist's avatar
Per Cederqvist committed
856
  echo "$ac_t""yes" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
857
  MINIX=yes
Per Cederqvist's avatar
Per Cederqvist committed
858
else
Per Cederqvist's avatar
Per Cederqvist committed
859
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
860
MINIX=
Per Cederqvist's avatar
Per Cederqvist committed
861
862
fi

Per Cederqvist's avatar
Per Cederqvist committed
863
864
865
866
if test "$MINIX" = yes; then
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
867

Per Cederqvist's avatar
Per Cederqvist committed
868
869
870
  cat >> confdefs.h <<\EOF
#define _POSIX_1_SOURCE 2
EOF
Per Cederqvist's avatar
Per Cederqvist committed
871

Per Cederqvist's avatar
Per Cederqvist committed
872
873
  cat >> confdefs.h <<\EOF
#define _MINIX 1
Per Cederqvist's avatar
Per Cederqvist committed
874
875
876
877
EOF

fi

Per Cederqvist's avatar
Per Cederqvist committed
878
if test -n "$GCC"; then
Per Cederqvist's avatar
Per Cederqvist committed
879
	CFLAGS="$CFLAGS -Wall"
Per Cederqvist's avatar
Per Cederqvist committed
880
881
882
883
884
885
	 cat >> confdefs.h <<\EOF
#define _GNU_SOURCE 1
EOF

	kom_safe=`echo "kom_cv_compiler_${CC}_accepts_-pipe" | tr './=\055' '____'`
echo $ac_n "checking whether ${CC} accepts -pipe""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
886
echo "configure:887: checking whether ${CC} accepts -pipe" >&5
Per Cederqvist's avatar
Per Cederqvist committed
887
888
if eval "test \"`echo '$''{'$kom_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
889
890
else
  kom_oldflags=$CFLAGS
Per Cederqvist's avatar
Per Cederqvist committed
891
CFLAGS="$CFLAGS -pipe"
Per Cederqvist's avatar
Per Cederqvist committed
892
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
893
#line 894 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
894
895
#include "confdefs.h"

Per Cederqvist's avatar
Per Cederqvist committed
896
int main() {
Per Cederqvist's avatar
Per Cederqvist committed
897
898

; return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
899
EOF
Per Cederqvist's avatar
Per Cederqvist committed
900
if { (eval echo configure:901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
Per Cederqvist's avatar
Per Cederqvist committed
901
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
902
  eval "$kom_safe=yes"
Per Cederqvist's avatar
Per Cederqvist committed
903
else
Per Cederqvist's avatar
Per Cederqvist committed
904
905
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
906
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
907
  eval "$kom_safe=no"
Per Cederqvist's avatar
Per Cederqvist committed
908
909
fi
rm -f conftest*
Per Cederqvist's avatar
Per Cederqvist committed
910
CFLAGS=$kom_oldflags
Per Cederqvist's avatar
Per Cederqvist committed
911
fi
Per Cederqvist's avatar
Per Cederqvist committed
912
echo "$ac_t""`eval echo '$'$kom_safe`" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
913
914
915
916
917
if test `eval echo '$'$kom_safe` = yes; then
  CFLAGS="$CFLAGS -pipe"
fi 
	DEPENDFLAG=-MM
else
Per Cederqvist's avatar
Per Cederqvist committed
918
919
920
	case "$CC" in
		*vcc) DEPENDFLAG=-Em
			INCLUDE_CURRENT='-I`pwd`';;
Per Cederqvist's avatar
Per Cederqvist committed
921
922
923
924
925
926
927
928
929
		*) if $CC -flags > conftestccflags 2>/dev/null \
			&& grep '^-xM1.*depend' conftestccflags >/dev/null 2>&1
		   then
			# SparcWorks
			DEPENDFLAG=-xM1
		   else
			# Traditional
			DEPENDFLAG=-M
		   fi;;
Per Cederqvist's avatar
Per Cederqvist committed
930
931
	esac
fi
Per Cederqvist's avatar
Per Cederqvist committed
932
echo $ac_n "checking flag to get dependencies""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
933
echo "configure:934: checking flag to get dependencies" >&5
Per Cederqvist's avatar
Per Cederqvist committed
934
echo "$ac_t""$DEPENDFLAG" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
935

Per Cederqvist's avatar
Per Cederqvist committed
936
937
938
939
if test "$use_purify" = "yes"
then
	PURIFY=purify
fi
Per Cederqvist's avatar
Per Cederqvist committed
940
941
942
# Do this test early since it may define _POSIX_SOURCE, which may
# affect future tests.
echo $ac_n "checking if <signal.h> defines struct sigaction""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
943
echo "configure:944: checking if <signal.h> defines struct sigaction" >&5
Per Cederqvist's avatar
Per Cederqvist committed
944
945
946
947
948
949
950
951
952
953
954
if eval "test \"`echo '$''{'kom_cv_header_posix_source_needed'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # This default may be overridden below.
	kom_cv_header_posix_source_needed=no
fi

if eval "test \"`echo '$''{'kom_cv_struct_sigaction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
955
#line 956 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
956
957
#include "confdefs.h"
#include <signal.h>
Per Cederqvist's avatar
Per Cederqvist committed
958
int main() {
Per Cederqvist's avatar
Per Cederqvist committed
959
960
961
struct sigaction foosig;
; return 0; }
EOF
Per Cederqvist's avatar
Per Cederqvist committed
962
if { (eval echo configure:963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Per Cederqvist's avatar
Per Cederqvist committed
963
964
965
  rm -rf conftest*
  kom_cv_struct_sigaction=yes
else
Per Cederqvist's avatar
Per Cederqvist committed
966
967
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
968
969
970
971
972
973
  rm -rf conftest*
  kom_cv_struct_sigaction=no
fi
rm -f conftest*
if test $kom_cv_struct_sigaction = no ; then
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
974
#line 975 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
975
976
977
#include "confdefs.h"
#define _POSIX_SOURCE
  #include <signal.h>
Per Cederqvist's avatar
Per Cederqvist committed
978
int main() {
Per Cederqvist's avatar
Per Cederqvist committed
979
980
981
struct sigaction barsig;
; return 0; }
EOF
Per Cederqvist's avatar
Per Cederqvist committed
982
if { (eval echo configure:983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Per Cederqvist's avatar
Per Cederqvist committed
983
984
985
986
  rm -rf conftest*
  kom_cv_struct_sigaction=yes
  kom_cv_header_posix_source_needed=yes
else
Per Cederqvist's avatar
Per Cederqvist committed
987
988
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
  rm -rf conftest*
  kom_cv_struct_sigaction=no
fi
rm -f conftest*
fi
fi

if test $kom_cv_header_posix_source_needed = yes ; then
  echo "$ac_t""yes, but _POSIX_SOURCE was needed" 1>&6
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

else
  echo "$ac_t""$kom_cv_struct_sigaction" 1>&6
fi
if test $kom_cv_struct_sigaction = yes ; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_SIGACTION 1
EOF

fi

Per Cederqvist's avatar
Per Cederqvist committed
1012
echo $ac_n "checking for working const""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1013
echo "configure:1014: checking for working const" >&5
Per Cederqvist's avatar
Per Cederqvist committed
1014
1015
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1016
1017
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1018
#line 1019 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1019
1020
#include "confdefs.h"

Per Cederqvist's avatar
Per Cederqvist committed
1021
int main() {
Per Cederqvist's avatar
Per Cederqvist committed
1022
1023

/* Ultrix mips cc rejects this.  */
Per Cederqvist's avatar
Per Cederqvist committed
1024
1025
1026
1027
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
Per Cederqvist's avatar
Per Cederqvist committed
1028
1029
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
Per Cederqvist's avatar
Per Cederqvist committed
1030
static struct point const zero = {0,0};
Per Cederqvist's avatar
Per Cederqvist committed
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
Per Cederqvist's avatar
Per Cederqvist committed
1047
  int x[] = {25, 17};
Per Cederqvist's avatar
Per Cederqvist committed
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
Per Cederqvist's avatar
Per Cederqvist committed
1063
}
Per Cederqvist's avatar
Per Cederqvist committed
1064

Per Cederqvist's avatar
Per Cederqvist committed
1065
; return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
1066
EOF
Per Cederqvist's avatar
Per Cederqvist committed
1067
if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Per Cederqvist's avatar
Per Cederqvist committed
1068
1069
  rm -rf conftest*
  ac_cv_c_const=yes
Per Cederqvist's avatar
Per Cederqvist committed
1070
else
Per Cederqvist's avatar
Per Cederqvist committed
1071
1072
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
1073
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1074
  ac_cv_c_const=no
Per Cederqvist's avatar
Per Cederqvist committed
1075
1076
fi
rm -f conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1077
fi
Per Cederqvist's avatar
Per Cederqvist committed
1078

Per Cederqvist's avatar
Per Cederqvist committed
1079
echo "$ac_t""$ac_cv_c_const" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1080
1081
1082
1083
1084
1085
1086
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi

Per Cederqvist's avatar
Per Cederqvist committed
1087
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1088
echo "configure:1089: checking for ANSI C header files" >&5
Per Cederqvist's avatar
Per Cederqvist committed
1089
1090
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1091
1092
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1093
#line 1094 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1094
1095
1096
1097
1098
1099
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
Per Cederqvist's avatar
Per Cederqvist committed
1100
1101
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Per Cederqvist's avatar
Per Cederqvist committed
1102
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
1103
if test -z "$ac_err"; then
Per Cederqvist's avatar
Per Cederqvist committed
1104
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1105
1106
1107
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
1108
1109
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
Per Cederqvist's avatar
Per Cederqvist committed
1110
1111
1112
1113
1114
1115
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
1116
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Per Cederqvist's avatar
Per Cederqvist committed
1117
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1118
#line 1119 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1136
#line 1137 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1137
1138
1139
1140
1141
1142
1143
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
Per Cederqvist's avatar
Per Cederqvist committed
1144
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1145
1146
1147
1148
1149
1150
1151
1152
1153
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
1154
  :
Per Cederqvist's avatar
Per Cederqvist committed
1155
else
Per Cederqvist's avatar
Per Cederqvist committed
1156
1157
  cat > conftest.$ac_ext <<EOF
#line 1158 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1158
1159
1160
1161
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Per Cederqvist's avatar
Per Cederqvist committed
1162
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Per Cederqvist's avatar
Per Cederqvist committed
1163
1164
1165
1166
1167
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
Per Cederqvist's avatar
Per Cederqvist committed
1168
1169
if { (eval echo configure:1169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
Per Cederqvist's avatar
Per Cederqvist committed
1170
1171
  :
else
Per Cederqvist's avatar
Per Cederqvist committed
1172
1173
1174
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1175
  ac_cv_header_stdc=no
Per Cederqvist's avatar
Per Cederqvist committed
1176
fi
Per Cederqvist's avatar
Per Cederqvist committed
1177
rm -fr conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1178
1179
fi

Per Cederqvist's avatar
Per Cederqvist committed
1180
fi
Per Cederqvist's avatar
Per Cederqvist committed
1181
fi
Per Cederqvist's avatar
Per Cederqvist committed
1182

Per Cederqvist's avatar
Per Cederqvist committed
1183
echo "$ac_t""$ac_cv_header_stdc" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1184
1185
1186
1187
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
1188
1189
1190

fi

Per Cederqvist's avatar
Per Cederqvist committed
1191
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1192
echo "configure:1193: checking for pid_t" >&5
Per Cederqvist's avatar
Per Cederqvist committed
1193
1194
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1195
1196
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1197
#line 1198 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1198
1199
1200
1201
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
Per Cederqvist's avatar
Per Cederqvist committed
1202
#include <stddef.h>
Per Cederqvist's avatar
Per Cederqvist committed
1203
1204
1205
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Per Cederqvist's avatar
Per Cederqvist committed
1206
  egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Per Cederqvist's avatar
Per Cederqvist committed
1207
1208
1209
1210
1211
1212
1213
1214
1215
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

fi
Per Cederqvist's avatar
Per Cederqvist committed
1216
echo "$ac_t""$ac_cv_type_pid_t" 1>&6