~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/odbc/configure

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
 
 
15
# Initialize some variables set by options.
 
16
# The variables have the same names as the options, with
 
17
# dashes changed to underlines.
 
18
build=NONE
 
19
cache_file=./config.cache
 
20
exec_prefix=NONE
 
21
host=NONE
 
22
no_create=
 
23
nonopt=NONE
 
24
no_recursion=
 
25
prefix=NONE
 
26
program_prefix=NONE
 
27
program_suffix=NONE
 
28
program_transform_name=s,x,x,
 
29
silent=
 
30
site=
 
31
srcdir=
 
32
target=NONE
 
33
verbose=
 
34
x_includes=NONE
 
35
x_libraries=NONE
 
36
bindir='${exec_prefix}/bin'
 
37
sbindir='${exec_prefix}/sbin'
 
38
libexecdir='${exec_prefix}/libexec'
 
39
datadir='${prefix}/share'
 
40
sysconfdir='${prefix}/etc'
 
41
sharedstatedir='${prefix}/com'
 
42
localstatedir='${prefix}/var'
 
43
libdir='${exec_prefix}/lib'
 
44
includedir='${prefix}/include'
 
45
oldincludedir='/usr/include'
 
46
infodir='${prefix}/info'
 
47
mandir='${prefix}/man'
 
48
 
 
49
# Initialize some other variables.
 
50
subdirs=
 
51
MFLAGS= MAKEFLAGS=
 
52
SHELL=${CONFIG_SHELL-/bin/sh}
 
53
# Maximum number of lines to put in a shell here document.
 
54
ac_max_here_lines=12
 
55
 
 
56
ac_prev=
 
57
for ac_option
 
58
do
 
59
 
 
60
  # If the previous option needs an argument, assign it.
 
61
  if test -n "$ac_prev"; then
 
62
    eval "$ac_prev=\$ac_option"
 
63
    ac_prev=
 
64
    continue
 
65
  fi
 
66
 
 
67
  case "$ac_option" in
 
68
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
69
  *) ac_optarg= ;;
 
70
  esac
 
71
 
 
72
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
73
 
 
74
  case "$ac_option" in
 
75
 
 
76
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
77
    ac_prev=bindir ;;
 
78
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
79
    bindir="$ac_optarg" ;;
 
80
 
 
81
  -build | --build | --buil | --bui | --bu)
 
82
    ac_prev=build ;;
 
83
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
84
    build="$ac_optarg" ;;
 
85
 
 
86
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
87
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
88
    ac_prev=cache_file ;;
 
89
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
90
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
91
    cache_file="$ac_optarg" ;;
 
92
 
 
93
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
94
    ac_prev=datadir ;;
 
95
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
96
  | --da=*)
 
97
    datadir="$ac_optarg" ;;
 
98
 
 
99
  -disable-* | --disable-*)
 
100
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
101
    # Reject names that are not valid shell variable names.
 
102
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
103
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
104
    fi
 
105
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
106
    eval "enable_${ac_feature}=no" ;;
 
107
 
 
108
  -enable-* | --enable-*)
 
109
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
110
    # Reject names that are not valid shell variable names.
 
111
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
112
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
113
    fi
 
114
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
115
    case "$ac_option" in
 
116
      *=*) ;;
 
117
      *) ac_optarg=yes ;;
 
118
    esac
 
119
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
120
 
 
121
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
122
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
123
  | --exec | --exe | --ex)
 
124
    ac_prev=exec_prefix ;;
 
125
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
126
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
127
  | --exec=* | --exe=* | --ex=*)
 
128
    exec_prefix="$ac_optarg" ;;
 
129
 
 
130
  -gas | --gas | --ga | --g)
 
131
    # Obsolete; use --with-gas.
 
132
    with_gas=yes ;;
 
133
 
 
134
  -help | --help | --hel | --he)
 
135
    # Omit some internal or obsolete options to make the list less imposing.
 
136
    # This message is too long to be a string in the A/UX 3.1 sh.
 
137
    cat << EOF
 
138
Usage: configure [options] [host]
 
139
Options: [defaults in brackets after descriptions]
 
140
Configuration:
 
141
  --cache-file=FILE       cache test results in FILE
 
142
  --help                  print this message
 
143
  --no-create             do not create output files
 
144
  --quiet, --silent       do not print \`checking...' messages
 
145
  --version               print the version of autoconf that created configure
 
146
Directory and file names:
 
147
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
148
                          [$ac_default_prefix]
 
149
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
150
                          [same as prefix]
 
151
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
152
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
153
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
154
  --datadir=DIR           read-only architecture-independent data in DIR
 
155
                          [PREFIX/share]
 
156
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
157
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
158
                          [PREFIX/com]
 
159
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
160
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
161
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
162
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
163
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
164
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
165
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
166
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
167
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
168
  --program-transform-name=PROGRAM
 
169
                          run sed PROGRAM on installed program names
 
170
EOF
 
171
    cat << EOF
 
172
Host type:
 
173
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
174
  --host=HOST             configure for HOST [guessed]
 
175
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
176
Features and packages:
 
177
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
178
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
179
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
180
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
181
  --x-includes=DIR        X include files are in DIR
 
182
  --x-libraries=DIR       X library files are in DIR
 
183
EOF
 
184
    if test -n "$ac_help"; then
 
185
      echo "--enable and --with options recognized:$ac_help"
 
186
    fi
 
187
    exit 0 ;;
 
188
 
 
189
  -host | --host | --hos | --ho)
 
190
    ac_prev=host ;;
 
191
  -host=* | --host=* | --hos=* | --ho=*)
 
192
    host="$ac_optarg" ;;
 
193
 
 
194
  -includedir | --includedir | --includedi | --included | --include \
 
195
  | --includ | --inclu | --incl | --inc)
 
196
    ac_prev=includedir ;;
 
197
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
198
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
199
    includedir="$ac_optarg" ;;
 
200
 
 
201
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
202
    ac_prev=infodir ;;
 
203
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
204
    infodir="$ac_optarg" ;;
 
205
 
 
206
  -libdir | --libdir | --libdi | --libd)
 
207
    ac_prev=libdir ;;
 
208
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
209
    libdir="$ac_optarg" ;;
 
210
 
 
211
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
212
  | --libexe | --libex | --libe)
 
213
    ac_prev=libexecdir ;;
 
214
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
215
  | --libexe=* | --libex=* | --libe=*)
 
216
    libexecdir="$ac_optarg" ;;
 
217
 
 
218
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
219
  | --localstate | --localstat | --localsta | --localst \
 
220
  | --locals | --local | --loca | --loc | --lo)
 
221
    ac_prev=localstatedir ;;
 
222
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
223
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
224
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
225
    localstatedir="$ac_optarg" ;;
 
226
 
 
227
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
228
    ac_prev=mandir ;;
 
229
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
230
    mandir="$ac_optarg" ;;
 
231
 
 
232
  -nfp | --nfp | --nf)
 
233
    # Obsolete; use --without-fp.
 
234
    with_fp=no ;;
 
235
 
 
236
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
237
  | --no-cr | --no-c)
 
238
    no_create=yes ;;
 
239
 
 
240
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
241
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
242
    no_recursion=yes ;;
 
243
 
 
244
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
245
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
246
  | --oldin | --oldi | --old | --ol | --o)
 
247
    ac_prev=oldincludedir ;;
 
248
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
249
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
250
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
251
    oldincludedir="$ac_optarg" ;;
 
252
 
 
253
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
254
    ac_prev=prefix ;;
 
255
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
256
    prefix="$ac_optarg" ;;
 
257
 
 
258
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
259
  | --program-pre | --program-pr | --program-p)
 
260
    ac_prev=program_prefix ;;
 
261
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
262
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
263
    program_prefix="$ac_optarg" ;;
 
264
 
 
265
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
266
  | --program-suf | --program-su | --program-s)
 
267
    ac_prev=program_suffix ;;
 
268
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
269
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
270
    program_suffix="$ac_optarg" ;;
 
271
 
 
272
  -program-transform-name | --program-transform-name \
 
273
  | --program-transform-nam | --program-transform-na \
 
274
  | --program-transform-n | --program-transform- \
 
275
  | --program-transform | --program-transfor \
 
276
  | --program-transfo | --program-transf \
 
277
  | --program-trans | --program-tran \
 
278
  | --progr-tra | --program-tr | --program-t)
 
279
    ac_prev=program_transform_name ;;
 
280
  -program-transform-name=* | --program-transform-name=* \
 
281
  | --program-transform-nam=* | --program-transform-na=* \
 
282
  | --program-transform-n=* | --program-transform-=* \
 
283
  | --program-transform=* | --program-transfor=* \
 
284
  | --program-transfo=* | --program-transf=* \
 
285
  | --program-trans=* | --program-tran=* \
 
286
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
287
    program_transform_name="$ac_optarg" ;;
 
288
 
 
289
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
290
  | -silent | --silent | --silen | --sile | --sil)
 
291
    silent=yes ;;
 
292
 
 
293
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
294
    ac_prev=sbindir ;;
 
295
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
296
  | --sbi=* | --sb=*)
 
297
    sbindir="$ac_optarg" ;;
 
298
 
 
299
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
300
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
301
  | --sharedst | --shareds | --shared | --share | --shar \
 
302
  | --sha | --sh)
 
303
    ac_prev=sharedstatedir ;;
 
304
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
305
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
306
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
307
  | --sha=* | --sh=*)
 
308
    sharedstatedir="$ac_optarg" ;;
 
309
 
 
310
  -site | --site | --sit)
 
311
    ac_prev=site ;;
 
312
  -site=* | --site=* | --sit=*)
 
313
    site="$ac_optarg" ;;
 
314
 
 
315
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
316
    ac_prev=srcdir ;;
 
317
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
318
    srcdir="$ac_optarg" ;;
 
319
 
 
320
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
321
  | --syscon | --sysco | --sysc | --sys | --sy)
 
322
    ac_prev=sysconfdir ;;
 
323
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
324
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
325
    sysconfdir="$ac_optarg" ;;
 
326
 
 
327
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
328
    ac_prev=target ;;
 
329
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
330
    target="$ac_optarg" ;;
 
331
 
 
332
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
333
    verbose=yes ;;
 
334
 
 
335
  -version | --version | --versio | --versi | --vers)
 
336
    echo "configure generated by autoconf version 2.13"
 
337
    exit 0 ;;
 
338
 
 
339
  -with-* | --with-*)
 
340
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
341
    # Reject names that are not valid shell variable names.
 
342
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
343
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
344
    fi
 
345
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
346
    case "$ac_option" in
 
347
      *=*) ;;
 
348
      *) ac_optarg=yes ;;
 
349
    esac
 
350
    eval "with_${ac_package}='$ac_optarg'" ;;
 
351
 
 
352
  -without-* | --without-*)
 
353
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
354
    # Reject names that are not valid shell variable names.
 
355
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
356
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
357
    fi
 
358
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
359
    eval "with_${ac_package}=no" ;;
 
360
 
 
361
  --x)
 
362
    # Obsolete; use --with-x.
 
363
    with_x=yes ;;
 
364
 
 
365
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
366
  | --x-incl | --x-inc | --x-in | --x-i)
 
367
    ac_prev=x_includes ;;
 
368
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
369
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
370
    x_includes="$ac_optarg" ;;
 
371
 
 
372
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
373
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
374
    ac_prev=x_libraries ;;
 
375
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
376
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
377
    x_libraries="$ac_optarg" ;;
 
378
 
 
379
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
380
    ;;
 
381
 
 
382
  *)
 
383
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
384
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
385
    fi
 
386
    if test "x$nonopt" != xNONE; then
 
387
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
388
    fi
 
389
    nonopt="$ac_option"
 
390
    ;;
 
391
 
 
392
  esac
 
393
done
 
394
 
 
395
if test -n "$ac_prev"; then
 
396
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
397
fi
 
398
 
 
399
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
400
 
 
401
# File descriptor usage:
 
402
# 0 standard input
 
403
# 1 file creation
 
404
# 2 errors and warnings
 
405
# 3 some systems may open it to /dev/tty
 
406
# 4 used on the Kubota Titan
 
407
# 6 checking for... messages and results
 
408
# 5 compiler messages saved in config.log
 
409
if test "$silent" = yes; then
 
410
  exec 6>/dev/null
 
411
else
 
412
  exec 6>&1
 
413
fi
 
414
exec 5>./config.log
 
415
 
 
416
echo "\
 
417
This file contains any messages produced by compilers while
 
418
running configure, to aid debugging if configure makes a mistake.
 
419
" 1>&5
 
420
 
 
421
# Strip out --no-create and --no-recursion so they do not pile up.
 
422
# Also quote any args containing shell metacharacters.
 
423
ac_configure_args=
 
424
for ac_arg
 
425
do
 
426
  case "$ac_arg" in
 
427
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
428
  | --no-cr | --no-c) ;;
 
429
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
430
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
431
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
432
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
433
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
434
  esac
 
435
done
 
436
 
 
437
# NLS nuisances.
 
438
# Only set these to C if already set.  These must not be set unconditionally
 
439
# because not all systems understand e.g. LANG=C (notably SCO).
 
440
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
441
# Non-C LC_CTYPE values break the ctype check.
 
442
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
443
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
444
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
445
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
446
 
 
447
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
448
rm -rf conftest* confdefs.h
 
449
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
450
echo > confdefs.h
 
451
 
 
452
# A filename unique to this package, relative to the directory that
 
453
# configure is in, which we can look for to find out if srcdir is correct.
 
454
ac_unique_file=c_src/odbcserver.c
 
455
 
 
456
# Find the source files, if location was not specified.
 
457
if test -z "$srcdir"; then
 
458
  ac_srcdir_defaulted=yes
 
459
  # Try the directory containing this script, then its parent.
 
460
  ac_prog=$0
 
461
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
462
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
463
  srcdir=$ac_confdir
 
464
  if test ! -r $srcdir/$ac_unique_file; then
 
465
    srcdir=..
 
466
  fi
 
467
else
 
468
  ac_srcdir_defaulted=no
 
469
fi
 
470
if test ! -r $srcdir/$ac_unique_file; then
 
471
  if test "$ac_srcdir_defaulted" = yes; then
 
472
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
473
  else
 
474
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
475
  fi
 
476
fi
 
477
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
478
 
 
479
# Prefer explicitly selected file to automatically selected ones.
 
480
if test -z "$CONFIG_SITE"; then
 
481
  if test "x$prefix" != xNONE; then
 
482
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
483
  else
 
484
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
485
  fi
 
486
fi
 
487
for ac_site_file in $CONFIG_SITE; do
 
488
  if test -r "$ac_site_file"; then
 
489
    echo "loading site script $ac_site_file"
 
490
    . "$ac_site_file"
 
491
  fi
 
492
done
 
493
 
 
494
 
 
495
ac_ext=c
 
496
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
497
ac_cpp='$CPP $CPPFLAGS'
 
498
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
499
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
500
cross_compiling=$ac_cv_prog_cc_cross
 
501
 
 
502
ac_exeext=
 
503
ac_objext=o
 
504
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
505
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
506
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
507
    ac_n= ac_c='
 
508
' ac_t='        '
 
509
  else
 
510
    ac_n=-n ac_c= ac_t=
 
511
  fi
 
512
else
 
513
  ac_n= ac_c='\c' ac_t=
 
514
fi
 
515
 
 
516
 
 
517
 
 
518
if test -z "$ERL_TOP" || test ! -d $ERL_TOP ; then
 
519
  ac_aux_dir=
 
520
for ac_dir in autoconf; do
 
521
  if test -f $ac_dir/install-sh; then
 
522
    ac_aux_dir=$ac_dir
 
523
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
524
    break
 
525
  elif test -f $ac_dir/install.sh; then
 
526
    ac_aux_dir=$ac_dir
 
527
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
528
    break
 
529
  fi
 
530
done
 
531
if test -z "$ac_aux_dir"; then
 
532
  { echo "configure: error: can not find install-sh or install.sh in autoconf" 1>&2; exit 1; }
 
533
fi
 
534
ac_config_guess=$ac_aux_dir/config.guess
 
535
ac_config_sub=$ac_aux_dir/config.sub
 
536
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
537
 
 
538
else
 
539
  erl_top=${ERL_TOP}
 
540
  ac_aux_dir=
 
541
for ac_dir in $erl_top/erts/autoconf; do
 
542
  if test -f $ac_dir/install-sh; then
 
543
    ac_aux_dir=$ac_dir
 
544
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
545
    break
 
546
  elif test -f $ac_dir/install.sh; then
 
547
    ac_aux_dir=$ac_dir
 
548
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
549
    break
 
550
  fi
 
551
done
 
552
if test -z "$ac_aux_dir"; then
 
553
  { echo "configure: error: can not find install-sh or install.sh in $erl_top/erts/autoconf" 1>&2; exit 1; }
 
554
fi
 
555
ac_config_guess=$ac_aux_dir/config.guess
 
556
ac_config_sub=$ac_aux_dir/config.sub
 
557
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
558
 
 
559
fi
 
560
 
 
561
if test "X$host" != "Xfree_source" -a "X$host" != "Xwin32"; then
 
562
    
 
563
# Make sure we can run config.sub.
 
564
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
565
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
566
fi
 
567
 
 
568
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
569
echo "configure:570: checking host system type" >&5
 
570
 
 
571
host_alias=$host
 
572
case "$host_alias" in
 
573
NONE)
 
574
  case $nonopt in
 
575
  NONE)
 
576
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
577
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
578
    fi ;;
 
579
  *) host_alias=$nonopt ;;
 
580
  esac ;;
 
581
esac
 
582
 
 
583
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
584
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
585
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
586
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
587
echo "$ac_t""$host" 1>&6
 
588
 
 
589
else
 
590
    host_os=win32
 
591
fi
 
592
 
 
593
# Extract the first word of "gcc", so it can be a program name with args.
 
594
set dummy gcc; ac_word=$2
 
595
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
596
echo "configure:597: checking for $ac_word" >&5
 
597
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
598
  echo $ac_n "(cached) $ac_c" 1>&6
 
599
else
 
600
  if test -n "$CC"; then
 
601
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
602
else
 
603
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
604
  ac_dummy="$PATH"
 
605
  for ac_dir in $ac_dummy; do
 
606
    test -z "$ac_dir" && ac_dir=.
 
607
    if test -f $ac_dir/$ac_word; then
 
608
      ac_cv_prog_CC="gcc"
 
609
      break
 
610
    fi
 
611
  done
 
612
  IFS="$ac_save_ifs"
 
613
fi
 
614
fi
 
615
CC="$ac_cv_prog_CC"
 
616
if test -n "$CC"; then
 
617
  echo "$ac_t""$CC" 1>&6
 
618
else
 
619
  echo "$ac_t""no" 1>&6
 
620
fi
 
621
 
 
622
if test -z "$CC"; then
 
623
  # Extract the first word of "cc", so it can be a program name with args.
 
624
set dummy cc; ac_word=$2
 
625
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
626
echo "configure:627: checking for $ac_word" >&5
 
627
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
628
  echo $ac_n "(cached) $ac_c" 1>&6
 
629
else
 
630
  if test -n "$CC"; then
 
631
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
632
else
 
633
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
634
  ac_prog_rejected=no
 
635
  ac_dummy="$PATH"
 
636
  for ac_dir in $ac_dummy; do
 
637
    test -z "$ac_dir" && ac_dir=.
 
638
    if test -f $ac_dir/$ac_word; then
 
639
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
640
        ac_prog_rejected=yes
 
641
        continue
 
642
      fi
 
643
      ac_cv_prog_CC="cc"
 
644
      break
 
645
    fi
 
646
  done
 
647
  IFS="$ac_save_ifs"
 
648
if test $ac_prog_rejected = yes; then
 
649
  # We found a bogon in the path, so make sure we never use it.
 
650
  set dummy $ac_cv_prog_CC
 
651
  shift
 
652
  if test $# -gt 0; then
 
653
    # We chose a different compiler from the bogus one.
 
654
    # However, it has the same basename, so the bogon will be chosen
 
655
    # first if we set CC to just the basename; use the full file name.
 
656
    shift
 
657
    set dummy "$ac_dir/$ac_word" "$@"
 
658
    shift
 
659
    ac_cv_prog_CC="$@"
 
660
  fi
 
661
fi
 
662
fi
 
663
fi
 
664
CC="$ac_cv_prog_CC"
 
665
if test -n "$CC"; then
 
666
  echo "$ac_t""$CC" 1>&6
 
667
else
 
668
  echo "$ac_t""no" 1>&6
 
669
fi
 
670
 
 
671
  if test -z "$CC"; then
 
672
    case "`uname -s`" in
 
673
    *win32* | *WIN32*)
 
674
      # Extract the first word of "cl", so it can be a program name with args.
 
675
set dummy cl; ac_word=$2
 
676
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
677
echo "configure:678: checking for $ac_word" >&5
 
678
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
679
  echo $ac_n "(cached) $ac_c" 1>&6
 
680
else
 
681
  if test -n "$CC"; then
 
682
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
683
else
 
684
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
685
  ac_dummy="$PATH"
 
686
  for ac_dir in $ac_dummy; do
 
687
    test -z "$ac_dir" && ac_dir=.
 
688
    if test -f $ac_dir/$ac_word; then
 
689
      ac_cv_prog_CC="cl"
 
690
      break
 
691
    fi
 
692
  done
 
693
  IFS="$ac_save_ifs"
 
694
fi
 
695
fi
 
696
CC="$ac_cv_prog_CC"
 
697
if test -n "$CC"; then
 
698
  echo "$ac_t""$CC" 1>&6
 
699
else
 
700
  echo "$ac_t""no" 1>&6
 
701
fi
 
702
 ;;
 
703
    esac
 
704
  fi
 
705
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
706
fi
 
707
 
 
708
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
709
echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
710
 
 
711
ac_ext=c
 
712
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
713
ac_cpp='$CPP $CPPFLAGS'
 
714
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
715
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
716
cross_compiling=$ac_cv_prog_cc_cross
 
717
 
 
718
cat > conftest.$ac_ext << EOF
 
719
 
 
720
#line 721 "configure"
 
721
#include "confdefs.h"
 
722
 
 
723
main(){return(0);}
 
724
EOF
 
725
if { (eval echo configure:726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
726
  ac_cv_prog_cc_works=yes
 
727
  # If we can't run a trivial program, we are probably using a cross compiler.
 
728
  if (./conftest; exit) 2>/dev/null; then
 
729
    ac_cv_prog_cc_cross=no
 
730
  else
 
731
    ac_cv_prog_cc_cross=yes
 
732
  fi
 
733
else
 
734
  echo "configure: failed program was:" >&5
 
735
  cat conftest.$ac_ext >&5
 
736
  ac_cv_prog_cc_works=no
 
737
fi
 
738
rm -fr conftest*
 
739
ac_ext=c
 
740
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
741
ac_cpp='$CPP $CPPFLAGS'
 
742
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
743
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
744
cross_compiling=$ac_cv_prog_cc_cross
 
745
 
 
746
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
747
if test $ac_cv_prog_cc_works = no; then
 
748
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
749
fi
 
750
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
751
echo "configure:752: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
752
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
753
cross_compiling=$ac_cv_prog_cc_cross
 
754
 
 
755
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
756
echo "configure:757: checking whether we are using GNU C" >&5
 
757
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
758
  echo $ac_n "(cached) $ac_c" 1>&6
 
759
else
 
760
  cat > conftest.c <<EOF
 
761
#ifdef __GNUC__
 
762
  yes;
 
763
#endif
 
764
EOF
 
765
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
766
  ac_cv_prog_gcc=yes
 
767
else
 
768
  ac_cv_prog_gcc=no
 
769
fi
 
770
fi
 
771
 
 
772
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
773
 
 
774
if test $ac_cv_prog_gcc = yes; then
 
775
  GCC=yes
 
776
else
 
777
  GCC=
 
778
fi
 
779
 
 
780
ac_test_CFLAGS="${CFLAGS+set}"
 
781
ac_save_CFLAGS="$CFLAGS"
 
782
CFLAGS=
 
783
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
784
echo "configure:785: checking whether ${CC-cc} accepts -g" >&5
 
785
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
786
  echo $ac_n "(cached) $ac_c" 1>&6
 
787
else
 
788
  echo 'void f(){}' > conftest.c
 
789
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
790
  ac_cv_prog_cc_g=yes
 
791
else
 
792
  ac_cv_prog_cc_g=no
 
793
fi
 
794
rm -f conftest*
 
795
 
 
796
fi
 
797
 
 
798
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
799
if test "$ac_test_CFLAGS" = set; then
 
800
  CFLAGS="$ac_save_CFLAGS"
 
801
elif test $ac_cv_prog_cc_g = yes; then
 
802
  if test "$GCC" = yes; then
 
803
    CFLAGS="-g -O2"
 
804
  else
 
805
    CFLAGS="-g"
 
806
  fi
 
807
else
 
808
  if test "$GCC" = yes; then
 
809
    CFLAGS="-O2"
 
810
  else
 
811
    CFLAGS=
 
812
  fi
 
813
fi
 
814
 
 
815
 
 
816
echo $ac_n "checking for mixed cygwin and native VC++ environment""... $ac_c" 1>&6
 
817
echo "configure:818: checking for mixed cygwin and native VC++ environment" >&5
 
818
if test "X$CC" = "Xcc.sh" -a "X$host" = "Xwin32"; then
 
819
        if test -x /usr/bin/cygpath; then
 
820
                CFLAGS="-O2"
 
821
                echo "$ac_t""yes" 1>&6
 
822
                MIXED_CYGWIN_VC=yes
 
823
        else
 
824
                echo "$ac_t""undeterminable" 1>&6
 
825
                { echo "configure: error: Seems to be mixed windows but not with cygwin" 1>&2; exit 1; }
 
826
        fi
 
827
else
 
828
        echo "$ac_t""no" 1>&6
 
829
        MIXED_CYGWIN_VC=no
 
830
fi
 
831
 
 
832
 
 
833
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
834
echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
835
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
836
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
837
  echo $ac_n "(cached) $ac_c" 1>&6
 
838
else
 
839
  cat > conftestmake <<\EOF
 
840
all:
 
841
        @echo 'ac_maketemp="${MAKE}"'
 
842
EOF
 
843
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
844
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
845
if test -n "$ac_maketemp"; then
 
846
  eval ac_cv_prog_make_${ac_make}_set=yes
 
847
else
 
848
  eval ac_cv_prog_make_${ac_make}_set=no
 
849
fi
 
850
rm -f conftestmake
 
851
fi
 
852
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
853
  echo "$ac_t""yes" 1>&6
 
854
  SET_MAKE=
 
855
else
 
856
  echo "$ac_t""no" 1>&6
 
857
  SET_MAKE="MAKE=${MAKE-make}"
 
858
fi
 
859
 
 
860
for ac_prog in ld.sh ld
 
861
do
 
862
# Extract the first word of "$ac_prog", so it can be a program name with args.
 
863
set dummy $ac_prog; ac_word=$2
 
864
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
865
echo "configure:866: checking for $ac_word" >&5
 
866
if eval "test \"`echo '$''{'ac_cv_prog_DED_LD'+set}'`\" = set"; then
 
867
  echo $ac_n "(cached) $ac_c" 1>&6
 
868
else
 
869
  if test -n "$DED_LD"; then
 
870
  ac_cv_prog_DED_LD="$DED_LD" # Let the user override the test.
 
871
else
 
872
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
873
  ac_dummy="$PATH"
 
874
  for ac_dir in $ac_dummy; do
 
875
    test -z "$ac_dir" && ac_dir=.
 
876
    if test -f $ac_dir/$ac_word; then
 
877
      ac_cv_prog_DED_LD="$ac_prog"
 
878
      break
 
879
    fi
 
880
  done
 
881
  IFS="$ac_save_ifs"
 
882
fi
 
883
fi
 
884
DED_LD="$ac_cv_prog_DED_LD"
 
885
if test -n "$DED_LD"; then
 
886
  echo "$ac_t""$DED_LD" 1>&6
 
887
else
 
888
  echo "$ac_t""no" 1>&6
 
889
fi
 
890
 
 
891
test -n "$DED_LD" && break
 
892
done
 
893
test -n "$DED_LD" || DED_LD="'$(CC)'"
 
894
 
 
895
 
 
896
 
 
897
# ODBC 
 
898
/bin/rm -f $ERL_TOP/lib/odbc/SKIP
 
899
 
 
900
have_pthread_lib=no
 
901
 
 
902
 
 
903
    case $host_os in
 
904
        win32|cygwin)
 
905
                TARGET_FLAGS="-DWIN32"
 
906
                echo $ac_n "checking for main in -lws2_32""... $ac_c" 1>&6
 
907
echo "configure:908: checking for main in -lws2_32" >&5
 
908
ac_lib_var=`echo ws2_32'_'main | sed 'y%./+-%__p_%'`
 
909
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
910
  echo $ac_n "(cached) $ac_c" 1>&6
 
911
else
 
912
  ac_save_LIBS="$LIBS"
 
913
LIBS="-lws2_32  $LIBS"
 
914
cat > conftest.$ac_ext <<EOF
 
915
#line 916 "configure"
 
916
#include "confdefs.h"
 
917
 
 
918
int main() {
 
919
main()
 
920
; return 0; }
 
921
EOF
 
922
if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
923
  rm -rf conftest*
 
924
  eval "ac_cv_lib_$ac_lib_var=yes"
 
925
else
 
926
  echo "configure: failed program was:" >&5
 
927
  cat conftest.$ac_ext >&5
 
928
  rm -rf conftest*
 
929
  eval "ac_cv_lib_$ac_lib_var=no"
 
930
fi
 
931
rm -f conftest*
 
932
LIBS="$ac_save_LIBS"
 
933
 
 
934
fi
 
935
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
936
  echo "$ac_t""yes" 1>&6
 
937
    ac_tr_lib=HAVE_LIB`echo ws2_32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
938
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
939
  cat >> confdefs.h <<EOF
 
940
#define $ac_tr_lib 1
 
941
EOF
 
942
 
 
943
  LIBS="-lws2_32 $LIBS"
 
944
 
 
945
else
 
946
  echo "$ac_t""no" 1>&6
 
947
fi
 
948
 
 
949
                if test ! -d "$with_odbc"; then                         
 
950
                    ODBC_LIB=""   
 
951
                    ODBC_INCLUDE=""
 
952
                else
 
953
                    ODBC_LIB=-L"$with_odbc/lib"
 
954
                    ODBC_INCLUDE="-I$with_odbc/include"
 
955
                fi  
 
956
            ;;
 
957
            *)
 
958
               TARGET_FLAGS="-DUNIX"
 
959
               echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
 
960
echo "configure:961: checking for pthread_create in -lpthread" >&5
 
961
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
 
962
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
963
  echo $ac_n "(cached) $ac_c" 1>&6
 
964
else
 
965
  ac_save_LIBS="$LIBS"
 
966
LIBS="-lpthread  $LIBS"
 
967
cat > conftest.$ac_ext <<EOF
 
968
#line 969 "configure"
 
969
#include "confdefs.h"
 
970
/* Override any gcc2 internal prototype to avoid an error.  */
 
971
/* We use char because int might match the return type of a gcc2
 
972
    builtin and then its argument prototype would still apply.  */
 
973
char pthread_create();
 
974
 
 
975
int main() {
 
976
pthread_create()
 
977
; return 0; }
 
978
EOF
 
979
if { (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
980
  rm -rf conftest*
 
981
  eval "ac_cv_lib_$ac_lib_var=yes"
 
982
else
 
983
  echo "configure: failed program was:" >&5
 
984
  cat conftest.$ac_ext >&5
 
985
  rm -rf conftest*
 
986
  eval "ac_cv_lib_$ac_lib_var=no"
 
987
fi
 
988
rm -f conftest*
 
989
LIBS="$ac_save_LIBS"
 
990
 
 
991
fi
 
992
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
993
  echo "$ac_t""yes" 1>&6
 
994
  cat >> confdefs.h <<\EOF
 
995
#define HAVE_LIBPTHREAD 1
 
996
EOF
 
997
 
 
998
                             LIBS="$LIBS -lpthread"
 
999
                             have_pthread_lib=yes
 
1000
else
 
1001
  echo "$ac_t""no" 1>&6
 
1002
fi
 
1003
 
 
1004
               if test ! -d "$with_odbc"; then                  
 
1005
               echo $ac_n "checking for odbc in standard locations""... $ac_c" 1>&6
 
1006
echo "configure:1007: checking for odbc in standard locations" >&5
 
1007
                 for dir in /usr/local/odbc /usr/local /usr/odbc \
 
1008
                     /usr /opt/local/pgm/odbc /usr/local/pgm/odbc
 
1009
                 do
 
1010
                    if test -f "$dir/include/sql.h"; then
 
1011
                      is_odbc_std_location=yes     
 
1012
                       ODBC_LIB=-L"$dir/lib"
 
1013
                       ODBC_INCLUDE="-I$dir/include"
 
1014
                       break    
 
1015
                    fi      
 
1016
                 done                           
 
1017
                 if  test "x$is_odbc_std_location" != "xyes"; then
 
1018
                    echo "$ac_t""no" 1>&6
 
1019
                    echo "configure: warning: No odbc library found skipping odbc" 1>&2
 
1020
                    echo "No odbc library found" > $ERL_TOP/lib/odbc/SKIP
 
1021
                 else
 
1022
                      echo "$ac_t""$ODBC_LIB" 1>&6
 
1023
                 fi     
 
1024
              else
 
1025
                ODBC_LIB=-L"$with_odbc/lib"
 
1026
                ODBC_INCLUDE="-I$with_odbc/include"
 
1027
              fi
 
1028
          ;;
 
1029
esac
 
1030
 
 
1031
echo $ac_n "checking for SQLAllocHandle in -lodbc""... $ac_c" 1>&6
 
1032
echo "configure:1033: checking for SQLAllocHandle in -lodbc" >&5
 
1033
ac_lib_var=`echo odbc'_'SQLAllocHandle | sed 'y%./+-%__p_%'`
 
1034
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1035
  echo $ac_n "(cached) $ac_c" 1>&6
 
1036
else
 
1037
  ac_save_LIBS="$LIBS"
 
1038
LIBS="-lodbc $ODBC_LIB $LIBS"
 
1039
cat > conftest.$ac_ext <<EOF
 
1040
#line 1041 "configure"
 
1041
#include "confdefs.h"
 
1042
/* Override any gcc2 internal prototype to avoid an error.  */
 
1043
/* We use char because int might match the return type of a gcc2
 
1044
    builtin and then its argument prototype would still apply.  */
 
1045
char SQLAllocHandle();
 
1046
 
 
1047
int main() {
 
1048
SQLAllocHandle()
 
1049
; return 0; }
 
1050
EOF
 
1051
if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1052
  rm -rf conftest*
 
1053
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1054
else
 
1055
  echo "configure: failed program was:" >&5
 
1056
  cat conftest.$ac_ext >&5
 
1057
  rm -rf conftest*
 
1058
  eval "ac_cv_lib_$ac_lib_var=no"
 
1059
fi
 
1060
rm -f conftest*
 
1061
LIBS="$ac_save_LIBS"
 
1062
 
 
1063
fi
 
1064
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1065
  echo "$ac_t""yes" 1>&6
 
1066
  ODBC_LIB="$ODBC_LIB -lodbc"
 
1067
else
 
1068
  echo "$ac_t""no" 1>&6
 
1069
fi
 
1070
 
 
1071
         
 
1072
 
 
1073
 
 
1074
 
 
1075
echo $ac_n "checking for main in -lodbc32""... $ac_c" 1>&6
 
1076
echo "configure:1077: checking for main in -lodbc32" >&5
 
1077
ac_lib_var=`echo odbc32'_'main | sed 'y%./+-%__p_%'`
 
1078
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1079
  echo $ac_n "(cached) $ac_c" 1>&6
 
1080
else
 
1081
  ac_save_LIBS="$LIBS"
 
1082
LIBS="-lodbc32  $LIBS"
 
1083
cat > conftest.$ac_ext <<EOF
 
1084
#line 1085 "configure"
 
1085
#include "confdefs.h"
 
1086
 
 
1087
int main() {
 
1088
main()
 
1089
; return 0; }
 
1090
EOF
 
1091
if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1092
  rm -rf conftest*
 
1093
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1094
else
 
1095
  echo "configure: failed program was:" >&5
 
1096
  cat conftest.$ac_ext >&5
 
1097
  rm -rf conftest*
 
1098
  eval "ac_cv_lib_$ac_lib_var=no"
 
1099
fi
 
1100
rm -f conftest*
 
1101
LIBS="$ac_save_LIBS"
 
1102
 
 
1103
fi
 
1104
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1105
  echo "$ac_t""yes" 1>&6
 
1106
    ac_tr_lib=HAVE_LIB`echo odbc32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1107
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1108
  cat >> confdefs.h <<EOF
 
1109
#define $ac_tr_lib 1
 
1110
EOF
 
1111
 
 
1112
  LIBS="-lodbc32 $LIBS"
 
1113
 
 
1114
else
 
1115
  echo "$ac_t""no" 1>&6
 
1116
fi
 
1117
 
 
1118
            
 
1119
# Sockets
 
1120
#--------------------------------------------------------------------
 
1121
#       Check for the existence of the -lsocket and -lnsl libraries.
 
1122
#       The order here is important, so that they end up in the right
 
1123
#       order in the command line generated by make.  Here are some
 
1124
#       special considerations:
 
1125
#       1. Use "connect" and "accept" to check for -lsocket, and
 
1126
#          "gethostbyname" to check for -lnsl.
 
1127
#       2. Use each function name only once:  can't redo a check because
 
1128
#          autoconf caches the results of the last check and won't redo it.
 
1129
#       3. Use -lnsl and -lsocket only if they supply procedures that
 
1130
#          aren't already present in the normal libraries.  This is because
 
1131
#          IRIX 5.2 has libraries, but they aren't needed and they're
 
1132
#          bogus:  they goof up name resolution if used.
 
1133
#       4. On some SVR4 systems, can't use -lsocket without -lnsl too.
 
1134
#          To get around this problem, check for both libraries together
 
1135
#          if -lsocket doesn't work by itself.
 
1136
#--------------------------------------------------------------------
 
1137
erl_checkBoth=0
 
1138
echo $ac_n "checking for connect""... $ac_c" 1>&6
 
1139
echo "configure:1140: checking for connect" >&5
 
1140
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
 
1141
  echo $ac_n "(cached) $ac_c" 1>&6
 
1142
else
 
1143
  cat > conftest.$ac_ext <<EOF
 
1144
#line 1145 "configure"
 
1145
#include "confdefs.h"
 
1146
/* System header to define __stub macros and hopefully few prototypes,
 
1147
    which can conflict with char connect(); below.  */
 
1148
#include <assert.h>
 
1149
/* Override any gcc2 internal prototype to avoid an error.  */
 
1150
/* We use char because int might match the return type of a gcc2
 
1151
    builtin and then its argument prototype would still apply.  */
 
1152
char connect();
 
1153
 
 
1154
int main() {
 
1155
 
 
1156
/* The GNU C library defines this for functions which it implements
 
1157
    to always fail with ENOSYS.  Some functions are actually named
 
1158
    something starting with __ and the normal name is an alias.  */
 
1159
#if defined (__stub_connect) || defined (__stub___connect)
 
1160
choke me
 
1161
#else
 
1162
connect();
 
1163
#endif
 
1164
 
 
1165
; return 0; }
 
1166
EOF
 
1167
if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1168
  rm -rf conftest*
 
1169
  eval "ac_cv_func_connect=yes"
 
1170
else
 
1171
  echo "configure: failed program was:" >&5
 
1172
  cat conftest.$ac_ext >&5
 
1173
  rm -rf conftest*
 
1174
  eval "ac_cv_func_connect=no"
 
1175
fi
 
1176
rm -f conftest*
 
1177
fi
 
1178
 
 
1179
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
 
1180
  echo "$ac_t""yes" 1>&6
 
1181
  erl_checkSocket=0
 
1182
else
 
1183
  echo "$ac_t""no" 1>&6
 
1184
erl_checkSocket=1
 
1185
fi
 
1186
 
 
1187
if test "$erl_checkSocket" = 1; then
 
1188
    echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
 
1189
echo "configure:1190: checking for socket in -lsocket" >&5
 
1190
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
 
1191
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1192
  echo $ac_n "(cached) $ac_c" 1>&6
 
1193
else
 
1194
  ac_save_LIBS="$LIBS"
 
1195
LIBS="-lsocket  $LIBS"
 
1196
cat > conftest.$ac_ext <<EOF
 
1197
#line 1198 "configure"
 
1198
#include "confdefs.h"
 
1199
/* Override any gcc2 internal prototype to avoid an error.  */
 
1200
/* We use char because int might match the return type of a gcc2
 
1201
    builtin and then its argument prototype would still apply.  */
 
1202
char socket();
 
1203
 
 
1204
int main() {
 
1205
socket()
 
1206
; return 0; }
 
1207
EOF
 
1208
if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1209
  rm -rf conftest*
 
1210
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1211
else
 
1212
  echo "configure: failed program was:" >&5
 
1213
  cat conftest.$ac_ext >&5
 
1214
  rm -rf conftest*
 
1215
  eval "ac_cv_lib_$ac_lib_var=no"
 
1216
fi
 
1217
rm -f conftest*
 
1218
LIBS="$ac_save_LIBS"
 
1219
 
 
1220
fi
 
1221
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1222
  echo "$ac_t""yes" 1>&6
 
1223
  LIBS="$LIBS -lsocket"
 
1224
else
 
1225
  echo "$ac_t""no" 1>&6
 
1226
erl_checkBoth=1
 
1227
fi
 
1228
 
 
1229
fi
 
1230
if test "$erl_checkBoth" = 1; then
 
1231
    tk_oldLibs=$LIBS
 
1232
    LIBS="$LIBS -lsocket -lnsl"
 
1233
    echo $ac_n "checking for accept""... $ac_c" 1>&6
 
1234
echo "configure:1235: checking for accept" >&5
 
1235
if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
 
1236
  echo $ac_n "(cached) $ac_c" 1>&6
 
1237
else
 
1238
  cat > conftest.$ac_ext <<EOF
 
1239
#line 1240 "configure"
 
1240
#include "confdefs.h"
 
1241
/* System header to define __stub macros and hopefully few prototypes,
 
1242
    which can conflict with char accept(); below.  */
 
1243
#include <assert.h>
 
1244
/* Override any gcc2 internal prototype to avoid an error.  */
 
1245
/* We use char because int might match the return type of a gcc2
 
1246
    builtin and then its argument prototype would still apply.  */
 
1247
char accept();
 
1248
 
 
1249
int main() {
 
1250
 
 
1251
/* The GNU C library defines this for functions which it implements
 
1252
    to always fail with ENOSYS.  Some functions are actually named
 
1253
    something starting with __ and the normal name is an alias.  */
 
1254
#if defined (__stub_accept) || defined (__stub___accept)
 
1255
choke me
 
1256
#else
 
1257
accept();
 
1258
#endif
 
1259
 
 
1260
; return 0; }
 
1261
EOF
 
1262
if { (eval echo configure:1263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1263
  rm -rf conftest*
 
1264
  eval "ac_cv_func_accept=yes"
 
1265
else
 
1266
  echo "configure: failed program was:" >&5
 
1267
  cat conftest.$ac_ext >&5
 
1268
  rm -rf conftest*
 
1269
  eval "ac_cv_func_accept=no"
 
1270
fi
 
1271
rm -f conftest*
 
1272
fi
 
1273
 
 
1274
if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
 
1275
  echo "$ac_t""yes" 1>&6
 
1276
  odbc_erl_checkNsl=0
 
1277
else
 
1278
  echo "$ac_t""no" 1>&6
 
1279
LIBS=$tk_oldLibs
 
1280
fi
 
1281
 
 
1282
fi
 
1283
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
 
1284
echo "configure:1285: checking for gethostbyname" >&5
 
1285
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
 
1286
  echo $ac_n "(cached) $ac_c" 1>&6
 
1287
else
 
1288
  cat > conftest.$ac_ext <<EOF
 
1289
#line 1290 "configure"
 
1290
#include "confdefs.h"
 
1291
/* System header to define __stub macros and hopefully few prototypes,
 
1292
    which can conflict with char gethostbyname(); below.  */
 
1293
#include <assert.h>
 
1294
/* Override any gcc2 internal prototype to avoid an error.  */
 
1295
/* We use char because int might match the return type of a gcc2
 
1296
    builtin and then its argument prototype would still apply.  */
 
1297
char gethostbyname();
 
1298
 
 
1299
int main() {
 
1300
 
 
1301
/* The GNU C library defines this for functions which it implements
 
1302
    to always fail with ENOSYS.  Some functions are actually named
 
1303
    something starting with __ and the normal name is an alias.  */
 
1304
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
1305
choke me
 
1306
#else
 
1307
gethostbyname();
 
1308
#endif
 
1309
 
 
1310
; return 0; }
 
1311
EOF
 
1312
if { (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1313
  rm -rf conftest*
 
1314
  eval "ac_cv_func_gethostbyname=yes"
 
1315
else
 
1316
  echo "configure: failed program was:" >&5
 
1317
  cat conftest.$ac_ext >&5
 
1318
  rm -rf conftest*
 
1319
  eval "ac_cv_func_gethostbyname=no"
 
1320
fi
 
1321
rm -f conftest*
 
1322
fi
 
1323
 
 
1324
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
 
1325
  echo "$ac_t""yes" 1>&6
 
1326
  :
 
1327
else
 
1328
  echo "$ac_t""no" 1>&6
 
1329
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
 
1330
echo "configure:1331: checking for main in -lnsl" >&5
 
1331
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
 
1332
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1333
  echo $ac_n "(cached) $ac_c" 1>&6
 
1334
else
 
1335
  ac_save_LIBS="$LIBS"
 
1336
LIBS="-lnsl  $LIBS"
 
1337
cat > conftest.$ac_ext <<EOF
 
1338
#line 1339 "configure"
 
1339
#include "confdefs.h"
 
1340
 
 
1341
int main() {
 
1342
main()
 
1343
; return 0; }
 
1344
EOF
 
1345
if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1346
  rm -rf conftest*
 
1347
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1348
else
 
1349
  echo "configure: failed program was:" >&5
 
1350
  cat conftest.$ac_ext >&5
 
1351
  rm -rf conftest*
 
1352
  eval "ac_cv_lib_$ac_lib_var=no"
 
1353
fi
 
1354
rm -f conftest*
 
1355
LIBS="$ac_save_LIBS"
 
1356
 
 
1357
fi
 
1358
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1359
  echo "$ac_t""yes" 1>&6
 
1360
  LIBS="$LIBS -lnsl"
 
1361
else
 
1362
  echo "$ac_t""no" 1>&6
 
1363
fi
 
1364
 
 
1365
fi
 
1366
 
 
1367
 
 
1368
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1369
echo "configure:1370: checking how to run the C preprocessor" >&5
 
1370
# On Suns, sometimes $CPP names a directory.
 
1371
if test -n "$CPP" && test -d "$CPP"; then
 
1372
  CPP=
 
1373
fi
 
1374
if test -z "$CPP"; then
 
1375
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1376
  echo $ac_n "(cached) $ac_c" 1>&6
 
1377
else
 
1378
    # This must be in double quotes, not single quotes, because CPP may get
 
1379
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1380
  CPP="${CC-cc} -E"
 
1381
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1382
  # not just through cpp.
 
1383
  cat > conftest.$ac_ext <<EOF
 
1384
#line 1385 "configure"
 
1385
#include "confdefs.h"
 
1386
#include <assert.h>
 
1387
Syntax Error
 
1388
EOF
 
1389
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1390
{ (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1391
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1392
if test -z "$ac_err"; then
 
1393
  :
 
1394
else
 
1395
  echo "$ac_err" >&5
 
1396
  echo "configure: failed program was:" >&5
 
1397
  cat conftest.$ac_ext >&5
 
1398
  rm -rf conftest*
 
1399
  CPP="${CC-cc} -E -traditional-cpp"
 
1400
  cat > conftest.$ac_ext <<EOF
 
1401
#line 1402 "configure"
 
1402
#include "confdefs.h"
 
1403
#include <assert.h>
 
1404
Syntax Error
 
1405
EOF
 
1406
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1407
{ (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1408
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1409
if test -z "$ac_err"; then
 
1410
  :
 
1411
else
 
1412
  echo "$ac_err" >&5
 
1413
  echo "configure: failed program was:" >&5
 
1414
  cat conftest.$ac_ext >&5
 
1415
  rm -rf conftest*
 
1416
  CPP="${CC-cc} -nologo -E"
 
1417
  cat > conftest.$ac_ext <<EOF
 
1418
#line 1419 "configure"
 
1419
#include "confdefs.h"
 
1420
#include <assert.h>
 
1421
Syntax Error
 
1422
EOF
 
1423
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1424
{ (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1425
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1426
if test -z "$ac_err"; then
 
1427
  :
 
1428
else
 
1429
  echo "$ac_err" >&5
 
1430
  echo "configure: failed program was:" >&5
 
1431
  cat conftest.$ac_ext >&5
 
1432
  rm -rf conftest*
 
1433
  CPP=/lib/cpp
 
1434
fi
 
1435
rm -f conftest*
 
1436
fi
 
1437
rm -f conftest*
 
1438
fi
 
1439
rm -f conftest*
 
1440
  ac_cv_prog_CPP="$CPP"
 
1441
fi
 
1442
  CPP="$ac_cv_prog_CPP"
 
1443
else
 
1444
  ac_cv_prog_CPP="$CPP"
 
1445
fi
 
1446
echo "$ac_t""$CPP" 1>&6
 
1447
 
 
1448
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1449
echo "configure:1450: checking for ANSI C header files" >&5
 
1450
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1451
  echo $ac_n "(cached) $ac_c" 1>&6
 
1452
else
 
1453
  cat > conftest.$ac_ext <<EOF
 
1454
#line 1455 "configure"
 
1455
#include "confdefs.h"
 
1456
#include <stdlib.h>
 
1457
#include <stdarg.h>
 
1458
#include <string.h>
 
1459
#include <float.h>
 
1460
EOF
 
1461
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1462
{ (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1463
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1464
if test -z "$ac_err"; then
 
1465
  rm -rf conftest*
 
1466
  ac_cv_header_stdc=yes
 
1467
else
 
1468
  echo "$ac_err" >&5
 
1469
  echo "configure: failed program was:" >&5
 
1470
  cat conftest.$ac_ext >&5
 
1471
  rm -rf conftest*
 
1472
  ac_cv_header_stdc=no
 
1473
fi
 
1474
rm -f conftest*
 
1475
 
 
1476
if test $ac_cv_header_stdc = yes; then
 
1477
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
1478
cat > conftest.$ac_ext <<EOF
 
1479
#line 1480 "configure"
 
1480
#include "confdefs.h"
 
1481
#include <string.h>
 
1482
EOF
 
1483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1484
  egrep "memchr" >/dev/null 2>&1; then
 
1485
  :
 
1486
else
 
1487
  rm -rf conftest*
 
1488
  ac_cv_header_stdc=no
 
1489
fi
 
1490
rm -f conftest*
 
1491
 
 
1492
fi
 
1493
 
 
1494
if test $ac_cv_header_stdc = yes; then
 
1495
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
1496
cat > conftest.$ac_ext <<EOF
 
1497
#line 1498 "configure"
 
1498
#include "confdefs.h"
 
1499
#include <stdlib.h>
 
1500
EOF
 
1501
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1502
  egrep "free" >/dev/null 2>&1; then
 
1503
  :
 
1504
else
 
1505
  rm -rf conftest*
 
1506
  ac_cv_header_stdc=no
 
1507
fi
 
1508
rm -f conftest*
 
1509
 
 
1510
fi
 
1511
 
 
1512
if test $ac_cv_header_stdc = yes; then
 
1513
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
1514
if test "$cross_compiling" = yes; then
 
1515
  :
 
1516
else
 
1517
  cat > conftest.$ac_ext <<EOF
 
1518
#line 1519 "configure"
 
1519
#include "confdefs.h"
 
1520
#include <ctype.h>
 
1521
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1522
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
1523
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
1524
int main () { int i; for (i = 0; i < 256; i++)
 
1525
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1526
exit (0); }
 
1527
 
 
1528
EOF
 
1529
if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1530
then
 
1531
  :
 
1532
else
 
1533
  echo "configure: failed program was:" >&5
 
1534
  cat conftest.$ac_ext >&5
 
1535
  rm -fr conftest*
 
1536
  ac_cv_header_stdc=no
 
1537
fi
 
1538
rm -fr conftest*
 
1539
fi
 
1540
 
 
1541
fi
 
1542
fi
 
1543
 
 
1544
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
1545
if test $ac_cv_header_stdc = yes; then
 
1546
  cat >> confdefs.h <<\EOF
 
1547
#define STDC_HEADERS 1
 
1548
EOF
 
1549
 
 
1550
fi
 
1551
 
 
1552
case $have_pthread_lib-$host_os in
 
1553
    yes-linux*)
 
1554
                echo $ac_n "checking for Native POSIX Thread Library""... $ac_c" 1>&6
 
1555
echo "configure:1556: checking for Native POSIX Thread Library" >&5
 
1556
        case `getconf GNU_LIBPTHREAD_VERSION 2>/dev/null` in
 
1557
            nptl*) nptl=yes;;
 
1558
            NPTL*) nptl=yes;;
 
1559
            *)  nptl=no;;
 
1560
        esac
 
1561
        echo "$ac_t""$nptl" 1>&6
 
1562
        if test $nptl = yes; then
 
1563
            need_nptl_incldir=no
 
1564
            ac_safe=`echo "nptl/pthread.h" | sed 'y%./+-%__p_%'`
 
1565
echo $ac_n "checking for nptl/pthread.h""... $ac_c" 1>&6
 
1566
echo "configure:1567: checking for nptl/pthread.h" >&5
 
1567
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1568
  echo $ac_n "(cached) $ac_c" 1>&6
 
1569
else
 
1570
  cat > conftest.$ac_ext <<EOF
 
1571
#line 1572 "configure"
 
1572
#include "confdefs.h"
 
1573
#include <nptl/pthread.h>
 
1574
EOF
 
1575
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1576
{ (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1577
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1578
if test -z "$ac_err"; then
 
1579
  rm -rf conftest*
 
1580
  eval "ac_cv_header_$ac_safe=yes"
 
1581
else
 
1582
  echo "$ac_err" >&5
 
1583
  echo "configure: failed program was:" >&5
 
1584
  cat conftest.$ac_ext >&5
 
1585
  rm -rf conftest*
 
1586
  eval "ac_cv_header_$ac_safe=no"
 
1587
fi
 
1588
rm -f conftest*
 
1589
fi
 
1590
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1591
  echo "$ac_t""yes" 1>&6
 
1592
  need_nptl_incldir=yes
 
1593
else
 
1594
  echo "$ac_t""no" 1>&6
 
1595
fi
 
1596
 
 
1597
            if test $need_nptl_incldir = yes; then
 
1598
                # Ahh...
 
1599
                nptl_path="$C_INCLUDE_PATH:$CPATH:/usr/local/include:/usr/include"
 
1600
                nptl_ws_path=
 
1601
                save_ifs="$IFS"; IFS=":"
 
1602
                for dir in $nptl_path; do
 
1603
                    if test "x$dir" != "x"; then
 
1604
                        nptl_ws_path="$nptl_ws_path $dir"
 
1605
                    fi
 
1606
                done
 
1607
                IFS=$save_ifs
 
1608
                nptl_incldir=
 
1609
                for dir in $nptl_ws_path; do
 
1610
                    ac_safe=`echo "$dir/nptl/pthread.h" | sed 'y%./+-%__p_%'`
 
1611
echo $ac_n "checking for $dir/nptl/pthread.h""... $ac_c" 1>&6
 
1612
echo "configure:1613: checking for $dir/nptl/pthread.h" >&5
 
1613
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1614
  echo $ac_n "(cached) $ac_c" 1>&6
 
1615
else
 
1616
  cat > conftest.$ac_ext <<EOF
 
1617
#line 1618 "configure"
 
1618
#include "confdefs.h"
 
1619
#include <$dir/nptl/pthread.h>
 
1620
EOF
 
1621
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1622
{ (eval echo configure:1623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1623
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1624
if test -z "$ac_err"; then
 
1625
  rm -rf conftest*
 
1626
  eval "ac_cv_header_$ac_safe=yes"
 
1627
else
 
1628
  echo "$ac_err" >&5
 
1629
  echo "configure: failed program was:" >&5
 
1630
  cat conftest.$ac_ext >&5
 
1631
  rm -rf conftest*
 
1632
  eval "ac_cv_header_$ac_safe=no"
 
1633
fi
 
1634
rm -f conftest*
 
1635
fi
 
1636
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1637
  echo "$ac_t""yes" 1>&6
 
1638
  nptl_incldir=$dir/nptl
 
1639
else
 
1640
  echo "$ac_t""no" 1>&6
 
1641
fi
 
1642
 
 
1643
                    if test "x$nptl_incldir" != "x"; then
 
1644
                        CFLAGS="$CFLAGS -isystem $nptl_incldir"
 
1645
                                                CPPFLAGS="$CPPFLAGS -isystem $nptl_incldir"
 
1646
                        break
 
1647
                    fi
 
1648
                done
 
1649
                if test "x$nptl_incldir" = "x"; then
 
1650
                    { echo "configure: error: Failed to locate nptl system include directory" 1>&2; exit 1; }
 
1651
                fi
 
1652
            fi
 
1653
        fi
 
1654
        ;;
 
1655
    *)
 
1656
        ;;
 
1657
esac
 
1658
for ac_hdr in fcntl.h netdb.h stdlib.h string.h sys/socket.h
 
1659
do
 
1660
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1661
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1662
echo "configure:1663: checking for $ac_hdr" >&5
 
1663
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1664
  echo $ac_n "(cached) $ac_c" 1>&6
 
1665
else
 
1666
  cat > conftest.$ac_ext <<EOF
 
1667
#line 1668 "configure"
 
1668
#include "confdefs.h"
 
1669
#include <$ac_hdr>
 
1670
EOF
 
1671
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1672
{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1673
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1674
if test -z "$ac_err"; then
 
1675
  rm -rf conftest*
 
1676
  eval "ac_cv_header_$ac_safe=yes"
 
1677
else
 
1678
  echo "$ac_err" >&5
 
1679
  echo "configure: failed program was:" >&5
 
1680
  cat conftest.$ac_ext >&5
 
1681
  rm -rf conftest*
 
1682
  eval "ac_cv_header_$ac_safe=no"
 
1683
fi
 
1684
rm -f conftest*
 
1685
fi
 
1686
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1687
  echo "$ac_t""yes" 1>&6
 
1688
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1689
  cat >> confdefs.h <<EOF
 
1690
#define $ac_tr_hdr 1
 
1691
EOF
 
1692
 
 
1693
else
 
1694
  echo "$ac_t""no" 1>&6
 
1695
fi
 
1696
done
 
1697
 
 
1698
 
 
1699
echo $ac_n "checking for working const""... $ac_c" 1>&6
 
1700
echo "configure:1701: checking for working const" >&5
 
1701
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 
1702
  echo $ac_n "(cached) $ac_c" 1>&6
 
1703
else
 
1704
  cat > conftest.$ac_ext <<EOF
 
1705
#line 1706 "configure"
 
1706
#include "confdefs.h"
 
1707
 
 
1708
int main() {
 
1709
 
 
1710
/* Ultrix mips cc rejects this.  */
 
1711
typedef int charset[2]; const charset x;
 
1712
/* SunOS 4.1.1 cc rejects this.  */
 
1713
char const *const *ccp;
 
1714
char **p;
 
1715
/* NEC SVR4.0.2 mips cc rejects this.  */
 
1716
struct point {int x, y;};
 
1717
static struct point const zero = {0,0};
 
1718
/* AIX XL C 1.02.0.0 rejects this.
 
1719
   It does not let you subtract one const X* pointer from another in an arm
 
1720
   of an if-expression whose if-part is not a constant expression */
 
1721
const char *g = "string";
 
1722
ccp = &g + (g ? g-g : 0);
 
1723
/* HPUX 7.0 cc rejects these. */
 
1724
++ccp;
 
1725
p = (char**) ccp;
 
1726
ccp = (char const *const *) p;
 
1727
{ /* SCO 3.2v4 cc rejects this.  */
 
1728
  char *t;
 
1729
  char const *s = 0 ? (char *) 0 : (char const *) 0;
 
1730
 
 
1731
  *t++ = 0;
 
1732
}
 
1733
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
1734
  int x[] = {25, 17};
 
1735
  const int *foo = &x[0];
 
1736
  ++foo;
 
1737
}
 
1738
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
1739
  typedef const int *iptr;
 
1740
  iptr p = 0;
 
1741
  ++p;
 
1742
}
 
1743
{ /* AIX XL C 1.02.0.0 rejects this saying
 
1744
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
1745
  struct s { int j; const int *ap[3]; };
 
1746
  struct s *b; b->j = 5;
 
1747
}
 
1748
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
1749
  const int foo = 10;
 
1750
}
 
1751
 
 
1752
; return 0; }
 
1753
EOF
 
1754
if { (eval echo configure:1755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1755
  rm -rf conftest*
 
1756
  ac_cv_c_const=yes
 
1757
else
 
1758
  echo "configure: failed program was:" >&5
 
1759
  cat conftest.$ac_ext >&5
 
1760
  rm -rf conftest*
 
1761
  ac_cv_c_const=no
 
1762
fi
 
1763
rm -f conftest*
 
1764
fi
 
1765
 
 
1766
echo "$ac_t""$ac_cv_c_const" 1>&6
 
1767
if test $ac_cv_c_const = no; then
 
1768
  cat >> confdefs.h <<\EOF
 
1769
#define const 
 
1770
EOF
 
1771
 
 
1772
fi
 
1773
 
 
1774
echo $ac_n "checking for size_t""... $ac_c" 1>&6
 
1775
echo "configure:1776: checking for size_t" >&5
 
1776
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
 
1777
  echo $ac_n "(cached) $ac_c" 1>&6
 
1778
else
 
1779
  cat > conftest.$ac_ext <<EOF
 
1780
#line 1781 "configure"
 
1781
#include "confdefs.h"
 
1782
#include <sys/types.h>
 
1783
#if STDC_HEADERS
 
1784
#include <stdlib.h>
 
1785
#include <stddef.h>
 
1786
#endif
 
1787
EOF
 
1788
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1789
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1790
  rm -rf conftest*
 
1791
  ac_cv_type_size_t=yes
 
1792
else
 
1793
  rm -rf conftest*
 
1794
  ac_cv_type_size_t=no
 
1795
fi
 
1796
rm -f conftest*
 
1797
 
 
1798
fi
 
1799
echo "$ac_t""$ac_cv_type_size_t" 1>&6
 
1800
if test $ac_cv_type_size_t = no; then
 
1801
  cat >> confdefs.h <<\EOF
 
1802
#define size_t unsigned
 
1803
EOF
 
1804
 
 
1805
fi
 
1806
 
 
1807
 
 
1808
for ac_func in memset socket
 
1809
do
 
1810
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1811
echo "configure:1812: checking for $ac_func" >&5
 
1812
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1813
  echo $ac_n "(cached) $ac_c" 1>&6
 
1814
else
 
1815
  cat > conftest.$ac_ext <<EOF
 
1816
#line 1817 "configure"
 
1817
#include "confdefs.h"
 
1818
/* System header to define __stub macros and hopefully few prototypes,
 
1819
    which can conflict with char $ac_func(); below.  */
 
1820
#include <assert.h>
 
1821
/* Override any gcc2 internal prototype to avoid an error.  */
 
1822
/* We use char because int might match the return type of a gcc2
 
1823
    builtin and then its argument prototype would still apply.  */
 
1824
char $ac_func();
 
1825
 
 
1826
int main() {
 
1827
 
 
1828
/* The GNU C library defines this for functions which it implements
 
1829
    to always fail with ENOSYS.  Some functions are actually named
 
1830
    something starting with __ and the normal name is an alias.  */
 
1831
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
1832
choke me
 
1833
#else
 
1834
$ac_func();
 
1835
#endif
 
1836
 
 
1837
; return 0; }
 
1838
EOF
 
1839
if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1840
  rm -rf conftest*
 
1841
  eval "ac_cv_func_$ac_func=yes"
 
1842
else
 
1843
  echo "configure: failed program was:" >&5
 
1844
  cat conftest.$ac_ext >&5
 
1845
  rm -rf conftest*
 
1846
  eval "ac_cv_func_$ac_func=no"
 
1847
fi
 
1848
rm -f conftest*
 
1849
fi
 
1850
 
 
1851
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
1852
  echo "$ac_t""yes" 1>&6
 
1853
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1854
  cat >> confdefs.h <<EOF
 
1855
#define $ac_tr_func 1
 
1856
EOF
 
1857
 
 
1858
else
 
1859
  echo "$ac_t""no" 1>&6
 
1860
fi
 
1861
done
 
1862
 
 
1863
 
 
1864
trap '' 1 2 15
 
1865
 
 
1866
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
1867
 
 
1868
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1869
# Let make expand exec_prefix.
 
1870
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
1871
 
 
1872
# Any assignment to VPATH causes Sun make to only execute
 
1873
# the first set of double-colon rules, so remove it if not needed.
 
1874
# If there is a colon in the path, we need to keep it.
 
1875
if test "x$srcdir" = x.; then
 
1876
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
1877
fi
 
1878
 
 
1879
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
1880
 
 
1881
# Transform confdefs.h into DEFS.
 
1882
# Protect against shell expansion while executing Makefile rules.
 
1883
# Protect against Makefile macro expansion.
 
1884
cat > conftest.defs <<\EOF
 
1885
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
 
1886
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
 
1887
s%\[%\\&%g
 
1888
s%\]%\\&%g
 
1889
s%\$%$$%g
 
1890
EOF
 
1891
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
 
1892
rm -f conftest.defs
 
1893
 
 
1894
 
 
1895
# Without the "./", some shells look in PATH for config.status.
 
1896
: ${CONFIG_STATUS=./config.status}
 
1897
 
 
1898
echo creating $CONFIG_STATUS
 
1899
rm -f $CONFIG_STATUS
 
1900
cat > $CONFIG_STATUS <<EOF
 
1901
#! /bin/sh
 
1902
# Generated automatically by configure.
 
1903
# Run this file to recreate the current configuration.
 
1904
# This directory was configured as follows,
 
1905
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1906
#
 
1907
# $0 $ac_configure_args
 
1908
#
 
1909
# Compiler output produced by configure, useful for debugging
 
1910
# configure, is in ./config.log if it exists.
 
1911
 
 
1912
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
1913
for ac_option
 
1914
do
 
1915
  case "\$ac_option" in
 
1916
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
1917
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
1918
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
1919
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
1920
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
1921
    exit 0 ;;
 
1922
  -help | --help | --hel | --he | --h)
 
1923
    echo "\$ac_cs_usage"; exit 0 ;;
 
1924
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
1925
  esac
 
1926
done
 
1927
 
 
1928
ac_given_srcdir=$srcdir
 
1929
 
 
1930
trap 'rm -fr `echo "c_src/$host/Makefile:c_src/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
1931
EOF
 
1932
cat >> $CONFIG_STATUS <<EOF
 
1933
 
 
1934
# Protect against being on the right side of a sed subst in config.status.
 
1935
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
1936
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
1937
$ac_vpsub
 
1938
$extrasub
 
1939
s%@SHELL@%$SHELL%g
 
1940
s%@CFLAGS@%$CFLAGS%g
 
1941
s%@CPPFLAGS@%$CPPFLAGS%g
 
1942
s%@CXXFLAGS@%$CXXFLAGS%g
 
1943
s%@FFLAGS@%$FFLAGS%g
 
1944
s%@DEFS@%$DEFS%g
 
1945
s%@LDFLAGS@%$LDFLAGS%g
 
1946
s%@LIBS@%$LIBS%g
 
1947
s%@exec_prefix@%$exec_prefix%g
 
1948
s%@prefix@%$prefix%g
 
1949
s%@program_transform_name@%$program_transform_name%g
 
1950
s%@bindir@%$bindir%g
 
1951
s%@sbindir@%$sbindir%g
 
1952
s%@libexecdir@%$libexecdir%g
 
1953
s%@datadir@%$datadir%g
 
1954
s%@sysconfdir@%$sysconfdir%g
 
1955
s%@sharedstatedir@%$sharedstatedir%g
 
1956
s%@localstatedir@%$localstatedir%g
 
1957
s%@libdir@%$libdir%g
 
1958
s%@includedir@%$includedir%g
 
1959
s%@oldincludedir@%$oldincludedir%g
 
1960
s%@infodir@%$infodir%g
 
1961
s%@mandir@%$mandir%g
 
1962
s%@host@%$host%g
 
1963
s%@host_alias@%$host_alias%g
 
1964
s%@host_cpu@%$host_cpu%g
 
1965
s%@host_vendor@%$host_vendor%g
 
1966
s%@host_os@%$host_os%g
 
1967
s%@CC@%$CC%g
 
1968
s%@MIXED_CYGWIN_VC@%$MIXED_CYGWIN_VC%g
 
1969
s%@SET_MAKE@%$SET_MAKE%g
 
1970
s%@DED_LD@%$DED_LD%g
 
1971
s%@TARGET_FLAGS@%$TARGET_FLAGS%g
 
1972
s%@ODBC_LIB@%$ODBC_LIB%g
 
1973
s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
 
1974
s%@CPP@%$CPP%g
 
1975
 
 
1976
CEOF
 
1977
EOF
 
1978
 
 
1979
cat >> $CONFIG_STATUS <<\EOF
 
1980
 
 
1981
# Split the substitutions into bite-sized pieces for seds with
 
1982
# small command number limits, like on Digital OSF/1 and HP-UX.
 
1983
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
1984
ac_file=1 # Number of current file.
 
1985
ac_beg=1 # First line for current file.
 
1986
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
1987
ac_more_lines=:
 
1988
ac_sed_cmds=""
 
1989
while $ac_more_lines; do
 
1990
  if test $ac_beg -gt 1; then
 
1991
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
1992
  else
 
1993
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
1994
  fi
 
1995
  if test ! -s conftest.s$ac_file; then
 
1996
    ac_more_lines=false
 
1997
    rm -f conftest.s$ac_file
 
1998
  else
 
1999
    if test -z "$ac_sed_cmds"; then
 
2000
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
2001
    else
 
2002
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
2003
    fi
 
2004
    ac_file=`expr $ac_file + 1`
 
2005
    ac_beg=$ac_end
 
2006
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
2007
  fi
 
2008
done
 
2009
if test -z "$ac_sed_cmds"; then
 
2010
  ac_sed_cmds=cat
 
2011
fi
 
2012
EOF
 
2013
 
 
2014
cat >> $CONFIG_STATUS <<EOF
 
2015
 
 
2016
CONFIG_FILES=\${CONFIG_FILES-"c_src/$host/Makefile:c_src/Makefile.in"}
 
2017
EOF
 
2018
cat >> $CONFIG_STATUS <<\EOF
 
2019
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
2020
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
2021
  case "$ac_file" in
 
2022
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
2023
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
2024
  *) ac_file_in="${ac_file}.in" ;;
 
2025
  esac
 
2026
 
 
2027
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
2028
 
 
2029
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
2030
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
2031
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
2032
    # The file is in a subdirectory.
 
2033
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
2034
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
2035
    # A "../" for each directory in $ac_dir_suffix.
 
2036
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
2037
  else
 
2038
    ac_dir_suffix= ac_dots=
 
2039
  fi
 
2040
 
 
2041
  case "$ac_given_srcdir" in
 
2042
  .)  srcdir=.
 
2043
      if test -z "$ac_dots"; then top_srcdir=.
 
2044
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
2045
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
2046
  *) # Relative path.
 
2047
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
2048
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
2049
  esac
 
2050
 
 
2051
 
 
2052
  echo creating "$ac_file"
 
2053
  rm -f "$ac_file"
 
2054
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
2055
  case "$ac_file" in
 
2056
  *Makefile*) ac_comsub="1i\\
 
2057
# $configure_input" ;;
 
2058
  *) ac_comsub= ;;
 
2059
  esac
 
2060
 
 
2061
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
2062
  sed -e "$ac_comsub
 
2063
s%@configure_input@%$configure_input%g
 
2064
s%@srcdir@%$srcdir%g
 
2065
s%@top_srcdir@%$top_srcdir%g
 
2066
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
2067
fi; done
 
2068
rm -f conftest.s*
 
2069
 
 
2070
EOF
 
2071
cat >> $CONFIG_STATUS <<EOF
 
2072
 
 
2073
EOF
 
2074
cat >> $CONFIG_STATUS <<\EOF
 
2075
 
 
2076
exit 0
 
2077
EOF
 
2078
chmod +x $CONFIG_STATUS
 
2079
rm -fr confdefs* $ac_clean_files
 
2080
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
2081