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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-rlm-ldap-lib-dir=DIR directory for LDAP library files []"
17 --with-rlm-ldap-include-dir=DIR directory for LDAP include files []"
19 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 --with-threads use threads, if available. (default=yes) "
23 --with-edir enable Novell eDirectory integration. (default=no) "
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=rlm_ldap.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
534 # From configure.in Revision: 1.10.2.4
540 if test x$with_rlm_ldap != xno; then
542 # Extract the first word of "gcc", so it can be a program name with args.
543 set dummy gcc; ac_word=$2
544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
545 echo "configure:546: checking for $ac_word" >&5
546 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
549 if test -n "$CC"; then
550 ac_cv_prog_CC="$CC" # Let the user override the test.
552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
554 for ac_dir in $ac_dummy; do
555 test -z "$ac_dir" && ac_dir=.
556 if test -f $ac_dir/$ac_word; then
565 if test -n "$CC"; then
566 echo "$ac_t""$CC" 1>&6
568 echo "$ac_t""no" 1>&6
571 if test -z "$CC"; then
572 # Extract the first word of "cc", so it can be a program name with args.
573 set dummy cc; ac_word=$2
574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
575 echo "configure:576: checking for $ac_word" >&5
576 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
579 if test -n "$CC"; then
580 ac_cv_prog_CC="$CC" # Let the user override the test.
582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
585 for ac_dir in $ac_dummy; do
586 test -z "$ac_dir" && ac_dir=.
587 if test -f $ac_dir/$ac_word; then
588 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
597 if test $ac_prog_rejected = yes; then
598 # We found a bogon in the path, so make sure we never use it.
599 set dummy $ac_cv_prog_CC
601 if test $# -gt 0; then
602 # We chose a different compiler from the bogus one.
603 # However, it has the same basename, so the bogon will be chosen
604 # first if we set CC to just the basename; use the full file name.
606 set dummy "$ac_dir/$ac_word" "$@"
614 if test -n "$CC"; then
615 echo "$ac_t""$CC" 1>&6
617 echo "$ac_t""no" 1>&6
620 if test -z "$CC"; then
623 # Extract the first word of "cl", so it can be a program name with args.
624 set dummy cl; ac_word=$2
625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
626 echo "configure:627: checking for $ac_word" >&5
627 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
630 if test -n "$CC"; then
631 ac_cv_prog_CC="$CC" # Let the user override the test.
633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
635 for ac_dir in $ac_dummy; do
636 test -z "$ac_dir" && ac_dir=.
637 if test -f $ac_dir/$ac_word; then
646 if test -n "$CC"; then
647 echo "$ac_t""$CC" 1>&6
649 echo "$ac_t""no" 1>&6
654 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
657 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
658 echo "configure:659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
662 ac_cpp='$CPP $CPPFLAGS'
663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
664 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
665 cross_compiling=$ac_cv_prog_cc_cross
667 cat > conftest.$ac_ext << EOF
669 #line 670 "configure"
670 #include "confdefs.h"
674 if { (eval echo configure:675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
675 ac_cv_prog_cc_works=yes
676 # If we can't run a trivial program, we are probably using a cross compiler.
677 if (./conftest; exit) 2>/dev/null; then
678 ac_cv_prog_cc_cross=no
680 ac_cv_prog_cc_cross=yes
683 echo "configure: failed program was:" >&5
684 cat conftest.$ac_ext >&5
685 ac_cv_prog_cc_works=no
689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
690 ac_cpp='$CPP $CPPFLAGS'
691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
693 cross_compiling=$ac_cv_prog_cc_cross
695 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
696 if test $ac_cv_prog_cc_works = no; then
697 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
699 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
700 echo "configure:701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
701 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
702 cross_compiling=$ac_cv_prog_cc_cross
704 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
705 echo "configure:706: checking whether we are using GNU C" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 cat > conftest.c <<EOF
714 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
721 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
723 if test $ac_cv_prog_gcc = yes; then
729 ac_test_CFLAGS="${CFLAGS+set}"
730 ac_save_CFLAGS="$CFLAGS"
732 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
733 echo "configure:734: checking whether ${CC-cc} accepts -g" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 echo 'void f(){}' > conftest.c
738 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
747 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
748 if test "$ac_test_CFLAGS" = set; then
749 CFLAGS="$ac_save_CFLAGS"
750 elif test $ac_cv_prog_cc_g = yes; then
751 if test "$GCC" = yes; then
757 if test "$GCC" = yes; then
767 # Check whether --with-rlm-ldap-lib-dir or --without-rlm-ldap-lib-dir was given.
768 if test "${with_rlm_ldap_lib_dir+set}" = set; then
769 withval="$with_rlm_ldap_lib_dir"
772 { echo "configure: error: Need rlm-ldap-lib-dir" 1>&2; exit 1; }
777 rlm_ldap_lib_dir="$withval"
784 rlm_ldap_include_dir=
785 # Check whether --with-rlm-ldap-include-dir or --without-rlm-ldap-include-dir was given.
786 if test "${with_rlm_ldap_include_dir+set}" = set; then
787 withval="$with_rlm_ldap_include_dir"
790 { echo "configure: error: Need rlm-ldap-include-dir" 1>&2; exit 1; }
795 rlm_ldap_include_dir="$withval"
802 # Check whether --enable-shared or --disable-shared was given.
803 if test "${enable_shared+set}" = set; then
804 enableval="$enable_shared"
807 yes) enable_shared=yes ;;
808 no) enable_shared=no ;;
811 # Look at the argument we got. We use all the common list separators.
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
813 for pkg in $enableval; do
814 if test "X$pkg" = "X$p"; then
826 if test "x$enable_shared" = "xno"; then
827 echo "configure: warning: Static linking with libldap will probably result in unresolved symbols." 1>&2
830 rlm_ldap_with_threads=yes
831 # Check whether --with-threads or --without-threads was given.
832 if test "${with_threads+set}" = set; then
833 withval="$with_threads"
836 rlm_ldap_with_threads=no
845 if test "x$rlm_ldap_with_threads" = "xyes"; then
846 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
847 echo "configure:848: checking for pthread_create in -lpthread" >&5
848 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
853 LIBS="-lpthread $LIBS"
854 cat > conftest.$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
857 /* Override any gcc2 internal prototype to avoid an error. */
858 /* We use char because int might match the return type of a gcc2
859 builtin and then its argument prototype would still apply. */
860 char pthread_create();
866 if { (eval echo configure:867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
868 eval "ac_cv_lib_$ac_lib_var=yes"
870 echo "configure: failed program was:" >&5
871 cat conftest.$ac_ext >&5
873 eval "ac_cv_lib_$ac_lib_var=no"
879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
880 echo "$ac_t""yes" 1>&6
881 LIBS="-lpthread $LIBS"
883 echo "$ac_t""no" 1>&6
884 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
885 echo "configure:886: checking for pthread_create in -lc_r" >&5
886 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
895 /* Override any gcc2 internal prototype to avoid an error. */
896 /* We use char because int might match the return type of a gcc2
897 builtin and then its argument prototype would still apply. */
898 char pthread_create();
904 if { (eval echo configure:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
906 eval "ac_cv_lib_$ac_lib_var=yes"
908 echo "configure: failed program was:" >&5
909 cat conftest.$ac_ext >&5
911 eval "ac_cv_lib_$ac_lib_var=no"
917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
921 echo "$ac_t""no" 1>&6
922 rlm_ldap_with_threads="no"
931 smart_try_dir=$rlm_ldap_lib_dir
932 if test "x$rlm_ldap_with_threads" = "xyes"; then
935 sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
936 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
937 echo $ac_n "checking for ldap_init in -lldap_r""... $ac_c" 1>&6
938 echo "configure:939: checking for ldap_init in -lldap_r" >&5
944 if test "x$smart_try_dir" != "x"; then
945 for try in $smart_try_dir; do
946 LIBS="-L$try -lldap_r $old_LIBS"
947 cat > conftest.$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
950 extern char ldap_init();
955 if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
957 smart_lib="-L$try -lldap_r"
959 echo "configure: failed program was:" >&5
960 cat conftest.$ac_ext >&5
963 if test "x$smart_lib" != "x"; then
970 if test "x$smart_lib" = "x"; then
971 LIBS="-lldap_r $old_LIBS"
972 cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
975 extern char ldap_init();
980 if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
984 echo "configure: failed program was:" >&5
985 cat conftest.$ac_ext >&5
991 if test "x$smart_lib" = "x"; then
994 if test "x$LOCATE" != "x"; then
996 file=libldap_r${libltdl_cv_shlibext}
998 for x in `${LOCATE} $file 2>/dev/null`; do
999 base=`echo $x | sed "s%/${file}%%"`
1000 if test "x$x" = "x$base"; then
1004 dir=`${DIRNAME} $x 2>/dev/null`
1005 exclude=`echo ${dir} | ${GREP} /home`
1006 if test "x$exclude" != "x"; then
1010 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1011 if test "x$already" = "x"; then
1017 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1021 if test "x$LOCATE" != "x"; then
1025 for x in `${LOCATE} $file 2>/dev/null`; do
1026 base=`echo $x | sed "s%/${file}%%"`
1027 if test "x$x" = "x$base"; then
1031 dir=`${DIRNAME} $x 2>/dev/null`
1032 exclude=`echo ${dir} | ${GREP} /home`
1033 if test "x$exclude" != "x"; then
1037 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1038 if test "x$already" = "x"; then
1044 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1047 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
1048 LIBS="-L$try -lldap_r $old_LIBS"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1052 extern char ldap_init();
1057 if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1059 smart_lib="-L$try -lldap_r"
1061 echo "configure: failed program was:" >&5
1062 cat conftest.$ac_ext >&5
1065 if test "x$smart_lib" != "x"; then
1072 if test "x$smart_lib" != "x"; then
1073 echo "$ac_t""yes" 1>&6
1074 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1075 LIBS="$smart_lib $old_LIBS"
1076 SMART_LIBS="$smart_lib $SMART_LIBS"
1078 echo "$ac_t""no" 1>&6
1081 if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
1082 fail="$fail libldap_r"
1087 sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
1088 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
1089 echo $ac_n "checking for ldap_init in -lldap""... $ac_c" 1>&6
1090 echo "configure:1091: checking for ldap_init in -lldap" >&5
1096 if test "x$smart_try_dir" != "x"; then
1097 for try in $smart_try_dir; do
1098 LIBS="-L$try -lldap $old_LIBS"
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1102 extern char ldap_init();
1107 if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1109 smart_lib="-L$try -lldap"
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1115 if test "x$smart_lib" != "x"; then
1122 if test "x$smart_lib" = "x"; then
1123 LIBS="-lldap $old_LIBS"
1124 cat > conftest.$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1127 extern char ldap_init();
1132 if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1136 echo "configure: failed program was:" >&5
1137 cat conftest.$ac_ext >&5
1143 if test "x$smart_lib" = "x"; then
1146 if test "x$LOCATE" != "x"; then
1148 file=libldap${libltdl_cv_shlibext}
1150 for x in `${LOCATE} $file 2>/dev/null`; do
1151 base=`echo $x | sed "s%/${file}%%"`
1152 if test "x$x" = "x$base"; then
1156 dir=`${DIRNAME} $x 2>/dev/null`
1157 exclude=`echo ${dir} | ${GREP} /home`
1158 if test "x$exclude" != "x"; then
1162 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1163 if test "x$already" = "x"; then
1169 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1173 if test "x$LOCATE" != "x"; then
1177 for x in `${LOCATE} $file 2>/dev/null`; do
1178 base=`echo $x | sed "s%/${file}%%"`
1179 if test "x$x" = "x$base"; then
1183 dir=`${DIRNAME} $x 2>/dev/null`
1184 exclude=`echo ${dir} | ${GREP} /home`
1185 if test "x$exclude" != "x"; then
1189 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1190 if test "x$already" = "x"; then
1196 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1199 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
1200 LIBS="-L$try -lldap $old_LIBS"
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1204 extern char ldap_init();
1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1211 smart_lib="-L$try -lldap"
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1217 if test "x$smart_lib" != "x"; then
1224 if test "x$smart_lib" != "x"; then
1225 echo "$ac_t""yes" 1>&6
1226 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1227 LIBS="$smart_lib $old_LIBS"
1228 SMART_LIBS="$smart_lib $SMART_LIBS"
1230 echo "$ac_t""no" 1>&6
1233 if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
1234 fail="$fail libldap"
1239 smart_try_dir=$rlm_ldap_include_dir
1242 ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
1243 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
1244 echo "configure:1245: checking for ldap.h" >&5
1246 old_CFLAGS="$CFLAGS"
1250 if test "x$smart_try_dir" != "x"; then
1251 for try in $smart_try_dir; do
1252 CFLAGS="$old_CFLAGS -I$try"
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1262 if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 smart_include="-I$try"
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1272 if test "x$smart_include" != "x"; then
1276 CFLAGS="$old_CFLAGS"
1279 if test "x$smart_include" = "x"; then
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1289 if { (eval echo configure:1290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1293 echo "configure: failed program was:" >&5
1294 cat conftest.$ac_ext >&5
1301 if test "x$smart_include" = "x"; then
1304 if test "x$LOCATE" != "x"; then
1308 for x in `${LOCATE} $file 2>/dev/null`; do
1309 base=`echo $x | sed "s%/${file}%%"`
1310 if test "x$x" = "x$base"; then
1314 dir=`${DIRNAME} $x 2>/dev/null`
1315 exclude=`echo ${dir} | ${GREP} /home`
1316 if test "x$exclude" != "x"; then
1320 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
1321 if test "x$already" = "x"; then
1327 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
1330 for try in $smart_include_dir /usr/local/include /opt/include; do
1331 CFLAGS="$old_CFLAGS -I$try"
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1343 smart_include="-I$try"
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1351 if test "x$smart_include" != "x"; then
1355 CFLAGS="$old_CFLAGS"
1358 if test "x$smart_include" != "x"; then
1359 echo "$ac_t""yes" 1>&6
1360 eval "ac_cv_header_$ac_safe=yes"
1361 CFLAGS="$old_CFLAGS $smart_include"
1362 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
1364 echo "$ac_t""no" 1>&6
1367 if test "$ac_cv_header_ldap_h" != "yes"; then
1372 if test "x$fail" = "x"; then
1373 echo $ac_n "checking for ldap_start_tls_s""... $ac_c" 1>&6
1374 echo "configure:1375: checking for ldap_start_tls_s" >&5
1375 if eval "test \"`echo '$''{'ac_cv_func_ldap_start_tls_s'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 /* System header to define __stub macros and hopefully few prototypes,
1382 which can conflict with char ldap_start_tls_s(); below. */
1384 /* Override any gcc2 internal prototype to avoid an error. */
1385 /* We use char because int might match the return type of a gcc2
1386 builtin and then its argument prototype would still apply. */
1387 char ldap_start_tls_s();
1391 /* The GNU C library defines this for functions which it implements
1392 to always fail with ENOSYS. Some functions are actually named
1393 something starting with __ and the normal name is an alias. */
1394 #if defined (__stub_ldap_start_tls_s) || defined (__stub___ldap_start_tls_s)
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 eval "ac_cv_func_ldap_start_tls_s=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 eval "ac_cv_func_ldap_start_tls_s=no"
1414 if eval "test \"`echo '$ac_cv_func_'ldap_start_tls_s`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1416 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
1418 echo "$ac_t""no" 1>&6
1421 echo $ac_n "checking for ldap_initialize""... $ac_c" 1>&6
1422 echo "configure:1423: checking for ldap_initialize" >&5
1423 if eval "test \"`echo '$''{'ac_cv_func_ldap_initialize'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 /* System header to define __stub macros and hopefully few prototypes,
1430 which can conflict with char ldap_initialize(); below. */
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1435 char ldap_initialize();
1439 /* The GNU C library defines this for functions which it implements
1440 to always fail with ENOSYS. Some functions are actually named
1441 something starting with __ and the normal name is an alias. */
1442 #if defined (__stub_ldap_initialize) || defined (__stub___ldap_initialize)
1450 if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1452 eval "ac_cv_func_ldap_initialize=yes"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1457 eval "ac_cv_func_ldap_initialize=no"
1462 if eval "test \"`echo '$ac_cv_func_'ldap_initialize`\" = yes"; then
1463 echo "$ac_t""yes" 1>&6
1464 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
1466 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking for ldap_int_tls_config""... $ac_c" 1>&6
1470 echo "configure:1471: checking for ldap_int_tls_config" >&5
1471 if eval "test \"`echo '$''{'ac_cv_func_ldap_int_tls_config'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1477 /* System header to define __stub macros and hopefully few prototypes,
1478 which can conflict with char ldap_int_tls_config(); below. */
1480 /* Override any gcc2 internal prototype to avoid an error. */
1481 /* We use char because int might match the return type of a gcc2
1482 builtin and then its argument prototype would still apply. */
1483 char ldap_int_tls_config();
1487 /* The GNU C library defines this for functions which it implements
1488 to always fail with ENOSYS. Some functions are actually named
1489 something starting with __ and the normal name is an alias. */
1490 #if defined (__stub_ldap_int_tls_config) || defined (__stub___ldap_int_tls_config)
1493 ldap_int_tls_config();
1498 if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1500 eval "ac_cv_func_ldap_int_tls_config=yes"
1502 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1505 eval "ac_cv_func_ldap_int_tls_config=no"
1510 if eval "test \"`echo '$ac_cv_func_'ldap_int_tls_config`\" = yes"; then
1511 echo "$ac_t""yes" 1>&6
1512 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
1514 echo "$ac_t""no" 1>&6
1522 echo \*\*\* module rlm_ldap is disabled.
1525 if test x"$fail" != x""; then
1526 if test x"${enable_strict_dependencies}" = x"yes"; then
1527 { echo "configure: error: set --without-rlm_ldap to disable it explicitly." 1>&2; exit 1; }
1529 echo "configure: warning: silently not building rlm_ldap." 1>&2
1530 echo "configure: warning: FAILURE: rlm_ldap requires: $fail." 1>&2
1531 if test x"$headersuggestion" != x; then
1532 echo "configure: warning: $headersuggestion" 1>&2
1534 if test x"$libsuggestion" != x; then
1535 echo "configure: warning: $libsuggestion" 1>&2
1542 # Check whether --with-edir or --without-edir was given.
1543 if test "${with_edir+set}" = set; then
1544 withval="$with_edir"
1547 SMART_CFLAGS="$SMART_CFLAGS -DNOVELL_UNIVERSAL_PASSWORD -DNOVELL"
1548 edir="edir_ldapext.c"
1557 ldap_ldflags=$SMART_LIBS
1558 ldap_cflags=$SMART_CFLAGS
1564 cat > confcache <<\EOF
1565 # This file is a shell script that caches the results of configure
1566 # tests run on this system so they can be shared between configure
1567 # scripts and configure runs. It is not useful on other systems.
1568 # If it contains results you don't want to keep, you may remove or edit it.
1570 # By default, configure uses ./config.cache as the cache file,
1571 # creating it if it does not exist already. You can give configure
1572 # the --cache-file=FILE option to use a different cache file; that is
1573 # what configure does when it calls configure scripts in
1574 # subdirectories, so they share the cache.
1575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1576 # config.status only pays attention to the cache file if you give it the
1577 # --recheck option to rerun configure.
1580 # The following way of writing the cache mishandles newlines in values,
1581 # but we know of no workaround that is simple, portable, and efficient.
1582 # So, don't put newlines in cache variables' values.
1583 # Ultrix sh set writes to stderr and can't be redirected directly,
1584 # and sets the high bit in the cache file unless we assign to the vars.
1586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1588 # `set' does not quote correctly, so add quotes (double-quote substitution
1589 # turns \\\\ into \\, and sed turns \\ into \).
1591 -e "s/'/'\\\\''/g" \
1592 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1595 # `set' quotes correctly as required by POSIX, so do not add quotes.
1596 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1599 if cmp -s $cache_file confcache; then
1602 if test -w $cache_file; then
1603 echo "updating cache $cache_file"
1604 cat confcache > $cache_file
1606 echo "not updating unwritable cache $cache_file"
1611 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1614 # Let make expand exec_prefix.
1615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1617 # Any assignment to VPATH causes Sun make to only execute
1618 # the first set of double-colon rules, so remove it if not needed.
1619 # If there is a colon in the path, we need to keep it.
1620 if test "x$srcdir" = x.; then
1621 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1624 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1626 # Transform confdefs.h into DEFS.
1627 # Protect against shell expansion while executing Makefile rules.
1628 # Protect against Makefile macro expansion.
1629 cat > conftest.defs <<\EOF
1630 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1631 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1636 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1640 # Without the "./", some shells look in PATH for config.status.
1641 : ${CONFIG_STATUS=./config.status}
1643 echo creating $CONFIG_STATUS
1644 rm -f $CONFIG_STATUS
1645 cat > $CONFIG_STATUS <<EOF
1647 # Generated automatically by configure.
1648 # Run this file to recreate the current configuration.
1649 # This directory was configured as follows,
1650 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1652 # $0 $ac_configure_args
1654 # Compiler output produced by configure, useful for debugging
1655 # configure, is in ./config.log if it exists.
1657 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1660 case "\$ac_option" in
1661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1662 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1663 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1664 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1665 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1667 -help | --help | --hel | --he | --h)
1668 echo "\$ac_cs_usage"; exit 0 ;;
1669 *) echo "\$ac_cs_usage"; exit 1 ;;
1673 ac_given_srcdir=$srcdir
1675 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1677 cat >> $CONFIG_STATUS <<EOF
1679 # Protect against being on the right side of a sed subst in config.status.
1680 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1681 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1685 s%@CFLAGS@%$CFLAGS%g
1686 s%@CPPFLAGS@%$CPPFLAGS%g
1687 s%@CXXFLAGS@%$CXXFLAGS%g
1688 s%@FFLAGS@%$FFLAGS%g
1690 s%@LDFLAGS@%$LDFLAGS%g
1692 s%@exec_prefix@%$exec_prefix%g
1693 s%@prefix@%$prefix%g
1694 s%@program_transform_name@%$program_transform_name%g
1695 s%@bindir@%$bindir%g
1696 s%@sbindir@%$sbindir%g
1697 s%@libexecdir@%$libexecdir%g
1698 s%@datadir@%$datadir%g
1699 s%@sysconfdir@%$sysconfdir%g
1700 s%@sharedstatedir@%$sharedstatedir%g
1701 s%@localstatedir@%$localstatedir%g
1702 s%@libdir@%$libdir%g
1703 s%@includedir@%$includedir%g
1704 s%@oldincludedir@%$oldincludedir%g
1705 s%@infodir@%$infodir%g
1706 s%@mandir@%$mandir%g
1709 s%@ldap_ldflags@%$ldap_ldflags%g
1710 s%@ldap_cflags@%$ldap_cflags%g
1711 s%@targetname@%$targetname%g
1716 cat >> $CONFIG_STATUS <<\EOF
1718 # Split the substitutions into bite-sized pieces for seds with
1719 # small command number limits, like on Digital OSF/1 and HP-UX.
1720 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1721 ac_file=1 # Number of current file.
1722 ac_beg=1 # First line for current file.
1723 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1726 while $ac_more_lines; do
1727 if test $ac_beg -gt 1; then
1728 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1730 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1732 if test ! -s conftest.s$ac_file; then
1734 rm -f conftest.s$ac_file
1736 if test -z "$ac_sed_cmds"; then
1737 ac_sed_cmds="sed -f conftest.s$ac_file"
1739 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1741 ac_file=`expr $ac_file + 1`
1743 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1746 if test -z "$ac_sed_cmds"; then
1751 cat >> $CONFIG_STATUS <<EOF
1753 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1755 cat >> $CONFIG_STATUS <<\EOF
1756 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1761 *) ac_file_in="${ac_file}.in" ;;
1764 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1766 # Remove last slash and all that follows it. Not all systems have dirname.
1767 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1768 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1769 # The file is in a subdirectory.
1770 test ! -d "$ac_dir" && mkdir "$ac_dir"
1771 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1772 # A "../" for each directory in $ac_dir_suffix.
1773 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1775 ac_dir_suffix= ac_dots=
1778 case "$ac_given_srcdir" in
1780 if test -z "$ac_dots"; then top_srcdir=.
1781 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1782 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1784 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1785 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1789 echo creating "$ac_file"
1791 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1793 *Makefile*) ac_comsub="1i\\
1794 # $configure_input" ;;
1798 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1800 s%@configure_input@%$configure_input%g
1801 s%@srcdir@%$srcdir%g
1802 s%@top_srcdir@%$top_srcdir%g
1803 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1808 cat >> $CONFIG_STATUS <<EOF
1811 cat >> $CONFIG_STATUS <<\EOF
1815 chmod +x $CONFIG_STATUS
1816 rm -fr confdefs* $ac_clean_files
1817 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1