Debian Codegraph @

src/modules/rlm_ldap/configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="rlm_ldap.c"
586 ac_subst_vars='LTLIBOBJS
587 LIBOBJS
588 SASL
589 mod_cflags
590 mod_ldflags
591 targetname
592 OBJEXT
593 EXEEXT
594 ac_ct_CC
595 CPPFLAGS
596 LDFLAGS
597 CFLAGS
598 CC
599 target_alias
600 host_alias
601 build_alias
602 LIBS
603 ECHO_T
604 ECHO_N
605 ECHO_C
606 DEFS
607 mandir
608 localedir
609 libdir
610 psdir
611 pdfdir
612 dvidir
613 htmldir
614 infodir
615 docdir
616 oldincludedir
617 includedir
618 runstatedir
619 localstatedir
620 sharedstatedir
621 sysconfdir
622 datadir
623 datarootdir
624 libexecdir
625 sbindir
626 bindir
627 program_transform_name
628 prefix
629 exec_prefix
630 PACKAGE_URL
631 PACKAGE_BUGREPORT
632 PACKAGE_STRING
633 PACKAGE_VERSION
634 PACKAGE_TARNAME
635 PACKAGE_NAME
636 PATH_SEPARATOR
637 SHELL'
638 ac_subst_files=''
639 ac_user_opts='
640 enable_option_checking
641 with_rlm_ldap
642 with_rlm_ldap_lib_dir
643 with_rlm_ldap_include_dir
644 '
645 ac_precious_vars='build_alias
646 host_alias
647 target_alias
648 CC
649 CFLAGS
650 LDFLAGS
651 LIBS
652 CPPFLAGS'
653
654
655 # Initialize some variables set by options.
656 ac_init_help=
657 ac_init_version=false
658 ac_unrecognized_opts=
659 ac_unrecognized_sep=
660 # The variables have the same names as the options, with
661 # dashes changed to underlines.
662 cache_file=/dev/null
663 exec_prefix=NONE
664 no_create=
665 no_recursion=
666 prefix=NONE
667 program_prefix=NONE
668 program_suffix=NONE
669 program_transform_name=s,x,x,
670 silent=
671 site=
672 srcdir=
673 verbose=
674 x_includes=NONE
675 x_libraries=NONE
676
677 # Installation directory options.
678 # These are left unexpanded so users can "make install exec_prefix=/foo"
679 # and all the variables that are supposed to be based on exec_prefix
680 # by default will actually change.
681 # Use braces instead of parens because sh, perl, etc. also accept them.
682 # (The list follows the same order as the GNU Coding Standards.)
683 bindir='${exec_prefix}/bin'
684 sbindir='${exec_prefix}/sbin'
685 libexecdir='${exec_prefix}/libexec'
686 datarootdir='${prefix}/share'
687 datadir='${datarootdir}'
688 sysconfdir='${prefix}/etc'
689 sharedstatedir='${prefix}/com'
690 localstatedir='${prefix}/var'
691 runstatedir='${localstatedir}/run'
692 includedir='${prefix}/include'
693 oldincludedir='/usr/include'
694 docdir='${datarootdir}/doc/${PACKAGE}'
695 infodir='${datarootdir}/info'
696 htmldir='${docdir}'
697 dvidir='${docdir}'
698 pdfdir='${docdir}'
699 psdir='${docdir}'
700 libdir='${exec_prefix}/lib'
701 localedir='${datarootdir}/locale'
702 mandir='${datarootdir}/man'
703
704 ac_prev=
705 ac_dashdash=
706 for ac_option
707 do
708 # If the previous option needs an argument, assign it.
709 if test -n "$ac_prev"; then
710 eval $ac_prev=\$ac_option
711 ac_prev=
712 continue
713 fi
714
715 case $ac_option in
716 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
717 *=) ac_optarg= ;;
718 *) ac_optarg=yes ;;
719 esac
720
721 # Accept the important Cygnus configure options, so we can diagnose typos.
722
723 case $ac_dashdash$ac_option in
724 --)
725 ac_dashdash=yes ;;
726
727 -bindir | --bindir | --bindi | --bind | --bin | --bi)
728 ac_prev=bindir ;;
729 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
730 bindir=$ac_optarg ;;
731
732 -build | --build | --buil | --bui | --bu)
733 ac_prev=build_alias ;;
734 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
735 build_alias=$ac_optarg ;;
736
737 -cache-file | --cache-file | --cache-fil | --cache-fi \
738 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
739 ac_prev=cache_file ;;
740 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
741 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
742 cache_file=$ac_optarg ;;
743
744 --config-cache | -C)
745 cache_file=config.cache ;;
746
747 -datadir | --datadir | --datadi | --datad)
748 ac_prev=datadir ;;
749 -datadir=* | --datadir=* | --datadi=* | --datad=*)
750 datadir=$ac_optarg ;;
751
752 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
753 | --dataroo | --dataro | --datar)
754 ac_prev=datarootdir ;;
755 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
756 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
757 datarootdir=$ac_optarg ;;
758
759 -disable-* | --disable-*)
760 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
761 # Reject names that are not valid shell variable names.
762 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
763 as_fn_error $? "invalid feature name: $ac_useropt"
764 ac_useropt_orig=$ac_useropt
765 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
766 case $ac_user_opts in
767 *"
768 "enable_$ac_useropt"
769 "*) ;;
770 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
771 ac_unrecognized_sep=', ';;
772 esac
773 eval enable_$ac_useropt=no ;;
774
775 -docdir | --docdir | --docdi | --doc | --do)
776 ac_prev=docdir ;;
777 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
778 docdir=$ac_optarg ;;
779
780 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
781 ac_prev=dvidir ;;
782 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
783 dvidir=$ac_optarg ;;
784
785 -enable-* | --enable-*)
786 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
789 as_fn_error $? "invalid feature name: $ac_useropt"
790 ac_useropt_orig=$ac_useropt
791 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
792 case $ac_user_opts in
793 *"
794 "enable_$ac_useropt"
795 "*) ;;
796 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
797 ac_unrecognized_sep=', ';;
798 esac
799 eval enable_$ac_useropt=\$ac_optarg ;;
800
801 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
802 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
803 | --exec | --exe | --ex)
804 ac_prev=exec_prefix ;;
805 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
806 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
807 | --exec=* | --exe=* | --ex=*)
808 exec_prefix=$ac_optarg ;;
809
810 -gas | --gas | --ga | --g)
811 # Obsolete; use --with-gas.
812 with_gas=yes ;;
813
814 -help | --help | --hel | --he | -h)
815 ac_init_help=long ;;
816 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
817 ac_init_help=recursive ;;
818 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
819 ac_init_help=short ;;
820
821 -host | --host | --hos | --ho)
822 ac_prev=host_alias ;;
823 -host=* | --host=* | --hos=* | --ho=*)
824 host_alias=$ac_optarg ;;
825
826 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
827 ac_prev=htmldir ;;
828 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
829 | --ht=*)
830 htmldir=$ac_optarg ;;
831
832 -includedir | --includedir | --includedi | --included | --include \
833 | --includ | --inclu | --incl | --inc)
834 ac_prev=includedir ;;
835 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
836 | --includ=* | --inclu=* | --incl=* | --inc=*)
837 includedir=$ac_optarg ;;
838
839 -infodir | --infodir | --infodi | --infod | --info | --inf)
840 ac_prev=infodir ;;
841 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
842 infodir=$ac_optarg ;;
843
844 -libdir | --libdir | --libdi | --libd)
845 ac_prev=libdir ;;
846 -libdir=* | --libdir=* | --libdi=* | --libd=*)
847 libdir=$ac_optarg ;;
848
849 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
850 | --libexe | --libex | --libe)
851 ac_prev=libexecdir ;;
852 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
853 | --libexe=* | --libex=* | --libe=*)
854 libexecdir=$ac_optarg ;;
855
856 -localedir | --localedir | --localedi | --localed | --locale)
857 ac_prev=localedir ;;
858 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
859 localedir=$ac_optarg ;;
860
861 -localstatedir | --localstatedir | --localstatedi | --localstated \
862 | --localstate | --localstat | --localsta | --localst | --locals)
863 ac_prev=localstatedir ;;
864 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
865 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
866 localstatedir=$ac_optarg ;;
867
868 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
869 ac_prev=mandir ;;
870 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
871 mandir=$ac_optarg ;;
872
873 -nfp | --nfp | --nf)
874 # Obsolete; use --without-fp.
875 with_fp=no ;;
876
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c | -n)
879 no_create=yes ;;
880
881 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
882 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
883 no_recursion=yes ;;
884
885 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
886 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
887 | --oldin | --oldi | --old | --ol | --o)
888 ac_prev=oldincludedir ;;
889 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
890 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
891 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
892 oldincludedir=$ac_optarg ;;
893
894 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
895 ac_prev=prefix ;;
896 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
897 prefix=$ac_optarg ;;
898
899 -program-prefix | --program-prefix | --program-prefi | --program-pref \
900 | --program-pre | --program-pr | --program-p)
901 ac_prev=program_prefix ;;
902 -program-prefix=* | --program-prefix=* | --program-prefi=* \
903 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
904 program_prefix=$ac_optarg ;;
905
906 -program-suffix | --program-suffix | --program-suffi | --program-suff \
907 | --program-suf | --program-su | --program-s)
908 ac_prev=program_suffix ;;
909 -program-suffix=* | --program-suffix=* | --program-suffi=* \
910 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
911 program_suffix=$ac_optarg ;;
912
913 -program-transform-name | --program-transform-name \
914 | --program-transform-nam | --program-transform-na \
915 | --program-transform-n | --program-transform- \
916 | --program-transform | --program-transfor \
917 | --program-transfo | --program-transf \
918 | --program-trans | --program-tran \
919 | --progr-tra | --program-tr | --program-t)
920 ac_prev=program_transform_name ;;
921 -program-transform-name=* | --program-transform-name=* \
922 | --program-transform-nam=* | --program-transform-na=* \
923 | --program-transform-n=* | --program-transform-=* \
924 | --program-transform=* | --program-transfor=* \
925 | --program-transfo=* | --program-transf=* \
926 | --program-trans=* | --program-tran=* \
927 | --progr-tra=* | --program-tr=* | --program-t=*)
928 program_transform_name=$ac_optarg ;;
929
930 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
931 ac_prev=pdfdir ;;
932 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
933 pdfdir=$ac_optarg ;;
934
935 -psdir | --psdir | --psdi | --psd | --ps)
936 ac_prev=psdir ;;
937 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
938 psdir=$ac_optarg ;;
939
940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
941 | -silent | --silent | --silen | --sile | --sil)
942 silent=yes ;;
943
944 -runstatedir | --runstatedir | --runstatedi | --runstated \
945 | --runstate | --runstat | --runsta | --runst | --runs \
946 | --run | --ru | --r)
947 ac_prev=runstatedir ;;
948 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
949 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
950 | --run=* | --ru=* | --r=*)
951 runstatedir=$ac_optarg ;;
952
953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 ac_prev=sbindir ;;
955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 | --sbi=* | --sb=*)
957 sbindir=$ac_optarg ;;
958
959 -sharedstatedir | --sharedstatedir | --sharedstatedi \
960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
961 | --sharedst | --shareds | --shared | --share | --shar \
962 | --sha | --sh)
963 ac_prev=sharedstatedir ;;
964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 | --sha=* | --sh=*)
968 sharedstatedir=$ac_optarg ;;
969
970 -site | --site | --sit)
971 ac_prev=site ;;
972 -site=* | --site=* | --sit=*)
973 site=$ac_optarg ;;
974
975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 ac_prev=srcdir ;;
977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
978 srcdir=$ac_optarg ;;
979
980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
981 | --syscon | --sysco | --sysc | --sys | --sy)
982 ac_prev=sysconfdir ;;
983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
985 sysconfdir=$ac_optarg ;;
986
987 -target | --target | --targe | --targ | --tar | --ta | --t)
988 ac_prev=target_alias ;;
989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
990 target_alias=$ac_optarg ;;
991
992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
993 verbose=yes ;;
994
995 -version | --version | --versio | --versi | --vers | -V)
996 ac_init_version=: ;;
997
998 -with-* | --with-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid package name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "with_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval with_$ac_useropt=\$ac_optarg ;;
1013
1014 -without-* | --without-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid package name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "with_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval with_$ac_useropt=no ;;
1029
1030 --x)
1031 # Obsolete; use --with-x.
1032 with_x=yes ;;
1033
1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035 | --x-incl | --x-inc | --x-in | --x-i)
1036 ac_prev=x_includes ;;
1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039 x_includes=$ac_optarg ;;
1040
1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043 ac_prev=x_libraries ;;
1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046 x_libraries=$ac_optarg ;;
1047
1048 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1049 Try \`$0 --help' for more information"
1050 ;;
1051
1052 *=*)
1053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1054 # Reject names that are not valid shell variable names.
1055 case $ac_envvar in #(
1056 '' | [0-9]* | *[!_$as_cr_alnum]* )
1057 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1058 esac
1059 eval $ac_envvar=\$ac_optarg
1060 export $ac_envvar ;;
1061
1062 *)
1063 # FIXME: should be removed in autoconf 3.0.
1064 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1068 ;;
1069
1070 esac
1071 done
1072
1073 if test -n "$ac_prev"; then
1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 as_fn_error $? "missing argument to $ac_option"
1076 fi
1077
1078 if test -n "$ac_unrecognized_opts"; then
1079 case $enable_option_checking in
1080 no) ;;
1081 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1082 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1083 esac
1084 fi
1085
1086 # Check all directory arguments for consistency.
1087 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1088 datadir sysconfdir sharedstatedir localstatedir includedir \
1089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1090 libdir localedir mandir runstatedir
1091 do
1092 eval ac_val=\$$ac_var
1093 # Remove trailing slashes.
1094 case $ac_val in
1095 */ )
1096 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1097 eval $ac_var=\$ac_val;;
1098 esac
1099 # Be sure to have absolute directory names.
1100 case $ac_val in
1101 [\\/$]* | ?:[\\/]* ) continue;;
1102 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1103 esac
1104 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1105 done
1106
1107 # There might be people who depend on the old broken behavior: `$host'
1108 # used to hold the argument of --host etc.
1109 # FIXME: To remove some day.
1110 build=$build_alias
1111 host=$host_alias
1112 target=$target_alias
1113
1114 # FIXME: To remove some day.
1115 if test "x$host_alias" != x; then
1116 if test "x$build_alias" = x; then
1117 cross_compiling=maybe
1118 elif test "x$build_alias" != "x$host_alias"; then
1119 cross_compiling=yes
1120 fi
1121 fi
1122
1123 ac_tool_prefix=
1124 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1125
1126 test "$silent" = yes && exec 6>/dev/null
1127
1128
1129 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1130 ac_ls_di=`ls -di .` &&
1131 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1132 as_fn_error $? "working directory cannot be determined"
1133 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1134 as_fn_error $? "pwd does not report name of working directory"
1135
1136
1137 # Find the source files, if location was not specified.
1138 if test -z "$srcdir"; then
1139 ac_srcdir_defaulted=yes
1140 # Try the directory containing this script, then the parent directory.
1141 ac_confdir=`$as_dirname -- "$as_myself" ||
1142 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1143 X"$as_myself" : 'X\(//\)[^/]' \| \
1144 X"$as_myself" : 'X\(//\)$' \| \
1145 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1146 $as_echo X"$as_myself" |
1147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)[^/].*/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\/\)$/{
1156 s//\1/
1157 q
1158 }
1159 /^X\(\/\).*/{
1160 s//\1/
1161 q
1162 }
1163 s/.*/./; q'`
1164 srcdir=$ac_confdir
1165 if test ! -r "$srcdir/$ac_unique_file"; then
1166 srcdir=..
1167 fi
1168 else
1169 ac_srcdir_defaulted=no
1170 fi
1171 if test ! -r "$srcdir/$ac_unique_file"; then
1172 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1173 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1174 fi
1175 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1176 ac_abs_confdir=`(
1177 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1178 pwd)`
1179 # When building in place, set srcdir=.
1180 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 srcdir=.
1182 fi
1183 # Remove unnecessary trailing slashes from srcdir.
1184 # Double slashes in file names in object file debugging info
1185 # mess up M-x gdb in Emacs.
1186 case $srcdir in
1187 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1188 esac
1189 for ac_var in $ac_precious_vars; do
1190 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_env_${ac_var}_value=\$${ac_var}
1192 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1193 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1194 done
1195
1196 #
1197 # Report the --help message.
1198 #
1199 if test "$ac_init_help" = "long"; then
1200 # Omit some internal or obsolete options to make the list less imposing.
1201 # This message is too long to be a string in the A/UX 3.1 sh.
1202 cat <<_ACEOF
1203 \`configure' configures this package to adapt to many kinds of systems.
1204
1205 Usage: $0 [OPTION]... [VAR=VALUE]...
1206
1207 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1208 VAR=VALUE. See below for descriptions of some of the useful variables.
1209
1210 Defaults for the options are specified in brackets.
1211
1212 Configuration:
1213 -h, --help display this help and exit
1214 --help=short display options specific to this package
1215 --help=recursive display the short help of all the included packages
1216 -V, --version display version information and exit
1217 -q, --quiet, --silent do not print \`checking ...' messages
1218 --cache-file=FILE cache test results in FILE [disabled]
1219 -C, --config-cache alias for \`--cache-file=config.cache'
1220 -n, --no-create do not create output files
1221 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1222
1223 Installation directories:
1224 --prefix=PREFIX install architecture-independent files in PREFIX
1225 [$ac_default_prefix]
1226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 [PREFIX]
1228
1229 By default, \`make install' will install all the files in
1230 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1231 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1232 for instance \`--prefix=\$HOME'.
1233
1234 For better control, use the options below.
1235
1236 Fine tuning of the installation directories:
1237 --bindir=DIR user executables [EPREFIX/bin]
1238 --sbindir=DIR system admin executables [EPREFIX/sbin]
1239 --libexecdir=DIR program executables [EPREFIX/libexec]
1240 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1241 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1242 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1243 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1244 --libdir=DIR object code libraries [EPREFIX/lib]
1245 --includedir=DIR C header files [PREFIX/include]
1246 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1249 --infodir=DIR info documentation [DATAROOTDIR/info]
1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1251 --mandir=DIR man documentation [DATAROOTDIR/man]
1252 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1253 --htmldir=DIR html documentation [DOCDIR]
1254 --dvidir=DIR dvi documentation [DOCDIR]
1255 --pdfdir=DIR pdf documentation [DOCDIR]
1256 --psdir=DIR ps documentation [DOCDIR]
1257 _ACEOF
1258
1259 cat <<\_ACEOF
1260 _ACEOF
1261 fi
1262
1263 if test -n "$ac_init_help"; then
1264
1265 cat <<\_ACEOF
1266
1267 Optional Packages:
1268 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1269 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1270 --without-rlm_ldap build without LDAP support
1271 --with-rlm-ldap-lib-dir=DIR
1272 directory for LDAP library files
1273 --with-rlm-ldap-include-dir=DIR
1274 directory for LDAP include files
1275
1276 Some influential environment variables:
1277 CC C compiler command
1278 CFLAGS C compiler flags
1279 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1280 nonstandard directory <lib dir>
1281 LIBS libraries to pass to the linker, e.g. -l<library>
1282 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1283 you have headers in a nonstandard directory <include dir>
1284
1285 Use these variables to override the choices made by `configure' or to help
1286 it to find libraries and programs with nonstandard names/locations.
1287
1288 Report bugs to the package provider.
1289 _ACEOF
1290 ac_status=$?
1291 fi
1292
1293 if test "$ac_init_help" = "recursive"; then
1294 # If there are subdirs, report their specific --help.
1295 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1296 test -d "$ac_dir" ||
1297 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1298 continue
1299 ac_builddir=.
1300
1301 case "$ac_dir" in
1302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1303 *)
1304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1305 # A ".." for each directory in $ac_dir_suffix.
1306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1307 case $ac_top_builddir_sub in
1308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1310 esac ;;
1311 esac
1312 ac_abs_top_builddir=$ac_pwd
1313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1314 # for backward compatibility:
1315 ac_top_builddir=$ac_top_build_prefix
1316
1317 case $srcdir in
1318 .) # We are building in place.
1319 ac_srcdir=.
1320 ac_top_srcdir=$ac_top_builddir_sub
1321 ac_abs_top_srcdir=$ac_pwd ;;
1322 [\\/]* | ?:[\\/]* ) # Absolute name.
1323 ac_srcdir=$srcdir$ac_dir_suffix;
1324 ac_top_srcdir=$srcdir
1325 ac_abs_top_srcdir=$srcdir ;;
1326 *) # Relative name.
1327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1328 ac_top_srcdir=$ac_top_build_prefix$srcdir
1329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1330 esac
1331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1332
1333 cd "$ac_dir" || { ac_status=$?; continue; }
1334 # Check for guested configure.
1335 if test -f "$ac_srcdir/configure.gnu"; then
1336 echo &&
1337 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1338 elif test -f "$ac_srcdir/configure"; then
1339 echo &&
1340 $SHELL "$ac_srcdir/configure" --help=recursive
1341 else
1342 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1343 fi || ac_status=$?
1344 cd "$ac_pwd" || { ac_status=$?; break; }
1345 done
1346 fi
1347
1348 test -n "$ac_init_help" && exit $ac_status
1349 if $ac_init_version; then
1350 cat <<\_ACEOF
1351 configure
1352 generated by GNU Autoconf 2.69
1353
1354 Copyright (C) 2012 Free Software Foundation, Inc.
1355 This configure script is free software; the Free Software Foundation
1356 gives unlimited permission to copy, distribute and modify it.
1357 _ACEOF
1358 exit
1359 fi
1360
1361 ## ------------------------ ##
1362 ## Autoconf initialization. ##
1363 ## ------------------------ ##
1364
1365 echo
1366 echo Running tests for rlm_ldap
1367 echo
1368
1369
1370 # ac_fn_c_try_compile LINENO
1371 # --------------------------
1372 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1373 ac_fn_c_try_compile ()
1374 {
1375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1376 rm -f conftest.$ac_objext
1377 if { { ac_try="$ac_compile"
1378 case "(($ac_try" in
1379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1380 *) ac_try_echo=$ac_try;;
1381 esac
1382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1383 $as_echo "$ac_try_echo"; } >&5
1384 (eval "$ac_compile") 2>conftest.err
1385 ac_status=$?
1386 if test -s conftest.err; then
1387 grep -v '^ *+' conftest.err >conftest.er1
1388 cat conftest.er1 >&5
1389 mv -f conftest.er1 conftest.err
1390 fi
1391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1392 test $ac_status = 0; } && {
1393 test -z "$ac_c_werror_flag" ||
1394 test ! -s conftest.err
1395 } && test -s conftest.$ac_objext; then :
1396 ac_retval=0
1397 else
1398 $as_echo "$as_me: failed program was:" >&5
1399 sed 's/^/| /' conftest.$ac_ext >&5
1400
1401 ac_retval=1
1402 fi
1403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1404 as_fn_set_status $ac_retval
1405
1406 } # ac_fn_c_try_compile
1407
1408 # ac_fn_c_try_link LINENO
1409 # -----------------------
1410 # Try to link conftest.$ac_ext, and return whether this succeeded.
1411 ac_fn_c_try_link ()
1412 {
1413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414 rm -f conftest.$ac_objext conftest$ac_exeext
1415 if { { ac_try="$ac_link"
1416 case "(($ac_try" in
1417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1418 *) ac_try_echo=$ac_try;;
1419 esac
1420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421 $as_echo "$ac_try_echo"; } >&5
1422 (eval "$ac_link") 2>conftest.err
1423 ac_status=$?
1424 if test -s conftest.err; then
1425 grep -v '^ *+' conftest.err >conftest.er1
1426 cat conftest.er1 >&5
1427 mv -f conftest.er1 conftest.err
1428 fi
1429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430 test $ac_status = 0; } && {
1431 test -z "$ac_c_werror_flag" ||
1432 test ! -s conftest.err
1433 } && test -s conftest$ac_exeext && {
1434 test "$cross_compiling" = yes ||
1435 test -x conftest$ac_exeext
1436 }; then :
1437 ac_retval=0
1438 else
1439 $as_echo "$as_me: failed program was:" >&5
1440 sed 's/^/| /' conftest.$ac_ext >&5
1441
1442 ac_retval=1
1443 fi
1444 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1445 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1446 # interfere with the next link command; also delete a directory that is
1447 # left behind by Apple's compiler. We do this before executing the actions.
1448 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1449 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1450 as_fn_set_status $ac_retval
1451
1452 } # ac_fn_c_try_link
1453
1454 # ac_fn_c_check_func LINENO FUNC VAR
1455 # ----------------------------------
1456 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1457 ac_fn_c_check_func ()
1458 {
1459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1461 $as_echo_n "checking for $2... " >&6; }
1462 if eval \${$3+:} false; then :
1463 $as_echo_n "(cached) " >&6
1464 else
1465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1466 /* end confdefs.h. */
1467 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1469 #define $2 innocuous_$2
1470
1471 /* System header to define __stub macros and hopefully few prototypes,
1472 which can conflict with char $2 (); below.
1473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1474 <limits.h> exists even on freestanding compilers. */
1475
1476 #ifdef __STDC__
1477 # include <limits.h>
1478 #else
1479 # include <assert.h>
1480 #endif
1481
1482 #undef $2
1483
1484 /* Override any GCC internal prototype to avoid an error.
1485 Use char because int might match the return type of a GCC
1486 builtin and then its argument prototype would still apply. */
1487 #ifdef __cplusplus
1488 extern "C"
1489 #endif
1490 char $2 ();
1491 /* The GNU C library defines this for functions which it implements
1492 to always fail with ENOSYS. Some functions are actually named
1493 something starting with __ and the normal name is an alias. */
1494 #if defined __stub_$2 || defined __stub___$2
1495 choke me
1496 #endif
1497
1498 int
1499 main ()
1500 {
1501 return $2 ();
1502 ;
1503 return 0;
1504 }
1505 _ACEOF
1506 if ac_fn_c_try_link "$LINENO"; then :
1507 eval "$3=yes"
1508 else
1509 eval "$3=no"
1510 fi
1511 rm -f core conftest.err conftest.$ac_objext \
1512 conftest$ac_exeext conftest.$ac_ext
1513 fi
1514 eval ac_res=\$$3
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1516 $as_echo "$ac_res" >&6; }
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518
1519 } # ac_fn_c_check_func
1520 cat >config.log <<_ACEOF
1521 This file contains any messages produced by compilers while
1522 running configure, to aid debugging if configure makes a mistake.
1523
1524 It was created by $as_me, which was
1525 generated by GNU Autoconf 2.69. Invocation command line was
1526
1527 $ $0 $@
1528
1529 _ACEOF
1530 exec 5>>config.log
1531 {
1532 cat <<_ASUNAME
1533 ## --------- ##
1534 ## Platform. ##
1535 ## --------- ##
1536
1537 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1538 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1539 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1540 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1541 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1542
1543 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1544 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1545
1546 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1547 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1548 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1549 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1550 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1551 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1552 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1553
1554 _ASUNAME
1555
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 $as_echo "PATH: $as_dir"
1562 done
1563 IFS=$as_save_IFS
1564
1565 } >&5
1566
1567 cat >&5 <<_ACEOF
1568
1569
1570 ## ----------- ##
1571 ## Core tests. ##
1572 ## ----------- ##
1573
1574 _ACEOF
1575
1576
1577 # Keep a trace of the command line.
1578 # Strip out --no-create and --no-recursion so they do not pile up.
1579 # Strip out --silent because we don't want to record it for future runs.
1580 # Also quote any args containing shell meta-characters.
1581 # Make two passes to allow for proper duplicate-argument suppression.
1582 ac_configure_args=
1583 ac_configure_args0=
1584 ac_configure_args1=
1585 ac_must_keep_next=false
1586 for ac_pass in 1 2
1587 do
1588 for ac_arg
1589 do
1590 case $ac_arg in
1591 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593 | -silent | --silent | --silen | --sile | --sil)
1594 continue ;;
1595 *\'*)
1596 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1597 esac
1598 case $ac_pass in
1599 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1600 2)
1601 as_fn_append ac_configure_args1 " '$ac_arg'"
1602 if test $ac_must_keep_next = true; then
1603 ac_must_keep_next=false # Got value, back to normal.
1604 else
1605 case $ac_arg in
1606 *=* | --config-cache | -C | -disable-* | --disable-* \
1607 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1608 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1609 | -with-* | --with-* | -without-* | --without-* | --x)
1610 case "$ac_configure_args0 " in
1611 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1612 esac
1613 ;;
1614 -* ) ac_must_keep_next=true ;;
1615 esac
1616 fi
1617 as_fn_append ac_configure_args " '$ac_arg'"
1618 ;;
1619 esac
1620 done
1621 done
1622 { ac_configure_args0=; unset ac_configure_args0;}
1623 { ac_configure_args1=; unset ac_configure_args1;}
1624
1625 # When interrupted or exit'd, cleanup temporary files, and complete
1626 # config.log. We remove comments because anyway the quotes in there
1627 # would cause problems or look ugly.
1628 # WARNING: Use '\'' to represent an apostrophe within the trap.
1629 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1630 trap 'exit_status=$?
1631 # Save into config.log some information that might help in debugging.
1632 {
1633 echo
1634
1635 $as_echo "## ---------------- ##
1636 ## Cache variables. ##
1637 ## ---------------- ##"
1638 echo
1639 # The following way of writing the cache mishandles newlines in values,
1640 (
1641 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1642 eval ac_val=\$$ac_var
1643 case $ac_val in #(
1644 *${as_nl}*)
1645 case $ac_var in #(
1646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1648 esac
1649 case $ac_var in #(
1650 _ | IFS | as_nl) ;; #(
1651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1652 *) { eval $ac_var=; unset $ac_var;} ;;
1653 esac ;;
1654 esac
1655 done
1656 (set) 2>&1 |
1657 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1658 *${as_nl}ac_space=\ *)
1659 sed -n \
1660 "s/'\''/'\''\\\\'\'''\''/g;
1661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1662 ;; #(
1663 *)
1664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1665 ;;
1666 esac |
1667 sort
1668 )
1669 echo
1670
1671 $as_echo "## ----------------- ##
1672 ## Output variables. ##
1673 ## ----------------- ##"
1674 echo
1675 for ac_var in $ac_subst_vars
1676 do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in
1679 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 esac
1681 $as_echo "$ac_var='\''$ac_val'\''"
1682 done | sort
1683 echo
1684
1685 if test -n "$ac_subst_files"; then
1686 $as_echo "## ------------------- ##
1687 ## File substitutions. ##
1688 ## ------------------- ##"
1689 echo
1690 for ac_var in $ac_subst_files
1691 do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in
1694 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 esac
1696 $as_echo "$ac_var='\''$ac_val'\''"
1697 done | sort
1698 echo
1699 fi
1700
1701 if test -s confdefs.h; then
1702 $as_echo "## ----------- ##
1703 ## confdefs.h. ##
1704 ## ----------- ##"
1705 echo
1706 cat confdefs.h
1707 echo
1708 fi
1709 test "$ac_signal" != 0 &&
1710 $as_echo "$as_me: caught signal $ac_signal"
1711 $as_echo "$as_me: exit $exit_status"
1712 } >&5
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1715 exit $exit_status
1716 ' 0
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1719 done
1720 ac_signal=0
1721
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1724
1725 $as_echo "/* confdefs.h */" > confdefs.h
1726
1727 # Predefined preprocessor variables.
1728
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_NAME "$PACKAGE_NAME"
1731 _ACEOF
1732
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1739 _ACEOF
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_STRING "$PACKAGE_STRING"
1743 _ACEOF
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1747 _ACEOF
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_URL "$PACKAGE_URL"
1751 _ACEOF
1752
1753
1754 # Let the site file select an alternate cache file if it wants to.
1755 # Prefer an explicitly selected file to automatically selected ones.
1756 ac_site_file1=NONE
1757 ac_site_file2=NONE
1758 if test -n "$CONFIG_SITE"; then
1759 # We do not want a PATH search for config.site.
1760 case $CONFIG_SITE in #((
1761 -*) ac_site_file1=./$CONFIG_SITE;;
1762 */*) ac_site_file1=$CONFIG_SITE;;
1763 *) ac_site_file1=./$CONFIG_SITE;;
1764 esac
1765 elif test "x$prefix" != xNONE; then
1766 ac_site_file1=$prefix/share/config.site
1767 ac_site_file2=$prefix/etc/config.site
1768 else
1769 ac_site_file1=$ac_default_prefix/share/config.site
1770 ac_site_file2=$ac_default_prefix/etc/config.site
1771 fi
1772 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1773 do
1774 test "x$ac_site_file" = xNONE && continue
1775 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1777 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1779 . "$ac_site_file" \
1780 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1782 as_fn_error $? "failed to load site script $ac_site_file
1783 See \`config.log' for more details" "$LINENO" 5; }
1784 fi
1785 done
1786
1787 if test -r "$cache_file"; then
1788 # Some versions of bash will fail to source /dev/null (special files
1789 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1790 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1792 $as_echo "$as_me: loading cache $cache_file" >&6;}
1793 case $cache_file in
1794 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1795 *) . "./$cache_file";;
1796 esac
1797 fi
1798 else
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1800 $as_echo "$as_me: creating cache $cache_file" >&6;}
1801 >$cache_file
1802 fi
1803
1804 # Check that the precious variables saved in the cache have kept the same
1805 # value.
1806 ac_cache_corrupted=false
1807 for ac_var in $ac_precious_vars; do
1808 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1809 eval ac_new_set=\$ac_env_${ac_var}_set
1810 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1811 eval ac_new_val=\$ac_env_${ac_var}_value
1812 case $ac_old_set,$ac_new_set in
1813 set,)
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1815 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1817 ,set)
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1819 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1820 ac_cache_corrupted=: ;;
1821 ,);;
1822 *)
1823 if test "x$ac_old_val" != "x$ac_new_val"; then
1824 # differences in whitespace do not lead to failure.
1825 ac_old_val_w=`echo x $ac_old_val`
1826 ac_new_val_w=`echo x $ac_new_val`
1827 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1829 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1830 ac_cache_corrupted=:
1831 else
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1833 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1834 eval $ac_var=\$ac_old_val
1835 fi
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1837 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1839 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1840 fi;;
1841 esac
1842 # Pass precious variables to config.status.
1843 if test "$ac_new_set" = set; then
1844 case $ac_new_val in
1845 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 *) ac_arg=$ac_var=$ac_new_val ;;
1847 esac
1848 case " $ac_configure_args " in
1849 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1850 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1851 esac
1852 fi
1853 done
1854 if $ac_cache_corrupted; then
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1858 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1859 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1860 fi
1861 ## -------------------- ##
1862 ## Main body of script. ##
1863 ## -------------------- ##
1864
1865 ac_ext=c
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879 # Check whether --with-rlm_ldap was given.
1880 if test "${with_rlm_ldap+set}" = set; then :
1881 withval=$with_rlm_ldap;
1882 fi
1883
1884
1885
1886 SMART_LIBS=
1887 SMART_CLFAGS=
1888 SASL=
1889
1890
1891 fail=
1892 fr_status=
1893 fr_features=
1894 : > "config.report"
1895 : > "config.report.tmp"
1896
1897
1898
1899 if test x"$with_rlm_ldap" != xno; then
1900
1901
1902
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1912 $as_echo_n "checking for $ac_word... " >&6; }
1913 if ${ac_cv_prog_CC+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1929 fi
1930 done
1931 done
1932 IFS=$as_save_IFS
1933
1934 fi
1935 fi
1936 CC=$ac_cv_prog_CC
1937 if test -n "$CC"; then
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1939 $as_echo "$CC" >&6; }
1940 else
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1942 $as_echo "no" >&6; }
1943 fi
1944
1945
1946 fi
1947 if test -z "$ac_cv_prog_CC"; then
1948 ac_ct_CC=$CC
1949 # Extract the first word of "gcc", so it can be a program name with args.
1950 set dummy gcc; ac_word=$2
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952 $as_echo_n "checking for $ac_word... " >&6; }
1953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 if test -n "$ac_ct_CC"; then
1957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 ac_cv_prog_ac_ct_CC="gcc"
1967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2
1969 fi
1970 done
1971 done
1972 IFS=$as_save_IFS
1973
1974 fi
1975 fi
1976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977 if test -n "$ac_ct_CC"; then
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1979 $as_echo "$ac_ct_CC" >&6; }
1980 else
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982 $as_echo "no" >&6; }
1983 fi
1984
1985 if test "x$ac_ct_CC" = x; then
1986 CC=""
1987 else
1988 case $cross_compiling:$ac_tool_warned in
1989 yes:)
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1992 ac_tool_warned=yes ;;
1993 esac
1994 CC=$ac_ct_CC
1995 fi
1996 else
1997 CC="$ac_cv_prog_CC"
1998 fi
1999
2000 if test -z "$CC"; then
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}cc; ac_word=$2
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2005 $as_echo_n "checking for $ac_word... " >&6; }
2006 if ${ac_cv_prog_CC+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CC="${ac_tool_prefix}cc"
2020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2022 fi
2023 done
2024 done
2025 IFS=$as_save_IFS
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2032 $as_echo "$CC" >&6; }
2033 else
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2035 $as_echo "no" >&6; }
2036 fi
2037
2038
2039 fi
2040 fi
2041 if test -z "$CC"; then
2042 # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc; ac_word=$2
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2045 $as_echo_n "checking for $ac_word... " >&6; }
2046 if ${ac_cv_prog_CC+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 ac_prog_rejected=no
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2061 ac_prog_rejected=yes
2062 continue
2063 fi
2064 ac_cv_prog_CC="cc"
2065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072 if test $ac_prog_rejected = yes; then
2073 # We found a bogon in the path, so make sure we never use it.
2074 set dummy $ac_cv_prog_CC
2075 shift
2076 if test $# != 0; then
2077 # We chose a different compiler from the bogus one.
2078 # However, it has the same basename, so the bogon will be chosen
2079 # first if we set CC to just the basename; use the full file name.
2080 shift
2081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2082 fi
2083 fi
2084 fi
2085 fi
2086 CC=$ac_cv_prog_CC
2087 if test -n "$CC"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2089 $as_echo "$CC" >&6; }
2090 else
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2092 $as_echo "no" >&6; }
2093 fi
2094
2095
2096 fi
2097 if test -z "$CC"; then
2098 if test -n "$ac_tool_prefix"; then
2099 for ac_prog in cl.exe
2100 do
2101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2104 $as_echo_n "checking for $ac_word... " >&6; }
2105 if ${ac_cv_prog_CC+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2121 fi
2122 done
2123 done
2124 IFS=$as_save_IFS
2125
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2131 $as_echo "$CC" >&6; }
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2134 $as_echo "no" >&6; }
2135 fi
2136
2137
2138 test -n "$CC" && break
2139 done
2140 fi
2141 if test -z "$CC"; then
2142 ac_ct_CC=$CC
2143 for ac_prog in cl.exe
2144 do
2145 # Extract the first word of "$ac_prog", so it can be a program name with args.
2146 set dummy $ac_prog; ac_word=$2
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148 $as_echo_n "checking for $ac_word... " >&6; }
2149 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 if test -n "$ac_ct_CC"; then
2153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162 ac_cv_prog_ac_ct_CC="$ac_prog"
2163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2
2165 fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2175 $as_echo "$ac_ct_CC" >&6; }
2176 else
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178 $as_echo "no" >&6; }
2179 fi
2180
2181
2182 test -n "$ac_ct_CC" && break
2183 done
2184
2185 if test "x$ac_ct_CC" = x; then
2186 CC=""
2187 else
2188 case $cross_compiling:$ac_tool_warned in
2189 yes:)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2192 ac_tool_warned=yes ;;
2193 esac
2194 CC=$ac_ct_CC
2195 fi
2196 fi
2197
2198 fi
2199
2200
2201 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "no acceptable C compiler found in \$PATH
2204 See \`config.log' for more details" "$LINENO" 5; }
2205
2206 # Provide some information about the compiler.
2207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2208 set X $ac_compile
2209 ac_compiler=$2
2210 for ac_option in --version -v -V -qversion; do
2211 { { ac_try="$ac_compiler $ac_option >&5"
2212 case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2219 ac_status=$?
2220 if test -s conftest.err; then
2221 sed '10a\
2222 ... rest of stderr output deleted ...
2223 10q' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 fi
2226 rm -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }
2229 done
2230
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2233
2234 int
2235 main ()
2236 {
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 ac_clean_files_save=$ac_clean_files
2243 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2244 # Try to create an executable without -o first, disregard a.out.
2245 # It will help us diagnose broken compilers, and finding out an intuition
2246 # of exeext.
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2248 $as_echo_n "checking whether the C compiler works... " >&6; }
2249 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2250
2251 # The possible output files:
2252 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2253
2254 ac_rmfiles=
2255 for ac_file in $ac_files
2256 do
2257 case $ac_file in
2258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2260 esac
2261 done
2262 rm -f $ac_rmfiles
2263
2264 if { { ac_try="$ac_link_default"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link_default") 2>&5
2272 ac_status=$?
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; }; then :
2275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2278 # so that the user can short-circuit this test for compilers unknown to
2279 # Autoconf.
2280 for ac_file in $ac_files ''
2281 do
2282 test -f "$ac_file" || continue
2283 case $ac_file in
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2285 ;;
2286 [ab].out )
2287 # We found the default executable, but exeext='' is most
2288 # certainly right.
2289 break;;
2290 *.* )
2291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2292 then :; else
2293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 fi
2295 # We set ac_cv_exeext here because the later test for it is not
2296 # safe: cross compilers may not add the suffix if given an `-o'
2297 # argument, so we may need to know it at that point already.
2298 # Even if this section looks crufty: it has the advantage of
2299 # actually working.
2300 break;;
2301 * )
2302 break;;
2303 esac
2304 done
2305 test "$ac_cv_exeext" = no && ac_cv_exeext=
2306
2307 else
2308 ac_file=''
2309 fi
2310 if test -z "$ac_file"; then :
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312 $as_echo "no" >&6; }
2313 $as_echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 as_fn_error 77 "C compiler cannot create executables
2319 See \`config.log' for more details" "$LINENO" 5; }
2320 else
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2322 $as_echo "yes" >&6; }
2323 fi
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2325 $as_echo_n "checking for C compiler default output file name... " >&6; }
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2327 $as_echo "$ac_file" >&6; }
2328 ac_exeext=$ac_cv_exeext
2329
2330 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2331 ac_clean_files=$ac_clean_files_save
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2333 $as_echo_n "checking for suffix of executables... " >&6; }
2334 if { { ac_try="$ac_link"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2342 ac_status=$?
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; }; then :
2345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2347 # work properly (i.e., refer to `conftest.exe'), while it won't with
2348 # `rm'.
2349 for ac_file in conftest.exe conftest conftest.*; do
2350 test -f "$ac_file" || continue
2351 case $ac_file in
2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2354 break;;
2355 * ) break;;
2356 esac
2357 done
2358 else
2359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2362 See \`config.log' for more details" "$LINENO" 5; }
2363 fi
2364 rm -f conftest conftest$ac_cv_exeext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2366 $as_echo "$ac_cv_exeext" >&6; }
2367
2368 rm -f conftest.$ac_ext
2369 EXEEXT=$ac_cv_exeext
2370 ac_exeext=$EXEEXT
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2373 #include <stdio.h>
2374 int
2375 main ()
2376 {
2377 FILE *f = fopen ("conftest.out", "w");
2378 return ferror (f) || fclose (f) != 0;
2379
2380 ;
2381 return 0;
2382 }
2383 _ACEOF
2384 ac_clean_files="$ac_clean_files conftest.out"
2385 # Check that the compiler produces executables we can run. If not, either
2386 # the compiler is broken, or we cross compile.
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2388 $as_echo_n "checking whether we are cross compiling... " >&6; }
2389 if test "$cross_compiling" != yes; then
2390 { { ac_try="$ac_link"
2391 case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_link") 2>&5
2398 ac_status=$?
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; }
2401 if { ac_try='./conftest$ac_cv_exeext'
2402 { { case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411 test $ac_status = 0; }; }; then
2412 cross_compiling=no
2413 else
2414 if test "$cross_compiling" = maybe; then
2415 cross_compiling=yes
2416 else
2417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details" "$LINENO" 5; }
2422 fi
2423 fi
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2426 $as_echo "$cross_compiling" >&6; }
2427
2428 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2429 ac_clean_files=$ac_clean_files_save
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2431 $as_echo_n "checking for suffix of object files... " >&6; }
2432 if ${ac_cv_objext+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2437
2438 int
2439 main ()
2440 {
2441
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.o conftest.obj
2447 if { { ac_try="$ac_compile"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_compile") 2>&5
2455 ac_status=$?
2456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457 test $ac_status = 0; }; then :
2458 for ac_file in conftest.o conftest.obj conftest.*; do
2459 test -f "$ac_file" || continue;
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463 break;;
2464 esac
2465 done
2466 else
2467 $as_echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 as_fn_error $? "cannot compute suffix of object files: cannot compile
2473 See \`config.log' for more details" "$LINENO" 5; }
2474 fi
2475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2478 $as_echo "$ac_cv_objext" >&6; }
2479 OBJEXT=$ac_cv_objext
2480 ac_objext=$OBJEXT
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2483 if ${ac_cv_c_compiler_gnu+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2488
2489 int
2490 main ()
2491 {
2492 #ifndef __GNUC__
2493 choke me
2494 #endif
2495
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 ac_compiler_gnu=yes
2502 else
2503 ac_compiler_gnu=no
2504 fi
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2507
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2511 if test $ac_compiler_gnu = yes; then
2512 GCC=yes
2513 else
2514 GCC=
2515 fi
2516 ac_test_CFLAGS=${CFLAGS+set}
2517 ac_save_CFLAGS=$CFLAGS
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2520 if ${ac_cv_prog_cc_g+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 ac_save_c_werror_flag=$ac_c_werror_flag
2524 ac_c_werror_flag=yes
2525 ac_cv_prog_cc_g=no
2526 CFLAGS="-g"
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529
2530 int
2531 main ()
2532 {
2533
2534 ;
2535 return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_c_try_compile "$LINENO"; then :
2539 ac_cv_prog_cc_g=yes
2540 else
2541 CFLAGS=""
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544
2545 int
2546 main ()
2547 {
2548
2549 ;
2550 return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554
2555 else
2556 ac_c_werror_flag=$ac_save_c_werror_flag
2557 CFLAGS="-g"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560
2561 int
2562 main ()
2563 {
2564
2565 ;
2566 return 0;
2567 }
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 ac_cv_prog_cc_g=yes
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 fi
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 ac_c_werror_flag=$ac_save_c_werror_flag
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2580 $as_echo "$ac_cv_prog_cc_g" >&6; }
2581 if test "$ac_test_CFLAGS" = set; then
2582 CFLAGS=$ac_save_CFLAGS
2583 elif test $ac_cv_prog_cc_g = yes; then
2584 if test "$GCC" = yes; then
2585 CFLAGS="-g -O2"
2586 else
2587 CFLAGS="-g"
2588 fi
2589 else
2590 if test "$GCC" = yes; then
2591 CFLAGS="-O2"
2592 else
2593 CFLAGS=
2594 fi
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2597 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2598 if ${ac_cv_prog_cc_c89+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 ac_cv_prog_cc_c89=no
2602 ac_save_CC=$CC
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2605 #include <stdarg.h>
2606 #include <stdio.h>
2607 struct stat;
2608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2609 struct buf { int x; };
2610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2611 static char *e (p, i)
2612 char **p;
2613 int i;
2614 {
2615 return p[i];
2616 }
2617 static char *f (char * (*g) (char **, int), char **p, ...)
2618 {
2619 char *s;
2620 va_list v;
2621 va_start (v,p);
2622 s = g (p, va_arg (v,int));
2623 va_end (v);
2624 return s;
2625 }
2626
2627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2628 function prototypes and stuff, but not '\xHH' hex character constants.
2629 These don't provoke an error unfortunately, instead are silently treated
2630 as 'x'. The following induces an error, until -std is added to get
2631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2632 array size at least. It's necessary to write '\x00'==0 to get something
2633 that's true only with -std. */
2634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2635
2636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2637 inside strings and character constants. */
2638 #define FOO(x) 'x'
2639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2640
2641 int test (int i, double x);
2642 struct s1 {int (*f) (int a);};
2643 struct s2 {int (*f) (double a);};
2644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2645 int argc;
2646 char **argv;
2647 int
2648 main ()
2649 {
2650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2657 do
2658 CC="$ac_save_CC $ac_arg"
2659 if ac_fn_c_try_compile "$LINENO"; then :
2660 ac_cv_prog_cc_c89=$ac_arg
2661 fi
2662 rm -f core conftest.err conftest.$ac_objext
2663 test "x$ac_cv_prog_cc_c89" != "xno" && break
2664 done
2665 rm -f conftest.$ac_ext
2666 CC=$ac_save_CC
2667
2668 fi
2669 # AC_CACHE_VAL
2670 case "x$ac_cv_prog_cc_c89" in
2671 x)
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2673 $as_echo "none needed" >&6; } ;;
2674 xno)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2676 $as_echo "unsupported" >&6; } ;;
2677 *)
2678 CC="$CC $ac_cv_prog_cc_c89"
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2680 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2681 esac
2682 if test "x$ac_cv_prog_cc_c89" != xno; then :
2683
2684 fi
2685
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692
2693
2694 rlm_ldap_lib_dir=
2695
2696 # Check whether --with-rlm-ldap-lib-dir was given.
2697 if test "${with_rlm_ldap_lib_dir+set}" = set; then :
2698 withval=$with_rlm_ldap_lib_dir; case "$withval" in
2699 no)
2700 as_fn_error $? "Need rlm-ldap-lib-dir" "$LINENO" 5
2701 ;;
2702 yes)
2703 ;;
2704 *)
2705 rlm_ldap_lib_dir="$withval"
2706 ;;
2707 esac
2708 fi
2709
2710
2711 rlm_ldap_include_dir=
2712
2713 # Check whether --with-rlm-ldap-include-dir was given.
2714 if test "${with_rlm_ldap_include_dir+set}" = set; then :
2715 withval=$with_rlm_ldap_include_dir; case "$withval" in
2716 no)
2717 as_fn_error $? "Need rlm-ldap-include-dir" "$LINENO" 5
2718 ;;
2719 yes)
2720 ;;
2721 *)
2722 rlm_ldap_include_dir="$withval"
2723 ;;
2724 esac
2725 fi
2726
2727
2728
2729 smart_try_dir=$rlm_ldap_lib_dir
2730
2731
2732
2733 sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
2734 sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
2735
2736 old_LIBS="$LIBS"
2737 old_CPPFLAGS="$CPPFLAGS"
2738 smart_lib=
2739 smart_ldflags=
2740 smart_lib_dir=
2741
2742 if test "x$smart_try_dir" != "x"; then
2743 for try in $smart_try_dir; do
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap in $try" >&5
2745 $as_echo_n "checking for ldap_init in -lldap in $try... " >&6; }
2746 LIBS="-lldap $old_LIBS"
2747 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 extern char ldap_init();
2751 int
2752 main ()
2753 {
2754 ldap_init()
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 if ac_fn_c_try_link "$LINENO"; then :
2760
2761 smart_lib="-lldap"
2762 smart_ldflags="-L$try -Wl,-rpath,$try"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2765 break
2766
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771 rm -f core conftest.err conftest.$ac_objext \
2772 conftest$ac_exeext conftest.$ac_ext
2773 done
2774 LIBS="$old_LIBS"
2775 CPPFLAGS="$old_CPPFLAGS"
2776 fi
2777
2778 if test "x$smart_lib" = "x"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
2780 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
2781 LIBS="-lldap $old_LIBS"
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784 extern char ldap_init();
2785 int
2786 main ()
2787 {
2788 ldap_init()
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 if ac_fn_c_try_link "$LINENO"; then :
2794
2795 smart_lib="-lldap"
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797 $as_echo "yes" >&6; }
2798
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803 rm -f core conftest.err conftest.$ac_objext \
2804 conftest$ac_exeext conftest.$ac_ext
2805 LIBS="$old_LIBS"
2806 fi
2807
2808 if test "x$smart_lib" = "x"; then
2809 for try in /usr/local/lib /opt/lib; do
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap in $try" >&5
2811 $as_echo_n "checking for ldap_init in -lldap in $try... " >&6; }
2812 LIBS="-lldap $old_LIBS"
2813 CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2816 extern char ldap_init();
2817 int
2818 main ()
2819 {
2820 ldap_init()
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 if ac_fn_c_try_link "$LINENO"; then :
2826
2827 smart_lib="-lldap"
2828 smart_ldflags="-L$try -Wl,-rpath,$try"
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830 $as_echo "yes" >&6; }
2831 break
2832
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837 rm -f core conftest.err conftest.$ac_objext \
2838 conftest$ac_exeext conftest.$ac_ext
2839 done
2840 LIBS="$old_LIBS"
2841 CPPFLAGS="$old_CPPFLAGS"
2842 fi
2843
2844 if test "x$smart_lib" != "x"; then
2845 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2846 LIBS="$smart_ldflags $smart_lib $old_LIBS"
2847 SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
2848 fi
2849
2850 if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
2851
2852 fail="$fail libldap"
2853
2854 fi
2855
2856
2857 smart_try_dir=$rlm_ldap_include_dir
2858
2859
2860 ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
2861 old_CPPFLAGS="$CPPFLAGS"
2862 smart_include=
2863 smart_include_dir="/usr/local/include /opt/include"
2864
2865 _smart_try_dir=
2866 _smart_include_dir=
2867
2868 for _prefix in $smart_prefix ""; do
2869 for _dir in $smart_try_dir; do
2870 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
2871 done
2872
2873 for _dir in $smart_include_dir; do
2874 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
2875 done
2876 done
2877
2878 if test "x$_smart_try_dir" != "x"; then
2879 for try in $_smart_try_dir; do
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h in $try" >&5
2881 $as_echo_n "checking for ldap.h in $try... " >&6; }
2882 CPPFLAGS="-isystem $try $old_CPPFLAGS"
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885
2886 #include <ldap.h>
2887 int
2888 main ()
2889 {
2890 int a = 1;
2891 ;
2892 return 0;
2893 }
2894 _ACEOF
2895 if ac_fn_c_try_compile "$LINENO"; then :
2896
2897 smart_include="-isystem $try"
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900 break
2901
2902 else
2903
2904 smart_include=
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907
2908 fi
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 done
2911 CPPFLAGS="$old_CPPFLAGS"
2912 fi
2913
2914 if test "x$smart_include" = "x"; then
2915 for _prefix in $smart_prefix; do
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/ldap.h" >&5
2917 $as_echo_n "checking for ${_prefix}/ldap.h... " >&6; }
2918
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2921
2922 #include <ldap.h>
2923 int
2924 main ()
2925 {
2926 int a = 1;
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 if ac_fn_c_try_compile "$LINENO"; then :
2932
2933 smart_include="-isystem ${_prefix}/"
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2936 break
2937
2938 else
2939
2940 smart_include=
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943
2944 fi
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 done
2947 fi
2948
2949 if test "x$smart_include" = "x"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
2951 $as_echo_n "checking for ldap.h... " >&6; }
2952
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2955
2956 #include <ldap.h>
2957 int
2958 main ()
2959 {
2960 int a = 1;
2961 ;
2962 return 0;
2963 }
2964 _ACEOF
2965 if ac_fn_c_try_compile "$LINENO"; then :
2966
2967 smart_include=" "
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969 $as_echo "yes" >&6; }
2970 break
2971
2972 else
2973
2974 smart_include=
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977
2978 fi
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 fi
2981
2982 if test "x$smart_include" = "x"; then
2983
2984 for try in $_smart_include_dir; do
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h in $try" >&5
2986 $as_echo_n "checking for ldap.h in $try... " >&6; }
2987 CPPFLAGS="-isystem $try $old_CPPFLAGS"
2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989 /* end confdefs.h. */
2990
2991 #include <ldap.h>
2992 int
2993 main ()
2994 {
2995 int a = 1;
2996 ;
2997 return 0;
2998 }
2999 _ACEOF
3000 if ac_fn_c_try_compile "$LINENO"; then :
3001
3002 smart_include="-isystem $try"
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005 break
3006
3007 else
3008
3009 smart_include=
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012
3013 fi
3014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3015 done
3016 CPPFLAGS="$old_CPPFLAGS"
3017 fi
3018
3019 if test "x$smart_include" != "x"; then
3020 eval "ac_cv_header_$ac_safe=yes"
3021 CPPFLAGS="$smart_include $old_CPPFLAGS"
3022 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3023 fi
3024
3025 smart_prefix=
3026
3027 if test "$ac_cv_header_ldap_h" != "yes"; then
3028
3029 fail="$fail ldap.h"
3030
3031 fi
3032
3033
3034
3035 if test x"$fail" = x""; then :
3036
3037 for ac_func in ldap_sasl_interactive_bind \
3038 ldap_unbind_ext_s \
3039 ldap_start_tls_s \
3040 ldap_initialize \
3041 ldap_set_rebind_proc \
3042 ldap_create_sort_control \
3043 ldap_create_sort_keylist \
3044 ldap_free_sort_keylist \
3045 ldap_url_parse \
3046 ldap_is_ldap_url \
3047 ldap_url_desc2str
3048
3049 do :
3050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3052 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3053 cat >>confdefs.h <<_ACEOF
3054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3055 _ACEOF
3056
3057 fi
3058 done
3059
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
3061 $as_echo_n "checking whether ldap_set_rebind_proc takes 3 arguments... " >&6; }
3062 if ${ac_cv_ldap_set_rebind_proc+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068
3069 #include <lber.h>
3070 #include <ldap.h>
3071 int
3072 main ()
3073 {
3074 ldap_set_rebind_proc(0, 0, 0);
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 if ac_fn_c_try_compile "$LINENO"; then :
3080 ac_cv_ldap_set_rebind_proc=3
3081 else
3082 ac_cv_ldap_set_rebind_proc=2
3083 fi
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ldap_set_rebind_proc" >&5
3088 $as_echo "$ac_cv_ldap_set_rebind_proc" >&6; }
3089
3090 fi
3091
3092
3093
3094
3095 ac_safe=`echo "sasl/sasl.h" | sed 'y%./+-%__pm%'`
3096 old_CPPFLAGS="$CPPFLAGS"
3097 smart_include=
3098 smart_include_dir="/usr/local/include /opt/include"
3099
3100 _smart_try_dir=
3101 _smart_include_dir=
3102
3103 for _prefix in $smart_prefix ""; do
3104 for _dir in $smart_try_dir; do
3105 _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
3106 done
3107
3108 for _dir in $smart_include_dir; do
3109 _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
3110 done
3111 done
3112
3113 if test "x$_smart_try_dir" != "x"; then
3114 for try in $_smart_try_dir; do
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl/sasl.h in $try" >&5
3116 $as_echo_n "checking for sasl/sasl.h in $try... " >&6; }
3117 CPPFLAGS="-isystem $try $old_CPPFLAGS"
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120
3121 #include <sasl/sasl.h>
3122 int
3123 main ()
3124 {
3125 int a = 1;
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131
3132 smart_include="-isystem $try"
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135 break
3136
3137 else
3138
3139 smart_include=
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 done
3146 CPPFLAGS="$old_CPPFLAGS"
3147 fi
3148
3149 if test "x$smart_include" = "x"; then
3150 for _prefix in $smart_prefix; do
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/sasl/sasl.h" >&5
3152 $as_echo_n "checking for ${_prefix}/sasl/sasl.h... " >&6; }
3153
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3156
3157 #include <sasl/sasl.h>
3158 int
3159 main ()
3160 {
3161 int a = 1;
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 if ac_fn_c_try_compile "$LINENO"; then :
3167
3168 smart_include="-isystem ${_prefix}/"
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171 break
3172
3173 else
3174
3175 smart_include=
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178
3179 fi
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 done
3182 fi
3183
3184 if test "x$smart_include" = "x"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl/sasl.h" >&5
3186 $as_echo_n "checking for sasl/sasl.h... " >&6; }
3187
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190
3191 #include <sasl/sasl.h>
3192 int
3193 main ()
3194 {
3195 int a = 1;
3196 ;
3197 return 0;
3198 }
3199 _ACEOF
3200 if ac_fn_c_try_compile "$LINENO"; then :
3201
3202 smart_include=" "
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3205 break
3206
3207 else
3208
3209 smart_include=
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212
3213 fi
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3216
3217 if test "x$smart_include" = "x"; then
3218
3219 for try in $_smart_include_dir; do
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl/sasl.h in $try" >&5
3221 $as_echo_n "checking for sasl/sasl.h in $try... " >&6; }
3222 CPPFLAGS="-isystem $try $old_CPPFLAGS"
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225
3226 #include <sasl/sasl.h>
3227 int
3228 main ()
3229 {
3230 int a = 1;
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236
3237 smart_include="-isystem $try"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3240 break
3241
3242 else
3243
3244 smart_include=
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 done
3251 CPPFLAGS="$old_CPPFLAGS"
3252 fi
3253
3254 if test "x$smart_include" != "x"; then
3255 eval "ac_cv_header_$ac_safe=yes"
3256 CPPFLAGS="$smart_include $old_CPPFLAGS"
3257 SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3258 fi
3259
3260 smart_prefix=
3261
3262 if test "x$ac_cv_header_sasl_sasl_h" = "xyes"; then
3263 if test x"$ac_cv_func_ldap_sasl_interactive_bind" = "xyes"; then
3264
3265 $as_echo "#define WITH_SASL 1" >>confdefs.h
3266
3267 SASL=sasl.c
3268
3269 if echo "$fr_features" | grep -q "+sasl+"; then :
3270 else :
3271 fr_report_prefix=""
3272 if test x"$fr_features" != x""; then
3273 fr_report_prefix=" "
3274 fi
3275 $as_echo "$fr_report_prefix""with SASL support" >> config.report.tmp
3276 fr_features="$fr_features +sasl+"
3277 fi
3278
3279 fi
3280 else
3281
3282 if echo "$fr_features" | grep -q "+sasl+"; then :
3283 else :
3284 fr_report_prefix=""
3285 if test x"$fr_features" != x""; then
3286 fr_report_prefix=" "
3287 fi
3288 $as_echo "$fr_report_prefix""without SASL support" >> config.report.tmp
3289 fr_features="$fr_features +sasl+"
3290 fi
3291
3292 fi
3293
3294
3295 targetname=rlm_ldap
3296 else
3297 targetname=
3298 echo \*\*\* module rlm_ldap is disabled.
3299
3300
3301 fr_status="disabled"
3302
3303 fi
3304
3305 if test x"$fail" != x""; then
3306 targetname=""
3307
3308
3309 if test x"${enable_strict_dependencies}" = x"yes"; then
3310 as_fn_error $? "set --without-rlm_ldap to disable it explicitly." "$LINENO" 5
3311 else
3312
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_ldap." >&5
3314 $as_echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
3316 $as_echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;};
3317 fail="$(echo $fail)"
3318
3319
3320 fr_status="skipping (requires $fail)"
3321
3322 fr_features=
3323
3324 fi
3325
3326 else
3327
3328
3329 fr_status="OK"
3330
3331 fi
3332
3333 if test x"$fr_features" = x""; then
3334 $as_echo "$fr_status" > "config.report"
3335 else
3336 $as_echo_n "$fr_status ... " > "config.report"
3337 cat "config.report.tmp" >> "config.report"
3338 fi
3339
3340 rm "config.report.tmp"
3341
3342
3343
3344
3345
3346 $as_echo "#define WITH_EDIR 1" >>confdefs.h
3347
3348
3349 cat >>confdefs.h <<_ACEOF
3350 #define LDAP_SET_REBIND_PROC_ARGS ${ac_cv_ldap_set_rebind_proc}
3351 _ACEOF
3352
3353
3354 mod_ldflags=$SMART_LIBS
3355 mod_cflags="$SMART_CPPFLAGS"
3356
3357
3358
3359
3360
3361 ac_config_headers="$ac_config_headers config.h"
3362
3363 ac_config_files="$ac_config_files all.mk"
3364
3365 cat >confcache <<\_ACEOF
3366 # This file is a shell script that caches the results of configure
3367 # tests run on this system so they can be shared between configure
3368 # scripts and configure runs, see configure's option --config-cache.
3369 # It is not useful on other systems. If it contains results you don't
3370 # want to keep, you may remove or edit it.
3371 #
3372 # config.status only pays attention to the cache file if you give it
3373 # the --recheck option to rerun configure.
3374 #
3375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3377 # following values.
3378
3379 _ACEOF
3380
3381 # The following way of writing the cache mishandles newlines in values,
3382 # but we know of no workaround that is simple, portable, and efficient.
3383 # So, we kill variables containing newlines.
3384 # Ultrix sh set writes to stderr and can't be redirected directly,
3385 # and sets the high bit in the cache file unless we assign to the vars.
3386 (
3387 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3388 eval ac_val=\$$ac_var
3389 case $ac_val in #(
3390 *${as_nl}*)
3391 case $ac_var in #(
3392 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3393 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3394 esac
3395 case $ac_var in #(
3396 _ | IFS | as_nl) ;; #(
3397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3398 *) { eval $ac_var=; unset $ac_var;} ;;
3399 esac ;;
3400 esac
3401 done
3402
3403 (set) 2>&1 |
3404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3405 *${as_nl}ac_space=\ *)
3406 # `set' does not quote correctly, so add quotes: double-quote
3407 # substitution turns \\\\ into \\, and sed turns \\ into \.
3408 sed -n \
3409 "s/'/'\\\\''/g;
3410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3411 ;; #(
3412 *)
3413 # `set' quotes correctly as required by POSIX, so do not add quotes.
3414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3415 ;;
3416 esac |
3417 sort
3418 ) |
3419 sed '
3420 /^ac_cv_env_/b end
3421 t clear
3422 :clear
3423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3424 t end
3425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3426 :end' >>confcache
3427 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3428 if test -w "$cache_file"; then
3429 if test "x$cache_file" != "x/dev/null"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3431 $as_echo "$as_me: updating cache $cache_file" >&6;}
3432 if test ! -f "$cache_file" || test -h "$cache_file"; then
3433 cat confcache >"$cache_file"
3434 else
3435 case $cache_file in #(
3436 */* | ?:*)
3437 mv -f confcache "$cache_file"$$ &&
3438 mv -f "$cache_file"$$ "$cache_file" ;; #(
3439 *)
3440 mv -f confcache "$cache_file" ;;
3441 esac
3442 fi
3443 fi
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3446 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3447 fi
3448 fi
3449 rm -f confcache
3450
3451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3452 # Let make expand exec_prefix.
3453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3454
3455 DEFS=-DHAVE_CONFIG_H
3456
3457 ac_libobjs=
3458 ac_ltlibobjs=
3459 U=
3460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3461 # 1. Remove the extension, and $U if already installed.
3462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3463 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3465 # will be set to the directory where LIBOBJS objects are built.
3466 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3467 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3468 done
3469 LIBOBJS=$ac_libobjs
3470
3471 LTLIBOBJS=$ac_ltlibobjs
3472
3473
3474
3475 : "${CONFIG_STATUS=./config.status}"
3476 ac_write_fail=0
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3480 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3481 as_write_fail=0
3482 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3483 #! $SHELL
3484 # Generated by $as_me.
3485 # Run this file to recreate the current configuration.
3486 # Compiler output produced by configure, useful for debugging
3487 # configure, is in config.log if it exists.
3488
3489 debug=false
3490 ac_cs_recheck=false
3491 ac_cs_silent=false
3492
3493 SHELL=\${CONFIG_SHELL-$SHELL}
3494 export SHELL
3495 _ASEOF
3496 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3497 ## -------------------- ##
3498 ## M4sh Initialization. ##
3499 ## -------------------- ##
3500
3501 # Be more Bourne compatible
3502 DUALCASE=1; export DUALCASE # for MKS sh
3503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3504 emulate sh
3505 NULLCMD=:
3506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3507 # is contrary to our usage. Disable this feature.
3508 alias -g '${1+"$@"}'='"$@"'
3509 setopt NO_GLOB_SUBST
3510 else
3511 case `(set -o) 2>/dev/null` in #(
3512 *posix*) :
3513 set -o posix ;; #(
3514 *) :
3515 ;;
3516 esac
3517 fi
3518
3519
3520 as_nl='
3521 '
3522 export as_nl
3523 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3524 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3527 # Prefer a ksh shell builtin over an external printf program on Solaris,
3528 # but without wasting forks for bash or zsh.
3529 if test -z "$BASH_VERSION$ZSH_VERSION" \
3530 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3531 as_echo='print -r --'
3532 as_echo_n='print -rn --'
3533 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3534 as_echo='printf %s\n'
3535 as_echo_n='printf %s'
3536 else
3537 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3538 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3539 as_echo_n='/usr/ucb/echo -n'
3540 else
3541 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3542 as_echo_n_body='eval
3543 arg=$1;
3544 case $arg in #(
3545 *"$as_nl"*)
3546 expr "X$arg" : "X\\(.*\\)$as_nl";
3547 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3548 esac;
3549 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3550 '
3551 export as_echo_n_body
3552 as_echo_n='sh -c $as_echo_n_body as_echo'
3553 fi
3554 export as_echo_body
3555 as_echo='sh -c $as_echo_body as_echo'
3556 fi
3557
3558 # The user is always right.
3559 if test "${PATH_SEPARATOR+set}" != set; then
3560 PATH_SEPARATOR=:
3561 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3562 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3563 PATH_SEPARATOR=';'
3564 }
3565 fi
3566
3567
3568 # IFS
3569 # We need space, tab and new line, in precisely that order. Quoting is
3570 # there to prevent editors from complaining about space-tab.
3571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3572 # splitting by setting IFS to empty value.)
3573 IFS=" "" $as_nl"
3574
3575 # Find who we are. Look in the path if we contain no directory separator.
3576 as_myself=
3577 case $0 in #((
3578 *[\\/]* ) as_myself=$0 ;;
3579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3585 done
3586 IFS=$as_save_IFS
3587
3588 ;;
3589 esac
3590 # We did not find ourselves, most probably we were run as `sh COMMAND'
3591 # in which case we are not to be found in the path.
3592 if test "x$as_myself" = x; then
3593 as_myself=$0
3594 fi
3595 if test ! -f "$as_myself"; then
3596 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3597 exit 1
3598 fi
3599
3600 # Unset variables that we do not need and which cause bugs (e.g. in
3601 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3602 # suppresses any "Segmentation fault" message there. '((' could
3603 # trigger a bug in pdksh 5.2.14.
3604 for as_var in BASH_ENV ENV MAIL MAILPATH
3605 do eval test x\${$as_var+set} = xset \
3606 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3607 done
3608 PS1='$ '
3609 PS2='> '
3610 PS4='+ '
3611
3612 # NLS nuisances.
3613 LC_ALL=C
3614 export LC_ALL
3615 LANGUAGE=C
3616 export LANGUAGE
3617
3618 # CDPATH.
3619 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3620
3621
3622 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3623 # ----------------------------------------
3624 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3625 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3626 # script with STATUS, using 1 if that was 0.
3627 as_fn_error ()
3628 {
3629 as_status=$1; test $as_status -eq 0 && as_status=1
3630 if test "$4"; then
3631 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3632 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3633 fi
3634 $as_echo "$as_me: error: $2" >&2
3635 as_fn_exit $as_status
3636 } # as_fn_error
3637
3638
3639 # as_fn_set_status STATUS
3640 # -----------------------
3641 # Set $? to STATUS, without forking.
3642 as_fn_set_status ()
3643 {
3644 return $1
3645 } # as_fn_set_status
3646
3647 # as_fn_exit STATUS
3648 # -----------------
3649 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3650 as_fn_exit ()
3651 {
3652 set +e
3653 as_fn_set_status $1
3654 exit $1
3655 } # as_fn_exit
3656
3657 # as_fn_unset VAR
3658 # ---------------
3659 # Portably unset VAR.
3660 as_fn_unset ()
3661 {
3662 { eval $1=; unset $1;}
3663 }
3664 as_unset=as_fn_unset
3665 # as_fn_append VAR VALUE
3666 # ----------------------
3667 # Append the text in VALUE to the end of the definition contained in VAR. Take
3668 # advantage of any shell optimizations that allow amortized linear growth over
3669 # repeated appends, instead of the typical quadratic growth present in naive
3670 # implementations.
3671 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3672 eval 'as_fn_append ()
3673 {
3674 eval $1+=\$2
3675 }'
3676 else
3677 as_fn_append ()
3678 {
3679 eval $1=\$$1\$2
3680 }
3681 fi # as_fn_append
3682
3683 # as_fn_arith ARG...
3684 # ------------------
3685 # Perform arithmetic evaluation on the ARGs, and store the result in the
3686 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3687 # must be portable across $(()) and expr.
3688 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3689 eval 'as_fn_arith ()
3690 {
3691 as_val=$(( $* ))
3692 }'
3693 else
3694 as_fn_arith ()
3695 {
3696 as_val=`expr "$@" || test $? -eq 1`
3697 }
3698 fi # as_fn_arith
3699
3700
3701 if expr a : '\(a\)' >/dev/null 2>&1 &&
3702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3703 as_expr=expr
3704 else
3705 as_expr=false
3706 fi
3707
3708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3709 as_basename=basename
3710 else
3711 as_basename=false
3712 fi
3713
3714 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3715 as_dirname=dirname
3716 else
3717 as_dirname=false
3718 fi
3719
3720 as_me=`$as_basename -- "$0" ||
3721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3722 X"$0" : 'X\(//\)$' \| \
3723 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3724 $as_echo X/"$0" |
3725 sed '/^.*\/\([^/][^/]*\)\/*$/{
3726 s//\1/
3727 q
3728 }
3729 /^X\/\(\/\/\)$/{
3730 s//\1/
3731 q
3732 }
3733 /^X\/\(\/\).*/{
3734 s//\1/
3735 q
3736 }
3737 s/.*/./; q'`
3738
3739 # Avoid depending upon Character Ranges.
3740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3743 as_cr_digits='0123456789'
3744 as_cr_alnum=$as_cr_Letters$as_cr_digits
3745
3746 ECHO_C= ECHO_N= ECHO_T=
3747 case `echo -n x` in #(((((
3748 -n*)
3749 case `echo 'xy\c'` in
3750 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3751 xy) ECHO_C='\c';;
3752 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3753 ECHO_T=' ';;
3754 esac;;
3755 *)
3756 ECHO_N='-n';;
3757 esac
3758
3759 rm -f conf$$ conf$$.exe conf$$.file
3760 if test -d conf$$.dir; then
3761 rm -f conf$$.dir/conf$$.file
3762 else
3763 rm -f conf$$.dir
3764 mkdir conf$$.dir 2>/dev/null
3765 fi
3766 if (echo >conf$$.file) 2>/dev/null; then
3767 if ln -s conf$$.file conf$$ 2>/dev/null; then
3768 as_ln_s='ln -s'
3769 # ... but there are two gotchas:
3770 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3771 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3772 # In both cases, we have to default to `cp -pR'.
3773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3774 as_ln_s='cp -pR'
3775 elif ln conf$$.file conf$$ 2>/dev/null; then
3776 as_ln_s=ln
3777 else
3778 as_ln_s='cp -pR'
3779 fi
3780 else
3781 as_ln_s='cp -pR'
3782 fi
3783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3784 rmdir conf$$.dir 2>/dev/null
3785
3786
3787 # as_fn_mkdir_p
3788 # -------------
3789 # Create "$as_dir" as a directory, including parents if necessary.
3790 as_fn_mkdir_p ()
3791 {
3792
3793 case $as_dir in #(
3794 -*) as_dir=./$as_dir;;
3795 esac
3796 test -d "$as_dir" || eval $as_mkdir_p || {
3797 as_dirs=
3798 while :; do
3799 case $as_dir in #(
3800 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3801 *) as_qdir=$as_dir;;
3802 esac
3803 as_dirs="'$as_qdir' $as_dirs"
3804 as_dir=`$as_dirname -- "$as_dir" ||
3805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3806 X"$as_dir" : 'X\(//\)[^/]' \| \
3807 X"$as_dir" : 'X\(//\)$' \| \
3808 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3809 $as_echo X"$as_dir" |
3810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3811 s//\1/
3812 q
3813 }
3814 /^X\(\/\/\)[^/].*/{
3815 s//\1/
3816 q
3817 }
3818 /^X\(\/\/\)$/{
3819 s//\1/
3820 q
3821 }
3822 /^X\(\/\).*/{
3823 s//\1/
3824 q
3825 }
3826 s/.*/./; q'`
3827 test -d "$as_dir" && break
3828 done
3829 test -z "$as_dirs" || eval "mkdir $as_dirs"
3830 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3831
3832
3833 } # as_fn_mkdir_p
3834 if mkdir -p . 2>/dev/null; then
3835 as_mkdir_p='mkdir -p "$as_dir"'
3836 else
3837 test -d ./-p && rmdir ./-p
3838 as_mkdir_p=false
3839 fi
3840
3841
3842 # as_fn_executable_p FILE
3843 # -----------------------
3844 # Test if FILE is an executable regular file.
3845 as_fn_executable_p ()
3846 {
3847 test -f "$1" && test -x "$1"
3848 } # as_fn_executable_p
3849 as_test_x='test -x'
3850 as_executable_p=as_fn_executable_p
3851
3852 # Sed expression to map a string onto a valid CPP name.
3853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3854
3855 # Sed expression to map a string onto a valid variable name.
3856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3857
3858
3859 exec 6>&1
3860 ## ----------------------------------- ##
3861 ## Main body of $CONFIG_STATUS script. ##
3862 ## ----------------------------------- ##
3863 _ASEOF
3864 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3865
3866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3867 # Save the log message, to keep $0 and so on meaningful, and to
3868 # report actual input values of CONFIG_FILES etc. instead of their
3869 # values after options handling.
3870 ac_log="
3871 This file was extended by $as_me, which was
3872 generated by GNU Autoconf 2.69. Invocation command line was
3873
3874 CONFIG_FILES = $CONFIG_FILES
3875 CONFIG_HEADERS = $CONFIG_HEADERS
3876 CONFIG_LINKS = $CONFIG_LINKS
3877 CONFIG_COMMANDS = $CONFIG_COMMANDS
3878 $ $0 $@
3879
3880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3881 "
3882
3883 _ACEOF
3884
3885 case $ac_config_files in *"
3886 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3887 esac
3888
3889 case $ac_config_headers in *"
3890 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3891 esac
3892
3893
3894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3895 # Files that config.status was made for.
3896 config_files="$ac_config_files"
3897 config_headers="$ac_config_headers"
3898
3899 _ACEOF
3900
3901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3902 ac_cs_usage="\
3903 \`$as_me' instantiates files and other configuration actions
3904 from templates according to the current configuration. Unless the files
3905 and actions are specified as TAGs, all are instantiated by default.
3906
3907 Usage: $0 [OPTION]... [TAG]...
3908
3909 -h, --help print this help, then exit
3910 -V, --version print version number and configuration settings, then exit
3911 --config print configuration, then exit
3912 -q, --quiet, --silent
3913 do not print progress messages
3914 -d, --debug don't remove temporary files
3915 --recheck update $as_me by reconfiguring in the same conditions
3916 --file=FILE[:TEMPLATE]
3917 instantiate the configuration file FILE
3918 --header=FILE[:TEMPLATE]
3919 instantiate the configuration header FILE
3920
3921 Configuration files:
3922 $config_files
3923
3924 Configuration headers:
3925 $config_headers
3926
3927 Report bugs to the package provider."
3928
3929 _ACEOF
3930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3931 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3932 ac_cs_version="\\
3933 config.status
3934 configured by $0, generated by GNU Autoconf 2.69,
3935 with options \\"\$ac_cs_config\\"
3936
3937 Copyright (C) 2012 Free Software Foundation, Inc.
3938 This config.status script is free software; the Free Software Foundation
3939 gives unlimited permission to copy, distribute and modify it."
3940
3941 ac_pwd='$ac_pwd'
3942 srcdir='$srcdir'
3943 test -n "\$AWK" || AWK=awk
3944 _ACEOF
3945
3946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3947 # The default lists apply if the user does not specify any file.
3948 ac_need_defaults=:
3949 while test $# != 0
3950 do
3951 case $1 in
3952 --*=?*)
3953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3955 ac_shift=:
3956 ;;
3957 --*=)
3958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3959 ac_optarg=
3960 ac_shift=:
3961 ;;
3962 *)
3963 ac_option=$1
3964 ac_optarg=$2
3965 ac_shift=shift
3966 ;;
3967 esac
3968
3969 case $ac_option in
3970 # Handling of the options.
3971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3972 ac_cs_recheck=: ;;
3973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3974 $as_echo "$ac_cs_version"; exit ;;
3975 --config | --confi | --conf | --con | --co | --c )
3976 $as_echo "$ac_cs_config"; exit ;;
3977 --debug | --debu | --deb | --de | --d | -d )
3978 debug=: ;;
3979 --file | --fil | --fi | --f )
3980 $ac_shift
3981 case $ac_optarg in
3982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3983 '') as_fn_error $? "missing file argument" ;;
3984 esac
3985 as_fn_append CONFIG_FILES " '$ac_optarg'"
3986 ac_need_defaults=false;;
3987 --header | --heade | --head | --hea )
3988 $ac_shift
3989 case $ac_optarg in
3990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3991 esac
3992 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3993 ac_need_defaults=false;;
3994 --he | --h)
3995 # Conflict between --help and --header
3996 as_fn_error $? "ambiguous option: \`$1'
3997 Try \`$0 --help' for more information.";;
3998 --help | --hel | -h )
3999 $as_echo "$ac_cs_usage"; exit ;;
4000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4002 ac_cs_silent=: ;;
4003
4004 # This is an error.
4005 -*) as_fn_error $? "unrecognized option: \`$1'
4006 Try \`$0 --help' for more information." ;;
4007
4008 *) as_fn_append ac_config_targets " $1"
4009 ac_need_defaults=false ;;
4010
4011 esac
4012 shift
4013 done
4014
4015 ac_configure_extra_args=
4016
4017 if $ac_cs_silent; then
4018 exec 6>/dev/null
4019 ac_configure_extra_args="$ac_configure_extra_args --silent"
4020 fi
4021
4022 _ACEOF
4023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4024 if \$ac_cs_recheck; then
4025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4026 shift
4027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4028 CONFIG_SHELL='$SHELL'
4029 export CONFIG_SHELL
4030 exec "\$@"
4031 fi
4032
4033 _ACEOF
4034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4035 exec 5>>config.log
4036 {
4037 echo
4038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4039 ## Running $as_me. ##
4040 _ASBOX
4041 $as_echo "$ac_log"
4042 } >&5
4043
4044 _ACEOF
4045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4046 _ACEOF
4047
4048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4049
4050 # Handling of arguments.
4051 for ac_config_target in $ac_config_targets
4052 do
4053 case $ac_config_target in
4054 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4055 "all.mk") CONFIG_FILES="$CONFIG_FILES all.mk" ;;
4056
4057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4058 esac
4059 done
4060
4061
4062 # If the user did not use the arguments to specify the items to instantiate,
4063 # then the envvar interface is used. Set only those that are not.
4064 # We use the long form for the default assignment because of an extremely
4065 # bizarre bug on SunOS 4.1.3.
4066 if $ac_need_defaults; then
4067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4069 fi
4070
4071 # Have a temporary directory for convenience. Make it in the build tree
4072 # simply because there is no reason against having it here, and in addition,
4073 # creating and moving files from /tmp can sometimes cause problems.
4074 # Hook for its removal unless debugging.
4075 # Note that there is a small window in which the directory will not be cleaned:
4076 # after its creation but before its name has been assigned to `$tmp'.
4077 $debug ||
4078 {
4079 tmp= ac_tmp=
4080 trap 'exit_status=$?
4081 : "${ac_tmp:=$tmp}"
4082 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4083 ' 0
4084 trap 'as_fn_exit 1' 1 2 13 15
4085 }
4086 # Create a (secure) tmp directory for tmp files.
4087
4088 {
4089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4090 test -d "$tmp"
4091 } ||
4092 {
4093 tmp=./conf$$-$RANDOM
4094 (umask 077 && mkdir "$tmp")
4095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4096 ac_tmp=$tmp
4097
4098 # Set up the scripts for CONFIG_FILES section.
4099 # No need to generate them if there are no CONFIG_FILES.
4100 # This happens for instance with `./config.status config.h'.
4101 if test -n "$CONFIG_FILES"; then
4102
4103
4104 ac_cr=`echo X | tr X '\015'`
4105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4106 # But we know of no other shell where ac_cr would be empty at this
4107 # point, so we can use a bashism as a fallback.
4108 if test "x$ac_cr" = x; then
4109 eval ac_cr=\$\'\\r\'
4110 fi
4111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4113 ac_cs_awk_cr='\\r'
4114 else
4115 ac_cs_awk_cr=$ac_cr
4116 fi
4117
4118 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4119 _ACEOF
4120
4121
4122 {
4123 echo "cat >conf$$subs.awk <<_ACEOF" &&
4124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4125 echo "_ACEOF"
4126 } >conf$$subs.sh ||
4127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4128 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4129 ac_delim='%!_!# '
4130 for ac_last_try in false false false false false :; do
4131 . ./conf$$subs.sh ||
4132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4133
4134 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4135 if test $ac_delim_n = $ac_delim_num; then
4136 break
4137 elif $ac_last_try; then
4138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4139 else
4140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4141 fi
4142 done
4143 rm -f conf$$subs.sh
4144
4145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4146 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4147 _ACEOF
4148 sed -n '
4149 h
4150 s/^/S["/; s/!.*/"]=/
4151 p
4152 g
4153 s/^[^!]*!//
4154 :repl
4155 t repl
4156 s/'"$ac_delim"'$//
4157 t delim
4158 :nl
4159 h
4160 s/\(.\{148\}\)..*/\1/
4161 t more1
4162 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4163 p
4164 n
4165 b repl
4166 :more1
4167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4168 p
4169 g
4170 s/.\{148\}//
4171 t nl
4172 :delim
4173 h
4174 s/\(.\{148\}\)..*/\1/
4175 t more2
4176 s/["\\]/\\&/g; s/^/"/; s/$/"/
4177 p
4178 b
4179 :more2
4180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4181 p
4182 g
4183 s/.\{148\}//
4184 t delim
4185 ' <conf$$subs.awk | sed '
4186 /^[^""]/{
4187 N
4188 s/\n//
4189 }
4190 ' >>$CONFIG_STATUS || ac_write_fail=1
4191 rm -f conf$$subs.awk
4192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4193 _ACAWK
4194 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4195 for (key in S) S_is_set[key] = 1
4196 FS = ""
4197
4198 }
4199 {
4200 line = $ 0
4201 nfields = split(line, field, "@")
4202 substed = 0
4203 len = length(field[1])
4204 for (i = 2; i < nfields; i++) {
4205 key = field[i]
4206 keylen = length(key)
4207 if (S_is_set[key]) {
4208 value = S[key]
4209 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4210 len += length(value) + length(field[++i])
4211 substed = 1
4212 } else
4213 len += 1 + keylen
4214 }
4215
4216 print line
4217 }
4218
4219 _ACAWK
4220 _ACEOF
4221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4222 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4223 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4224 else
4225 cat
4226 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4227 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4228 _ACEOF
4229
4230 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4231 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4232 # trailing colons and then remove the whole line if VPATH becomes empty
4233 # (actually we leave an empty line to preserve line numbers).
4234 if test "x$srcdir" = x.; then
4235 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4236 h
4237 s///
4238 s/^/:/
4239 s/[ ]*$/:/
4240 s/:\$(srcdir):/:/g
4241 s/:\${srcdir}:/:/g
4242 s/:@srcdir@:/:/g
4243 s/^:*//
4244 s/:*$//
4245 x
4246 s/\(=[ ]*\).*/\1/
4247 G
4248 s/\n//
4249 s/^[^=]*=[ ]*$//
4250 }'
4251 fi
4252
4253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4254 fi # test -n "$CONFIG_FILES"
4255
4256 # Set up the scripts for CONFIG_HEADERS section.
4257 # No need to generate them if there are no CONFIG_HEADERS.
4258 # This happens for instance with `./config.status Makefile'.
4259 if test -n "$CONFIG_HEADERS"; then
4260 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4261 BEGIN {
4262 _ACEOF
4263
4264 # Transform confdefs.h into an awk script `defines.awk', embedded as
4265 # here-document in config.status, that substitutes the proper values into
4266 # config.h.in to produce config.h.
4267
4268 # Create a delimiter string that does not exist in confdefs.h, to ease
4269 # handling of long lines.
4270 ac_delim='%!_!# '
4271 for ac_last_try in false false :; do
4272 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4273 if test -z "$ac_tt"; then
4274 break
4275 elif $ac_last_try; then
4276 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4277 else
4278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4279 fi
4280 done
4281
4282 # For the awk script, D is an array of macro values keyed by name,
4283 # likewise P contains macro parameters if any. Preserve backslash
4284 # newline sequences.
4285
4286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4287 sed -n '
4288 s/.\{148\}/&'"$ac_delim"'/g
4289 t rset
4290 :rset
4291 s/^[ ]*#[ ]*define[ ][ ]*/ /
4292 t def
4293 d
4294 :def
4295 s/\\$//
4296 t bsnl
4297 s/["\\]/\\&/g
4298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4299 D["\1"]=" \3"/p
4300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4301 d
4302 :bsnl
4303 s/["\\]/\\&/g
4304 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4305 D["\1"]=" \3\\\\\\n"\\/p
4306 t cont
4307 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4308 t cont
4309 d
4310 :cont
4311 n
4312 s/.\{148\}/&'"$ac_delim"'/g
4313 t clear
4314 :clear
4315 s/\\$//
4316 t bsnlc
4317 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4318 d
4319 :bsnlc
4320 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4321 b cont
4322 ' <confdefs.h | sed '
4323 s/'"$ac_delim"'/"\\\
4324 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4325
4326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4327 for (key in D) D_is_set[key] = 1
4328 FS = ""
4329 }
4330 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4331 line = \$ 0
4332 split(line, arg, " ")
4333 if (arg[1] == "#") {
4334 defundef = arg[2]
4335 mac1 = arg[3]
4336 } else {
4337 defundef = substr(arg[1], 2)
4338 mac1 = arg[2]
4339 }
4340 split(mac1, mac2, "(") #)
4341 macro = mac2[1]
4342 prefix = substr(line, 1, index(line, defundef) - 1)
4343 if (D_is_set[macro]) {
4344 # Preserve the white space surrounding the "#".
4345 print prefix "define", macro P[macro] D[macro]
4346 next
4347 } else {
4348 # Replace #undef with comments. This is necessary, for example,
4349 # in the case of _POSIX_SOURCE, which is predefined and required
4350 # on some systems where configure will not decide to define it.
4351 if (defundef == "undef") {
4352 print "/*", prefix defundef, macro, "*/"
4353 next
4354 }
4355 }
4356 }
4357 { print }
4358 _ACAWK
4359 _ACEOF
4360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4361 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4362 fi # test -n "$CONFIG_HEADERS"
4363
4364
4365 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4366 shift
4367 for ac_tag
4368 do
4369 case $ac_tag in
4370 :[FHLC]) ac_mode=$ac_tag; continue;;
4371 esac
4372 case $ac_mode$ac_tag in
4373 :[FHL]*:*);;
4374 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4375 :[FH]-) ac_tag=-:-;;
4376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4377 esac
4378 ac_save_IFS=$IFS
4379 IFS=:
4380 set x $ac_tag
4381 IFS=$ac_save_IFS
4382 shift
4383 ac_file=$1
4384 shift
4385
4386 case $ac_mode in
4387 :L) ac_source=$1;;
4388 :[FH])
4389 ac_file_inputs=
4390 for ac_f
4391 do
4392 case $ac_f in
4393 -) ac_f="$ac_tmp/stdin";;
4394 *) # Look for the file first in the build tree, then in the source tree
4395 # (if the path is not absolute). The absolute path cannot be DOS-style,
4396 # because $ac_f cannot contain `:'.
4397 test -f "$ac_f" ||
4398 case $ac_f in
4399 [\\/$]*) false;;
4400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4401 esac ||
4402 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4403 esac
4404 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4405 as_fn_append ac_file_inputs " '$ac_f'"
4406 done
4407
4408 # Let's still pretend it is `configure' which instantiates (i.e., don't
4409 # use $as_me), people would be surprised to read:
4410 # /* config.h. Generated by config.status. */
4411 configure_input='Generated from '`
4412 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4413 `' by configure.'
4414 if test x"$ac_file" != x-; then
4415 configure_input="$ac_file. $configure_input"
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4417 $as_echo "$as_me: creating $ac_file" >&6;}
4418 fi
4419 # Neutralize special characters interpreted by sed in replacement strings.
4420 case $configure_input in #(
4421 *\&* | *\|* | *\\* )
4422 ac_sed_conf_input=`$as_echo "$configure_input" |
4423 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4424 *) ac_sed_conf_input=$configure_input;;
4425 esac
4426
4427 case $ac_tag in
4428 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4430 esac
4431 ;;
4432 esac
4433
4434 ac_dir=`$as_dirname -- "$ac_file" ||
4435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4436 X"$ac_file" : 'X\(//\)[^/]' \| \
4437 X"$ac_file" : 'X\(//\)$' \| \
4438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4439 $as_echo X"$ac_file" |
4440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4441 s//\1/
4442 q
4443 }
4444 /^X\(\/\/\)[^/].*/{
4445 s//\1/
4446 q
4447 }
4448 /^X\(\/\/\)$/{
4449 s//\1/
4450 q
4451 }
4452 /^X\(\/\).*/{
4453 s//\1/
4454 q
4455 }
4456 s/.*/./; q'`
4457 as_dir="$ac_dir"; as_fn_mkdir_p
4458 ac_builddir=.
4459
4460 case "$ac_dir" in
4461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4462 *)
4463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4464 # A ".." for each directory in $ac_dir_suffix.
4465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4466 case $ac_top_builddir_sub in
4467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4469 esac ;;
4470 esac
4471 ac_abs_top_builddir=$ac_pwd
4472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4473 # for backward compatibility:
4474 ac_top_builddir=$ac_top_build_prefix
4475
4476 case $srcdir in
4477 .) # We are building in place.
4478 ac_srcdir=.
4479 ac_top_srcdir=$ac_top_builddir_sub
4480 ac_abs_top_srcdir=$ac_pwd ;;
4481 [\\/]* | ?:[\\/]* ) # Absolute name.
4482 ac_srcdir=$srcdir$ac_dir_suffix;
4483 ac_top_srcdir=$srcdir
4484 ac_abs_top_srcdir=$srcdir ;;
4485 *) # Relative name.
4486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4487 ac_top_srcdir=$ac_top_build_prefix$srcdir
4488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4489 esac
4490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4491
4492
4493 case $ac_mode in
4494 :F)
4495 #
4496 # CONFIG_FILE
4497 #
4498
4499 _ACEOF
4500
4501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4502 # If the template does not know about datarootdir, expand it.
4503 # FIXME: This hack should be removed a few years after 2.60.
4504 ac_datarootdir_hack=; ac_datarootdir_seen=
4505 ac_sed_dataroot='
4506 /datarootdir/ {
4507 p
4508 q
4509 }
4510 /@datadir@/p
4511 /@docdir@/p
4512 /@infodir@/p
4513 /@localedir@/p
4514 /@mandir@/p'
4515 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4516 *datarootdir*) ac_datarootdir_seen=yes;;
4517 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4519 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4520 _ACEOF
4521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4522 ac_datarootdir_hack='
4523 s&@datadir@&$datadir&g
4524 s&@docdir@&$docdir&g
4525 s&@infodir@&$infodir&g
4526 s&@localedir@&$localedir&g
4527 s&@mandir@&$mandir&g
4528 s&\\\${datarootdir}&$datarootdir&g' ;;
4529 esac
4530 _ACEOF
4531
4532 # Neutralize VPATH when `$srcdir' = `.'.
4533 # Shell code in configure.ac might set extrasub.
4534 # FIXME: do we really want to maintain this feature?
4535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4536 ac_sed_extra="$ac_vpsub
4537 $extrasub
4538 _ACEOF
4539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4540 :t
4541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4542 s|@configure_input@|$ac_sed_conf_input|;t t
4543 s&@top_builddir@&$ac_top_builddir_sub&;t t
4544 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4545 s&@srcdir@&$ac_srcdir&;t t
4546 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4547 s&@top_srcdir@&$ac_top_srcdir&;t t
4548 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4549 s&@builddir@&$ac_builddir&;t t
4550 s&@abs_builddir@&$ac_abs_builddir&;t t
4551 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4552 $ac_datarootdir_hack
4553 "
4554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4556
4557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4560 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4562 which seems to be undefined. Please make sure it is defined" >&5
4563 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4564 which seems to be undefined. Please make sure it is defined" >&2;}
4565
4566 rm -f "$ac_tmp/stdin"
4567 case $ac_file in
4568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4570 esac \
4571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4572 ;;
4573 :H)
4574 #
4575 # CONFIG_HEADER
4576 #
4577 if test x"$ac_file" != x-; then
4578 {
4579 $as_echo "/* $configure_input */" \
4580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4581 } >"$ac_tmp/config.h" \
4582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4585 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4586 else
4587 rm -f "$ac_file"
4588 mv "$ac_tmp/config.h" "$ac_file" \
4589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4590 fi
4591 else
4592 $as_echo "/* $configure_input */" \
4593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4594 || as_fn_error $? "could not create -" "$LINENO" 5
4595 fi
4596 ;;
4597
4598
4599 esac
4600
4601 done # for ac_tag
4602
4603
4604 as_fn_exit 0
4605 _ACEOF
4606 ac_clean_files=$ac_clean_files_save
4607
4608 test $ac_write_fail = 0 ||
4609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4610
4611
4612 # configure is writing to config.log, and then calls config.status.
4613 # config.status does its own redirection, appending to config.log.
4614 # Unfortunately, on DOS this fails, as config.log is still kept open
4615 # by configure, so config.status won't be able to write to it; its
4616 # output is simply discarded. So we exec the FD to /dev/null,
4617 # effectively closing config.log, so it can be properly (re)opened and
4618 # appended to by config.status. When coming back to configure, we
4619 # need to make the FD available again.
4620 if test "$no_create" != yes; then
4621 ac_cs_success=:
4622 ac_config_status_args=
4623 test "$silent" = yes &&
4624 ac_config_status_args="$ac_config_status_args --quiet"
4625 exec 5>/dev/null
4626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4627 exec 5>>config.log
4628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4629 # would make configure fail if this is the last instruction.
4630 $ac_cs_success || as_fn_exit 1
4631 fi
4632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4635 fi
4636