~ubuntu-branches/ubuntu/dapper/freeradius/dapper-updates

« back to all changes in this revision

Viewing changes to src/modules/rlm_eap/types/rlm_eap_ttls/configure

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2004-12-29 20:19:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041229201942-uj2e95la965uthc7
Tags: 1.0.1-2
* freeradius-dialupadmin Suggests php4-mysql | php4-pgsql
   Closes: #279419
* Added a two-second pause to restart in init.d script
   Closes: #262635
* FreeRADIUS module packages now depend on the same source
  version of the main FreeRADIUS package.
   Closes: #284353
* FreeRADIUS-dialupadmin's default paths in admin.conf are
  now correct.
   Closes: #280942
* FreeRADIUS-dialupadmin's help.php3 can now find README.
   Closes: #280941
* Fixes stolen from 1.0.2 CVS:
  - Bug fix to make udpfromto code work
  - radrelay shouldn't dump core if it can't read a VP from the
    detail file.
  - Only initialize the random pool once.
  - In rlm_sql, don't escape characters twice.
  - In rlm_ldap, only claim Auth-Type if a plain text password is present.
  - Locking fixes in threading code
  - Fix building on gcc-4.0 by not trying to access static auth_port from
    other files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --with-openssl-includes=DIR       Directory to look for OpenSSL include files"
 
16
ac_help="$ac_help
 
17
  --with-openssl-libraries=DIR      Directory to look for OpenSSL library files"
 
18
 
 
19
# Initialize some variables set by options.
 
20
# The variables have the same names as the options, with
 
21
# dashes changed to underlines.
 
22
build=NONE
 
23
cache_file=./config.cache
 
24
exec_prefix=NONE
 
25
host=NONE
 
26
no_create=
 
27
nonopt=NONE
 
28
no_recursion=
 
29
prefix=NONE
 
30
program_prefix=NONE
 
31
program_suffix=NONE
 
32
program_transform_name=s,x,x,
 
33
silent=
 
34
site=
 
35
srcdir=
 
36
target=NONE
 
37
verbose=
 
38
x_includes=NONE
 
39
x_libraries=NONE
 
40
bindir='${exec_prefix}/bin'
 
41
sbindir='${exec_prefix}/sbin'
 
42
libexecdir='${exec_prefix}/libexec'
 
43
datadir='${prefix}/share'
 
44
sysconfdir='${prefix}/etc'
 
45
sharedstatedir='${prefix}/com'
 
46
localstatedir='${prefix}/var'
 
47
libdir='${exec_prefix}/lib'
 
48
includedir='${prefix}/include'
 
49
oldincludedir='/usr/include'
 
50
infodir='${prefix}/info'
 
51
mandir='${prefix}/man'
 
52
 
 
53
# Initialize some other variables.
 
54
subdirs=
 
55
MFLAGS= MAKEFLAGS=
 
56
SHELL=${CONFIG_SHELL-/bin/sh}
 
57
# Maximum number of lines to put in a shell here document.
 
58
ac_max_here_lines=12
 
59
 
 
60
ac_prev=
 
61
for ac_option
 
62
do
 
63
 
 
64
  # If the previous option needs an argument, assign it.
 
65
  if test -n "$ac_prev"; then
 
66
    eval "$ac_prev=\$ac_option"
 
67
    ac_prev=
 
68
    continue
 
69
  fi
 
70
 
 
71
  case "$ac_option" in
 
72
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
73
  *) ac_optarg= ;;
 
74
  esac
 
75
 
 
76
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
77
 
 
78
  case "$ac_option" in
 
79
 
 
80
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
81
    ac_prev=bindir ;;
 
82
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
83
    bindir="$ac_optarg" ;;
 
84
 
 
85
  -build | --build | --buil | --bui | --bu)
 
86
    ac_prev=build ;;
 
87
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
88
    build="$ac_optarg" ;;
 
89
 
 
90
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
91
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
92
    ac_prev=cache_file ;;
 
93
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
94
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
95
    cache_file="$ac_optarg" ;;
 
96
 
 
97
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
98
    ac_prev=datadir ;;
 
99
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
100
  | --da=*)
 
101
    datadir="$ac_optarg" ;;
 
102
 
 
103
  -disable-* | --disable-*)
 
104
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
105
    # Reject names that are not valid shell variable names.
 
106
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
107
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
108
    fi
 
109
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
110
    eval "enable_${ac_feature}=no" ;;
 
111
 
 
112
  -enable-* | --enable-*)
 
113
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
114
    # Reject names that are not valid shell variable names.
 
115
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
116
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
117
    fi
 
118
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
119
    case "$ac_option" in
 
120
      *=*) ;;
 
121
      *) ac_optarg=yes ;;
 
122
    esac
 
123
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
124
 
 
125
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
126
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
127
  | --exec | --exe | --ex)
 
128
    ac_prev=exec_prefix ;;
 
129
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
130
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
131
  | --exec=* | --exe=* | --ex=*)
 
132
    exec_prefix="$ac_optarg" ;;
 
133
 
 
134
  -gas | --gas | --ga | --g)
 
135
    # Obsolete; use --with-gas.
 
136
    with_gas=yes ;;
 
137
 
 
138
  -help | --help | --hel | --he)
 
139
    # Omit some internal or obsolete options to make the list less imposing.
 
140
    # This message is too long to be a string in the A/UX 3.1 sh.
 
141
    cat << EOF
 
142
Usage: configure [options] [host]
 
143
Options: [defaults in brackets after descriptions]
 
144
Configuration:
 
145
  --cache-file=FILE       cache test results in FILE
 
146
  --help                  print this message
 
147
  --no-create             do not create output files
 
148
  --quiet, --silent       do not print \`checking...' messages
 
149
  --version               print the version of autoconf that created configure
 
150
Directory and file names:
 
151
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
152
                          [$ac_default_prefix]
 
153
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
154
                          [same as prefix]
 
155
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
156
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
157
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
158
  --datadir=DIR           read-only architecture-independent data in DIR
 
159
                          [PREFIX/share]
 
160
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
161
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
162
                          [PREFIX/com]
 
163
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
164
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
165
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
166
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
167
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
168
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
169
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
170
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
171
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
172
  --program-transform-name=PROGRAM
 
173
                          run sed PROGRAM on installed program names
 
174
EOF
 
175
    cat << EOF
 
176
Host type:
 
177
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
178
  --host=HOST             configure for HOST [guessed]
 
179
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
180
Features and packages:
 
181
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
182
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
183
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
184
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
185
  --x-includes=DIR        X include files are in DIR
 
186
  --x-libraries=DIR       X library files are in DIR
 
187
EOF
 
188
    if test -n "$ac_help"; then
 
189
      echo "--enable and --with options recognized:$ac_help"
 
190
    fi
 
191
    exit 0 ;;
 
192
 
 
193
  -host | --host | --hos | --ho)
 
194
    ac_prev=host ;;
 
195
  -host=* | --host=* | --hos=* | --ho=*)
 
196
    host="$ac_optarg" ;;
 
197
 
 
198
  -includedir | --includedir | --includedi | --included | --include \
 
199
  | --includ | --inclu | --incl | --inc)
 
200
    ac_prev=includedir ;;
 
201
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
202
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
203
    includedir="$ac_optarg" ;;
 
204
 
 
205
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
206
    ac_prev=infodir ;;
 
207
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
208
    infodir="$ac_optarg" ;;
 
209
 
 
210
  -libdir | --libdir | --libdi | --libd)
 
211
    ac_prev=libdir ;;
 
212
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
213
    libdir="$ac_optarg" ;;
 
214
 
 
215
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
216
  | --libexe | --libex | --libe)
 
217
    ac_prev=libexecdir ;;
 
218
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
219
  | --libexe=* | --libex=* | --libe=*)
 
220
    libexecdir="$ac_optarg" ;;
 
221
 
 
222
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
223
  | --localstate | --localstat | --localsta | --localst \
 
224
  | --locals | --local | --loca | --loc | --lo)
 
225
    ac_prev=localstatedir ;;
 
226
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
227
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
228
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
229
    localstatedir="$ac_optarg" ;;
 
230
 
 
231
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
232
    ac_prev=mandir ;;
 
233
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
234
    mandir="$ac_optarg" ;;
 
235
 
 
236
  -nfp | --nfp | --nf)
 
237
    # Obsolete; use --without-fp.
 
238
    with_fp=no ;;
 
239
 
 
240
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
241
  | --no-cr | --no-c)
 
242
    no_create=yes ;;
 
243
 
 
244
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
245
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
246
    no_recursion=yes ;;
 
247
 
 
248
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
249
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
250
  | --oldin | --oldi | --old | --ol | --o)
 
251
    ac_prev=oldincludedir ;;
 
252
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
253
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
254
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
255
    oldincludedir="$ac_optarg" ;;
 
256
 
 
257
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
258
    ac_prev=prefix ;;
 
259
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
260
    prefix="$ac_optarg" ;;
 
261
 
 
262
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
263
  | --program-pre | --program-pr | --program-p)
 
264
    ac_prev=program_prefix ;;
 
265
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
266
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
267
    program_prefix="$ac_optarg" ;;
 
268
 
 
269
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
270
  | --program-suf | --program-su | --program-s)
 
271
    ac_prev=program_suffix ;;
 
272
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
273
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
274
    program_suffix="$ac_optarg" ;;
 
275
 
 
276
  -program-transform-name | --program-transform-name \
 
277
  | --program-transform-nam | --program-transform-na \
 
278
  | --program-transform-n | --program-transform- \
 
279
  | --program-transform | --program-transfor \
 
280
  | --program-transfo | --program-transf \
 
281
  | --program-trans | --program-tran \
 
282
  | --progr-tra | --program-tr | --program-t)
 
283
    ac_prev=program_transform_name ;;
 
284
  -program-transform-name=* | --program-transform-name=* \
 
285
  | --program-transform-nam=* | --program-transform-na=* \
 
286
  | --program-transform-n=* | --program-transform-=* \
 
287
  | --program-transform=* | --program-transfor=* \
 
288
  | --program-transfo=* | --program-transf=* \
 
289
  | --program-trans=* | --program-tran=* \
 
290
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
291
    program_transform_name="$ac_optarg" ;;
 
292
 
 
293
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
294
  | -silent | --silent | --silen | --sile | --sil)
 
295
    silent=yes ;;
 
296
 
 
297
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
298
    ac_prev=sbindir ;;
 
299
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
300
  | --sbi=* | --sb=*)
 
301
    sbindir="$ac_optarg" ;;
 
302
 
 
303
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
304
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
305
  | --sharedst | --shareds | --shared | --share | --shar \
 
306
  | --sha | --sh)
 
307
    ac_prev=sharedstatedir ;;
 
308
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
309
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
310
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
311
  | --sha=* | --sh=*)
 
312
    sharedstatedir="$ac_optarg" ;;
 
313
 
 
314
  -site | --site | --sit)
 
315
    ac_prev=site ;;
 
316
  -site=* | --site=* | --sit=*)
 
317
    site="$ac_optarg" ;;
 
318
 
 
319
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
320
    ac_prev=srcdir ;;
 
321
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
322
    srcdir="$ac_optarg" ;;
 
323
 
 
324
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
325
  | --syscon | --sysco | --sysc | --sys | --sy)
 
326
    ac_prev=sysconfdir ;;
 
327
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
328
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
329
    sysconfdir="$ac_optarg" ;;
 
330
 
 
331
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
332
    ac_prev=target ;;
 
333
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
334
    target="$ac_optarg" ;;
 
335
 
 
336
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
337
    verbose=yes ;;
 
338
 
 
339
  -version | --version | --versio | --versi | --vers)
 
340
    echo "configure generated by autoconf version 2.13"
 
341
    exit 0 ;;
 
342
 
 
343
  -with-* | --with-*)
 
344
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
345
    # Reject names that are not valid shell variable names.
 
346
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
347
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
348
    fi
 
349
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
350
    case "$ac_option" in
 
351
      *=*) ;;
 
352
      *) ac_optarg=yes ;;
 
353
    esac
 
354
    eval "with_${ac_package}='$ac_optarg'" ;;
 
355
 
 
356
  -without-* | --without-*)
 
357
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
358
    # Reject names that are not valid shell variable names.
 
359
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
360
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
361
    fi
 
362
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
363
    eval "with_${ac_package}=no" ;;
 
364
 
 
365
  --x)
 
366
    # Obsolete; use --with-x.
 
367
    with_x=yes ;;
 
368
 
 
369
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
370
  | --x-incl | --x-inc | --x-in | --x-i)
 
371
    ac_prev=x_includes ;;
 
372
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
373
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
374
    x_includes="$ac_optarg" ;;
 
375
 
 
376
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
377
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
378
    ac_prev=x_libraries ;;
 
379
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
380
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
381
    x_libraries="$ac_optarg" ;;
 
382
 
 
383
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
384
    ;;
 
385
 
 
386
  *)
 
387
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
388
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
389
    fi
 
390
    if test "x$nonopt" != xNONE; then
 
391
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
392
    fi
 
393
    nonopt="$ac_option"
 
394
    ;;
 
395
 
 
396
  esac
 
397
done
 
398
 
 
399
if test -n "$ac_prev"; then
 
400
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
401
fi
 
402
 
 
403
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
404
 
 
405
# File descriptor usage:
 
406
# 0 standard input
 
407
# 1 file creation
 
408
# 2 errors and warnings
 
409
# 3 some systems may open it to /dev/tty
 
410
# 4 used on the Kubota Titan
 
411
# 6 checking for... messages and results
 
412
# 5 compiler messages saved in config.log
 
413
if test "$silent" = yes; then
 
414
  exec 6>/dev/null
 
415
else
 
416
  exec 6>&1
 
417
fi
 
418
exec 5>./config.log
 
419
 
 
420
echo "\
 
421
This file contains any messages produced by compilers while
 
422
running configure, to aid debugging if configure makes a mistake.
 
423
" 1>&5
 
424
 
 
425
# Strip out --no-create and --no-recursion so they do not pile up.
 
426
# Also quote any args containing shell metacharacters.
 
427
ac_configure_args=
 
428
for ac_arg
 
429
do
 
430
  case "$ac_arg" in
 
431
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
432
  | --no-cr | --no-c) ;;
 
433
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
434
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
435
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
436
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
437
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
438
  esac
 
439
done
 
440
 
 
441
# NLS nuisances.
 
442
# Only set these to C if already set.  These must not be set unconditionally
 
443
# because not all systems understand e.g. LANG=C (notably SCO).
 
444
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
445
# Non-C LC_CTYPE values break the ctype check.
 
446
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
447
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
448
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
449
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
450
 
 
451
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
452
rm -rf conftest* confdefs.h
 
453
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
454
echo > confdefs.h
 
455
 
 
456
# A filename unique to this package, relative to the directory that
 
457
# configure is in, which we can look for to find out if srcdir is correct.
 
458
ac_unique_file=rlm_eap_ttls.c
 
459
 
 
460
# Find the source files, if location was not specified.
 
461
if test -z "$srcdir"; then
 
462
  ac_srcdir_defaulted=yes
 
463
  # Try the directory containing this script, then its parent.
 
464
  ac_prog=$0
 
465
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
466
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
467
  srcdir=$ac_confdir
 
468
  if test ! -r $srcdir/$ac_unique_file; then
 
469
    srcdir=..
 
470
  fi
 
471
else
 
472
  ac_srcdir_defaulted=no
 
473
fi
 
474
if test ! -r $srcdir/$ac_unique_file; then
 
475
  if test "$ac_srcdir_defaulted" = yes; then
 
476
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
477
  else
 
478
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
479
  fi
 
480
fi
 
481
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
482
 
 
483
# Prefer explicitly selected file to automatically selected ones.
 
484
if test -z "$CONFIG_SITE"; then
 
485
  if test "x$prefix" != xNONE; then
 
486
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
487
  else
 
488
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
489
  fi
 
490
fi
 
491
for ac_site_file in $CONFIG_SITE; do
 
492
  if test -r "$ac_site_file"; then
 
493
    echo "loading site script $ac_site_file"
 
494
    . "$ac_site_file"
 
495
  fi
 
496
done
 
497
 
 
498
if test -r "$cache_file"; then
 
499
  echo "loading cache $cache_file"
 
500
  . $cache_file
 
501
else
 
502
  echo "creating cache $cache_file"
 
503
  > $cache_file
 
504
fi
 
505
 
 
506
ac_ext=c
 
507
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
508
ac_cpp='$CPP $CPPFLAGS'
 
509
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
510
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
511
cross_compiling=$ac_cv_prog_cc_cross
 
512
 
 
513
ac_exeext=
 
514
ac_objext=o
 
515
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
516
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
517
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
518
    ac_n= ac_c='
 
519
' ac_t='        '
 
520
  else
 
521
    ac_n=-n ac_c= ac_t=
 
522
  fi
 
523
else
 
524
  ac_n= ac_c='\c' ac_t=
 
525
fi
 
526
 
 
527
 
 
528
# From configure.in Revision: 1.5 
 
529
 
 
530
 
 
531
fail=
 
532
SMART_LIBS=
 
533
SMART_CLFAGS=
 
534
if test x$with_rlm_eap_ttls != xno; then
 
535
 
 
536
        # Extract the first word of "gcc", so it can be a program name with args.
 
537
set dummy gcc; ac_word=$2
 
538
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
539
echo "configure:540: checking for $ac_word" >&5
 
540
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
541
  echo $ac_n "(cached) $ac_c" 1>&6
 
542
else
 
543
  if test -n "$CC"; then
 
544
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
545
else
 
546
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
547
  ac_dummy="$PATH"
 
548
  for ac_dir in $ac_dummy; do
 
549
    test -z "$ac_dir" && ac_dir=.
 
550
    if test -f $ac_dir/$ac_word; then
 
551
      ac_cv_prog_CC="gcc"
 
552
      break
 
553
    fi
 
554
  done
 
555
  IFS="$ac_save_ifs"
 
556
fi
 
557
fi
 
558
CC="$ac_cv_prog_CC"
 
559
if test -n "$CC"; then
 
560
  echo "$ac_t""$CC" 1>&6
 
561
else
 
562
  echo "$ac_t""no" 1>&6
 
563
fi
 
564
 
 
565
if test -z "$CC"; then
 
566
  # Extract the first word of "cc", so it can be a program name with args.
 
567
set dummy cc; ac_word=$2
 
568
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
569
echo "configure:570: checking for $ac_word" >&5
 
570
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
571
  echo $ac_n "(cached) $ac_c" 1>&6
 
572
else
 
573
  if test -n "$CC"; then
 
574
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
575
else
 
576
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
577
  ac_prog_rejected=no
 
578
  ac_dummy="$PATH"
 
579
  for ac_dir in $ac_dummy; do
 
580
    test -z "$ac_dir" && ac_dir=.
 
581
    if test -f $ac_dir/$ac_word; then
 
582
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
583
        ac_prog_rejected=yes
 
584
        continue
 
585
      fi
 
586
      ac_cv_prog_CC="cc"
 
587
      break
 
588
    fi
 
589
  done
 
590
  IFS="$ac_save_ifs"
 
591
if test $ac_prog_rejected = yes; then
 
592
  # We found a bogon in the path, so make sure we never use it.
 
593
  set dummy $ac_cv_prog_CC
 
594
  shift
 
595
  if test $# -gt 0; then
 
596
    # We chose a different compiler from the bogus one.
 
597
    # However, it has the same basename, so the bogon will be chosen
 
598
    # first if we set CC to just the basename; use the full file name.
 
599
    shift
 
600
    set dummy "$ac_dir/$ac_word" "$@"
 
601
    shift
 
602
    ac_cv_prog_CC="$@"
 
603
  fi
 
604
fi
 
605
fi
 
606
fi
 
607
CC="$ac_cv_prog_CC"
 
608
if test -n "$CC"; then
 
609
  echo "$ac_t""$CC" 1>&6
 
610
else
 
611
  echo "$ac_t""no" 1>&6
 
612
fi
 
613
 
 
614
  if test -z "$CC"; then
 
615
    case "`uname -s`" in
 
616
    *win32* | *WIN32*)
 
617
      # Extract the first word of "cl", so it can be a program name with args.
 
618
set dummy cl; ac_word=$2
 
619
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
620
echo "configure:621: checking for $ac_word" >&5
 
621
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
622
  echo $ac_n "(cached) $ac_c" 1>&6
 
623
else
 
624
  if test -n "$CC"; then
 
625
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
626
else
 
627
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
628
  ac_dummy="$PATH"
 
629
  for ac_dir in $ac_dummy; do
 
630
    test -z "$ac_dir" && ac_dir=.
 
631
    if test -f $ac_dir/$ac_word; then
 
632
      ac_cv_prog_CC="cl"
 
633
      break
 
634
    fi
 
635
  done
 
636
  IFS="$ac_save_ifs"
 
637
fi
 
638
fi
 
639
CC="$ac_cv_prog_CC"
 
640
if test -n "$CC"; then
 
641
  echo "$ac_t""$CC" 1>&6
 
642
else
 
643
  echo "$ac_t""no" 1>&6
 
644
fi
 
645
 ;;
 
646
    esac
 
647
  fi
 
648
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
649
fi
 
650
 
 
651
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
652
echo "configure:653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
653
 
 
654
ac_ext=c
 
655
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
656
ac_cpp='$CPP $CPPFLAGS'
 
657
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
658
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
659
cross_compiling=$ac_cv_prog_cc_cross
 
660
 
 
661
cat > conftest.$ac_ext << EOF
 
662
 
 
663
#line 664 "configure"
 
664
#include "confdefs.h"
 
665
 
 
666
main(){return(0);}
 
667
EOF
 
668
if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
669
  ac_cv_prog_cc_works=yes
 
670
  # If we can't run a trivial program, we are probably using a cross compiler.
 
671
  if (./conftest; exit) 2>/dev/null; then
 
672
    ac_cv_prog_cc_cross=no
 
673
  else
 
674
    ac_cv_prog_cc_cross=yes
 
675
  fi
 
676
else
 
677
  echo "configure: failed program was:" >&5
 
678
  cat conftest.$ac_ext >&5
 
679
  ac_cv_prog_cc_works=no
 
680
fi
 
681
rm -fr conftest*
 
682
ac_ext=c
 
683
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
684
ac_cpp='$CPP $CPPFLAGS'
 
685
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
686
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
687
cross_compiling=$ac_cv_prog_cc_cross
 
688
 
 
689
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
690
if test $ac_cv_prog_cc_works = no; then
 
691
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
692
fi
 
693
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
694
echo "configure:695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
695
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
696
cross_compiling=$ac_cv_prog_cc_cross
 
697
 
 
698
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
699
echo "configure:700: checking whether we are using GNU C" >&5
 
700
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
701
  echo $ac_n "(cached) $ac_c" 1>&6
 
702
else
 
703
  cat > conftest.c <<EOF
 
704
#ifdef __GNUC__
 
705
  yes;
 
706
#endif
 
707
EOF
 
708
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
709
  ac_cv_prog_gcc=yes
 
710
else
 
711
  ac_cv_prog_gcc=no
 
712
fi
 
713
fi
 
714
 
 
715
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
716
 
 
717
if test $ac_cv_prog_gcc = yes; then
 
718
  GCC=yes
 
719
else
 
720
  GCC=
 
721
fi
 
722
 
 
723
ac_test_CFLAGS="${CFLAGS+set}"
 
724
ac_save_CFLAGS="$CFLAGS"
 
725
CFLAGS=
 
726
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
727
echo "configure:728: checking whether ${CC-cc} accepts -g" >&5
 
728
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
729
  echo $ac_n "(cached) $ac_c" 1>&6
 
730
else
 
731
  echo 'void f(){}' > conftest.c
 
732
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
733
  ac_cv_prog_cc_g=yes
 
734
else
 
735
  ac_cv_prog_cc_g=no
 
736
fi
 
737
rm -f conftest*
 
738
 
 
739
fi
 
740
 
 
741
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
742
if test "$ac_test_CFLAGS" = set; then
 
743
  CFLAGS="$ac_save_CFLAGS"
 
744
elif test $ac_cv_prog_cc_g = yes; then
 
745
  if test "$GCC" = yes; then
 
746
    CFLAGS="-g -O2"
 
747
  else
 
748
    CFLAGS="-g"
 
749
  fi
 
750
else
 
751
  if test "$GCC" = yes; then
 
752
    CFLAGS="-O2"
 
753
  else
 
754
    CFLAGS=
 
755
  fi
 
756
fi
 
757
 
 
758
 
 
759
                                # Check whether --with-openssl-includes or --without-openssl-includes was given.
 
760
if test "${with_openssl_includes+set}" = set; then
 
761
  withval="$with_openssl_includes"
 
762
   case "$withval" in
 
763
            *)
 
764
                rlm_eap_peap_inc_dir="$rlm_eap_peap_inc_dir $withval"
 
765
                SMART_CFLAGS="$SMART_CFLAGS -I$withval"
 
766
                ;;
 
767
          esac 
 
768
        
 
769
fi
 
770
 
 
771
 
 
772
                                # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
 
773
if test "${with_openssl_libraries+set}" = set; then
 
774
  withval="$with_openssl_libraries"
 
775
   case "$withval" in
 
776
            *)
 
777
                rlm_eap_peap_lib_dir="$rlm_eap_peap_lib_dir $withval"
 
778
                SMART_LIBS="$SMART_LIBS -L$withval"
 
779
                ;;
 
780
          esac 
 
781
        
 
782
fi
 
783
 
 
784
 
 
785
        smart_try_dir=$rlm_eap_peap_inc_dir
 
786
        
 
787
 
 
788
ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
 
789
echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
 
790
echo "configure:791: checking for openssl/ssl.h" >&5
 
791
 
 
792
smart_include=
 
793
smart_include_dir=
 
794
 
 
795
  old_CFLAGS="$CFLAGS"
 
796
  cat > conftest.$ac_ext <<EOF
 
797
#line 798 "configure"
 
798
#include "confdefs.h"
 
799
 
 
800
                  #include <openssl/ssl.h>
 
801
int main() {
 
802
 int a = 1;
 
803
; return 0; }
 
804
EOF
 
805
if { (eval echo configure:806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
806
  rm -rf conftest*
 
807
  smart_include=" "
 
808
else
 
809
  echo "configure: failed program was:" >&5
 
810
  cat conftest.$ac_ext >&5
 
811
  rm -rf conftest*
 
812
  smart_include=
 
813
fi
 
814
rm -f conftest*
 
815
 
 
816
  if test "x$smart_include" = "x"; then
 
817
    
 
818
 
 
819
if test "x$LOCATE" != "x"; then
 
820
        DIRS=
 
821
  file=openssl/ssl.h
 
822
 
 
823
  for x in `${LOCATE} $file 2>/dev/null`; do
 
824
                                        base=`echo $x | sed "s%/${file}%%"`
 
825
    if test "x$x" = "x$base"; then
 
826
      continue;
 
827
    fi
 
828
 
 
829
    dir=`${DIRNAME} $x 2>/dev/null`
 
830
                exclude=`echo ${dir} | ${GREP} /home`
 
831
    if test "x$exclude" != "x"; then
 
832
      continue
 
833
    fi
 
834
 
 
835
                    already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
 
836
    if test "x$already" = "x"; then
 
837
      DIRS="$DIRS $dir"
 
838
    fi
 
839
  done
 
840
fi
 
841
 
 
842
eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
 
843
 
 
844
 
 
845
    for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
 
846
      CFLAGS="$old_CFLAGS -I$try"
 
847
 
 
848
      cat > conftest.$ac_ext <<EOF
 
849
#line 850 "configure"
 
850
#include "confdefs.h"
 
851
 
 
852
                       #include <openssl/ssl.h>
 
853
int main() {
 
854
 int a = 1;
 
855
; return 0; }
 
856
EOF
 
857
if { (eval echo configure:858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
858
  rm -rf conftest*
 
859
  smart_include="-I$try"
 
860
else
 
861
  echo "configure: failed program was:" >&5
 
862
  cat conftest.$ac_ext >&5
 
863
  rm -rf conftest*
 
864
  smart_include=
 
865
fi
 
866
rm -f conftest*
 
867
 
 
868
      if test "x$smart_include" != "x"; then
 
869
        break;
 
870
      fi
 
871
    done
 
872
    CFLAGS="$old_CFLAGS"
 
873
  fi
 
874
 
 
875
        if test "x$smart_include" != "x"; then
 
876
    echo "$ac_t""yes" 1>&6
 
877
    eval "ac_cv_header_$ac_safe=yes"
 
878
    CFLAGS="$old_CFLAGS $smart_include"
 
879
    SMART_CFLAGS="$SMART_CFLAGS $smart_include"
 
880
  else
 
881
    echo "$ac_t""no" 1>&6 
 
882
fi
 
883
 
 
884
        if test "x$ac_cv_header_openssl_ssl_h" != "xyes"; then
 
885
                fail="$fail (openssl/ssl.h)"
 
886
        fi
 
887
 
 
888
        smart_try_dir=$rlm_eap_peap_lib_dir
 
889
        
 
890
 
 
891
sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
 
892
sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
 
893
echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
 
894
echo "configure:895: checking for DH_new in -lcrypto" >&5
 
895
 
 
896
smart_lib=
 
897
smart_lib_dir=
 
898
 
 
899
  old_LIBS="$LIBS"
 
900
  LIBS="$LIBS -lcrypto"
 
901
  cat > conftest.$ac_ext <<EOF
 
902
#line 903 "configure"
 
903
#include "confdefs.h"
 
904
extern char DH_new();
 
905
int main() {
 
906
 DH_new()
 
907
; return 0; }
 
908
EOF
 
909
if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
910
  rm -rf conftest*
 
911
  smart_lib="-lcrypto"
 
912
else
 
913
  echo "configure: failed program was:" >&5
 
914
  cat conftest.$ac_ext >&5
 
915
fi
 
916
rm -f conftest*
 
917
 
 
918
  if test "x$smart_lib" = "x"; then
 
919
    
 
920
 
 
921
if test "x$LOCATE" != "x"; then
 
922
        DIRS=
 
923
  file=libcrypto${libltdl_cv_shlibext}
 
924
 
 
925
  for x in `${LOCATE} $file 2>/dev/null`; do
 
926
                                        base=`echo $x | sed "s%/${file}%%"`
 
927
    if test "x$x" = "x$base"; then
 
928
      continue;
 
929
    fi
 
930
 
 
931
    dir=`${DIRNAME} $x 2>/dev/null`
 
932
                exclude=`echo ${dir} | ${GREP} /home`
 
933
    if test "x$exclude" != "x"; then
 
934
      continue
 
935
    fi
 
936
 
 
937
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
938
    if test "x$already" = "x"; then
 
939
      DIRS="$DIRS $dir"
 
940
    fi
 
941
  done
 
942
fi
 
943
 
 
944
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
945
 
 
946
    
 
947
 
 
948
if test "x$LOCATE" != "x"; then
 
949
        DIRS=
 
950
  file=libcrypto.a
 
951
 
 
952
  for x in `${LOCATE} $file 2>/dev/null`; do
 
953
                                        base=`echo $x | sed "s%/${file}%%"`
 
954
    if test "x$x" = "x$base"; then
 
955
      continue;
 
956
    fi
 
957
 
 
958
    dir=`${DIRNAME} $x 2>/dev/null`
 
959
                exclude=`echo ${dir} | ${GREP} /home`
 
960
    if test "x$exclude" != "x"; then
 
961
      continue
 
962
    fi
 
963
 
 
964
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
965
    if test "x$already" = "x"; then
 
966
      DIRS="$DIRS $dir"
 
967
    fi
 
968
  done
 
969
fi
 
970
 
 
971
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
972
 
 
973
 
 
974
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
 
975
      LIBS="$old_LIBS -L$try -lcrypto"
 
976
 
 
977
      cat > conftest.$ac_ext <<EOF
 
978
#line 979 "configure"
 
979
#include "confdefs.h"
 
980
extern char DH_new();
 
981
int main() {
 
982
 DH_new()
 
983
; return 0; }
 
984
EOF
 
985
if { (eval echo configure:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
986
  rm -rf conftest*
 
987
  smart_lib="-L$try -lcrypto"
 
988
else
 
989
  echo "configure: failed program was:" >&5
 
990
  cat conftest.$ac_ext >&5
 
991
fi
 
992
rm -f conftest*
 
993
      if test "x$smart_lib" != "x"; then
 
994
        break;
 
995
      fi
 
996
    done
 
997
    LIBS="$old_LIBS"
 
998
  fi
 
999
 
 
1000
        if test "x$smart_lib" != "x"; then
 
1001
    echo "$ac_t""yes" 1>&6
 
1002
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
1003
    LIBS="$old_LIBS $smart_lib"
 
1004
    SMART_LIBS="$SMART_LIBS $smart_lib"
 
1005
  else
 
1006
    echo "$ac_t""no" 1>&6 
 
1007
fi
 
1008
 
 
1009
    if test "x$ac_cv_lib_crypto_DH_new" != "xyes"; then
 
1010
            fail="$fail libcrypto"
 
1011
    fi
 
1012
 
 
1013
        
 
1014
 
 
1015
sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
 
1016
sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
 
1017
echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
 
1018
echo "configure:1019: checking for SSL_new in -lssl" >&5
 
1019
 
 
1020
smart_lib=
 
1021
smart_lib_dir=
 
1022
 
 
1023
  old_LIBS="$LIBS"
 
1024
  LIBS="$LIBS -lssl"
 
1025
  cat > conftest.$ac_ext <<EOF
 
1026
#line 1027 "configure"
 
1027
#include "confdefs.h"
 
1028
extern char SSL_new();
 
1029
int main() {
 
1030
 SSL_new()
 
1031
; return 0; }
 
1032
EOF
 
1033
if { (eval echo configure:1034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1034
  rm -rf conftest*
 
1035
  smart_lib="-lssl"
 
1036
else
 
1037
  echo "configure: failed program was:" >&5
 
1038
  cat conftest.$ac_ext >&5
 
1039
fi
 
1040
rm -f conftest*
 
1041
 
 
1042
  if test "x$smart_lib" = "x"; then
 
1043
    
 
1044
 
 
1045
if test "x$LOCATE" != "x"; then
 
1046
        DIRS=
 
1047
  file=libssl${libltdl_cv_shlibext}
 
1048
 
 
1049
  for x in `${LOCATE} $file 2>/dev/null`; do
 
1050
                                        base=`echo $x | sed "s%/${file}%%"`
 
1051
    if test "x$x" = "x$base"; then
 
1052
      continue;
 
1053
    fi
 
1054
 
 
1055
    dir=`${DIRNAME} $x 2>/dev/null`
 
1056
                exclude=`echo ${dir} | ${GREP} /home`
 
1057
    if test "x$exclude" != "x"; then
 
1058
      continue
 
1059
    fi
 
1060
 
 
1061
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
1062
    if test "x$already" = "x"; then
 
1063
      DIRS="$DIRS $dir"
 
1064
    fi
 
1065
  done
 
1066
fi
 
1067
 
 
1068
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
1069
 
 
1070
    
 
1071
 
 
1072
if test "x$LOCATE" != "x"; then
 
1073
        DIRS=
 
1074
  file=libssl.a
 
1075
 
 
1076
  for x in `${LOCATE} $file 2>/dev/null`; do
 
1077
                                        base=`echo $x | sed "s%/${file}%%"`
 
1078
    if test "x$x" = "x$base"; then
 
1079
      continue;
 
1080
    fi
 
1081
 
 
1082
    dir=`${DIRNAME} $x 2>/dev/null`
 
1083
                exclude=`echo ${dir} | ${GREP} /home`
 
1084
    if test "x$exclude" != "x"; then
 
1085
      continue
 
1086
    fi
 
1087
 
 
1088
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
1089
    if test "x$already" = "x"; then
 
1090
      DIRS="$DIRS $dir"
 
1091
    fi
 
1092
  done
 
1093
fi
 
1094
 
 
1095
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
1096
 
 
1097
 
 
1098
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
 
1099
      LIBS="$old_LIBS -L$try -lssl"
 
1100
 
 
1101
      cat > conftest.$ac_ext <<EOF
 
1102
#line 1103 "configure"
 
1103
#include "confdefs.h"
 
1104
extern char SSL_new();
 
1105
int main() {
 
1106
 SSL_new()
 
1107
; return 0; }
 
1108
EOF
 
1109
if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1110
  rm -rf conftest*
 
1111
  smart_lib="-L$try -lssl"
 
1112
else
 
1113
  echo "configure: failed program was:" >&5
 
1114
  cat conftest.$ac_ext >&5
 
1115
fi
 
1116
rm -f conftest*
 
1117
      if test "x$smart_lib" != "x"; then
 
1118
        break;
 
1119
      fi
 
1120
    done
 
1121
    LIBS="$old_LIBS"
 
1122
  fi
 
1123
 
 
1124
        if test "x$smart_lib" != "x"; then
 
1125
    echo "$ac_t""yes" 1>&6
 
1126
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
1127
    LIBS="$old_LIBS $smart_lib"
 
1128
    SMART_LIBS="$SMART_LIBS $smart_lib"
 
1129
  else
 
1130
    echo "$ac_t""no" 1>&6 
 
1131
fi
 
1132
 
 
1133
    if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
 
1134
            fail="$fail libssl"
 
1135
    fi
 
1136
 
 
1137
        echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1138
echo "configure:1139: checking how to run the C preprocessor" >&5
 
1139
# On Suns, sometimes $CPP names a directory.
 
1140
if test -n "$CPP" && test -d "$CPP"; then
 
1141
  CPP=
 
1142
fi
 
1143
if test -z "$CPP"; then
 
1144
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1145
  echo $ac_n "(cached) $ac_c" 1>&6
 
1146
else
 
1147
    # This must be in double quotes, not single quotes, because CPP may get
 
1148
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1149
  CPP="${CC-cc} -E"
 
1150
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1151
  # not just through cpp.
 
1152
  cat > conftest.$ac_ext <<EOF
 
1153
#line 1154 "configure"
 
1154
#include "confdefs.h"
 
1155
#include <assert.h>
 
1156
Syntax Error
 
1157
EOF
 
1158
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1159
{ (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1160
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1161
if test -z "$ac_err"; then
 
1162
  :
 
1163
else
 
1164
  echo "$ac_err" >&5
 
1165
  echo "configure: failed program was:" >&5
 
1166
  cat conftest.$ac_ext >&5
 
1167
  rm -rf conftest*
 
1168
  CPP="${CC-cc} -E -traditional-cpp"
 
1169
  cat > conftest.$ac_ext <<EOF
 
1170
#line 1171 "configure"
 
1171
#include "confdefs.h"
 
1172
#include <assert.h>
 
1173
Syntax Error
 
1174
EOF
 
1175
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1176
{ (eval echo configure:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1177
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1178
if test -z "$ac_err"; then
 
1179
  :
 
1180
else
 
1181
  echo "$ac_err" >&5
 
1182
  echo "configure: failed program was:" >&5
 
1183
  cat conftest.$ac_ext >&5
 
1184
  rm -rf conftest*
 
1185
  CPP="${CC-cc} -nologo -E"
 
1186
  cat > conftest.$ac_ext <<EOF
 
1187
#line 1188 "configure"
 
1188
#include "confdefs.h"
 
1189
#include <assert.h>
 
1190
Syntax Error
 
1191
EOF
 
1192
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1193
{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1194
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1195
if test -z "$ac_err"; then
 
1196
  :
 
1197
else
 
1198
  echo "$ac_err" >&5
 
1199
  echo "configure: failed program was:" >&5
 
1200
  cat conftest.$ac_ext >&5
 
1201
  rm -rf conftest*
 
1202
  CPP=/lib/cpp
 
1203
fi
 
1204
rm -f conftest*
 
1205
fi
 
1206
rm -f conftest*
 
1207
fi
 
1208
rm -f conftest*
 
1209
  ac_cv_prog_CPP="$CPP"
 
1210
fi
 
1211
  CPP="$ac_cv_prog_CPP"
 
1212
else
 
1213
  ac_cv_prog_CPP="$CPP"
 
1214
fi
 
1215
echo "$ac_t""$CPP" 1>&6
 
1216
 
 
1217
for ac_hdr in \
 
1218
                openssl/err.h \
 
1219
                openssl/engine.h \
 
1220
        
 
1221
do
 
1222
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
1223
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
1224
echo "configure:1225: checking for $ac_hdr" >&5
 
1225
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
1226
  echo $ac_n "(cached) $ac_c" 1>&6
 
1227
else
 
1228
  cat > conftest.$ac_ext <<EOF
 
1229
#line 1230 "configure"
 
1230
#include "confdefs.h"
 
1231
#include <$ac_hdr>
 
1232
EOF
 
1233
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1234
{ (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1235
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1236
if test -z "$ac_err"; then
 
1237
  rm -rf conftest*
 
1238
  eval "ac_cv_header_$ac_safe=yes"
 
1239
else
 
1240
  echo "$ac_err" >&5
 
1241
  echo "configure: failed program was:" >&5
 
1242
  cat conftest.$ac_ext >&5
 
1243
  rm -rf conftest*
 
1244
  eval "ac_cv_header_$ac_safe=no"
 
1245
fi
 
1246
rm -f conftest*
 
1247
fi
 
1248
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
1249
  echo "$ac_t""yes" 1>&6
 
1250
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
1251
  cat >> confdefs.h <<EOF
 
1252
#define $ac_tr_hdr 1
 
1253
EOF
 
1254
 
 
1255
else
 
1256
  echo "$ac_t""no" 1>&6
 
1257
fi
 
1258
done
 
1259
 
 
1260
 
 
1261
        targetname=rlm_eap_ttls
 
1262
else
 
1263
        targetname=
 
1264
        echo \*\*\* module rlm_eap_ttls is disabled.
 
1265
fi
 
1266
 
 
1267
if test x"$fail" != x""; then
 
1268
        if test x"${enable_strict_dependencies}" = x"yes"; then
 
1269
                { echo "configure: error: set --without-rlm_eap_ttls to disable it explicitly." 1>&2; exit 1; }
 
1270
        else
 
1271
                echo "configure: warning: silently not building rlm_eap_ttls." 1>&2
 
1272
                echo "configure: warning: FAILURE: rlm_eap_ttls requires: $fail." 1>&2
 
1273
                if test x"$headersuggestion" != x; then
 
1274
                        echo "configure: warning: $headersuggestion" 1>&2 
 
1275
                fi
 
1276
                if test x"$libsuggestion" != x; then
 
1277
                        echo "configure: warning: $libsuggestion" 1>&2 
 
1278
                fi
 
1279
                targetname=""
 
1280
        fi
 
1281
fi
 
1282
 
 
1283
eap_ttls_ldflags=$SMART_LIBS
 
1284
eap_ttls_cflags=$SMART_CFLAGS
 
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
trap '' 1 2 15
 
1290
cat > confcache <<\EOF
 
1291
# This file is a shell script that caches the results of configure
 
1292
# tests run on this system so they can be shared between configure
 
1293
# scripts and configure runs.  It is not useful on other systems.
 
1294
# If it contains results you don't want to keep, you may remove or edit it.
 
1295
#
 
1296
# By default, configure uses ./config.cache as the cache file,
 
1297
# creating it if it does not exist already.  You can give configure
 
1298
# the --cache-file=FILE option to use a different cache file; that is
 
1299
# what configure does when it calls configure scripts in
 
1300
# subdirectories, so they share the cache.
 
1301
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
1302
# config.status only pays attention to the cache file if you give it the
 
1303
# --recheck option to rerun configure.
 
1304
#
 
1305
EOF
 
1306
# The following way of writing the cache mishandles newlines in values,
 
1307
# but we know of no workaround that is simple, portable, and efficient.
 
1308
# So, don't put newlines in cache variables' values.
 
1309
# Ultrix sh set writes to stderr and can't be redirected directly,
 
1310
# and sets the high bit in the cache file unless we assign to the vars.
 
1311
(set) 2>&1 |
 
1312
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
1313
  *ac_space=\ *)
 
1314
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
1315
    # turns \\\\ into \\, and sed turns \\ into \).
 
1316
    sed -n \
 
1317
      -e "s/'/'\\\\''/g" \
 
1318
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
1319
    ;;
 
1320
  *)
 
1321
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
1322
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
1323
    ;;
 
1324
  esac >> confcache
 
1325
if cmp -s $cache_file confcache; then
 
1326
  :
 
1327
else
 
1328
  if test -w $cache_file; then
 
1329
    echo "updating cache $cache_file"
 
1330
    cat confcache > $cache_file
 
1331
  else
 
1332
    echo "not updating unwritable cache $cache_file"
 
1333
  fi
 
1334
fi
 
1335
rm -f confcache
 
1336
 
 
1337
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
1338
 
 
1339
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
1340
# Let make expand exec_prefix.
 
1341
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
1342
 
 
1343
# Any assignment to VPATH causes Sun make to only execute
 
1344
# the first set of double-colon rules, so remove it if not needed.
 
1345
# If there is a colon in the path, we need to keep it.
 
1346
if test "x$srcdir" = x.; then
 
1347
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
1348
fi
 
1349
 
 
1350
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
1351
 
 
1352
DEFS=-DHAVE_CONFIG_H
 
1353
 
 
1354
# Without the "./", some shells look in PATH for config.status.
 
1355
: ${CONFIG_STATUS=./config.status}
 
1356
 
 
1357
echo creating $CONFIG_STATUS
 
1358
rm -f $CONFIG_STATUS
 
1359
cat > $CONFIG_STATUS <<EOF
 
1360
#! /bin/sh
 
1361
# Generated automatically by configure.
 
1362
# Run this file to recreate the current configuration.
 
1363
# This directory was configured as follows,
 
1364
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1365
#
 
1366
# $0 $ac_configure_args
 
1367
#
 
1368
# Compiler output produced by configure, useful for debugging
 
1369
# configure, is in ./config.log if it exists.
 
1370
 
 
1371
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
1372
for ac_option
 
1373
do
 
1374
  case "\$ac_option" in
 
1375
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
1376
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
1377
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
1378
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
1379
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
1380
    exit 0 ;;
 
1381
  -help | --help | --hel | --he | --h)
 
1382
    echo "\$ac_cs_usage"; exit 0 ;;
 
1383
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
1384
  esac
 
1385
done
 
1386
 
 
1387
ac_given_srcdir=$srcdir
 
1388
 
 
1389
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
1390
EOF
 
1391
cat >> $CONFIG_STATUS <<EOF
 
1392
 
 
1393
# Protect against being on the right side of a sed subst in config.status.
 
1394
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
1395
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
1396
$ac_vpsub
 
1397
$extrasub
 
1398
s%@SHELL@%$SHELL%g
 
1399
s%@CFLAGS@%$CFLAGS%g
 
1400
s%@CPPFLAGS@%$CPPFLAGS%g
 
1401
s%@CXXFLAGS@%$CXXFLAGS%g
 
1402
s%@FFLAGS@%$FFLAGS%g
 
1403
s%@DEFS@%$DEFS%g
 
1404
s%@LDFLAGS@%$LDFLAGS%g
 
1405
s%@LIBS@%$LIBS%g
 
1406
s%@exec_prefix@%$exec_prefix%g
 
1407
s%@prefix@%$prefix%g
 
1408
s%@program_transform_name@%$program_transform_name%g
 
1409
s%@bindir@%$bindir%g
 
1410
s%@sbindir@%$sbindir%g
 
1411
s%@libexecdir@%$libexecdir%g
 
1412
s%@datadir@%$datadir%g
 
1413
s%@sysconfdir@%$sysconfdir%g
 
1414
s%@sharedstatedir@%$sharedstatedir%g
 
1415
s%@localstatedir@%$localstatedir%g
 
1416
s%@libdir@%$libdir%g
 
1417
s%@includedir@%$includedir%g
 
1418
s%@oldincludedir@%$oldincludedir%g
 
1419
s%@infodir@%$infodir%g
 
1420
s%@mandir@%$mandir%g
 
1421
s%@CC@%$CC%g
 
1422
s%@CPP@%$CPP%g
 
1423
s%@eap_ttls_ldflags@%$eap_ttls_ldflags%g
 
1424
s%@eap_ttls_cflags@%$eap_ttls_cflags%g
 
1425
s%@targetname@%$targetname%g
 
1426
 
 
1427
CEOF
 
1428
EOF
 
1429
 
 
1430
cat >> $CONFIG_STATUS <<\EOF
 
1431
 
 
1432
# Split the substitutions into bite-sized pieces for seds with
 
1433
# small command number limits, like on Digital OSF/1 and HP-UX.
 
1434
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
1435
ac_file=1 # Number of current file.
 
1436
ac_beg=1 # First line for current file.
 
1437
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
1438
ac_more_lines=:
 
1439
ac_sed_cmds=""
 
1440
while $ac_more_lines; do
 
1441
  if test $ac_beg -gt 1; then
 
1442
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
1443
  else
 
1444
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
1445
  fi
 
1446
  if test ! -s conftest.s$ac_file; then
 
1447
    ac_more_lines=false
 
1448
    rm -f conftest.s$ac_file
 
1449
  else
 
1450
    if test -z "$ac_sed_cmds"; then
 
1451
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
1452
    else
 
1453
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
1454
    fi
 
1455
    ac_file=`expr $ac_file + 1`
 
1456
    ac_beg=$ac_end
 
1457
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
1458
  fi
 
1459
done
 
1460
if test -z "$ac_sed_cmds"; then
 
1461
  ac_sed_cmds=cat
 
1462
fi
 
1463
EOF
 
1464
 
 
1465
cat >> $CONFIG_STATUS <<EOF
 
1466
 
 
1467
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
 
1468
EOF
 
1469
cat >> $CONFIG_STATUS <<\EOF
 
1470
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
1471
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
1472
  case "$ac_file" in
 
1473
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
1474
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
1475
  *) ac_file_in="${ac_file}.in" ;;
 
1476
  esac
 
1477
 
 
1478
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
1479
 
 
1480
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
1481
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
1482
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
1483
    # The file is in a subdirectory.
 
1484
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
1485
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
1486
    # A "../" for each directory in $ac_dir_suffix.
 
1487
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
1488
  else
 
1489
    ac_dir_suffix= ac_dots=
 
1490
  fi
 
1491
 
 
1492
  case "$ac_given_srcdir" in
 
1493
  .)  srcdir=.
 
1494
      if test -z "$ac_dots"; then top_srcdir=.
 
1495
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
1496
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
1497
  *) # Relative path.
 
1498
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
1499
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
1500
  esac
 
1501
 
 
1502
 
 
1503
  echo creating "$ac_file"
 
1504
  rm -f "$ac_file"
 
1505
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
1506
  case "$ac_file" in
 
1507
  *Makefile*) ac_comsub="1i\\
 
1508
# $configure_input" ;;
 
1509
  *) ac_comsub= ;;
 
1510
  esac
 
1511
 
 
1512
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
1513
  sed -e "$ac_comsub
 
1514
s%@configure_input@%$configure_input%g
 
1515
s%@srcdir@%$srcdir%g
 
1516
s%@top_srcdir@%$top_srcdir%g
 
1517
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
1518
fi; done
 
1519
rm -f conftest.s*
 
1520
 
 
1521
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
1522
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
1523
#
 
1524
# ac_d sets the value in "#define NAME VALUE" lines.
 
1525
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
1526
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
1527
ac_dC='\3'
 
1528
ac_dD='%g'
 
1529
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
1530
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
1531
ac_uB='\([      ]\)%\1#\2define\3'
 
1532
ac_uC=' '
 
1533
ac_uD='\4%g'
 
1534
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
1535
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
1536
ac_eB='$%\1#\2define\3'
 
1537
ac_eC=' '
 
1538
ac_eD='%g'
 
1539
 
 
1540
if test "${CONFIG_HEADERS+set}" != set; then
 
1541
EOF
 
1542
cat >> $CONFIG_STATUS <<EOF
 
1543
  CONFIG_HEADERS="config.h"
 
1544
EOF
 
1545
cat >> $CONFIG_STATUS <<\EOF
 
1546
fi
 
1547
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
1548
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
1549
  case "$ac_file" in
 
1550
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
1551
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
1552
  *) ac_file_in="${ac_file}.in" ;;
 
1553
  esac
 
1554
 
 
1555
  echo creating $ac_file
 
1556
 
 
1557
  rm -f conftest.frag conftest.in conftest.out
 
1558
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
1559
  cat $ac_file_inputs > conftest.in
 
1560
 
 
1561
EOF
 
1562
 
 
1563
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
1564
# the proper values into config.h.in to produce config.h.  And first:
 
1565
# Protect against being on the right side of a sed subst in config.status.
 
1566
# Protect against being in an unquoted here document in config.status.
 
1567
rm -f conftest.vals
 
1568
cat > conftest.hdr <<\EOF
 
1569
s/[\\&%]/\\&/g
 
1570
s%[\\$`]%\\&%g
 
1571
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
1572
s%ac_d%ac_u%gp
 
1573
s%ac_u%ac_e%gp
 
1574
EOF
 
1575
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
1576
rm -f conftest.hdr
 
1577
 
 
1578
# This sed command replaces #undef with comments.  This is necessary, for
 
1579
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
1580
# on some systems where configure will not decide to define it.
 
1581
cat >> conftest.vals <<\EOF
 
1582
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
1583
EOF
 
1584
 
 
1585
# Break up conftest.vals because some shells have a limit on
 
1586
# the size of here documents, and old seds have small limits too.
 
1587
 
 
1588
rm -f conftest.tail
 
1589
while :
 
1590
do
 
1591
  ac_lines=`grep -c . conftest.vals`
 
1592
  # grep -c gives empty output for an empty file on some AIX systems.
 
1593
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
1594
  # Write a limited-size here document to conftest.frag.
 
1595
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
1596
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
1597
  echo 'CEOF
 
1598
  sed -f conftest.frag conftest.in > conftest.out
 
1599
  rm -f conftest.in
 
1600
  mv conftest.out conftest.in
 
1601
' >> $CONFIG_STATUS
 
1602
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
1603
  rm -f conftest.vals
 
1604
  mv conftest.tail conftest.vals
 
1605
done
 
1606
rm -f conftest.vals
 
1607
 
 
1608
cat >> $CONFIG_STATUS <<\EOF
 
1609
  rm -f conftest.frag conftest.h
 
1610
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
1611
  cat conftest.in >> conftest.h
 
1612
  rm -f conftest.in
 
1613
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
1614
    echo "$ac_file is unchanged"
 
1615
    rm -f conftest.h
 
1616
  else
 
1617
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
1618
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
1619
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
1620
      # The file is in a subdirectory.
 
1621
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
1622
    fi
 
1623
    rm -f $ac_file
 
1624
    mv conftest.h $ac_file
 
1625
  fi
 
1626
fi; done
 
1627
 
 
1628
EOF
 
1629
cat >> $CONFIG_STATUS <<EOF
 
1630
 
 
1631
EOF
 
1632
cat >> $CONFIG_STATUS <<\EOF
 
1633
 
 
1634
exit 0
 
1635
EOF
 
1636
chmod +x $CONFIG_STATUS
 
1637
rm -fr confdefs* $ac_clean_files
 
1638
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
1639