2 # From configure.in Revision: 1.15 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file="rlm_ldap.c"
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT edir ldap_ldflags ldap_cflags targetname LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 # Report the --help message.
737 if test "$ac_init_help" = "long"; then
738 # Omit some internal or obsolete options to make the list less imposing.
739 # This message is too long to be a string in the A/UX 3.1 sh.
741 \`configure' configures this package to adapt to many kinds of systems.
743 Usage: $0 [OPTION]... [VAR=VALUE]...
745 To assign environment variables (e.g., CC, CFLAGS...), specify them as
746 VAR=VALUE. See below for descriptions of some of the useful variables.
748 Defaults for the options are specified in brackets.
751 -h, --help display this help and exit
752 --help=short display options specific to this package
753 --help=recursive display the short help of all the included packages
754 -V, --version display version information and exit
755 -q, --quiet, --silent do not print \`checking...' messages
756 --cache-file=FILE cache test results in FILE [disabled]
757 -C, --config-cache alias for \`--cache-file=config.cache'
758 -n, --no-create do not create output files
759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764 Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
770 By default, \`make install' will install all the files in
771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773 for instance \`--prefix=\$HOME'.
775 For better control, use the options below.
777 Fine tuning of the installation directories:
778 --bindir=DIR user executables [EPREFIX/bin]
779 --sbindir=DIR system admin executables [EPREFIX/sbin]
780 --libexecdir=DIR program executables [EPREFIX/libexec]
781 --datadir=DIR read-only architecture-independent data [PREFIX/share]
782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
785 --libdir=DIR object code libraries [EPREFIX/lib]
786 --includedir=DIR C header files [PREFIX/include]
787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
788 --infodir=DIR info documentation [PREFIX/info]
789 --mandir=DIR man documentation [PREFIX/man]
796 if test -n "$ac_init_help"; then
801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
803 --enable-shared[=PKGS]
804 build shared libraries [default=yes]
807 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
808 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
809 --with-rlm-ldap-lib-dir=DIR directory for LDAP library files
810 --with-rlm-ldap-include-dir=DIR directory for LDAP include files
811 --with-threads use threads, if available. (default=yes)
812 --with-edir enable Novell eDirectory integration. (default=no)
814 Some influential environment variables:
815 CC C compiler command
816 CFLAGS C compiler flags
817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
818 nonstandard directory <lib dir>
819 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
820 headers in a nonstandard directory <include dir>
822 Use these variables to override the choices made by `configure' or to help
823 it to find libraries and programs with nonstandard names/locations.
828 if test "$ac_init_help" = "recursive"; then
829 # If there are subdirs, report their specific --help.
831 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
832 test -d $ac_dir || continue
835 if test "$ac_dir" != .; then
836 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
837 # A "../" for each directory in $ac_dir_suffix.
838 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
840 ac_dir_suffix= ac_top_builddir=
844 .) # No --srcdir option. We are building in place.
846 if test -z "$ac_top_builddir"; then
849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
851 [\\/]* | ?:[\\/]* ) # Absolute path.
852 ac_srcdir=$srcdir$ac_dir_suffix;
853 ac_top_srcdir=$srcdir ;;
855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
856 ac_top_srcdir=$ac_top_builddir$srcdir ;;
859 # Do not use `cd foo && pwd` to compute absolute paths, because
860 # the directories may not exist.
862 .) ac_abs_builddir="$ac_dir";;
865 .) ac_abs_builddir=`pwd`;;
866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
867 *) ac_abs_builddir=`pwd`/"$ac_dir";;
870 case $ac_abs_builddir in
871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
873 case ${ac_top_builddir}. in
874 .) ac_abs_top_builddir=$ac_abs_builddir;;
875 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
876 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
879 case $ac_abs_builddir in
880 .) ac_abs_srcdir=$ac_srcdir;;
883 .) ac_abs_srcdir=$ac_abs_builddir;;
884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
888 case $ac_abs_builddir in
889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
891 case $ac_top_srcdir in
892 .) ac_abs_top_srcdir=$ac_abs_builddir;;
893 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
894 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
899 # Check for guested configure; otherwise get Cygnus style configure.
900 if test -f $ac_srcdir/configure.gnu; then
902 $SHELL $ac_srcdir/configure.gnu --help=recursive
903 elif test -f $ac_srcdir/configure; then
905 $SHELL $ac_srcdir/configure --help=recursive
906 elif test -f $ac_srcdir/configure.ac ||
907 test -f $ac_srcdir/configure.in; then
911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917 test -n "$ac_init_help" && exit 0
918 if $ac_init_version; then
921 Copyright (C) 2003 Free Software Foundation, Inc.
922 This configure script is free software; the Free Software Foundation
923 gives unlimited permission to copy, distribute and modify it.
929 This file contains any messages produced by compilers while
930 running configure, to aid debugging if configure makes a mistake.
932 It was created by $as_me, which was
933 generated by GNU Autoconf 2.59. Invocation command line was
944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
956 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
967 test -z "$as_dir" && as_dir=.
983 # Keep a trace of the command line.
984 # Strip out --no-create and --no-recursion so they do not pile up.
985 # Strip out --silent because we don't want to record it for future runs.
986 # Also quote any args containing shell meta-characters.
987 # Make two passes to allow for proper duplicate-argument suppression.
992 ac_must_keep_next=false
998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1008 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1009 if test $ac_must_keep_next = true; then
1010 ac_must_keep_next=false # Got value, back to normal.
1013 *=* | --config-cache | -C | -disable-* | --disable-* \
1014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1016 | -with-* | --with-* | -without-* | --without-* | --x)
1017 case "$ac_configure_args0 " in
1018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1021 -* ) ac_must_keep_next=true ;;
1024 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1025 # Get rid of the leading space.
1031 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1032 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1034 # When interrupted or exit'd, cleanup temporary files, and complete
1035 # config.log. We remove comments because anyway the quotes in there
1036 # would cause problems or look ugly.
1037 # WARNING: Be sure not to use single quotes in there, as some shells,
1038 # such as our DU 5.0 friend, will then `close' the trap.
1039 trap 'exit_status=$?
1040 # Save into config.log some information that might help in debugging.
1045 ## ---------------- ##
1046 ## Cache variables. ##
1047 ## ---------------- ##
1050 # The following way of writing the cache mishandles newlines in values,
1053 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1056 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1068 ## ----------------- ##
1069 ## Output variables. ##
1070 ## ----------------- ##
1073 for ac_var in $ac_subst_vars
1075 eval ac_val=$`echo $ac_var`
1076 echo "$ac_var='"'"'$ac_val'"'"'"
1080 if test -n "$ac_subst_files"; then
1087 for ac_var in $ac_subst_files
1089 eval ac_val=$`echo $ac_var`
1090 echo "$ac_var='"'"'$ac_val'"'"'"
1095 if test -s confdefs.h; then
1102 sed "/^$/d" confdefs.h | sort
1105 test "$ac_signal" != 0 &&
1106 echo "$as_me: caught signal $ac_signal"
1107 echo "$as_me: exit $exit_status"
1109 rm -f core *.core &&
1110 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1113 for ac_signal in 1 2 13 15; do
1114 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1123 # Predefined preprocessor variables.
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153 if test "x$prefix" != xNONE; then
1154 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1156 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159 for ac_site_file in $CONFIG_SITE; do
1160 if test -r "$ac_site_file"; then
1161 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163 sed 's/^/| /' "$ac_site_file" >&5
1168 if test -r "$cache_file"; then
1169 # Some versions of bash will fail to source /dev/null (special
1170 # files actually), so we avoid doing that.
1171 if test -f "$cache_file"; then
1172 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1175 [\\/]* | ?:[\\/]* ) . $cache_file;;
1176 *) . ./$cache_file;;
1180 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1185 # Check that the precious variables saved in the cache have kept the same
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191 eval ac_new_set=\$ac_env_${ac_var}_set
1192 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193 eval ac_new_val="\$ac_env_${ac_var}_value"
1194 case $ac_old_set,$ac_new_set in
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1200 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202 ac_cache_corrupted=: ;;
1205 if test "x$ac_old_val" != "x$ac_new_val"; then
1206 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1209 echo "$as_me: former value: $ac_old_val" >&2;}
1210 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1211 echo "$as_me: current value: $ac_new_val" >&2;}
1212 ac_cache_corrupted=:
1215 # Pass precious variables to config.status.
1216 if test "$ac_new_set" = set; then
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 *) ac_arg=$ac_var=$ac_new_val ;;
1222 case " $ac_configure_args " in
1223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1224 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1228 if $ac_cache_corrupted; then
1229 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233 { (exit 1); exit 1; }; }
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266 if test x$with_rlm_ldap != xno; then
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273 if test -n "$ac_tool_prefix"; then
1274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1276 echo "$as_me:$LINENO: checking for $ac_word" >&5
1277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1278 if test "${ac_cv_prog_CC+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 if test -n "$CC"; then
1282 ac_cv_prog_CC="$CC" # Let the user override the test.
1284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1288 test -z "$as_dir" && as_dir=.
1289 for ac_exec_ext in '' $ac_executable_extensions; do
1290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1301 if test -n "$CC"; then
1302 echo "$as_me:$LINENO: result: $CC" >&5
1303 echo "${ECHO_T}$CC" >&6
1305 echo "$as_me:$LINENO: result: no" >&5
1306 echo "${ECHO_T}no" >&6
1310 if test -z "$ac_cv_prog_CC"; then
1312 # Extract the first word of "gcc", so it can be a program name with args.
1313 set dummy gcc; ac_word=$2
1314 echo "$as_me:$LINENO: checking for $ac_word" >&5
1315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 if test -n "$ac_ct_CC"; then
1320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326 test -z "$as_dir" && as_dir=.
1327 for ac_exec_ext in '' $ac_executable_extensions; do
1328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1329 ac_cv_prog_ac_ct_CC="gcc"
1330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1339 if test -n "$ac_ct_CC"; then
1340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1341 echo "${ECHO_T}$ac_ct_CC" >&6
1343 echo "$as_me:$LINENO: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1352 if test -z "$CC"; then
1353 if test -n "$ac_tool_prefix"; then
1354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1355 set dummy ${ac_tool_prefix}cc; ac_word=$2
1356 echo "$as_me:$LINENO: checking for $ac_word" >&5
1357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358 if test "${ac_cv_prog_CC+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 if test -n "$CC"; then
1362 ac_cv_prog_CC="$CC" # Let the user override the test.
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371 ac_cv_prog_CC="${ac_tool_prefix}cc"
1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381 if test -n "$CC"; then
1382 echo "$as_me:$LINENO: result: $CC" >&5
1383 echo "${ECHO_T}$CC" >&6
1385 echo "$as_me:$LINENO: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1390 if test -z "$ac_cv_prog_CC"; then
1392 # Extract the first word of "cc", so it can be a program name with args.
1393 set dummy cc; ac_word=$2
1394 echo "$as_me:$LINENO: checking for $ac_word" >&5
1395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 if test -n "$ac_ct_CC"; then
1400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 test -z "$as_dir" && as_dir=.
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409 ac_cv_prog_ac_ct_CC="cc"
1410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1419 if test -n "$ac_ct_CC"; then
1420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1421 echo "${ECHO_T}$ac_ct_CC" >&6
1423 echo "$as_me:$LINENO: result: no" >&5
1424 echo "${ECHO_T}no" >&6
1433 if test -z "$CC"; then
1434 # Extract the first word of "cc", so it can be a program name with args.
1435 set dummy cc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$CC"; then
1442 ac_cv_prog_CC="$CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1453 ac_prog_rejected=yes
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 if test $ac_prog_rejected = yes; then
1464 # We found a bogon in the path, so make sure we never use it.
1465 set dummy $ac_cv_prog_CC
1467 if test $# != 0; then
1468 # We chose a different compiler from the bogus one.
1469 # However, it has the same basename, so the bogon will be chosen
1470 # first if we set CC to just the basename; use the full file name.
1472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1478 if test -n "$CC"; then
1479 echo "$as_me:$LINENO: result: $CC" >&5
1480 echo "${ECHO_T}$CC" >&6
1482 echo "$as_me:$LINENO: result: no" >&5
1483 echo "${ECHO_T}no" >&6
1487 if test -z "$CC"; then
1488 if test -n "$ac_tool_prefix"; then
1491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 if test -n "$CC"; then
1519 echo "$as_me:$LINENO: result: $CC" >&5
1520 echo "${ECHO_T}$CC" >&6
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1526 test -n "$CC" && break
1529 if test -z "$CC"; then
1533 # Extract the first word of "$ac_prog", so it can be a program name with args.
1534 set dummy $ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$ac_ct_CC"; then
1541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_ac_ct_CC="$ac_prog"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1560 if test -n "$ac_ct_CC"; then
1561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1562 echo "${ECHO_T}$ac_ct_CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1568 test -n "$ac_ct_CC" && break
1577 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1578 See \`config.log' for more details." >&5
1579 echo "$as_me: error: no acceptable C compiler found in \$PATH
1580 See \`config.log' for more details." >&2;}
1581 { (exit 1); exit 1; }; }
1583 # Provide some information about the compiler.
1584 echo "$as_me:$LINENO:" \
1585 "checking for C compiler version" >&5
1586 ac_compiler=`set X $ac_compile; echo $2`
1587 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1588 (eval $ac_compiler --version </dev/null >&5) 2>&5
1590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1591 (exit $ac_status); }
1592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1593 (eval $ac_compiler -v </dev/null >&5) 2>&5
1595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1596 (exit $ac_status); }
1597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1598 (eval $ac_compiler -V </dev/null >&5) 2>&5
1600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1601 (exit $ac_status); }
1603 cat >conftest.$ac_ext <<_ACEOF
1606 cat confdefs.h >>conftest.$ac_ext
1607 cat >>conftest.$ac_ext <<_ACEOF
1608 /* end confdefs.h. */
1618 ac_clean_files_save=$ac_clean_files
1619 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1620 # Try to create an executable without -o first, disregard a.out.
1621 # It will help us diagnose broken compilers, and finding out an intuition
1623 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1624 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1625 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1626 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1627 (eval $ac_link_default) 2>&5
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }; then
1631 # Find the output, starting from the most likely. This scheme is
1632 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1635 # Be careful to initialize this variable, since it used to be cached.
1636 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1638 # b.out is created by i960 compilers.
1639 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1641 test -f "$ac_file" || continue
1643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1646 # This is the source file.
1649 # We found the default executable, but exeext='' is most
1653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1654 # FIXME: I believe we export ac_cv_exeext for Libtool,
1655 # but it would be cool to find out if it's true. Does anybody
1656 # maintain Libtool? --akim.
1664 echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1668 See \`config.log' for more details." >&5
1669 echo "$as_me: error: C compiler cannot create executables
1670 See \`config.log' for more details." >&2;}
1671 { (exit 77); exit 77; }; }
1674 ac_exeext=$ac_cv_exeext
1675 echo "$as_me:$LINENO: result: $ac_file" >&5
1676 echo "${ECHO_T}$ac_file" >&6
1678 # Check the compiler produces executables we can run. If not, either
1679 # the compiler is broken, or we cross compile.
1680 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1683 # If not cross compiling, check that we can run a simple program.
1684 if test "$cross_compiling" != yes; then
1685 if { ac_try='./$ac_file'
1686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690 (exit $ac_status); }; }; then
1693 if test "$cross_compiling" = maybe; then
1696 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1697 If you meant to cross compile, use \`--host'.
1698 See \`config.log' for more details." >&5
1699 echo "$as_me: error: cannot run C compiled programs.
1700 If you meant to cross compile, use \`--host'.
1701 See \`config.log' for more details." >&2;}
1702 { (exit 1); exit 1; }; }
1706 echo "$as_me:$LINENO: result: yes" >&5
1707 echo "${ECHO_T}yes" >&6
1709 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1710 ac_clean_files=$ac_clean_files_save
1711 # Check the compiler produces executables we can run. If not, either
1712 # the compiler is broken, or we cross compile.
1713 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1714 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1715 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1716 echo "${ECHO_T}$cross_compiling" >&6
1718 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1719 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1721 (eval $ac_link) 2>&5
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }; then
1725 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1726 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1727 # work properly (i.e., refer to `conftest.exe'), while it won't with
1729 for ac_file in conftest.exe conftest conftest.*; do
1730 test -f "$ac_file" || continue
1732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1733 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1740 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1747 rm -f conftest$ac_cv_exeext
1748 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1749 echo "${ECHO_T}$ac_cv_exeext" >&6
1751 rm -f conftest.$ac_ext
1752 EXEEXT=$ac_cv_exeext
1754 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1755 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1756 if test "${ac_cv_objext+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 cat >conftest.$ac_ext <<_ACEOF
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1774 rm -f conftest.o conftest.obj
1775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1776 (eval $ac_compile) 2>&5
1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779 (exit $ac_status); }; then
1780 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1788 echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1794 See \`config.log' for more details." >&2;}
1795 { (exit 1); exit 1; }; }
1798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1800 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1801 echo "${ECHO_T}$ac_cv_objext" >&6
1802 OBJEXT=$ac_cv_objext
1804 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 cat >conftest.$ac_ext <<_ACEOF
1812 cat confdefs.h >>conftest.$ac_ext
1813 cat >>conftest.$ac_ext <<_ACEOF
1814 /* end confdefs.h. */
1827 rm -f conftest.$ac_objext
1828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1829 (eval $ac_compile) 2>conftest.er1
1831 grep -v '^ *+' conftest.er1 >conftest.err
1833 cat conftest.err >&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); } &&
1836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }; } &&
1842 { ac_try='test -s conftest.$ac_objext'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; }; then
1850 echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1859 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1860 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1861 GCC=`test $ac_compiler_gnu = yes && echo yes`
1862 ac_test_CFLAGS=${CFLAGS+set}
1863 ac_save_CFLAGS=$CFLAGS
1865 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1867 if test "${ac_cv_prog_cc_g+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 cat >conftest.$ac_ext <<_ACEOF
1873 cat confdefs.h >>conftest.$ac_ext
1874 cat >>conftest.$ac_ext <<_ACEOF
1875 /* end confdefs.h. */
1885 rm -f conftest.$ac_objext
1886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887 (eval $ac_compile) 2>conftest.er1
1889 grep -v '^ *+' conftest.er1 >conftest.err
1891 cat conftest.err >&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }; } &&
1900 { ac_try='test -s conftest.$ac_objext'
1901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1915 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1917 if test "$ac_test_CFLAGS" = set; then
1918 CFLAGS=$ac_save_CFLAGS
1919 elif test $ac_cv_prog_cc_g = yes; then
1920 if test "$GCC" = yes; then
1926 if test "$GCC" = yes; then
1932 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1933 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1934 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 ac_cv_prog_cc_stdc=no
1939 cat >conftest.$ac_ext <<_ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h. */
1947 #include <sys/types.h>
1948 #include <sys/stat.h>
1949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1950 struct buf { int x; };
1951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1952 static char *e (p, i)
1958 static char *f (char * (*g) (char **, int), char **p, ...)
1963 s = g (p, va_arg (v,int));
1968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1969 function prototypes and stuff, but not '\xHH' hex character constants.
1970 These don't provoke an error unfortunately, instead are silently treated
1971 as 'x'. The following induces an error, until -std1 is added to get
1972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1973 array size at least. It's necessary to write '\x00'==0 to get something
1974 that's true only with -std1. */
1975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1977 int test (int i, double x);
1978 struct s1 {int (*f) (int a);};
1979 struct s2 {int (*f) (double a);};
1980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1991 # Don't try gcc -ansi; that turns off useful extensions and
1992 # breaks some systems' header files.
1993 # AIX -qlanglvl=ansi
1994 # Ultrix and OSF/1 -std1
1995 # HP-UX 10.20 and later -Ae
1996 # HP-UX older versions -Aa -D_HPUX_SOURCE
1997 # SVR4 -Xc -D__EXTENSIONS__
1998 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2000 CC="$ac_save_CC $ac_arg"
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>conftest.er1
2005 grep -v '^ *+' conftest.er1 >conftest.err
2007 cat conftest.err >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; } &&
2016 { ac_try='test -s conftest.$ac_objext'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
2022 ac_cv_prog_cc_stdc=$ac_arg
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2029 rm -f conftest.err conftest.$ac_objext
2031 rm -f conftest.$ac_ext conftest.$ac_objext
2036 case "x$ac_cv_prog_cc_stdc" in
2038 echo "$as_me:$LINENO: result: none needed" >&5
2039 echo "${ECHO_T}none needed" >&6 ;;
2041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2042 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2043 CC="$CC $ac_cv_prog_cc_stdc" ;;
2046 # Some people use a C++ compiler to compile C. Since we use `exit',
2047 # in C++ we need to declare it. In case someone uses the same compiler
2048 # for both compiling C and C++ we need to have the C++ compiler decide
2049 # the declaration of exit, since it's the most demanding environment.
2050 cat >conftest.$ac_ext <<_ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057 (eval $ac_compile) 2>conftest.er1
2059 grep -v '^ *+' conftest.er1 >conftest.err
2061 cat conftest.err >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); } &&
2064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 for ac_declaration in \
2078 'extern "C" void std::exit (int) throw (); using std::exit;' \
2079 'extern "C" void std::exit (int); using std::exit;' \
2080 'extern "C" void exit (int) throw ();' \
2081 'extern "C" void exit (int);' \
2084 cat >conftest.$ac_ext <<_ACEOF
2087 cat confdefs.h >>conftest.$ac_ext
2088 cat >>conftest.$ac_ext <<_ACEOF
2089 /* end confdefs.h. */
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>conftest.er1
2104 grep -v '^ *+' conftest.er1 >conftest.err
2106 cat conftest.err >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 cat >conftest.$ac_ext <<_ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2148 grep -v '^ *+' conftest.er1 >conftest.err
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174 if test -n "$ac_declaration"; then
2175 echo '#ifdef __cplusplus' >>confdefs.h
2176 echo $ac_declaration >>confdefs.h
2177 echo '#endif' >>confdefs.h
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 # Check whether --with-rlm-ldap-lib-dir or --without-rlm-ldap-lib-dir was given.
2197 if test "${with_rlm_ldap_lib_dir+set}" = set; then
2198 withval="$with_rlm_ldap_lib_dir"
2201 { { echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
2202 echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
2203 { (exit 1); exit 1; }; }
2208 rlm_ldap_lib_dir="$withval"
2214 rlm_ldap_include_dir=
2216 # Check whether --with-rlm-ldap-include-dir or --without-rlm-ldap-include-dir was given.
2217 if test "${with_rlm_ldap_include_dir+set}" = set; then
2218 withval="$with_rlm_ldap_include_dir"
2221 { { echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
2222 echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
2223 { (exit 1); exit 1; }; }
2228 rlm_ldap_include_dir="$withval"
2234 # Check whether --enable-shared or --disable-shared was given.
2235 if test "${enable_shared+set}" = set; then
2236 enableval="$enable_shared"
2237 p=${PACKAGE-default}
2239 yes) enable_shared=yes ;;
2240 no) enable_shared=no ;;
2243 # Look at the argument we got. We use all the common list separators.
2244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2245 for pkg in $enableval; do
2247 if test "X$pkg" = "X$p"; then
2259 if test "x$enable_shared" = "xno"; then
2260 { echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
2261 echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
2264 rlm_ldap_with_threads=yes
2266 # Check whether --with-threads or --without-threads was given.
2267 if test "${with_threads+set}" = set; then
2268 withval="$with_threads"
2271 rlm_ldap_with_threads=no
2279 if test "x$rlm_ldap_with_threads" = "xyes"; then
2280 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2281 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2282 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 ac_check_lib_save_LIBS=$LIBS
2286 LIBS="-lpthread $LIBS"
2287 cat >conftest.$ac_ext <<_ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2294 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300 char pthread_create ();
2309 rm -f conftest.$ac_objext conftest$ac_exeext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2311 (eval $ac_link) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest$ac_exeext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 ac_cv_lib_pthread_pthread_create=yes
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 ac_cv_lib_pthread_pthread_create=no
2337 rm -f conftest.err conftest.$ac_objext \
2338 conftest$ac_exeext conftest.$ac_ext
2339 LIBS=$ac_check_lib_save_LIBS
2341 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2342 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2343 if test $ac_cv_lib_pthread_pthread_create = yes; then
2344 LIBS="-lpthread $LIBS"
2346 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2347 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2348 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 ac_check_lib_save_LIBS=$LIBS
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2361 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2367 char pthread_create ();
2376 rm -f conftest.$ac_objext conftest$ac_exeext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2378 (eval $ac_link) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest$ac_exeext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 ac_cv_lib_c_r_pthread_create=yes
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 ac_cv_lib_c_r_pthread_create=no
2404 rm -f conftest.err conftest.$ac_objext \
2405 conftest$ac_exeext conftest.$ac_ext
2406 LIBS=$ac_check_lib_save_LIBS
2408 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2409 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2410 if test $ac_cv_lib_c_r_pthread_create = yes; then
2413 rlm_ldap_with_threads="no"
2422 smart_try_dir=$rlm_ldap_lib_dir
2423 if test "x$rlm_ldap_with_threads" = "xyes"; then
2426 sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
2427 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2428 echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
2429 echo $ECHO_N "checking for ldap_init in -lldap_r... $ECHO_C" >&6
2435 if test "x$smart_try_dir" != "x"; then
2436 for try in $smart_try_dir; do
2437 LIBS="-L$try -lldap_r $old_LIBS"
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 extern char ldap_init();
2453 rm -f conftest.$ac_objext conftest$ac_exeext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2455 (eval $ac_link) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest$ac_exeext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 smart_lib="-L$try -lldap_r"
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 if test "x$smart_lib" != "x"; then
2489 if test "x$smart_lib" = "x"; then
2490 LIBS="-lldap_r $old_LIBS"
2491 cat >conftest.$ac_ext <<_ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2497 extern char ldap_init();
2506 rm -f conftest.$ac_objext conftest$ac_exeext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1 >conftest.err
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest$ac_exeext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 smart_lib="-lldap_r"
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2533 rm -f conftest.err conftest.$ac_objext \
2534 conftest$ac_exeext conftest.$ac_ext
2538 if test "x$smart_lib" = "x"; then
2541 if test "x$LOCATE" != "x"; then
2543 file=libldap_r${libltdl_cv_shlibext}
2545 for x in `${LOCATE} $file 2>/dev/null`; do
2546 base=`echo $x | sed "s%/${file}%%"`
2547 if test "x$x" = "x$base"; then
2551 dir=`${DIRNAME} $x 2>/dev/null`
2552 exclude=`echo ${dir} | ${GREP} /home`
2553 if test "x$exclude" != "x"; then
2557 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2558 if test "x$already" = "x"; then
2564 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2568 if test "x$LOCATE" != "x"; then
2572 for x in `${LOCATE} $file 2>/dev/null`; do
2573 base=`echo $x | sed "s%/${file}%%"`
2574 if test "x$x" = "x$base"; then
2578 dir=`${DIRNAME} $x 2>/dev/null`
2579 exclude=`echo ${dir} | ${GREP} /home`
2580 if test "x$exclude" != "x"; then
2584 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2585 if test "x$already" = "x"; then
2591 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2594 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2595 LIBS="-L$try -lldap_r $old_LIBS"
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602 extern char ldap_init();
2611 rm -f conftest.$ac_objext conftest$ac_exeext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2613 (eval $ac_link) 2>conftest.er1
2615 grep -v '^ *+' conftest.er1 >conftest.err
2617 cat conftest.err >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest$ac_exeext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 smart_lib="-L$try -lldap_r"
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2638 rm -f conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2640 if test "x$smart_lib" != "x"; then
2647 if test "x$smart_lib" != "x"; then
2648 echo "$as_me:$LINENO: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2650 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2651 LIBS="$smart_lib $old_LIBS"
2652 SMART_LIBS="$smart_lib $SMART_LIBS"
2654 echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6
2658 if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
2659 fail="$fail libldap_r"
2664 sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
2665 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2666 echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
2667 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6
2673 if test "x$smart_try_dir" != "x"; then
2674 for try in $smart_try_dir; do
2675 LIBS="-L$try -lldap $old_LIBS"
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 extern char ldap_init();
2691 rm -f conftest.$ac_objext conftest$ac_exeext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 (eval $ac_link) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest$ac_exeext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 smart_lib="-L$try -lldap"
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f conftest.err conftest.$ac_objext \
2719 conftest$ac_exeext conftest.$ac_ext
2720 if test "x$smart_lib" != "x"; then
2727 if test "x$smart_lib" = "x"; then
2728 LIBS="-lldap $old_LIBS"
2729 cat >conftest.$ac_ext <<_ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2735 extern char ldap_init();
2744 rm -f conftest.$ac_objext conftest$ac_exeext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2746 (eval $ac_link) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1 >conftest.err
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest$ac_exeext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.err conftest.$ac_objext \
2772 conftest$ac_exeext conftest.$ac_ext
2776 if test "x$smart_lib" = "x"; then
2779 if test "x$LOCATE" != "x"; then
2781 file=libldap${libltdl_cv_shlibext}
2783 for x in `${LOCATE} $file 2>/dev/null`; do
2784 base=`echo $x | sed "s%/${file}%%"`
2785 if test "x$x" = "x$base"; then
2789 dir=`${DIRNAME} $x 2>/dev/null`
2790 exclude=`echo ${dir} | ${GREP} /home`
2791 if test "x$exclude" != "x"; then
2795 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2796 if test "x$already" = "x"; then
2802 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2806 if test "x$LOCATE" != "x"; then
2810 for x in `${LOCATE} $file 2>/dev/null`; do
2811 base=`echo $x | sed "s%/${file}%%"`
2812 if test "x$x" = "x$base"; then
2816 dir=`${DIRNAME} $x 2>/dev/null`
2817 exclude=`echo ${dir} | ${GREP} /home`
2818 if test "x$exclude" != "x"; then
2822 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2823 if test "x$already" = "x"; then
2829 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2832 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2833 LIBS="-L$try -lldap $old_LIBS"
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840 extern char ldap_init();
2849 rm -f conftest.$ac_objext conftest$ac_exeext
2850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2851 (eval $ac_link) 2>conftest.er1
2853 grep -v '^ *+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest$ac_exeext'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 smart_lib="-L$try -lldap"
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2876 rm -f conftest.err conftest.$ac_objext \
2877 conftest$ac_exeext conftest.$ac_ext
2878 if test "x$smart_lib" != "x"; then
2885 if test "x$smart_lib" != "x"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2889 LIBS="$smart_lib $old_LIBS"
2890 SMART_LIBS="$smart_lib $SMART_LIBS"
2892 echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2896 if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
2897 fail="$fail libldap"
2902 smart_try_dir=$rlm_ldap_include_dir
2905 ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
2906 echo "$as_me:$LINENO: checking for ldap.h" >&5
2907 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
2909 old_CFLAGS="$CFLAGS"
2913 if test "x$smart_try_dir" != "x"; then
2914 for try in $smart_try_dir; do
2915 CFLAGS="$old_CFLAGS -I$try"
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; } &&
2947 { ac_try='test -s conftest.$ac_objext'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 smart_include="-I$try"
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 if test "x$smart_include" != "x"; then
2964 CFLAGS="$old_CFLAGS"
2968 if test "x$smart_include" = "x"; then
2969 cat >conftest.$ac_ext <<_ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2985 rm -f conftest.$ac_objext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 if test "x$smart_include" = "x"; then
3019 if test "x$LOCATE" != "x"; then
3023 for x in `${LOCATE} $file 2>/dev/null`; do
3024 base=`echo $x | sed "s%/${file}%%"`
3025 if test "x$x" = "x$base"; then
3029 dir=`${DIRNAME} $x 2>/dev/null`
3030 exclude=`echo ${dir} | ${GREP} /home`
3031 if test "x$exclude" != "x"; then
3035 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3036 if test "x$already" = "x"; then
3042 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3045 for try in $smart_include_dir /usr/local/include /opt/include; do
3046 CFLAGS="$old_CFLAGS -I$try"
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3063 rm -f conftest.$ac_objext
3064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 smart_include="-I$try"
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 if test "x$smart_include" != "x"; then
3095 CFLAGS="$old_CFLAGS"
3099 if test "x$smart_include" != "x"; then
3100 echo "$as_me:$LINENO: result: yes" >&5
3101 echo "${ECHO_T}yes" >&6
3102 eval "ac_cv_header_$ac_safe=yes"
3103 CFLAGS="$old_CFLAGS $smart_include"
3104 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3106 echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6
3110 if test "$ac_cv_header_ldap_h" != "yes"; then
3115 if test "x$fail" = "x"; then
3116 echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
3117 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6
3118 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
3128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3129 #define ldap_start_tls_s innocuous_ldap_start_tls_s
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char ldap_start_tls_s (); below.
3133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 <limits.h> exists even on freestanding compilers. */
3137 # include <limits.h>
3139 # include <assert.h>
3142 #undef ldap_start_tls_s
3144 /* Override any gcc2 internal prototype to avoid an error. */
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3151 char ldap_start_tls_s ();
3152 /* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155 #if defined (__stub_ldap_start_tls_s) || defined (__stub___ldap_start_tls_s)
3158 char (*f) () = ldap_start_tls_s;
3167 return f != ldap_start_tls_s;
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_func_ldap_start_tls_s=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 ac_cv_func_ldap_start_tls_s=no
3200 rm -f conftest.err conftest.$ac_objext \
3201 conftest$ac_exeext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
3204 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6
3205 if test $ac_cv_func_ldap_start_tls_s = yes; then
3206 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
3209 echo "$as_me:$LINENO: checking for ldap_initialize" >&5
3210 echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6
3211 if test "${ac_cv_func_ldap_initialize+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220 /* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
3221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3222 #define ldap_initialize innocuous_ldap_initialize
3224 /* System header to define __stub macros and hopefully few prototypes,
3225 which can conflict with char ldap_initialize (); below.
3226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227 <limits.h> exists even on freestanding compilers. */
3230 # include <limits.h>
3232 # include <assert.h>
3235 #undef ldap_initialize
3237 /* Override any gcc2 internal prototype to avoid an error. */
3242 /* We use char because int might match the return type of a gcc2
3243 builtin and then its argument prototype would still apply. */
3244 char ldap_initialize ();
3245 /* The GNU C library defines this for functions which it implements
3246 to always fail with ENOSYS. Some functions are actually named
3247 something starting with __ and the normal name is an alias. */
3248 #if defined (__stub_ldap_initialize) || defined (__stub___ldap_initialize)
3251 char (*f) () = ldap_initialize;
3260 return f != ldap_initialize;
3265 rm -f conftest.$ac_objext conftest$ac_exeext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>conftest.er1
3269 grep -v '^ *+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; } &&
3280 { ac_try='test -s conftest$ac_exeext'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 ac_cv_func_ldap_initialize=yes
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 ac_cv_func_ldap_initialize=no
3293 rm -f conftest.err conftest.$ac_objext \
3294 conftest$ac_exeext conftest.$ac_ext
3296 echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
3297 echo "${ECHO_T}$ac_cv_func_ldap_initialize" >&6
3298 if test $ac_cv_func_ldap_initialize = yes; then
3299 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
3302 echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
3303 echo $ECHO_N "checking for ldap_int_tls_config... $ECHO_C" >&6
3304 if test "${ac_cv_func_ldap_int_tls_config+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 /* Define ldap_int_tls_config to an innocuous variant, in case <limits.h> declares ldap_int_tls_config.
3314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3315 #define ldap_int_tls_config innocuous_ldap_int_tls_config
3317 /* System header to define __stub macros and hopefully few prototypes,
3318 which can conflict with char ldap_int_tls_config (); below.
3319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320 <limits.h> exists even on freestanding compilers. */
3323 # include <limits.h>
3325 # include <assert.h>
3328 #undef ldap_int_tls_config
3330 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3337 char ldap_int_tls_config ();
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_ldap_int_tls_config) || defined (__stub___ldap_int_tls_config)
3344 char (*f) () = ldap_int_tls_config;
3353 return f != ldap_int_tls_config;
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360 (eval $ac_link) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest$ac_exeext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_func_ldap_int_tls_config=yes
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 ac_cv_func_ldap_int_tls_config=no
3386 rm -f conftest.err conftest.$ac_objext \
3387 conftest$ac_exeext conftest.$ac_ext
3389 echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
3390 echo "${ECHO_T}$ac_cv_func_ldap_int_tls_config" >&6
3391 if test $ac_cv_func_ldap_int_tls_config = yes; then
3392 SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
3400 echo \*\*\* module rlm_ldap is disabled.
3403 if test x"$fail" != x""; then
3404 if test x"${enable_strict_dependencies}" = x"yes"; then
3405 { { echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
3406 echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
3407 { (exit 1); exit 1; }; }
3409 { echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
3410 echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
3411 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
3412 echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
3413 if test x"$headersuggestion" != x; then
3414 { echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
3415 echo "$as_me: WARNING: $headersuggestion" >&2;}
3417 if test x"$libsuggestion" != x; then
3418 { echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
3419 echo "$as_me: WARNING: $libsuggestion" >&2;}
3427 # Check whether --with-edir or --without-edir was given.
3428 if test "${with_edir+set}" = set; then
3429 withval="$with_edir"
3432 SMART_CFLAGS="$SMART_CFLAGS -DNOVELL_UNIVERSAL_PASSWORD"
3433 edir="edir_ldapext.c"
3441 ldap_ldflags=$SMART_LIBS
3442 ldap_cflags=$SMART_CFLAGS
3447 ac_config_files="$ac_config_files Makefile"
3448 cat >confcache <<\_ACEOF
3449 # This file is a shell script that caches the results of configure
3450 # tests run on this system so they can be shared between configure
3451 # scripts and configure runs, see configure's option --config-cache.
3452 # It is not useful on other systems. If it contains results you don't
3453 # want to keep, you may remove or edit it.
3455 # config.status only pays attention to the cache file if you give it
3456 # the --recheck option to rerun configure.
3458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3464 # The following way of writing the cache mishandles newlines in values,
3465 # but we know of no workaround that is simple, portable, and efficient.
3466 # So, don't put newlines in cache variables' values.
3467 # Ultrix sh set writes to stderr and can't be redirected directly,
3468 # and sets the high bit in the cache file unless we assign to the vars.
3471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3473 # `set' does not quote correctly, so add quotes (double-quote
3474 # substitution turns \\\\ into \\, and sed turns \\ into \).
3477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3480 # `set' quotes correctly as required by POSIX, so do not add quotes.
3482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3493 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3494 if test -w $cache_file; then
3495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3496 cat confcache >$cache_file
3498 echo "not updating unwritable cache $cache_file"
3503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3504 # Let make expand exec_prefix.
3505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3509 # trailing colons and then remove the whole line if VPATH becomes empty
3510 # (actually we leave an empty line to preserve line numbers).
3511 if test "x$srcdir" = x.; then
3512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3513 s/:*\$(srcdir):*/:/;
3514 s/:*\${srcdir}:*/:/;
3516 s/^\([^=]*=[ ]*\):*/\1/;
3522 # Transform confdefs.h into DEFS.
3523 # Protect against shell expansion while executing Makefile rules.
3524 # Protect against Makefile macro expansion.
3526 # If the first sed substitution is executed (which looks for macros that
3527 # take arguments), then we branch to the quote section. Otherwise,
3528 # look for a macro that doesn't take arguments.
3529 cat >confdef2opt.sed <<\_ACEOF
3532 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3534 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3538 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3544 # We use echo to avoid assuming a particular line-breaking character.
3545 # The extra dot is to prevent the shell from consuming trailing
3546 # line-breaks from the sub-command output. A line-break within
3547 # single-quotes doesn't work because, if this script is created in a
3548 # platform that uses two characters for line-breaks (e.g., DOS), tr
3550 ac_LF_and_DOT=`echo; echo .`
3551 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3552 rm -f confdef2opt.sed
3557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3558 # 1. Remove the extension, and $U if already installed.
3559 ac_i=`echo "$ac_i" |
3560 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3562 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3563 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3567 LTLIBOBJS=$ac_ltlibobjs
3571 : ${CONFIG_STATUS=./config.status}
3572 ac_clean_files_save=$ac_clean_files
3573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3574 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3576 cat >$CONFIG_STATUS <<_ACEOF
3578 # Generated by $as_me.
3579 # Run this file to recreate the current configuration.
3580 # Compiler output produced by configure, useful for debugging
3581 # configure, is in config.log if it exists.
3586 SHELL=\${CONFIG_SHELL-$SHELL}
3589 cat >>$CONFIG_STATUS <<\_ACEOF
3590 ## --------------------- ##
3591 ## M4sh Initialization. ##
3592 ## --------------------- ##
3594 # Be Bourne compatible
3595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3598 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3599 # is contrary to our usage. Disable this feature.
3600 alias -g '${1+"$@"}'='"$@"'
3601 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3604 DUALCASE=1; export DUALCASE # for MKS sh
3606 # Support unset when possible.
3607 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3614 # Work around bugs in pre-3.0 UWIN ksh.
3615 $as_unset ENV MAIL MAILPATH
3622 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3623 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3624 LC_TELEPHONE LC_TIME
3626 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3627 eval $as_var=C; export $as_var
3633 # Required to use basename.
3634 if expr a : '\(a\)' >/dev/null 2>&1; then
3640 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3641 as_basename=basename
3647 # Name of the executable.
3648 as_me=`$as_basename "$0" ||
3649 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3650 X"$0" : 'X\(//\)$' \| \
3651 X"$0" : 'X\(/\)$' \| \
3652 . : '\(.\)' 2>/dev/null ||
3654 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3655 /^X\/\(\/\/\)$/{ s//\1/; q; }
3656 /^X\/\(\/\).*/{ s//\1/; q; }
3660 # PATH needs CR, and LINENO needs CR and PATH.
3661 # Avoid depending upon Character Ranges.
3662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3665 as_cr_digits='0123456789'
3666 as_cr_alnum=$as_cr_Letters$as_cr_digits
3668 # The user is always right.
3669 if test "${PATH_SEPARATOR+set}" != set; then
3670 echo "#! /bin/sh" >conf$$.sh
3671 echo "exit 0" >>conf$$.sh
3673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3685 test "x$as_lineno_1" != "x$as_lineno_2" &&
3686 test "x$as_lineno_3" = "x$as_lineno_2" || {
3687 # Find who we are. Look in the path if we contain no path at all
3690 *[\\/]* ) as_myself=$0 ;;
3691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3701 # We did not find ourselves, most probably we were run as `sh COMMAND'
3702 # in which case we are not to be found in the path.
3703 if test "x$as_myself" = x; then
3706 if test ! -f "$as_myself"; then
3707 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3708 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3709 { (exit 1); exit 1; }; }
3711 case $CONFIG_SHELL in
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3717 test -z "$as_dir" && as_dir=.
3718 for as_base in sh bash ksh sh5; do
3721 if ("$as_dir/$as_base" -c '
3724 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3725 test "x$as_lineno_1" != "x$as_lineno_2" &&
3726 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3727 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3728 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3729 CONFIG_SHELL=$as_dir/$as_base
3731 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3739 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3740 # uniformly replaced by the line number. The first 'sed' inserts a
3741 # line-number line before each line; the second 'sed' does the real
3742 # work. The second script uses 'N' to pair each line-number line
3743 # with the numbered line, and appends trailing '-' during
3744 # substitution so that $LINENO is not a special case at line end.
3745 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3746 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3747 sed '=' <$as_myself |
3752 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3755 s,^['$as_cr_digits']*\n,,
3757 chmod +x $as_me.lineno ||
3758 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3759 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3760 { (exit 1); exit 1; }; }
3762 # Don't try to exec as it changes $[0], causing all sort of problems
3763 # (the dirname of $[0] is not the place where we might find the
3764 # original and so on. Autoconf is especially sensible to this).
3766 # Exit status is that of the last command.
3771 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3772 *c*,-n*) ECHO_N= ECHO_C='
3774 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3775 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3778 if expr a : '\(a\)' >/dev/null 2>&1; then
3784 rm -f conf$$ conf$$.exe conf$$.file
3786 if ln -s conf$$.file conf$$ 2>/dev/null; then
3787 # We could just check for DJGPP; but this test a) works b) is more generic
3788 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3789 if test -f conf$$.exe; then
3790 # Don't use ln at all; we don't have any links
3795 elif ln conf$$.file conf$$ 2>/dev/null; then
3800 rm -f conf$$ conf$$.exe conf$$.file
3802 if mkdir -p . 2>/dev/null; then
3805 test -d ./-p && rmdir ./-p
3809 as_executable_p="test -f"
3811 # Sed expression to map a string onto a valid CPP name.
3812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3814 # Sed expression to map a string onto a valid variable name.
3815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3819 # We need space, tab and new line, in precisely that order.
3829 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3830 # report actual input values of CONFIG_FILES etc. instead of their
3831 # values after options handling. Logging --version etc. is OK.
3835 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3836 ## Running $as_me. ##
3841 This file was extended by $as_me, which was
3842 generated by GNU Autoconf 2.59. Invocation command line was
3844 CONFIG_FILES = $CONFIG_FILES
3845 CONFIG_HEADERS = $CONFIG_HEADERS
3846 CONFIG_LINKS = $CONFIG_LINKS
3847 CONFIG_COMMANDS = $CONFIG_COMMANDS
3851 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3855 # Files that config.status was made for.
3856 if test -n "$ac_config_files"; then
3857 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3860 if test -n "$ac_config_headers"; then
3861 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3864 if test -n "$ac_config_links"; then
3865 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3868 if test -n "$ac_config_commands"; then
3869 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3872 cat >>$CONFIG_STATUS <<\_ACEOF
3875 \`$as_me' instantiates files from templates according to the
3876 current configuration.
3878 Usage: $0 [OPTIONS] [FILE]...
3880 -h, --help print this help, then exit
3881 -V, --version print version number, then exit
3882 -q, --quiet do not print progress messages
3883 -d, --debug don't remove temporary files
3884 --recheck update $as_me by reconfiguring in the same conditions
3885 --file=FILE[:TEMPLATE]
3886 instantiate the configuration file FILE
3888 Configuration files:
3891 Report bugs to <bug-autoconf@gnu.org>."
3894 cat >>$CONFIG_STATUS <<_ACEOF
3897 configured by $0, generated by GNU Autoconf 2.59,
3898 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3900 Copyright (C) 2003 Free Software Foundation, Inc.
3901 This config.status script is free software; the Free Software Foundation
3902 gives unlimited permission to copy, distribute and modify it."
3906 cat >>$CONFIG_STATUS <<\_ACEOF
3907 # If no file are specified by the user, then we need to provide default
3908 # value. By we need to know if files were specified by the user.
3914 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3915 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3923 *) # This is not an option, so the user has probably given explicit
3926 ac_need_defaults=false;;
3930 # Handling of the options.
3932 cat >>$CONFIG_STATUS <<\_ACEOF
3933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3935 --version | --vers* | -V )
3936 echo "$ac_cs_version"; exit 0 ;;
3938 # Conflict between --help and --header
3939 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3940 Try \`$0 --help' for more information." >&5
3941 echo "$as_me: error: ambiguous option: $1
3942 Try \`$0 --help' for more information." >&2;}
3943 { (exit 1); exit 1; }; };;
3944 --help | --hel | -h )
3945 echo "$ac_cs_usage"; exit 0 ;;
3946 --debug | --d* | -d )
3948 --file | --fil | --fi | --f )
3950 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3951 ac_need_defaults=false;;
3952 --header | --heade | --head | --hea )
3954 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3955 ac_need_defaults=false;;
3956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3957 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3961 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3962 Try \`$0 --help' for more information." >&5
3963 echo "$as_me: error: unrecognized option: $1
3964 Try \`$0 --help' for more information." >&2;}
3965 { (exit 1); exit 1; }; } ;;
3967 *) ac_config_targets="$ac_config_targets $1" ;;
3973 ac_configure_extra_args=
3975 if $ac_cs_silent; then
3977 ac_configure_extra_args="$ac_configure_extra_args --silent"
3981 cat >>$CONFIG_STATUS <<_ACEOF
3982 if \$ac_cs_recheck; then
3983 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3984 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3993 cat >>$CONFIG_STATUS <<\_ACEOF
3994 for ac_config_target in $ac_config_targets
3996 case "$ac_config_target" in
3997 # Handling of arguments.
3998 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3999 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4000 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4001 { (exit 1); exit 1; }; };;
4005 # If the user did not use the arguments to specify the items to instantiate,
4006 # then the envvar interface is used. Set only those that are not.
4007 # We use the long form for the default assignment because of an extremely
4008 # bizarre bug on SunOS 4.1.3.
4009 if $ac_need_defaults; then
4010 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4013 # Have a temporary directory for convenience. Make it in the build tree
4014 # simply because there is no reason to put it here, and in addition,
4015 # creating and moving files from /tmp can sometimes cause problems.
4016 # Create a temporary directory, and hook for its removal unless debugging.
4019 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4020 trap '{ (exit 1); exit 1; }' 1 2 13 15
4023 # Create a (secure) tmp directory for tmp files.
4026 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4027 test -n "$tmp" && test -d "$tmp"
4030 tmp=./confstat$$-$RANDOM
4031 (umask 077 && mkdir $tmp)
4034 echo "$me: cannot create a temporary directory in ." >&2
4035 { (exit 1); exit 1; }
4040 cat >>$CONFIG_STATUS <<_ACEOF
4043 # CONFIG_FILES section.
4046 # No need to generate the scripts if there are no CONFIG_FILES.
4047 # This happens for instance when ./config.status config.h
4048 if test -n "\$CONFIG_FILES"; then
4049 # Protect against being on the right side of a sed subst in config.status.
4050 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4051 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4052 s,@SHELL@,$SHELL,;t t
4053 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4054 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4055 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4056 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4057 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4058 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4059 s,@exec_prefix@,$exec_prefix,;t t
4060 s,@prefix@,$prefix,;t t
4061 s,@program_transform_name@,$program_transform_name,;t t
4062 s,@bindir@,$bindir,;t t
4063 s,@sbindir@,$sbindir,;t t
4064 s,@libexecdir@,$libexecdir,;t t
4065 s,@datadir@,$datadir,;t t
4066 s,@sysconfdir@,$sysconfdir,;t t
4067 s,@sharedstatedir@,$sharedstatedir,;t t
4068 s,@localstatedir@,$localstatedir,;t t
4069 s,@libdir@,$libdir,;t t
4070 s,@includedir@,$includedir,;t t
4071 s,@oldincludedir@,$oldincludedir,;t t
4072 s,@infodir@,$infodir,;t t
4073 s,@mandir@,$mandir,;t t
4074 s,@build_alias@,$build_alias,;t t
4075 s,@host_alias@,$host_alias,;t t
4076 s,@target_alias@,$target_alias,;t t
4078 s,@ECHO_C@,$ECHO_C,;t t
4079 s,@ECHO_N@,$ECHO_N,;t t
4080 s,@ECHO_T@,$ECHO_T,;t t
4083 s,@CFLAGS@,$CFLAGS,;t t
4084 s,@LDFLAGS@,$LDFLAGS,;t t
4085 s,@CPPFLAGS@,$CPPFLAGS,;t t
4086 s,@ac_ct_CC@,$ac_ct_CC,;t t
4087 s,@EXEEXT@,$EXEEXT,;t t
4088 s,@OBJEXT@,$OBJEXT,;t t
4090 s,@ldap_ldflags@,$ldap_ldflags,;t t
4091 s,@ldap_cflags@,$ldap_cflags,;t t
4092 s,@targetname@,$targetname,;t t
4093 s,@LIBOBJS@,$LIBOBJS,;t t
4094 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4099 cat >>$CONFIG_STATUS <<\_ACEOF
4100 # Split the substitutions into bite-sized pieces for seds with
4101 # small command number limits, like on Digital OSF/1 and HP-UX.
4103 ac_sed_frag=1 # Number of current file.
4104 ac_beg=1 # First line for current file.
4105 ac_end=$ac_max_sed_lines # Line after last line for current file.
4108 while $ac_more_lines; do
4109 if test $ac_beg -gt 1; then
4110 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4112 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4114 if test ! -s $tmp/subs.frag; then
4117 # The purpose of the label and of the branching condition is to
4118 # speed up the sed processing (if there are no `@' at all, there
4119 # is no need to browse any of the substitutions).
4120 # These are the two extra sed commands mentioned above.
4122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4123 if test -z "$ac_sed_cmds"; then
4124 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4126 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4128 ac_sed_frag=`expr $ac_sed_frag + 1`
4130 ac_end=`expr $ac_end + $ac_max_sed_lines`
4133 if test -z "$ac_sed_cmds"; then
4136 fi # test -n "$CONFIG_FILES"
4139 cat >>$CONFIG_STATUS <<\_ACEOF
4140 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4143 - | *:- | *:-:* ) # input from stdin
4145 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4147 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4149 * ) ac_file_in=$ac_file.in ;;
4152 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4153 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4154 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4155 X"$ac_file" : 'X\(//\)[^/]' \| \
4156 X"$ac_file" : 'X\(//\)$' \| \
4157 X"$ac_file" : 'X\(/\)' \| \
4158 . : '\(.\)' 2>/dev/null ||
4160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4162 /^X\(\/\/\)$/{ s//\1/; q; }
4163 /^X\(\/\).*/{ s//\1/; q; }
4165 { if $as_mkdir_p; then
4170 while test ! -d "$as_dir"; do
4171 as_dirs="$as_dir $as_dirs"
4172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4174 X"$as_dir" : 'X\(//\)[^/]' \| \
4175 X"$as_dir" : 'X\(//\)$' \| \
4176 X"$as_dir" : 'X\(/\)' \| \
4177 . : '\(.\)' 2>/dev/null ||
4179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4181 /^X\(\/\/\)$/{ s//\1/; q; }
4182 /^X\(\/\).*/{ s//\1/; q; }
4185 test ! -n "$as_dirs" || mkdir $as_dirs
4186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4187 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4188 { (exit 1); exit 1; }; }; }
4192 if test "$ac_dir" != .; then
4193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4194 # A "../" for each directory in $ac_dir_suffix.
4195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4197 ac_dir_suffix= ac_top_builddir=
4201 .) # No --srcdir option. We are building in place.
4203 if test -z "$ac_top_builddir"; then
4206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4208 [\\/]* | ?:[\\/]* ) # Absolute path.
4209 ac_srcdir=$srcdir$ac_dir_suffix;
4210 ac_top_srcdir=$srcdir ;;
4212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4216 # Do not use `cd foo && pwd` to compute absolute paths, because
4217 # the directories may not exist.
4219 .) ac_abs_builddir="$ac_dir";;
4222 .) ac_abs_builddir=`pwd`;;
4223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4224 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4227 case $ac_abs_builddir in
4228 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4230 case ${ac_top_builddir}. in
4231 .) ac_abs_top_builddir=$ac_abs_builddir;;
4232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4236 case $ac_abs_builddir in
4237 .) ac_abs_srcdir=$ac_srcdir;;
4240 .) ac_abs_srcdir=$ac_abs_builddir;;
4241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4245 case $ac_abs_builddir in
4246 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4248 case $ac_top_srcdir in
4249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4257 # Let's still pretend it is `configure' which instantiates (i.e., don't
4258 # use $as_me), people would be surprised to read:
4259 # /* config.h. Generated by config.status. */
4260 if test x"$ac_file" = x-; then
4263 configure_input="$ac_file. "
4265 configure_input=$configure_input"Generated from `echo $ac_file_in |
4266 sed 's,.*/,,'` by configure."
4268 # First look for the input files in the build tree, otherwise in the
4270 ac_file_inputs=`IFS=:
4271 for f in $ac_file_in; do
4273 -) echo $tmp/stdin ;;
4275 # Absolute (can't be DOS-style, as IFS=:)
4276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4277 echo "$as_me: error: cannot find input file: $f" >&2;}
4278 { (exit 1); exit 1; }; }
4281 if test -f "$f"; then
4284 elif test -f "$srcdir/$f"; then
4289 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4290 echo "$as_me: error: cannot find input file: $f" >&2;}
4291 { (exit 1); exit 1; }; }
4294 done` || { (exit 1); exit 1; }
4296 if test x"$ac_file" != x-; then
4297 { echo "$as_me:$LINENO: creating $ac_file" >&5
4298 echo "$as_me: creating $ac_file" >&6;}
4302 cat >>$CONFIG_STATUS <<_ACEOF
4306 cat >>$CONFIG_STATUS <<\_ACEOF
4308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4309 s,@configure_input@,$configure_input,;t t
4310 s,@srcdir@,$ac_srcdir,;t t
4311 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4312 s,@top_srcdir@,$ac_top_srcdir,;t t
4313 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4314 s,@builddir@,$ac_builddir,;t t
4315 s,@abs_builddir@,$ac_abs_builddir,;t t
4316 s,@top_builddir@,$ac_top_builddir,;t t
4317 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4320 if test x"$ac_file" != x-; then
4321 mv $tmp/out $ac_file
4330 cat >>$CONFIG_STATUS <<\_ACEOF
4332 { (exit 0); exit 0; }
4334 chmod +x $CONFIG_STATUS
4335 ac_clean_files=$ac_clean_files_save
4338 # configure is writing to config.log, and then calls config.status.
4339 # config.status does its own redirection, appending to config.log.
4340 # Unfortunately, on DOS this fails, as config.log is still kept open
4341 # by configure, so config.status won't be able to write to it; its
4342 # output is simply discarded. So we exec the FD to /dev/null,
4343 # effectively closing config.log, so it can be properly (re)opened and
4344 # appended to by config.status. When coming back to configure, we
4345 # need to make the FD available again.
4346 if test "$no_create" != yes; then
4348 ac_config_status_args=
4349 test "$silent" = yes &&
4350 ac_config_status_args="$ac_config_status_args --quiet"
4352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4355 # would make configure fail if this is the last instruction.
4356 $ac_cs_success || { (exit 1); exit 1; }