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

Per Cederqvist's avatar
Per Cederqvist committed
3
# From configure.in Revision: 1.36 
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
# Generated automatically using autoconf version 2.7 
Per Cederqvist's avatar
Per Cederqvist committed
7
8
9
10
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
#
# 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
ac_default_prefix=/usr/lyskom
Per Cederqvist's avatar
Per Cederqvist committed
19
20
21
22
23

# 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
24
25
cache_file=./config.cache
exec_prefix=NONE
Per Cederqvist's avatar
Per Cederqvist committed
26
27
28
host=NONE
no_create=
nonopt=NONE
Per Cederqvist's avatar
Per Cederqvist committed
29
30
31
32
33
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
Per Cederqvist's avatar
Per Cederqvist committed
34
silent=
Per Cederqvist's avatar
Per Cederqvist committed
35
site=
Per Cederqvist's avatar
Per Cederqvist committed
36
37
38
srcdir=
target=NONE
verbose=
Per Cederqvist's avatar
Per Cederqvist committed
39
40
x_includes=NONE
x_libraries=NONE
Per Cederqvist's avatar
Per Cederqvist committed
41
42
43
44
45
46
47
48
49
50
51
52
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
53
54
55

# Initialize some other variables.
subdirs=
Per Cederqvist's avatar
Per Cederqvist committed
56
MFLAGS= MAKEFLAGS=
Per Cederqvist's avatar
Per Cederqvist committed
57
58
59

ac_prev=
for ac_option
Per Cederqvist's avatar
Per Cederqvist committed
60
do
Per Cederqvist's avatar
Per Cederqvist committed
61
62
63
64
65
66

  # 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
67
  fi
Per Cederqvist's avatar
Per Cederqvist committed
68
69
70
71
72
73

  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
74
75
  # Accept the important Cygnus configure options, so we can diagnose typos.

Per Cederqvist's avatar
Per Cederqvist committed
76
77
  case "$ac_option" in

Per Cederqvist's avatar
Per Cederqvist committed
78
79
80
81
82
83
  -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
84
    ac_prev=build ;;
Per Cederqvist's avatar
Per Cederqvist committed
85
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Per Cederqvist's avatar
Per Cederqvist committed
86
87
    build="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
88
89
90
91
92
93
94
  -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
95
96
97
98
99
100
  -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
101
102
  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Per Cederqvist's avatar
Per Cederqvist committed
103
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
104
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
105
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
106
107
108
109
110
111
    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
112
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
113
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
114
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
    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
133
134
    # Obsolete; use --with-gas.
    with_gas=yes ;;
Per Cederqvist's avatar
Per Cederqvist committed
135
136

  -help | --help | --hel | --he)
Per Cederqvist's avatar
Per Cederqvist committed
137
138
    # 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
139
    cat << EOF
Per Cederqvist's avatar
Per Cederqvist committed
140
141
142
143
144
145
146
147
148
149
150
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
151
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
Per Cederqvist's avatar
Per Cederqvist committed
152
                          [same as prefix]
Per Cederqvist's avatar
Per Cederqvist committed
153
154
155
156
157
158
159
160
161
162
163
164
165
166
  --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
167
168
169
  --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
170
171
172
173
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Per Cederqvist's avatar
Per Cederqvist committed
174
175
176
177
178
179
180
181
182
183
184
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
185
EOF
Per Cederqvist's avatar
Per Cederqvist committed
186
187
188
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
Per Cederqvist's avatar
Per Cederqvist committed
189
190
191
192
193
194
195
    exit 0 ;;

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

Per Cederqvist's avatar
Per Cederqvist committed
196
197
198
199
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
  -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
234
  -nfp | --nfp | --nf)
Per Cederqvist's avatar
Per Cederqvist committed
235
236
    # Obsolete; use --without-fp.
    with_fp=no ;;
Per Cederqvist's avatar
Per Cederqvist committed
237
238
239
240
241

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

Per Cederqvist's avatar
Per Cederqvist committed
242
243
244
  -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
245

Per Cederqvist's avatar
Per Cederqvist committed
246
247
248
249
250
251
252
253
254
  -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
255
256
257
258
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
  -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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
  -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
312
313
314
315
316
  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

Per Cederqvist's avatar
Per Cederqvist committed
317
318
319
320
321
  -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
322
323
324
325
326
327
328
  -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
329
330
331
332
333
334
335
336
337
  -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
338
    echo "configure generated by autoconf version 2.7"
Per Cederqvist's avatar
Per Cederqvist committed
339
340
341
342
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Per Cederqvist's avatar
Per Cederqvist committed
343
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
344
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
345
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
346
347
348
349
350
351
352
353
354
355
    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
356
    # Reject names that are not valid shell variable names.
Per Cederqvist's avatar
Per Cederqvist committed
357
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
358
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
359
360
361
362
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

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

  -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
381
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Per Cederqvist's avatar
Per Cederqvist committed
382
383
    ;;

Per Cederqvist's avatar
Per Cederqvist committed
384
  *)
Per Cederqvist's avatar
Per Cederqvist committed
385
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
Per Cederqvist's avatar
Per Cederqvist committed
386
      echo "configure: warning: $ac_option: invalid host type" 1>&2
Per Cederqvist's avatar
Per Cederqvist committed
387
388
    fi
    if test "x$nonopt" != xNONE; then
Per Cederqvist's avatar
Per Cederqvist committed
389
      { 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
390
391
392
393
394
    fi
    nonopt="$ac_option"
    ;;

  esac
Per Cederqvist's avatar
Per Cederqvist committed
395
396
done

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

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

Per Cederqvist's avatar
Per Cederqvist committed
403
# File descriptor usage:
Per Cederqvist's avatar
Per Cederqvist committed
404
# 0 standard input
Per Cederqvist's avatar
Per Cederqvist committed
405
406
# 1 file creation
# 2 errors and warnings
Per Cederqvist's avatar
Per Cederqvist committed
407
408
409
# 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
410
411
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
412
  exec 6>/dev/null
Per Cederqvist's avatar
Per Cederqvist committed
413
else
Per Cederqvist's avatar
Per Cederqvist committed
414
  exec 6>&1
Per Cederqvist's avatar
Per Cederqvist committed
415
416
417
418
419
420
421
422
423
424
425
426
427
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
428
429
430
  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
431
432
433
434
435
  -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
436
437
  esac
done
Per Cederqvist's avatar
Per Cederqvist committed
438
439

# NLS nuisances.
Per Cederqvist's avatar
Per Cederqvist committed
440
# Only set LANG and LC_ALL to C if already set.
Per Cederqvist's avatar
Per Cederqvist committed
441
442
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
Per Cederqvist's avatar
Per Cederqvist committed
443
444
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
Per Cederqvist's avatar
Per Cederqvist committed
445

Per Cederqvist's avatar
Per Cederqvist committed
446
447
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
Per Cederqvist's avatar
Per Cederqvist committed
448
449
450
451
452
# 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
453
ac_unique_file=src/server/lyskomd.h
Per Cederqvist's avatar
Per Cederqvist committed
454
455
456

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
Per Cederqvist's avatar
Per Cederqvist committed
457
  ac_srcdir_defaulted=yes
Per Cederqvist's avatar
Per Cederqvist committed
458
  # Try the directory containing this script, then its parent.
Per Cederqvist's avatar
Per Cederqvist committed
459
460
461
462
463
  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
464
465
    srcdir=..
  fi
Per Cederqvist's avatar
Per Cederqvist committed
466
467
else
  ac_srcdir_defaulted=no
Per Cederqvist's avatar
Per Cederqvist committed
468
fi
Per Cederqvist's avatar
Per Cederqvist committed
469
if test ! -r $srcdir/$ac_unique_file; then
Per Cederqvist's avatar
Per Cederqvist committed
470
471
472
473
474
475
476
477
478
479
480
481
  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
482
  else
Per Cederqvist's avatar
Per Cederqvist committed
483
484
485
486
487
488
489
    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
490
  fi
Per Cederqvist's avatar
Per Cederqvist committed
491
492
493
494
495
496
497
498
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
499
fi
Per Cederqvist's avatar
Per Cederqvist committed
500

Per Cederqvist's avatar
Per Cederqvist committed
501
502
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
503
504
505
506
507
508
ac_cpp='echo $CPP $CPPFLAGS 1>&5;
$CPP $CPPFLAGS'
ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
Per Cederqvist's avatar
Per Cederqvist committed
509
510
511
512
513
514
515
516
517
518
519
520

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
521
522


Per Cederqvist's avatar
Per Cederqvist committed
523
# Check whether --with-gnu-malloc or --without-gnu-malloc was given.
Per Cederqvist's avatar
Per Cederqvist committed
524
525
if test "${with_gnu_malloc+set}" = set; then
  withval="$with_gnu_malloc"
Per Cederqvist's avatar
Per Cederqvist committed
526
527
528
529
530
  use_gnu_malloc=$withval
else
  use_gnu_malloc=no
fi

Per Cederqvist's avatar
Per Cederqvist committed
531

Per Cederqvist's avatar
Per Cederqvist committed
532
533
# 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
534
535
536
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
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
537
538
539
540
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
541
542
543
544
  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
545
      ac_cv_prog_CC="gcc"
Per Cederqvist's avatar
Per Cederqvist committed
546
547
548
      break
    fi
  done
Per Cederqvist's avatar
Per Cederqvist committed
549
  IFS="$ac_save_ifs"
Per Cederqvist's avatar
Per Cederqvist committed
550
551
552
553
554
  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
Per Cederqvist's avatar
Per Cederqvist committed
555
  echo "$ac_t""$CC" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
556
else
Per Cederqvist's avatar
Per Cederqvist committed
557
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
558
559
fi

Per Cederqvist's avatar
Per Cederqvist committed
560

Per Cederqvist's avatar
Per Cederqvist committed
561
562
563
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
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
564
565
else
  cat > conftest.c <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
566
#ifdef __GNUC__
Per Cederqvist's avatar
Per Cederqvist committed
567
  yes;
Per Cederqvist's avatar
Per Cederqvist committed
568
569
#endif
EOF
Per Cederqvist's avatar
Per Cederqvist committed
570
571
572
573
574
575
if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi
Per Cederqvist's avatar
Per Cederqvist committed
576

Per Cederqvist's avatar
Per Cederqvist committed
577
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
578
579
580
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
  if test "${CFLAGS+set}" != set; then
Per Cederqvist's avatar
Per Cederqvist committed
581
582
583
    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
584
585
586
587
588
589
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_gcc_g=yes
else
  ac_cv_prog_gcc_g=no
Per Cederqvist's avatar
Per Cederqvist committed
590
591
592
fi
rm -f conftest*

Per Cederqvist's avatar
Per Cederqvist committed
593
fi
Per Cederqvist's avatar
Per Cederqvist committed
594
595

echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
596
597
598
599
600
601
602
603
604
605
606
607
    if test $ac_cv_prog_gcc_g = yes; then
      CFLAGS="-g -O"
    else
      CFLAGS="-O"
    fi
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi


Per Cederqvist's avatar
Per Cederqvist committed
608
609
610
611
612




INCLUDE_CURRENT=-I.
Per Cederqvist's avatar
Per Cederqvist committed
613
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
614
615
616
617
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
Per Cederqvist's avatar
Per Cederqvist committed
618
if test -z "$CPP"; then
Per Cederqvist's avatar
Per Cederqvist committed
619
620
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
621
622
623
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
624
  CPP="${CC-cc} -E"
Per Cederqvist's avatar
Per Cederqvist committed
625
626
627
  # 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
628
#line 629 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
629
#include "confdefs.h"
Per Cederqvist's avatar
Per Cederqvist committed
630
#include <assert.h>
Per Cederqvist's avatar
Per Cederqvist committed
631
632
Syntax Error
EOF
Per Cederqvist's avatar
Per Cederqvist committed
633
634
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
635
636
637
if test -z "$ac_err"; then
  :
else
Per Cederqvist's avatar
Per Cederqvist committed
638
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
639
640
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
Per Cederqvist's avatar
Per Cederqvist committed
641
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
642
#line 643 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
643
#include "confdefs.h"
Per Cederqvist's avatar
Per Cederqvist committed
644
#include <assert.h>
Per Cederqvist's avatar
Per Cederqvist committed
645
646
Syntax Error
EOF
Per Cederqvist's avatar
Per Cederqvist committed
647
648
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
649
if test -z "$ac_err"; then
Per Cederqvist's avatar
Per Cederqvist committed
650
651
  :
else
Per Cederqvist's avatar
Per Cederqvist committed
652
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
653
654
655
656
657
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
Per Cederqvist's avatar
Per Cederqvist committed
658
rm -f conftest*
Per Cederqvist's avatar
Per Cederqvist committed
659
660
  ac_cv_prog_CPP="$CPP"
fi
Per Cederqvist's avatar
Per Cederqvist committed
661
662
663
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
Per Cederqvist's avatar
Per Cederqvist committed
664
fi
Per Cederqvist's avatar
Per Cederqvist committed
665
echo "$ac_t""$CPP" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
666

Per Cederqvist's avatar
Per Cederqvist committed
667
echo $ac_n "checking for AIX""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
668
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
669
#line 670 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
670
671
672
673
674
675
#include "confdefs.h"
#ifdef _AIX
  yes
#endif

EOF
Per Cederqvist's avatar
Per Cederqvist committed
676
677
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
Per Cederqvist's avatar
Per Cederqvist committed
678
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
679
  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
Per Cederqvist's avatar
Per Cederqvist committed
680
681
#define _ALL_SOURCE 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
682

Per Cederqvist's avatar
Per Cederqvist committed
683
684
else
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
685
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
686
687
688
689
fi
rm -f conftest*


Per Cederqvist's avatar
Per Cederqvist committed
690
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
691
692
693
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
694
  echo "$ac_t""yes" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
695
696
697
698
  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
699

Per Cederqvist's avatar
Per Cederqvist committed
700
  if test "$GCC" = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
701
702
703
704
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
Per Cederqvist's avatar
Per Cederqvist committed
705
else
Per Cederqvist's avatar
Per Cederqvist committed
706
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
707
  ISC=
Per Cederqvist's avatar
Per Cederqvist committed
708
709
fi

Per Cederqvist's avatar
Per Cederqvist committed
710
ac_safe=`echo "minix/config.h" | tr './\055' '___'`
Per Cederqvist's avatar
Per Cederqvist committed
711
712
713
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
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
714
715
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
716
#line 717 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
717
718
719
#include "confdefs.h"
#include <minix/config.h>
EOF
Per Cederqvist's avatar
Per Cederqvist committed
720
721
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
722
if test -z "$ac_err"; then
Per Cederqvist's avatar
Per Cederqvist committed
723
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
724
725
726
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
Per Cederqvist's avatar
Per Cederqvist committed
727
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
728
  eval "ac_cv_header_$ac_safe=no"
Per Cederqvist's avatar
Per Cederqvist committed
729
730
fi
rm -f conftest*
Per Cederqvist's avatar
Per Cederqvist committed
731
732
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
Per Cederqvist's avatar
Per Cederqvist committed
733
  echo "$ac_t""yes" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
734
  MINIX=yes
Per Cederqvist's avatar
Per Cederqvist committed
735
else
Per Cederqvist's avatar
Per Cederqvist committed
736
  echo "$ac_t""no" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
737
MINIX=
Per Cederqvist's avatar
Per Cederqvist committed
738
739
fi

Per Cederqvist's avatar
Per Cederqvist committed
740
741
742
743
if test "$MINIX" = yes; then
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
744

Per Cederqvist's avatar
Per Cederqvist committed
745
746
747
  cat >> confdefs.h <<\EOF
#define _POSIX_1_SOURCE 2
EOF
Per Cederqvist's avatar
Per Cederqvist committed
748

Per Cederqvist's avatar
Per Cederqvist committed
749
750
  cat >> confdefs.h <<\EOF
#define _MINIX 1
Per Cederqvist's avatar
Per Cederqvist committed
751
752
753
754
EOF

fi

Per Cederqvist's avatar
Per Cederqvist committed
755
if test -n "$GCC"; then
Per Cederqvist's avatar
Per Cederqvist committed
756
	CFLAGS="$CFLAGS -Wall"
Per Cederqvist's avatar
Per Cederqvist committed
757
758
759
760
761
762
763
764
	 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
if eval "test \"`echo '$''{'$kom_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
765
766
else
  kom_oldflags=$CFLAGS
Per Cederqvist's avatar
Per Cederqvist committed
767
CFLAGS="$CFLAGS -pipe"
Per Cederqvist's avatar
Per Cederqvist committed
768
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
769
#line 770 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
770
771
772
#include "confdefs.h"

int main() { return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
773
774
775
int t() {

; return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
776
EOF
Per Cederqvist's avatar
Per Cederqvist committed
777
if eval $ac_link; then
Per Cederqvist's avatar
Per Cederqvist committed
778
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
779
  eval "$kom_safe=yes"
Per Cederqvist's avatar
Per Cederqvist committed
780
781
else
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
782
  eval "$kom_safe=no"
Per Cederqvist's avatar
Per Cederqvist committed
783
784
785
fi
rm -f conftest*

Per Cederqvist's avatar
Per Cederqvist committed
786
CFLAGS=$kom_oldflags
Per Cederqvist's avatar
Per Cederqvist committed
787
fi
Per Cederqvist's avatar
Per Cederqvist committed
788
echo "$ac_t""`eval echo '$'$kom_safe`" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
789
790
791
792
793
if test `eval echo '$'$kom_safe` = yes; then
  CFLAGS="$CFLAGS -pipe"
fi 
	DEPENDFLAG=-MM
else
Per Cederqvist's avatar
Per Cederqvist committed
794
795
796
797
798
799
	case "$CC" in
		*vcc) DEPENDFLAG=-Em
			INCLUDE_CURRENT='-I`pwd`';;
		*) DEPENDFLAG=-M;;
	esac
fi
Per Cederqvist's avatar
Per Cederqvist committed
800
801
echo $ac_n "checking flag to get dependencies""... $ac_c" 1>&6
echo "$ac_t""$DEPENDFLAG" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873

# 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
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
#line 818 "configure"
#include "confdefs.h"
#include <signal.h>
int main() { return 0; }
int t() {
struct sigaction foosig;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  kom_cv_struct_sigaction=yes
else
  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
#line 837 "configure"
#include "confdefs.h"
#define _POSIX_SOURCE
  #include <signal.h>
int main() { return 0; }
int t() {
struct sigaction barsig;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  kom_cv_struct_sigaction=yes
  kom_cv_header_posix_source_needed=yes
else
  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
874
875
876
echo $ac_n "checking for working const""... $ac_c" 1>&6
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
877
878
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
879
#line 880 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
880
881
882
883
884
885
#include "confdefs.h"

int main() { return 0; }
int t() {

/* Ultrix mips cc rejects this.  */
Per Cederqvist's avatar
Per Cederqvist committed
886
887
888
889
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
890
891
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
Per Cederqvist's avatar
Per Cederqvist committed
892
static struct point const zero = {0,0};
Per Cederqvist's avatar
Per Cederqvist committed
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
/* 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
909
  int x[] = {25, 17};
Per Cederqvist's avatar
Per Cederqvist committed
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
  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
925
}
Per Cederqvist's avatar
Per Cederqvist committed
926

Per Cederqvist's avatar
Per Cederqvist committed
927
; return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
928
EOF
Per Cederqvist's avatar
Per Cederqvist committed
929
if eval $ac_compile; then
Per Cederqvist's avatar
Per Cederqvist committed
930
931
  rm -rf conftest*
  ac_cv_c_const=yes
Per Cederqvist's avatar
Per Cederqvist committed
932
933
else
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
934
  ac_cv_c_const=no
Per Cederqvist's avatar
Per Cederqvist committed
935
936
937
fi
rm -f conftest*

Per Cederqvist's avatar
Per Cederqvist committed
938
fi
Per Cederqvist's avatar
Per Cederqvist committed
939

Per Cederqvist's avatar
Per Cederqvist committed
940
echo "$ac_t""$ac_cv_c_const" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
941
942
943
944
945
946
947
948
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi

# If we cannot run a trivial program, we must be cross compiling.
Per Cederqvist's avatar
Per Cederqvist committed
949
950
951
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
952
953
else
  if test "$cross_compiling" = yes; then
Per Cederqvist's avatar
Per Cederqvist committed
954
  ac_cv_c_cross=yes
Per Cederqvist's avatar
Per Cederqvist committed
955
956
else
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
957
#line 958 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
958
959
960
961
962
963
964
965
966
967
968
969
#include "confdefs.h"
main(){return(0);}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_cross=no
else
  ac_cv_c_cross=yes
fi
fi
rm -fr conftest*
fi
Per Cederqvist's avatar
Per Cederqvist committed
970

Per Cederqvist's avatar
Per Cederqvist committed
971
echo "$ac_t""$ac_cv_c_cross" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
972
cross_compiling=$ac_cv_c_cross
Per Cederqvist's avatar
Per Cederqvist committed
973

Per Cederqvist's avatar
Per Cederqvist committed
974
975
976
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
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
977
978
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
979
#line 980 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
980
981
982
983
984
985
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
Per Cederqvist's avatar
Per Cederqvist committed
986
987
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
Per Cederqvist's avatar
Per Cederqvist committed
988
if test -z "$ac_err"; then
Per Cederqvist's avatar
Per Cederqvist committed
989
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
990
991
992
993
994
995
996
997
998
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  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
999
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Per Cederqvist's avatar
Per Cederqvist committed
1000
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1001
#line 1002 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
#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
1019
#line 1020 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1020
1021
1022
1023
1024
1025
1026
#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
1027
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1028
1029
1030
1031
1032
1033
1034
1035
1036
  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
1037
  :
Per Cederqvist's avatar
Per Cederqvist committed
1038
1039
else
cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1040
#line 1041 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1041
1042
1043
1044
#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
1045
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Per Cederqvist's avatar
Per Cederqvist committed
1046
1047
1048
1049
1050
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
1051
eval $ac_link
Per Cederqvist's avatar
Per Cederqvist committed
1052
if test -s conftest && (./conftest; exit) 2>/dev/null; then
Per Cederqvist's avatar
Per Cederqvist committed
1053
1054
1055
  :
else
  ac_cv_header_stdc=no
Per Cederqvist's avatar
Per Cederqvist committed
1056
fi
Per Cederqvist's avatar
Per Cederqvist committed
1057
1058
1059
fi
rm -fr conftest*
fi
Per Cederqvist's avatar
Per Cederqvist committed
1060
fi
Per Cederqvist's avatar
Per Cederqvist committed
1061

Per Cederqvist's avatar
Per Cederqvist committed
1062
echo "$ac_t""$ac_cv_header_stdc" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1063
1064
1065
1066
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF
Per Cederqvist's avatar
Per Cederqvist committed
1067
1068
1069

fi

Per Cederqvist's avatar
Per Cederqvist committed
1070
1071
1072
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
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
1073
1074
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1075
#line 1076 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pid_t" >/dev/null 2>&1; then
  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
1093
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1094
1095
1096
1097
1098
1099
1100
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF

fi

Per Cederqvist's avatar
Per Cederqvist committed
1101
1102
1103
echo $ac_n "checking if _HPUX_SOURCE needs to be defined""... $ac_c" 1>&6
if eval "test \"`echo '$''{'kom_cv_sys_hpux_source'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1104
1105
else
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1106
#line 1107 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1107
#include "confdefs.h"
Per Cederqvist's avatar
Per Cederqvist committed
1108
#include <sys/types.h>
Per Cederqvist's avatar
Per Cederqvist committed
1109
#include <sys/socket.h>
Per Cederqvist's avatar
Per Cederqvist committed
1110
int main() { return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
1111
1112
1113
int t() {
struct sockaddr foo;
; return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
1114
EOF
Per Cederqvist's avatar
Per Cederqvist committed
1115
if eval $ac_link; then
Per Cederqvist's avatar
Per Cederqvist committed
1116
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1117
  kom_cv_sys_hpux_source=no
Per Cederqvist's avatar
Per Cederqvist committed
1118
1119
else
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1120
  cat > conftest.$ac_ext <<EOF
Per Cederqvist's avatar
Per Cederqvist committed
1121
#line 1122 "configure"
Per Cederqvist's avatar
Per Cederqvist committed
1122
1123
#include "confdefs.h"
#define _HPUX_SOURCE
Per Cederqvist's avatar
Per Cederqvist committed
1124
#include <sys/types.h>
Per Cederqvist's avatar
Per Cederqvist committed
1125
#include <sys/socket.h>
Per Cederqvist's avatar
Per Cederqvist committed
1126
int main() { return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
1127
1128
1129
int t() {
struct sockaddr foo;
; return 0; }
Per Cederqvist's avatar
Per Cederqvist committed
1130
EOF
Per Cederqvist's avatar
Per Cederqvist committed
1131
if eval $ac_link; then
Per Cederqvist's avatar
Per Cederqvist committed
1132
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1133
  kom_cv_sys_hpux_source=yes
Per Cederqvist's avatar
Per Cederqvist committed
1134
1135
else
  rm -rf conftest*
Per Cederqvist's avatar
Per Cederqvist committed
1136
  kom_cv_sys_hpux_source=no
Per Cederqvist's avatar
Per Cederqvist committed
1137
1138
1139
1140
1141
1142
fi
rm -f conftest*

fi
rm -f conftest*

Per Cederqvist's avatar
Per Cederqvist committed
1143
1144
fi

Per Cederqvist's avatar
Per Cederqvist committed
1145
echo "$ac_t""$kom_cv_sys_hpux_source" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1146
1147
1148
1149
1150
if test $kom_cv_sys_hpux_source = yes ; then
  cat >> confdefs.h <<\EOF
#define _HPUX_SOURCE 1
EOF

Per Cederqvist's avatar
Per Cederqvist committed
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
fi
echo $ac_n "checking if the compiler understands __attribute__ ((format))""... $ac_c" 1>&6
if eval "test \"`echo '$''{'kom_cv_c_attribute_format_printf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1158 "configure"
#include "confdefs.h"
extern void log (const char *f, ...) 
__attribute__ ((format (printf, 1, 2)));
int main() { return 0; }
int t() {

; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  kom_cv_c_attribute_format_printf=yes
else
  rm -rf conftest*
  kom_cv_c_attribute_format_printf=no
fi
rm -f conftest*

fi

echo "$ac_t""$kom_cv_c_attribute_format_printf" 1>&6
if test $kom_cv_c_attribute_format_printf = yes ; then
  cat >> confdefs.h <<\EOF
#define HAVE_ATTRIBUTE_FORMAT_PRINTF 1
EOF

Per Cederqvist's avatar
Per Cederqvist committed
1183
1184
fi

Per Cederqvist's avatar
Per Cederqvist committed
1185
1186
1187
SRCTOPDIR=`cd $srcdir;pwd`

BUILDTOPDIR=`pwd`
Per Cederqvist's avatar
Per Cederqvist committed
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
ac_aux_dir=
for ac_dir in scripts $srcdir/scripts; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
Per Cederqvist's avatar
Per Cederqvist committed
1217
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1218
if test -z "$INSTALL"; then
Per Cederqvist's avatar
Per Cederqvist committed
1219
1220
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1221
1222
else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
Per Cederqvist's avatar
Per Cederqvist committed
1223
  for ac_dir in $PATH; do
Per Cederqvist's avatar
Per Cederqvist committed
1224
1225
1226
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
Per Cederqvist's avatar
Per Cederqvist committed
1227
    *)
Per Cederqvist's avatar
Per Cederqvist committed
1228
      # OSF1 and SCO ODT 3.0 have their own names for install.
Per Cederqvist's avatar
Per Cederqvist committed
1229
      for ac_prog in ginstall installbsd scoinst install; do
Per Cederqvist's avatar
Per Cederqvist committed
1230
1231
1232
1233
1234
1235
1236
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    # OSF/1 installbsd also uses dspmsg, but is usable.
	    :
	  else
Per Cederqvist's avatar
Per Cederqvist committed
1237
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
Per Cederqvist's avatar
Per Cederqvist committed
1238
1239
	    break 2
	  fi
Per Cederqvist's avatar
Per Cederqvist committed
1240
	fi
Per Cederqvist's avatar
Per Cederqvist committed
1241
      done
Per Cederqvist's avatar
Per Cederqvist committed
1242
1243
1244
      ;;
    esac
  done
Per Cederqvist's avatar
Per Cederqvist committed
1245
  IFS="$ac_save_ifs"
Per Cederqvist's avatar
Per Cederqvist committed
1246

Per Cederqvist's avatar
Per Cederqvist committed
1247
fi
Per Cederqvist's avatar
Per Cederqvist committed
1248
1249
1250
1251
1252
1253
1254
1255
1256
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL="$ac_cv_path_install"
  else
    # As a last resort, use the slow shell script.  We don't cache a
    # path for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the path is relative.
    INSTALL="$ac_install_sh"
  fi
Per Cederqvist's avatar
Per Cederqvist committed
1257
fi
Per Cederqvist's avatar
Per Cederqvist committed
1258
echo "$ac_t""$INSTALL" 1>&6
Per Cederqvist's avatar
Per Cederqvist committed
1259

Per Cederqvist's avatar
Per Cederqvist committed
1260
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
Per Cederqvist's avatar
Per Cederqvist committed
1261
1262
1263
1264
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
Per Cederqvist's avatar
Per Cederqvist committed
1265

Per Cederqvist's avatar
Per Cederqvist committed
1266
1267
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
Per Cederqvist's avatar