comparison mcabber/connwrap/configure @ 25:bf3d6e241714

[/trunk] Changeset 41 by mikael * Add libjabber to trunk. Let the game begin! :-)
author mikael
date Sun, 27 Mar 2005 20:18:21 +0000
parents
children
comparison
equal deleted inserted replaced
24:e88b15cbf2de 25:bf3d6e241714
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-ssl enable SSL secured connections using either OpenSSL
16 or GnuTLS"
17 ac_help="$ac_help
18 --with-openssl=[DIR] enable SSL secured connections using the OpenSSL
19 library in DIR (optional)"
20 ac_help="$ac_help
21 --with-libgnutls-extra-prefix=PFX Prefix where libgnutls-extra is installed (optional)"
22
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
26 build=NONE
27 cache_file=./config.cache
28 exec_prefix=NONE
29 host=NONE
30 no_create=
31 nonopt=NONE
32 no_recursion=
33 prefix=NONE
34 program_prefix=NONE
35 program_suffix=NONE
36 program_transform_name=s,x,x,
37 silent=
38 site=
39 srcdir=
40 target=NONE
41 verbose=
42 x_includes=NONE
43 x_libraries=NONE
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
56
57 # Initialize some other variables.
58 subdirs=
59 MFLAGS= MAKEFLAGS=
60 SHELL=${CONFIG_SHELL-/bin/sh}
61 # Maximum number of lines to put in a shell here document.
62 ac_max_here_lines=12
63
64 ac_prev=
65 for ac_option
66 do
67
68 # If the previous option needs an argument, assign it.
69 if test -n "$ac_prev"; then
70 eval "$ac_prev=\$ac_option"
71 ac_prev=
72 continue
73 fi
74
75 case "$ac_option" in
76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77 *) ac_optarg= ;;
78 esac
79
80 # Accept the important Cygnus configure options, so we can diagnose typos.
81
82 case "$ac_option" in
83
84 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 ac_prev=bindir ;;
86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87 bindir="$ac_optarg" ;;
88
89 -build | --build | --buil | --bui | --bu)
90 ac_prev=build ;;
91 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 build="$ac_optarg" ;;
93
94 -cache-file | --cache-file | --cache-fil | --cache-fi \
95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 ac_prev=cache_file ;;
97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99 cache_file="$ac_optarg" ;;
100
101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 ac_prev=datadir ;;
103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 | --da=*)
105 datadir="$ac_optarg" ;;
106
107 -disable-* | --disable-*)
108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 fi
113 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114 eval "enable_${ac_feature}=no" ;;
115
116 -enable-* | --enable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 case "$ac_option" in
124 *=*) ;;
125 *) ac_optarg=yes ;;
126 esac
127 eval "enable_${ac_feature}='$ac_optarg'" ;;
128
129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131 | --exec | --exe | --ex)
132 ac_prev=exec_prefix ;;
133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135 | --exec=* | --exe=* | --ex=*)
136 exec_prefix="$ac_optarg" ;;
137
138 -gas | --gas | --ga | --g)
139 # Obsolete; use --with-gas.
140 with_gas=yes ;;
141
142 -help | --help | --hel | --he)
143 # Omit some internal or obsolete options to make the list less imposing.
144 # This message is too long to be a string in the A/UX 3.1 sh.
145 cat << EOF
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
148 Configuration:
149 --cache-file=FILE cache test results in FILE
150 --help print this message
151 --no-create do not create output files
152 --quiet, --silent do not print \`checking...' messages
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
163 [PREFIX/share]
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 [PREFIX/com]
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
178 EOF
179 cat << EOF
180 Host type:
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
191 EOF
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
194 fi
195 exit 0 ;;
196
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
201
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
208
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
213
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
218
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
225
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
234
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
239
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
243
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
247
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
251
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
260
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
265
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
272
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
279
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
296
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
300
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
306
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
317
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
322
323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 ac_prev=srcdir ;;
325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326 srcdir="$ac_optarg" ;;
327
328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329 | --syscon | --sysco | --sysc | --sys | --sy)
330 ac_prev=sysconfdir ;;
331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333 sysconfdir="$ac_optarg" ;;
334
335 -target | --target | --targe | --targ | --tar | --ta | --t)
336 ac_prev=target ;;
337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338 target="$ac_optarg" ;;
339
340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 verbose=yes ;;
342
343 -version | --version | --versio | --versi | --vers)
344 echo "configure generated by autoconf version 2.13"
345 exit 0 ;;
346
347 -with-* | --with-*)
348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349 # Reject names that are not valid shell variable names.
350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 fi
353 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 case "$ac_option" in
355 *=*) ;;
356 *) ac_optarg=yes ;;
357 esac
358 eval "with_${ac_package}='$ac_optarg'" ;;
359
360 -without-* | --without-*)
361 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}=no" ;;
368
369 --x)
370 # Obsolete; use --with-x.
371 with_x=yes ;;
372
373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374 | --x-incl | --x-inc | --x-in | --x-i)
375 ac_prev=x_includes ;;
376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378 x_includes="$ac_optarg" ;;
379
380 -x-libraries | --x-libraries | --x-librarie | --x-librari \
381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382 ac_prev=x_libraries ;;
383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385 x_libraries="$ac_optarg" ;;
386
387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388 ;;
389
390 *)
391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 fi
394 if test "x$nonopt" != xNONE; then
395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 fi
397 nonopt="$ac_option"
398 ;;
399
400 esac
401 done
402
403 if test -n "$ac_prev"; then
404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 fi
406
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
409 # File descriptor usage:
410 # 0 standard input
411 # 1 file creation
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
418 exec 6>/dev/null
419 else
420 exec 6>&1
421 fi
422 exec 5>./config.log
423
424 echo "\
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
427 " 1>&5
428
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
431 ac_configure_args=
432 for ac_arg
433 do
434 case "$ac_arg" in
435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436 | --no-cr | --no-c) ;;
437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 esac
443 done
444
445 # NLS nuisances.
446 # Only set these to C if already set. These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
454
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 echo > confdefs.h
459
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=aclocal.m4
463
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466 ac_srcdir_defaulted=yes
467 # Try the directory containing this script, then its parent.
468 ac_prog=$0
469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 srcdir=$ac_confdir
472 if test ! -r $srcdir/$ac_unique_file; then
473 srcdir=..
474 fi
475 else
476 ac_srcdir_defaulted=no
477 fi
478 if test ! -r $srcdir/$ac_unique_file; then
479 if test "$ac_srcdir_defaulted" = yes; then
480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 else
482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 fi
484 fi
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489 if test "x$prefix" != xNONE; then
490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 else
492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 fi
494 fi
495 for ac_site_file in $CONFIG_SITE; do
496 if test -r "$ac_site_file"; then
497 echo "loading site script $ac_site_file"
498 . "$ac_site_file"
499 fi
500 done
501
502 if test -r "$cache_file"; then
503 echo "loading cache $cache_file"
504 . $cache_file
505 else
506 echo "creating cache $cache_file"
507 > $cache_file
508 fi
509
510 ac_ext=c
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
516
517 ac_exeext=
518 ac_objext=o
519 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522 ac_n= ac_c='
523 ' ac_t=' '
524 else
525 ac_n=-n ac_c= ac_t=
526 fi
527 else
528 ac_n= ac_c='\c' ac_t=
529 fi
530
531
532 ac_aux_dir=
533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
534 if test -f $ac_dir/install-sh; then
535 ac_aux_dir=$ac_dir
536 ac_install_sh="$ac_aux_dir/install-sh -c"
537 break
538 elif test -f $ac_dir/install.sh; then
539 ac_aux_dir=$ac_dir
540 ac_install_sh="$ac_aux_dir/install.sh -c"
541 break
542 fi
543 done
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
546 fi
547 ac_config_guess=$ac_aux_dir/config.guess
548 ac_config_sub=$ac_aux_dir/config.sub
549 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
551 am__api_version="1.4"
552 # Find a good install program. We prefer a C program (faster),
553 # so one script is as good as another. But avoid the broken or
554 # incompatible versions:
555 # SysV /etc/install, /usr/sbin/install
556 # SunOS /usr/etc/install
557 # IRIX /sbin/install
558 # AIX /bin/install
559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
562 # ./install, which can be erroneously created by make from ./install.sh.
563 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
564 echo "configure:565: checking for a BSD compatible install" >&5
565 if test -z "$INSTALL"; then
566 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
568 else
569 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
570 for ac_dir in $PATH; do
571 # Account for people who put trailing slashes in PATH elements.
572 case "$ac_dir/" in
573 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
574 *)
575 # OSF1 and SCO ODT 3.0 have their own names for install.
576 # Don't use installbsd from OSF since it installs stuff as root
577 # by default.
578 for ac_prog in ginstall scoinst install; do
579 if test -f $ac_dir/$ac_prog; then
580 if test $ac_prog = install &&
581 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
582 # AIX install. It has an incompatible calling convention.
583 :
584 else
585 ac_cv_path_install="$ac_dir/$ac_prog -c"
586 break 2
587 fi
588 fi
589 done
590 ;;
591 esac
592 done
593 IFS="$ac_save_IFS"
594
595 fi
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL="$ac_cv_path_install"
598 else
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL="$ac_install_sh"
604 fi
605 fi
606 echo "$ac_t""$INSTALL" 1>&6
607
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611
612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
613
614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
615
616 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
617 echo "configure:618: checking whether build environment is sane" >&5
618 # Just in case
619 sleep 1
620 echo timestamp > conftestfile
621 # Do `set' in a subshell so we don't clobber the current shell's
622 # arguments. Must try -L first in case configure is actually a
623 # symlink; some systems play weird games with the mod time of symlinks
624 # (eg FreeBSD returns the mod time of the symlink's containing
625 # directory).
626 if (
627 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
628 if test "$*" = "X"; then
629 # -L didn't work.
630 set X `ls -t $srcdir/configure conftestfile`
631 fi
632 if test "$*" != "X $srcdir/configure conftestfile" \
633 && test "$*" != "X conftestfile $srcdir/configure"; then
634
635 # If neither matched, then we have a broken ls. This can happen
636 # if, for instance, CONFIG_SHELL is bash and it inherits a
637 # broken ls alias from the environment. This has actually
638 # happened. Such a system could not be considered "sane".
639 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
640 alias in your environment" 1>&2; exit 1; }
641 fi
642
643 test "$2" = conftestfile
644 )
645 then
646 # Ok.
647 :
648 else
649 { echo "configure: error: newly created file is older than distributed files!
650 Check your system clock" 1>&2; exit 1; }
651 fi
652 rm -f conftest*
653 echo "$ac_t""yes" 1>&6
654 if test "$program_transform_name" = s,x,x,; then
655 program_transform_name=
656 else
657 # Double any \ or $. echo might interpret backslashes.
658 cat <<\EOF_SED > conftestsed
659 s,\\,\\\\,g; s,\$,$$,g
660 EOF_SED
661 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
662 rm -f conftestsed
663 fi
664 test "$program_prefix" != NONE &&
665 program_transform_name="s,^,${program_prefix},; $program_transform_name"
666 # Use a double $ so make ignores it.
667 test "$program_suffix" != NONE &&
668 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
669
670 # sed with no file args requires a program.
671 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
672
673 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
674 echo "configure:675: checking whether ${MAKE-make} sets \${MAKE}" >&5
675 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
676 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678 else
679 cat > conftestmake <<\EOF
680 all:
681 @echo 'ac_maketemp="${MAKE}"'
682 EOF
683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
684 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
685 if test -n "$ac_maketemp"; then
686 eval ac_cv_prog_make_${ac_make}_set=yes
687 else
688 eval ac_cv_prog_make_${ac_make}_set=no
689 fi
690 rm -f conftestmake
691 fi
692 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
693 echo "$ac_t""yes" 1>&6
694 SET_MAKE=
695 else
696 echo "$ac_t""no" 1>&6
697 SET_MAKE="MAKE=${MAKE-make}"
698 fi
699
700
701 PACKAGE=connwrap
702
703 VERSION=0.1
704
705 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
706 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
707 fi
708 cat >> confdefs.h <<EOF
709 #define PACKAGE "$PACKAGE"
710 EOF
711
712 cat >> confdefs.h <<EOF
713 #define VERSION "$VERSION"
714 EOF
715
716
717
718 missing_dir=`cd $ac_aux_dir && pwd`
719 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
720 echo "configure:721: checking for working aclocal-${am__api_version}" >&5
721 # Run test in a subshell; some versions of sh will print an error if
722 # an executable is not found, even if stderr is redirected.
723 # Redirect stdin to placate older versions of autoconf. Sigh.
724 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
725 ACLOCAL=aclocal-${am__api_version}
726 echo "$ac_t""found" 1>&6
727 else
728 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
729 echo "$ac_t""missing" 1>&6
730 fi
731
732 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
733 echo "configure:734: checking for working autoconf" >&5
734 # Run test in a subshell; some versions of sh will print an error if
735 # an executable is not found, even if stderr is redirected.
736 # Redirect stdin to placate older versions of autoconf. Sigh.
737 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
738 AUTOCONF=autoconf
739 echo "$ac_t""found" 1>&6
740 else
741 AUTOCONF="$missing_dir/missing autoconf"
742 echo "$ac_t""missing" 1>&6
743 fi
744
745 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
746 echo "configure:747: checking for working automake-${am__api_version}" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
751 AUTOMAKE=automake-${am__api_version}
752 echo "$ac_t""found" 1>&6
753 else
754 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
755 echo "$ac_t""missing" 1>&6
756 fi
757
758 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
759 echo "configure:760: checking for working autoheader" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
764 AUTOHEADER=autoheader
765 echo "$ac_t""found" 1>&6
766 else
767 AUTOHEADER="$missing_dir/missing autoheader"
768 echo "$ac_t""missing" 1>&6
769 fi
770
771 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
772 echo "configure:773: checking for working makeinfo" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
777 MAKEINFO=makeinfo
778 echo "$ac_t""found" 1>&6
779 else
780 MAKEINFO="$missing_dir/missing makeinfo"
781 echo "$ac_t""missing" 1>&6
782 fi
783
784
785
786 # Extract the first word of "ranlib", so it can be a program name with args.
787 set dummy ranlib; ac_word=$2
788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
789 echo "configure:790: checking for $ac_word" >&5
790 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792 else
793 if test -n "$RANLIB"; then
794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
795 else
796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
797 ac_dummy="$PATH"
798 for ac_dir in $ac_dummy; do
799 test -z "$ac_dir" && ac_dir=.
800 if test -f $ac_dir/$ac_word; then
801 ac_cv_prog_RANLIB="ranlib"
802 break
803 fi
804 done
805 IFS="$ac_save_ifs"
806 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
807 fi
808 fi
809 RANLIB="$ac_cv_prog_RANLIB"
810 if test -n "$RANLIB"; then
811 echo "$ac_t""$RANLIB" 1>&6
812 else
813 echo "$ac_t""no" 1>&6
814 fi
815
816
817 # Extract the first word of "gcc", so it can be a program name with args.
818 set dummy gcc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 if test -n "$CC"; then
825 ac_cv_prog_CC="$CC" # Let the user override the test.
826 else
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
828 ac_dummy="$PATH"
829 for ac_dir in $ac_dummy; do
830 test -z "$ac_dir" && ac_dir=.
831 if test -f $ac_dir/$ac_word; then
832 ac_cv_prog_CC="gcc"
833 break
834 fi
835 done
836 IFS="$ac_save_ifs"
837 fi
838 fi
839 CC="$ac_cv_prog_CC"
840 if test -n "$CC"; then
841 echo "$ac_t""$CC" 1>&6
842 else
843 echo "$ac_t""no" 1>&6
844 fi
845
846 if test -z "$CC"; then
847 # Extract the first word of "cc", so it can be a program name with args.
848 set dummy cc; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 if test -n "$CC"; then
855 ac_cv_prog_CC="$CC" # Let the user override the test.
856 else
857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 ac_prog_rejected=no
859 ac_dummy="$PATH"
860 for ac_dir in $ac_dummy; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
863 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
864 ac_prog_rejected=yes
865 continue
866 fi
867 ac_cv_prog_CC="cc"
868 break
869 fi
870 done
871 IFS="$ac_save_ifs"
872 if test $ac_prog_rejected = yes; then
873 # We found a bogon in the path, so make sure we never use it.
874 set dummy $ac_cv_prog_CC
875 shift
876 if test $# -gt 0; then
877 # We chose a different compiler from the bogus one.
878 # However, it has the same basename, so the bogon will be chosen
879 # first if we set CC to just the basename; use the full file name.
880 shift
881 set dummy "$ac_dir/$ac_word" "$@"
882 shift
883 ac_cv_prog_CC="$@"
884 fi
885 fi
886 fi
887 fi
888 CC="$ac_cv_prog_CC"
889 if test -n "$CC"; then
890 echo "$ac_t""$CC" 1>&6
891 else
892 echo "$ac_t""no" 1>&6
893 fi
894
895 if test -z "$CC"; then
896 case "`uname -s`" in
897 *win32* | *WIN32*)
898 # Extract the first word of "cl", so it can be a program name with args.
899 set dummy cl; ac_word=$2
900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
901 echo "configure:902: checking for $ac_word" >&5
902 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
904 else
905 if test -n "$CC"; then
906 ac_cv_prog_CC="$CC" # Let the user override the test.
907 else
908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 ac_dummy="$PATH"
910 for ac_dir in $ac_dummy; do
911 test -z "$ac_dir" && ac_dir=.
912 if test -f $ac_dir/$ac_word; then
913 ac_cv_prog_CC="cl"
914 break
915 fi
916 done
917 IFS="$ac_save_ifs"
918 fi
919 fi
920 CC="$ac_cv_prog_CC"
921 if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923 else
924 echo "$ac_t""no" 1>&6
925 fi
926 ;;
927 esac
928 fi
929 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 fi
931
932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934
935 ac_ext=c
936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940 cross_compiling=$ac_cv_prog_cc_cross
941
942 cat > conftest.$ac_ext << EOF
943
944 #line 945 "configure"
945 #include "confdefs.h"
946
947 main(){return(0);}
948 EOF
949 if { (eval echo configure:950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
950 ac_cv_prog_cc_works=yes
951 # If we can't run a trivial program, we are probably using a cross compiler.
952 if (./conftest; exit) 2>/dev/null; then
953 ac_cv_prog_cc_cross=no
954 else
955 ac_cv_prog_cc_cross=yes
956 fi
957 else
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 ac_cv_prog_cc_works=no
961 fi
962 rm -fr conftest*
963 ac_ext=c
964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965 ac_cpp='$CPP $CPPFLAGS'
966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968 cross_compiling=$ac_cv_prog_cc_cross
969
970 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
971 if test $ac_cv_prog_cc_works = no; then
972 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973 fi
974 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
975 echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
976 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
977 cross_compiling=$ac_cv_prog_cc_cross
978
979 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
980 echo "configure:981: checking whether we are using GNU C" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
983 else
984 cat > conftest.c <<EOF
985 #ifdef __GNUC__
986 yes;
987 #endif
988 EOF
989 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
990 ac_cv_prog_gcc=yes
991 else
992 ac_cv_prog_gcc=no
993 fi
994 fi
995
996 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997
998 if test $ac_cv_prog_gcc = yes; then
999 GCC=yes
1000 else
1001 GCC=
1002 fi
1003
1004 ac_test_CFLAGS="${CFLAGS+set}"
1005 ac_save_CFLAGS="$CFLAGS"
1006 CFLAGS=
1007 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012 echo 'void f(){}' > conftest.c
1013 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1014 ac_cv_prog_cc_g=yes
1015 else
1016 ac_cv_prog_cc_g=no
1017 fi
1018 rm -f conftest*
1019
1020 fi
1021
1022 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1023 if test "$ac_test_CFLAGS" = set; then
1024 CFLAGS="$ac_save_CFLAGS"
1025 elif test $ac_cv_prog_cc_g = yes; then
1026 if test "$GCC" = yes; then
1027 CFLAGS="-g -O2"
1028 else
1029 CFLAGS="-g"
1030 fi
1031 else
1032 if test "$GCC" = yes; then
1033 CFLAGS="-O2"
1034 else
1035 CFLAGS=
1036 fi
1037 fi
1038
1039 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1040 do
1041 # Extract the first word of "$ac_prog", so it can be a program name with args.
1042 set dummy $ac_prog; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1047 else
1048 if test -n "$CXX"; then
1049 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1050 else
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1052 ac_dummy="$PATH"
1053 for ac_dir in $ac_dummy; do
1054 test -z "$ac_dir" && ac_dir=.
1055 if test -f $ac_dir/$ac_word; then
1056 ac_cv_prog_CXX="$ac_prog"
1057 break
1058 fi
1059 done
1060 IFS="$ac_save_ifs"
1061 fi
1062 fi
1063 CXX="$ac_cv_prog_CXX"
1064 if test -n "$CXX"; then
1065 echo "$ac_t""$CXX" 1>&6
1066 else
1067 echo "$ac_t""no" 1>&6
1068 fi
1069
1070 test -n "$CXX" && break
1071 done
1072 test -n "$CXX" || CXX="gcc"
1073
1074
1075 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1077
1078 ac_ext=C
1079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1080 ac_cpp='$CXXCPP $CPPFLAGS'
1081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1083 cross_compiling=$ac_cv_prog_cxx_cross
1084
1085 cat > conftest.$ac_ext << EOF
1086
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1089
1090 int main(){return(0);}
1091 EOF
1092 if { (eval echo configure:1093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1093 ac_cv_prog_cxx_works=yes
1094 # If we can't run a trivial program, we are probably using a cross compiler.
1095 if (./conftest; exit) 2>/dev/null; then
1096 ac_cv_prog_cxx_cross=no
1097 else
1098 ac_cv_prog_cxx_cross=yes
1099 fi
1100 else
1101 echo "configure: failed program was:" >&5
1102 cat conftest.$ac_ext >&5
1103 ac_cv_prog_cxx_works=no
1104 fi
1105 rm -fr conftest*
1106 ac_ext=c
1107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1108 ac_cpp='$CPP $CPPFLAGS'
1109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1111 cross_compiling=$ac_cv_prog_cc_cross
1112
1113 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1114 if test $ac_cv_prog_cxx_works = no; then
1115 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1116 fi
1117 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1119 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1120 cross_compiling=$ac_cv_prog_cxx_cross
1121
1122 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether we are using GNU C++" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1126 else
1127 cat > conftest.C <<EOF
1128 #ifdef __GNUC__
1129 yes;
1130 #endif
1131 EOF
1132 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1133 ac_cv_prog_gxx=yes
1134 else
1135 ac_cv_prog_gxx=no
1136 fi
1137 fi
1138
1139 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1140
1141 if test $ac_cv_prog_gxx = yes; then
1142 GXX=yes
1143 else
1144 GXX=
1145 fi
1146
1147 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1148 ac_save_CXXFLAGS="$CXXFLAGS"
1149 CXXFLAGS=
1150 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1151 echo "configure:1152: checking whether ${CXX-g++} accepts -g" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1154 else
1155 echo 'void f(){}' > conftest.cc
1156 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1157 ac_cv_prog_cxx_g=yes
1158 else
1159 ac_cv_prog_cxx_g=no
1160 fi
1161 rm -f conftest*
1162
1163 fi
1164
1165 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1166 if test "$ac_test_CXXFLAGS" = set; then
1167 CXXFLAGS="$ac_save_CXXFLAGS"
1168 elif test $ac_cv_prog_cxx_g = yes; then
1169 if test "$GXX" = yes; then
1170 CXXFLAGS="-g -O2"
1171 else
1172 CXXFLAGS="-g"
1173 fi
1174 else
1175 if test "$GXX" = yes; then
1176 CXXFLAGS="-O2"
1177 else
1178 CXXFLAGS=
1179 fi
1180 fi
1181
1182
1183 ###
1184 ### SSL libs
1185 ###
1186
1187 # Check whether --with-ssl or --without-ssl was given.
1188 if test "${with_ssl+set}" = set; then
1189 withval="$with_ssl"
1190 with_ssl=$withval
1191 fi
1192
1193
1194 if test "$with_ssl" != "no"; then
1195 # Check whether --with-openssl or --without-openssl was given.
1196 if test "${with_openssl+set}" = set; then
1197 withval="$with_openssl"
1198 with_openssl=$withval
1199 fi
1200
1201
1202 if test -z "$with_openssl"; then
1203 for ac_dir in /usr/local /usr; do
1204 if test -f "$ac_dir/include/openssl/ssl.h"; then
1205 with_openssl=$ac_dir
1206 break;
1207 fi
1208 done
1209 fi
1210
1211 echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6
1212 echo "configure:1213: checking for OpenSSL" >&5
1213
1214 if test -n "$with_openssl" -a "$with_openssl" != "no"; then
1215 if test "$with_openssl" = "yes"; then with_openssl="/usr"; fi
1216 CFLAGS="$CFLAGS -I${with_openssl}"
1217 cat >> confdefs.h <<\EOF
1218 #define HAVE_OPENSSL 1
1219 EOF
1220
1221 echo "$ac_t""found in $with_openssl" 1>&6
1222 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
1223 echo "configure:1224: checking for main in -lcrypto" >&5
1224 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
1225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1227 else
1228 ac_save_LIBS="$LIBS"
1229 LIBS="-lcrypto $LIBS"
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1233
1234 int main() {
1235 main()
1236 ; return 0; }
1237 EOF
1238 if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1239 rm -rf conftest*
1240 eval "ac_cv_lib_$ac_lib_var=yes"
1241 else
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1244 rm -rf conftest*
1245 eval "ac_cv_lib_$ac_lib_var=no"
1246 fi
1247 rm -f conftest*
1248 LIBS="$ac_save_LIBS"
1249
1250 fi
1251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1252 echo "$ac_t""yes" 1>&6
1253
1254 echo $ac_n "checking for SSLeay_add_all_algorithms in -lcrypto""... $ac_c" 1>&6
1255 echo "configure:1256: checking for SSLeay_add_all_algorithms in -lcrypto" >&5
1256 ac_lib_var=`echo crypto'_'SSLeay_add_all_algorithms | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260 ac_save_LIBS="$LIBS"
1261 LIBS="-lcrypto $LIBS"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1268 char SSLeay_add_all_algorithms();
1269
1270 int main() {
1271 SSLeay_add_all_algorithms()
1272 ; return 0; }
1273 EOF
1274 if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1275 rm -rf conftest*
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1277 else
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1280 rm -rf conftest*
1281 eval "ac_cv_lib_$ac_lib_var=no"
1282 fi
1283 rm -f conftest*
1284 LIBS="$ac_save_LIBS"
1285
1286 fi
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289
1290 cat >> confdefs.h <<\EOF
1291 #define HAVE_SSLEAY 1
1292 EOF
1293
1294
1295 else
1296 echo "$ac_t""no" 1>&6
1297 fi
1298
1299
1300 else
1301 echo "$ac_t""no" 1>&6
1302 fi
1303
1304 echo $ac_n "checking for main in -lssl""... $ac_c" 1>&6
1305 echo "configure:1306: checking for main in -lssl" >&5
1306 ac_lib_var=`echo ssl'_'main | sed 'y%./+-%__p_%'`
1307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1309 else
1310 ac_save_LIBS="$LIBS"
1311 LIBS="-lssl $LIBS"
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1315
1316 int main() {
1317 main()
1318 ; return 0; }
1319 EOF
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1323 else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
1328 fi
1329 rm -f conftest*
1330 LIBS="$ac_save_LIBS"
1331
1332 fi
1333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1337 cat >> confdefs.h <<EOF
1338 #define $ac_tr_lib 1
1339 EOF
1340
1341 LIBS="-lssl $LIBS"
1342
1343 else
1344 echo "$ac_t""no" 1>&6
1345 fi
1346
1347 else
1348 echo "$ac_t""not found or disabled" 1>&6
1349
1350 # Check whether --with-libgnutls-extra-prefix or --without-libgnutls-extra-prefix was given.
1351 if test "${with_libgnutls_extra_prefix+set}" = set; then
1352 withval="$with_libgnutls_extra_prefix"
1353 libgnutls_extra_config_prefix="$withval"
1354 else
1355 libgnutls_extra_config_prefix=""
1356 fi
1357
1358
1359 if test x$libgnutls_extra_config_prefix != x ; then
1360 libgnutls_extra_config_args="$libgnutls_extra_config_args --prefix=$libgnutls_extra_config_prefix"
1361 if test x${LIBGNUTLS_EXTRA_CONFIG+set} != xset ; then
1362 LIBGNUTLS_EXTRA_CONFIG=$libgnutls_extra_config_prefix/bin/libgnutls-extra-config
1363 fi
1364 fi
1365
1366 # Extract the first word of "libgnutls-extra-config", so it can be a program name with args.
1367 set dummy libgnutls-extra-config; ac_word=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_path_LIBGNUTLS_EXTRA_CONFIG'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373 case "$LIBGNUTLS_EXTRA_CONFIG" in
1374 /*)
1375 ac_cv_path_LIBGNUTLS_EXTRA_CONFIG="$LIBGNUTLS_EXTRA_CONFIG" # Let the user override the test with a path.
1376 ;;
1377 ?:/*)
1378 ac_cv_path_LIBGNUTLS_EXTRA_CONFIG="$LIBGNUTLS_EXTRA_CONFIG" # Let the user override the test with a dos path.
1379 ;;
1380 *)
1381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1382 ac_dummy="$PATH"
1383 for ac_dir in $ac_dummy; do
1384 test -z "$ac_dir" && ac_dir=.
1385 if test -f $ac_dir/$ac_word; then
1386 ac_cv_path_LIBGNUTLS_EXTRA_CONFIG="$ac_dir/$ac_word"
1387 break
1388 fi
1389 done
1390 IFS="$ac_save_ifs"
1391 test -z "$ac_cv_path_LIBGNUTLS_EXTRA_CONFIG" && ac_cv_path_LIBGNUTLS_EXTRA_CONFIG="no"
1392 ;;
1393 esac
1394 fi
1395 LIBGNUTLS_EXTRA_CONFIG="$ac_cv_path_LIBGNUTLS_EXTRA_CONFIG"
1396 if test -n "$LIBGNUTLS_EXTRA_CONFIG"; then
1397 echo "$ac_t""$LIBGNUTLS_EXTRA_CONFIG" 1>&6
1398 else
1399 echo "$ac_t""no" 1>&6
1400 fi
1401
1402 min_libgnutls_version=0.0.1
1403 echo $ac_n "checking for libgnutls - version >= $min_libgnutls_version""... $ac_c" 1>&6
1404 echo "configure:1405: checking for libgnutls - version >= $min_libgnutls_version" >&5
1405 no_libgnutls=""
1406 if test "$LIBGNUTLS_EXTRA_CONFIG" = "no" ; then
1407 no_libgnutls=yes
1408 else
1409 LIBGNUTLS_EXTRA_CFLAGS=`$LIBGNUTLS_EXTRA_CONFIG $libgnutls_extra_config_args --cflags`
1410 LIBGNUTLS_EXTRA_LIBS=`$LIBGNUTLS_EXTRA_CONFIG $libgnutls_extra_config_args --libs`
1411 libgnutls_extra_config_version=`$LIBGNUTLS_EXTRA_CONFIG $libgnutls_extra_config_args --version`
1412
1413
1414 ac_save_CFLAGS="$CFLAGS"
1415 ac_save_LIBS="$LIBS"
1416 CFLAGS="$CFLAGS $LIBGNUTLS_EXTRA_CFLAGS"
1417 LIBS="$LIBS $LIBGNUTLS_EXTRA_LIBS"
1418 rm -f conf.libgnutlstest
1419 if test "$cross_compiling" = yes; then
1420 echo $ac_n "cross compiling; assumed OK... $ac_c"
1421 else
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425
1426 #include <stdio.h>
1427 #include <stdlib.h>
1428 #include <string.h>
1429 #include <gnutls/extra.h>
1430
1431 int
1432 main ()
1433 {
1434 system ("touch conf.libgnutlstest");
1435
1436 if( strcmp( gnutls_extra_check_version(NULL), "$libgnutls_extra_config_version" ) )
1437 {
1438 printf("\n*** 'libgnutls-extra-config --version' returned %s, but LIBGNUTLS_EXTRA (%s)\n",
1439 "$libgnutls_extra_config_version", gnutls_extra_check_version(NULL) );
1440 printf("*** was found! If libgnutls-extra-config was correct, then it is best\n");
1441 printf("*** to remove the old version of LIBGNUTLS_EXTRA. You may also be able to fix the error\n");
1442 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1443 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1444 printf("*** required on your system.\n");
1445 printf("*** If libgnutls-extra-config was wrong, set the environment variable LIBGNUTLS_EXTRA_CONFIG\n");
1446 printf("*** to point to the correct copy of libgnutls-extra-config, and remove the file config.cache\n");
1447 printf("*** before re-running configure\n");
1448 }
1449 else if ( strcmp(gnutls_extra_check_version(NULL), LIBGNUTLS_EXTRA_VERSION ) )
1450 {
1451 printf("\n*** LIBGNUTLS_EXTRA header file (version %s) does not match\n", LIBGNUTLS_EXTRA_VERSION);
1452 printf("*** library (version %s). This is may be due to a different version of gnutls\n", gnutls_extra_check_version(NULL) );
1453 printf("*** and gnutls-extra.\n");
1454 }
1455 else
1456 {
1457 if ( gnutls_extra_check_version( "$min_libgnutls_version" ) )
1458 {
1459 return 0;
1460 }
1461 else
1462 {
1463 printf("no\n*** An old version of LIBGNUTLS_EXTRA (%s) was found.\n",
1464 gnutls_extra_check_version(NULL) );
1465 printf("*** You need a version of LIBGNUTLS_EXTRA newer than %s. The latest version of\n",
1466 "$min_libgnutls_version" );
1467 printf("*** LIBGNUTLS_EXTRA is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
1468 printf("*** \n");
1469 printf("*** If you have already installed a sufficiently new version, this error\n");
1470 printf("*** probably means that the wrong copy of the libgnutls-extra-config shell script is\n");
1471 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1472 printf("*** of LIBGNUTLS_EXTRA, but you can also set the LIBGNUTLS_EXTRA_CONFIG environment to point to the\n");
1473 printf("*** correct copy of libgnutls-extra-config. (In this case, you will have to\n");
1474 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1475 printf("*** so that the correct libraries are found at run-time))\n");
1476 }
1477 }
1478 return 1;
1479 }
1480
1481 EOF
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1483 then
1484 :
1485 else
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -fr conftest*
1489 no_libgnutls=yes
1490 fi
1491 rm -fr conftest*
1492 fi
1493
1494 CFLAGS="$ac_save_CFLAGS"
1495 LIBS="$ac_save_LIBS"
1496 fi
1497
1498 if test "x$no_libgnutls" = x ; then
1499 echo "$ac_t""yes" 1>&6
1500
1501 CXXFLAGS="$CXXFLAGS $LIBGNUTLS_CFLAGS"
1502 LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra"
1503 cat >> confdefs.h <<\EOF
1504 #define HAVE_GNUTLS 1
1505 EOF
1506
1507
1508 else
1509 if test -f conf.libgnutlstest ; then
1510 :
1511 else
1512 echo "$ac_t""no" 1>&6
1513 fi
1514 if test "$LIBGNUTLS_EXTRA_CONFIG" = "no" ; then
1515 echo "*** The libgnutls-extra-config script installed by LIBGNUTLS_EXTRA could not be found"
1516 echo "*** If LIBGNUTLS_EXTRA was installed in PREFIX, make sure PREFIX/bin is in"
1517 echo "*** your path, or set the LIBGNUTLS_EXTRA_CONFIG environment variable to the"
1518 echo "*** full path to libgnutls-extra-config."
1519 else
1520 if test -f conf.libgnutlstest ; then
1521 :
1522 else
1523 echo "*** Could not run libgnutls test program, checking why..."
1524 CFLAGS="$CFLAGS $LIBGNUTLS_EXTRA_CFLAGS"
1525 LIBS="$LIBS $LIBGNUTLS_EXTRA_LIBS"
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1529
1530 #include <stdio.h>
1531 #include <stdlib.h>
1532 #include <string.h>
1533 #include <gnutls/extra.h>
1534
1535 int main() {
1536 return !!gnutls_extra_check_version(NULL);
1537 ; return 0; }
1538 EOF
1539 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1540 rm -rf conftest*
1541 echo "*** The test program compiled, but did not run. This usually means"
1542 echo "*** that the run-time linker is not finding LIBGNUTLS_EXTRA or finding the wrong"
1543 echo "*** version of LIBGNUTLS_EXTRA. If it is not finding LIBGNUTLS_EXTRA, you'll need to set your"
1544 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1545 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1546 echo "*** is required on your system"
1547 echo "***"
1548 echo "*** If you have an old version installed, it is best to remove it, although"
1549 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1550 echo "***"
1551 else
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1554 rm -rf conftest*
1555 echo "*** The test program failed to compile or link. See the file config.log for the"
1556 echo "*** exact error that occured. This usually means LIBGNUTLS_EXTRA was incorrectly installed"
1557 echo "*** or that you have moved LIBGNUTLS_EXTRA since it was installed. In the latter case, you"
1558 echo "*** may want to edit the libgnutls-extra-config script: $LIBGNUTLS_EXTRA_CONFIG"
1559 fi
1560 rm -f conftest*
1561 CFLAGS="$ac_save_CFLAGS"
1562 LIBS="$ac_save_LIBS"
1563 fi
1564 fi
1565 LIBGNUTLS_EXTRA_CFLAGS=""
1566 LIBGNUTLS_EXTRA_LIBS=""
1567 :
1568 fi
1569 rm -f conf.libgnutlstest
1570
1571
1572
1573 fi
1574 fi
1575
1576 echo $ac_n "checking for inet_aton() presence""... $ac_c" 1>&6
1577 echo "configure:1578: checking for inet_aton() presence" >&5
1578
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582
1583
1584 #include <sys/types.h>
1585 #include <sys/socket.h>
1586 #include <netinet/in.h>
1587 #include <arpa/inet.h>
1588
1589
1590 int main() {
1591
1592
1593 struct in_addr inp;
1594 inet_aton("address", &inp);
1595
1596
1597 ; return 0; }
1598 EOF
1599 if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1600 rm -rf conftest*
1601 have_aton=yes
1602 else
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 rm -rf conftest*
1606 have_aton=no
1607 fi
1608 rm -f conftest*
1609
1610 if test "$have_aton" = "yes"; then
1611 cat >> confdefs.h <<\EOF
1612 #define HAVE_INET_ATON 1
1613 EOF
1614
1615 echo "$ac_t""yes" 1>&6
1616 else
1617 echo "$ac_t""no" 1>&6
1618 fi
1619
1620 trap '' 1 2 15
1621 cat > confcache <<\EOF
1622 # This file is a shell script that caches the results of configure
1623 # tests run on this system so they can be shared between configure
1624 # scripts and configure runs. It is not useful on other systems.
1625 # If it contains results you don't want to keep, you may remove or edit it.
1626 #
1627 # By default, configure uses ./config.cache as the cache file,
1628 # creating it if it does not exist already. You can give configure
1629 # the --cache-file=FILE option to use a different cache file; that is
1630 # what configure does when it calls configure scripts in
1631 # subdirectories, so they share the cache.
1632 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1633 # config.status only pays attention to the cache file if you give it the
1634 # --recheck option to rerun configure.
1635 #
1636 EOF
1637 # The following way of writing the cache mishandles newlines in values,
1638 # but we know of no workaround that is simple, portable, and efficient.
1639 # So, don't put newlines in cache variables' values.
1640 # Ultrix sh set writes to stderr and can't be redirected directly,
1641 # and sets the high bit in the cache file unless we assign to the vars.
1642 (set) 2>&1 |
1643 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1644 *ac_space=\ *)
1645 # `set' does not quote correctly, so add quotes (double-quote substitution
1646 # turns \\\\ into \\, and sed turns \\ into \).
1647 sed -n \
1648 -e "s/'/'\\\\''/g" \
1649 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1650 ;;
1651 *)
1652 # `set' quotes correctly as required by POSIX, so do not add quotes.
1653 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1654 ;;
1655 esac >> confcache
1656 if cmp -s $cache_file confcache; then
1657 :
1658 else
1659 if test -w $cache_file; then
1660 echo "updating cache $cache_file"
1661 cat confcache > $cache_file
1662 else
1663 echo "not updating unwritable cache $cache_file"
1664 fi
1665 fi
1666 rm -f confcache
1667
1668 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1669
1670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1671 # Let make expand exec_prefix.
1672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1673
1674 # Any assignment to VPATH causes Sun make to only execute
1675 # the first set of double-colon rules, so remove it if not needed.
1676 # If there is a colon in the path, we need to keep it.
1677 if test "x$srcdir" = x.; then
1678 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1679 fi
1680
1681 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1682
1683 # Transform confdefs.h into DEFS.
1684 # Protect against shell expansion while executing Makefile rules.
1685 # Protect against Makefile macro expansion.
1686 cat > conftest.defs <<\EOF
1687 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1688 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1689 s%\[%\\&%g
1690 s%\]%\\&%g
1691 s%\$%$$%g
1692 EOF
1693 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1694 rm -f conftest.defs
1695
1696
1697 # Without the "./", some shells look in PATH for config.status.
1698 : ${CONFIG_STATUS=./config.status}
1699
1700 echo creating $CONFIG_STATUS
1701 rm -f $CONFIG_STATUS
1702 cat > $CONFIG_STATUS <<EOF
1703 #! /bin/sh
1704 # Generated automatically by configure.
1705 # Run this file to recreate the current configuration.
1706 # This directory was configured as follows,
1707 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1708 #
1709 # $0 $ac_configure_args
1710 #
1711 # Compiler output produced by configure, useful for debugging
1712 # configure, is in ./config.log if it exists.
1713
1714 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1715 for ac_option
1716 do
1717 case "\$ac_option" in
1718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1719 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1720 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1721 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1722 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1723 exit 0 ;;
1724 -help | --help | --hel | --he | --h)
1725 echo "\$ac_cs_usage"; exit 0 ;;
1726 *) echo "\$ac_cs_usage"; exit 1 ;;
1727 esac
1728 done
1729
1730 ac_given_srcdir=$srcdir
1731 ac_given_INSTALL="$INSTALL"
1732
1733 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1734 EOF
1735 cat >> $CONFIG_STATUS <<EOF
1736
1737 # Protect against being on the right side of a sed subst in config.status.
1738 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1739 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1740 $ac_vpsub
1741 $extrasub
1742 s%@SHELL@%$SHELL%g
1743 s%@CFLAGS@%$CFLAGS%g
1744 s%@CPPFLAGS@%$CPPFLAGS%g
1745 s%@CXXFLAGS@%$CXXFLAGS%g
1746 s%@FFLAGS@%$FFLAGS%g
1747 s%@DEFS@%$DEFS%g
1748 s%@LDFLAGS@%$LDFLAGS%g
1749 s%@LIBS@%$LIBS%g
1750 s%@exec_prefix@%$exec_prefix%g
1751 s%@prefix@%$prefix%g
1752 s%@program_transform_name@%$program_transform_name%g
1753 s%@bindir@%$bindir%g
1754 s%@sbindir@%$sbindir%g
1755 s%@libexecdir@%$libexecdir%g
1756 s%@datadir@%$datadir%g
1757 s%@sysconfdir@%$sysconfdir%g
1758 s%@sharedstatedir@%$sharedstatedir%g
1759 s%@localstatedir@%$localstatedir%g
1760 s%@libdir@%$libdir%g
1761 s%@includedir@%$includedir%g
1762 s%@oldincludedir@%$oldincludedir%g
1763 s%@infodir@%$infodir%g
1764 s%@mandir@%$mandir%g
1765 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1766 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1767 s%@INSTALL_DATA@%$INSTALL_DATA%g
1768 s%@PACKAGE@%$PACKAGE%g
1769 s%@VERSION@%$VERSION%g
1770 s%@ACLOCAL@%$ACLOCAL%g
1771 s%@AUTOCONF@%$AUTOCONF%g
1772 s%@AUTOMAKE@%$AUTOMAKE%g
1773 s%@AUTOHEADER@%$AUTOHEADER%g
1774 s%@MAKEINFO@%$MAKEINFO%g
1775 s%@SET_MAKE@%$SET_MAKE%g
1776 s%@RANLIB@%$RANLIB%g
1777 s%@CC@%$CC%g
1778 s%@CXX@%$CXX%g
1779 s%@LIBGNUTLS_EXTRA_CONFIG@%$LIBGNUTLS_EXTRA_CONFIG%g
1780 s%@LIBGNUTLS_EXTRA_CFLAGS@%$LIBGNUTLS_EXTRA_CFLAGS%g
1781 s%@LIBGNUTLS_EXTRA_LIBS@%$LIBGNUTLS_EXTRA_LIBS%g
1782
1783 CEOF
1784 EOF
1785
1786 cat >> $CONFIG_STATUS <<\EOF
1787
1788 # Split the substitutions into bite-sized pieces for seds with
1789 # small command number limits, like on Digital OSF/1 and HP-UX.
1790 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1791 ac_file=1 # Number of current file.
1792 ac_beg=1 # First line for current file.
1793 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1794 ac_more_lines=:
1795 ac_sed_cmds=""
1796 while $ac_more_lines; do
1797 if test $ac_beg -gt 1; then
1798 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1799 else
1800 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1801 fi
1802 if test ! -s conftest.s$ac_file; then
1803 ac_more_lines=false
1804 rm -f conftest.s$ac_file
1805 else
1806 if test -z "$ac_sed_cmds"; then
1807 ac_sed_cmds="sed -f conftest.s$ac_file"
1808 else
1809 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1810 fi
1811 ac_file=`expr $ac_file + 1`
1812 ac_beg=$ac_end
1813 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1814 fi
1815 done
1816 if test -z "$ac_sed_cmds"; then
1817 ac_sed_cmds=cat
1818 fi
1819 EOF
1820
1821 cat >> $CONFIG_STATUS <<EOF
1822
1823 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1824 EOF
1825 cat >> $CONFIG_STATUS <<\EOF
1826 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1828 case "$ac_file" in
1829 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1830 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1831 *) ac_file_in="${ac_file}.in" ;;
1832 esac
1833
1834 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1835
1836 # Remove last slash and all that follows it. Not all systems have dirname.
1837 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1839 # The file is in a subdirectory.
1840 test ! -d "$ac_dir" && mkdir "$ac_dir"
1841 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1842 # A "../" for each directory in $ac_dir_suffix.
1843 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1844 else
1845 ac_dir_suffix= ac_dots=
1846 fi
1847
1848 case "$ac_given_srcdir" in
1849 .) srcdir=.
1850 if test -z "$ac_dots"; then top_srcdir=.
1851 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1852 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1853 *) # Relative path.
1854 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1855 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1856 esac
1857
1858 case "$ac_given_INSTALL" in
1859 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1860 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1861 esac
1862
1863 echo creating "$ac_file"
1864 rm -f "$ac_file"
1865 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1866 case "$ac_file" in
1867 *Makefile*) ac_comsub="1i\\
1868 # $configure_input" ;;
1869 *) ac_comsub= ;;
1870 esac
1871
1872 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1873 sed -e "$ac_comsub
1874 s%@configure_input@%$configure_input%g
1875 s%@srcdir@%$srcdir%g
1876 s%@top_srcdir@%$top_srcdir%g
1877 s%@INSTALL@%$INSTALL%g
1878 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1879 fi; done
1880 rm -f conftest.s*
1881
1882 EOF
1883 cat >> $CONFIG_STATUS <<EOF
1884
1885 EOF
1886 cat >> $CONFIG_STATUS <<\EOF
1887
1888 exit 0
1889 EOF
1890 chmod +x $CONFIG_STATUS
1891 rm -fr confdefs* $ac_clean_files
1892 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1893