| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.72 for nss-pam-ldapd 0.9.13. |
| 4 |
# |
| 5 |
# Report bugs to <[email protected]>. |
| 6 |
# |
| 7 |
# Copyright (C) 2006 Luke Howard |
| 8 |
# Copyright (C) 2006 West Consulting |
| 9 |
# Copyright (C) 2006-2025 Arthur de Jong |
| 10 |
# |
| 11 |
# This configure script is derived from configure.ac which is free software; |
| 12 |
# you can redistribute it and/or modify it under the terms of the GNU Lesser |
| 13 |
# General Public License as published by the Free Software Foundation; either |
| 14 |
# version 2.1 of the License, or (at your option) any later version. See the |
| 15 |
# configure.ac file for more details. |
| 16 |
# |
| 17 |
# |
| 18 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
| 19 |
# Inc. |
| 20 |
# |
| 21 |
# |
| 22 |
# This configure script is free software; the Free Software Foundation |
| 23 |
# gives unlimited permission to copy, distribute and modify it. |
| 24 |
## -------------------- ## |
| 25 |
## M4sh Initialization. ## |
| 26 |
## -------------------- ## |
| 27 |
|
| 28 |
# Be more Bourne compatible |
| 29 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 30 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 31 |
then : |
| 32 |
emulate sh |
| 33 |
NULLCMD=: |
| 34 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 35 |
# is contrary to our usage. Disable this feature. |
| 36 |
alias -g '${1+"$@"}'='"$@"' |
| 37 |
setopt NO_GLOB_SUBST |
| 38 |
else case e in #( |
| 39 |
e) case `(set -o) 2>/dev/null` in #( |
| 40 |
*posix*) : |
| 41 |
set -o posix ;; #( |
| 42 |
*) : |
| 43 |
;; |
| 44 |
esac ;; |
| 45 |
esac |
| 46 |
fi |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
# Reset variables that may have inherited troublesome values from |
| 51 |
# the environment. |
| 52 |
|
| 53 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 54 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 55 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 56 |
# Quoting is to prevent editors from complaining about space-tab. |
| 57 |
as_nl=' |
| 58 |
' |
| 59 |
export as_nl |
| 60 |
IFS=" "" $as_nl" |
| 61 |
|
| 62 |
PS1='$ ' |
| 63 |
PS2='> ' |
| 64 |
PS4='+ ' |
| 65 |
|
| 66 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 67 |
LC_ALL=C |
| 68 |
export LC_ALL |
| 69 |
LANGUAGE=C |
| 70 |
export LANGUAGE |
| 71 |
|
| 72 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 73 |
# to be unset--not just set to an empty or harmless value--now, to |
| 74 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 75 |
# also avoids known problems related to "unset" and subshell syntax |
| 76 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 77 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 78 |
do eval test \${$as_var+y} \ |
| 79 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 80 |
done |
| 81 |
|
| 82 |
# Ensure that fds 0, 1, and 2 are open. |
| 83 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 84 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 85 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 86 |
|
| 87 |
# The user is always right. |
| 88 |
if ${PATH_SEPARATOR+false} :; then |
| 89 |
PATH_SEPARATOR=: |
| 90 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 91 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 92 |
PATH_SEPARATOR=';' |
| 93 |
} |
| 94 |
fi |
| 95 |
|
| 96 |
|
| 97 |
# Find who we are. Look in the path if we contain no directory separator. |
| 98 |
as_myself= |
| 99 |
case $0 in #(( |
| 100 |
*[\\/]* ) as_myself=$0 ;; |
| 101 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 102 |
for as_dir in $PATH |
| 103 |
do |
| 104 |
IFS=$as_save_IFS |
| 105 |
case $as_dir in #((( |
| 106 |
'') as_dir=./ ;; |
| 107 |
*/) ;; |
| 108 |
*) as_dir=$as_dir/ ;; |
| 109 |
esac |
| 110 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 111 |
done |
| 112 |
IFS=$as_save_IFS |
| 113 |
|
| 114 |
;; |
| 115 |
esac |
| 116 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 117 |
# in which case we are not to be found in the path. |
| 118 |
if test "x$as_myself" = x; then |
| 119 |
as_myself=$0 |
| 120 |
fi |
| 121 |
if test ! -f "$as_myself"; then |
| 122 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 123 |
exit 1 |
| 124 |
fi |
| 125 |
|
| 126 |
|
| 127 |
# Use a proper internal environment variable to ensure we don't fall |
| 128 |
# into an infinite loop, continuously re-executing ourselves. |
| 129 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 130 |
_as_can_reexec=no; export _as_can_reexec; |
| 131 |
# We cannot yet assume a decent shell, so we have to provide a |
| 132 |
# neutralization value for shells without unset; and this also |
| 133 |
# works around shells that cannot unset nonexistent variables. |
| 134 |
# Preserve -v and -x to the replacement shell. |
| 135 |
BASH_ENV=/dev/null |
| 136 |
ENV=/dev/null |
| 137 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 138 |
case $- in # (((( |
| 139 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 140 |
*v* ) as_opts=-v ;; |
| 141 |
*x* ) as_opts=-x ;; |
| 142 |
* ) as_opts= ;; |
| 143 |
esac |
| 144 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 145 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 146 |
# out after a failed 'exec'. |
| 147 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 148 |
exit 255 |
| 149 |
fi |
| 150 |
# We don't want this to propagate to other subprocesses. |
| 151 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 152 |
if test "x$CONFIG_SHELL" = x; then |
| 153 |
as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 154 |
then : |
| 155 |
emulate sh |
| 156 |
NULLCMD=: |
| 157 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 158 |
# is contrary to our usage. Disable this feature. |
| 159 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 160 |
setopt NO_GLOB_SUBST |
| 161 |
else case e in #( |
| 162 |
e) case \`(set -o) 2>/dev/null\` in #( |
| 163 |
*posix*) : |
| 164 |
set -o posix ;; #( |
| 165 |
*) : |
| 166 |
;; |
| 167 |
esac ;; |
| 168 |
esac |
| 169 |
fi |
| 170 |
" |
| 171 |
as_required="as_fn_return () { (exit \$1); } |
| 172 |
as_fn_success () { as_fn_return 0; } |
| 173 |
as_fn_failure () { as_fn_return 1; } |
| 174 |
as_fn_ret_success () { return 0; } |
| 175 |
as_fn_ret_failure () { return 1; } |
| 176 |
|
| 177 |
exitcode=0 |
| 178 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 179 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 180 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 181 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 182 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 183 |
then : |
| 184 |
|
| 185 |
else case e in #( |
| 186 |
e) exitcode=1; echo positional parameters were not saved. ;; |
| 187 |
esac |
| 188 |
fi |
| 189 |
test x\$exitcode = x0 || exit 1 |
| 190 |
blah=\$(echo \$(echo blah)) |
| 191 |
test x\"\$blah\" = xblah || exit 1 |
| 192 |
test -x / || exit 1" |
| 193 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 194 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 195 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 196 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 197 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 198 |
if (eval "$as_required") 2>/dev/null |
| 199 |
then : |
| 200 |
as_have_required=yes |
| 201 |
else case e in #( |
| 202 |
e) as_have_required=no ;; |
| 203 |
esac |
| 204 |
fi |
| 205 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 206 |
then : |
| 207 |
|
| 208 |
else case e in #( |
| 209 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 210 |
as_found=false |
| 211 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 212 |
do |
| 213 |
IFS=$as_save_IFS |
| 214 |
case $as_dir in #((( |
| 215 |
'') as_dir=./ ;; |
| 216 |
*/) ;; |
| 217 |
*) as_dir=$as_dir/ ;; |
| 218 |
esac |
| 219 |
as_found=: |
| 220 |
case $as_dir in #( |
| 221 |
/*) |
| 222 |
for as_base in sh bash ksh sh5; do |
| 223 |
# Try only shells that exist, to save several forks. |
| 224 |
as_shell=$as_dir$as_base |
| 225 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 226 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 227 |
then : |
| 228 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 229 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 230 |
then : |
| 231 |
break 2 |
| 232 |
fi |
| 233 |
fi |
| 234 |
done;; |
| 235 |
esac |
| 236 |
as_found=false |
| 237 |
done |
| 238 |
IFS=$as_save_IFS |
| 239 |
if $as_found |
| 240 |
then : |
| 241 |
|
| 242 |
else case e in #( |
| 243 |
e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 244 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 245 |
then : |
| 246 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 247 |
fi ;; |
| 248 |
esac |
| 249 |
fi |
| 250 |
|
| 251 |
|
| 252 |
if test "x$CONFIG_SHELL" != x |
| 253 |
then : |
| 254 |
export CONFIG_SHELL |
| 255 |
# We cannot yet assume a decent shell, so we have to provide a |
| 256 |
# neutralization value for shells without unset; and this also |
| 257 |
# works around shells that cannot unset nonexistent variables. |
| 258 |
# Preserve -v and -x to the replacement shell. |
| 259 |
BASH_ENV=/dev/null |
| 260 |
ENV=/dev/null |
| 261 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 262 |
case $- in # (((( |
| 263 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 264 |
*v* ) as_opts=-v ;; |
| 265 |
*x* ) as_opts=-x ;; |
| 266 |
* ) as_opts= ;; |
| 267 |
esac |
| 268 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 269 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 270 |
# out after a failed 'exec'. |
| 271 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 272 |
exit 255 |
| 273 |
fi |
| 274 |
|
| 275 |
if test x$as_have_required = xno |
| 276 |
then : |
| 277 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 278 |
printf "%s\n" "$0: the shells that I found on your system." |
| 279 |
if test ${ZSH_VERSION+y} ; then |
| 280 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 281 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 282 |
else |
| 283 |
printf "%s\n" "$0: Please tell [email protected] and |
| 284 |
$0: [email protected] about your |
| 285 |
$0: system, including any error possibly output before this |
| 286 |
$0: message. Then install a modern shell, or manually run |
| 287 |
$0: the script under such a shell if you do have one." |
| 288 |
fi |
| 289 |
exit 1 |
| 290 |
fi ;; |
| 291 |
esac |
| 292 |
fi |
| 293 |
fi |
| 294 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 295 |
export SHELL |
| 296 |
# Unset more variables known to interfere with behavior of common tools. |
| 297 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 298 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 299 |
|
| 300 |
## --------------------- ## |
| 301 |
## M4sh Shell Functions. ## |
| 302 |
## --------------------- ## |
| 303 |
# as_fn_unset VAR |
| 304 |
# --------------- |
| 305 |
# Portably unset VAR. |
| 306 |
as_fn_unset () |
| 307 |
{ |
| 308 |
{ eval $1=; unset $1;} |
| 309 |
} |
| 310 |
as_unset=as_fn_unset |
| 311 |
|
| 312 |
|
| 313 |
# as_fn_set_status STATUS |
| 314 |
# ----------------------- |
| 315 |
# Set $? to STATUS, without forking. |
| 316 |
as_fn_set_status () |
| 317 |
{ |
| 318 |
return $1 |
| 319 |
} # as_fn_set_status |
| 320 |
|
| 321 |
# as_fn_exit STATUS |
| 322 |
# ----------------- |
| 323 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 324 |
as_fn_exit () |
| 325 |
{ |
| 326 |
set +e |
| 327 |
as_fn_set_status $1 |
| 328 |
exit $1 |
| 329 |
} # as_fn_exit |
| 330 |
|
| 331 |
# as_fn_mkdir_p |
| 332 |
# ------------- |
| 333 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 334 |
as_fn_mkdir_p () |
| 335 |
{ |
| 336 |
|
| 337 |
case $as_dir in #( |
| 338 |
-*) as_dir=./$as_dir;; |
| 339 |
esac |
| 340 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 341 |
as_dirs= |
| 342 |
while :; do |
| 343 |
case $as_dir in #( |
| 344 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 345 |
*) as_qdir=$as_dir;; |
| 346 |
esac |
| 347 |
as_dirs="'$as_qdir' $as_dirs" |
| 348 |
as_dir=`$as_dirname -- "$as_dir" || |
| 349 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 350 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 351 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 352 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 353 |
printf "%s\n" X"$as_dir" | |
| 354 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 355 |
s//\1/ |
| 356 |
q |
| 357 |
} |
| 358 |
/^X\(\/\/\)[^/].*/{ |
| 359 |
s//\1/ |
| 360 |
q |
| 361 |
} |
| 362 |
/^X\(\/\/\)$/{ |
| 363 |
s//\1/ |
| 364 |
q |
| 365 |
} |
| 366 |
/^X\(\/\).*/{ |
| 367 |
s//\1/ |
| 368 |
q |
| 369 |
} |
| 370 |
s/.*/./; q'` |
| 371 |
test -d "$as_dir" && break |
| 372 |
done |
| 373 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 374 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 375 |
|
| 376 |
|
| 377 |
} # as_fn_mkdir_p |
| 378 |
|
| 379 |
# as_fn_executable_p FILE |
| 380 |
# ----------------------- |
| 381 |
# Test if FILE is an executable regular file. |
| 382 |
as_fn_executable_p () |
| 383 |
{ |
| 384 |
test -f "$1" && test -x "$1" |
| 385 |
} # as_fn_executable_p |
| 386 |
# as_fn_append VAR VALUE |
| 387 |
# ---------------------- |
| 388 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 389 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 390 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 391 |
# implementations. |
| 392 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 393 |
then : |
| 394 |
eval 'as_fn_append () |
| 395 |
{ |
| 396 |
eval $1+=\$2 |
| 397 |
}' |
| 398 |
else case e in #( |
| 399 |
e) as_fn_append () |
| 400 |
{ |
| 401 |
eval $1=\$$1\$2 |
| 402 |
} ;; |
| 403 |
esac |
| 404 |
fi # as_fn_append |
| 405 |
|
| 406 |
# as_fn_arith ARG... |
| 407 |
# ------------------ |
| 408 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 409 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 410 |
# must be portable across $(()) and expr. |
| 411 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 412 |
then : |
| 413 |
eval 'as_fn_arith () |
| 414 |
{ |
| 415 |
as_val=$(( $* )) |
| 416 |
}' |
| 417 |
else case e in #( |
| 418 |
e) as_fn_arith () |
| 419 |
{ |
| 420 |
as_val=`expr "$@" || test $? -eq 1` |
| 421 |
} ;; |
| 422 |
esac |
| 423 |
fi # as_fn_arith |
| 424 |
|
| 425 |
|
| 426 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 427 |
# ---------------------------------------- |
| 428 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 429 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 430 |
# script with STATUS, using 1 if that was 0. |
| 431 |
as_fn_error () |
| 432 |
{ |
| 433 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 434 |
if test "$4"; then |
| 435 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 436 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 437 |
fi |
| 438 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 439 |
as_fn_exit $as_status |
| 440 |
} # as_fn_error |
| 441 |
|
| 442 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 443 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 444 |
as_expr=expr |
| 445 |
else |
| 446 |
as_expr=false |
| 447 |
fi |
| 448 |
|
| 449 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 450 |
as_basename=basename |
| 451 |
else |
| 452 |
as_basename=false |
| 453 |
fi |
| 454 |
|
| 455 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 456 |
as_dirname=dirname |
| 457 |
else |
| 458 |
as_dirname=false |
| 459 |
fi |
| 460 |
|
| 461 |
as_me=`$as_basename -- "$0" || |
| 462 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 463 |
X"$0" : 'X\(//\)$' \| \ |
| 464 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 465 |
printf "%s\n" X/"$0" | |
| 466 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 467 |
s//\1/ |
| 468 |
q |
| 469 |
} |
| 470 |
/^X\/\(\/\/\)$/{ |
| 471 |
s//\1/ |
| 472 |
q |
| 473 |
} |
| 474 |
/^X\/\(\/\).*/{ |
| 475 |
s//\1/ |
| 476 |
q |
| 477 |
} |
| 478 |
s/.*/./; q'` |
| 479 |
|
| 480 |
# Avoid depending upon Character Ranges. |
| 481 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 482 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 483 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 484 |
as_cr_digits='0123456789' |
| 485 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 486 |
|
| 487 |
|
| 488 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 489 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 490 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 491 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 492 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 493 |
sed -n ' |
| 494 |
p |
| 495 |
/[$]LINENO/= |
| 496 |
' <$as_myself | |
| 497 |
sed ' |
| 498 |
t clear |
| 499 |
:clear |
| 500 |
s/[$]LINENO.*/&-/ |
| 501 |
t lineno |
| 502 |
b |
| 503 |
:lineno |
| 504 |
N |
| 505 |
:loop |
| 506 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 507 |
t loop |
| 508 |
s/-\n.*// |
| 509 |
' >$as_me.lineno && |
| 510 |
chmod +x "$as_me.lineno" || |
| 511 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 512 |
|
| 513 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 514 |
# already done that, so ensure we don't try to do so again and fall |
| 515 |
# in an infinite loop. This has already happened in practice. |
| 516 |
_as_can_reexec=no; export _as_can_reexec |
| 517 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 518 |
# (the dirname of $[0] is not the place where we might find the |
| 519 |
# original and so on. Autoconf is especially sensitive to this). |
| 520 |
. "./$as_me.lineno" |
| 521 |
# Exit status is that of the last command. |
| 522 |
exit |
| 523 |
} |
| 524 |
|
| 525 |
|
| 526 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 527 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 528 |
# for compatibility with existing Makefiles. |
| 529 |
ECHO_C= ECHO_N= ECHO_T= |
| 530 |
case `echo -n x` in #((((( |
| 531 |
-n*) |
| 532 |
case `echo 'xy\c'` in |
| 533 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 534 |
xy) ECHO_C='\c';; |
| 535 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 536 |
ECHO_T=' ';; |
| 537 |
esac;; |
| 538 |
*) |
| 539 |
ECHO_N='-n';; |
| 540 |
esac |
| 541 |
|
| 542 |
# For backward compatibility with old third-party macros, we provide |
| 543 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 544 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 545 |
as_echo='printf %s\n' |
| 546 |
as_echo_n='printf %s' |
| 547 |
|
| 548 |
rm -f conf$$ conf$$.exe conf$$.file |
| 549 |
if test -d conf$$.dir; then |
| 550 |
rm -f conf$$.dir/conf$$.file |
| 551 |
else |
| 552 |
rm -f conf$$.dir |
| 553 |
mkdir conf$$.dir 2>/dev/null |
| 554 |
fi |
| 555 |
if (echo >conf$$.file) 2>/dev/null; then |
| 556 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 557 |
as_ln_s='ln -s' |
| 558 |
# ... but there are two gotchas: |
| 559 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 560 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 561 |
# In both cases, we have to default to 'cp -pR'. |
| 562 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 563 |
as_ln_s='cp -pR' |
| 564 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 565 |
as_ln_s=ln |
| 566 |
else |
| 567 |
as_ln_s='cp -pR' |
| 568 |
fi |
| 569 |
else |
| 570 |
as_ln_s='cp -pR' |
| 571 |
fi |
| 572 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 573 |
rmdir conf$$.dir 2>/dev/null |
| 574 |
|
| 575 |
if mkdir -p . 2>/dev/null; then |
| 576 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 577 |
else |
| 578 |
test -d ./-p && rmdir ./-p |
| 579 |
as_mkdir_p=false |
| 580 |
fi |
| 581 |
|
| 582 |
as_test_x='test -x' |
| 583 |
as_executable_p=as_fn_executable_p |
| 584 |
|
| 585 |
# Sed expression to map a string onto a valid CPP name. |
| 586 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 587 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 588 |
|
| 589 |
# Sed expression to map a string onto a valid variable name. |
| 590 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 591 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 592 |
|
| 593 |
|
| 594 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 595 |
exec 6>&1 |
| 596 |
|
| 597 |
# Name of the host. |
| 598 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 599 |
# so uname gets run too. |
| 600 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 601 |
|
| 602 |
# |
| 603 |
# Initializations. |
| 604 |
# |
| 605 |
ac_default_prefix=/usr/local |
| 606 |
ac_clean_files= |
| 607 |
ac_config_libobj_dir=. |
| 608 |
LIBOBJS= |
| 609 |
cross_compiling=no |
| 610 |
subdirs= |
| 611 |
MFLAGS= |
| 612 |
MAKEFLAGS= |
| 613 |
|
| 614 |
# Identity of this package. |
| 615 |
PACKAGE_NAME='nss-pam-ldapd' |
| 616 |
PACKAGE_TARNAME='nss-pam-ldapd' |
| 617 |
PACKAGE_VERSION='0.9.13' |
| 618 |
PACKAGE_STRING='nss-pam-ldapd 0.9.13' |
| 619 |
PACKAGE_BUGREPORT='[email protected]' |
| 620 |
PACKAGE_URL='https://arthurdejong.org/nss-pam-ldapd/' |
| 621 |
|
| 622 |
ac_unique_file="nslcd.h" |
| 623 |
ac_default_prefix= |
| 624 |
ac_config_libobj_dir=compat |
| 625 |
# Factoring default headers for most tests. |
| 626 |
ac_includes_default="\ |
| 627 |
#include <stddef.h> |
| 628 |
#ifdef HAVE_STDIO_H |
| 629 |
# include <stdio.h> |
| 630 |
#endif |
| 631 |
#ifdef HAVE_STDLIB_H |
| 632 |
# include <stdlib.h> |
| 633 |
#endif |
| 634 |
#ifdef HAVE_STRING_H |
| 635 |
# include <string.h> |
| 636 |
#endif |
| 637 |
#ifdef HAVE_INTTYPES_H |
| 638 |
# include <inttypes.h> |
| 639 |
#endif |
| 640 |
#ifdef HAVE_STDINT_H |
| 641 |
# include <stdint.h> |
| 642 |
#endif |
| 643 |
#ifdef HAVE_STRINGS_H |
| 644 |
# include <strings.h> |
| 645 |
#endif |
| 646 |
#ifdef HAVE_SYS_TYPES_H |
| 647 |
# include <sys/types.h> |
| 648 |
#endif |
| 649 |
#ifdef HAVE_SYS_STAT_H |
| 650 |
# include <sys/stat.h> |
| 651 |
#endif |
| 652 |
#ifdef HAVE_UNISTD_H |
| 653 |
# include <unistd.h> |
| 654 |
#endif" |
| 655 |
|
| 656 |
ac_header_c_list= |
| 657 |
ac_func_c_list= |
| 658 |
ac_subst_vars='am__EXEEXT_FALSE |
| 659 |
am__EXEEXT_TRUE |
| 660 |
LTLIBOBJS |
| 661 |
NSS_FLAVOUR_FREEBSD_FALSE |
| 662 |
NSS_FLAVOUR_FREEBSD_TRUE |
| 663 |
NSS_FLAVOUR_SOLARIS_FALSE |
| 664 |
NSS_FLAVOUR_SOLARIS_TRUE |
| 665 |
NSS_FLAVOUR_GLIBC_FALSE |
| 666 |
NSS_FLAVOUR_GLIBC_TRUE |
| 667 |
nslcd_LIBS |
| 668 |
PTHREAD_CFLAGS |
| 669 |
PTHREAD_LIBS |
| 670 |
PTHREAD_CC |
| 671 |
ax_pthread_config |
| 672 |
pam_ldap_so_LINK |
| 673 |
pam_ldap_so_LDFLAGS |
| 674 |
LIBOBJS |
| 675 |
nss_ldap_so_LINK |
| 676 |
nss_ldap_so_LDFLAGS |
| 677 |
NSS_MODULE_OBJS |
| 678 |
NSS_FLAVOUR |
| 679 |
PAM_LDAP_SONAME |
| 680 |
NSS_LDAP_SONAME |
| 681 |
MODULE_NAME |
| 682 |
PAM_SECLIB_DIR |
| 683 |
NSLCD_SOCKET |
| 684 |
NSLCD_PIDFILE |
| 685 |
NSLCD_BINDPW_PATH |
| 686 |
NSLCD_CONF_PATH |
| 687 |
ENABLE_PYNSLCD_FALSE |
| 688 |
ENABLE_PYNSLCD_TRUE |
| 689 |
ENABLE_NSLCD_FALSE |
| 690 |
ENABLE_NSLCD_TRUE |
| 691 |
ENABLE_UTILS_FALSE |
| 692 |
ENABLE_UTILS_TRUE |
| 693 |
ENABLE_PAM_FALSE |
| 694 |
ENABLE_PAM_TRUE |
| 695 |
ENABLE_NSS_FALSE |
| 696 |
ENABLE_NSS_TRUE |
| 697 |
MAINT |
| 698 |
MAINTAINER_MODE_FALSE |
| 699 |
MAINTAINER_MODE_TRUE |
| 700 |
PIC_CFLAGS |
| 701 |
HAVE_PYTHON_FALSE |
| 702 |
HAVE_PYTHON_TRUE |
| 703 |
pkgpyexecdir |
| 704 |
pyexecdir |
| 705 |
pkgpythondir |
| 706 |
pythondir |
| 707 |
PYTHON_EXEC_PREFIX |
| 708 |
PYTHON_PREFIX |
| 709 |
PYTHON_PLATFORM |
| 710 |
PYTHON_VERSION |
| 711 |
PYTHON |
| 712 |
INSTMAN_FALSE |
| 713 |
INSTMAN_TRUE |
| 714 |
GENMAN_FALSE |
| 715 |
GENMAN_TRUE |
| 716 |
DOCBOOK2X_MAN |
| 717 |
ac_ct_AR |
| 718 |
AR |
| 719 |
LN_S |
| 720 |
RANLIB |
| 721 |
CPP |
| 722 |
am__fastdepCC_FALSE |
| 723 |
am__fastdepCC_TRUE |
| 724 |
CCDEPMODE |
| 725 |
am__nodep |
| 726 |
AMDEPBACKSLASH |
| 727 |
AMDEP_FALSE |
| 728 |
AMDEP_TRUE |
| 729 |
am__include |
| 730 |
DEPDIR |
| 731 |
OBJEXT |
| 732 |
EXEEXT |
| 733 |
ac_ct_CC |
| 734 |
CPPFLAGS |
| 735 |
LDFLAGS |
| 736 |
CFLAGS |
| 737 |
CC |
| 738 |
am__xargs_n |
| 739 |
am__rm_f_notfound |
| 740 |
AM_BACKSLASH |
| 741 |
AM_DEFAULT_VERBOSITY |
| 742 |
AM_DEFAULT_V |
| 743 |
AM_V |
| 744 |
CSCOPE |
| 745 |
ETAGS |
| 746 |
CTAGS |
| 747 |
am__untar |
| 748 |
am__tar |
| 749 |
AMTAR |
| 750 |
am__leading_dot |
| 751 |
SET_MAKE |
| 752 |
AWK |
| 753 |
mkdir_p |
| 754 |
MKDIR_P |
| 755 |
INSTALL_STRIP_PROGRAM |
| 756 |
STRIP |
| 757 |
install_sh |
| 758 |
MAKEINFO |
| 759 |
AUTOHEADER |
| 760 |
AUTOMAKE |
| 761 |
AUTOCONF |
| 762 |
ACLOCAL |
| 763 |
VERSION |
| 764 |
PACKAGE |
| 765 |
CYGPATH_W |
| 766 |
am__isrc |
| 767 |
INSTALL_DATA |
| 768 |
INSTALL_SCRIPT |
| 769 |
INSTALL_PROGRAM |
| 770 |
target_os |
| 771 |
target_vendor |
| 772 |
target_cpu |
| 773 |
target |
| 774 |
host_os |
| 775 |
host_vendor |
| 776 |
host_cpu |
| 777 |
host |
| 778 |
build_os |
| 779 |
build_vendor |
| 780 |
build_cpu |
| 781 |
build |
| 782 |
RELEASE_MONTH |
| 783 |
target_alias |
| 784 |
host_alias |
| 785 |
build_alias |
| 786 |
LIBS |
| 787 |
ECHO_T |
| 788 |
ECHO_N |
| 789 |
ECHO_C |
| 790 |
DEFS |
| 791 |
mandir |
| 792 |
localedir |
| 793 |
libdir |
| 794 |
psdir |
| 795 |
pdfdir |
| 796 |
dvidir |
| 797 |
htmldir |
| 798 |
infodir |
| 799 |
docdir |
| 800 |
oldincludedir |
| 801 |
includedir |
| 802 |
runstatedir |
| 803 |
localstatedir |
| 804 |
sharedstatedir |
| 805 |
sysconfdir |
| 806 |
datadir |
| 807 |
datarootdir |
| 808 |
libexecdir |
| 809 |
sbindir |
| 810 |
bindir |
| 811 |
program_transform_name |
| 812 |
prefix |
| 813 |
exec_prefix |
| 814 |
PACKAGE_URL |
| 815 |
PACKAGE_BUGREPORT |
| 816 |
PACKAGE_STRING |
| 817 |
PACKAGE_VERSION |
| 818 |
PACKAGE_TARNAME |
| 819 |
PACKAGE_NAME |
| 820 |
PATH_SEPARATOR |
| 821 |
SHELL |
| 822 |
am__quote' |
| 823 |
ac_subst_files='' |
| 824 |
ac_user_opts=' |
| 825 |
enable_option_checking |
| 826 |
enable_silent_rules |
| 827 |
enable_dependency_tracking |
| 828 |
with_python_sys_prefix |
| 829 |
with_python_prefix |
| 830 |
with_python_exec_prefix |
| 831 |
enable_debug |
| 832 |
enable_warnings |
| 833 |
enable_maintainer_mode |
| 834 |
enable_nss |
| 835 |
enable_pam |
| 836 |
enable_utils |
| 837 |
enable_nslcd |
| 838 |
enable_pynslcd |
| 839 |
enable_sasl |
| 840 |
enable_kerberos |
| 841 |
enable_configfile_checking |
| 842 |
with_ldap_conf_file |
| 843 |
with_bindpw_file |
| 844 |
with_nslcd_pidfile |
| 845 |
with_nslcd_socket |
| 846 |
with_pam_seclib_dir |
| 847 |
with_module_name |
| 848 |
with_nss_ldap_soname |
| 849 |
with_pam_ldap_soname |
| 850 |
with_nss_maps |
| 851 |
with_nss_flavour |
| 852 |
with_ldap_lib |
| 853 |
' |
| 854 |
ac_precious_vars='build_alias |
| 855 |
host_alias |
| 856 |
target_alias |
| 857 |
CC |
| 858 |
CFLAGS |
| 859 |
LDFLAGS |
| 860 |
LIBS |
| 861 |
CPPFLAGS |
| 862 |
CPP |
| 863 |
PYTHON' |
| 864 |
|
| 865 |
|
| 866 |
# Initialize some variables set by options. |
| 867 |
ac_init_help= |
| 868 |
ac_init_version=false |
| 869 |
ac_unrecognized_opts= |
| 870 |
ac_unrecognized_sep= |
| 871 |
# The variables have the same names as the options, with |
| 872 |
# dashes changed to underlines. |
| 873 |
cache_file=/dev/null |
| 874 |
exec_prefix=NONE |
| 875 |
no_create= |
| 876 |
no_recursion= |
| 877 |
prefix=NONE |
| 878 |
program_prefix=NONE |
| 879 |
program_suffix=NONE |
| 880 |
program_transform_name=s,x,x, |
| 881 |
silent= |
| 882 |
site= |
| 883 |
srcdir= |
| 884 |
verbose= |
| 885 |
x_includes=NONE |
| 886 |
x_libraries=NONE |
| 887 |
|
| 888 |
# Installation directory options. |
| 889 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 890 |
# and all the variables that are supposed to be based on exec_prefix |
| 891 |
# by default will actually change. |
| 892 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 893 |
# (The list follows the same order as the GNU Coding Standards.) |
| 894 |
bindir='${exec_prefix}/bin' |
| 895 |
sbindir='${exec_prefix}/sbin' |
| 896 |
libexecdir='${exec_prefix}/libexec' |
| 897 |
datarootdir='${prefix}/share' |
| 898 |
datadir='${datarootdir}' |
| 899 |
sysconfdir='${prefix}/etc' |
| 900 |
sharedstatedir='${prefix}/com' |
| 901 |
localstatedir='${prefix}/var' |
| 902 |
runstatedir='${localstatedir}/run' |
| 903 |
includedir='${prefix}/include' |
| 904 |
oldincludedir='/usr/include' |
| 905 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 906 |
infodir='${datarootdir}/info' |
| 907 |
htmldir='${docdir}' |
| 908 |
dvidir='${docdir}' |
| 909 |
pdfdir='${docdir}' |
| 910 |
psdir='${docdir}' |
| 911 |
libdir='${exec_prefix}/lib' |
| 912 |
localedir='${datarootdir}/locale' |
| 913 |
mandir='${datarootdir}/man' |
| 914 |
|
| 915 |
ac_prev= |
| 916 |
ac_dashdash= |
| 917 |
for ac_option |
| 918 |
do |
| 919 |
# If the previous option needs an argument, assign it. |
| 920 |
if test -n "$ac_prev"; then |
| 921 |
eval $ac_prev=\$ac_option |
| 922 |
ac_prev= |
| 923 |
continue |
| 924 |
fi |
| 925 |
|
| 926 |
case $ac_option in |
| 927 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 928 |
*=) ac_optarg= ;; |
| 929 |
*) ac_optarg=yes ;; |
| 930 |
esac |
| 931 |
|
| 932 |
case $ac_dashdash$ac_option in |
| 933 |
--) |
| 934 |
ac_dashdash=yes ;; |
| 935 |
|
| 936 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 937 |
ac_prev=bindir ;; |
| 938 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 939 |
bindir=$ac_optarg ;; |
| 940 |
|
| 941 |
-build | --build | --buil | --bui | --bu) |
| 942 |
ac_prev=build_alias ;; |
| 943 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 944 |
build_alias=$ac_optarg ;; |
| 945 |
|
| 946 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 947 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 948 |
ac_prev=cache_file ;; |
| 949 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 950 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 951 |
cache_file=$ac_optarg ;; |
| 952 |
|
| 953 |
--config-cache | -C) |
| 954 |
cache_file=config.cache ;; |
| 955 |
|
| 956 |
-datadir | --datadir | --datadi | --datad) |
| 957 |
ac_prev=datadir ;; |
| 958 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 959 |
datadir=$ac_optarg ;; |
| 960 |
|
| 961 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 962 |
| --dataroo | --dataro | --datar) |
| 963 |
ac_prev=datarootdir ;; |
| 964 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 965 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 966 |
datarootdir=$ac_optarg ;; |
| 967 |
|
| 968 |
-disable-* | --disable-*) |
| 969 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 970 |
# Reject names that are not valid shell variable names. |
| 971 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 972 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 973 |
ac_useropt_orig=$ac_useropt |
| 974 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 975 |
case $ac_user_opts in |
| 976 |
*" |
| 977 |
"enable_$ac_useropt" |
| 978 |
"*) ;; |
| 979 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 980 |
ac_unrecognized_sep=', ';; |
| 981 |
esac |
| 982 |
eval enable_$ac_useropt=no ;; |
| 983 |
|
| 984 |
-docdir | --docdir | --docdi | --doc | --do) |
| 985 |
ac_prev=docdir ;; |
| 986 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 987 |
docdir=$ac_optarg ;; |
| 988 |
|
| 989 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 990 |
ac_prev=dvidir ;; |
| 991 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 992 |
dvidir=$ac_optarg ;; |
| 993 |
|
| 994 |
-enable-* | --enable-*) |
| 995 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 996 |
# Reject names that are not valid shell variable names. |
| 997 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 998 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 999 |
ac_useropt_orig=$ac_useropt |
| 1000 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1001 |
case $ac_user_opts in |
| 1002 |
*" |
| 1003 |
"enable_$ac_useropt" |
| 1004 |
"*) ;; |
| 1005 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1006 |
ac_unrecognized_sep=', ';; |
| 1007 |
esac |
| 1008 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1009 |
|
| 1010 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1011 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1012 |
| --exec | --exe | --ex) |
| 1013 |
ac_prev=exec_prefix ;; |
| 1014 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1015 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1016 |
| --exec=* | --exe=* | --ex=*) |
| 1017 |
exec_prefix=$ac_optarg ;; |
| 1018 |
|
| 1019 |
-gas | --gas | --ga | --g) |
| 1020 |
# Obsolete; use --with-gas. |
| 1021 |
with_gas=yes ;; |
| 1022 |
|
| 1023 |
-help | --help | --hel | --he | -h) |
| 1024 |
ac_init_help=long ;; |
| 1025 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1026 |
ac_init_help=recursive ;; |
| 1027 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1028 |
ac_init_help=short ;; |
| 1029 |
|
| 1030 |
-host | --host | --hos | --ho) |
| 1031 |
ac_prev=host_alias ;; |
| 1032 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1033 |
host_alias=$ac_optarg ;; |
| 1034 |
|
| 1035 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1036 |
ac_prev=htmldir ;; |
| 1037 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1038 |
| --ht=*) |
| 1039 |
htmldir=$ac_optarg ;; |
| 1040 |
|
| 1041 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1042 |
| --includ | --inclu | --incl | --inc) |
| 1043 |
ac_prev=includedir ;; |
| 1044 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1045 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1046 |
includedir=$ac_optarg ;; |
| 1047 |
|
| 1048 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1049 |
ac_prev=infodir ;; |
| 1050 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1051 |
infodir=$ac_optarg ;; |
| 1052 |
|
| 1053 |
-libdir | --libdir | --libdi | --libd) |
| 1054 |
ac_prev=libdir ;; |
| 1055 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1056 |
libdir=$ac_optarg ;; |
| 1057 |
|
| 1058 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1059 |
| --libexe | --libex | --libe) |
| 1060 |
ac_prev=libexecdir ;; |
| 1061 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1062 |
| --libexe=* | --libex=* | --libe=*) |
| 1063 |
libexecdir=$ac_optarg ;; |
| 1064 |
|
| 1065 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1066 |
ac_prev=localedir ;; |
| 1067 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1068 |
localedir=$ac_optarg ;; |
| 1069 |
|
| 1070 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1071 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1072 |
ac_prev=localstatedir ;; |
| 1073 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1074 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1075 |
localstatedir=$ac_optarg ;; |
| 1076 |
|
| 1077 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1078 |
ac_prev=mandir ;; |
| 1079 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1080 |
mandir=$ac_optarg ;; |
| 1081 |
|
| 1082 |
-nfp | --nfp | --nf) |
| 1083 |
# Obsolete; use --without-fp. |
| 1084 |
with_fp=no ;; |
| 1085 |
|
| 1086 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1087 |
| --no-cr | --no-c | -n) |
| 1088 |
no_create=yes ;; |
| 1089 |
|
| 1090 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1091 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1092 |
no_recursion=yes ;; |
| 1093 |
|
| 1094 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1095 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1096 |
| --oldin | --oldi | --old | --ol | --o) |
| 1097 |
ac_prev=oldincludedir ;; |
| 1098 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1099 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1100 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1101 |
oldincludedir=$ac_optarg ;; |
| 1102 |
|
| 1103 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1104 |
ac_prev=prefix ;; |
| 1105 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1106 |
prefix=$ac_optarg ;; |
| 1107 |
|
| 1108 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1109 |
| --program-pre | --program-pr | --program-p) |
| 1110 |
ac_prev=program_prefix ;; |
| 1111 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1112 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1113 |
program_prefix=$ac_optarg ;; |
| 1114 |
|
| 1115 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1116 |
| --program-suf | --program-su | --program-s) |
| 1117 |
ac_prev=program_suffix ;; |
| 1118 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1119 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1120 |
program_suffix=$ac_optarg ;; |
| 1121 |
|
| 1122 |
-program-transform-name | --program-transform-name \ |
| 1123 |
| --program-transform-nam | --program-transform-na \ |
| 1124 |
| --program-transform-n | --program-transform- \ |
| 1125 |
| --program-transform | --program-transfor \ |
| 1126 |
| --program-transfo | --program-transf \ |
| 1127 |
| --program-trans | --program-tran \ |
| 1128 |
| --progr-tra | --program-tr | --program-t) |
| 1129 |
ac_prev=program_transform_name ;; |
| 1130 |
-program-transform-name=* | --program-transform-name=* \ |
| 1131 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1132 |
| --program-transform-n=* | --program-transform-=* \ |
| 1133 |
| --program-transform=* | --program-transfor=* \ |
| 1134 |
| --program-transfo=* | --program-transf=* \ |
| 1135 |
| --program-trans=* | --program-tran=* \ |
| 1136 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1137 |
program_transform_name=$ac_optarg ;; |
| 1138 |
|
| 1139 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1140 |
ac_prev=pdfdir ;; |
| 1141 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1142 |
pdfdir=$ac_optarg ;; |
| 1143 |
|
| 1144 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1145 |
ac_prev=psdir ;; |
| 1146 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1147 |
psdir=$ac_optarg ;; |
| 1148 |
|
| 1149 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1150 |
| -silent | --silent | --silen | --sile | --sil) |
| 1151 |
silent=yes ;; |
| 1152 |
|
| 1153 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1154 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1155 |
| --run | --ru | --r) |
| 1156 |
ac_prev=runstatedir ;; |
| 1157 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1158 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1159 |
| --run=* | --ru=* | --r=*) |
| 1160 |
runstatedir=$ac_optarg ;; |
| 1161 |
|
| 1162 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1163 |
ac_prev=sbindir ;; |
| 1164 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1165 |
| --sbi=* | --sb=*) |
| 1166 |
sbindir=$ac_optarg ;; |
| 1167 |
|
| 1168 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1169 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1170 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1171 |
| --sha | --sh) |
| 1172 |
ac_prev=sharedstatedir ;; |
| 1173 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1174 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1175 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1176 |
| --sha=* | --sh=*) |
| 1177 |
sharedstatedir=$ac_optarg ;; |
| 1178 |
|
| 1179 |
-site | --site | --sit) |
| 1180 |
ac_prev=site ;; |
| 1181 |
-site=* | --site=* | --sit=*) |
| 1182 |
site=$ac_optarg ;; |
| 1183 |
|
| 1184 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1185 |
ac_prev=srcdir ;; |
| 1186 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1187 |
srcdir=$ac_optarg ;; |
| 1188 |
|
| 1189 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1190 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1191 |
ac_prev=sysconfdir ;; |
| 1192 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1193 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1194 |
sysconfdir=$ac_optarg ;; |
| 1195 |
|
| 1196 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1197 |
ac_prev=target_alias ;; |
| 1198 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1199 |
target_alias=$ac_optarg ;; |
| 1200 |
|
| 1201 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1202 |
verbose=yes ;; |
| 1203 |
|
| 1204 |
-version | --version | --versio | --versi | --vers | -V) |
| 1205 |
ac_init_version=: ;; |
| 1206 |
|
| 1207 |
-with-* | --with-*) |
| 1208 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1209 |
# Reject names that are not valid shell variable names. |
| 1210 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1211 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1212 |
ac_useropt_orig=$ac_useropt |
| 1213 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1214 |
case $ac_user_opts in |
| 1215 |
*" |
| 1216 |
"with_$ac_useropt" |
| 1217 |
"*) ;; |
| 1218 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1219 |
ac_unrecognized_sep=', ';; |
| 1220 |
esac |
| 1221 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1222 |
|
| 1223 |
-without-* | --without-*) |
| 1224 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1225 |
# Reject names that are not valid shell variable names. |
| 1226 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1227 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1228 |
ac_useropt_orig=$ac_useropt |
| 1229 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1230 |
case $ac_user_opts in |
| 1231 |
*" |
| 1232 |
"with_$ac_useropt" |
| 1233 |
"*) ;; |
| 1234 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1235 |
ac_unrecognized_sep=', ';; |
| 1236 |
esac |
| 1237 |
eval with_$ac_useropt=no ;; |
| 1238 |
|
| 1239 |
--x) |
| 1240 |
# Obsolete; use --with-x. |
| 1241 |
with_x=yes ;; |
| 1242 |
|
| 1243 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1244 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1245 |
ac_prev=x_includes ;; |
| 1246 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1247 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1248 |
x_includes=$ac_optarg ;; |
| 1249 |
|
| 1250 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1251 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1252 |
ac_prev=x_libraries ;; |
| 1253 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1254 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1255 |
x_libraries=$ac_optarg ;; |
| 1256 |
|
| 1257 |
-*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1258 |
Try '$0 --help' for more information" |
| 1259 |
;; |
| 1260 |
|
| 1261 |
*=*) |
| 1262 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1263 |
# Reject names that are not valid shell variable names. |
| 1264 |
case $ac_envvar in #( |
| 1265 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1266 |
as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1267 |
esac |
| 1268 |
eval $ac_envvar=\$ac_optarg |
| 1269 |
export $ac_envvar ;; |
| 1270 |
|
| 1271 |
*) |
| 1272 |
# FIXME: should be removed in autoconf 3.0. |
| 1273 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1274 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1275 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1276 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1277 |
;; |
| 1278 |
|
| 1279 |
esac |
| 1280 |
done |
| 1281 |
|
| 1282 |
if test -n "$ac_prev"; then |
| 1283 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1284 |
as_fn_error $? "missing argument to $ac_option" |
| 1285 |
fi |
| 1286 |
|
| 1287 |
if test -n "$ac_unrecognized_opts"; then |
| 1288 |
case $enable_option_checking in |
| 1289 |
no) ;; |
| 1290 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1291 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1292 |
esac |
| 1293 |
fi |
| 1294 |
|
| 1295 |
# Check all directory arguments for consistency. |
| 1296 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1297 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1298 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1299 |
libdir localedir mandir runstatedir |
| 1300 |
do |
| 1301 |
eval ac_val=\$$ac_var |
| 1302 |
# Remove trailing slashes. |
| 1303 |
case $ac_val in |
| 1304 |
*/ ) |
| 1305 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1306 |
eval $ac_var=\$ac_val;; |
| 1307 |
esac |
| 1308 |
# Be sure to have absolute directory names. |
| 1309 |
case $ac_val in |
| 1310 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1311 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1312 |
esac |
| 1313 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1314 |
done |
| 1315 |
|
| 1316 |
# There might be people who depend on the old broken behavior: '$host' |
| 1317 |
# used to hold the argument of --host etc. |
| 1318 |
# FIXME: To remove some day. |
| 1319 |
build=$build_alias |
| 1320 |
host=$host_alias |
| 1321 |
target=$target_alias |
| 1322 |
|
| 1323 |
# FIXME: To remove some day. |
| 1324 |
if test "x$host_alias" != x; then |
| 1325 |
if test "x$build_alias" = x; then |
| 1326 |
cross_compiling=maybe |
| 1327 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1328 |
cross_compiling=yes |
| 1329 |
fi |
| 1330 |
fi |
| 1331 |
|
| 1332 |
ac_tool_prefix= |
| 1333 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1334 |
|
| 1335 |
test "$silent" = yes && exec 6>/dev/null |
| 1336 |
|
| 1337 |
|
| 1338 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1339 |
ac_ls_di=`ls -di .` && |
| 1340 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1341 |
as_fn_error $? "working directory cannot be determined" |
| 1342 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1343 |
as_fn_error $? "pwd does not report name of working directory" |
| 1344 |
|
| 1345 |
|
| 1346 |
# Find the source files, if location was not specified. |
| 1347 |
if test -z "$srcdir"; then |
| 1348 |
ac_srcdir_defaulted=yes |
| 1349 |
# Try the directory containing this script, then the parent directory. |
| 1350 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1351 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1352 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1353 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1354 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1355 |
printf "%s\n" X"$as_myself" | |
| 1356 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1357 |
s//\1/ |
| 1358 |
q |
| 1359 |
} |
| 1360 |
/^X\(\/\/\)[^/].*/{ |
| 1361 |
s//\1/ |
| 1362 |
q |
| 1363 |
} |
| 1364 |
/^X\(\/\/\)$/{ |
| 1365 |
s//\1/ |
| 1366 |
q |
| 1367 |
} |
| 1368 |
/^X\(\/\).*/{ |
| 1369 |
s//\1/ |
| 1370 |
q |
| 1371 |
} |
| 1372 |
s/.*/./; q'` |
| 1373 |
srcdir=$ac_confdir |
| 1374 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1375 |
srcdir=.. |
| 1376 |
fi |
| 1377 |
else |
| 1378 |
ac_srcdir_defaulted=no |
| 1379 |
fi |
| 1380 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1381 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1382 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1383 |
fi |
| 1384 |
ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1385 |
ac_abs_confdir=`( |
| 1386 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1387 |
pwd)` |
| 1388 |
# When building in place, set srcdir=. |
| 1389 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1390 |
srcdir=. |
| 1391 |
fi |
| 1392 |
# Remove unnecessary trailing slashes from srcdir. |
| 1393 |
# Double slashes in file names in object file debugging info |
| 1394 |
# mess up M-x gdb in Emacs. |
| 1395 |
case $srcdir in |
| 1396 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1397 |
esac |
| 1398 |
for ac_var in $ac_precious_vars; do |
| 1399 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1400 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1401 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1402 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1403 |
done |
| 1404 |
|
| 1405 |
# |
| 1406 |
# Report the --help message. |
| 1407 |
# |
| 1408 |
if test "$ac_init_help" = "long"; then |
| 1409 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1410 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1411 |
cat <<_ACEOF |
| 1412 |
'configure' configures nss-pam-ldapd 0.9.13 to adapt to many kinds of systems. |
| 1413 |
|
| 1414 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1415 |
|
| 1416 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1417 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1418 |
|
| 1419 |
Defaults for the options are specified in brackets. |
| 1420 |
|
| 1421 |
Configuration: |
| 1422 |
-h, --help display this help and exit |
| 1423 |
--help=short display options specific to this package |
| 1424 |
--help=recursive display the short help of all the included packages |
| 1425 |
-V, --version display version information and exit |
| 1426 |
-q, --quiet, --silent do not print 'checking ...' messages |
| 1427 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1428 |
-C, --config-cache alias for '--cache-file=config.cache' |
| 1429 |
-n, --no-create do not create output files |
| 1430 |
--srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1431 |
|
| 1432 |
Installation directories: |
| 1433 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1434 |
[$ac_default_prefix] |
| 1435 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1436 |
[PREFIX] |
| 1437 |
|
| 1438 |
By default, 'make install' will install all the files in |
| 1439 |
'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1440 |
an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1441 |
for instance '--prefix=\$HOME'. |
| 1442 |
|
| 1443 |
For better control, use the options below. |
| 1444 |
|
| 1445 |
Fine tuning of the installation directories: |
| 1446 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1447 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1448 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1449 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1450 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1451 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1452 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1453 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1454 |
--includedir=DIR C header files [PREFIX/include] |
| 1455 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1456 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1457 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1458 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1459 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1460 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1461 |
--docdir=DIR documentation root [DATAROOTDIR/doc/nss-pam-ldapd] |
| 1462 |
--htmldir=DIR html documentation [DOCDIR] |
| 1463 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1464 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1465 |
--psdir=DIR ps documentation [DOCDIR] |
| 1466 |
_ACEOF |
| 1467 |
|
| 1468 |
cat <<\_ACEOF |
| 1469 |
|
| 1470 |
Program names: |
| 1471 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1472 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1473 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1474 |
|
| 1475 |
System types: |
| 1476 |
--build=BUILD configure for building on BUILD [guessed] |
| 1477 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1478 |
--target=TARGET configure for building compilers for TARGET [HOST] |
| 1479 |
_ACEOF |
| 1480 |
fi |
| 1481 |
|
| 1482 |
if test -n "$ac_init_help"; then |
| 1483 |
case $ac_init_help in |
| 1484 |
short | recursive ) echo "Configuration of nss-pam-ldapd 0.9.13:";; |
| 1485 |
esac |
| 1486 |
cat <<\_ACEOF |
| 1487 |
|
| 1488 |
Optional Features: |
| 1489 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1490 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1491 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1492 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1493 |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1494 |
--enable-dependency-tracking |
| 1495 |
do not reject slow dependency extractors |
| 1496 |
--disable-dependency-tracking |
| 1497 |
speeds up one-time build |
| 1498 |
--enable-debug enable extensive debugging and logging |
| 1499 |
--enable-warnings enable extra compiler warnings (gcc) |
| 1500 |
--disable-maintainer-mode |
| 1501 |
disable make rules and dependencies not useful (and |
| 1502 |
sometimes confusing) to the casual installer |
| 1503 |
--disable-nss build the NSS module [enabled] |
| 1504 |
--disable-pam build the PAM module [enabled] |
| 1505 |
--disable-utils build the the command-line utilities [auto] |
| 1506 |
--disable-nslcd build the nslcd daemon [enabled] |
| 1507 |
--enable-pynslcd build the pynslcd daemon [disabled] |
| 1508 |
--disable-sasl disable SASL support [enabled] |
| 1509 |
--disable-kerberos disable Kerberos support [enabled] |
| 1510 |
--disable-configfile-checking |
| 1511 |
check configfile options [enabled] |
| 1512 |
|
| 1513 |
Optional Packages: |
| 1514 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1515 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1516 |
--with-python-sys-prefix |
| 1517 |
use Python's sys.prefix and sys.exec_prefix values |
| 1518 |
--with-python_prefix override the default PYTHON_PREFIX |
| 1519 |
--with-python_exec_prefix |
| 1520 |
override the default PYTHON_EXEC_PREFIX |
| 1521 |
--with-ldap-conf-file=PATH |
| 1522 |
path to nslcd configuration file [/etc/nslcd.conf] |
| 1523 |
--with-bindpw-file=PATH path to file with value for bindpw [disabled] |
| 1524 |
--with-nslcd-pidfile=PATH |
| 1525 |
path to pidfile [/var/run/nslcd/nslcd.pid] |
| 1526 |
--with-nslcd-socket=PATH |
| 1527 |
path to socket [/var/run/nslcd/socket] |
| 1528 |
--with-pam-seclib-dir=PAM_SECLIB_DIR |
| 1529 |
path to PAM security library [auto] |
| 1530 |
--with-module-name=NAME name of NSS and PAM modules [ldap] |
| 1531 |
--with-nss-ldap-soname=SONAME |
| 1532 |
name of NSS module [auto] |
| 1533 |
--with-pam-ldap-soname=SONAME |
| 1534 |
name of PAM module [auto] |
| 1535 |
--with-nss-maps=MAP LIST |
| 1536 |
comma separated list of NSS maps to build [all] |
| 1537 |
--with-nss-flavour=auto|glibc|solaris|freebsd |
| 1538 |
the libc flavour to build our NSS module for [auto] |
| 1539 |
--with-ldap-lib=TYPE select ldap library |
| 1540 |
(auto|netscape5|netscape4|netscape3|umich|openldap) |
| 1541 |
[auto] |
| 1542 |
|
| 1543 |
Some influential environment variables: |
| 1544 |
CC C compiler command |
| 1545 |
CFLAGS C compiler flags |
| 1546 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1547 |
nonstandard directory <lib dir> |
| 1548 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1549 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1550 |
you have headers in a nonstandard directory <include dir> |
| 1551 |
CPP C preprocessor |
| 1552 |
PYTHON the Python interpreter |
| 1553 |
|
| 1554 |
Use these variables to override the choices made by 'configure' or to help |
| 1555 |
it to find libraries and programs with nonstandard names/locations. |
| 1556 |
|
| 1557 |
Report bugs to <[email protected]>. |
| 1558 |
nss-pam-ldapd home page: <https://arthurdejong.org/nss-pam-ldapd/>. |
| 1559 |
_ACEOF |
| 1560 |
ac_status=$? |
| 1561 |
fi |
| 1562 |
|
| 1563 |
if test "$ac_init_help" = "recursive"; then |
| 1564 |
# If there are subdirs, report their specific --help. |
| 1565 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1566 |
test -d "$ac_dir" || |
| 1567 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1568 |
continue |
| 1569 |
ac_builddir=. |
| 1570 |
|
| 1571 |
case "$ac_dir" in |
| 1572 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1573 |
*) |
| 1574 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1575 |
# A ".." for each directory in $ac_dir_suffix. |
| 1576 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1577 |
case $ac_top_builddir_sub in |
| 1578 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1579 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1580 |
esac ;; |
| 1581 |
esac |
| 1582 |
ac_abs_top_builddir=$ac_pwd |
| 1583 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1584 |
# for backward compatibility: |
| 1585 |
ac_top_builddir=$ac_top_build_prefix |
| 1586 |
|
| 1587 |
case $srcdir in |
| 1588 |
.) # We are building in place. |
| 1589 |
ac_srcdir=. |
| 1590 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1591 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1592 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1593 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1594 |
ac_top_srcdir=$srcdir |
| 1595 |
ac_abs_top_srcdir=$srcdir ;; |
| 1596 |
*) # Relative name. |
| 1597 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1598 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1599 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1600 |
esac |
| 1601 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1602 |
|
| 1603 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1604 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1605 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1606 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1607 |
echo && |
| 1608 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1609 |
elif test -f "$ac_srcdir/configure"; then |
| 1610 |
echo && |
| 1611 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1612 |
else |
| 1613 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1614 |
fi || ac_status=$? |
| 1615 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1616 |
done |
| 1617 |
fi |
| 1618 |
|
| 1619 |
test -n "$ac_init_help" && exit $ac_status |
| 1620 |
if $ac_init_version; then |
| 1621 |
cat <<\_ACEOF |
| 1622 |
nss-pam-ldapd configure 0.9.13 |
| 1623 |
generated by GNU Autoconf 2.72 |
| 1624 |
|
| 1625 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 1626 |
This configure script is free software; the Free Software Foundation |
| 1627 |
gives unlimited permission to copy, distribute and modify it. |
| 1628 |
|
| 1629 |
Copyright (C) 2006 Luke Howard |
| 1630 |
Copyright (C) 2006 West Consulting |
| 1631 |
Copyright (C) 2006-2025 Arthur de Jong |
| 1632 |
|
| 1633 |
This configure script is derived from configure.ac which is free software; |
| 1634 |
you can redistribute it and/or modify it under the terms of the GNU Lesser |
| 1635 |
General Public License as published by the Free Software Foundation; either |
| 1636 |
version 2.1 of the License, or (at your option) any later version. See the |
| 1637 |
configure.ac file for more details. |
| 1638 |
_ACEOF |
| 1639 |
exit |
| 1640 |
fi |
| 1641 |
|
| 1642 |
## ------------------------ ## |
| 1643 |
## Autoconf initialization. ## |
| 1644 |
## ------------------------ ## |
| 1645 |
|
| 1646 |
# ac_fn_c_try_compile LINENO |
| 1647 |
# -------------------------- |
| 1648 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1649 |
ac_fn_c_try_compile () |
| 1650 |
{ |
| 1651 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1652 |
rm -f conftest.$ac_objext conftest.beam |
| 1653 |
if { { ac_try="$ac_compile" |
| 1654 |
case "(($ac_try" in |
| 1655 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1656 |
*) ac_try_echo=$ac_try;; |
| 1657 |
esac |
| 1658 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1659 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1660 |
(eval "$ac_compile") 2>conftest.err |
| 1661 |
ac_status=$? |
| 1662 |
if test -s conftest.err; then |
| 1663 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1664 |
cat conftest.er1 >&5 |
| 1665 |
mv -f conftest.er1 conftest.err |
| 1666 |
fi |
| 1667 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1668 |
test $ac_status = 0; } && { |
| 1669 |
test -z "$ac_c_werror_flag" || |
| 1670 |
test ! -s conftest.err |
| 1671 |
} && test -s conftest.$ac_objext |
| 1672 |
then : |
| 1673 |
ac_retval=0 |
| 1674 |
else case e in #( |
| 1675 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1676 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1677 |
|
| 1678 |
ac_retval=1 ;; |
| 1679 |
esac |
| 1680 |
fi |
| 1681 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1682 |
as_fn_set_status $ac_retval |
| 1683 |
|
| 1684 |
} # ac_fn_c_try_compile |
| 1685 |
|
| 1686 |
# ac_fn_c_try_cpp LINENO |
| 1687 |
# ---------------------- |
| 1688 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1689 |
ac_fn_c_try_cpp () |
| 1690 |
{ |
| 1691 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1692 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1693 |
case "(($ac_try" in |
| 1694 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1695 |
*) ac_try_echo=$ac_try;; |
| 1696 |
esac |
| 1697 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1698 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1699 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1700 |
ac_status=$? |
| 1701 |
if test -s conftest.err; then |
| 1702 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1703 |
cat conftest.er1 >&5 |
| 1704 |
mv -f conftest.er1 conftest.err |
| 1705 |
fi |
| 1706 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1707 |
test $ac_status = 0; } > conftest.i && { |
| 1708 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1709 |
test ! -s conftest.err |
| 1710 |
} |
| 1711 |
then : |
| 1712 |
ac_retval=0 |
| 1713 |
else case e in #( |
| 1714 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1715 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1716 |
|
| 1717 |
ac_retval=1 ;; |
| 1718 |
esac |
| 1719 |
fi |
| 1720 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1721 |
as_fn_set_status $ac_retval |
| 1722 |
|
| 1723 |
} # ac_fn_c_try_cpp |
| 1724 |
|
| 1725 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1726 |
# ------------------------------------------------------- |
| 1727 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 1728 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 1729 |
ac_fn_c_check_header_compile () |
| 1730 |
{ |
| 1731 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1733 |
printf %s "checking for $2... " >&6; } |
| 1734 |
if eval test \${$3+y} |
| 1735 |
then : |
| 1736 |
printf %s "(cached) " >&6 |
| 1737 |
else case e in #( |
| 1738 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1739 |
/* end confdefs.h. */ |
| 1740 |
$4 |
| 1741 |
#include <$2> |
| 1742 |
_ACEOF |
| 1743 |
if ac_fn_c_try_compile "$LINENO" |
| 1744 |
then : |
| 1745 |
eval "$3=yes" |
| 1746 |
else case e in #( |
| 1747 |
e) eval "$3=no" ;; |
| 1748 |
esac |
| 1749 |
fi |
| 1750 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1751 |
esac |
| 1752 |
fi |
| 1753 |
eval ac_res=\$$3 |
| 1754 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1755 |
printf "%s\n" "$ac_res" >&6; } |
| 1756 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1757 |
|
| 1758 |
} # ac_fn_c_check_header_compile |
| 1759 |
|
| 1760 |
# ac_fn_c_try_link LINENO |
| 1761 |
# ----------------------- |
| 1762 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1763 |
ac_fn_c_try_link () |
| 1764 |
{ |
| 1765 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1766 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1767 |
if { { ac_try="$ac_link" |
| 1768 |
case "(($ac_try" in |
| 1769 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1770 |
*) ac_try_echo=$ac_try;; |
| 1771 |
esac |
| 1772 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1773 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1774 |
(eval "$ac_link") 2>conftest.err |
| 1775 |
ac_status=$? |
| 1776 |
if test -s conftest.err; then |
| 1777 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1778 |
cat conftest.er1 >&5 |
| 1779 |
mv -f conftest.er1 conftest.err |
| 1780 |
fi |
| 1781 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1782 |
test $ac_status = 0; } && { |
| 1783 |
test -z "$ac_c_werror_flag" || |
| 1784 |
test ! -s conftest.err |
| 1785 |
} && test -s conftest$ac_exeext && { |
| 1786 |
test "$cross_compiling" = yes || |
| 1787 |
test -x conftest$ac_exeext |
| 1788 |
} |
| 1789 |
then : |
| 1790 |
ac_retval=0 |
| 1791 |
else case e in #( |
| 1792 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1793 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1794 |
|
| 1795 |
ac_retval=1 ;; |
| 1796 |
esac |
| 1797 |
fi |
| 1798 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1799 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1800 |
# interfere with the next link command; also delete a directory that is |
| 1801 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1802 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1803 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1804 |
as_fn_set_status $ac_retval |
| 1805 |
|
| 1806 |
} # ac_fn_c_try_link |
| 1807 |
|
| 1808 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 1809 |
# ---------------------------------- |
| 1810 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1811 |
ac_fn_c_check_func () |
| 1812 |
{ |
| 1813 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1814 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1815 |
printf %s "checking for $2... " >&6; } |
| 1816 |
if eval test \${$3+y} |
| 1817 |
then : |
| 1818 |
printf %s "(cached) " >&6 |
| 1819 |
else case e in #( |
| 1820 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1821 |
/* end confdefs.h. */ |
| 1822 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1823 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1824 |
#define $2 innocuous_$2 |
| 1825 |
|
| 1826 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1827 |
which can conflict with char $2 (void); below. */ |
| 1828 |
|
| 1829 |
#include <limits.h> |
| 1830 |
#undef $2 |
| 1831 |
|
| 1832 |
/* Override any GCC internal prototype to avoid an error. |
| 1833 |
Use char because int might match the return type of a GCC |
| 1834 |
builtin and then its argument prototype would still apply. */ |
| 1835 |
#ifdef __cplusplus |
| 1836 |
extern "C" |
| 1837 |
#endif |
| 1838 |
char $2 (void); |
| 1839 |
/* The GNU C library defines this for functions which it implements |
| 1840 |
to always fail with ENOSYS. Some functions are actually named |
| 1841 |
something starting with __ and the normal name is an alias. */ |
| 1842 |
#if defined __stub_$2 || defined __stub___$2 |
| 1843 |
choke me |
| 1844 |
#endif |
| 1845 |
|
| 1846 |
int |
| 1847 |
main (void) |
| 1848 |
{ |
| 1849 |
return $2 (); |
| 1850 |
; |
| 1851 |
return 0; |
| 1852 |
} |
| 1853 |
_ACEOF |
| 1854 |
if ac_fn_c_try_link "$LINENO" |
| 1855 |
then : |
| 1856 |
eval "$3=yes" |
| 1857 |
else case e in #( |
| 1858 |
e) eval "$3=no" ;; |
| 1859 |
esac |
| 1860 |
fi |
| 1861 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1862 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 1863 |
esac |
| 1864 |
fi |
| 1865 |
eval ac_res=\$$3 |
| 1866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1867 |
printf "%s\n" "$ac_res" >&6; } |
| 1868 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1869 |
|
| 1870 |
} # ac_fn_c_check_func |
| 1871 |
|
| 1872 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1873 |
# ------------------------------------------- |
| 1874 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1875 |
# variable VAR accordingly. |
| 1876 |
ac_fn_c_check_type () |
| 1877 |
{ |
| 1878 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1879 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1880 |
printf %s "checking for $2... " >&6; } |
| 1881 |
if eval test \${$3+y} |
| 1882 |
then : |
| 1883 |
printf %s "(cached) " >&6 |
| 1884 |
else case e in #( |
| 1885 |
e) eval "$3=no" |
| 1886 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1887 |
/* end confdefs.h. */ |
| 1888 |
$4 |
| 1889 |
int |
| 1890 |
main (void) |
| 1891 |
{ |
| 1892 |
if (sizeof ($2)) |
| 1893 |
return 0; |
| 1894 |
; |
| 1895 |
return 0; |
| 1896 |
} |
| 1897 |
_ACEOF |
| 1898 |
if ac_fn_c_try_compile "$LINENO" |
| 1899 |
then : |
| 1900 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1901 |
/* end confdefs.h. */ |
| 1902 |
$4 |
| 1903 |
int |
| 1904 |
main (void) |
| 1905 |
{ |
| 1906 |
if (sizeof (($2))) |
| 1907 |
return 0; |
| 1908 |
; |
| 1909 |
return 0; |
| 1910 |
} |
| 1911 |
_ACEOF |
| 1912 |
if ac_fn_c_try_compile "$LINENO" |
| 1913 |
then : |
| 1914 |
|
| 1915 |
else case e in #( |
| 1916 |
e) eval "$3=yes" ;; |
| 1917 |
esac |
| 1918 |
fi |
| 1919 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1920 |
fi |
| 1921 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1922 |
esac |
| 1923 |
fi |
| 1924 |
eval ac_res=\$$3 |
| 1925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1926 |
printf "%s\n" "$ac_res" >&6; } |
| 1927 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1928 |
|
| 1929 |
} # ac_fn_c_check_type |
| 1930 |
|
| 1931 |
# ac_fn_c_try_run LINENO |
| 1932 |
# ---------------------- |
| 1933 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1934 |
# executables *can* be run. |
| 1935 |
ac_fn_c_try_run () |
| 1936 |
{ |
| 1937 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1938 |
if { { ac_try="$ac_link" |
| 1939 |
case "(($ac_try" in |
| 1940 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1941 |
*) ac_try_echo=$ac_try;; |
| 1942 |
esac |
| 1943 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1944 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1945 |
(eval "$ac_link") 2>&5 |
| 1946 |
ac_status=$? |
| 1947 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1948 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1949 |
{ { case "(($ac_try" in |
| 1950 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1951 |
*) ac_try_echo=$ac_try;; |
| 1952 |
esac |
| 1953 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1954 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1955 |
(eval "$ac_try") 2>&5 |
| 1956 |
ac_status=$? |
| 1957 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1958 |
test $ac_status = 0; }; } |
| 1959 |
then : |
| 1960 |
ac_retval=0 |
| 1961 |
else case e in #( |
| 1962 |
e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1963 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1964 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1965 |
|
| 1966 |
ac_retval=$ac_status ;; |
| 1967 |
esac |
| 1968 |
fi |
| 1969 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1970 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1971 |
as_fn_set_status $ac_retval |
| 1972 |
|
| 1973 |
} # ac_fn_c_try_run |
| 1974 |
|
| 1975 |
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 1976 |
# ------------------------------------------------------------------ |
| 1977 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1978 |
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 1979 |
ac_fn_check_decl () |
| 1980 |
{ |
| 1981 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1982 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1984 |
printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 1985 |
if eval test \${$3+y} |
| 1986 |
then : |
| 1987 |
printf %s "(cached) " >&6 |
| 1988 |
else case e in #( |
| 1989 |
e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1990 |
eval ac_save_FLAGS=\$$6 |
| 1991 |
as_fn_append $6 " $5" |
| 1992 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1993 |
/* end confdefs.h. */ |
| 1994 |
$4 |
| 1995 |
int |
| 1996 |
main (void) |
| 1997 |
{ |
| 1998 |
#ifndef $as_decl_name |
| 1999 |
#ifdef __cplusplus |
| 2000 |
(void) $as_decl_use; |
| 2001 |
#else |
| 2002 |
(void) $as_decl_name; |
| 2003 |
#endif |
| 2004 |
#endif |
| 2005 |
|
| 2006 |
; |
| 2007 |
return 0; |
| 2008 |
} |
| 2009 |
_ACEOF |
| 2010 |
if ac_fn_c_try_compile "$LINENO" |
| 2011 |
then : |
| 2012 |
eval "$3=yes" |
| 2013 |
else case e in #( |
| 2014 |
e) eval "$3=no" ;; |
| 2015 |
esac |
| 2016 |
fi |
| 2017 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2018 |
eval $6=\$ac_save_FLAGS |
| 2019 |
;; |
| 2020 |
esac |
| 2021 |
fi |
| 2022 |
eval ac_res=\$$3 |
| 2023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2024 |
printf "%s\n" "$ac_res" >&6; } |
| 2025 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2026 |
|
| 2027 |
} # ac_fn_check_decl |
| 2028 |
|
| 2029 |
# ac_fn_c_find_intX_t LINENO BITS VAR |
| 2030 |
# ----------------------------------- |
| 2031 |
# Finds a signed integer type with width BITS, setting cache variable VAR |
| 2032 |
# accordingly. |
| 2033 |
ac_fn_c_find_intX_t () |
| 2034 |
{ |
| 2035 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2036 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2037 |
printf %s "checking for int$2_t... " >&6; } |
| 2038 |
if eval test \${$3+y} |
| 2039 |
then : |
| 2040 |
printf %s "(cached) " >&6 |
| 2041 |
else case e in #( |
| 2042 |
e) eval "$3=no" |
| 2043 |
# Order is important - never check a type that is potentially smaller |
| 2044 |
# than half of the expected target width. |
| 2045 |
for ac_type in int$2_t 'int' 'long int' \ |
| 2046 |
'long long int' 'short int' 'signed char'; do |
| 2047 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2048 |
/* end confdefs.h. */ |
| 2049 |
$ac_includes_default |
| 2050 |
enum { N = $2 / 2 - 1 }; |
| 2051 |
int |
| 2052 |
main (void) |
| 2053 |
{ |
| 2054 |
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 2055 |
test_array [0] = 0; |
| 2056 |
return test_array [0]; |
| 2057 |
|
| 2058 |
; |
| 2059 |
return 0; |
| 2060 |
} |
| 2061 |
_ACEOF |
| 2062 |
if ac_fn_c_try_compile "$LINENO" |
| 2063 |
then : |
| 2064 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2065 |
/* end confdefs.h. */ |
| 2066 |
$ac_includes_default |
| 2067 |
enum { N = $2 / 2 - 1 }; |
| 2068 |
int |
| 2069 |
main (void) |
| 2070 |
{ |
| 2071 |
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2072 |
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 2073 |
test_array [0] = 0; |
| 2074 |
return test_array [0]; |
| 2075 |
|
| 2076 |
; |
| 2077 |
return 0; |
| 2078 |
} |
| 2079 |
_ACEOF |
| 2080 |
if ac_fn_c_try_compile "$LINENO" |
| 2081 |
then : |
| 2082 |
|
| 2083 |
else case e in #( |
| 2084 |
e) case $ac_type in #( |
| 2085 |
int$2_t) : |
| 2086 |
eval "$3=yes" ;; #( |
| 2087 |
*) : |
| 2088 |
eval "$3=\$ac_type" ;; |
| 2089 |
esac ;; |
| 2090 |
esac |
| 2091 |
fi |
| 2092 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2093 |
fi |
| 2094 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2095 |
if eval test \"x\$"$3"\" = x"no" |
| 2096 |
then : |
| 2097 |
|
| 2098 |
else case e in #( |
| 2099 |
e) break ;; |
| 2100 |
esac |
| 2101 |
fi |
| 2102 |
done ;; |
| 2103 |
esac |
| 2104 |
fi |
| 2105 |
eval ac_res=\$$3 |
| 2106 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2107 |
printf "%s\n" "$ac_res" >&6; } |
| 2108 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2109 |
|
| 2110 |
} # ac_fn_c_find_intX_t |
| 2111 |
|
| 2112 |
# ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2113 |
# ------------------------------------ |
| 2114 |
# Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2115 |
# accordingly. |
| 2116 |
ac_fn_c_find_uintX_t () |
| 2117 |
{ |
| 2118 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2120 |
printf %s "checking for uint$2_t... " >&6; } |
| 2121 |
if eval test \${$3+y} |
| 2122 |
then : |
| 2123 |
printf %s "(cached) " >&6 |
| 2124 |
else case e in #( |
| 2125 |
e) eval "$3=no" |
| 2126 |
# Order is important - never check a type that is potentially smaller |
| 2127 |
# than half of the expected target width. |
| 2128 |
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2129 |
'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2130 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2131 |
/* end confdefs.h. */ |
| 2132 |
$ac_includes_default |
| 2133 |
int |
| 2134 |
main (void) |
| 2135 |
{ |
| 2136 |
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2137 |
test_array [0] = 0; |
| 2138 |
return test_array [0]; |
| 2139 |
|
| 2140 |
; |
| 2141 |
return 0; |
| 2142 |
} |
| 2143 |
_ACEOF |
| 2144 |
if ac_fn_c_try_compile "$LINENO" |
| 2145 |
then : |
| 2146 |
case $ac_type in #( |
| 2147 |
uint$2_t) : |
| 2148 |
eval "$3=yes" ;; #( |
| 2149 |
*) : |
| 2150 |
eval "$3=\$ac_type" ;; |
| 2151 |
esac |
| 2152 |
fi |
| 2153 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2154 |
if eval test \"x\$"$3"\" = x"no" |
| 2155 |
then : |
| 2156 |
|
| 2157 |
else case e in #( |
| 2158 |
e) break ;; |
| 2159 |
esac |
| 2160 |
fi |
| 2161 |
done ;; |
| 2162 |
esac |
| 2163 |
fi |
| 2164 |
eval ac_res=\$$3 |
| 2165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2166 |
printf "%s\n" "$ac_res" >&6; } |
| 2167 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2168 |
|
| 2169 |
} # ac_fn_c_find_uintX_t |
| 2170 |
|
| 2171 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2172 |
# -------------------------------------------- |
| 2173 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2174 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2175 |
# computed |
| 2176 |
ac_fn_c_compute_int () |
| 2177 |
{ |
| 2178 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2179 |
if test "$cross_compiling" = yes; then |
| 2180 |
# Depending upon the size, compute the lo and hi bounds. |
| 2181 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2182 |
/* end confdefs.h. */ |
| 2183 |
$4 |
| 2184 |
int |
| 2185 |
main (void) |
| 2186 |
{ |
| 2187 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2188 |
test_array [0] = 0; |
| 2189 |
return test_array [0]; |
| 2190 |
|
| 2191 |
; |
| 2192 |
return 0; |
| 2193 |
} |
| 2194 |
_ACEOF |
| 2195 |
if ac_fn_c_try_compile "$LINENO" |
| 2196 |
then : |
| 2197 |
ac_lo=0 ac_mid=0 |
| 2198 |
while :; do |
| 2199 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2200 |
/* end confdefs.h. */ |
| 2201 |
$4 |
| 2202 |
int |
| 2203 |
main (void) |
| 2204 |
{ |
| 2205 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2206 |
test_array [0] = 0; |
| 2207 |
return test_array [0]; |
| 2208 |
|
| 2209 |
; |
| 2210 |
return 0; |
| 2211 |
} |
| 2212 |
_ACEOF |
| 2213 |
if ac_fn_c_try_compile "$LINENO" |
| 2214 |
then : |
| 2215 |
ac_hi=$ac_mid; break |
| 2216 |
else case e in #( |
| 2217 |
e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2218 |
if test $ac_lo -le $ac_mid; then |
| 2219 |
ac_lo= ac_hi= |
| 2220 |
break |
| 2221 |
fi |
| 2222 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; |
| 2223 |
esac |
| 2224 |
fi |
| 2225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2226 |
done |
| 2227 |
else case e in #( |
| 2228 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2229 |
/* end confdefs.h. */ |
| 2230 |
$4 |
| 2231 |
int |
| 2232 |
main (void) |
| 2233 |
{ |
| 2234 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2235 |
test_array [0] = 0; |
| 2236 |
return test_array [0]; |
| 2237 |
|
| 2238 |
; |
| 2239 |
return 0; |
| 2240 |
} |
| 2241 |
_ACEOF |
| 2242 |
if ac_fn_c_try_compile "$LINENO" |
| 2243 |
then : |
| 2244 |
ac_hi=-1 ac_mid=-1 |
| 2245 |
while :; do |
| 2246 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2247 |
/* end confdefs.h. */ |
| 2248 |
$4 |
| 2249 |
int |
| 2250 |
main (void) |
| 2251 |
{ |
| 2252 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2253 |
test_array [0] = 0; |
| 2254 |
return test_array [0]; |
| 2255 |
|
| 2256 |
; |
| 2257 |
return 0; |
| 2258 |
} |
| 2259 |
_ACEOF |
| 2260 |
if ac_fn_c_try_compile "$LINENO" |
| 2261 |
then : |
| 2262 |
ac_lo=$ac_mid; break |
| 2263 |
else case e in #( |
| 2264 |
e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2265 |
if test $ac_mid -le $ac_hi; then |
| 2266 |
ac_lo= ac_hi= |
| 2267 |
break |
| 2268 |
fi |
| 2269 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; |
| 2270 |
esac |
| 2271 |
fi |
| 2272 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2273 |
done |
| 2274 |
else case e in #( |
| 2275 |
e) ac_lo= ac_hi= ;; |
| 2276 |
esac |
| 2277 |
fi |
| 2278 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2279 |
esac |
| 2280 |
fi |
| 2281 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2282 |
# Binary search between lo and hi bounds. |
| 2283 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2284 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2285 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2286 |
/* end confdefs.h. */ |
| 2287 |
$4 |
| 2288 |
int |
| 2289 |
main (void) |
| 2290 |
{ |
| 2291 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2292 |
test_array [0] = 0; |
| 2293 |
return test_array [0]; |
| 2294 |
|
| 2295 |
; |
| 2296 |
return 0; |
| 2297 |
} |
| 2298 |
_ACEOF |
| 2299 |
if ac_fn_c_try_compile "$LINENO" |
| 2300 |
then : |
| 2301 |
ac_hi=$ac_mid |
| 2302 |
else case e in #( |
| 2303 |
e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; |
| 2304 |
esac |
| 2305 |
fi |
| 2306 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2307 |
done |
| 2308 |
case $ac_lo in #(( |
| 2309 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2310 |
'') ac_retval=1 ;; |
| 2311 |
esac |
| 2312 |
else |
| 2313 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2314 |
/* end confdefs.h. */ |
| 2315 |
$4 |
| 2316 |
static long int longval (void) { return $2; } |
| 2317 |
static unsigned long int ulongval (void) { return $2; } |
| 2318 |
#include <stdio.h> |
| 2319 |
#include <stdlib.h> |
| 2320 |
int |
| 2321 |
main (void) |
| 2322 |
{ |
| 2323 |
|
| 2324 |
FILE *f = fopen ("conftest.val", "w"); |
| 2325 |
if (! f) |
| 2326 |
return 1; |
| 2327 |
if (($2) < 0) |
| 2328 |
{ |
| 2329 |
long int i = longval (); |
| 2330 |
if (i != ($2)) |
| 2331 |
return 1; |
| 2332 |
fprintf (f, "%ld", i); |
| 2333 |
} |
| 2334 |
else |
| 2335 |
{ |
| 2336 |
unsigned long int i = ulongval (); |
| 2337 |
if (i != ($2)) |
| 2338 |
return 1; |
| 2339 |
fprintf (f, "%lu", i); |
| 2340 |
} |
| 2341 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2342 |
on some platforms. */ |
| 2343 |
return ferror (f) || fclose (f) != 0; |
| 2344 |
|
| 2345 |
; |
| 2346 |
return 0; |
| 2347 |
} |
| 2348 |
_ACEOF |
| 2349 |
if ac_fn_c_try_run "$LINENO" |
| 2350 |
then : |
| 2351 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2352 |
else case e in #( |
| 2353 |
e) ac_retval=1 ;; |
| 2354 |
esac |
| 2355 |
fi |
| 2356 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2357 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2358 |
rm -f conftest.val |
| 2359 |
|
| 2360 |
fi |
| 2361 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2362 |
as_fn_set_status $ac_retval |
| 2363 |
|
| 2364 |
} # ac_fn_c_compute_int |
| 2365 |
|
| 2366 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2367 |
# ---------------------------------------------------- |
| 2368 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 2369 |
# INCLUDES, setting cache variable VAR accordingly. |
| 2370 |
ac_fn_c_check_member () |
| 2371 |
{ |
| 2372 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2373 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2374 |
printf %s "checking for $2.$3... " >&6; } |
| 2375 |
if eval test \${$4+y} |
| 2376 |
then : |
| 2377 |
printf %s "(cached) " >&6 |
| 2378 |
else case e in #( |
| 2379 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2380 |
/* end confdefs.h. */ |
| 2381 |
$5 |
| 2382 |
int |
| 2383 |
main (void) |
| 2384 |
{ |
| 2385 |
static $2 ac_aggr; |
| 2386 |
if (ac_aggr.$3) |
| 2387 |
return 0; |
| 2388 |
; |
| 2389 |
return 0; |
| 2390 |
} |
| 2391 |
_ACEOF |
| 2392 |
if ac_fn_c_try_compile "$LINENO" |
| 2393 |
then : |
| 2394 |
eval "$4=yes" |
| 2395 |
else case e in #( |
| 2396 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2397 |
/* end confdefs.h. */ |
| 2398 |
$5 |
| 2399 |
int |
| 2400 |
main (void) |
| 2401 |
{ |
| 2402 |
static $2 ac_aggr; |
| 2403 |
if (sizeof ac_aggr.$3) |
| 2404 |
return 0; |
| 2405 |
; |
| 2406 |
return 0; |
| 2407 |
} |
| 2408 |
_ACEOF |
| 2409 |
if ac_fn_c_try_compile "$LINENO" |
| 2410 |
then : |
| 2411 |
eval "$4=yes" |
| 2412 |
else case e in #( |
| 2413 |
e) eval "$4=no" ;; |
| 2414 |
esac |
| 2415 |
fi |
| 2416 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2417 |
esac |
| 2418 |
fi |
| 2419 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2420 |
esac |
| 2421 |
fi |
| 2422 |
eval ac_res=\$$4 |
| 2423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2424 |
printf "%s\n" "$ac_res" >&6; } |
| 2425 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2426 |
|
| 2427 |
} # ac_fn_c_check_member |
| 2428 |
ac_configure_args_raw= |
| 2429 |
for ac_arg |
| 2430 |
do |
| 2431 |
case $ac_arg in |
| 2432 |
*\'*) |
| 2433 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2434 |
esac |
| 2435 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2436 |
done |
| 2437 |
|
| 2438 |
case $ac_configure_args_raw in |
| 2439 |
*$as_nl*) |
| 2440 |
ac_safe_unquote= ;; |
| 2441 |
*) |
| 2442 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2443 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 2444 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2445 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2446 |
esac |
| 2447 |
|
| 2448 |
cat >config.log <<_ACEOF |
| 2449 |
This file contains any messages produced by compilers while |
| 2450 |
running configure, to aid debugging if configure makes a mistake. |
| 2451 |
|
| 2452 |
It was created by nss-pam-ldapd $as_me 0.9.13, which was |
| 2453 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 2454 |
|
| 2455 |
$ $0$ac_configure_args_raw |
| 2456 |
|
| 2457 |
_ACEOF |
| 2458 |
exec 5>>config.log |
| 2459 |
{ |
| 2460 |
cat <<_ASUNAME |
| 2461 |
## --------- ## |
| 2462 |
## Platform. ## |
| 2463 |
## --------- ## |
| 2464 |
|
| 2465 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2466 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2467 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2468 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2469 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2470 |
|
| 2471 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2472 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2473 |
|
| 2474 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2475 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2476 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2477 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2478 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2479 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2480 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2481 |
|
| 2482 |
_ASUNAME |
| 2483 |
|
| 2484 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2485 |
for as_dir in $PATH |
| 2486 |
do |
| 2487 |
IFS=$as_save_IFS |
| 2488 |
case $as_dir in #((( |
| 2489 |
'') as_dir=./ ;; |
| 2490 |
*/) ;; |
| 2491 |
*) as_dir=$as_dir/ ;; |
| 2492 |
esac |
| 2493 |
printf "%s\n" "PATH: $as_dir" |
| 2494 |
done |
| 2495 |
IFS=$as_save_IFS |
| 2496 |
|
| 2497 |
} >&5 |
| 2498 |
|
| 2499 |
cat >&5 <<_ACEOF |
| 2500 |
|
| 2501 |
|
| 2502 |
## ----------- ## |
| 2503 |
## Core tests. ## |
| 2504 |
## ----------- ## |
| 2505 |
|
| 2506 |
_ACEOF |
| 2507 |
|
| 2508 |
|
| 2509 |
# Keep a trace of the command line. |
| 2510 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2511 |
# Strip out --silent because we don't want to record it for future runs. |
| 2512 |
# Also quote any args containing shell meta-characters. |
| 2513 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2514 |
ac_configure_args= |
| 2515 |
ac_configure_args0= |
| 2516 |
ac_configure_args1= |
| 2517 |
ac_must_keep_next=false |
| 2518 |
for ac_pass in 1 2 |
| 2519 |
do |
| 2520 |
for ac_arg |
| 2521 |
do |
| 2522 |
case $ac_arg in |
| 2523 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2524 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2525 |
| -silent | --silent | --silen | --sile | --sil) |
| 2526 |
continue ;; |
| 2527 |
*\'*) |
| 2528 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2529 |
esac |
| 2530 |
case $ac_pass in |
| 2531 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2532 |
2) |
| 2533 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2534 |
if test $ac_must_keep_next = true; then |
| 2535 |
ac_must_keep_next=false # Got value, back to normal. |
| 2536 |
else |
| 2537 |
case $ac_arg in |
| 2538 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2539 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2540 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2541 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2542 |
case "$ac_configure_args0 " in |
| 2543 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2544 |
esac |
| 2545 |
;; |
| 2546 |
-* ) ac_must_keep_next=true ;; |
| 2547 |
esac |
| 2548 |
fi |
| 2549 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2550 |
;; |
| 2551 |
esac |
| 2552 |
done |
| 2553 |
done |
| 2554 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2555 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2556 |
|
| 2557 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2558 |
# config.log. We remove comments because anyway the quotes in there |
| 2559 |
# would cause problems or look ugly. |
| 2560 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2561 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2562 |
trap 'exit_status=$? |
| 2563 |
# Sanitize IFS. |
| 2564 |
IFS=" "" $as_nl" |
| 2565 |
# Save into config.log some information that might help in debugging. |
| 2566 |
{ |
| 2567 |
echo |
| 2568 |
|
| 2569 |
printf "%s\n" "## ---------------- ## |
| 2570 |
## Cache variables. ## |
| 2571 |
## ---------------- ##" |
| 2572 |
echo |
| 2573 |
# The following way of writing the cache mishandles newlines in values, |
| 2574 |
( |
| 2575 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2576 |
eval ac_val=\$$ac_var |
| 2577 |
case $ac_val in #( |
| 2578 |
*${as_nl}*) |
| 2579 |
case $ac_var in #( |
| 2580 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2581 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2582 |
esac |
| 2583 |
case $ac_var in #( |
| 2584 |
_ | IFS | as_nl) ;; #( |
| 2585 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2586 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2587 |
esac ;; |
| 2588 |
esac |
| 2589 |
done |
| 2590 |
(set) 2>&1 | |
| 2591 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2592 |
*${as_nl}ac_space=\ *) |
| 2593 |
sed -n \ |
| 2594 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2595 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2596 |
;; #( |
| 2597 |
*) |
| 2598 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2599 |
;; |
| 2600 |
esac | |
| 2601 |
sort |
| 2602 |
) |
| 2603 |
echo |
| 2604 |
|
| 2605 |
printf "%s\n" "## ----------------- ## |
| 2606 |
## Output variables. ## |
| 2607 |
## ----------------- ##" |
| 2608 |
echo |
| 2609 |
for ac_var in $ac_subst_vars |
| 2610 |
do |
| 2611 |
eval ac_val=\$$ac_var |
| 2612 |
case $ac_val in |
| 2613 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2614 |
esac |
| 2615 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2616 |
done | sort |
| 2617 |
echo |
| 2618 |
|
| 2619 |
if test -n "$ac_subst_files"; then |
| 2620 |
printf "%s\n" "## ------------------- ## |
| 2621 |
## File substitutions. ## |
| 2622 |
## ------------------- ##" |
| 2623 |
echo |
| 2624 |
for ac_var in $ac_subst_files |
| 2625 |
do |
| 2626 |
eval ac_val=\$$ac_var |
| 2627 |
case $ac_val in |
| 2628 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2629 |
esac |
| 2630 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2631 |
done | sort |
| 2632 |
echo |
| 2633 |
fi |
| 2634 |
|
| 2635 |
if test -s confdefs.h; then |
| 2636 |
printf "%s\n" "## ----------- ## |
| 2637 |
## confdefs.h. ## |
| 2638 |
## ----------- ##" |
| 2639 |
echo |
| 2640 |
cat confdefs.h |
| 2641 |
echo |
| 2642 |
fi |
| 2643 |
test "$ac_signal" != 0 && |
| 2644 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2645 |
printf "%s\n" "$as_me: exit $exit_status" |
| 2646 |
} >&5 |
| 2647 |
rm -f core *.core core.conftest.* && |
| 2648 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2649 |
exit $exit_status |
| 2650 |
' 0 |
| 2651 |
for ac_signal in 1 2 13 15; do |
| 2652 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2653 |
done |
| 2654 |
ac_signal=0 |
| 2655 |
|
| 2656 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2657 |
rm -f -r conftest* confdefs.h |
| 2658 |
|
| 2659 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2660 |
|
| 2661 |
# Predefined preprocessor variables. |
| 2662 |
|
| 2663 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2664 |
|
| 2665 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2666 |
|
| 2667 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2668 |
|
| 2669 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2670 |
|
| 2671 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2672 |
|
| 2673 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2674 |
|
| 2675 |
|
| 2676 |
# Let the site file select an alternate cache file if it wants to. |
| 2677 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2678 |
if test -n "$CONFIG_SITE"; then |
| 2679 |
ac_site_files="$CONFIG_SITE" |
| 2680 |
elif test "x$prefix" != xNONE; then |
| 2681 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2682 |
else |
| 2683 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2684 |
fi |
| 2685 |
|
| 2686 |
for ac_site_file in $ac_site_files |
| 2687 |
do |
| 2688 |
case $ac_site_file in #( |
| 2689 |
*/*) : |
| 2690 |
;; #( |
| 2691 |
*) : |
| 2692 |
ac_site_file=./$ac_site_file ;; |
| 2693 |
esac |
| 2694 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2696 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2697 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2698 |
. "$ac_site_file" \ |
| 2699 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2700 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2701 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2702 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2703 |
fi |
| 2704 |
done |
| 2705 |
|
| 2706 |
if test -r "$cache_file"; then |
| 2707 |
# Some versions of bash will fail to source /dev/null (special files |
| 2708 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2709 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2710 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2711 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2712 |
case $cache_file in |
| 2713 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2714 |
*) . "./$cache_file";; |
| 2715 |
esac |
| 2716 |
fi |
| 2717 |
else |
| 2718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2719 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2720 |
>$cache_file |
| 2721 |
fi |
| 2722 |
|
| 2723 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 2724 |
ac_c_conftest_c89_globals=' |
| 2725 |
/* Does the compiler advertise C89 conformance? |
| 2726 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 2727 |
while being otherwise adequately conformant. */ |
| 2728 |
#if !defined __STDC__ |
| 2729 |
# error "Compiler does not advertise C89 conformance" |
| 2730 |
#endif |
| 2731 |
|
| 2732 |
#include <stddef.h> |
| 2733 |
#include <stdarg.h> |
| 2734 |
struct stat; |
| 2735 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2736 |
struct buf { int x; }; |
| 2737 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2738 |
static char *e (char **p, int i) |
| 2739 |
{ |
| 2740 |
return p[i]; |
| 2741 |
} |
| 2742 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2743 |
{ |
| 2744 |
char *s; |
| 2745 |
va_list v; |
| 2746 |
va_start (v,p); |
| 2747 |
s = g (p, va_arg (v,int)); |
| 2748 |
va_end (v); |
| 2749 |
return s; |
| 2750 |
} |
| 2751 |
|
| 2752 |
/* C89 style stringification. */ |
| 2753 |
#define noexpand_stringify(a) #a |
| 2754 |
const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2755 |
|
| 2756 |
/* C89 style token pasting. Exercises some of the corner cases that |
| 2757 |
e.g. old MSVC gets wrong, but not very hard. */ |
| 2758 |
#define noexpand_concat(a,b) a##b |
| 2759 |
#define expand_concat(a,b) noexpand_concat(a,b) |
| 2760 |
extern int vA; |
| 2761 |
extern int vbee; |
| 2762 |
#define aye A |
| 2763 |
#define bee B |
| 2764 |
int *pvA = &expand_concat(v,aye); |
| 2765 |
int *pvbee = &noexpand_concat(v,bee); |
| 2766 |
|
| 2767 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2768 |
function prototypes and stuff, but not \xHH hex character constants. |
| 2769 |
These do not provoke an error unfortunately, instead are silently treated |
| 2770 |
as an "x". The following induces an error, until -std is added to get |
| 2771 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2772 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 2773 |
that is true only with -std. */ |
| 2774 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2775 |
|
| 2776 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2777 |
inside strings and character constants. */ |
| 2778 |
#define FOO(x) '\''x'\'' |
| 2779 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2780 |
|
| 2781 |
int test (int i, double x); |
| 2782 |
struct s1 {int (*f) (int a);}; |
| 2783 |
struct s2 {int (*f) (double a);}; |
| 2784 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2785 |
int, int);' |
| 2786 |
|
| 2787 |
# Test code for whether the C compiler supports C89 (body of main). |
| 2788 |
ac_c_conftest_c89_main=' |
| 2789 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2790 |
' |
| 2791 |
|
| 2792 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 2793 |
ac_c_conftest_c99_globals=' |
| 2794 |
/* Does the compiler advertise C99 conformance? */ |
| 2795 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2796 |
# error "Compiler does not advertise C99 conformance" |
| 2797 |
#endif |
| 2798 |
|
| 2799 |
// See if C++-style comments work. |
| 2800 |
|
| 2801 |
#include <stdbool.h> |
| 2802 |
extern int puts (const char *); |
| 2803 |
extern int printf (const char *, ...); |
| 2804 |
extern int dprintf (int, const char *, ...); |
| 2805 |
extern void *malloc (size_t); |
| 2806 |
extern void free (void *); |
| 2807 |
|
| 2808 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2809 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 2810 |
// FILE and stderr. |
| 2811 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 2812 |
#define showlist(...) puts (#__VA_ARGS__) |
| 2813 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2814 |
static void |
| 2815 |
test_varargs_macros (void) |
| 2816 |
{ |
| 2817 |
int x = 1234; |
| 2818 |
int y = 5678; |
| 2819 |
debug ("Flag"); |
| 2820 |
debug ("X = %d\n", x); |
| 2821 |
showlist (The first, second, and third items.); |
| 2822 |
report (x>y, "x is %d but y is %d", x, y); |
| 2823 |
} |
| 2824 |
|
| 2825 |
// Check long long types. |
| 2826 |
#define BIG64 18446744073709551615ull |
| 2827 |
#define BIG32 4294967295ul |
| 2828 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2829 |
#if !BIG_OK |
| 2830 |
#error "your preprocessor is broken" |
| 2831 |
#endif |
| 2832 |
#if BIG_OK |
| 2833 |
#else |
| 2834 |
#error "your preprocessor is broken" |
| 2835 |
#endif |
| 2836 |
static long long int bignum = -9223372036854775807LL; |
| 2837 |
static unsigned long long int ubignum = BIG64; |
| 2838 |
|
| 2839 |
struct incomplete_array |
| 2840 |
{ |
| 2841 |
int datasize; |
| 2842 |
double data[]; |
| 2843 |
}; |
| 2844 |
|
| 2845 |
struct named_init { |
| 2846 |
int number; |
| 2847 |
const wchar_t *name; |
| 2848 |
double average; |
| 2849 |
}; |
| 2850 |
|
| 2851 |
typedef const char *ccp; |
| 2852 |
|
| 2853 |
static inline int |
| 2854 |
test_restrict (ccp restrict text) |
| 2855 |
{ |
| 2856 |
// Iterate through items via the restricted pointer. |
| 2857 |
// Also check for declarations in for loops. |
| 2858 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2859 |
continue; |
| 2860 |
return 0; |
| 2861 |
} |
| 2862 |
|
| 2863 |
// Check varargs and va_copy. |
| 2864 |
static bool |
| 2865 |
test_varargs (const char *format, ...) |
| 2866 |
{ |
| 2867 |
va_list args; |
| 2868 |
va_start (args, format); |
| 2869 |
va_list args_copy; |
| 2870 |
va_copy (args_copy, args); |
| 2871 |
|
| 2872 |
const char *str = ""; |
| 2873 |
int number = 0; |
| 2874 |
float fnumber = 0; |
| 2875 |
|
| 2876 |
while (*format) |
| 2877 |
{ |
| 2878 |
switch (*format++) |
| 2879 |
{ |
| 2880 |
case '\''s'\'': // string |
| 2881 |
str = va_arg (args_copy, const char *); |
| 2882 |
break; |
| 2883 |
case '\''d'\'': // int |
| 2884 |
number = va_arg (args_copy, int); |
| 2885 |
break; |
| 2886 |
case '\''f'\'': // float |
| 2887 |
fnumber = va_arg (args_copy, double); |
| 2888 |
break; |
| 2889 |
default: |
| 2890 |
break; |
| 2891 |
} |
| 2892 |
} |
| 2893 |
va_end (args_copy); |
| 2894 |
va_end (args); |
| 2895 |
|
| 2896 |
return *str && number && fnumber; |
| 2897 |
} |
| 2898 |
' |
| 2899 |
|
| 2900 |
# Test code for whether the C compiler supports C99 (body of main). |
| 2901 |
ac_c_conftest_c99_main=' |
| 2902 |
// Check bool. |
| 2903 |
_Bool success = false; |
| 2904 |
success |= (argc != 0); |
| 2905 |
|
| 2906 |
// Check restrict. |
| 2907 |
if (test_restrict ("String literal") == 0) |
| 2908 |
success = true; |
| 2909 |
char *restrict newvar = "Another string"; |
| 2910 |
|
| 2911 |
// Check varargs. |
| 2912 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2913 |
test_varargs_macros (); |
| 2914 |
|
| 2915 |
// Check flexible array members. |
| 2916 |
struct incomplete_array *ia = |
| 2917 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2918 |
ia->datasize = 10; |
| 2919 |
for (int i = 0; i < ia->datasize; ++i) |
| 2920 |
ia->data[i] = i * 1.234; |
| 2921 |
// Work around memory leak warnings. |
| 2922 |
free (ia); |
| 2923 |
|
| 2924 |
// Check named initializers. |
| 2925 |
struct named_init ni = { |
| 2926 |
.number = 34, |
| 2927 |
.name = L"Test wide string", |
| 2928 |
.average = 543.34343, |
| 2929 |
}; |
| 2930 |
|
| 2931 |
ni.number = 58; |
| 2932 |
|
| 2933 |
int dynamic_array[ni.number]; |
| 2934 |
dynamic_array[0] = argv[0][0]; |
| 2935 |
dynamic_array[ni.number - 1] = 543; |
| 2936 |
|
| 2937 |
// work around unused variable warnings |
| 2938 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2939 |
|| dynamic_array[ni.number - 1] != 543); |
| 2940 |
' |
| 2941 |
|
| 2942 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 2943 |
ac_c_conftest_c11_globals=' |
| 2944 |
/* Does the compiler advertise C11 conformance? */ |
| 2945 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2946 |
# error "Compiler does not advertise C11 conformance" |
| 2947 |
#endif |
| 2948 |
|
| 2949 |
// Check _Alignas. |
| 2950 |
char _Alignas (double) aligned_as_double; |
| 2951 |
char _Alignas (0) no_special_alignment; |
| 2952 |
extern char aligned_as_int; |
| 2953 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2954 |
|
| 2955 |
// Check _Alignof. |
| 2956 |
enum |
| 2957 |
{ |
| 2958 |
int_alignment = _Alignof (int), |
| 2959 |
int_array_alignment = _Alignof (int[100]), |
| 2960 |
char_alignment = _Alignof (char) |
| 2961 |
}; |
| 2962 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2963 |
|
| 2964 |
// Check _Noreturn. |
| 2965 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2966 |
|
| 2967 |
// Check _Static_assert. |
| 2968 |
struct test_static_assert |
| 2969 |
{ |
| 2970 |
int x; |
| 2971 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 2972 |
"_Static_assert does not work in struct"); |
| 2973 |
long int y; |
| 2974 |
}; |
| 2975 |
|
| 2976 |
// Check UTF-8 literals. |
| 2977 |
#define u8 syntax error! |
| 2978 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2979 |
|
| 2980 |
// Check duplicate typedefs. |
| 2981 |
typedef long *long_ptr; |
| 2982 |
typedef long int *long_ptr; |
| 2983 |
typedef long_ptr long_ptr; |
| 2984 |
|
| 2985 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2986 |
struct anonymous |
| 2987 |
{ |
| 2988 |
union { |
| 2989 |
struct { int i; int j; }; |
| 2990 |
struct { int k; long int l; } w; |
| 2991 |
}; |
| 2992 |
int m; |
| 2993 |
} v1; |
| 2994 |
' |
| 2995 |
|
| 2996 |
# Test code for whether the C compiler supports C11 (body of main). |
| 2997 |
ac_c_conftest_c11_main=' |
| 2998 |
_Static_assert ((offsetof (struct anonymous, i) |
| 2999 |
== offsetof (struct anonymous, w.k)), |
| 3000 |
"Anonymous union alignment botch"); |
| 3001 |
v1.i = 2; |
| 3002 |
v1.w.k = 5; |
| 3003 |
ok |= v1.i != 5; |
| 3004 |
' |
| 3005 |
|
| 3006 |
# Test code for whether the C compiler supports C11 (complete). |
| 3007 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 3008 |
${ac_c_conftest_c99_globals} |
| 3009 |
${ac_c_conftest_c11_globals} |
| 3010 |
|
| 3011 |
int |
| 3012 |
main (int argc, char **argv) |
| 3013 |
{ |
| 3014 |
int ok = 0; |
| 3015 |
${ac_c_conftest_c89_main} |
| 3016 |
${ac_c_conftest_c99_main} |
| 3017 |
${ac_c_conftest_c11_main} |
| 3018 |
return ok; |
| 3019 |
} |
| 3020 |
" |
| 3021 |
|
| 3022 |
# Test code for whether the C compiler supports C99 (complete). |
| 3023 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 3024 |
${ac_c_conftest_c99_globals} |
| 3025 |
|
| 3026 |
int |
| 3027 |
main (int argc, char **argv) |
| 3028 |
{ |
| 3029 |
int ok = 0; |
| 3030 |
${ac_c_conftest_c89_main} |
| 3031 |
${ac_c_conftest_c99_main} |
| 3032 |
return ok; |
| 3033 |
} |
| 3034 |
" |
| 3035 |
|
| 3036 |
# Test code for whether the C compiler supports C89 (complete). |
| 3037 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 3038 |
|
| 3039 |
int |
| 3040 |
main (int argc, char **argv) |
| 3041 |
{ |
| 3042 |
int ok = 0; |
| 3043 |
${ac_c_conftest_c89_main} |
| 3044 |
return ok; |
| 3045 |
} |
| 3046 |
" |
| 3047 |
|
| 3048 |
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 3049 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 3050 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 3051 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 3052 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 3053 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 3054 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 3055 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 3056 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 3057 |
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 3058 |
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 3059 |
as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" |
| 3060 |
as_fn_append ac_func_c_list " fork HAVE_FORK" |
| 3061 |
as_fn_append ac_func_c_list " vfork HAVE_VFORK" |
| 3062 |
|
| 3063 |
# Auxiliary files required by this configure script. |
| 3064 |
ac_aux_files="ar-lib compile missing install-sh config.guess config.sub" |
| 3065 |
|
| 3066 |
# Locations in which to look for auxiliary files. |
| 3067 |
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 3068 |
|
| 3069 |
# Search for a directory containing all of the required auxiliary files, |
| 3070 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3071 |
# If we don't find one directory that contains all the files we need, |
| 3072 |
# we report the set of missing files from the *first* directory in |
| 3073 |
# $ac_aux_dir_candidates and give up. |
| 3074 |
ac_missing_aux_files="" |
| 3075 |
ac_first_candidate=: |
| 3076 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3077 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3078 |
as_found=false |
| 3079 |
for as_dir in $ac_aux_dir_candidates |
| 3080 |
do |
| 3081 |
IFS=$as_save_IFS |
| 3082 |
case $as_dir in #((( |
| 3083 |
'') as_dir=./ ;; |
| 3084 |
*/) ;; |
| 3085 |
*) as_dir=$as_dir/ ;; |
| 3086 |
esac |
| 3087 |
as_found=: |
| 3088 |
|
| 3089 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3090 |
ac_aux_dir_found=yes |
| 3091 |
ac_install_sh= |
| 3092 |
for ac_aux in $ac_aux_files |
| 3093 |
do |
| 3094 |
# As a special case, if "install-sh" is required, that requirement |
| 3095 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3096 |
# and $ac_install_sh is set appropriately for whichever one is found. |
| 3097 |
if test x"$ac_aux" = x"install-sh" |
| 3098 |
then |
| 3099 |
if test -f "${as_dir}install-sh"; then |
| 3100 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3101 |
ac_install_sh="${as_dir}install-sh -c" |
| 3102 |
elif test -f "${as_dir}install.sh"; then |
| 3103 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3104 |
ac_install_sh="${as_dir}install.sh -c" |
| 3105 |
elif test -f "${as_dir}shtool"; then |
| 3106 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3107 |
ac_install_sh="${as_dir}shtool install -c" |
| 3108 |
else |
| 3109 |
ac_aux_dir_found=no |
| 3110 |
if $ac_first_candidate; then |
| 3111 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3112 |
else |
| 3113 |
break |
| 3114 |
fi |
| 3115 |
fi |
| 3116 |
else |
| 3117 |
if test -f "${as_dir}${ac_aux}"; then |
| 3118 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3119 |
else |
| 3120 |
ac_aux_dir_found=no |
| 3121 |
if $ac_first_candidate; then |
| 3122 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3123 |
else |
| 3124 |
break |
| 3125 |
fi |
| 3126 |
fi |
| 3127 |
fi |
| 3128 |
done |
| 3129 |
if test "$ac_aux_dir_found" = yes; then |
| 3130 |
ac_aux_dir="$as_dir" |
| 3131 |
break |
| 3132 |
fi |
| 3133 |
ac_first_candidate=false |
| 3134 |
|
| 3135 |
as_found=false |
| 3136 |
done |
| 3137 |
IFS=$as_save_IFS |
| 3138 |
if $as_found |
| 3139 |
then : |
| 3140 |
|
| 3141 |
else case e in #( |
| 3142 |
e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; |
| 3143 |
esac |
| 3144 |
fi |
| 3145 |
|
| 3146 |
|
| 3147 |
# These three variables are undocumented and unsupported, |
| 3148 |
# and are intended to be withdrawn in a future Autoconf release. |
| 3149 |
# They can cause serious problems if a builder's source tree is in a directory |
| 3150 |
# whose full name contains unusual characters. |
| 3151 |
if test -f "${ac_aux_dir}config.guess"; then |
| 3152 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3153 |
fi |
| 3154 |
if test -f "${ac_aux_dir}config.sub"; then |
| 3155 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3156 |
fi |
| 3157 |
if test -f "$ac_aux_dir/configure"; then |
| 3158 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3159 |
fi |
| 3160 |
|
| 3161 |
# Check that the precious variables saved in the cache have kept the same |
| 3162 |
# value. |
| 3163 |
ac_cache_corrupted=false |
| 3164 |
for ac_var in $ac_precious_vars; do |
| 3165 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3166 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 3167 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3168 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 3169 |
case $ac_old_set,$ac_new_set in |
| 3170 |
set,) |
| 3171 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 3172 |
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 3173 |
ac_cache_corrupted=: ;; |
| 3174 |
,set) |
| 3175 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 3176 |
printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 3177 |
ac_cache_corrupted=: ;; |
| 3178 |
,);; |
| 3179 |
*) |
| 3180 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3181 |
# differences in whitespace do not lead to failure. |
| 3182 |
ac_old_val_w=`echo x $ac_old_val` |
| 3183 |
ac_new_val_w=`echo x $ac_new_val` |
| 3184 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3185 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 3186 |
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 3187 |
ac_cache_corrupted=: |
| 3188 |
else |
| 3189 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 3190 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 3191 |
eval $ac_var=\$ac_old_val |
| 3192 |
fi |
| 3193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 3194 |
printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 3195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 3196 |
printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 3197 |
fi;; |
| 3198 |
esac |
| 3199 |
# Pass precious variables to config.status. |
| 3200 |
if test "$ac_new_set" = set; then |
| 3201 |
case $ac_new_val in |
| 3202 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3203 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 3204 |
esac |
| 3205 |
case " $ac_configure_args " in |
| 3206 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3207 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3208 |
esac |
| 3209 |
fi |
| 3210 |
done |
| 3211 |
if $ac_cache_corrupted; then |
| 3212 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3213 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3215 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3216 |
as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 3217 |
and start over" "$LINENO" 5 |
| 3218 |
fi |
| 3219 |
## -------------------- ## |
| 3220 |
## Main body of script. ## |
| 3221 |
## -------------------- ## |
| 3222 |
|
| 3223 |
ac_ext=c |
| 3224 |
ac_cpp='$CPP $CPPFLAGS' |
| 3225 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3226 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3227 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3228 |
|
| 3229 |
|
| 3230 |
RELEASE_MONTH="Feb 2025" |
| 3231 |
|
| 3232 |
|
| 3233 |
|
| 3234 |
|
| 3235 |
# some initialisation |
| 3236 |
|
| 3237 |
|
| 3238 |
|
| 3239 |
# Make sure we can run config.sub. |
| 3240 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3241 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3242 |
|
| 3243 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3244 |
printf %s "checking build system type... " >&6; } |
| 3245 |
if test ${ac_cv_build+y} |
| 3246 |
then : |
| 3247 |
printf %s "(cached) " >&6 |
| 3248 |
else case e in #( |
| 3249 |
e) ac_build_alias=$build_alias |
| 3250 |
test "x$ac_build_alias" = x && |
| 3251 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 3252 |
test "x$ac_build_alias" = x && |
| 3253 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3254 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3255 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3256 |
;; |
| 3257 |
esac |
| 3258 |
fi |
| 3259 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3260 |
printf "%s\n" "$ac_cv_build" >&6; } |
| 3261 |
case $ac_cv_build in |
| 3262 |
*-*-*) ;; |
| 3263 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3264 |
esac |
| 3265 |
build=$ac_cv_build |
| 3266 |
ac_save_IFS=$IFS; IFS='-' |
| 3267 |
set x $ac_cv_build |
| 3268 |
shift |
| 3269 |
build_cpu=$1 |
| 3270 |
build_vendor=$2 |
| 3271 |
shift; shift |
| 3272 |
# Remember, the first character of IFS is used to create $*, |
| 3273 |
# except with old shells: |
| 3274 |
build_os=$* |
| 3275 |
IFS=$ac_save_IFS |
| 3276 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3277 |
|
| 3278 |
|
| 3279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3280 |
printf %s "checking host system type... " >&6; } |
| 3281 |
if test ${ac_cv_host+y} |
| 3282 |
then : |
| 3283 |
printf %s "(cached) " >&6 |
| 3284 |
else case e in #( |
| 3285 |
e) if test "x$host_alias" = x; then |
| 3286 |
ac_cv_host=$ac_cv_build |
| 3287 |
else |
| 3288 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3289 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 3290 |
fi |
| 3291 |
;; |
| 3292 |
esac |
| 3293 |
fi |
| 3294 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3295 |
printf "%s\n" "$ac_cv_host" >&6; } |
| 3296 |
case $ac_cv_host in |
| 3297 |
*-*-*) ;; |
| 3298 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3299 |
esac |
| 3300 |
host=$ac_cv_host |
| 3301 |
ac_save_IFS=$IFS; IFS='-' |
| 3302 |
set x $ac_cv_host |
| 3303 |
shift |
| 3304 |
host_cpu=$1 |
| 3305 |
host_vendor=$2 |
| 3306 |
shift; shift |
| 3307 |
# Remember, the first character of IFS is used to create $*, |
| 3308 |
# except with old shells: |
| 3309 |
host_os=$* |
| 3310 |
IFS=$ac_save_IFS |
| 3311 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3312 |
|
| 3313 |
|
| 3314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 3315 |
printf %s "checking target system type... " >&6; } |
| 3316 |
if test ${ac_cv_target+y} |
| 3317 |
then : |
| 3318 |
printf %s "(cached) " >&6 |
| 3319 |
else case e in #( |
| 3320 |
e) if test "x$target_alias" = x; then |
| 3321 |
ac_cv_target=$ac_cv_host |
| 3322 |
else |
| 3323 |
ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || |
| 3324 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 |
| 3325 |
fi |
| 3326 |
;; |
| 3327 |
esac |
| 3328 |
fi |
| 3329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 3330 |
printf "%s\n" "$ac_cv_target" >&6; } |
| 3331 |
case $ac_cv_target in |
| 3332 |
*-*-*) ;; |
| 3333 |
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 3334 |
esac |
| 3335 |
target=$ac_cv_target |
| 3336 |
ac_save_IFS=$IFS; IFS='-' |
| 3337 |
set x $ac_cv_target |
| 3338 |
shift |
| 3339 |
target_cpu=$1 |
| 3340 |
target_vendor=$2 |
| 3341 |
shift; shift |
| 3342 |
# Remember, the first character of IFS is used to create $*, |
| 3343 |
# except with old shells: |
| 3344 |
target_os=$* |
| 3345 |
IFS=$ac_save_IFS |
| 3346 |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3347 |
|
| 3348 |
|
| 3349 |
# The aliases save the names the user supplied, while $host etc. |
| 3350 |
# will get canonicalized. |
| 3351 |
test -n "$target_alias" && |
| 3352 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3353 |
NONENONEs,x,x, && |
| 3354 |
program_prefix=${target_alias}- |
| 3355 |
|
| 3356 |
|
| 3357 |
|
| 3358 |
# display notice and initialize automake |
| 3359 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.9.13" >&5 |
| 3360 |
printf "%s\n" "$as_me: configuring nss-pam-ldapd 0.9.13" >&6;} |
| 3361 |
am__api_version='1.17' |
| 3362 |
|
| 3363 |
|
| 3364 |
# Find a good install program. We prefer a C program (faster), |
| 3365 |
# so one script is as good as another. But avoid the broken or |
| 3366 |
# incompatible versions: |
| 3367 |
# SysV /etc/install, /usr/sbin/install |
| 3368 |
# SunOS /usr/etc/install |
| 3369 |
# IRIX /sbin/install |
| 3370 |
# AIX /bin/install |
| 3371 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3372 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3373 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3374 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3375 |
# OS/2's system install, which has a completely different semantic |
| 3376 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 3377 |
# Reject install programs that cannot install multiple files. |
| 3378 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3379 |
printf %s "checking for a BSD-compatible install... " >&6; } |
| 3380 |
if test -z "$INSTALL"; then |
| 3381 |
if test ${ac_cv_path_install+y} |
| 3382 |
then : |
| 3383 |
printf %s "(cached) " >&6 |
| 3384 |
else case e in #( |
| 3385 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3386 |
for as_dir in $PATH |
| 3387 |
do |
| 3388 |
IFS=$as_save_IFS |
| 3389 |
case $as_dir in #((( |
| 3390 |
'') as_dir=./ ;; |
| 3391 |
*/) ;; |
| 3392 |
*) as_dir=$as_dir/ ;; |
| 3393 |
esac |
| 3394 |
# Account for fact that we put trailing slashes in our PATH walk. |
| 3395 |
case $as_dir in #(( |
| 3396 |
./ | /[cC]/* | \ |
| 3397 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3398 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3399 |
/usr/ucb/* ) ;; |
| 3400 |
*) |
| 3401 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 3402 |
# Don't use installbsd from OSF since it installs stuff as root |
| 3403 |
# by default. |
| 3404 |
for ac_prog in ginstall scoinst install; do |
| 3405 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3406 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 3407 |
if test $ac_prog = install && |
| 3408 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3409 |
# AIX install. It has an incompatible calling convention. |
| 3410 |
: |
| 3411 |
elif test $ac_prog = install && |
| 3412 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3413 |
# program-specific install script used by HP pwplus--don't use. |
| 3414 |
: |
| 3415 |
else |
| 3416 |
rm -rf conftest.one conftest.two conftest.dir |
| 3417 |
echo one > conftest.one |
| 3418 |
echo two > conftest.two |
| 3419 |
mkdir conftest.dir |
| 3420 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 3421 |
test -s conftest.one && test -s conftest.two && |
| 3422 |
test -s conftest.dir/conftest.one && |
| 3423 |
test -s conftest.dir/conftest.two |
| 3424 |
then |
| 3425 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 3426 |
break 3 |
| 3427 |
fi |
| 3428 |
fi |
| 3429 |
fi |
| 3430 |
done |
| 3431 |
done |
| 3432 |
;; |
| 3433 |
esac |
| 3434 |
|
| 3435 |
done |
| 3436 |
IFS=$as_save_IFS |
| 3437 |
|
| 3438 |
rm -rf conftest.one conftest.two conftest.dir |
| 3439 |
;; |
| 3440 |
esac |
| 3441 |
fi |
| 3442 |
if test ${ac_cv_path_install+y}; then |
| 3443 |
INSTALL=$ac_cv_path_install |
| 3444 |
else |
| 3445 |
# As a last resort, use the slow shell script. Don't cache a |
| 3446 |
# value for INSTALL within a source directory, because that will |
| 3447 |
# break other packages using the cache if that directory is |
| 3448 |
# removed, or if the value is a relative name. |
| 3449 |
INSTALL=$ac_install_sh |
| 3450 |
fi |
| 3451 |
fi |
| 3452 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3453 |
printf "%s\n" "$INSTALL" >&6; } |
| 3454 |
|
| 3455 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3456 |
# It thinks the first close brace ends the variable substitution. |
| 3457 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3458 |
|
| 3459 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3460 |
|
| 3461 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3462 |
|
| 3463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 |
| 3464 |
printf %s "checking whether sleep supports fractional seconds... " >&6; } |
| 3465 |
if test ${am_cv_sleep_fractional_seconds+y} |
| 3466 |
then : |
| 3467 |
printf %s "(cached) " >&6 |
| 3468 |
else case e in #( |
| 3469 |
e) if sleep 0.001 2>/dev/null |
| 3470 |
then : |
| 3471 |
am_cv_sleep_fractional_seconds=yes |
| 3472 |
else case e in #( |
| 3473 |
e) am_cv_sleep_fractional_seconds=no ;; |
| 3474 |
esac |
| 3475 |
fi |
| 3476 |
;; |
| 3477 |
esac |
| 3478 |
fi |
| 3479 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 |
| 3480 |
printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } |
| 3481 |
|
| 3482 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 |
| 3483 |
printf %s "checking filesystem timestamp resolution... " >&6; } |
| 3484 |
if test ${am_cv_filesystem_timestamp_resolution+y} |
| 3485 |
then : |
| 3486 |
printf %s "(cached) " >&6 |
| 3487 |
else case e in #( |
| 3488 |
e) # Default to the worst case. |
| 3489 |
am_cv_filesystem_timestamp_resolution=2 |
| 3490 |
|
| 3491 |
# Only try to go finer than 1 sec if sleep can do it. |
| 3492 |
# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, |
| 3493 |
# - 1 sec is not much of a win compared to 2 sec, and |
| 3494 |
# - it takes 2 seconds to perform the test whether 1 sec works. |
| 3495 |
# |
| 3496 |
# Instead, just use the default 2s on platforms that have 1s resolution, |
| 3497 |
# accept the extra 1s delay when using $sleep in the Automake tests, in |
| 3498 |
# exchange for not incurring the 2s delay for running the test for all |
| 3499 |
# packages. |
| 3500 |
# |
| 3501 |
am_try_resolutions= |
| 3502 |
if test "$am_cv_sleep_fractional_seconds" = yes; then |
| 3503 |
# Even a millisecond often causes a bunch of false positives, |
| 3504 |
# so just try a hundredth of a second. The time saved between .001 and |
| 3505 |
# .01 is not terribly consequential. |
| 3506 |
am_try_resolutions="0.01 0.1 $am_try_resolutions" |
| 3507 |
fi |
| 3508 |
|
| 3509 |
# In order to catch current-generation FAT out, we must *modify* files |
| 3510 |
# that already exist; the *creation* timestamp is finer. Use names |
| 3511 |
# that make ls -t sort them differently when they have equal |
| 3512 |
# timestamps than when they have distinct timestamps, keeping |
| 3513 |
# in mind that ls -t prints the *newest* file first. |
| 3514 |
rm -f conftest.ts? |
| 3515 |
: > conftest.ts1 |
| 3516 |
: > conftest.ts2 |
| 3517 |
: > conftest.ts3 |
| 3518 |
|
| 3519 |
# Make sure ls -t actually works. Do 'set' in a subshell so we don't |
| 3520 |
# clobber the current shell's arguments. (Outer-level square brackets |
| 3521 |
# are removed by m4; they're present so that m4 does not expand |
| 3522 |
# <dollar><star>; be careful, easy to get confused.) |
| 3523 |
if ( |
| 3524 |
set X `ls -t conftest.ts[12]` && |
| 3525 |
{ |
| 3526 |
test "$*" != "X conftest.ts1 conftest.ts2" || |
| 3527 |
test "$*" != "X conftest.ts2 conftest.ts1"; |
| 3528 |
} |
| 3529 |
); then :; else |
| 3530 |
# If neither matched, then we have a broken ls. This can happen |
| 3531 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3532 |
# broken ls alias from the environment. This has actually |
| 3533 |
# happened. Such a system could not be considered "sane". |
| 3534 |
printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 |
| 3535 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3536 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3537 |
as_fn_error $? "ls -t produces unexpected output. |
| 3538 |
Make sure there is not a broken ls alias in your environment. |
| 3539 |
See 'config.log' for more details" "$LINENO" 5; } |
| 3540 |
fi |
| 3541 |
|
| 3542 |
for am_try_res in $am_try_resolutions; do |
| 3543 |
# Any one fine-grained sleep might happen to cross the boundary |
| 3544 |
# between two values of a coarser actual resolution, but if we do |
| 3545 |
# two fine-grained sleeps in a row, at least one of them will fall |
| 3546 |
# entirely within a coarse interval. |
| 3547 |
echo alpha > conftest.ts1 |
| 3548 |
sleep $am_try_res |
| 3549 |
echo beta > conftest.ts2 |
| 3550 |
sleep $am_try_res |
| 3551 |
echo gamma > conftest.ts3 |
| 3552 |
|
| 3553 |
# We assume that 'ls -t' will make use of high-resolution |
| 3554 |
# timestamps if the operating system supports them at all. |
| 3555 |
if (set X `ls -t conftest.ts?` && |
| 3556 |
test "$2" = conftest.ts3 && |
| 3557 |
test "$3" = conftest.ts2 && |
| 3558 |
test "$4" = conftest.ts1); then |
| 3559 |
# |
| 3560 |
# Ok, ls -t worked. If we're at a resolution of 1 second, we're done, |
| 3561 |
# because we don't need to test make. |
| 3562 |
make_ok=true |
| 3563 |
if test $am_try_res != 1; then |
| 3564 |
# But if we've succeeded so far with a subsecond resolution, we |
| 3565 |
# have one more thing to check: make. It can happen that |
| 3566 |
# everything else supports the subsecond mtimes, but make doesn't; |
| 3567 |
# notably on macOS, which ships make 3.81 from 2006 (the last one |
| 3568 |
# released under GPLv2). https://bugs.gnu.org/68808 |
| 3569 |
# |
| 3570 |
# We test $MAKE if it is defined in the environment, else "make". |
| 3571 |
# It might get overridden later, but our hope is that in practice |
| 3572 |
# it does not matter: it is the system "make" which is (by far) |
| 3573 |
# the most likely to be broken, whereas if the user overrides it, |
| 3574 |
# probably they did so with a better, or at least not worse, make. |
| 3575 |
# https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html |
| 3576 |
# |
| 3577 |
# Create a Makefile (real tab character here): |
| 3578 |
rm -f conftest.mk |
| 3579 |
echo 'conftest.ts1: conftest.ts2' >conftest.mk |
| 3580 |
echo ' touch conftest.ts2' >>conftest.mk |
| 3581 |
# |
| 3582 |
# Now, running |
| 3583 |
# touch conftest.ts1; touch conftest.ts2; make |
| 3584 |
# should touch ts1 because ts2 is newer. This could happen by luck, |
| 3585 |
# but most often, it will fail if make's support is insufficient. So |
| 3586 |
# test for several consecutive successes. |
| 3587 |
# |
| 3588 |
# (We reuse conftest.ts[12] because we still want to modify existing |
| 3589 |
# files, not create new ones, per above.) |
| 3590 |
n=0 |
| 3591 |
make=${MAKE-make} |
| 3592 |
until test $n -eq 3; do |
| 3593 |
echo one > conftest.ts1 |
| 3594 |
sleep $am_try_res |
| 3595 |
echo two > conftest.ts2 # ts2 should now be newer than ts1 |
| 3596 |
if $make -f conftest.mk | grep 'up to date' >/dev/null; then |
| 3597 |
make_ok=false |
| 3598 |
break # out of $n loop |
| 3599 |
fi |
| 3600 |
n=`expr $n + 1` |
| 3601 |
done |
| 3602 |
fi |
| 3603 |
# |
| 3604 |
if $make_ok; then |
| 3605 |
# Everything we know to check worked out, so call this resolution good. |
| 3606 |
am_cv_filesystem_timestamp_resolution=$am_try_res |
| 3607 |
break # out of $am_try_res loop |
| 3608 |
fi |
| 3609 |
# Otherwise, we'll go on to check the next resolution. |
| 3610 |
fi |
| 3611 |
done |
| 3612 |
rm -f conftest.ts? |
| 3613 |
# (end _am_filesystem_timestamp_resolution) |
| 3614 |
;; |
| 3615 |
esac |
| 3616 |
fi |
| 3617 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 |
| 3618 |
printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } |
| 3619 |
|
| 3620 |
# This check should not be cached, as it may vary across builds of |
| 3621 |
# different projects. |
| 3622 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3623 |
printf %s "checking whether build environment is sane... " >&6; } |
| 3624 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 3625 |
# name. Accept space and tab only in the latter. |
| 3626 |
am_lf=' |
| 3627 |
' |
| 3628 |
case `pwd` in |
| 3629 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 3630 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3631 |
esac |
| 3632 |
case $srcdir in |
| 3633 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3634 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3635 |
esac |
| 3636 |
|
| 3637 |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 3638 |
# arguments. Must try -L first in case configure is actually a |
| 3639 |
# symlink; some systems play weird games with the mod time of symlinks |
| 3640 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 3641 |
# directory). |
| 3642 |
am_build_env_is_sane=no |
| 3643 |
am_has_slept=no |
| 3644 |
rm -f conftest.file |
| 3645 |
for am_try in 1 2; do |
| 3646 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3647 |
if ( |
| 3648 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3649 |
if test "$*" = "X"; then |
| 3650 |
# -L didn't work. |
| 3651 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 3652 |
fi |
| 3653 |
test "$2" = conftest.file |
| 3654 |
); then |
| 3655 |
am_build_env_is_sane=yes |
| 3656 |
break |
| 3657 |
fi |
| 3658 |
# Just in case. |
| 3659 |
sleep "$am_cv_filesystem_timestamp_resolution" |
| 3660 |
am_has_slept=yes |
| 3661 |
done |
| 3662 |
|
| 3663 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 |
| 3664 |
printf "%s\n" "$am_build_env_is_sane" >&6; } |
| 3665 |
if test "$am_build_env_is_sane" = no; then |
| 3666 |
as_fn_error $? "newly created file is older than distributed files! |
| 3667 |
Check your system clock" "$LINENO" 5 |
| 3668 |
fi |
| 3669 |
|
| 3670 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3671 |
# generated files are strictly newer. |
| 3672 |
am_sleep_pid= |
| 3673 |
if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 |
| 3674 |
then : |
| 3675 |
|
| 3676 |
else case e in #( |
| 3677 |
e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & |
| 3678 |
am_sleep_pid=$! |
| 3679 |
;; |
| 3680 |
esac |
| 3681 |
fi |
| 3682 |
|
| 3683 |
rm -f conftest.file |
| 3684 |
|
| 3685 |
test "$program_prefix" != NONE && |
| 3686 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3687 |
# Use a double $ so make ignores it. |
| 3688 |
test "$program_suffix" != NONE && |
| 3689 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3690 |
# Double any \ or $. |
| 3691 |
# By default was 's,x,x', remove it if useless. |
| 3692 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3693 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 3694 |
|
| 3695 |
|
| 3696 |
# Expand $ac_aux_dir to an absolute path. |
| 3697 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3698 |
|
| 3699 |
|
| 3700 |
if test x"${MISSING+set}" != xset; then |
| 3701 |
MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 3702 |
fi |
| 3703 |
# Use eval to expand $SHELL |
| 3704 |
if eval "$MISSING --is-lightweight"; then |
| 3705 |
am_missing_run="$MISSING " |
| 3706 |
else |
| 3707 |
am_missing_run= |
| 3708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3709 |
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3710 |
fi |
| 3711 |
|
| 3712 |
if test x"${install_sh+set}" != xset; then |
| 3713 |
case $am_aux_dir in |
| 3714 |
*\ * | *\ *) |
| 3715 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3716 |
*) |
| 3717 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3718 |
esac |
| 3719 |
fi |
| 3720 |
|
| 3721 |
# Installed binaries are usually stripped using 'strip' when the user |
| 3722 |
# run "make install-strip". However 'strip' might not be the right |
| 3723 |
# tool to use in cross-compilation environments, therefore Automake |
| 3724 |
# will honor the 'STRIP' environment variable to overrule this program. |
| 3725 |
if test "$cross_compiling" != no; then |
| 3726 |
if test -n "$ac_tool_prefix"; then |
| 3727 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3728 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3729 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3730 |
printf %s "checking for $ac_word... " >&6; } |
| 3731 |
if test ${ac_cv_prog_STRIP+y} |
| 3732 |
then : |
| 3733 |
printf %s "(cached) " >&6 |
| 3734 |
else case e in #( |
| 3735 |
e) if test -n "$STRIP"; then |
| 3736 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3737 |
else |
| 3738 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3739 |
for as_dir in $PATH |
| 3740 |
do |
| 3741 |
IFS=$as_save_IFS |
| 3742 |
case $as_dir in #((( |
| 3743 |
'') as_dir=./ ;; |
| 3744 |
*/) ;; |
| 3745 |
*) as_dir=$as_dir/ ;; |
| 3746 |
esac |
| 3747 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3748 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3749 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3750 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3751 |
break 2 |
| 3752 |
fi |
| 3753 |
done |
| 3754 |
done |
| 3755 |
IFS=$as_save_IFS |
| 3756 |
|
| 3757 |
fi ;; |
| 3758 |
esac |
| 3759 |
fi |
| 3760 |
STRIP=$ac_cv_prog_STRIP |
| 3761 |
if test -n "$STRIP"; then |
| 3762 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3763 |
printf "%s\n" "$STRIP" >&6; } |
| 3764 |
else |
| 3765 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3766 |
printf "%s\n" "no" >&6; } |
| 3767 |
fi |
| 3768 |
|
| 3769 |
|
| 3770 |
fi |
| 3771 |
if test -z "$ac_cv_prog_STRIP"; then |
| 3772 |
ac_ct_STRIP=$STRIP |
| 3773 |
# Extract the first word of "strip", so it can be a program name with args. |
| 3774 |
set dummy strip; ac_word=$2 |
| 3775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3776 |
printf %s "checking for $ac_word... " >&6; } |
| 3777 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 3778 |
then : |
| 3779 |
printf %s "(cached) " >&6 |
| 3780 |
else case e in #( |
| 3781 |
e) if test -n "$ac_ct_STRIP"; then |
| 3782 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3783 |
else |
| 3784 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3785 |
for as_dir in $PATH |
| 3786 |
do |
| 3787 |
IFS=$as_save_IFS |
| 3788 |
case $as_dir in #((( |
| 3789 |
'') as_dir=./ ;; |
| 3790 |
*/) ;; |
| 3791 |
*) as_dir=$as_dir/ ;; |
| 3792 |
esac |
| 3793 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3794 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3795 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 3796 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3797 |
break 2 |
| 3798 |
fi |
| 3799 |
done |
| 3800 |
done |
| 3801 |
IFS=$as_save_IFS |
| 3802 |
|
| 3803 |
fi ;; |
| 3804 |
esac |
| 3805 |
fi |
| 3806 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3807 |
if test -n "$ac_ct_STRIP"; then |
| 3808 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3809 |
printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 3810 |
else |
| 3811 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3812 |
printf "%s\n" "no" >&6; } |
| 3813 |
fi |
| 3814 |
|
| 3815 |
if test "x$ac_ct_STRIP" = x; then |
| 3816 |
STRIP=":" |
| 3817 |
else |
| 3818 |
case $cross_compiling:$ac_tool_warned in |
| 3819 |
yes:) |
| 3820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3821 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3822 |
ac_tool_warned=yes ;; |
| 3823 |
esac |
| 3824 |
STRIP=$ac_ct_STRIP |
| 3825 |
fi |
| 3826 |
else |
| 3827 |
STRIP="$ac_cv_prog_STRIP" |
| 3828 |
fi |
| 3829 |
|
| 3830 |
fi |
| 3831 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3832 |
|
| 3833 |
|
| 3834 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 3835 |
printf %s "checking for a race-free mkdir -p... " >&6; } |
| 3836 |
if test -z "$MKDIR_P"; then |
| 3837 |
if test ${ac_cv_path_mkdir+y} |
| 3838 |
then : |
| 3839 |
printf %s "(cached) " >&6 |
| 3840 |
else case e in #( |
| 3841 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3842 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3843 |
do |
| 3844 |
IFS=$as_save_IFS |
| 3845 |
case $as_dir in #((( |
| 3846 |
'') as_dir=./ ;; |
| 3847 |
*/) ;; |
| 3848 |
*) as_dir=$as_dir/ ;; |
| 3849 |
esac |
| 3850 |
for ac_prog in mkdir gmkdir; do |
| 3851 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3852 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 3853 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3854 |
'mkdir ('*'coreutils) '* | \ |
| 3855 |
*'BusyBox '* | \ |
| 3856 |
'mkdir (fileutils) '4.1*) |
| 3857 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 3858 |
break 3;; |
| 3859 |
esac |
| 3860 |
done |
| 3861 |
done |
| 3862 |
done |
| 3863 |
IFS=$as_save_IFS |
| 3864 |
;; |
| 3865 |
esac |
| 3866 |
fi |
| 3867 |
|
| 3868 |
test -d ./--version && rmdir ./--version |
| 3869 |
if test ${ac_cv_path_mkdir+y}; then |
| 3870 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 3871 |
else |
| 3872 |
# As a last resort, use plain mkdir -p, |
| 3873 |
# in the hope it doesn't have the bugs of ancient mkdir. |
| 3874 |
MKDIR_P='mkdir -p' |
| 3875 |
fi |
| 3876 |
fi |
| 3877 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3878 |
printf "%s\n" "$MKDIR_P" >&6; } |
| 3879 |
|
| 3880 |
for ac_prog in gawk mawk nawk awk |
| 3881 |
do |
| 3882 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3883 |
set dummy $ac_prog; ac_word=$2 |
| 3884 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3885 |
printf %s "checking for $ac_word... " >&6; } |
| 3886 |
if test ${ac_cv_prog_AWK+y} |
| 3887 |
then : |
| 3888 |
printf %s "(cached) " >&6 |
| 3889 |
else case e in #( |
| 3890 |
e) if test -n "$AWK"; then |
| 3891 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3892 |
else |
| 3893 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3894 |
for as_dir in $PATH |
| 3895 |
do |
| 3896 |
IFS=$as_save_IFS |
| 3897 |
case $as_dir in #((( |
| 3898 |
'') as_dir=./ ;; |
| 3899 |
*/) ;; |
| 3900 |
*) as_dir=$as_dir/ ;; |
| 3901 |
esac |
| 3902 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3903 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3904 |
ac_cv_prog_AWK="$ac_prog" |
| 3905 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3906 |
break 2 |
| 3907 |
fi |
| 3908 |
done |
| 3909 |
done |
| 3910 |
IFS=$as_save_IFS |
| 3911 |
|
| 3912 |
fi ;; |
| 3913 |
esac |
| 3914 |
fi |
| 3915 |
AWK=$ac_cv_prog_AWK |
| 3916 |
if test -n "$AWK"; then |
| 3917 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3918 |
printf "%s\n" "$AWK" >&6; } |
| 3919 |
else |
| 3920 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3921 |
printf "%s\n" "no" >&6; } |
| 3922 |
fi |
| 3923 |
|
| 3924 |
|
| 3925 |
test -n "$AWK" && break |
| 3926 |
done |
| 3927 |
|
| 3928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3929 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3930 |
set x ${MAKE-make} |
| 3931 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3932 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 3933 |
then : |
| 3934 |
printf %s "(cached) " >&6 |
| 3935 |
else case e in #( |
| 3936 |
e) cat >conftest.make <<\_ACEOF |
| 3937 |
SHELL = /bin/sh |
| 3938 |
all: |
| 3939 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3940 |
_ACEOF |
| 3941 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3942 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3943 |
*@@@%%%=?*=@@@%%%*) |
| 3944 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3945 |
*) |
| 3946 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3947 |
esac |
| 3948 |
rm -f conftest.make ;; |
| 3949 |
esac |
| 3950 |
fi |
| 3951 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3952 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3953 |
printf "%s\n" "yes" >&6; } |
| 3954 |
SET_MAKE= |
| 3955 |
else |
| 3956 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3957 |
printf "%s\n" "no" >&6; } |
| 3958 |
SET_MAKE="MAKE=${MAKE-make}" |
| 3959 |
fi |
| 3960 |
|
| 3961 |
rm -rf .tst 2>/dev/null |
| 3962 |
mkdir .tst 2>/dev/null |
| 3963 |
if test -d .tst; then |
| 3964 |
am__leading_dot=. |
| 3965 |
else |
| 3966 |
am__leading_dot=_ |
| 3967 |
fi |
| 3968 |
rmdir .tst 2>/dev/null |
| 3969 |
|
| 3970 |
AM_DEFAULT_VERBOSITY=1 |
| 3971 |
# Check whether --enable-silent-rules was given. |
| 3972 |
if test ${enable_silent_rules+y} |
| 3973 |
then : |
| 3974 |
enableval=$enable_silent_rules; |
| 3975 |
fi |
| 3976 |
|
| 3977 |
am_make=${MAKE-make} |
| 3978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3979 |
printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 3980 |
if test ${am_cv_make_support_nested_variables+y} |
| 3981 |
then : |
| 3982 |
printf %s "(cached) " >&6 |
| 3983 |
else case e in #( |
| 3984 |
e) if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 3985 |
BAR0=false |
| 3986 |
BAR1=true |
| 3987 |
V=1 |
| 3988 |
am__doit: |
| 3989 |
@$(TRUE) |
| 3990 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3991 |
am_cv_make_support_nested_variables=yes |
| 3992 |
else |
| 3993 |
am_cv_make_support_nested_variables=no |
| 3994 |
fi ;; |
| 3995 |
esac |
| 3996 |
fi |
| 3997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3998 |
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 3999 |
AM_BACKSLASH='\' |
| 4000 |
|
| 4001 |
am__rm_f_notfound= |
| 4002 |
if (rm -f && rm -fr && rm -rf) 2>/dev/null |
| 4003 |
then : |
| 4004 |
|
| 4005 |
else case e in #( |
| 4006 |
e) am__rm_f_notfound='""' ;; |
| 4007 |
esac |
| 4008 |
fi |
| 4009 |
|
| 4010 |
|
| 4011 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 |
| 4012 |
printf %s "checking xargs -n works... " >&6; } |
| 4013 |
if test ${am_cv_xargs_n_works+y} |
| 4014 |
then : |
| 4015 |
printf %s "(cached) " >&6 |
| 4016 |
else case e in #( |
| 4017 |
e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 |
| 4018 |
3" |
| 4019 |
then : |
| 4020 |
am_cv_xargs_n_works=yes |
| 4021 |
else case e in #( |
| 4022 |
e) am_cv_xargs_n_works=no ;; |
| 4023 |
esac |
| 4024 |
fi ;; |
| 4025 |
esac |
| 4026 |
fi |
| 4027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 |
| 4028 |
printf "%s\n" "$am_cv_xargs_n_works" >&6; } |
| 4029 |
if test "$am_cv_xargs_n_works" = yes |
| 4030 |
then : |
| 4031 |
am__xargs_n='xargs -n' |
| 4032 |
else case e in #( |
| 4033 |
e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' |
| 4034 |
;; |
| 4035 |
esac |
| 4036 |
fi |
| 4037 |
|
| 4038 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 4039 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 4040 |
# is not polluted with repeated "-I." |
| 4041 |
am__isrc=' -I$(srcdir)' |
| 4042 |
# test to see if srcdir already configured |
| 4043 |
if test -f $srcdir/config.status; then |
| 4044 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 4045 |
fi |
| 4046 |
fi |
| 4047 |
|
| 4048 |
# test whether we have cygpath |
| 4049 |
if test -z "$CYGPATH_W"; then |
| 4050 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 4051 |
CYGPATH_W='cygpath -w' |
| 4052 |
else |
| 4053 |
CYGPATH_W=echo |
| 4054 |
fi |
| 4055 |
fi |
| 4056 |
|
| 4057 |
|
| 4058 |
# Define the identity of the package. |
| 4059 |
PACKAGE='nss-pam-ldapd' |
| 4060 |
VERSION='0.9.13' |
| 4061 |
|
| 4062 |
|
| 4063 |
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 4064 |
|
| 4065 |
|
| 4066 |
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 4067 |
|
| 4068 |
# Some tools Automake needs. |
| 4069 |
|
| 4070 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4071 |
|
| 4072 |
|
| 4073 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4074 |
|
| 4075 |
|
| 4076 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4077 |
|
| 4078 |
|
| 4079 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4080 |
|
| 4081 |
|
| 4082 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4083 |
|
| 4084 |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 4085 |
# dies out for good. For more background, see: |
| 4086 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 4087 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 4088 |
mkdir_p='$(MKDIR_P)' |
| 4089 |
|
| 4090 |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 4091 |
# system "awk" is bad on some platforms. |
| 4092 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 4093 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 4094 |
AMTAR='$${TAR-tar}' |
| 4095 |
|
| 4096 |
|
| 4097 |
# We'll loop over all known methods to create a tar archive until one works. |
| 4098 |
_am_tools='gnutar pax cpio none' |
| 4099 |
|
| 4100 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 4101 |
|
| 4102 |
|
| 4103 |
|
| 4104 |
|
| 4105 |
|
| 4106 |
# Variables for tags utilities; see am/tags.am |
| 4107 |
if test -z "$CTAGS"; then |
| 4108 |
CTAGS=ctags |
| 4109 |
fi |
| 4110 |
|
| 4111 |
if test -z "$ETAGS"; then |
| 4112 |
ETAGS=etags |
| 4113 |
fi |
| 4114 |
|
| 4115 |
if test -z "$CSCOPE"; then |
| 4116 |
CSCOPE=cscope |
| 4117 |
fi |
| 4118 |
|
| 4119 |
|
| 4120 |
|
| 4121 |
|
| 4122 |
|
| 4123 |
|
| 4124 |
|
| 4125 |
|
| 4126 |
# create a config.h file (Automake will add -DHAVE_CONFIG_H) |
| 4127 |
ac_config_headers="$ac_config_headers config.h" |
| 4128 |
|
| 4129 |
|
| 4130 |
# check for programs |
| 4131 |
|
| 4132 |
|
| 4133 |
|
| 4134 |
|
| 4135 |
|
| 4136 |
|
| 4137 |
|
| 4138 |
|
| 4139 |
|
| 4140 |
ac_ext=c |
| 4141 |
ac_cpp='$CPP $CPPFLAGS' |
| 4142 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4143 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4144 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4145 |
if test -n "$ac_tool_prefix"; then |
| 4146 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4147 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4148 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4149 |
printf %s "checking for $ac_word... " >&6; } |
| 4150 |
if test ${ac_cv_prog_CC+y} |
| 4151 |
then : |
| 4152 |
printf %s "(cached) " >&6 |
| 4153 |
else case e in #( |
| 4154 |
e) if test -n "$CC"; then |
| 4155 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4156 |
else |
| 4157 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4158 |
for as_dir in $PATH |
| 4159 |
do |
| 4160 |
IFS=$as_save_IFS |
| 4161 |
case $as_dir in #((( |
| 4162 |
'') as_dir=./ ;; |
| 4163 |
*/) ;; |
| 4164 |
*) as_dir=$as_dir/ ;; |
| 4165 |
esac |
| 4166 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4167 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4168 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4169 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4170 |
break 2 |
| 4171 |
fi |
| 4172 |
done |
| 4173 |
done |
| 4174 |
IFS=$as_save_IFS |
| 4175 |
|
| 4176 |
fi ;; |
| 4177 |
esac |
| 4178 |
fi |
| 4179 |
CC=$ac_cv_prog_CC |
| 4180 |
if test -n "$CC"; then |
| 4181 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4182 |
printf "%s\n" "$CC" >&6; } |
| 4183 |
else |
| 4184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4185 |
printf "%s\n" "no" >&6; } |
| 4186 |
fi |
| 4187 |
|
| 4188 |
|
| 4189 |
fi |
| 4190 |
if test -z "$ac_cv_prog_CC"; then |
| 4191 |
ac_ct_CC=$CC |
| 4192 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 4193 |
set dummy gcc; ac_word=$2 |
| 4194 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4195 |
printf %s "checking for $ac_word... " >&6; } |
| 4196 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4197 |
then : |
| 4198 |
printf %s "(cached) " >&6 |
| 4199 |
else case e in #( |
| 4200 |
e) if test -n "$ac_ct_CC"; then |
| 4201 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4202 |
else |
| 4203 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4204 |
for as_dir in $PATH |
| 4205 |
do |
| 4206 |
IFS=$as_save_IFS |
| 4207 |
case $as_dir in #((( |
| 4208 |
'') as_dir=./ ;; |
| 4209 |
*/) ;; |
| 4210 |
*) as_dir=$as_dir/ ;; |
| 4211 |
esac |
| 4212 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4213 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4214 |
ac_cv_prog_ac_ct_CC="gcc" |
| 4215 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4216 |
break 2 |
| 4217 |
fi |
| 4218 |
done |
| 4219 |
done |
| 4220 |
IFS=$as_save_IFS |
| 4221 |
|
| 4222 |
fi ;; |
| 4223 |
esac |
| 4224 |
fi |
| 4225 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4226 |
if test -n "$ac_ct_CC"; then |
| 4227 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4228 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4229 |
else |
| 4230 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4231 |
printf "%s\n" "no" >&6; } |
| 4232 |
fi |
| 4233 |
|
| 4234 |
if test "x$ac_ct_CC" = x; then |
| 4235 |
CC="" |
| 4236 |
else |
| 4237 |
case $cross_compiling:$ac_tool_warned in |
| 4238 |
yes:) |
| 4239 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4240 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4241 |
ac_tool_warned=yes ;; |
| 4242 |
esac |
| 4243 |
CC=$ac_ct_CC |
| 4244 |
fi |
| 4245 |
else |
| 4246 |
CC="$ac_cv_prog_CC" |
| 4247 |
fi |
| 4248 |
|
| 4249 |
if test -z "$CC"; then |
| 4250 |
if test -n "$ac_tool_prefix"; then |
| 4251 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4252 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4253 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4254 |
printf %s "checking for $ac_word... " >&6; } |
| 4255 |
if test ${ac_cv_prog_CC+y} |
| 4256 |
then : |
| 4257 |
printf %s "(cached) " >&6 |
| 4258 |
else case e in #( |
| 4259 |
e) if test -n "$CC"; then |
| 4260 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4261 |
else |
| 4262 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4263 |
for as_dir in $PATH |
| 4264 |
do |
| 4265 |
IFS=$as_save_IFS |
| 4266 |
case $as_dir in #((( |
| 4267 |
'') as_dir=./ ;; |
| 4268 |
*/) ;; |
| 4269 |
*) as_dir=$as_dir/ ;; |
| 4270 |
esac |
| 4271 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4272 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4273 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4274 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4275 |
break 2 |
| 4276 |
fi |
| 4277 |
done |
| 4278 |
done |
| 4279 |
IFS=$as_save_IFS |
| 4280 |
|
| 4281 |
fi ;; |
| 4282 |
esac |
| 4283 |
fi |
| 4284 |
CC=$ac_cv_prog_CC |
| 4285 |
if test -n "$CC"; then |
| 4286 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4287 |
printf "%s\n" "$CC" >&6; } |
| 4288 |
else |
| 4289 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4290 |
printf "%s\n" "no" >&6; } |
| 4291 |
fi |
| 4292 |
|
| 4293 |
|
| 4294 |
fi |
| 4295 |
fi |
| 4296 |
if test -z "$CC"; then |
| 4297 |
# Extract the first word of "cc", so it can be a program name with args. |
| 4298 |
set dummy cc; ac_word=$2 |
| 4299 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4300 |
printf %s "checking for $ac_word... " >&6; } |
| 4301 |
if test ${ac_cv_prog_CC+y} |
| 4302 |
then : |
| 4303 |
printf %s "(cached) " >&6 |
| 4304 |
else case e in #( |
| 4305 |
e) if test -n "$CC"; then |
| 4306 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4307 |
else |
| 4308 |
ac_prog_rejected=no |
| 4309 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4310 |
for as_dir in $PATH |
| 4311 |
do |
| 4312 |
IFS=$as_save_IFS |
| 4313 |
case $as_dir in #((( |
| 4314 |
'') as_dir=./ ;; |
| 4315 |
*/) ;; |
| 4316 |
*) as_dir=$as_dir/ ;; |
| 4317 |
esac |
| 4318 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4319 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4320 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4321 |
ac_prog_rejected=yes |
| 4322 |
continue |
| 4323 |
fi |
| 4324 |
ac_cv_prog_CC="cc" |
| 4325 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4326 |
break 2 |
| 4327 |
fi |
| 4328 |
done |
| 4329 |
done |
| 4330 |
IFS=$as_save_IFS |
| 4331 |
|
| 4332 |
if test $ac_prog_rejected = yes; then |
| 4333 |
# We found a bogon in the path, so make sure we never use it. |
| 4334 |
set dummy $ac_cv_prog_CC |
| 4335 |
shift |
| 4336 |
if test $# != 0; then |
| 4337 |
# We chose a different compiler from the bogus one. |
| 4338 |
# However, it has the same basename, so the bogon will be chosen |
| 4339 |
# first if we set CC to just the basename; use the full file name. |
| 4340 |
shift |
| 4341 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4342 |
fi |
| 4343 |
fi |
| 4344 |
fi ;; |
| 4345 |
esac |
| 4346 |
fi |
| 4347 |
CC=$ac_cv_prog_CC |
| 4348 |
if test -n "$CC"; then |
| 4349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4350 |
printf "%s\n" "$CC" >&6; } |
| 4351 |
else |
| 4352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4353 |
printf "%s\n" "no" >&6; } |
| 4354 |
fi |
| 4355 |
|
| 4356 |
|
| 4357 |
fi |
| 4358 |
if test -z "$CC"; then |
| 4359 |
if test -n "$ac_tool_prefix"; then |
| 4360 |
for ac_prog in cl.exe |
| 4361 |
do |
| 4362 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4363 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4364 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4365 |
printf %s "checking for $ac_word... " >&6; } |
| 4366 |
if test ${ac_cv_prog_CC+y} |
| 4367 |
then : |
| 4368 |
printf %s "(cached) " >&6 |
| 4369 |
else case e in #( |
| 4370 |
e) if test -n "$CC"; then |
| 4371 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4372 |
else |
| 4373 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4374 |
for as_dir in $PATH |
| 4375 |
do |
| 4376 |
IFS=$as_save_IFS |
| 4377 |
case $as_dir in #((( |
| 4378 |
'') as_dir=./ ;; |
| 4379 |
*/) ;; |
| 4380 |
*) as_dir=$as_dir/ ;; |
| 4381 |
esac |
| 4382 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4383 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4384 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4385 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4386 |
break 2 |
| 4387 |
fi |
| 4388 |
done |
| 4389 |
done |
| 4390 |
IFS=$as_save_IFS |
| 4391 |
|
| 4392 |
fi ;; |
| 4393 |
esac |
| 4394 |
fi |
| 4395 |
CC=$ac_cv_prog_CC |
| 4396 |
if test -n "$CC"; then |
| 4397 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4398 |
printf "%s\n" "$CC" >&6; } |
| 4399 |
else |
| 4400 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4401 |
printf "%s\n" "no" >&6; } |
| 4402 |
fi |
| 4403 |
|
| 4404 |
|
| 4405 |
test -n "$CC" && break |
| 4406 |
done |
| 4407 |
fi |
| 4408 |
if test -z "$CC"; then |
| 4409 |
ac_ct_CC=$CC |
| 4410 |
for ac_prog in cl.exe |
| 4411 |
do |
| 4412 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4413 |
set dummy $ac_prog; ac_word=$2 |
| 4414 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4415 |
printf %s "checking for $ac_word... " >&6; } |
| 4416 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4417 |
then : |
| 4418 |
printf %s "(cached) " >&6 |
| 4419 |
else case e in #( |
| 4420 |
e) if test -n "$ac_ct_CC"; then |
| 4421 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4422 |
else |
| 4423 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4424 |
for as_dir in $PATH |
| 4425 |
do |
| 4426 |
IFS=$as_save_IFS |
| 4427 |
case $as_dir in #((( |
| 4428 |
'') as_dir=./ ;; |
| 4429 |
*/) ;; |
| 4430 |
*) as_dir=$as_dir/ ;; |
| 4431 |
esac |
| 4432 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4433 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4434 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4435 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4436 |
break 2 |
| 4437 |
fi |
| 4438 |
done |
| 4439 |
done |
| 4440 |
IFS=$as_save_IFS |
| 4441 |
|
| 4442 |
fi ;; |
| 4443 |
esac |
| 4444 |
fi |
| 4445 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4446 |
if test -n "$ac_ct_CC"; then |
| 4447 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4448 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4449 |
else |
| 4450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4451 |
printf "%s\n" "no" >&6; } |
| 4452 |
fi |
| 4453 |
|
| 4454 |
|
| 4455 |
test -n "$ac_ct_CC" && break |
| 4456 |
done |
| 4457 |
|
| 4458 |
if test "x$ac_ct_CC" = x; then |
| 4459 |
CC="" |
| 4460 |
else |
| 4461 |
case $cross_compiling:$ac_tool_warned in |
| 4462 |
yes:) |
| 4463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4464 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4465 |
ac_tool_warned=yes ;; |
| 4466 |
esac |
| 4467 |
CC=$ac_ct_CC |
| 4468 |
fi |
| 4469 |
fi |
| 4470 |
|
| 4471 |
fi |
| 4472 |
if test -z "$CC"; then |
| 4473 |
if test -n "$ac_tool_prefix"; then |
| 4474 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4475 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4477 |
printf %s "checking for $ac_word... " >&6; } |
| 4478 |
if test ${ac_cv_prog_CC+y} |
| 4479 |
then : |
| 4480 |
printf %s "(cached) " >&6 |
| 4481 |
else case e in #( |
| 4482 |
e) if test -n "$CC"; then |
| 4483 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4484 |
else |
| 4485 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4486 |
for as_dir in $PATH |
| 4487 |
do |
| 4488 |
IFS=$as_save_IFS |
| 4489 |
case $as_dir in #((( |
| 4490 |
'') as_dir=./ ;; |
| 4491 |
*/) ;; |
| 4492 |
*) as_dir=$as_dir/ ;; |
| 4493 |
esac |
| 4494 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4495 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4496 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4497 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4498 |
break 2 |
| 4499 |
fi |
| 4500 |
done |
| 4501 |
done |
| 4502 |
IFS=$as_save_IFS |
| 4503 |
|
| 4504 |
fi ;; |
| 4505 |
esac |
| 4506 |
fi |
| 4507 |
CC=$ac_cv_prog_CC |
| 4508 |
if test -n "$CC"; then |
| 4509 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4510 |
printf "%s\n" "$CC" >&6; } |
| 4511 |
else |
| 4512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4513 |
printf "%s\n" "no" >&6; } |
| 4514 |
fi |
| 4515 |
|
| 4516 |
|
| 4517 |
fi |
| 4518 |
if test -z "$ac_cv_prog_CC"; then |
| 4519 |
ac_ct_CC=$CC |
| 4520 |
# Extract the first word of "clang", so it can be a program name with args. |
| 4521 |
set dummy clang; ac_word=$2 |
| 4522 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4523 |
printf %s "checking for $ac_word... " >&6; } |
| 4524 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4525 |
then : |
| 4526 |
printf %s "(cached) " >&6 |
| 4527 |
else case e in #( |
| 4528 |
e) if test -n "$ac_ct_CC"; then |
| 4529 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4530 |
else |
| 4531 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4532 |
for as_dir in $PATH |
| 4533 |
do |
| 4534 |
IFS=$as_save_IFS |
| 4535 |
case $as_dir in #((( |
| 4536 |
'') as_dir=./ ;; |
| 4537 |
*/) ;; |
| 4538 |
*) as_dir=$as_dir/ ;; |
| 4539 |
esac |
| 4540 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4541 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4542 |
ac_cv_prog_ac_ct_CC="clang" |
| 4543 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4544 |
break 2 |
| 4545 |
fi |
| 4546 |
done |
| 4547 |
done |
| 4548 |
IFS=$as_save_IFS |
| 4549 |
|
| 4550 |
fi ;; |
| 4551 |
esac |
| 4552 |
fi |
| 4553 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4554 |
if test -n "$ac_ct_CC"; then |
| 4555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4556 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4557 |
else |
| 4558 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4559 |
printf "%s\n" "no" >&6; } |
| 4560 |
fi |
| 4561 |
|
| 4562 |
if test "x$ac_ct_CC" = x; then |
| 4563 |
CC="" |
| 4564 |
else |
| 4565 |
case $cross_compiling:$ac_tool_warned in |
| 4566 |
yes:) |
| 4567 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4568 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4569 |
ac_tool_warned=yes ;; |
| 4570 |
esac |
| 4571 |
CC=$ac_ct_CC |
| 4572 |
fi |
| 4573 |
else |
| 4574 |
CC="$ac_cv_prog_CC" |
| 4575 |
fi |
| 4576 |
|
| 4577 |
fi |
| 4578 |
|
| 4579 |
|
| 4580 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4581 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4582 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4583 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4584 |
|
| 4585 |
# Provide some information about the compiler. |
| 4586 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4587 |
set X $ac_compile |
| 4588 |
ac_compiler=$2 |
| 4589 |
for ac_option in --version -v -V -qversion -version; do |
| 4590 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 4591 |
case "(($ac_try" in |
| 4592 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4593 |
*) ac_try_echo=$ac_try;; |
| 4594 |
esac |
| 4595 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4596 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4597 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4598 |
ac_status=$? |
| 4599 |
if test -s conftest.err; then |
| 4600 |
sed '10a\ |
| 4601 |
... rest of stderr output deleted ... |
| 4602 |
10q' conftest.err >conftest.er1 |
| 4603 |
cat conftest.er1 >&5 |
| 4604 |
fi |
| 4605 |
rm -f conftest.er1 conftest.err |
| 4606 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4607 |
test $ac_status = 0; } |
| 4608 |
done |
| 4609 |
|
| 4610 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4611 |
/* end confdefs.h. */ |
| 4612 |
|
| 4613 |
int |
| 4614 |
main (void) |
| 4615 |
{ |
| 4616 |
|
| 4617 |
; |
| 4618 |
return 0; |
| 4619 |
} |
| 4620 |
_ACEOF |
| 4621 |
ac_clean_files_save=$ac_clean_files |
| 4622 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4623 |
# Try to create an executable without -o first, disregard a.out. |
| 4624 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 4625 |
# of exeext. |
| 4626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4627 |
printf %s "checking whether the C compiler works... " >&6; } |
| 4628 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4629 |
|
| 4630 |
# The possible output files: |
| 4631 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4632 |
|
| 4633 |
ac_rmfiles= |
| 4634 |
for ac_file in $ac_files |
| 4635 |
do |
| 4636 |
case $ac_file in |
| 4637 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4638 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4639 |
esac |
| 4640 |
done |
| 4641 |
rm -f $ac_rmfiles |
| 4642 |
|
| 4643 |
if { { ac_try="$ac_link_default" |
| 4644 |
case "(($ac_try" in |
| 4645 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4646 |
*) ac_try_echo=$ac_try;; |
| 4647 |
esac |
| 4648 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4649 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4650 |
(eval "$ac_link_default") 2>&5 |
| 4651 |
ac_status=$? |
| 4652 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4653 |
test $ac_status = 0; } |
| 4654 |
then : |
| 4655 |
# Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 4656 |
# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 4657 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4658 |
# so that the user can short-circuit this test for compilers unknown to |
| 4659 |
# Autoconf. |
| 4660 |
for ac_file in $ac_files '' |
| 4661 |
do |
| 4662 |
test -f "$ac_file" || continue |
| 4663 |
case $ac_file in |
| 4664 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4665 |
;; |
| 4666 |
[ab].out ) |
| 4667 |
# We found the default executable, but exeext='' is most |
| 4668 |
# certainly right. |
| 4669 |
break;; |
| 4670 |
*.* ) |
| 4671 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4672 |
then :; else |
| 4673 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4674 |
fi |
| 4675 |
# We set ac_cv_exeext here because the later test for it is not |
| 4676 |
# safe: cross compilers may not add the suffix if given an '-o' |
| 4677 |
# argument, so we may need to know it at that point already. |
| 4678 |
# Even if this section looks crufty: it has the advantage of |
| 4679 |
# actually working. |
| 4680 |
break;; |
| 4681 |
* ) |
| 4682 |
break;; |
| 4683 |
esac |
| 4684 |
done |
| 4685 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4686 |
|
| 4687 |
else case e in #( |
| 4688 |
e) ac_file='' ;; |
| 4689 |
esac |
| 4690 |
fi |
| 4691 |
if test -z "$ac_file" |
| 4692 |
then : |
| 4693 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4694 |
printf "%s\n" "no" >&6; } |
| 4695 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 4696 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4697 |
|
| 4698 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4699 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4700 |
as_fn_error 77 "C compiler cannot create executables |
| 4701 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4702 |
else case e in #( |
| 4703 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4704 |
printf "%s\n" "yes" >&6; } ;; |
| 4705 |
esac |
| 4706 |
fi |
| 4707 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4708 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 4709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4710 |
printf "%s\n" "$ac_file" >&6; } |
| 4711 |
ac_exeext=$ac_cv_exeext |
| 4712 |
|
| 4713 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4714 |
ac_clean_files=$ac_clean_files_save |
| 4715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4716 |
printf %s "checking for suffix of executables... " >&6; } |
| 4717 |
if { { ac_try="$ac_link" |
| 4718 |
case "(($ac_try" in |
| 4719 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4720 |
*) ac_try_echo=$ac_try;; |
| 4721 |
esac |
| 4722 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4723 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4724 |
(eval "$ac_link") 2>&5 |
| 4725 |
ac_status=$? |
| 4726 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4727 |
test $ac_status = 0; } |
| 4728 |
then : |
| 4729 |
# If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 4730 |
# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 4731 |
# work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 4732 |
# 'rm'. |
| 4733 |
for ac_file in conftest.exe conftest conftest.*; do |
| 4734 |
test -f "$ac_file" || continue |
| 4735 |
case $ac_file in |
| 4736 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4737 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4738 |
break;; |
| 4739 |
* ) break;; |
| 4740 |
esac |
| 4741 |
done |
| 4742 |
else case e in #( |
| 4743 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4744 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4745 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4746 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4747 |
esac |
| 4748 |
fi |
| 4749 |
rm -f conftest conftest$ac_cv_exeext |
| 4750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4751 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4752 |
|
| 4753 |
rm -f conftest.$ac_ext |
| 4754 |
EXEEXT=$ac_cv_exeext |
| 4755 |
ac_exeext=$EXEEXT |
| 4756 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4757 |
/* end confdefs.h. */ |
| 4758 |
#include <stdio.h> |
| 4759 |
int |
| 4760 |
main (void) |
| 4761 |
{ |
| 4762 |
FILE *f = fopen ("conftest.out", "w"); |
| 4763 |
if (!f) |
| 4764 |
return 1; |
| 4765 |
return ferror (f) || fclose (f) != 0; |
| 4766 |
|
| 4767 |
; |
| 4768 |
return 0; |
| 4769 |
} |
| 4770 |
_ACEOF |
| 4771 |
ac_clean_files="$ac_clean_files conftest.out" |
| 4772 |
# Check that the compiler produces executables we can run. If not, either |
| 4773 |
# the compiler is broken, or we cross compile. |
| 4774 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4775 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 4776 |
if test "$cross_compiling" != yes; then |
| 4777 |
{ { ac_try="$ac_link" |
| 4778 |
case "(($ac_try" in |
| 4779 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4780 |
*) ac_try_echo=$ac_try;; |
| 4781 |
esac |
| 4782 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4783 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4784 |
(eval "$ac_link") 2>&5 |
| 4785 |
ac_status=$? |
| 4786 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4787 |
test $ac_status = 0; } |
| 4788 |
if { ac_try='./conftest$ac_cv_exeext' |
| 4789 |
{ { case "(($ac_try" in |
| 4790 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4791 |
*) ac_try_echo=$ac_try;; |
| 4792 |
esac |
| 4793 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4794 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4795 |
(eval "$ac_try") 2>&5 |
| 4796 |
ac_status=$? |
| 4797 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4798 |
test $ac_status = 0; }; }; then |
| 4799 |
cross_compiling=no |
| 4800 |
else |
| 4801 |
if test "$cross_compiling" = maybe; then |
| 4802 |
cross_compiling=yes |
| 4803 |
else |
| 4804 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4805 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4806 |
as_fn_error 77 "cannot run C compiled programs. |
| 4807 |
If you meant to cross compile, use '--host'. |
| 4808 |
See 'config.log' for more details" "$LINENO" 5; } |
| 4809 |
fi |
| 4810 |
fi |
| 4811 |
fi |
| 4812 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4813 |
printf "%s\n" "$cross_compiling" >&6; } |
| 4814 |
|
| 4815 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 4816 |
conftest.o conftest.obj conftest.out |
| 4817 |
ac_clean_files=$ac_clean_files_save |
| 4818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4819 |
printf %s "checking for suffix of object files... " >&6; } |
| 4820 |
if test ${ac_cv_objext+y} |
| 4821 |
then : |
| 4822 |
printf %s "(cached) " >&6 |
| 4823 |
else case e in #( |
| 4824 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4825 |
/* end confdefs.h. */ |
| 4826 |
|
| 4827 |
int |
| 4828 |
main (void) |
| 4829 |
{ |
| 4830 |
|
| 4831 |
; |
| 4832 |
return 0; |
| 4833 |
} |
| 4834 |
_ACEOF |
| 4835 |
rm -f conftest.o conftest.obj |
| 4836 |
if { { ac_try="$ac_compile" |
| 4837 |
case "(($ac_try" in |
| 4838 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4839 |
*) ac_try_echo=$ac_try;; |
| 4840 |
esac |
| 4841 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4842 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4843 |
(eval "$ac_compile") 2>&5 |
| 4844 |
ac_status=$? |
| 4845 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4846 |
test $ac_status = 0; } |
| 4847 |
then : |
| 4848 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 4849 |
test -f "$ac_file" || continue; |
| 4850 |
case $ac_file in |
| 4851 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4852 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4853 |
break;; |
| 4854 |
esac |
| 4855 |
done |
| 4856 |
else case e in #( |
| 4857 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 4858 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4859 |
|
| 4860 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4861 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4862 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4863 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4864 |
esac |
| 4865 |
fi |
| 4866 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 4867 |
esac |
| 4868 |
fi |
| 4869 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4870 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 4871 |
OBJEXT=$ac_cv_objext |
| 4872 |
ac_objext=$OBJEXT |
| 4873 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4874 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4875 |
if test ${ac_cv_c_compiler_gnu+y} |
| 4876 |
then : |
| 4877 |
printf %s "(cached) " >&6 |
| 4878 |
else case e in #( |
| 4879 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4880 |
/* end confdefs.h. */ |
| 4881 |
|
| 4882 |
int |
| 4883 |
main (void) |
| 4884 |
{ |
| 4885 |
#ifndef __GNUC__ |
| 4886 |
choke me |
| 4887 |
#endif |
| 4888 |
|
| 4889 |
; |
| 4890 |
return 0; |
| 4891 |
} |
| 4892 |
_ACEOF |
| 4893 |
if ac_fn_c_try_compile "$LINENO" |
| 4894 |
then : |
| 4895 |
ac_compiler_gnu=yes |
| 4896 |
else case e in #( |
| 4897 |
e) ac_compiler_gnu=no ;; |
| 4898 |
esac |
| 4899 |
fi |
| 4900 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4901 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4902 |
;; |
| 4903 |
esac |
| 4904 |
fi |
| 4905 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4906 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4907 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4908 |
|
| 4909 |
if test $ac_compiler_gnu = yes; then |
| 4910 |
GCC=yes |
| 4911 |
else |
| 4912 |
GCC= |
| 4913 |
fi |
| 4914 |
ac_test_CFLAGS=${CFLAGS+y} |
| 4915 |
ac_save_CFLAGS=$CFLAGS |
| 4916 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4917 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 4918 |
if test ${ac_cv_prog_cc_g+y} |
| 4919 |
then : |
| 4920 |
printf %s "(cached) " >&6 |
| 4921 |
else case e in #( |
| 4922 |
e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 4923 |
ac_c_werror_flag=yes |
| 4924 |
ac_cv_prog_cc_g=no |
| 4925 |
CFLAGS="-g" |
| 4926 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4927 |
/* end confdefs.h. */ |
| 4928 |
|
| 4929 |
int |
| 4930 |
main (void) |
| 4931 |
{ |
| 4932 |
|
| 4933 |
; |
| 4934 |
return 0; |
| 4935 |
} |
| 4936 |
_ACEOF |
| 4937 |
if ac_fn_c_try_compile "$LINENO" |
| 4938 |
then : |
| 4939 |
ac_cv_prog_cc_g=yes |
| 4940 |
else case e in #( |
| 4941 |
e) CFLAGS="" |
| 4942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4943 |
/* end confdefs.h. */ |
| 4944 |
|
| 4945 |
int |
| 4946 |
main (void) |
| 4947 |
{ |
| 4948 |
|
| 4949 |
; |
| 4950 |
return 0; |
| 4951 |
} |
| 4952 |
_ACEOF |
| 4953 |
if ac_fn_c_try_compile "$LINENO" |
| 4954 |
then : |
| 4955 |
|
| 4956 |
else case e in #( |
| 4957 |
e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 4958 |
CFLAGS="-g" |
| 4959 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4960 |
/* end confdefs.h. */ |
| 4961 |
|
| 4962 |
int |
| 4963 |
main (void) |
| 4964 |
{ |
| 4965 |
|
| 4966 |
; |
| 4967 |
return 0; |
| 4968 |
} |
| 4969 |
_ACEOF |
| 4970 |
if ac_fn_c_try_compile "$LINENO" |
| 4971 |
then : |
| 4972 |
ac_cv_prog_cc_g=yes |
| 4973 |
fi |
| 4974 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4975 |
esac |
| 4976 |
fi |
| 4977 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4978 |
esac |
| 4979 |
fi |
| 4980 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4981 |
ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 4982 |
esac |
| 4983 |
fi |
| 4984 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4985 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4986 |
if test $ac_test_CFLAGS; then |
| 4987 |
CFLAGS=$ac_save_CFLAGS |
| 4988 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4989 |
if test "$GCC" = yes; then |
| 4990 |
CFLAGS="-g -O2" |
| 4991 |
else |
| 4992 |
CFLAGS="-g" |
| 4993 |
fi |
| 4994 |
else |
| 4995 |
if test "$GCC" = yes; then |
| 4996 |
CFLAGS="-O2" |
| 4997 |
else |
| 4998 |
CFLAGS= |
| 4999 |
fi |
| 5000 |
fi |
| 5001 |
ac_prog_cc_stdc=no |
| 5002 |
if test x$ac_prog_cc_stdc = xno |
| 5003 |
then : |
| 5004 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 5005 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 5006 |
if test ${ac_cv_prog_cc_c11+y} |
| 5007 |
then : |
| 5008 |
printf %s "(cached) " >&6 |
| 5009 |
else case e in #( |
| 5010 |
e) ac_cv_prog_cc_c11=no |
| 5011 |
ac_save_CC=$CC |
| 5012 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5013 |
/* end confdefs.h. */ |
| 5014 |
$ac_c_conftest_c11_program |
| 5015 |
_ACEOF |
| 5016 |
for ac_arg in '' -std=gnu11 |
| 5017 |
do |
| 5018 |
CC="$ac_save_CC $ac_arg" |
| 5019 |
if ac_fn_c_try_compile "$LINENO" |
| 5020 |
then : |
| 5021 |
ac_cv_prog_cc_c11=$ac_arg |
| 5022 |
fi |
| 5023 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5024 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 5025 |
done |
| 5026 |
rm -f conftest.$ac_ext |
| 5027 |
CC=$ac_save_CC ;; |
| 5028 |
esac |
| 5029 |
fi |
| 5030 |
|
| 5031 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 5032 |
then : |
| 5033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5034 |
printf "%s\n" "unsupported" >&6; } |
| 5035 |
else case e in #( |
| 5036 |
e) if test "x$ac_cv_prog_cc_c11" = x |
| 5037 |
then : |
| 5038 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5039 |
printf "%s\n" "none needed" >&6; } |
| 5040 |
else case e in #( |
| 5041 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 5042 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 5043 |
CC="$CC $ac_cv_prog_cc_c11" ;; |
| 5044 |
esac |
| 5045 |
fi |
| 5046 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 5047 |
ac_prog_cc_stdc=c11 ;; |
| 5048 |
esac |
| 5049 |
fi |
| 5050 |
fi |
| 5051 |
if test x$ac_prog_cc_stdc = xno |
| 5052 |
then : |
| 5053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 5054 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 5055 |
if test ${ac_cv_prog_cc_c99+y} |
| 5056 |
then : |
| 5057 |
printf %s "(cached) " >&6 |
| 5058 |
else case e in #( |
| 5059 |
e) ac_cv_prog_cc_c99=no |
| 5060 |
ac_save_CC=$CC |
| 5061 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5062 |
/* end confdefs.h. */ |
| 5063 |
$ac_c_conftest_c99_program |
| 5064 |
_ACEOF |
| 5065 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 5066 |
do |
| 5067 |
CC="$ac_save_CC $ac_arg" |
| 5068 |
if ac_fn_c_try_compile "$LINENO" |
| 5069 |
then : |
| 5070 |
ac_cv_prog_cc_c99=$ac_arg |
| 5071 |
fi |
| 5072 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5073 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5074 |
done |
| 5075 |
rm -f conftest.$ac_ext |
| 5076 |
CC=$ac_save_CC ;; |
| 5077 |
esac |
| 5078 |
fi |
| 5079 |
|
| 5080 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 5081 |
then : |
| 5082 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5083 |
printf "%s\n" "unsupported" >&6; } |
| 5084 |
else case e in #( |
| 5085 |
e) if test "x$ac_cv_prog_cc_c99" = x |
| 5086 |
then : |
| 5087 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5088 |
printf "%s\n" "none needed" >&6; } |
| 5089 |
else case e in #( |
| 5090 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 5091 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 5092 |
CC="$CC $ac_cv_prog_cc_c99" ;; |
| 5093 |
esac |
| 5094 |
fi |
| 5095 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5096 |
ac_prog_cc_stdc=c99 ;; |
| 5097 |
esac |
| 5098 |
fi |
| 5099 |
fi |
| 5100 |
if test x$ac_prog_cc_stdc = xno |
| 5101 |
then : |
| 5102 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 5103 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 5104 |
if test ${ac_cv_prog_cc_c89+y} |
| 5105 |
then : |
| 5106 |
printf %s "(cached) " >&6 |
| 5107 |
else case e in #( |
| 5108 |
e) ac_cv_prog_cc_c89=no |
| 5109 |
ac_save_CC=$CC |
| 5110 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5111 |
/* end confdefs.h. */ |
| 5112 |
$ac_c_conftest_c89_program |
| 5113 |
_ACEOF |
| 5114 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5115 |
do |
| 5116 |
CC="$ac_save_CC $ac_arg" |
| 5117 |
if ac_fn_c_try_compile "$LINENO" |
| 5118 |
then : |
| 5119 |
ac_cv_prog_cc_c89=$ac_arg |
| 5120 |
fi |
| 5121 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5122 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5123 |
done |
| 5124 |
rm -f conftest.$ac_ext |
| 5125 |
CC=$ac_save_CC ;; |
| 5126 |
esac |
| 5127 |
fi |
| 5128 |
|
| 5129 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 5130 |
then : |
| 5131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5132 |
printf "%s\n" "unsupported" >&6; } |
| 5133 |
else case e in #( |
| 5134 |
e) if test "x$ac_cv_prog_cc_c89" = x |
| 5135 |
then : |
| 5136 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5137 |
printf "%s\n" "none needed" >&6; } |
| 5138 |
else case e in #( |
| 5139 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5140 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5141 |
CC="$CC $ac_cv_prog_cc_c89" ;; |
| 5142 |
esac |
| 5143 |
fi |
| 5144 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5145 |
ac_prog_cc_stdc=c89 ;; |
| 5146 |
esac |
| 5147 |
fi |
| 5148 |
fi |
| 5149 |
|
| 5150 |
ac_ext=c |
| 5151 |
ac_cpp='$CPP $CPPFLAGS' |
| 5152 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5153 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5154 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5155 |
|
| 5156 |
|
| 5157 |
ac_ext=c |
| 5158 |
ac_cpp='$CPP $CPPFLAGS' |
| 5159 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5160 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5161 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5162 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5163 |
printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 5164 |
if test ${am_cv_prog_cc_c_o+y} |
| 5165 |
then : |
| 5166 |
printf %s "(cached) " >&6 |
| 5167 |
else case e in #( |
| 5168 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5169 |
/* end confdefs.h. */ |
| 5170 |
|
| 5171 |
int |
| 5172 |
main (void) |
| 5173 |
{ |
| 5174 |
|
| 5175 |
; |
| 5176 |
return 0; |
| 5177 |
} |
| 5178 |
_ACEOF |
| 5179 |
# Make sure it works both with $CC and with simple cc. |
| 5180 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 5181 |
# compilers refuse to overwrite an existing .o file with -o, |
| 5182 |
# though they will create one. |
| 5183 |
am_cv_prog_cc_c_o=yes |
| 5184 |
for am_i in 1 2; do |
| 5185 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5186 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5187 |
ac_status=$? |
| 5188 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5189 |
(exit $ac_status); } \ |
| 5190 |
&& test -f conftest2.$ac_objext; then |
| 5191 |
: OK |
| 5192 |
else |
| 5193 |
am_cv_prog_cc_c_o=no |
| 5194 |
break |
| 5195 |
fi |
| 5196 |
done |
| 5197 |
rm -f core conftest* |
| 5198 |
unset am_i ;; |
| 5199 |
esac |
| 5200 |
fi |
| 5201 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5202 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 5203 |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 5204 |
# Losing compiler, so override with the script. |
| 5205 |
# FIXME: It is wrong to rewrite CC. |
| 5206 |
# But if we don't then we get into trouble of one sort or another. |
| 5207 |
# A longer-term fix would be to have automake use am__CC in this case, |
| 5208 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5209 |
CC="$am_aux_dir/compile $CC" |
| 5210 |
fi |
| 5211 |
ac_ext=c |
| 5212 |
ac_cpp='$CPP $CPPFLAGS' |
| 5213 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5214 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5215 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5216 |
|
| 5217 |
DEPDIR="${am__leading_dot}deps" |
| 5218 |
|
| 5219 |
ac_config_commands="$ac_config_commands depfiles" |
| 5220 |
|
| 5221 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 5222 |
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 5223 |
cat > confinc.mk << 'END' |
| 5224 |
am__doit: |
| 5225 |
@echo this is the am__doit target >confinc.out |
| 5226 |
.PHONY: am__doit |
| 5227 |
END |
| 5228 |
am__include="#" |
| 5229 |
am__quote= |
| 5230 |
# BSD make does it like this. |
| 5231 |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 5232 |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 5233 |
echo 'include confinc.mk # ignored' > confmf.GNU |
| 5234 |
_am_result=no |
| 5235 |
for s in GNU BSD; do |
| 5236 |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 5237 |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 5238 |
ac_status=$? |
| 5239 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5240 |
(exit $ac_status); } |
| 5241 |
case $?:`cat confinc.out 2>/dev/null` in #( |
| 5242 |
'0:this is the am__doit target') : |
| 5243 |
case $s in #( |
| 5244 |
BSD) : |
| 5245 |
am__include='.include' am__quote='"' ;; #( |
| 5246 |
*) : |
| 5247 |
am__include='include' am__quote='' ;; |
| 5248 |
esac ;; #( |
| 5249 |
*) : |
| 5250 |
;; |
| 5251 |
esac |
| 5252 |
if test "$am__include" != "#"; then |
| 5253 |
_am_result="yes ($s style)" |
| 5254 |
break |
| 5255 |
fi |
| 5256 |
done |
| 5257 |
rm -f confinc.* confmf.* |
| 5258 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 5259 |
printf "%s\n" "${_am_result}" >&6; } |
| 5260 |
|
| 5261 |
# Check whether --enable-dependency-tracking was given. |
| 5262 |
if test ${enable_dependency_tracking+y} |
| 5263 |
then : |
| 5264 |
enableval=$enable_dependency_tracking; |
| 5265 |
fi |
| 5266 |
|
| 5267 |
if test "x$enable_dependency_tracking" != xno; then |
| 5268 |
am_depcomp="$ac_aux_dir/depcomp" |
| 5269 |
AMDEPBACKSLASH='\' |
| 5270 |
am__nodep='_no' |
| 5271 |
fi |
| 5272 |
if test "x$enable_dependency_tracking" != xno; then |
| 5273 |
AMDEP_TRUE= |
| 5274 |
AMDEP_FALSE='#' |
| 5275 |
else |
| 5276 |
AMDEP_TRUE='#' |
| 5277 |
AMDEP_FALSE= |
| 5278 |
fi |
| 5279 |
|
| 5280 |
|
| 5281 |
|
| 5282 |
depcc="$CC" am_compiler_list= |
| 5283 |
|
| 5284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5285 |
printf %s "checking dependency style of $depcc... " >&6; } |
| 5286 |
if test ${am_cv_CC_dependencies_compiler_type+y} |
| 5287 |
then : |
| 5288 |
printf %s "(cached) " >&6 |
| 5289 |
else case e in #( |
| 5290 |
e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5291 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5292 |
# making bogus files that we don't know about and never remove. For |
| 5293 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5294 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 5295 |
# in D". |
| 5296 |
rm -rf conftest.dir |
| 5297 |
mkdir conftest.dir |
| 5298 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5299 |
# using a relative directory. |
| 5300 |
cp "$am_depcomp" conftest.dir |
| 5301 |
cd conftest.dir |
| 5302 |
# We will build objects and dependencies in a subdirectory because |
| 5303 |
# it helps to detect inapplicable dependency modes. For instance |
| 5304 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 5305 |
# side effect of compilation, but ICC will put the dependencies in |
| 5306 |
# the current directory while Tru64 will put them in the object |
| 5307 |
# directory. |
| 5308 |
mkdir sub |
| 5309 |
|
| 5310 |
am_cv_CC_dependencies_compiler_type=none |
| 5311 |
if test "$am_compiler_list" = ""; then |
| 5312 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5313 |
fi |
| 5314 |
am__universal=false |
| 5315 |
case " $depcc " in #( |
| 5316 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5317 |
esac |
| 5318 |
|
| 5319 |
for depmode in $am_compiler_list; do |
| 5320 |
# Setup a source with many dependencies, because some compilers |
| 5321 |
# like to wrap large dependency lists on column 80 (with \), and |
| 5322 |
# we should not choose a depcomp mode which is confused by this. |
| 5323 |
# |
| 5324 |
# We need to recreate these files for each test, as the compiler may |
| 5325 |
# overwrite some of them when testing with obscure command lines. |
| 5326 |
# This happens at least with the AIX C compiler. |
| 5327 |
: > sub/conftest.c |
| 5328 |
for i in 1 2 3 4 5 6; do |
| 5329 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5330 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5331 |
# Solaris 10 /bin/sh. |
| 5332 |
echo '/* dummy */' > sub/conftst$i.h |
| 5333 |
done |
| 5334 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5335 |
|
| 5336 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5337 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5338 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 5339 |
# versions had trouble with output in subdirs. |
| 5340 |
am__obj=sub/conftest.${OBJEXT-o} |
| 5341 |
am__minus_obj="-o $am__obj" |
| 5342 |
case $depmode in |
| 5343 |
gcc) |
| 5344 |
# This depmode causes a compiler race in universal mode. |
| 5345 |
test "$am__universal" = false || continue |
| 5346 |
;; |
| 5347 |
nosideeffect) |
| 5348 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 5349 |
# only be used when explicitly requested. |
| 5350 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5351 |
continue |
| 5352 |
else |
| 5353 |
break |
| 5354 |
fi |
| 5355 |
;; |
| 5356 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5357 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 5358 |
# not run yet. These depmodes are late enough in the game, and |
| 5359 |
# so weak that their functioning should not be impacted. |
| 5360 |
am__obj=conftest.${OBJEXT-o} |
| 5361 |
am__minus_obj= |
| 5362 |
;; |
| 5363 |
none) break ;; |
| 5364 |
esac |
| 5365 |
if depmode=$depmode \ |
| 5366 |
source=sub/conftest.c object=$am__obj \ |
| 5367 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5368 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5369 |
>/dev/null 2>conftest.err && |
| 5370 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5371 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5372 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5373 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5374 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5375 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5376 |
# that says an option was ignored or not supported. |
| 5377 |
# When given -MP, icc 7.0 and 7.1 complain thus: |
| 5378 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5379 |
# The diagnosis changed in icc 8.0: |
| 5380 |
# icc: Command line remark: option '-MP' not supported |
| 5381 |
if (grep 'ignoring option' conftest.err || |
| 5382 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5383 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 5384 |
break |
| 5385 |
fi |
| 5386 |
fi |
| 5387 |
done |
| 5388 |
|
| 5389 |
cd .. |
| 5390 |
rm -rf conftest.dir |
| 5391 |
else |
| 5392 |
am_cv_CC_dependencies_compiler_type=none |
| 5393 |
fi |
| 5394 |
;; |
| 5395 |
esac |
| 5396 |
fi |
| 5397 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5398 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5399 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5400 |
|
| 5401 |
if |
| 5402 |
test "x$enable_dependency_tracking" != xno \ |
| 5403 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5404 |
am__fastdepCC_TRUE= |
| 5405 |
am__fastdepCC_FALSE='#' |
| 5406 |
else |
| 5407 |
am__fastdepCC_TRUE='#' |
| 5408 |
am__fastdepCC_FALSE= |
| 5409 |
fi |
| 5410 |
|
| 5411 |
|
| 5412 |
ac_ext=c |
| 5413 |
ac_cpp='$CPP $CPPFLAGS' |
| 5414 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5415 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5416 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5417 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5418 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 5419 |
# On Suns, sometimes $CPP names a directory. |
| 5420 |
if test -n "$CPP" && test -d "$CPP"; then |
| 5421 |
CPP= |
| 5422 |
fi |
| 5423 |
if test -z "$CPP"; then |
| 5424 |
if test ${ac_cv_prog_CPP+y} |
| 5425 |
then : |
| 5426 |
printf %s "(cached) " >&6 |
| 5427 |
else case e in #( |
| 5428 |
e) # Double quotes because $CC needs to be expanded |
| 5429 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 5430 |
do |
| 5431 |
ac_preproc_ok=false |
| 5432 |
for ac_c_preproc_warn_flag in '' yes |
| 5433 |
do |
| 5434 |
# Use a header file that comes with gcc, so configuring glibc |
| 5435 |
# with a fresh cross-compiler works. |
| 5436 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5437 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5438 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5439 |
/* end confdefs.h. */ |
| 5440 |
#include <limits.h> |
| 5441 |
Syntax error |
| 5442 |
_ACEOF |
| 5443 |
if ac_fn_c_try_cpp "$LINENO" |
| 5444 |
then : |
| 5445 |
|
| 5446 |
else case e in #( |
| 5447 |
e) # Broken: fails on valid input. |
| 5448 |
continue ;; |
| 5449 |
esac |
| 5450 |
fi |
| 5451 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5452 |
|
| 5453 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 5454 |
# can be detected and how. |
| 5455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5456 |
/* end confdefs.h. */ |
| 5457 |
#include <ac_nonexistent.h> |
| 5458 |
_ACEOF |
| 5459 |
if ac_fn_c_try_cpp "$LINENO" |
| 5460 |
then : |
| 5461 |
# Broken: success on invalid input. |
| 5462 |
continue |
| 5463 |
else case e in #( |
| 5464 |
e) # Passes both tests. |
| 5465 |
ac_preproc_ok=: |
| 5466 |
break ;; |
| 5467 |
esac |
| 5468 |
fi |
| 5469 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5470 |
|
| 5471 |
done |
| 5472 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5473 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 5474 |
if $ac_preproc_ok |
| 5475 |
then : |
| 5476 |
break |
| 5477 |
fi |
| 5478 |
|
| 5479 |
done |
| 5480 |
ac_cv_prog_CPP=$CPP |
| 5481 |
;; |
| 5482 |
esac |
| 5483 |
fi |
| 5484 |
CPP=$ac_cv_prog_CPP |
| 5485 |
else |
| 5486 |
ac_cv_prog_CPP=$CPP |
| 5487 |
fi |
| 5488 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5489 |
printf "%s\n" "$CPP" >&6; } |
| 5490 |
ac_preproc_ok=false |
| 5491 |
for ac_c_preproc_warn_flag in '' yes |
| 5492 |
do |
| 5493 |
# Use a header file that comes with gcc, so configuring glibc |
| 5494 |
# with a fresh cross-compiler works. |
| 5495 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5496 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5498 |
/* end confdefs.h. */ |
| 5499 |
#include <limits.h> |
| 5500 |
Syntax error |
| 5501 |
_ACEOF |
| 5502 |
if ac_fn_c_try_cpp "$LINENO" |
| 5503 |
then : |
| 5504 |
|
| 5505 |
else case e in #( |
| 5506 |
e) # Broken: fails on valid input. |
| 5507 |
continue ;; |
| 5508 |
esac |
| 5509 |
fi |
| 5510 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5511 |
|
| 5512 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 5513 |
# can be detected and how. |
| 5514 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5515 |
/* end confdefs.h. */ |
| 5516 |
#include <ac_nonexistent.h> |
| 5517 |
_ACEOF |
| 5518 |
if ac_fn_c_try_cpp "$LINENO" |
| 5519 |
then : |
| 5520 |
# Broken: success on invalid input. |
| 5521 |
continue |
| 5522 |
else case e in #( |
| 5523 |
e) # Passes both tests. |
| 5524 |
ac_preproc_ok=: |
| 5525 |
break ;; |
| 5526 |
esac |
| 5527 |
fi |
| 5528 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5529 |
|
| 5530 |
done |
| 5531 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5532 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 5533 |
if $ac_preproc_ok |
| 5534 |
then : |
| 5535 |
|
| 5536 |
else case e in #( |
| 5537 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5538 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5539 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5540 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 5541 |
esac |
| 5542 |
fi |
| 5543 |
|
| 5544 |
ac_ext=c |
| 5545 |
ac_cpp='$CPP $CPPFLAGS' |
| 5546 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5547 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5548 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5549 |
|
| 5550 |
|
| 5551 |
if test -n "$ac_tool_prefix"; then |
| 5552 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5553 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5554 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5555 |
printf %s "checking for $ac_word... " >&6; } |
| 5556 |
if test ${ac_cv_prog_RANLIB+y} |
| 5557 |
then : |
| 5558 |
printf %s "(cached) " >&6 |
| 5559 |
else case e in #( |
| 5560 |
e) if test -n "$RANLIB"; then |
| 5561 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5562 |
else |
| 5563 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5564 |
for as_dir in $PATH |
| 5565 |
do |
| 5566 |
IFS=$as_save_IFS |
| 5567 |
case $as_dir in #((( |
| 5568 |
'') as_dir=./ ;; |
| 5569 |
*/) ;; |
| 5570 |
*) as_dir=$as_dir/ ;; |
| 5571 |
esac |
| 5572 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5573 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5574 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5575 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5576 |
break 2 |
| 5577 |
fi |
| 5578 |
done |
| 5579 |
done |
| 5580 |
IFS=$as_save_IFS |
| 5581 |
|
| 5582 |
fi ;; |
| 5583 |
esac |
| 5584 |
fi |
| 5585 |
RANLIB=$ac_cv_prog_RANLIB |
| 5586 |
if test -n "$RANLIB"; then |
| 5587 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5588 |
printf "%s\n" "$RANLIB" >&6; } |
| 5589 |
else |
| 5590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5591 |
printf "%s\n" "no" >&6; } |
| 5592 |
fi |
| 5593 |
|
| 5594 |
|
| 5595 |
fi |
| 5596 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 5597 |
ac_ct_RANLIB=$RANLIB |
| 5598 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 5599 |
set dummy ranlib; ac_word=$2 |
| 5600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5601 |
printf %s "checking for $ac_word... " >&6; } |
| 5602 |
if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 5603 |
then : |
| 5604 |
printf %s "(cached) " >&6 |
| 5605 |
else case e in #( |
| 5606 |
e) if test -n "$ac_ct_RANLIB"; then |
| 5607 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5608 |
else |
| 5609 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5610 |
for as_dir in $PATH |
| 5611 |
do |
| 5612 |
IFS=$as_save_IFS |
| 5613 |
case $as_dir in #((( |
| 5614 |
'') as_dir=./ ;; |
| 5615 |
*/) ;; |
| 5616 |
*) as_dir=$as_dir/ ;; |
| 5617 |
esac |
| 5618 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5619 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5620 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5621 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5622 |
break 2 |
| 5623 |
fi |
| 5624 |
done |
| 5625 |
done |
| 5626 |
IFS=$as_save_IFS |
| 5627 |
|
| 5628 |
fi ;; |
| 5629 |
esac |
| 5630 |
fi |
| 5631 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5632 |
if test -n "$ac_ct_RANLIB"; then |
| 5633 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5634 |
printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 5635 |
else |
| 5636 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5637 |
printf "%s\n" "no" >&6; } |
| 5638 |
fi |
| 5639 |
|
| 5640 |
if test "x$ac_ct_RANLIB" = x; then |
| 5641 |
RANLIB=":" |
| 5642 |
else |
| 5643 |
case $cross_compiling:$ac_tool_warned in |
| 5644 |
yes:) |
| 5645 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5646 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5647 |
ac_tool_warned=yes ;; |
| 5648 |
esac |
| 5649 |
RANLIB=$ac_ct_RANLIB |
| 5650 |
fi |
| 5651 |
else |
| 5652 |
RANLIB="$ac_cv_prog_RANLIB" |
| 5653 |
fi |
| 5654 |
|
| 5655 |
|
| 5656 |
|
| 5657 |
ac_header= ac_cache= |
| 5658 |
for ac_item in $ac_header_c_list |
| 5659 |
do |
| 5660 |
if test $ac_cache; then |
| 5661 |
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 5662 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 5663 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 5664 |
fi |
| 5665 |
ac_header= ac_cache= |
| 5666 |
elif test $ac_header; then |
| 5667 |
ac_cache=$ac_item |
| 5668 |
else |
| 5669 |
ac_header=$ac_item |
| 5670 |
fi |
| 5671 |
done |
| 5672 |
|
| 5673 |
|
| 5674 |
|
| 5675 |
|
| 5676 |
|
| 5677 |
|
| 5678 |
|
| 5679 |
|
| 5680 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 5681 |
then : |
| 5682 |
|
| 5683 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 5684 |
|
| 5685 |
fi |
| 5686 |
|
| 5687 |
|
| 5688 |
|
| 5689 |
|
| 5690 |
|
| 5691 |
|
| 5692 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5693 |
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 5694 |
if test ${ac_cv_safe_to_define___extensions__+y} |
| 5695 |
then : |
| 5696 |
printf %s "(cached) " >&6 |
| 5697 |
else case e in #( |
| 5698 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5699 |
/* end confdefs.h. */ |
| 5700 |
|
| 5701 |
# define __EXTENSIONS__ 1 |
| 5702 |
$ac_includes_default |
| 5703 |
int |
| 5704 |
main (void) |
| 5705 |
{ |
| 5706 |
|
| 5707 |
; |
| 5708 |
return 0; |
| 5709 |
} |
| 5710 |
_ACEOF |
| 5711 |
if ac_fn_c_try_compile "$LINENO" |
| 5712 |
then : |
| 5713 |
ac_cv_safe_to_define___extensions__=yes |
| 5714 |
else case e in #( |
| 5715 |
e) ac_cv_safe_to_define___extensions__=no ;; |
| 5716 |
esac |
| 5717 |
fi |
| 5718 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5719 |
esac |
| 5720 |
fi |
| 5721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5722 |
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5723 |
|
| 5724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 5725 |
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 5726 |
if test ${ac_cv_should_define__xopen_source+y} |
| 5727 |
then : |
| 5728 |
printf %s "(cached) " >&6 |
| 5729 |
else case e in #( |
| 5730 |
e) ac_cv_should_define__xopen_source=no |
| 5731 |
if test $ac_cv_header_wchar_h = yes |
| 5732 |
then : |
| 5733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5734 |
/* end confdefs.h. */ |
| 5735 |
|
| 5736 |
#include <wchar.h> |
| 5737 |
mbstate_t x; |
| 5738 |
int |
| 5739 |
main (void) |
| 5740 |
{ |
| 5741 |
|
| 5742 |
; |
| 5743 |
return 0; |
| 5744 |
} |
| 5745 |
_ACEOF |
| 5746 |
if ac_fn_c_try_compile "$LINENO" |
| 5747 |
then : |
| 5748 |
|
| 5749 |
else case e in #( |
| 5750 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5751 |
/* end confdefs.h. */ |
| 5752 |
|
| 5753 |
#define _XOPEN_SOURCE 500 |
| 5754 |
#include <wchar.h> |
| 5755 |
mbstate_t x; |
| 5756 |
int |
| 5757 |
main (void) |
| 5758 |
{ |
| 5759 |
|
| 5760 |
; |
| 5761 |
return 0; |
| 5762 |
} |
| 5763 |
_ACEOF |
| 5764 |
if ac_fn_c_try_compile "$LINENO" |
| 5765 |
then : |
| 5766 |
ac_cv_should_define__xopen_source=yes |
| 5767 |
fi |
| 5768 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5769 |
esac |
| 5770 |
fi |
| 5771 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5772 |
fi ;; |
| 5773 |
esac |
| 5774 |
fi |
| 5775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 5776 |
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
| 5777 |
|
| 5778 |
printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 5779 |
|
| 5780 |
printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 5781 |
|
| 5782 |
printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 5783 |
|
| 5784 |
printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 5785 |
|
| 5786 |
printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 5787 |
|
| 5788 |
printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 5789 |
|
| 5790 |
printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5791 |
|
| 5792 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 5793 |
|
| 5794 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 5795 |
|
| 5796 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 5797 |
|
| 5798 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h |
| 5799 |
|
| 5800 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 5801 |
|
| 5802 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 5803 |
|
| 5804 |
printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 5805 |
|
| 5806 |
printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 5807 |
|
| 5808 |
printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5809 |
|
| 5810 |
if test $ac_cv_header_minix_config_h = yes |
| 5811 |
then : |
| 5812 |
MINIX=yes |
| 5813 |
printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 5814 |
|
| 5815 |
printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5816 |
|
| 5817 |
printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5818 |
|
| 5819 |
else case e in #( |
| 5820 |
e) MINIX= ;; |
| 5821 |
esac |
| 5822 |
fi |
| 5823 |
if test $ac_cv_safe_to_define___extensions__ = yes |
| 5824 |
then : |
| 5825 |
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5826 |
|
| 5827 |
fi |
| 5828 |
if test $ac_cv_should_define__xopen_source = yes |
| 5829 |
then : |
| 5830 |
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 5831 |
|
| 5832 |
fi |
| 5833 |
|
| 5834 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5835 |
printf %s "checking whether ln -s works... " >&6; } |
| 5836 |
LN_S=$as_ln_s |
| 5837 |
if test "$LN_S" = "ln -s"; then |
| 5838 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5839 |
printf "%s\n" "yes" >&6; } |
| 5840 |
else |
| 5841 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5842 |
printf "%s\n" "no, using $LN_S" >&6; } |
| 5843 |
fi |
| 5844 |
|
| 5845 |
|
| 5846 |
if test -n "$ac_tool_prefix"; then |
| 5847 |
for ac_prog in ar lib "link -lib" |
| 5848 |
do |
| 5849 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5850 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5851 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5852 |
printf %s "checking for $ac_word... " >&6; } |
| 5853 |
if test ${ac_cv_prog_AR+y} |
| 5854 |
then : |
| 5855 |
printf %s "(cached) " >&6 |
| 5856 |
else case e in #( |
| 5857 |
e) if test -n "$AR"; then |
| 5858 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5859 |
else |
| 5860 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5861 |
for as_dir in $PATH |
| 5862 |
do |
| 5863 |
IFS=$as_save_IFS |
| 5864 |
case $as_dir in #((( |
| 5865 |
'') as_dir=./ ;; |
| 5866 |
*/) ;; |
| 5867 |
*) as_dir=$as_dir/ ;; |
| 5868 |
esac |
| 5869 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5870 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5871 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5872 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5873 |
break 2 |
| 5874 |
fi |
| 5875 |
done |
| 5876 |
done |
| 5877 |
IFS=$as_save_IFS |
| 5878 |
|
| 5879 |
fi ;; |
| 5880 |
esac |
| 5881 |
fi |
| 5882 |
AR=$ac_cv_prog_AR |
| 5883 |
if test -n "$AR"; then |
| 5884 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5885 |
printf "%s\n" "$AR" >&6; } |
| 5886 |
else |
| 5887 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5888 |
printf "%s\n" "no" >&6; } |
| 5889 |
fi |
| 5890 |
|
| 5891 |
|
| 5892 |
test -n "$AR" && break |
| 5893 |
done |
| 5894 |
fi |
| 5895 |
if test -z "$AR"; then |
| 5896 |
ac_ct_AR=$AR |
| 5897 |
for ac_prog in ar lib "link -lib" |
| 5898 |
do |
| 5899 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5900 |
set dummy $ac_prog; ac_word=$2 |
| 5901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5902 |
printf %s "checking for $ac_word... " >&6; } |
| 5903 |
if test ${ac_cv_prog_ac_ct_AR+y} |
| 5904 |
then : |
| 5905 |
printf %s "(cached) " >&6 |
| 5906 |
else case e in #( |
| 5907 |
e) if test -n "$ac_ct_AR"; then |
| 5908 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5909 |
else |
| 5910 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5911 |
for as_dir in $PATH |
| 5912 |
do |
| 5913 |
IFS=$as_save_IFS |
| 5914 |
case $as_dir in #((( |
| 5915 |
'') as_dir=./ ;; |
| 5916 |
*/) ;; |
| 5917 |
*) as_dir=$as_dir/ ;; |
| 5918 |
esac |
| 5919 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5920 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5921 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5922 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5923 |
break 2 |
| 5924 |
fi |
| 5925 |
done |
| 5926 |
done |
| 5927 |
IFS=$as_save_IFS |
| 5928 |
|
| 5929 |
fi ;; |
| 5930 |
esac |
| 5931 |
fi |
| 5932 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5933 |
if test -n "$ac_ct_AR"; then |
| 5934 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5935 |
printf "%s\n" "$ac_ct_AR" >&6; } |
| 5936 |
else |
| 5937 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5938 |
printf "%s\n" "no" >&6; } |
| 5939 |
fi |
| 5940 |
|
| 5941 |
|
| 5942 |
test -n "$ac_ct_AR" && break |
| 5943 |
done |
| 5944 |
|
| 5945 |
if test "x$ac_ct_AR" = x; then |
| 5946 |
AR="false" |
| 5947 |
else |
| 5948 |
case $cross_compiling:$ac_tool_warned in |
| 5949 |
yes:) |
| 5950 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5951 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5952 |
ac_tool_warned=yes ;; |
| 5953 |
esac |
| 5954 |
AR=$ac_ct_AR |
| 5955 |
fi |
| 5956 |
fi |
| 5957 |
|
| 5958 |
: ${AR=ar} |
| 5959 |
: ${ARFLAGS=cr} |
| 5960 |
|
| 5961 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 5962 |
printf %s "checking the archiver ($AR) interface... " >&6; } |
| 5963 |
if test ${am_cv_ar_interface+y} |
| 5964 |
then : |
| 5965 |
printf %s "(cached) " >&6 |
| 5966 |
else case e in #( |
| 5967 |
e) ac_ext=c |
| 5968 |
ac_cpp='$CPP $CPPFLAGS' |
| 5969 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5970 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5971 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5972 |
|
| 5973 |
am_cv_ar_interface=ar |
| 5974 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5975 |
/* end confdefs.h. */ |
| 5976 |
int some_variable = 0; |
| 5977 |
_ACEOF |
| 5978 |
if ac_fn_c_try_compile "$LINENO" |
| 5979 |
then : |
| 5980 |
am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5' |
| 5981 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 5982 |
(eval $am_ar_try) 2>&5 |
| 5983 |
ac_status=$? |
| 5984 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5985 |
test $ac_status = 0; } |
| 5986 |
if test "$ac_status" -eq 0; then |
| 5987 |
am_cv_ar_interface=ar |
| 5988 |
else |
| 5989 |
am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 5990 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 5991 |
(eval $am_ar_try) 2>&5 |
| 5992 |
ac_status=$? |
| 5993 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5994 |
test $ac_status = 0; } |
| 5995 |
if test "$ac_status" -eq 0; then |
| 5996 |
am_cv_ar_interface=lib |
| 5997 |
else |
| 5998 |
am_cv_ar_interface=unknown |
| 5999 |
fi |
| 6000 |
fi |
| 6001 |
rm -f conftest.lib libconftest.a |
| 6002 |
|
| 6003 |
fi |
| 6004 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6005 |
ac_ext=c |
| 6006 |
ac_cpp='$CPP $CPPFLAGS' |
| 6007 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6008 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6009 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6010 |
;; |
| 6011 |
esac |
| 6012 |
fi |
| 6013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 6014 |
printf "%s\n" "$am_cv_ar_interface" >&6; } |
| 6015 |
|
| 6016 |
case $am_cv_ar_interface in |
| 6017 |
ar) |
| 6018 |
;; |
| 6019 |
lib) |
| 6020 |
# Microsoft lib, so override with the ar-lib wrapper script. |
| 6021 |
# FIXME: It is wrong to rewrite AR. |
| 6022 |
# But if we don't then we get into trouble of one sort or another. |
| 6023 |
# A longer-term fix would be to have automake use am__AR in this case, |
| 6024 |
# and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 6025 |
# similar. |
| 6026 |
AR="$am_aux_dir/ar-lib $AR" |
| 6027 |
;; |
| 6028 |
unknown) |
| 6029 |
as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
| 6030 |
;; |
| 6031 |
esac |
| 6032 |
|
| 6033 |
|
| 6034 |
# checks for tool to convert docbook to man |
| 6035 |
genman="no" |
| 6036 |
for ac_prog in docbook2x-man |
| 6037 |
do |
| 6038 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6039 |
set dummy $ac_prog; ac_word=$2 |
| 6040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6041 |
printf %s "checking for $ac_word... " >&6; } |
| 6042 |
if test ${ac_cv_path_DOCBOOK2X_MAN+y} |
| 6043 |
then : |
| 6044 |
printf %s "(cached) " >&6 |
| 6045 |
else case e in #( |
| 6046 |
e) case $DOCBOOK2X_MAN in |
| 6047 |
[\\/]* | ?:[\\/]*) |
| 6048 |
ac_cv_path_DOCBOOK2X_MAN="$DOCBOOK2X_MAN" # Let the user override the test with a path. |
| 6049 |
;; |
| 6050 |
*) |
| 6051 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6052 |
for as_dir in $PATH |
| 6053 |
do |
| 6054 |
IFS=$as_save_IFS |
| 6055 |
case $as_dir in #((( |
| 6056 |
'') as_dir=./ ;; |
| 6057 |
*/) ;; |
| 6058 |
*) as_dir=$as_dir/ ;; |
| 6059 |
esac |
| 6060 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6061 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6062 |
ac_cv_path_DOCBOOK2X_MAN="$as_dir$ac_word$ac_exec_ext" |
| 6063 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6064 |
break 2 |
| 6065 |
fi |
| 6066 |
done |
| 6067 |
done |
| 6068 |
IFS=$as_save_IFS |
| 6069 |
|
| 6070 |
;; |
| 6071 |
esac ;; |
| 6072 |
esac |
| 6073 |
fi |
| 6074 |
DOCBOOK2X_MAN=$ac_cv_path_DOCBOOK2X_MAN |
| 6075 |
if test -n "$DOCBOOK2X_MAN"; then |
| 6076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK2X_MAN" >&5 |
| 6077 |
printf "%s\n" "$DOCBOOK2X_MAN" >&6; } |
| 6078 |
else |
| 6079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6080 |
printf "%s\n" "no" >&6; } |
| 6081 |
fi |
| 6082 |
|
| 6083 |
|
| 6084 |
test -n "$DOCBOOK2X_MAN" && break |
| 6085 |
done |
| 6086 |
|
| 6087 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tool to (re)generate man pages" >&5 |
| 6088 |
printf %s "checking for tool to (re)generate man pages... " >&6; } |
| 6089 |
if test "x${DOCBOOK2X_MAN}" != x |
| 6090 |
then |
| 6091 |
genman="${DOCBOOK2X_MAN}" |
| 6092 |
fi |
| 6093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $genman" >&5 |
| 6094 |
printf "%s\n" "$genman" >&6; } |
| 6095 |
if test "x${genman}" != "xno"; then |
| 6096 |
GENMAN_TRUE= |
| 6097 |
GENMAN_FALSE='#' |
| 6098 |
else |
| 6099 |
GENMAN_TRUE='#' |
| 6100 |
GENMAN_FALSE= |
| 6101 |
fi |
| 6102 |
|
| 6103 |
if test "x${genman}" = "xno" |
| 6104 |
then |
| 6105 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: docbook2x-man not found: not (re)generating man pages" >&5 |
| 6106 |
printf "%s\n" "$as_me: WARNING: docbook2x-man not found: not (re)generating man pages" >&2;} |
| 6107 |
fi |
| 6108 |
|
| 6109 |
# check whether to install manual pages |
| 6110 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install man pages" >&5 |
| 6111 |
printf %s "checking whether to install man pages... " >&6; } |
| 6112 |
instman="no" |
| 6113 |
if test "x${genman}" != "xno" || ls "${srcdir}/man/"*.? > /dev/null 2>&1 |
| 6114 |
then |
| 6115 |
instman="yes" |
| 6116 |
fi |
| 6117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $instman" >&5 |
| 6118 |
printf "%s\n" "$instman" >&6; } |
| 6119 |
if test "x${instman}" != "xno"; then |
| 6120 |
INSTMAN_TRUE= |
| 6121 |
INSTMAN_FALSE='#' |
| 6122 |
else |
| 6123 |
INSTMAN_TRUE='#' |
| 6124 |
INSTMAN_FALSE= |
| 6125 |
fi |
| 6126 |
|
| 6127 |
if test "x${instman}" = "xno" |
| 6128 |
then |
| 6129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not installing man pages (no generator and not pre-generated)" >&5 |
| 6130 |
printf "%s\n" "$as_me: WARNING: not installing man pages (no generator and not pre-generated)" >&2;} |
| 6131 |
fi |
| 6132 |
|
| 6133 |
# check for Python and modules |
| 6134 |
|
| 6135 |
|
| 6136 |
|
| 6137 |
|
| 6138 |
|
| 6139 |
|
| 6140 |
if test -n "$PYTHON"; then |
| 6141 |
# If the user set $PYTHON, use it and don't search something else. |
| 6142 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5 |
| 6143 |
printf %s "checking whether $PYTHON version is >= 2.7... " >&6; } |
| 6144 |
prog="import sys |
| 6145 |
# split strings by '.' and convert to numeric. Append some zeros |
| 6146 |
# because we need at least 4 digits for the hex conversion. |
| 6147 |
# map returns an iterator in Python 3.0 and a list in 2.x |
| 6148 |
minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] |
| 6149 |
minverhex = 0 |
| 6150 |
# xrange is not present in Python 3.0 and range returns an iterator |
| 6151 |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 6152 |
sys.exit(sys.hexversion < minverhex)" |
| 6153 |
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 |
| 6154 |
($PYTHON -c "$prog") >&5 2>&5 |
| 6155 |
ac_status=$? |
| 6156 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6157 |
(exit $ac_status); } |
| 6158 |
then : |
| 6159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6160 |
printf "%s\n" "yes" >&6; } |
| 6161 |
else case e in #( |
| 6162 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6163 |
printf "%s\n" "no" >&6; } |
| 6164 |
as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; |
| 6165 |
esac |
| 6166 |
fi |
| 6167 |
am_display_PYTHON=$PYTHON |
| 6168 |
else |
| 6169 |
# Otherwise, try each interpreter until we find one that satisfies |
| 6170 |
# VERSION. |
| 6171 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5 |
| 6172 |
printf %s "checking for a Python interpreter with version >= 2.7... " >&6; } |
| 6173 |
if test ${am_cv_pathless_PYTHON+y} |
| 6174 |
then : |
| 6175 |
printf %s "(cached) " >&6 |
| 6176 |
else case e in #( |
| 6177 |
e) |
| 6178 |
for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
| 6179 |
test "$am_cv_pathless_PYTHON" = none && break |
| 6180 |
prog="import sys |
| 6181 |
# split strings by '.' and convert to numeric. Append some zeros |
| 6182 |
# because we need at least 4 digits for the hex conversion. |
| 6183 |
# map returns an iterator in Python 3.0 and a list in 2.x |
| 6184 |
minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] |
| 6185 |
minverhex = 0 |
| 6186 |
# xrange is not present in Python 3.0 and range returns an iterator |
| 6187 |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 6188 |
sys.exit(sys.hexversion < minverhex)" |
| 6189 |
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 |
| 6190 |
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 |
| 6191 |
ac_status=$? |
| 6192 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6193 |
(exit $ac_status); } |
| 6194 |
then : |
| 6195 |
break |
| 6196 |
fi |
| 6197 |
done ;; |
| 6198 |
esac |
| 6199 |
fi |
| 6200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
| 6201 |
printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } |
| 6202 |
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
| 6203 |
if test "$am_cv_pathless_PYTHON" = none; then |
| 6204 |
PYTHON=: |
| 6205 |
else |
| 6206 |
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. |
| 6207 |
set dummy $am_cv_pathless_PYTHON; ac_word=$2 |
| 6208 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6209 |
printf %s "checking for $ac_word... " >&6; } |
| 6210 |
if test ${ac_cv_path_PYTHON+y} |
| 6211 |
then : |
| 6212 |
printf %s "(cached) " >&6 |
| 6213 |
else case e in #( |
| 6214 |
e) case $PYTHON in |
| 6215 |
[\\/]* | ?:[\\/]*) |
| 6216 |
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 6217 |
;; |
| 6218 |
*) |
| 6219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6220 |
for as_dir in $PATH |
| 6221 |
do |
| 6222 |
IFS=$as_save_IFS |
| 6223 |
case $as_dir in #((( |
| 6224 |
'') as_dir=./ ;; |
| 6225 |
*/) ;; |
| 6226 |
*) as_dir=$as_dir/ ;; |
| 6227 |
esac |
| 6228 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6229 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6230 |
ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" |
| 6231 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6232 |
break 2 |
| 6233 |
fi |
| 6234 |
done |
| 6235 |
done |
| 6236 |
IFS=$as_save_IFS |
| 6237 |
|
| 6238 |
;; |
| 6239 |
esac ;; |
| 6240 |
esac |
| 6241 |
fi |
| 6242 |
PYTHON=$ac_cv_path_PYTHON |
| 6243 |
if test -n "$PYTHON"; then |
| 6244 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 6245 |
printf "%s\n" "$PYTHON" >&6; } |
| 6246 |
else |
| 6247 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6248 |
printf "%s\n" "no" >&6; } |
| 6249 |
fi |
| 6250 |
|
| 6251 |
|
| 6252 |
fi |
| 6253 |
am_display_PYTHON=$am_cv_pathless_PYTHON |
| 6254 |
fi |
| 6255 |
|
| 6256 |
|
| 6257 |
if test "$PYTHON" = :; then |
| 6258 |
: |
| 6259 |
else |
| 6260 |
|
| 6261 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
| 6262 |
printf %s "checking for $am_display_PYTHON version... " >&6; } |
| 6263 |
if test ${am_cv_python_version+y} |
| 6264 |
then : |
| 6265 |
printf %s "(cached) " >&6 |
| 6266 |
else case e in #( |
| 6267 |
e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; |
| 6268 |
esac |
| 6269 |
fi |
| 6270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
| 6271 |
printf "%s\n" "$am_cv_python_version" >&6; } |
| 6272 |
PYTHON_VERSION=$am_cv_python_version |
| 6273 |
|
| 6274 |
|
| 6275 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
| 6276 |
printf %s "checking for $am_display_PYTHON platform... " >&6; } |
| 6277 |
if test ${am_cv_python_platform+y} |
| 6278 |
then : |
| 6279 |
printf %s "(cached) " >&6 |
| 6280 |
else case e in #( |
| 6281 |
e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; |
| 6282 |
esac |
| 6283 |
fi |
| 6284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 |
| 6285 |
printf "%s\n" "$am_cv_python_platform" >&6; } |
| 6286 |
PYTHON_PLATFORM=$am_cv_python_platform |
| 6287 |
|
| 6288 |
|
| 6289 |
if test "x$prefix" = xNONE; then |
| 6290 |
am__usable_prefix=$ac_default_prefix |
| 6291 |
else |
| 6292 |
am__usable_prefix=$prefix |
| 6293 |
fi |
| 6294 |
|
| 6295 |
# Allow user to request using sys.* values from Python, |
| 6296 |
# instead of the GNU $prefix values. |
| 6297 |
|
| 6298 |
# Check whether --with-python-sys-prefix was given. |
| 6299 |
if test ${with_python_sys_prefix+y} |
| 6300 |
then : |
| 6301 |
withval=$with_python_sys_prefix; am_use_python_sys=: |
| 6302 |
else case e in #( |
| 6303 |
e) am_use_python_sys=false ;; |
| 6304 |
esac |
| 6305 |
fi |
| 6306 |
|
| 6307 |
|
| 6308 |
# Allow user to override whatever the default Python prefix is. |
| 6309 |
|
| 6310 |
# Check whether --with-python_prefix was given. |
| 6311 |
if test ${with_python_prefix+y} |
| 6312 |
then : |
| 6313 |
withval=$with_python_prefix; am_python_prefix_subst=$withval |
| 6314 |
am_cv_python_prefix=$withval |
| 6315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 |
| 6316 |
printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } |
| 6317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 |
| 6318 |
printf "%s\n" "$am_cv_python_prefix" >&6; } |
| 6319 |
else case e in #( |
| 6320 |
e) |
| 6321 |
if $am_use_python_sys; then |
| 6322 |
# using python sys.prefix value, not GNU |
| 6323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 |
| 6324 |
printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } |
| 6325 |
if test ${am_cv_python_prefix+y} |
| 6326 |
then : |
| 6327 |
printf %s "(cached) " >&6 |
| 6328 |
else case e in #( |
| 6329 |
e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; |
| 6330 |
esac |
| 6331 |
fi |
| 6332 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 |
| 6333 |
printf "%s\n" "$am_cv_python_prefix" >&6; } |
| 6334 |
|
| 6335 |
case $am_cv_python_prefix in |
| 6336 |
$am__usable_prefix*) |
| 6337 |
am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` |
| 6338 |
am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` |
| 6339 |
;; |
| 6340 |
*) |
| 6341 |
am_python_prefix_subst=$am_cv_python_prefix |
| 6342 |
;; |
| 6343 |
esac |
| 6344 |
else # using GNU prefix value, not python sys.prefix |
| 6345 |
am_python_prefix_subst='${prefix}' |
| 6346 |
am_python_prefix=$am_python_prefix_subst |
| 6347 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 |
| 6348 |
printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } |
| 6349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 |
| 6350 |
printf "%s\n" "$am_python_prefix" >&6; } |
| 6351 |
fi ;; |
| 6352 |
esac |
| 6353 |
fi |
| 6354 |
|
| 6355 |
# Substituting python_prefix_subst value. |
| 6356 |
PYTHON_PREFIX=$am_python_prefix_subst |
| 6357 |
|
| 6358 |
|
| 6359 |
# emacs-page Now do it all over again for Python exec_prefix, but with yet |
| 6360 |
# another conditional: fall back to regular prefix if that was specified. |
| 6361 |
|
| 6362 |
# Check whether --with-python_exec_prefix was given. |
| 6363 |
if test ${with_python_exec_prefix+y} |
| 6364 |
then : |
| 6365 |
withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval |
| 6366 |
am_cv_python_exec_prefix=$withval |
| 6367 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 |
| 6368 |
printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } |
| 6369 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 6370 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 6371 |
else case e in #( |
| 6372 |
e) |
| 6373 |
# no explicit --with-python_exec_prefix, but if |
| 6374 |
# --with-python_prefix was given, use its value for python_exec_prefix too. |
| 6375 |
if test -n "$with_python_prefix" |
| 6376 |
then : |
| 6377 |
am_python_exec_prefix_subst=$with_python_prefix |
| 6378 |
am_cv_python_exec_prefix=$with_python_prefix |
| 6379 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 |
| 6380 |
printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } |
| 6381 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 6382 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 6383 |
else case e in #( |
| 6384 |
e) |
| 6385 |
# Set am__usable_exec_prefix whether using GNU or Python values, |
| 6386 |
# since we use that variable for pyexecdir. |
| 6387 |
if test "x$exec_prefix" = xNONE; then |
| 6388 |
am__usable_exec_prefix=$am__usable_prefix |
| 6389 |
else |
| 6390 |
am__usable_exec_prefix=$exec_prefix |
| 6391 |
fi |
| 6392 |
# |
| 6393 |
if $am_use_python_sys; then # using python sys.exec_prefix, not GNU |
| 6394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 |
| 6395 |
printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } |
| 6396 |
if test ${am_cv_python_exec_prefix+y} |
| 6397 |
then : |
| 6398 |
printf %s "(cached) " >&6 |
| 6399 |
else case e in #( |
| 6400 |
e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; |
| 6401 |
esac |
| 6402 |
fi |
| 6403 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 6404 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 6405 |
case $am_cv_python_exec_prefix in |
| 6406 |
$am__usable_exec_prefix*) |
| 6407 |
am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` |
| 6408 |
am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` |
| 6409 |
;; |
| 6410 |
*) |
| 6411 |
am_python_exec_prefix_subst=$am_cv_python_exec_prefix |
| 6412 |
;; |
| 6413 |
esac |
| 6414 |
else # using GNU $exec_prefix, not python sys.exec_prefix |
| 6415 |
am_python_exec_prefix_subst='${exec_prefix}' |
| 6416 |
am_python_exec_prefix=$am_python_exec_prefix_subst |
| 6417 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 |
| 6418 |
printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } |
| 6419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 |
| 6420 |
printf "%s\n" "$am_python_exec_prefix" >&6; } |
| 6421 |
fi ;; |
| 6422 |
esac |
| 6423 |
fi ;; |
| 6424 |
esac |
| 6425 |
fi |
| 6426 |
|
| 6427 |
# Substituting python_exec_prefix_subst. |
| 6428 |
PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst |
| 6429 |
|
| 6430 |
|
| 6431 |
# Factor out some code duplication into this shell variable. |
| 6432 |
am_python_setup_sysconfig="\ |
| 6433 |
import sys |
| 6434 |
# Prefer sysconfig over distutils.sysconfig, for better compatibility |
| 6435 |
# with python 3.x. See automake bug#10227. |
| 6436 |
try: |
| 6437 |
import sysconfig |
| 6438 |
except ImportError: |
| 6439 |
can_use_sysconfig = 0 |
| 6440 |
else: |
| 6441 |
can_use_sysconfig = 1 |
| 6442 |
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
| 6443 |
# <https://github.com/pypa/virtualenv/issues/118> |
| 6444 |
try: |
| 6445 |
from platform import python_implementation |
| 6446 |
if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
| 6447 |
can_use_sysconfig = 0 |
| 6448 |
except ImportError: |
| 6449 |
pass" # end of am_python_setup_sysconfig |
| 6450 |
|
| 6451 |
# More repeated code, for figuring out the installation scheme to use. |
| 6452 |
am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): |
| 6453 |
scheme = sysconfig.get_default_scheme() |
| 6454 |
else: |
| 6455 |
scheme = sysconfig._get_default_scheme() |
| 6456 |
if scheme == 'posix_local': |
| 6457 |
if '$am_py_prefix' == '/usr': |
| 6458 |
scheme = 'deb_system' # should only happen during Debian package builds |
| 6459 |
else: |
| 6460 |
# Debian's default scheme installs to /usr/local/ but we want to |
| 6461 |
# follow the prefix, as we always have. |
| 6462 |
# See bugs#54412, #64837, et al. |
| 6463 |
scheme = 'posix_prefix'" # end of am_python_setup_scheme |
| 6464 |
|
| 6465 |
|
| 6466 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 |
| 6467 |
printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } |
| 6468 |
if test ${am_cv_python_pythondir+y} |
| 6469 |
then : |
| 6470 |
printf %s "(cached) " >&6 |
| 6471 |
else case e in #( |
| 6472 |
e) if test "x$am_cv_python_prefix" = x; then |
| 6473 |
am_py_prefix=$am__usable_prefix |
| 6474 |
else |
| 6475 |
am_py_prefix=$am_cv_python_prefix |
| 6476 |
fi |
| 6477 |
am_cv_python_pythondir=`$PYTHON -c " |
| 6478 |
$am_python_setup_sysconfig |
| 6479 |
if can_use_sysconfig: |
| 6480 |
try: |
| 6481 |
$am_python_setup_scheme |
| 6482 |
sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) |
| 6483 |
except: |
| 6484 |
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
| 6485 |
else: |
| 6486 |
from distutils import sysconfig |
| 6487 |
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
| 6488 |
sys.stdout.write(sitedir)"` |
| 6489 |
# |
| 6490 |
case $am_cv_python_pythondir in |
| 6491 |
$am_py_prefix*) |
| 6492 |
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` |
| 6493 |
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` |
| 6494 |
;; |
| 6495 |
*) |
| 6496 |
case $am_py_prefix in |
| 6497 |
/usr|/System*) ;; |
| 6498 |
*) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" |
| 6499 |
;; |
| 6500 |
esac |
| 6501 |
;; |
| 6502 |
esac |
| 6503 |
;; |
| 6504 |
esac |
| 6505 |
fi |
| 6506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
| 6507 |
printf "%s\n" "$am_cv_python_pythondir" >&6; } |
| 6508 |
pythondir=$am_cv_python_pythondir |
| 6509 |
|
| 6510 |
|
| 6511 |
pkgpythondir=\${pythondir}/$PACKAGE |
| 6512 |
|
| 6513 |
|
| 6514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 |
| 6515 |
printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } |
| 6516 |
if test ${am_cv_python_pyexecdir+y} |
| 6517 |
then : |
| 6518 |
printf %s "(cached) " >&6 |
| 6519 |
else case e in #( |
| 6520 |
e) if test "x$am_cv_python_exec_prefix" = x; then |
| 6521 |
am_py_exec_prefix=$am__usable_exec_prefix |
| 6522 |
else |
| 6523 |
am_py_exec_prefix=$am_cv_python_exec_prefix |
| 6524 |
fi |
| 6525 |
am_cv_python_pyexecdir=`$PYTHON -c " |
| 6526 |
$am_python_setup_sysconfig |
| 6527 |
if can_use_sysconfig: |
| 6528 |
try: |
| 6529 |
$am_python_setup_scheme |
| 6530 |
sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) |
| 6531 |
except: |
| 6532 |
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) |
| 6533 |
else: |
| 6534 |
from distutils import sysconfig |
| 6535 |
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') |
| 6536 |
sys.stdout.write(sitedir)"` |
| 6537 |
# |
| 6538 |
case $am_cv_python_pyexecdir in |
| 6539 |
$am_py_exec_prefix*) |
| 6540 |
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |
| 6541 |
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` |
| 6542 |
;; |
| 6543 |
*) |
| 6544 |
case $am_py_exec_prefix in |
| 6545 |
/usr|/System*) ;; |
| 6546 |
*) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" |
| 6547 |
;; |
| 6548 |
esac |
| 6549 |
;; |
| 6550 |
esac |
| 6551 |
;; |
| 6552 |
esac |
| 6553 |
fi |
| 6554 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
| 6555 |
printf "%s\n" "$am_cv_python_pyexecdir" >&6; } |
| 6556 |
pyexecdir=$am_cv_python_pyexecdir |
| 6557 |
|
| 6558 |
|
| 6559 |
pkgpyexecdir=\${pyexecdir}/$PACKAGE |
| 6560 |
|
| 6561 |
|
| 6562 |
|
| 6563 |
fi |
| 6564 |
|
| 6565 |
if test "$PYTHON" != ":"; then |
| 6566 |
HAVE_PYTHON_TRUE= |
| 6567 |
HAVE_PYTHON_FALSE='#' |
| 6568 |
else |
| 6569 |
HAVE_PYTHON_TRUE='#' |
| 6570 |
HAVE_PYTHON_FALSE= |
| 6571 |
fi |
| 6572 |
|
| 6573 |
if test "x$PYTHON" != "x:" |
| 6574 |
then |
| 6575 |
|
| 6576 |
if test -z $PYTHON; |
| 6577 |
then |
| 6578 |
PYTHON="python" |
| 6579 |
fi |
| 6580 |
PYTHON_NAME=`basename $PYTHON` |
| 6581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5 |
| 6582 |
printf %s "checking $PYTHON_NAME module: argparse... " >&6; } |
| 6583 |
$PYTHON -c "import argparse" 2>/dev/null |
| 6584 |
if test $? -eq 0; |
| 6585 |
then |
| 6586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6587 |
printf "%s\n" "yes" >&6; } |
| 6588 |
eval HAVE_PYMOD_ARGPARSE=yes |
| 6589 |
else |
| 6590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6591 |
printf "%s\n" "no" >&6; } |
| 6592 |
eval HAVE_PYMOD_ARGPARSE=no |
| 6593 |
# |
| 6594 |
if test -n "" |
| 6595 |
then |
| 6596 |
as_fn_error $? "failed to find required module argparse" "$LINENO" 5 |
| 6597 |
exit 1 |
| 6598 |
fi |
| 6599 |
fi |
| 6600 |
|
| 6601 |
fi |
| 6602 |
|
| 6603 |
# check for debugging options |
| 6604 |
# Check whether --enable-debug was given. |
| 6605 |
if test ${enable_debug+y} |
| 6606 |
then : |
| 6607 |
enableval=$enable_debug; if test "x$enableval" != "xno" ; then CFLAGS="-g -DDEBUG $CFLAGS" ; fi |
| 6608 |
fi |
| 6609 |
|
| 6610 |
|
| 6611 |
# check for extra compiler warnings |
| 6612 |
DESIRED_CFLAGS="" |
| 6613 |
# Check whether --enable-warnings was given. |
| 6614 |
if test ${enable_warnings+y} |
| 6615 |
then : |
| 6616 |
enableval=$enable_warnings; if test "x$enableval" != "no" |
| 6617 |
then |
| 6618 |
CFLAGS="$CFLAGS -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Waggregate-return -Wmissing-declarations -Wunused -Wformat=2 -Wswitch-default -Wswitch-enum -Wfloat-equal -Wbad-function-cast -Wredundant-decls" |
| 6619 |
DESIRED_CFLAGS="$DESIRED_CFLAGS -Wextra -Wdeclaration-after-statement -Werror-implicit-function-declaration -Werror=implicit" |
| 6620 |
fi |
| 6621 |
fi |
| 6622 |
|
| 6623 |
test_gcc_flag() { |
| 6624 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6625 |
/* end confdefs.h. */ |
| 6626 |
|
| 6627 |
int |
| 6628 |
main (void) |
| 6629 |
{ |
| 6630 |
|
| 6631 |
; |
| 6632 |
return 0; |
| 6633 |
} |
| 6634 |
_ACEOF |
| 6635 |
$CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null |
| 6636 |
ret=$? |
| 6637 |
rm -f conftest.o |
| 6638 |
return $ret |
| 6639 |
} |
| 6640 |
for flag in $DESIRED_CFLAGS |
| 6641 |
do |
| 6642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5 |
| 6643 |
printf %s "checking whether $CC accepts $flag... " >&6; } |
| 6644 |
if test_gcc_flag $flag |
| 6645 |
then |
| 6646 |
CFLAGS="$CFLAGS $flag" |
| 6647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6648 |
printf "%s\n" "yes" >&6; } |
| 6649 |
else |
| 6650 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6651 |
printf "%s\n" "no" >&6; } |
| 6652 |
fi |
| 6653 |
done |
| 6654 |
|
| 6655 |
# check for Position Independent Code compiler option |
| 6656 |
PIC_CFLAGS="" |
| 6657 |
if test "$ac_cv_c_compiler_gnu" = "yes" |
| 6658 |
then |
| 6659 |
PIC_CFLAGS="-fPIC" |
| 6660 |
else |
| 6661 |
case "$target_os" in |
| 6662 |
sysv5*) PIC_CFLAGS="-KPIC" ;; |
| 6663 |
esac |
| 6664 |
fi |
| 6665 |
|
| 6666 |
|
| 6667 |
# add --disable-maintainer-mode option |
| 6668 |
|
| 6669 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 6670 |
printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 6671 |
# Check whether --enable-maintainer-mode was given. |
| 6672 |
if test ${enable_maintainer_mode+y} |
| 6673 |
then : |
| 6674 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 6675 |
else case e in #( |
| 6676 |
e) USE_MAINTAINER_MODE=yes ;; |
| 6677 |
esac |
| 6678 |
fi |
| 6679 |
|
| 6680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 6681 |
printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } |
| 6682 |
if test $USE_MAINTAINER_MODE = yes; then |
| 6683 |
MAINTAINER_MODE_TRUE= |
| 6684 |
MAINTAINER_MODE_FALSE='#' |
| 6685 |
else |
| 6686 |
MAINTAINER_MODE_TRUE='#' |
| 6687 |
MAINTAINER_MODE_FALSE= |
| 6688 |
fi |
| 6689 |
|
| 6690 |
MAINT=$MAINTAINER_MODE_TRUE |
| 6691 |
|
| 6692 |
|
| 6693 |
|
| 6694 |
# check whether the NSS module should be built |
| 6695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the NSS module" >&5 |
| 6696 |
printf %s "checking whether to build the NSS module... " >&6; } |
| 6697 |
# Check whether --enable-nss was given. |
| 6698 |
if test ${enable_nss+y} |
| 6699 |
then : |
| 6700 |
enableval=$enable_nss; |
| 6701 |
else case e in #( |
| 6702 |
e) enable_nss="yes" ;; |
| 6703 |
esac |
| 6704 |
fi |
| 6705 |
|
| 6706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_nss" >&5 |
| 6707 |
printf "%s\n" "$enable_nss" >&6; } |
| 6708 |
if test "x$enable_nss" = "xyes"; then |
| 6709 |
ENABLE_NSS_TRUE= |
| 6710 |
ENABLE_NSS_FALSE='#' |
| 6711 |
else |
| 6712 |
ENABLE_NSS_TRUE='#' |
| 6713 |
ENABLE_NSS_FALSE= |
| 6714 |
fi |
| 6715 |
|
| 6716 |
|
| 6717 |
# check whether the PAM module should be built |
| 6718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the PAM module" >&5 |
| 6719 |
printf %s "checking whether to build the PAM module... " >&6; } |
| 6720 |
# Check whether --enable-pam was given. |
| 6721 |
if test ${enable_pam+y} |
| 6722 |
then : |
| 6723 |
enableval=$enable_pam; |
| 6724 |
else case e in #( |
| 6725 |
e) enable_pam="yes" ;; |
| 6726 |
esac |
| 6727 |
fi |
| 6728 |
|
| 6729 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pam" >&5 |
| 6730 |
printf "%s\n" "$enable_pam" >&6; } |
| 6731 |
if test "x$enable_pam" = "xyes"; then |
| 6732 |
ENABLE_PAM_TRUE= |
| 6733 |
ENABLE_PAM_FALSE='#' |
| 6734 |
else |
| 6735 |
ENABLE_PAM_TRUE='#' |
| 6736 |
ENABLE_PAM_FALSE= |
| 6737 |
fi |
| 6738 |
|
| 6739 |
|
| 6740 |
# check whether command-line utilities should be built |
| 6741 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the command-line utilities" >&5 |
| 6742 |
printf %s "checking whether to build the command-line utilities... " >&6; } |
| 6743 |
# Check whether --enable-utils was given. |
| 6744 |
if test ${enable_utils+y} |
| 6745 |
then : |
| 6746 |
enableval=$enable_utils; |
| 6747 |
else case e in #( |
| 6748 |
e) enable_utils="auto" ;; |
| 6749 |
esac |
| 6750 |
fi |
| 6751 |
|
| 6752 |
if test "x$enable_utils" = "xauto" |
| 6753 |
then |
| 6754 |
if test "x$PYTHON" != "x:" && test "$HAVE_PYMOD_ARGPARSE" = "yes" |
| 6755 |
then |
| 6756 |
enable_utils="yes" |
| 6757 |
else |
| 6758 |
enable_utils="no" |
| 6759 |
fi |
| 6760 |
fi |
| 6761 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_utils" >&5 |
| 6762 |
printf "%s\n" "$enable_utils" >&6; } |
| 6763 |
if test "x$enable_utils" = "xyes"; then |
| 6764 |
ENABLE_UTILS_TRUE= |
| 6765 |
ENABLE_UTILS_FALSE='#' |
| 6766 |
else |
| 6767 |
ENABLE_UTILS_TRUE='#' |
| 6768 |
ENABLE_UTILS_FALSE= |
| 6769 |
fi |
| 6770 |
|
| 6771 |
|
| 6772 |
# check whether the nslcd daemon should be built |
| 6773 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the nslcd daemon" >&5 |
| 6774 |
printf %s "checking whether to build the nslcd daemon... " >&6; } |
| 6775 |
# Check whether --enable-nslcd was given. |
| 6776 |
if test ${enable_nslcd+y} |
| 6777 |
then : |
| 6778 |
enableval=$enable_nslcd; |
| 6779 |
else case e in #( |
| 6780 |
e) enable_nslcd="yes" ;; |
| 6781 |
esac |
| 6782 |
fi |
| 6783 |
|
| 6784 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_nslcd" >&5 |
| 6785 |
printf "%s\n" "$enable_nslcd" >&6; } |
| 6786 |
if test "x$enable_nslcd" = "xyes"; then |
| 6787 |
ENABLE_NSLCD_TRUE= |
| 6788 |
ENABLE_NSLCD_FALSE='#' |
| 6789 |
else |
| 6790 |
ENABLE_NSLCD_TRUE='#' |
| 6791 |
ENABLE_NSLCD_FALSE= |
| 6792 |
fi |
| 6793 |
|
| 6794 |
|
| 6795 |
# check whether the Python version of the nslcd daemon should be built |
| 6796 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the pynslcd daemon" >&5 |
| 6797 |
printf %s "checking whether to build the pynslcd daemon... " >&6; } |
| 6798 |
# Check whether --enable-pynslcd was given. |
| 6799 |
if test ${enable_pynslcd+y} |
| 6800 |
then : |
| 6801 |
enableval=$enable_pynslcd; |
| 6802 |
else case e in #( |
| 6803 |
e) enable_pynslcd="no" ;; |
| 6804 |
esac |
| 6805 |
fi |
| 6806 |
|
| 6807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pynslcd" >&5 |
| 6808 |
printf "%s\n" "$enable_pynslcd" >&6; } |
| 6809 |
if test "x$enable_pynslcd" = "xyes"; then |
| 6810 |
ENABLE_PYNSLCD_TRUE= |
| 6811 |
ENABLE_PYNSLCD_FALSE='#' |
| 6812 |
else |
| 6813 |
ENABLE_PYNSLCD_TRUE='#' |
| 6814 |
ENABLE_PYNSLCD_FALSE= |
| 6815 |
fi |
| 6816 |
|
| 6817 |
if test "x$enable_pynslcd" = "xyes" |
| 6818 |
then |
| 6819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the pynslcd daemon is experimental" >&5 |
| 6820 |
printf "%s\n" "$as_me: WARNING: the pynslcd daemon is experimental" >&2;} |
| 6821 |
fi |
| 6822 |
|
| 6823 |
# check whether SASL support should be enabled |
| 6824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SASL support" >&5 |
| 6825 |
printf %s "checking whether to enable SASL support... " >&6; } |
| 6826 |
# Check whether --enable-sasl was given. |
| 6827 |
if test ${enable_sasl+y} |
| 6828 |
then : |
| 6829 |
enableval=$enable_sasl; enable_sasl=$enableval |
| 6830 |
else case e in #( |
| 6831 |
e) enable_sasl="yes" ;; |
| 6832 |
esac |
| 6833 |
fi |
| 6834 |
|
| 6835 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_sasl" >&5 |
| 6836 |
printf "%s\n" "$enable_sasl" >&6; } |
| 6837 |
|
| 6838 |
# check whether Kerberos support should be enabled |
| 6839 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Kerberos support" >&5 |
| 6840 |
printf %s "checking whether to enable Kerberos support... " >&6; } |
| 6841 |
# Check whether --enable-kerberos was given. |
| 6842 |
if test ${enable_kerberos+y} |
| 6843 |
then : |
| 6844 |
enableval=$enable_kerberos; enable_kerberos=$enableval |
| 6845 |
else case e in #( |
| 6846 |
e) enable_kerberos="yes" ;; |
| 6847 |
esac |
| 6848 |
fi |
| 6849 |
|
| 6850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_kerberos" >&5 |
| 6851 |
printf "%s\n" "$enable_kerberos" >&6; } |
| 6852 |
|
| 6853 |
# check whether configfile options should be checked |
| 6854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to check configfile options" >&5 |
| 6855 |
printf %s "checking whether to check configfile options... " >&6; } |
| 6856 |
# Check whether --enable-configfile_checking was given. |
| 6857 |
if test ${enable_configfile_checking+y} |
| 6858 |
then : |
| 6859 |
enableval=$enable_configfile_checking; configfile_checking=$enableval |
| 6860 |
else case e in #( |
| 6861 |
e) configfile_checking="yes" ;; |
| 6862 |
esac |
| 6863 |
fi |
| 6864 |
|
| 6865 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $configfile_checking" >&5 |
| 6866 |
printf "%s\n" "$configfile_checking" >&6; } |
| 6867 |
if test "x$configfile_checking" = "xyes" |
| 6868 |
then |
| 6869 |
|
| 6870 |
printf "%s\n" "#define ENABLE_CONFIGFILE_CHECKING 1 " >>confdefs.h |
| 6871 |
|
| 6872 |
fi |
| 6873 |
|
| 6874 |
# check the name of the configuration file |
| 6875 |
|
| 6876 |
# Check whether --with-ldap-conf-file was given. |
| 6877 |
if test ${with_ldap_conf_file+y} |
| 6878 |
then : |
| 6879 |
withval=$with_ldap_conf_file; NSLCD_CONF_PATH="$with_ldap_conf_file" |
| 6880 |
else case e in #( |
| 6881 |
e) NSLCD_CONF_PATH="/etc/nslcd.conf" ;; |
| 6882 |
esac |
| 6883 |
fi |
| 6884 |
|
| 6885 |
|
| 6886 |
printf "%s\n" "#define NSLCD_CONF_PATH \"$NSLCD_CONF_PATH\"" >>confdefs.h |
| 6887 |
|
| 6888 |
|
| 6889 |
|
| 6890 |
# check the name of the file with a bindpw value |
| 6891 |
|
| 6892 |
# Check whether --with-bindpw-file was given. |
| 6893 |
if test ${with_bindpw_file+y} |
| 6894 |
then : |
| 6895 |
withval=$with_bindpw_file; NSLCD_BINDPW_PATH="$with_bindpw_file" |
| 6896 |
|
| 6897 |
printf "%s\n" "#define NSLCD_BINDPW_PATH \"$NSLCD_BINDPW_PATH\"" >>confdefs.h |
| 6898 |
|
| 6899 |
|
| 6900 |
|
| 6901 |
fi |
| 6902 |
|
| 6903 |
|
| 6904 |
# where should the pidfile be written |
| 6905 |
|
| 6906 |
# Check whether --with-nslcd-pidfile was given. |
| 6907 |
if test ${with_nslcd_pidfile+y} |
| 6908 |
then : |
| 6909 |
withval=$with_nslcd_pidfile; NSLCD_PIDFILE="$with_nslcd_pidfile" |
| 6910 |
else case e in #( |
| 6911 |
e) NSLCD_PIDFILE="/var/run/nslcd/nslcd.pid" ;; |
| 6912 |
esac |
| 6913 |
fi |
| 6914 |
|
| 6915 |
|
| 6916 |
printf "%s\n" "#define NSLCD_PIDFILE \"$NSLCD_PIDFILE\"" >>confdefs.h |
| 6917 |
|
| 6918 |
|
| 6919 |
|
| 6920 |
# where is the socket used for communication |
| 6921 |
|
| 6922 |
# Check whether --with-nslcd-socket was given. |
| 6923 |
if test ${with_nslcd_socket+y} |
| 6924 |
then : |
| 6925 |
withval=$with_nslcd_socket; NSLCD_SOCKET="$with_nslcd_socket" |
| 6926 |
else case e in #( |
| 6927 |
e) NSLCD_SOCKET="/var/run/nslcd/socket" ;; |
| 6928 |
esac |
| 6929 |
fi |
| 6930 |
|
| 6931 |
|
| 6932 |
printf "%s\n" "#define NSLCD_SOCKET \"$NSLCD_SOCKET\"" >>confdefs.h |
| 6933 |
|
| 6934 |
|
| 6935 |
|
| 6936 |
# the directory PAM librabries are expected to be placed into |
| 6937 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location for PAM module" >&5 |
| 6938 |
printf %s "checking location for PAM module... " >&6; } |
| 6939 |
|
| 6940 |
# Check whether --with-pam-seclib-dir was given. |
| 6941 |
if test ${with_pam_seclib_dir+y} |
| 6942 |
then : |
| 6943 |
withval=$with_pam_seclib_dir; PAM_SECLIB_DIR="$with_pam_seclib_dir" |
| 6944 |
else case e in #( |
| 6945 |
e) PAM_SECLIB_DIR="auto" ;; |
| 6946 |
esac |
| 6947 |
fi |
| 6948 |
|
| 6949 |
if test "x$PAM_SECLIB_DIR" = "xauto" |
| 6950 |
then |
| 6951 |
case "$target_os" in |
| 6952 |
solaris*) PAM_SECLIB_DIR="/usr/lib/security" ;; |
| 6953 |
freebsd*|dragonfly*) PAM_SECLIB_DIR="/usr/lib" ;; |
| 6954 |
*) PAM_SECLIB_DIR="/lib/security" ;; |
| 6955 |
esac |
| 6956 |
fi |
| 6957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAM_SECLIB_DIR" >&5 |
| 6958 |
printf "%s\n" "$PAM_SECLIB_DIR" >&6; } |
| 6959 |
|
| 6960 |
printf "%s\n" "#define PAM_SECLIB_DIR \"$PAM_SECLIB_DIR\"" >>confdefs.h |
| 6961 |
|
| 6962 |
|
| 6963 |
|
| 6964 |
# the name to use for the NSS module |
| 6965 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking name of NSS and PAM modules" >&5 |
| 6966 |
printf %s "checking name of NSS and PAM modules... " >&6; } |
| 6967 |
|
| 6968 |
# Check whether --with-module-name was given. |
| 6969 |
if test ${with_module_name+y} |
| 6970 |
then : |
| 6971 |
withval=$with_module_name; MODULE_NAME="$with_module_name" |
| 6972 |
else case e in #( |
| 6973 |
e) MODULE_NAME="ldap" ;; |
| 6974 |
esac |
| 6975 |
fi |
| 6976 |
|
| 6977 |
# FIXME: this does not work |
| 6978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODULE_NAME" >&5 |
| 6979 |
printf "%s\n" "$MODULE_NAME" >&6; } |
| 6980 |
|
| 6981 |
printf "%s\n" "#define MODULE_NAME \"$MODULE_NAME\"" >>confdefs.h |
| 6982 |
|
| 6983 |
|
| 6984 |
cat >>confdefs.h <<_ACEOF |
| 6985 |
#define NSS_NAME(NAME) _nss_${MODULE_NAME}_##NAME |
| 6986 |
_ACEOF |
| 6987 |
|
| 6988 |
|
| 6989 |
cat >>confdefs.h <<_ACEOF |
| 6990 |
#define PAM_NAME(NAME) _pam_${MODULE_NAME}_##NAME |
| 6991 |
_ACEOF |
| 6992 |
|
| 6993 |
|
| 6994 |
|
| 6995 |
# the SONAME to use for the NSS module |
| 6996 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking soname of NSS module" >&5 |
| 6997 |
printf %s "checking soname of NSS module... " >&6; } |
| 6998 |
|
| 6999 |
# Check whether --with-nss-ldap-soname was given. |
| 7000 |
if test ${with_nss_ldap_soname+y} |
| 7001 |
then : |
| 7002 |
withval=$with_nss_ldap_soname; NSS_LDAP_SONAME="$with_nss_ldap_soname" |
| 7003 |
else case e in #( |
| 7004 |
e) NSS_LDAP_SONAME="auto" ;; |
| 7005 |
esac |
| 7006 |
fi |
| 7007 |
|
| 7008 |
if test "x$NSS_LDAP_SONAME" = "xauto" |
| 7009 |
then |
| 7010 |
case "$target_os" in |
| 7011 |
solaris*) NSS_LDAP_SONAME="nss_$MODULE_NAME.so.1" ;; |
| 7012 |
freebsd*|dragonfly*) NSS_LDAP_SONAME="nss_$MODULE_NAME.so.1" ;; |
| 7013 |
*) NSS_LDAP_SONAME="libnss_$MODULE_NAME.so.2" ;; |
| 7014 |
esac |
| 7015 |
fi |
| 7016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NSS_LDAP_SONAME" >&5 |
| 7017 |
printf "%s\n" "$NSS_LDAP_SONAME" >&6; } |
| 7018 |
|
| 7019 |
printf "%s\n" "#define NSS_LDAP_SONAME \"$NSS_LDAP_SONAME\"" >>confdefs.h |
| 7020 |
|
| 7021 |
|
| 7022 |
|
| 7023 |
# the SONAME to use for the PAM module |
| 7024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking soname of PAM module" >&5 |
| 7025 |
printf %s "checking soname of PAM module... " >&6; } |
| 7026 |
|
| 7027 |
# Check whether --with-pam-ldap-soname was given. |
| 7028 |
if test ${with_pam_ldap_soname+y} |
| 7029 |
then : |
| 7030 |
withval=$with_pam_ldap_soname; PAM_LDAP_SONAME="$with_pam_ldap_soname" |
| 7031 |
else case e in #( |
| 7032 |
e) PAM_LDAP_SONAME="auto" ;; |
| 7033 |
esac |
| 7034 |
fi |
| 7035 |
|
| 7036 |
if test "x$PAM_LDAP_SONAME" = "xauto" |
| 7037 |
then |
| 7038 |
case "$target_os" in |
| 7039 |
solaris*) PAM_LDAP_SONAME="pam_$MODULE_NAME.so.1" ;; |
| 7040 |
*) PAM_LDAP_SONAME="pam_$MODULE_NAME.so" ;; |
| 7041 |
esac |
| 7042 |
fi |
| 7043 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAM_LDAP_SONAME" >&5 |
| 7044 |
printf "%s\n" "$PAM_LDAP_SONAME" >&6; } |
| 7045 |
|
| 7046 |
|
| 7047 |
# check which modules should be build |
| 7048 |
|
| 7049 |
# Check whether --with-nss-maps was given. |
| 7050 |
if test ${with_nss_maps+y} |
| 7051 |
then : |
| 7052 |
withval=$with_nss_maps; |
| 7053 |
else case e in #( |
| 7054 |
e) with_nss_maps="all" ;; |
| 7055 |
esac |
| 7056 |
fi |
| 7057 |
|
| 7058 |
|
| 7059 |
# checks for availability of header files |
| 7060 |
ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
| 7061 |
if test "x$ac_cv_header_ctype_h" = xyes |
| 7062 |
then : |
| 7063 |
printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h |
| 7064 |
|
| 7065 |
fi |
| 7066 |
ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" |
| 7067 |
if test "x$ac_cv_header_strings_h" = xyes |
| 7068 |
then : |
| 7069 |
printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h |
| 7070 |
|
| 7071 |
fi |
| 7072 |
ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 7073 |
if test "x$ac_cv_header_pthread_h" = xyes |
| 7074 |
then : |
| 7075 |
printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 7076 |
|
| 7077 |
fi |
| 7078 |
ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" |
| 7079 |
if test "x$ac_cv_header_pthread_np_h" = xyes |
| 7080 |
then : |
| 7081 |
printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h |
| 7082 |
|
| 7083 |
fi |
| 7084 |
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 7085 |
if test "x$ac_cv_header_fcntl_h" = xyes |
| 7086 |
then : |
| 7087 |
printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 7088 |
|
| 7089 |
fi |
| 7090 |
ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 7091 |
if test "x$ac_cv_header_limits_h" = xyes |
| 7092 |
then : |
| 7093 |
printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h |
| 7094 |
|
| 7095 |
fi |
| 7096 |
ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
| 7097 |
if test "x$ac_cv_header_assert_h" = xyes |
| 7098 |
then : |
| 7099 |
printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h |
| 7100 |
|
| 7101 |
fi |
| 7102 |
|
| 7103 |
ac_fn_c_check_header_compile "$LINENO" "nss.h" "ac_cv_header_nss_h" "$ac_includes_default" |
| 7104 |
if test "x$ac_cv_header_nss_h" = xyes |
| 7105 |
then : |
| 7106 |
printf "%s\n" "#define HAVE_NSS_H 1" >>confdefs.h |
| 7107 |
|
| 7108 |
fi |
| 7109 |
ac_fn_c_check_header_compile "$LINENO" "nss_common.h" "ac_cv_header_nss_common_h" "$ac_includes_default" |
| 7110 |
if test "x$ac_cv_header_nss_common_h" = xyes |
| 7111 |
then : |
| 7112 |
printf "%s\n" "#define HAVE_NSS_COMMON_H 1" >>confdefs.h |
| 7113 |
|
| 7114 |
fi |
| 7115 |
ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" |
| 7116 |
if test "x$ac_cv_header_grp_h" = xyes |
| 7117 |
then : |
| 7118 |
printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h |
| 7119 |
|
| 7120 |
fi |
| 7121 |
ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" |
| 7122 |
if test "x$ac_cv_header_shadow_h" = xyes |
| 7123 |
then : |
| 7124 |
printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h |
| 7125 |
|
| 7126 |
fi |
| 7127 |
ac_fn_c_check_header_compile "$LINENO" "aliases.h" "ac_cv_header_aliases_h" "$ac_includes_default" |
| 7128 |
if test "x$ac_cv_header_aliases_h" = xyes |
| 7129 |
then : |
| 7130 |
printf "%s\n" "#define HAVE_ALIASES_H 1" >>confdefs.h |
| 7131 |
|
| 7132 |
fi |
| 7133 |
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| 7134 |
if test "x$ac_cv_header_netdb_h" = xyes |
| 7135 |
then : |
| 7136 |
printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h |
| 7137 |
|
| 7138 |
fi |
| 7139 |
ac_fn_c_check_header_compile "$LINENO" "rpc/rpcent.h" "ac_cv_header_rpc_rpcent_h" "$ac_includes_default" |
| 7140 |
if test "x$ac_cv_header_rpc_rpcent_h" = xyes |
| 7141 |
then : |
| 7142 |
printf "%s\n" "#define HAVE_RPC_RPCENT_H 1" >>confdefs.h |
| 7143 |
|
| 7144 |
fi |
| 7145 |
|
| 7146 |
ac_fn_c_check_header_compile "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default" |
| 7147 |
if test "x$ac_cv_header_netinet_ether_h" = xyes |
| 7148 |
then : |
| 7149 |
printf "%s\n" "#define HAVE_NETINET_ETHER_H 1" >>confdefs.h |
| 7150 |
|
| 7151 |
fi |
| 7152 |
ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 7153 |
if test "x$ac_cv_header_arpa_inet_h" = xyes |
| 7154 |
then : |
| 7155 |
printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h |
| 7156 |
|
| 7157 |
fi |
| 7158 |
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 7159 |
if test "x$ac_cv_header_netinet_in_h" = xyes |
| 7160 |
then : |
| 7161 |
printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h |
| 7162 |
|
| 7163 |
fi |
| 7164 |
|
| 7165 |
ac_fn_c_check_header_compile "$LINENO" "nsswitch.h" "ac_cv_header_nsswitch_h" "$ac_includes_default" |
| 7166 |
if test "x$ac_cv_header_nsswitch_h" = xyes |
| 7167 |
then : |
| 7168 |
printf "%s\n" "#define HAVE_NSSWITCH_H 1" >>confdefs.h |
| 7169 |
|
| 7170 |
fi |
| 7171 |
ac_fn_c_check_header_compile "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default" |
| 7172 |
if test "x$ac_cv_header_nss_dbdefs_h" = xyes |
| 7173 |
then : |
| 7174 |
printf "%s\n" "#define HAVE_NSS_DBDEFS_H 1" >>confdefs.h |
| 7175 |
|
| 7176 |
fi |
| 7177 |
|
| 7178 |
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 7179 |
if test "x$ac_cv_header_sys_socket_h" = xyes |
| 7180 |
then : |
| 7181 |
printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| 7182 |
|
| 7183 |
fi |
| 7184 |
ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
| 7185 |
if test "x$ac_cv_header_sys_un_h" = xyes |
| 7186 |
then : |
| 7187 |
printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h |
| 7188 |
|
| 7189 |
fi |
| 7190 |
ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" |
| 7191 |
if test "x$ac_cv_header_sys_ucred_h" = xyes |
| 7192 |
then : |
| 7193 |
printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h |
| 7194 |
|
| 7195 |
fi |
| 7196 |
ac_fn_c_check_header_compile "$LINENO" "ucred.h" "ac_cv_header_ucred_h" "$ac_includes_default" |
| 7197 |
if test "x$ac_cv_header_ucred_h" = xyes |
| 7198 |
then : |
| 7199 |
printf "%s\n" "#define HAVE_UCRED_H 1" >>confdefs.h |
| 7200 |
|
| 7201 |
fi |
| 7202 |
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 7203 |
if test "x$ac_cv_header_sys_param_h" = xyes |
| 7204 |
then : |
| 7205 |
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 7206 |
|
| 7207 |
fi |
| 7208 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 7209 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 7210 |
then : |
| 7211 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 7212 |
|
| 7213 |
fi |
| 7214 |
|
| 7215 |
ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 7216 |
if test "x$ac_cv_header_getopt_h" = xyes |
| 7217 |
then : |
| 7218 |
printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h |
| 7219 |
|
| 7220 |
fi |
| 7221 |
ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" |
| 7222 |
if test "x$ac_cv_header_syslog_h" = xyes |
| 7223 |
then : |
| 7224 |
printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h |
| 7225 |
|
| 7226 |
fi |
| 7227 |
ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| 7228 |
if test "x$ac_cv_header_stddef_h" = xyes |
| 7229 |
then : |
| 7230 |
printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h |
| 7231 |
|
| 7232 |
fi |
| 7233 |
|
| 7234 |
|
| 7235 |
# other general checks |
| 7236 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 7237 |
printf %s "checking for inline... " >&6; } |
| 7238 |
if test ${ac_cv_c_inline+y} |
| 7239 |
then : |
| 7240 |
printf %s "(cached) " >&6 |
| 7241 |
else case e in #( |
| 7242 |
e) ac_cv_c_inline=no |
| 7243 |
for ac_kw in inline __inline__ __inline; do |
| 7244 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7245 |
/* end confdefs.h. */ |
| 7246 |
#ifndef __cplusplus |
| 7247 |
typedef int foo_t; |
| 7248 |
static $ac_kw foo_t static_foo (void) {return 0; } |
| 7249 |
$ac_kw foo_t foo (void) {return 0; } |
| 7250 |
#endif |
| 7251 |
|
| 7252 |
_ACEOF |
| 7253 |
if ac_fn_c_try_compile "$LINENO" |
| 7254 |
then : |
| 7255 |
ac_cv_c_inline=$ac_kw |
| 7256 |
fi |
| 7257 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7258 |
test "$ac_cv_c_inline" != no && break |
| 7259 |
done |
| 7260 |
;; |
| 7261 |
esac |
| 7262 |
fi |
| 7263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 7264 |
printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 7265 |
|
| 7266 |
case $ac_cv_c_inline in |
| 7267 |
inline | yes) ;; |
| 7268 |
*) |
| 7269 |
case $ac_cv_c_inline in |
| 7270 |
no) ac_val=;; |
| 7271 |
*) ac_val=$ac_cv_c_inline;; |
| 7272 |
esac |
| 7273 |
cat >>confdefs.h <<_ACEOF |
| 7274 |
#ifndef __cplusplus |
| 7275 |
#define inline $ac_val |
| 7276 |
#endif |
| 7277 |
_ACEOF |
| 7278 |
;; |
| 7279 |
esac |
| 7280 |
|
| 7281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 7282 |
printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 7283 |
if test ${ac_cv_c_const+y} |
| 7284 |
then : |
| 7285 |
printf %s "(cached) " >&6 |
| 7286 |
else case e in #( |
| 7287 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7288 |
/* end confdefs.h. */ |
| 7289 |
|
| 7290 |
int |
| 7291 |
main (void) |
| 7292 |
{ |
| 7293 |
|
| 7294 |
#ifndef __cplusplus |
| 7295 |
/* Ultrix mips cc rejects this sort of thing. */ |
| 7296 |
typedef int charset[2]; |
| 7297 |
const charset cs = { 0, 0 }; |
| 7298 |
/* SunOS 4.1.1 cc rejects this. */ |
| 7299 |
char const *const *pcpcc; |
| 7300 |
char **ppc; |
| 7301 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 7302 |
struct point {int x, y;}; |
| 7303 |
static struct point const zero = {0,0}; |
| 7304 |
/* IBM XL C 1.02.0.0 rejects this. |
| 7305 |
It does not let you subtract one const X* pointer from another in |
| 7306 |
an arm of an if-expression whose if-part is not a constant |
| 7307 |
expression */ |
| 7308 |
const char *g = "string"; |
| 7309 |
pcpcc = &g + (g ? g-g : 0); |
| 7310 |
/* HPUX 7.0 cc rejects these. */ |
| 7311 |
++pcpcc; |
| 7312 |
ppc = (char**) pcpcc; |
| 7313 |
pcpcc = (char const *const *) ppc; |
| 7314 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 7315 |
char tx; |
| 7316 |
char *t = &tx; |
| 7317 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7318 |
|
| 7319 |
*t++ = 0; |
| 7320 |
if (s) return 0; |
| 7321 |
} |
| 7322 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7323 |
int x[] = {25, 17}; |
| 7324 |
const int *foo = &x[0]; |
| 7325 |
++foo; |
| 7326 |
} |
| 7327 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7328 |
typedef const int *iptr; |
| 7329 |
iptr p = 0; |
| 7330 |
++p; |
| 7331 |
} |
| 7332 |
{ /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 7333 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7334 |
struct s { int j; const int *ap[3]; } bx; |
| 7335 |
struct s *b = &bx; b->j = 5; |
| 7336 |
} |
| 7337 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7338 |
const int foo = 10; |
| 7339 |
if (!foo) return 0; |
| 7340 |
} |
| 7341 |
return !cs[0] && !zero.x; |
| 7342 |
#endif |
| 7343 |
|
| 7344 |
; |
| 7345 |
return 0; |
| 7346 |
} |
| 7347 |
_ACEOF |
| 7348 |
if ac_fn_c_try_compile "$LINENO" |
| 7349 |
then : |
| 7350 |
ac_cv_c_const=yes |
| 7351 |
else case e in #( |
| 7352 |
e) ac_cv_c_const=no ;; |
| 7353 |
esac |
| 7354 |
fi |
| 7355 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7356 |
esac |
| 7357 |
fi |
| 7358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 7359 |
printf "%s\n" "$ac_cv_c_const" >&6; } |
| 7360 |
if test $ac_cv_c_const = no; then |
| 7361 |
|
| 7362 |
printf "%s\n" "#define const /**/" >>confdefs.h |
| 7363 |
|
| 7364 |
fi |
| 7365 |
|
| 7366 |
|
| 7367 |
# checks for availability of common functions |
| 7368 |
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 7369 |
if test "x$ac_cv_func_sigaction" = xyes |
| 7370 |
then : |
| 7371 |
printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h |
| 7372 |
|
| 7373 |
fi |
| 7374 |
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 7375 |
if test "x$ac_cv_func_snprintf" = xyes |
| 7376 |
then : |
| 7377 |
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 7378 |
|
| 7379 |
fi |
| 7380 |
|
| 7381 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 7382 |
printf %s "checking for library containing socket... " >&6; } |
| 7383 |
if test ${ac_cv_search_socket+y} |
| 7384 |
then : |
| 7385 |
printf %s "(cached) " >&6 |
| 7386 |
else case e in #( |
| 7387 |
e) ac_func_search_save_LIBS=$LIBS |
| 7388 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7389 |
/* end confdefs.h. */ |
| 7390 |
|
| 7391 |
/* Override any GCC internal prototype to avoid an error. |
| 7392 |
Use char because int might match the return type of a GCC |
| 7393 |
builtin and then its argument prototype would still apply. |
| 7394 |
The 'extern "C"' is for builds by C++ compilers; |
| 7395 |
although this is not generally supported in C code supporting it here |
| 7396 |
has little cost and some practical benefit (sr 110532). */ |
| 7397 |
#ifdef __cplusplus |
| 7398 |
extern "C" |
| 7399 |
#endif |
| 7400 |
char socket (void); |
| 7401 |
int |
| 7402 |
main (void) |
| 7403 |
{ |
| 7404 |
return socket (); |
| 7405 |
; |
| 7406 |
return 0; |
| 7407 |
} |
| 7408 |
_ACEOF |
| 7409 |
for ac_lib in '' socket |
| 7410 |
do |
| 7411 |
if test -z "$ac_lib"; then |
| 7412 |
ac_res="none required" |
| 7413 |
else |
| 7414 |
ac_res=-l$ac_lib |
| 7415 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7416 |
fi |
| 7417 |
if ac_fn_c_try_link "$LINENO" |
| 7418 |
then : |
| 7419 |
ac_cv_search_socket=$ac_res |
| 7420 |
fi |
| 7421 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7422 |
conftest$ac_exeext |
| 7423 |
if test ${ac_cv_search_socket+y} |
| 7424 |
then : |
| 7425 |
break |
| 7426 |
fi |
| 7427 |
done |
| 7428 |
if test ${ac_cv_search_socket+y} |
| 7429 |
then : |
| 7430 |
|
| 7431 |
else case e in #( |
| 7432 |
e) ac_cv_search_socket=no ;; |
| 7433 |
esac |
| 7434 |
fi |
| 7435 |
rm conftest.$ac_ext |
| 7436 |
LIBS=$ac_func_search_save_LIBS ;; |
| 7437 |
esac |
| 7438 |
fi |
| 7439 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 7440 |
printf "%s\n" "$ac_cv_search_socket" >&6; } |
| 7441 |
ac_res=$ac_cv_search_socket |
| 7442 |
if test "$ac_res" != no |
| 7443 |
then : |
| 7444 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7445 |
|
| 7446 |
fi |
| 7447 |
|
| 7448 |
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 7449 |
if test "x$ac_cv_func_strcasecmp" = xyes |
| 7450 |
then : |
| 7451 |
printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h |
| 7452 |
|
| 7453 |
fi |
| 7454 |
ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" |
| 7455 |
if test "x$ac_cv_func_strncasecmp" = xyes |
| 7456 |
then : |
| 7457 |
printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h |
| 7458 |
|
| 7459 |
fi |
| 7460 |
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
| 7461 |
if test "x$ac_cv_func_strchr" = xyes |
| 7462 |
then : |
| 7463 |
printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h |
| 7464 |
|
| 7465 |
fi |
| 7466 |
ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn" |
| 7467 |
if test "x$ac_cv_func_strcspn" = xyes |
| 7468 |
then : |
| 7469 |
printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h |
| 7470 |
|
| 7471 |
fi |
| 7472 |
ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn" |
| 7473 |
if test "x$ac_cv_func_strspn" = xyes |
| 7474 |
then : |
| 7475 |
printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h |
| 7476 |
|
| 7477 |
fi |
| 7478 |
ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
| 7479 |
if test "x$ac_cv_func_strtol" = xyes |
| 7480 |
then : |
| 7481 |
printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h |
| 7482 |
|
| 7483 |
fi |
| 7484 |
ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" |
| 7485 |
if test "x$ac_cv_func_strtoul" = xyes |
| 7486 |
then : |
| 7487 |
printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h |
| 7488 |
|
| 7489 |
fi |
| 7490 |
ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" |
| 7491 |
if test "x$ac_cv_func_strtoull" = xyes |
| 7492 |
then : |
| 7493 |
printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h |
| 7494 |
|
| 7495 |
fi |
| 7496 |
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" |
| 7497 |
if test "x$ac_cv_func_strndup" = xyes |
| 7498 |
then : |
| 7499 |
printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h |
| 7500 |
|
| 7501 |
fi |
| 7502 |
|
| 7503 |
ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc" |
| 7504 |
if test "x$ac_cv_func_malloc" = xyes |
| 7505 |
then : |
| 7506 |
printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h |
| 7507 |
|
| 7508 |
fi |
| 7509 |
ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc" |
| 7510 |
if test "x$ac_cv_func_realloc" = xyes |
| 7511 |
then : |
| 7512 |
printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h |
| 7513 |
|
| 7514 |
fi |
| 7515 |
ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" |
| 7516 |
if test "x$ac_cv_func_atexit" = xyes |
| 7517 |
then : |
| 7518 |
printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h |
| 7519 |
|
| 7520 |
fi |
| 7521 |
|
| 7522 |
|
| 7523 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 7524 |
" |
| 7525 |
if test "x$ac_cv_type_pid_t" = xyes |
| 7526 |
then : |
| 7527 |
|
| 7528 |
else case e in #( |
| 7529 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7530 |
/* end confdefs.h. */ |
| 7531 |
|
| 7532 |
#if defined _WIN64 && !defined __CYGWIN__ |
| 7533 |
LLP64 |
| 7534 |
#endif |
| 7535 |
|
| 7536 |
int |
| 7537 |
main (void) |
| 7538 |
{ |
| 7539 |
|
| 7540 |
; |
| 7541 |
return 0; |
| 7542 |
} |
| 7543 |
|
| 7544 |
_ACEOF |
| 7545 |
if ac_fn_c_try_compile "$LINENO" |
| 7546 |
then : |
| 7547 |
ac_pid_type='int' |
| 7548 |
else case e in #( |
| 7549 |
e) ac_pid_type='__int64' ;; |
| 7550 |
esac |
| 7551 |
fi |
| 7552 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7553 |
|
| 7554 |
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 7555 |
|
| 7556 |
;; |
| 7557 |
esac |
| 7558 |
fi |
| 7559 |
|
| 7560 |
|
| 7561 |
|
| 7562 |
ac_func= |
| 7563 |
for ac_item in $ac_func_c_list |
| 7564 |
do |
| 7565 |
if test $ac_func; then |
| 7566 |
ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func |
| 7567 |
if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then |
| 7568 |
echo "#define $ac_item 1" >> confdefs.h |
| 7569 |
fi |
| 7570 |
ac_func= |
| 7571 |
else |
| 7572 |
ac_func=$ac_item |
| 7573 |
fi |
| 7574 |
done |
| 7575 |
|
| 7576 |
|
| 7577 |
|
| 7578 |
if test "x$ac_cv_func_fork" = xyes; then |
| 7579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| 7580 |
printf %s "checking for working fork... " >&6; } |
| 7581 |
if test ${ac_cv_func_fork_works+y} |
| 7582 |
then : |
| 7583 |
printf %s "(cached) " >&6 |
| 7584 |
else case e in #( |
| 7585 |
e) if test "$cross_compiling" = yes |
| 7586 |
then : |
| 7587 |
ac_cv_func_fork_works=cross |
| 7588 |
else case e in #( |
| 7589 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7590 |
/* end confdefs.h. */ |
| 7591 |
$ac_includes_default |
| 7592 |
int |
| 7593 |
main (void) |
| 7594 |
{ |
| 7595 |
|
| 7596 |
/* By R. Kuhlmann. */ |
| 7597 |
return fork () < 0; |
| 7598 |
|
| 7599 |
; |
| 7600 |
return 0; |
| 7601 |
} |
| 7602 |
_ACEOF |
| 7603 |
if ac_fn_c_try_run "$LINENO" |
| 7604 |
then : |
| 7605 |
ac_cv_func_fork_works=yes |
| 7606 |
else case e in #( |
| 7607 |
e) ac_cv_func_fork_works=no ;; |
| 7608 |
esac |
| 7609 |
fi |
| 7610 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7611 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7612 |
esac |
| 7613 |
fi |
| 7614 |
;; |
| 7615 |
esac |
| 7616 |
fi |
| 7617 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| 7618 |
printf "%s\n" "$ac_cv_func_fork_works" >&6; } |
| 7619 |
|
| 7620 |
else |
| 7621 |
ac_cv_func_fork_works=$ac_cv_func_fork |
| 7622 |
fi |
| 7623 |
if test "x$ac_cv_func_fork_works" = xcross; then |
| 7624 |
case $host in |
| 7625 |
*-*-amigaos* | *-*-msdosdjgpp*) |
| 7626 |
# Override, as these systems have only a dummy fork() stub |
| 7627 |
ac_cv_func_fork_works=no |
| 7628 |
;; |
| 7629 |
*) |
| 7630 |
ac_cv_func_fork_works=yes |
| 7631 |
;; |
| 7632 |
esac |
| 7633 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 7634 |
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 7635 |
fi |
| 7636 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 7637 |
if test "x$ac_cv_func_vfork" = xyes; then |
| 7638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| 7639 |
printf %s "checking for working vfork... " >&6; } |
| 7640 |
if test ${ac_cv_func_vfork_works+y} |
| 7641 |
then : |
| 7642 |
printf %s "(cached) " >&6 |
| 7643 |
else case e in #( |
| 7644 |
e) if test "$cross_compiling" = yes |
| 7645 |
then : |
| 7646 |
ac_cv_func_vfork_works=cross |
| 7647 |
else case e in #( |
| 7648 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7649 |
/* end confdefs.h. */ |
| 7650 |
/* Thanks to Paul Eggert for this test. */ |
| 7651 |
$ac_includes_default |
| 7652 |
#include <signal.h> |
| 7653 |
#include <sys/wait.h> |
| 7654 |
#ifdef HAVE_VFORK_H |
| 7655 |
# include <vfork.h> |
| 7656 |
#endif |
| 7657 |
|
| 7658 |
static void |
| 7659 |
do_nothing (int sig) |
| 7660 |
{ |
| 7661 |
(void) sig; |
| 7662 |
} |
| 7663 |
|
| 7664 |
/* On some sparc systems, changes by the child to local and incoming |
| 7665 |
argument registers are propagated back to the parent. The compiler |
| 7666 |
is told about this with #include <vfork.h>, but some compilers |
| 7667 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 7668 |
static variable whose address is put into a register that is |
| 7669 |
clobbered by the vfork. */ |
| 7670 |
static void |
| 7671 |
sparc_address_test (int arg) |
| 7672 |
{ |
| 7673 |
static pid_t child; |
| 7674 |
if (!child) { |
| 7675 |
child = vfork (); |
| 7676 |
if (child < 0) { |
| 7677 |
perror ("vfork"); |
| 7678 |
_exit(2); |
| 7679 |
} |
| 7680 |
if (!child) { |
| 7681 |
arg = getpid(); |
| 7682 |
write(-1, "", 0); |
| 7683 |
_exit (arg); |
| 7684 |
} |
| 7685 |
} |
| 7686 |
} |
| 7687 |
|
| 7688 |
int |
| 7689 |
main (void) |
| 7690 |
{ |
| 7691 |
pid_t parent = getpid (); |
| 7692 |
pid_t child; |
| 7693 |
|
| 7694 |
sparc_address_test (0); |
| 7695 |
|
| 7696 |
/* On Solaris 2.4, changes by the child to the signal handler |
| 7697 |
also munge signal handlers in the parent. To detect this, |
| 7698 |
start by putting the parent's handler in a known state. */ |
| 7699 |
signal (SIGTERM, SIG_DFL); |
| 7700 |
|
| 7701 |
child = vfork (); |
| 7702 |
|
| 7703 |
if (child == 0) { |
| 7704 |
/* Here is another test for sparc vfork register problems. This |
| 7705 |
test uses lots of local variables, at least as many local |
| 7706 |
variables as main has allocated so far including compiler |
| 7707 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 7708 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 7709 |
reuse the register of parent for one of the local variables, |
| 7710 |
since it will think that parent can't possibly be used any more |
| 7711 |
in this routine. Assigning to the local variable will thus |
| 7712 |
munge parent in the parent process. */ |
| 7713 |
pid_t |
| 7714 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 7715 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 7716 |
/* Convince the compiler that p..p7 are live; otherwise, it might |
| 7717 |
use the same hardware register for all 8 local variables. */ |
| 7718 |
if (p != p1 || p != p2 || p != p3 || p != p4 |
| 7719 |
|| p != p5 || p != p6 || p != p7) |
| 7720 |
_exit(1); |
| 7721 |
|
| 7722 |
/* Alter the child's signal handler. */ |
| 7723 |
if (signal (SIGTERM, do_nothing) != SIG_DFL) |
| 7724 |
_exit(1); |
| 7725 |
|
| 7726 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 7727 |
from child file descriptors. If the child closes a descriptor |
| 7728 |
before it execs or exits, this munges the parent's descriptor |
| 7729 |
as well. Test for this by closing stdout in the child. */ |
| 7730 |
_exit(close(fileno(stdout)) != 0); |
| 7731 |
} else { |
| 7732 |
int status; |
| 7733 |
struct stat st; |
| 7734 |
|
| 7735 |
while (wait(&status) != child) |
| 7736 |
; |
| 7737 |
return ( |
| 7738 |
/* Was there some problem with vforking? */ |
| 7739 |
child < 0 |
| 7740 |
|
| 7741 |
/* Did the child munge the parent's signal handler? */ |
| 7742 |
|| signal (SIGTERM, SIG_DFL) != SIG_DFL |
| 7743 |
|
| 7744 |
/* Did the child fail? (This shouldn't happen.) */ |
| 7745 |
|| status |
| 7746 |
|
| 7747 |
/* Did the vfork/compiler bug occur? */ |
| 7748 |
|| parent != getpid() |
| 7749 |
|
| 7750 |
/* Did the file descriptor bug occur? */ |
| 7751 |
|| fstat(fileno(stdout), &st) != 0 |
| 7752 |
); |
| 7753 |
} |
| 7754 |
} |
| 7755 |
_ACEOF |
| 7756 |
if ac_fn_c_try_run "$LINENO" |
| 7757 |
then : |
| 7758 |
ac_cv_func_vfork_works=yes |
| 7759 |
else case e in #( |
| 7760 |
e) ac_cv_func_vfork_works=no ;; |
| 7761 |
esac |
| 7762 |
fi |
| 7763 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7764 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7765 |
esac |
| 7766 |
fi |
| 7767 |
;; |
| 7768 |
esac |
| 7769 |
fi |
| 7770 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| 7771 |
printf "%s\n" "$ac_cv_func_vfork_works" >&6; } |
| 7772 |
|
| 7773 |
fi; |
| 7774 |
if test "x$ac_cv_func_fork_works" = xcross; then |
| 7775 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 7776 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 7777 |
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 7778 |
fi |
| 7779 |
|
| 7780 |
if test "x$ac_cv_func_vfork_works" = xyes; then |
| 7781 |
|
| 7782 |
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| 7783 |
|
| 7784 |
else |
| 7785 |
|
| 7786 |
printf "%s\n" "#define vfork fork" >>confdefs.h |
| 7787 |
|
| 7788 |
fi |
| 7789 |
if test "x$ac_cv_func_fork_works" = xyes; then |
| 7790 |
|
| 7791 |
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| 7792 |
|
| 7793 |
fi |
| 7794 |
|
| 7795 |
ac_fn_c_check_func "$LINENO" "__assert_fail" "ac_cv_func___assert_fail" |
| 7796 |
if test "x$ac_cv_func___assert_fail" = xyes |
| 7797 |
then : |
| 7798 |
printf "%s\n" "#define HAVE___ASSERT_FAIL 1" >>confdefs.h |
| 7799 |
|
| 7800 |
fi |
| 7801 |
ac_fn_c_check_func "$LINENO" "__assert" "ac_cv_func___assert" |
| 7802 |
if test "x$ac_cv_func___assert" = xyes |
| 7803 |
then : |
| 7804 |
printf "%s\n" "#define HAVE___ASSERT 1" >>confdefs.h |
| 7805 |
|
| 7806 |
fi |
| 7807 |
ac_fn_c_check_func "$LINENO" "__assert_c99" "ac_cv_func___assert_c99" |
| 7808 |
if test "x$ac_cv_func___assert_c99" = xyes |
| 7809 |
then : |
| 7810 |
printf "%s\n" "#define HAVE___ASSERT_C99 1" >>confdefs.h |
| 7811 |
|
| 7812 |
fi |
| 7813 |
|
| 7814 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 7815 |
printf %s "checking for library containing clock_gettime... " >&6; } |
| 7816 |
if test ${ac_cv_search_clock_gettime+y} |
| 7817 |
then : |
| 7818 |
printf %s "(cached) " >&6 |
| 7819 |
else case e in #( |
| 7820 |
e) ac_func_search_save_LIBS=$LIBS |
| 7821 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7822 |
/* end confdefs.h. */ |
| 7823 |
|
| 7824 |
/* Override any GCC internal prototype to avoid an error. |
| 7825 |
Use char because int might match the return type of a GCC |
| 7826 |
builtin and then its argument prototype would still apply. |
| 7827 |
The 'extern "C"' is for builds by C++ compilers; |
| 7828 |
although this is not generally supported in C code supporting it here |
| 7829 |
has little cost and some practical benefit (sr 110532). */ |
| 7830 |
#ifdef __cplusplus |
| 7831 |
extern "C" |
| 7832 |
#endif |
| 7833 |
char clock_gettime (void); |
| 7834 |
int |
| 7835 |
main (void) |
| 7836 |
{ |
| 7837 |
return clock_gettime (); |
| 7838 |
; |
| 7839 |
return 0; |
| 7840 |
} |
| 7841 |
_ACEOF |
| 7842 |
for ac_lib in '' rt |
| 7843 |
do |
| 7844 |
if test -z "$ac_lib"; then |
| 7845 |
ac_res="none required" |
| 7846 |
else |
| 7847 |
ac_res=-l$ac_lib |
| 7848 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7849 |
fi |
| 7850 |
if ac_fn_c_try_link "$LINENO" |
| 7851 |
then : |
| 7852 |
ac_cv_search_clock_gettime=$ac_res |
| 7853 |
fi |
| 7854 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7855 |
conftest$ac_exeext |
| 7856 |
if test ${ac_cv_search_clock_gettime+y} |
| 7857 |
then : |
| 7858 |
break |
| 7859 |
fi |
| 7860 |
done |
| 7861 |
if test ${ac_cv_search_clock_gettime+y} |
| 7862 |
then : |
| 7863 |
|
| 7864 |
else case e in #( |
| 7865 |
e) ac_cv_search_clock_gettime=no ;; |
| 7866 |
esac |
| 7867 |
fi |
| 7868 |
rm conftest.$ac_ext |
| 7869 |
LIBS=$ac_func_search_save_LIBS ;; |
| 7870 |
esac |
| 7871 |
fi |
| 7872 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 7873 |
printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } |
| 7874 |
ac_res=$ac_cv_search_clock_gettime |
| 7875 |
if test "$ac_res" != no |
| 7876 |
then : |
| 7877 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7878 |
|
| 7879 |
fi |
| 7880 |
|
| 7881 |
ac_fn_c_check_func "$LINENO" "setusershell" "ac_cv_func_setusershell" |
| 7882 |
if test "x$ac_cv_func_setusershell" = xyes |
| 7883 |
then : |
| 7884 |
printf "%s\n" "#define HAVE_SETUSERSHELL 1" >>confdefs.h |
| 7885 |
|
| 7886 |
fi |
| 7887 |
ac_fn_c_check_func "$LINENO" "getusershell" "ac_cv_func_getusershell" |
| 7888 |
if test "x$ac_cv_func_getusershell" = xyes |
| 7889 |
then : |
| 7890 |
printf "%s\n" "#define HAVE_GETUSERSHELL 1" >>confdefs.h |
| 7891 |
|
| 7892 |
fi |
| 7893 |
ac_fn_c_check_func "$LINENO" "endusershell" "ac_cv_func_endusershell" |
| 7894 |
if test "x$ac_cv_func_endusershell" = xyes |
| 7895 |
then : |
| 7896 |
printf "%s\n" "#define HAVE_ENDUSERSHELL 1" >>confdefs.h |
| 7897 |
|
| 7898 |
fi |
| 7899 |
ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" |
| 7900 |
if test "x$ac_cv_func_getgrouplist" = xyes |
| 7901 |
then : |
| 7902 |
printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h |
| 7903 |
|
| 7904 |
fi |
| 7905 |
|
| 7906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 7907 |
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 7908 |
if test ${ac_cv_c_undeclared_builtin_options+y} |
| 7909 |
then : |
| 7910 |
printf %s "(cached) " >&6 |
| 7911 |
else case e in #( |
| 7912 |
e) ac_save_CFLAGS=$CFLAGS |
| 7913 |
ac_cv_c_undeclared_builtin_options='cannot detect' |
| 7914 |
for ac_arg in '' -fno-builtin; do |
| 7915 |
CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 7916 |
# This test program should *not* compile successfully. |
| 7917 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7918 |
/* end confdefs.h. */ |
| 7919 |
|
| 7920 |
int |
| 7921 |
main (void) |
| 7922 |
{ |
| 7923 |
(void) strchr; |
| 7924 |
; |
| 7925 |
return 0; |
| 7926 |
} |
| 7927 |
_ACEOF |
| 7928 |
if ac_fn_c_try_compile "$LINENO" |
| 7929 |
then : |
| 7930 |
|
| 7931 |
else case e in #( |
| 7932 |
e) # This test program should compile successfully. |
| 7933 |
# No library function is consistently available on |
| 7934 |
# freestanding implementations, so test against a dummy |
| 7935 |
# declaration. Include always-available headers on the |
| 7936 |
# off chance that they somehow elicit warnings. |
| 7937 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7938 |
/* end confdefs.h. */ |
| 7939 |
#include <float.h> |
| 7940 |
#include <limits.h> |
| 7941 |
#include <stdarg.h> |
| 7942 |
#include <stddef.h> |
| 7943 |
extern void ac_decl (int, char *); |
| 7944 |
|
| 7945 |
int |
| 7946 |
main (void) |
| 7947 |
{ |
| 7948 |
(void) ac_decl (0, (char *) 0); |
| 7949 |
(void) ac_decl; |
| 7950 |
|
| 7951 |
; |
| 7952 |
return 0; |
| 7953 |
} |
| 7954 |
_ACEOF |
| 7955 |
if ac_fn_c_try_compile "$LINENO" |
| 7956 |
then : |
| 7957 |
if test x"$ac_arg" = x |
| 7958 |
then : |
| 7959 |
ac_cv_c_undeclared_builtin_options='none needed' |
| 7960 |
else case e in #( |
| 7961 |
e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; |
| 7962 |
esac |
| 7963 |
fi |
| 7964 |
break |
| 7965 |
fi |
| 7966 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7967 |
esac |
| 7968 |
fi |
| 7969 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7970 |
done |
| 7971 |
CFLAGS=$ac_save_CFLAGS |
| 7972 |
;; |
| 7973 |
esac |
| 7974 |
fi |
| 7975 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 7976 |
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 7977 |
case $ac_cv_c_undeclared_builtin_options in #( |
| 7978 |
'cannot detect') : |
| 7979 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 7980 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 7981 |
as_fn_error $? "cannot make $CC report undeclared builtins |
| 7982 |
See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 7983 |
'none needed') : |
| 7984 |
ac_c_undeclared_builtin_options='' ;; #( |
| 7985 |
*) : |
| 7986 |
ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 7987 |
esac |
| 7988 |
|
| 7989 |
ac_fn_check_decl "$LINENO" "setusershell" "ac_cv_have_decl_setusershell" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 7990 |
if test "x$ac_cv_have_decl_setusershell" = xyes |
| 7991 |
then : |
| 7992 |
ac_have_decl=1 |
| 7993 |
else case e in #( |
| 7994 |
e) ac_have_decl=0 ;; |
| 7995 |
esac |
| 7996 |
fi |
| 7997 |
printf "%s\n" "#define HAVE_DECL_SETUSERSHELL $ac_have_decl" >>confdefs.h |
| 7998 |
ac_fn_check_decl "$LINENO" "getusershell" "ac_cv_have_decl_getusershell" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 7999 |
if test "x$ac_cv_have_decl_getusershell" = xyes |
| 8000 |
then : |
| 8001 |
ac_have_decl=1 |
| 8002 |
else case e in #( |
| 8003 |
e) ac_have_decl=0 ;; |
| 8004 |
esac |
| 8005 |
fi |
| 8006 |
printf "%s\n" "#define HAVE_DECL_GETUSERSHELL $ac_have_decl" >>confdefs.h |
| 8007 |
ac_fn_check_decl "$LINENO" "endusershell" "ac_cv_have_decl_endusershell" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 8008 |
if test "x$ac_cv_have_decl_endusershell" = xyes |
| 8009 |
then : |
| 8010 |
ac_have_decl=1 |
| 8011 |
else case e in #( |
| 8012 |
e) ac_have_decl=0 ;; |
| 8013 |
esac |
| 8014 |
fi |
| 8015 |
printf "%s\n" "#define HAVE_DECL_ENDUSERSHELL $ac_have_decl" >>confdefs.h |
| 8016 |
|
| 8017 |
|
| 8018 |
# checks for types |
| 8019 |
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 8020 |
if test "x$ac_cv_type_mode_t" = xyes |
| 8021 |
then : |
| 8022 |
|
| 8023 |
else case e in #( |
| 8024 |
e) |
| 8025 |
printf "%s\n" "#define mode_t int" >>confdefs.h |
| 8026 |
;; |
| 8027 |
esac |
| 8028 |
fi |
| 8029 |
|
| 8030 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 8031 |
if test "x$ac_cv_type_size_t" = xyes |
| 8032 |
then : |
| 8033 |
|
| 8034 |
else case e in #( |
| 8035 |
e) |
| 8036 |
printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 8037 |
;; |
| 8038 |
esac |
| 8039 |
fi |
| 8040 |
|
| 8041 |
ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" |
| 8042 |
if test "x$ac_cv_type_uid_t" = xyes |
| 8043 |
then : |
| 8044 |
|
| 8045 |
else case e in #( |
| 8046 |
e) |
| 8047 |
printf "%s\n" "#define uid_t int" >>confdefs.h |
| 8048 |
;; |
| 8049 |
esac |
| 8050 |
fi |
| 8051 |
|
| 8052 |
ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" |
| 8053 |
if test "x$ac_cv_type_gid_t" = xyes |
| 8054 |
then : |
| 8055 |
|
| 8056 |
else case e in #( |
| 8057 |
e) |
| 8058 |
printf "%s\n" "#define gid_t int" >>confdefs.h |
| 8059 |
;; |
| 8060 |
esac |
| 8061 |
fi |
| 8062 |
|
| 8063 |
|
| 8064 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 8065 |
" |
| 8066 |
if test "x$ac_cv_type_pid_t" = xyes |
| 8067 |
then : |
| 8068 |
|
| 8069 |
else case e in #( |
| 8070 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8071 |
/* end confdefs.h. */ |
| 8072 |
|
| 8073 |
#if defined _WIN64 && !defined __CYGWIN__ |
| 8074 |
LLP64 |
| 8075 |
#endif |
| 8076 |
|
| 8077 |
int |
| 8078 |
main (void) |
| 8079 |
{ |
| 8080 |
|
| 8081 |
; |
| 8082 |
return 0; |
| 8083 |
} |
| 8084 |
|
| 8085 |
_ACEOF |
| 8086 |
if ac_fn_c_try_compile "$LINENO" |
| 8087 |
then : |
| 8088 |
ac_pid_type='int' |
| 8089 |
else case e in #( |
| 8090 |
e) ac_pid_type='__int64' ;; |
| 8091 |
esac |
| 8092 |
fi |
| 8093 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8094 |
|
| 8095 |
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 8096 |
|
| 8097 |
;; |
| 8098 |
esac |
| 8099 |
fi |
| 8100 |
|
| 8101 |
|
| 8102 |
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 8103 |
case $ac_cv_c_int32_t in #( |
| 8104 |
no|yes) ;; #( |
| 8105 |
*) |
| 8106 |
|
| 8107 |
printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
| 8108 |
;; |
| 8109 |
esac |
| 8110 |
|
| 8111 |
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 8112 |
case $ac_cv_c_uint8_t in #( |
| 8113 |
no|yes) ;; #( |
| 8114 |
*) |
| 8115 |
|
| 8116 |
printf "%s\n" "#define _UINT8_T 1" >>confdefs.h |
| 8117 |
|
| 8118 |
|
| 8119 |
printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h |
| 8120 |
;; |
| 8121 |
esac |
| 8122 |
|
| 8123 |
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 8124 |
case $ac_cv_c_uint16_t in #( |
| 8125 |
no|yes) ;; #( |
| 8126 |
*) |
| 8127 |
|
| 8128 |
|
| 8129 |
printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
| 8130 |
;; |
| 8131 |
esac |
| 8132 |
|
| 8133 |
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 8134 |
case $ac_cv_c_uint32_t in #( |
| 8135 |
no|yes) ;; #( |
| 8136 |
*) |
| 8137 |
|
| 8138 |
printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
| 8139 |
|
| 8140 |
|
| 8141 |
printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
| 8142 |
;; |
| 8143 |
esac |
| 8144 |
|
| 8145 |
# The cast to long int works around a bug in the HP C Compiler |
| 8146 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8147 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8148 |
# This bug is HP SR number 8606223364. |
| 8149 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| 8150 |
printf %s "checking size of unsigned int... " >&6; } |
| 8151 |
if test ${ac_cv_sizeof_unsigned_int+y} |
| 8152 |
then : |
| 8153 |
printf %s "(cached) " >&6 |
| 8154 |
else case e in #( |
| 8155 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default" |
| 8156 |
then : |
| 8157 |
|
| 8158 |
else case e in #( |
| 8159 |
e) if test "$ac_cv_type_unsigned_int" = yes; then |
| 8160 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 8161 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 8162 |
as_fn_error 77 "cannot compute sizeof (unsigned int) |
| 8163 |
See 'config.log' for more details" "$LINENO" 5; } |
| 8164 |
else |
| 8165 |
ac_cv_sizeof_unsigned_int=0 |
| 8166 |
fi ;; |
| 8167 |
esac |
| 8168 |
fi |
| 8169 |
;; |
| 8170 |
esac |
| 8171 |
fi |
| 8172 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 |
| 8173 |
printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; } |
| 8174 |
|
| 8175 |
|
| 8176 |
|
| 8177 |
printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h |
| 8178 |
|
| 8179 |
|
| 8180 |
# The cast to long int works around a bug in the HP C Compiler |
| 8181 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8182 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8183 |
# This bug is HP SR number 8606223364. |
| 8184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5 |
| 8185 |
printf %s "checking size of unsigned long int... " >&6; } |
| 8186 |
if test ${ac_cv_sizeof_unsigned_long_int+y} |
| 8187 |
then : |
| 8188 |
printf %s "(cached) " >&6 |
| 8189 |
else case e in #( |
| 8190 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default" |
| 8191 |
then : |
| 8192 |
|
| 8193 |
else case e in #( |
| 8194 |
e) if test "$ac_cv_type_unsigned_long_int" = yes; then |
| 8195 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 8196 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 8197 |
as_fn_error 77 "cannot compute sizeof (unsigned long int) |
| 8198 |
See 'config.log' for more details" "$LINENO" 5; } |
| 8199 |
else |
| 8200 |
ac_cv_sizeof_unsigned_long_int=0 |
| 8201 |
fi ;; |
| 8202 |
esac |
| 8203 |
fi |
| 8204 |
;; |
| 8205 |
esac |
| 8206 |
fi |
| 8207 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5 |
| 8208 |
printf "%s\n" "$ac_cv_sizeof_unsigned_long_int" >&6; } |
| 8209 |
|
| 8210 |
|
| 8211 |
|
| 8212 |
printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int" >>confdefs.h |
| 8213 |
|
| 8214 |
|
| 8215 |
# The cast to long int works around a bug in the HP C Compiler |
| 8216 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8217 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8218 |
# This bug is HP SR number 8606223364. |
| 8219 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5 |
| 8220 |
printf %s "checking size of unsigned long long int... " >&6; } |
| 8221 |
if test ${ac_cv_sizeof_unsigned_long_long_int+y} |
| 8222 |
then : |
| 8223 |
printf %s "(cached) " >&6 |
| 8224 |
else case e in #( |
| 8225 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int" "$ac_includes_default" |
| 8226 |
then : |
| 8227 |
|
| 8228 |
else case e in #( |
| 8229 |
e) if test "$ac_cv_type_unsigned_long_long_int" = yes; then |
| 8230 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 8231 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 8232 |
as_fn_error 77 "cannot compute sizeof (unsigned long long int) |
| 8233 |
See 'config.log' for more details" "$LINENO" 5; } |
| 8234 |
else |
| 8235 |
ac_cv_sizeof_unsigned_long_long_int=0 |
| 8236 |
fi ;; |
| 8237 |
esac |
| 8238 |
fi |
| 8239 |
;; |
| 8240 |
esac |
| 8241 |
fi |
| 8242 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5 |
| 8243 |
printf "%s\n" "$ac_cv_sizeof_unsigned_long_long_int" >&6; } |
| 8244 |
|
| 8245 |
|
| 8246 |
|
| 8247 |
printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int" >>confdefs.h |
| 8248 |
|
| 8249 |
|
| 8250 |
# The cast to long int works around a bug in the HP C Compiler |
| 8251 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8252 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8253 |
# This bug is HP SR number 8606223364. |
| 8254 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5 |
| 8255 |
printf %s "checking size of uid_t... " >&6; } |
| 8256 |
if test ${ac_cv_sizeof_uid_t+y} |
| 8257 |
then : |
| 8258 |
printf %s "(cached) " >&6 |
| 8259 |
else case e in #( |
| 8260 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t" "$ac_includes_default" |
| 8261 |
then : |
| 8262 |
|
| 8263 |
else case e in #( |
| 8264 |
e) if test "$ac_cv_type_uid_t" = yes; then |
| 8265 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 8266 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 8267 |
as_fn_error 77 "cannot compute sizeof (uid_t) |
| 8268 |
See 'config.log' for more details" "$LINENO" 5; } |
| 8269 |
else |
| 8270 |
ac_cv_sizeof_uid_t=0 |
| 8271 |
fi ;; |
| 8272 |
esac |
| 8273 |
fi |
| 8274 |
;; |
| 8275 |
esac |
| 8276 |
fi |
| 8277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5 |
| 8278 |
printf "%s\n" "$ac_cv_sizeof_uid_t" >&6; } |
| 8279 |
|
| 8280 |
|
| 8281 |
|
| 8282 |
printf "%s\n" "#define SIZEOF_UID_T $ac_cv_sizeof_uid_t" >>confdefs.h |
| 8283 |
|
| 8284 |
|
| 8285 |
# The cast to long int works around a bug in the HP C Compiler |
| 8286 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8287 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8288 |
# This bug is HP SR number 8606223364. |
| 8289 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5 |
| 8290 |
printf %s "checking size of gid_t... " >&6; } |
| 8291 |
if test ${ac_cv_sizeof_gid_t+y} |
| 8292 |
then : |
| 8293 |
printf %s "(cached) " >&6 |
| 8294 |
else case e in #( |
| 8295 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t" "$ac_includes_default" |
| 8296 |
then : |
| 8297 |
|
| 8298 |
else case e in #( |
| 8299 |
e) if test "$ac_cv_type_gid_t" = yes; then |
| 8300 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 8301 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 8302 |
as_fn_error 77 "cannot compute sizeof (gid_t) |
| 8303 |
See 'config.log' for more details" "$LINENO" 5; } |
| 8304 |
else |
| 8305 |
ac_cv_sizeof_gid_t=0 |
| 8306 |
fi ;; |
| 8307 |
esac |
| 8308 |
fi |
| 8309 |
;; |
| 8310 |
esac |
| 8311 |
fi |
| 8312 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5 |
| 8313 |
printf "%s\n" "$ac_cv_sizeof_gid_t" >&6; } |
| 8314 |
|
| 8315 |
|
| 8316 |
|
| 8317 |
printf "%s\n" "#define SIZEOF_GID_T $ac_cv_sizeof_gid_t" >>confdefs.h |
| 8318 |
|
| 8319 |
|
| 8320 |
|
| 8321 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
| 8322 |
printf %s "checking for thread local storage (TLS) class... " >&6; } |
| 8323 |
if test ${ac_cv_tls+y} |
| 8324 |
then : |
| 8325 |
printf %s "(cached) " >&6 |
| 8326 |
else case e in #( |
| 8327 |
e) for ax_tls_keyword in __thread '__declspec(thread)' none; do |
| 8328 |
case $ax_tls_keyword in #( |
| 8329 |
none) : |
| 8330 |
ac_cv_tls=none ; break ;; #( |
| 8331 |
*) : |
| 8332 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8333 |
/* end confdefs.h. */ |
| 8334 |
#include <stdlib.h> |
| 8335 |
static void |
| 8336 |
foo(void) { |
| 8337 |
static $ax_tls_keyword int bar; |
| 8338 |
exit(1); |
| 8339 |
} |
| 8340 |
int |
| 8341 |
main (void) |
| 8342 |
{ |
| 8343 |
|
| 8344 |
; |
| 8345 |
return 0; |
| 8346 |
} |
| 8347 |
_ACEOF |
| 8348 |
if ac_fn_c_try_compile "$LINENO" |
| 8349 |
then : |
| 8350 |
ac_cv_tls=$ax_tls_keyword ; break |
| 8351 |
else case e in #( |
| 8352 |
e) ac_cv_tls=none |
| 8353 |
;; |
| 8354 |
esac |
| 8355 |
fi |
| 8356 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8357 |
esac |
| 8358 |
done |
| 8359 |
;; |
| 8360 |
esac |
| 8361 |
fi |
| 8362 |
|
| 8363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
| 8364 |
printf "%s\n" "$ac_cv_tls" >&6; } |
| 8365 |
|
| 8366 |
if test "$ac_cv_tls" != "none" |
| 8367 |
then : |
| 8368 |
|
| 8369 |
printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h |
| 8370 |
|
| 8371 |
|
| 8372 |
fi |
| 8373 |
|
| 8374 |
ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "$ac_includes_default" |
| 8375 |
if test "x$ac_cv_type_suseconds_t" = xyes |
| 8376 |
then : |
| 8377 |
|
| 8378 |
printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h |
| 8379 |
|
| 8380 |
|
| 8381 |
fi |
| 8382 |
|
| 8383 |
|
| 8384 |
# check for support for the struct ether_addr structure |
| 8385 |
ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " |
| 8386 |
#include <sys/types.h> |
| 8387 |
#include <sys/socket.h> |
| 8388 |
#include <net/if.h> |
| 8389 |
#include <netinet/in.h> |
| 8390 |
#include <netinet/if_ether.h> |
| 8391 |
#ifdef HAVE_NETINET_ETHER_H |
| 8392 |
#include <netinet/ether.h> |
| 8393 |
#endif |
| 8394 |
" |
| 8395 |
if test "x$ac_cv_type_struct_ether_addr" = xyes |
| 8396 |
then : |
| 8397 |
|
| 8398 |
printf "%s\n" "#define HAVE_STRUCT_ETHER_ADDR 1" >>confdefs.h |
| 8399 |
|
| 8400 |
|
| 8401 |
fi |
| 8402 |
|
| 8403 |
|
| 8404 |
# check for ether_aton and ether_ntoa functions |
| 8405 |
ac_fn_c_check_func "$LINENO" "ether_aton" "ac_cv_func_ether_aton" |
| 8406 |
if test "x$ac_cv_func_ether_aton" = xyes |
| 8407 |
then : |
| 8408 |
printf "%s\n" "#define HAVE_ETHER_ATON 1" >>confdefs.h |
| 8409 |
|
| 8410 |
fi |
| 8411 |
ac_fn_c_check_func "$LINENO" "ether_ntoa" "ac_cv_func_ether_ntoa" |
| 8412 |
if test "x$ac_cv_func_ether_ntoa" = xyes |
| 8413 |
then : |
| 8414 |
printf "%s\n" "#define HAVE_ETHER_NTOA 1" >>confdefs.h |
| 8415 |
|
| 8416 |
fi |
| 8417 |
ac_fn_c_check_func "$LINENO" "ether_aton_r" "ac_cv_func_ether_aton_r" |
| 8418 |
if test "x$ac_cv_func_ether_aton_r" = xyes |
| 8419 |
then : |
| 8420 |
printf "%s\n" "#define HAVE_ETHER_ATON_R 1" >>confdefs.h |
| 8421 |
|
| 8422 |
fi |
| 8423 |
ac_fn_c_check_func "$LINENO" "ether_ntoa_r" "ac_cv_func_ether_ntoa_r" |
| 8424 |
if test "x$ac_cv_func_ether_ntoa_r" = xyes |
| 8425 |
then : |
| 8426 |
printf "%s\n" "#define HAVE_ETHER_NTOA_R 1" >>confdefs.h |
| 8427 |
|
| 8428 |
fi |
| 8429 |
|
| 8430 |
ac_fn_check_decl "$LINENO" "ether_aton" "ac_cv_have_decl_ether_aton" " |
| 8431 |
#include <sys/types.h> |
| 8432 |
#include <sys/socket.h> |
| 8433 |
#include <net/if.h> |
| 8434 |
#include <netinet/in.h> |
| 8435 |
#include <netinet/if_ether.h> |
| 8436 |
#ifdef HAVE_NETINET_ETHER_H |
| 8437 |
#include <netinet/ether.h> |
| 8438 |
#endif |
| 8439 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 8440 |
if test "x$ac_cv_have_decl_ether_aton" = xyes |
| 8441 |
then : |
| 8442 |
ac_have_decl=1 |
| 8443 |
else case e in #( |
| 8444 |
e) ac_have_decl=0 ;; |
| 8445 |
esac |
| 8446 |
fi |
| 8447 |
printf "%s\n" "#define HAVE_DECL_ETHER_ATON $ac_have_decl" >>confdefs.h |
| 8448 |
ac_fn_check_decl "$LINENO" "ether_ntoa" "ac_cv_have_decl_ether_ntoa" " |
| 8449 |
#include <sys/types.h> |
| 8450 |
#include <sys/socket.h> |
| 8451 |
#include <net/if.h> |
| 8452 |
#include <netinet/in.h> |
| 8453 |
#include <netinet/if_ether.h> |
| 8454 |
#ifdef HAVE_NETINET_ETHER_H |
| 8455 |
#include <netinet/ether.h> |
| 8456 |
#endif |
| 8457 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 8458 |
if test "x$ac_cv_have_decl_ether_ntoa" = xyes |
| 8459 |
then : |
| 8460 |
ac_have_decl=1 |
| 8461 |
else case e in #( |
| 8462 |
e) ac_have_decl=0 ;; |
| 8463 |
esac |
| 8464 |
fi |
| 8465 |
printf "%s\n" "#define HAVE_DECL_ETHER_NTOA $ac_have_decl" >>confdefs.h |
| 8466 |
|
| 8467 |
|
| 8468 |
# check to see if socklen_t is defined |
| 8469 |
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
| 8470 |
#include <sys/types.h> |
| 8471 |
#include <sys/socket.h> |
| 8472 |
" |
| 8473 |
if test "x$ac_cv_type_socklen_t" = xyes |
| 8474 |
then : |
| 8475 |
|
| 8476 |
else case e in #( |
| 8477 |
e) |
| 8478 |
printf "%s\n" "#define socklen_t size_t" >>confdefs.h |
| 8479 |
;; |
| 8480 |
esac |
| 8481 |
fi |
| 8482 |
|
| 8483 |
|
| 8484 |
# check the return type of setnetgrent() |
| 8485 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of setnetgrent" >&5 |
| 8486 |
printf %s "checking return type of setnetgrent... " >&6; } |
| 8487 |
if test ${nss_pam_ldapd_cv_setnetgrent_type+y} |
| 8488 |
then : |
| 8489 |
printf %s "(cached) " >&6 |
| 8490 |
else case e in #( |
| 8491 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8492 |
/* end confdefs.h. */ |
| 8493 |
|
| 8494 |
#include <netdb.h> |
| 8495 |
|
| 8496 |
int |
| 8497 |
main (void) |
| 8498 |
{ |
| 8499 |
|
| 8500 |
return setnetgrent(0); |
| 8501 |
|
| 8502 |
; |
| 8503 |
return 0; |
| 8504 |
} |
| 8505 |
_ACEOF |
| 8506 |
if ac_fn_c_try_compile "$LINENO" |
| 8507 |
then : |
| 8508 |
nss_pam_ldapd_cv_setnetgrent_type=int |
| 8509 |
else case e in #( |
| 8510 |
e) nss_pam_ldapd_cv_setnetgrent_type=void ;; |
| 8511 |
esac |
| 8512 |
fi |
| 8513 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8514 |
esac |
| 8515 |
fi |
| 8516 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_setnetgrent_type" >&5 |
| 8517 |
printf "%s\n" "$nss_pam_ldapd_cv_setnetgrent_type" >&6; } |
| 8518 |
if test "x$nss_pam_ldapd_cv_setnetgrent_type" = "xvoid" |
| 8519 |
then |
| 8520 |
|
| 8521 |
printf "%s\n" "#define SETNETGRENT_RETURNS_VOID 1" >>confdefs.h |
| 8522 |
|
| 8523 |
fi |
| 8524 |
|
| 8525 |
# NSS module-specific tests |
| 8526 |
if test "x$enable_nss" = "xyes" |
| 8527 |
then |
| 8528 |
# save CFLAGS and LIBS to restore later |
| 8529 |
nss_save_CFLAGS="$CFLAGS" |
| 8530 |
nss_save_LIBS="$LIBS" |
| 8531 |
|
| 8532 |
# check for a definition of struct aliasent |
| 8533 |
ac_fn_c_check_type "$LINENO" "struct aliasent" "ac_cv_type_struct_aliasent" " |
| 8534 |
#ifdef HAVE_ALIASES_H |
| 8535 |
#include <aliases.h> |
| 8536 |
#endif |
| 8537 |
" |
| 8538 |
if test "x$ac_cv_type_struct_aliasent" = xyes |
| 8539 |
then : |
| 8540 |
|
| 8541 |
printf "%s\n" "#define HAVE_STRUCT_ALIASENT 1" >>confdefs.h |
| 8542 |
|
| 8543 |
|
| 8544 |
fi |
| 8545 |
|
| 8546 |
|
| 8547 |
# check for a definition of struct etherent |
| 8548 |
ac_fn_c_check_type "$LINENO" "struct etherent" "ac_cv_type_struct_etherent" " |
| 8549 |
#include <sys/socket.h> |
| 8550 |
#include <net/if.h> |
| 8551 |
#include <netinet/in.h> |
| 8552 |
#include <netinet/if_ether.h> |
| 8553 |
#ifdef HAVE_NETINET_ETHER_H |
| 8554 |
#include <netinet/ether.h> |
| 8555 |
#endif |
| 8556 |
" |
| 8557 |
if test "x$ac_cv_type_struct_etherent" = xyes |
| 8558 |
then : |
| 8559 |
|
| 8560 |
printf "%s\n" "#define HAVE_STRUCT_ETHERENT 1" >>confdefs.h |
| 8561 |
|
| 8562 |
|
| 8563 |
fi |
| 8564 |
|
| 8565 |
|
| 8566 |
# check if struct passwd has a pw_class member |
| 8567 |
ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " |
| 8568 |
#include <pwd.h> |
| 8569 |
" |
| 8570 |
if test "x$ac_cv_member_struct_passwd_pw_class" = xyes |
| 8571 |
then : |
| 8572 |
|
| 8573 |
printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_CLASS 1" >>confdefs.h |
| 8574 |
|
| 8575 |
|
| 8576 |
fi |
| 8577 |
|
| 8578 |
|
| 8579 |
# check for a definition of struct rpcent |
| 8580 |
ac_fn_c_check_type "$LINENO" "struct rpcent" "ac_cv_type_struct_rpcent" " |
| 8581 |
#include <netdb.h> |
| 8582 |
#ifdef HAVE_RPC_RPCENT_H |
| 8583 |
#include <rpc/rpcent.h> |
| 8584 |
#endif |
| 8585 |
" |
| 8586 |
if test "x$ac_cv_type_struct_rpcent" = xyes |
| 8587 |
then : |
| 8588 |
|
| 8589 |
printf "%s\n" "#define HAVE_STRUCT_RPCENT 1" >>confdefs.h |
| 8590 |
|
| 8591 |
|
| 8592 |
fi |
| 8593 |
|
| 8594 |
|
| 8595 |
# check for a definition of struct spwd |
| 8596 |
ac_fn_c_check_type "$LINENO" "struct spwd" "ac_cv_type_struct_spwd" " |
| 8597 |
#ifdef HAVE_NSS_H |
| 8598 |
#include <nss.h> |
| 8599 |
#endif |
| 8600 |
#ifdef HAVE_NSS_COMMON_H |
| 8601 |
#include <nss_common.h> |
| 8602 |
#endif |
| 8603 |
#include <pwd.h> |
| 8604 |
#ifdef HAVE_SHADOW_H |
| 8605 |
#include <shadow.h> |
| 8606 |
#endif |
| 8607 |
" |
| 8608 |
if test "x$ac_cv_type_struct_spwd" = xyes |
| 8609 |
then : |
| 8610 |
|
| 8611 |
printf "%s\n" "#define HAVE_STRUCT_SPWD 1" >>confdefs.h |
| 8612 |
|
| 8613 |
|
| 8614 |
fi |
| 8615 |
|
| 8616 |
|
| 8617 |
# check for a definition of enum nss_status and nss_backend_t |
| 8618 |
ac_fn_c_check_type "$LINENO" "enum nss_status" "ac_cv_type_enum_nss_status" " |
| 8619 |
#ifdef HAVE_NSS_H |
| 8620 |
#include <nss.h> |
| 8621 |
#endif |
| 8622 |
#ifdef HAVE_NSS_COMMON_H |
| 8623 |
#include <nss_common.h> |
| 8624 |
#endif |
| 8625 |
#ifdef HAVE_NSS_DBDEFS_H |
| 8626 |
#include <nss_dbdefs.h> |
| 8627 |
#endif |
| 8628 |
#ifdef HAVE_NSSWITCH_H |
| 8629 |
#include <nsswitch.h> |
| 8630 |
#endif |
| 8631 |
" |
| 8632 |
if test "x$ac_cv_type_enum_nss_status" = xyes |
| 8633 |
then : |
| 8634 |
|
| 8635 |
printf "%s\n" "#define HAVE_ENUM_NSS_STATUS 1" >>confdefs.h |
| 8636 |
|
| 8637 |
|
| 8638 |
fi |
| 8639 |
ac_fn_c_check_type "$LINENO" "nss_backend_t" "ac_cv_type_nss_backend_t" " |
| 8640 |
#ifdef HAVE_NSS_H |
| 8641 |
#include <nss.h> |
| 8642 |
#endif |
| 8643 |
#ifdef HAVE_NSS_COMMON_H |
| 8644 |
#include <nss_common.h> |
| 8645 |
#endif |
| 8646 |
#ifdef HAVE_NSS_DBDEFS_H |
| 8647 |
#include <nss_dbdefs.h> |
| 8648 |
#endif |
| 8649 |
#ifdef HAVE_NSSWITCH_H |
| 8650 |
#include <nsswitch.h> |
| 8651 |
#endif |
| 8652 |
" |
| 8653 |
if test "x$ac_cv_type_nss_backend_t" = xyes |
| 8654 |
then : |
| 8655 |
|
| 8656 |
printf "%s\n" "#define HAVE_NSS_BACKEND_T 1" >>confdefs.h |
| 8657 |
|
| 8658 |
|
| 8659 |
fi |
| 8660 |
|
| 8661 |
|
| 8662 |
# check if struct nss_XbyY_args has a returnlen attribute |
| 8663 |
ac_fn_c_check_member "$LINENO" "struct nss_XbyY_args" "returnlen" "ac_cv_member_struct_nss_XbyY_args_returnlen" " |
| 8664 |
#ifdef HAVE_NSS_H |
| 8665 |
#include <nss.h> |
| 8666 |
#endif |
| 8667 |
#ifdef HAVE_NSS_COMMON_H |
| 8668 |
#include <nss_common.h> |
| 8669 |
#endif |
| 8670 |
#ifdef HAVE_NSS_DBDEFS_H |
| 8671 |
#include <nss_dbdefs.h> |
| 8672 |
#endif |
| 8673 |
#ifdef HAVE_NSSWITCH_H |
| 8674 |
#include <nsswitch.h> |
| 8675 |
#endif |
| 8676 |
" |
| 8677 |
if test "x$ac_cv_member_struct_nss_XbyY_args_returnlen" = xyes |
| 8678 |
then : |
| 8679 |
|
| 8680 |
printf "%s\n" "#define HAVE_STRUCT_NSS_XBYY_ARGS_RETURNLEN 1" >>confdefs.h |
| 8681 |
|
| 8682 |
|
| 8683 |
fi |
| 8684 |
|
| 8685 |
|
| 8686 |
# check which NSS flavour to build |
| 8687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which NSS flavour to build" >&5 |
| 8688 |
printf %s "checking which NSS flavour to build... " >&6; } |
| 8689 |
|
| 8690 |
# Check whether --with-nss-flavour was given. |
| 8691 |
if test ${with_nss_flavour+y} |
| 8692 |
then : |
| 8693 |
withval=$with_nss_flavour; |
| 8694 |
else case e in #( |
| 8695 |
e) with_nss_flavour=auto ;; |
| 8696 |
esac |
| 8697 |
fi |
| 8698 |
|
| 8699 |
if test "x$with_nss_flavour" = "xauto" |
| 8700 |
then |
| 8701 |
# do the guessing game |
| 8702 |
case "$target_os" in |
| 8703 |
solaris*) with_nss_flavour=solaris ;; |
| 8704 |
freebsd*|dragonfly*) with_nss_flavour=freebsd ;; |
| 8705 |
*) with_nss_flavour=glibc ;; |
| 8706 |
esac |
| 8707 |
fi |
| 8708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_nss_flavour" >&5 |
| 8709 |
printf "%s\n" "$with_nss_flavour" >&6; } |
| 8710 |
case "$with_nss_flavour" in |
| 8711 |
glibc) |
| 8712 |
printf "%s\n" "#define NSS_FLAVOUR_GLIBC 1" >>confdefs.h |
| 8713 |
;; |
| 8714 |
solaris) |
| 8715 |
printf "%s\n" "#define NSS_FLAVOUR_SOLARIS 1" >>confdefs.h |
| 8716 |
;; |
| 8717 |
freebsd) |
| 8718 |
printf "%s\n" "#define NSS_FLAVOUR_FREEBSD 1" >>confdefs.h |
| 8719 |
;; |
| 8720 |
esac |
| 8721 |
NSS_FLAVOUR="$with_nss_flavour" |
| 8722 |
|
| 8723 |
|
| 8724 |
# check which module source files to use |
| 8725 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which NSS maps to build" >&5 |
| 8726 |
printf %s "checking which NSS maps to build... " >&6; } |
| 8727 |
if test "x$with_nss_maps" = "xall" |
| 8728 |
then |
| 8729 |
case "$with_nss_flavour" in |
| 8730 |
glibc) with_nss_maps="aliases,ethers,group,hosts,netgroup,networks,passwd,protocols,rpc,services,shadow" ;; |
| 8731 |
solaris) with_nss_maps="ethers,group,hosts,netgroup,networks,passwd,protocols,rpc,services,shadow" ;; |
| 8732 |
freebsd) with_nss_maps="group,hosts,passwd,netgroup" ;; |
| 8733 |
esac |
| 8734 |
fi |
| 8735 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_nss_maps" >&5 |
| 8736 |
printf "%s\n" "$with_nss_maps" >&6; } |
| 8737 |
NSS_MODULE_OBJS="$(echo "$with_nss_maps " | sed 's/,/ /g;s/ */.$(OBJEXT) /g')" |
| 8738 |
|
| 8739 |
|
| 8740 |
# find out how to link the library |
| 8741 |
nss_ldap_so_LINK="\$(CCLD) \$(AM_CFLAGS) \$(CFLAGS) \$(nss_ldap_so_LDFLAGS) \$(LDFLAGS) -o \$@" |
| 8742 |
case "$target_os" in |
| 8743 |
solaris*) |
| 8744 |
if test "x$GCC" = xyes |
| 8745 |
then |
| 8746 |
nss_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M exports.map -G -o \$@" |
| 8747 |
else |
| 8748 |
nss_ldap_so_LDFLAGS="-Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,exports.map -Wl,-G" |
| 8749 |
fi |
| 8750 |
;; |
| 8751 |
*) |
| 8752 |
nss_ldap_so_LDFLAGS="-shared -Wl,-h,\$(NSS_LDAP_SONAME) -Wl,--version-script,exports.map" |
| 8753 |
;; |
| 8754 |
esac |
| 8755 |
|
| 8756 |
|
| 8757 |
|
| 8758 |
# restore CFLAGS and LIBS |
| 8759 |
CFLAGS="$nss_save_CFLAGS" |
| 8760 |
LIBS="$nss_save_LIBS" |
| 8761 |
fi |
| 8762 |
|
| 8763 |
# PAM module-specific tests |
| 8764 |
if test "x$enable_pam" = "xyes" |
| 8765 |
then |
| 8766 |
# save CFLAGS and LIBS to restore later |
| 8767 |
pam_save_CFLAGS="$CFLAGS" |
| 8768 |
pam_save_LIBS="$LIBS" |
| 8769 |
|
| 8770 |
# check for headers |
| 8771 |
ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" |
| 8772 |
if test "x$ac_cv_header_security_pam_appl_h" = xyes |
| 8773 |
then : |
| 8774 |
printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h |
| 8775 |
|
| 8776 |
fi |
| 8777 |
|
| 8778 |
ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" " |
| 8779 |
#ifdef HAVE_SECURITY_PAM_APPL_H |
| 8780 |
#include <security/pam_appl.h> |
| 8781 |
#endif |
| 8782 |
|
| 8783 |
" |
| 8784 |
if test "x$ac_cv_header_security_pam_modules_h" = xyes |
| 8785 |
then : |
| 8786 |
printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h |
| 8787 |
|
| 8788 |
fi |
| 8789 |
|
| 8790 |
ac_fn_c_check_header_compile "$LINENO" "pam/pam_modules.h" "ac_cv_header_pam_pam_modules_h" "$ac_includes_default" |
| 8791 |
if test "x$ac_cv_header_pam_pam_modules_h" = xyes |
| 8792 |
then : |
| 8793 |
printf "%s\n" "#define HAVE_PAM_PAM_MODULES_H 1" >>confdefs.h |
| 8794 |
|
| 8795 |
fi |
| 8796 |
|
| 8797 |
ac_fn_c_check_header_compile "$LINENO" "security/pam_ext.h" "ac_cv_header_security_pam_ext_h" "$ac_includes_default" |
| 8798 |
if test "x$ac_cv_header_security_pam_ext_h" = xyes |
| 8799 |
then : |
| 8800 |
printf "%s\n" "#define HAVE_SECURITY_PAM_EXT_H 1" >>confdefs.h |
| 8801 |
|
| 8802 |
fi |
| 8803 |
|
| 8804 |
ac_fn_c_check_header_compile "$LINENO" "security/pam_modutil.h" "ac_cv_header_security_pam_modutil_h" "$ac_includes_default" |
| 8805 |
if test "x$ac_cv_header_security_pam_modutil_h" = xyes |
| 8806 |
then : |
| 8807 |
printf "%s\n" "#define HAVE_SECURITY_PAM_MODUTIL_H 1" >>confdefs.h |
| 8808 |
|
| 8809 |
fi |
| 8810 |
|
| 8811 |
|
| 8812 |
# at least one of security/pam_modules.h or pam/pam_modules.h is required |
| 8813 |
if test "x$ac_cv_header_security_pam_modules_h" != "xyes" && \ |
| 8814 |
test "x$ac_cv_header_pam_pam_modules_h" != "xyes" |
| 8815 |
then |
| 8816 |
as_fn_error $? "PAM header files are missing" "$LINENO" 5 |
| 8817 |
fi |
| 8818 |
|
| 8819 |
# find pam library |
| 8820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_get_data" >&5 |
| 8821 |
printf %s "checking for library containing pam_get_data... " >&6; } |
| 8822 |
if test ${ac_cv_search_pam_get_data+y} |
| 8823 |
then : |
| 8824 |
printf %s "(cached) " >&6 |
| 8825 |
else case e in #( |
| 8826 |
e) ac_func_search_save_LIBS=$LIBS |
| 8827 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8828 |
/* end confdefs.h. */ |
| 8829 |
|
| 8830 |
/* Override any GCC internal prototype to avoid an error. |
| 8831 |
Use char because int might match the return type of a GCC |
| 8832 |
builtin and then its argument prototype would still apply. |
| 8833 |
The 'extern "C"' is for builds by C++ compilers; |
| 8834 |
although this is not generally supported in C code supporting it here |
| 8835 |
has little cost and some practical benefit (sr 110532). */ |
| 8836 |
#ifdef __cplusplus |
| 8837 |
extern "C" |
| 8838 |
#endif |
| 8839 |
char pam_get_data (void); |
| 8840 |
int |
| 8841 |
main (void) |
| 8842 |
{ |
| 8843 |
return pam_get_data (); |
| 8844 |
; |
| 8845 |
return 0; |
| 8846 |
} |
| 8847 |
_ACEOF |
| 8848 |
for ac_lib in '' pam |
| 8849 |
do |
| 8850 |
if test -z "$ac_lib"; then |
| 8851 |
ac_res="none required" |
| 8852 |
else |
| 8853 |
ac_res=-l$ac_lib |
| 8854 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8855 |
fi |
| 8856 |
if ac_fn_c_try_link "$LINENO" |
| 8857 |
then : |
| 8858 |
ac_cv_search_pam_get_data=$ac_res |
| 8859 |
fi |
| 8860 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8861 |
conftest$ac_exeext |
| 8862 |
if test ${ac_cv_search_pam_get_data+y} |
| 8863 |
then : |
| 8864 |
break |
| 8865 |
fi |
| 8866 |
done |
| 8867 |
if test ${ac_cv_search_pam_get_data+y} |
| 8868 |
then : |
| 8869 |
|
| 8870 |
else case e in #( |
| 8871 |
e) ac_cv_search_pam_get_data=no ;; |
| 8872 |
esac |
| 8873 |
fi |
| 8874 |
rm conftest.$ac_ext |
| 8875 |
LIBS=$ac_func_search_save_LIBS ;; |
| 8876 |
esac |
| 8877 |
fi |
| 8878 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_get_data" >&5 |
| 8879 |
printf "%s\n" "$ac_cv_search_pam_get_data" >&6; } |
| 8880 |
ac_res=$ac_cv_search_pam_get_data |
| 8881 |
if test "$ac_res" != no |
| 8882 |
then : |
| 8883 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8884 |
|
| 8885 |
else case e in #( |
| 8886 |
e) as_fn_error $? "no PAM library available" "$LINENO" 5 ;; |
| 8887 |
esac |
| 8888 |
fi |
| 8889 |
|
| 8890 |
|
| 8891 |
# replace some PAM functions if they are unavailable |
| 8892 |
ac_fn_c_check_func "$LINENO" "pam_get_authtok" "ac_cv_func_pam_get_authtok" |
| 8893 |
if test "x$ac_cv_func_pam_get_authtok" = xyes |
| 8894 |
then : |
| 8895 |
printf "%s\n" "#define HAVE_PAM_GET_AUTHTOK 1" >>confdefs.h |
| 8896 |
|
| 8897 |
else case e in #( |
| 8898 |
e) case " $LIBOBJS " in |
| 8899 |
*" pam_get_authtok.$ac_objext "* ) ;; |
| 8900 |
*) LIBOBJS="$LIBOBJS pam_get_authtok.$ac_objext" |
| 8901 |
;; |
| 8902 |
esac |
| 8903 |
;; |
| 8904 |
esac |
| 8905 |
fi |
| 8906 |
ac_fn_c_check_func "$LINENO" "pam_prompt" "ac_cv_func_pam_prompt" |
| 8907 |
if test "x$ac_cv_func_pam_prompt" = xyes |
| 8908 |
then : |
| 8909 |
printf "%s\n" "#define HAVE_PAM_PROMPT 1" >>confdefs.h |
| 8910 |
|
| 8911 |
else case e in #( |
| 8912 |
e) case " $LIBOBJS " in |
| 8913 |
*" pam_prompt.$ac_objext "* ) ;; |
| 8914 |
*) LIBOBJS="$LIBOBJS pam_prompt.$ac_objext" |
| 8915 |
;; |
| 8916 |
esac |
| 8917 |
;; |
| 8918 |
esac |
| 8919 |
fi |
| 8920 |
|
| 8921 |
ac_fn_c_check_func "$LINENO" "pam_modutil_getpwnam" "ac_cv_func_pam_modutil_getpwnam" |
| 8922 |
if test "x$ac_cv_func_pam_modutil_getpwnam" = xyes |
| 8923 |
then : |
| 8924 |
printf "%s\n" "#define HAVE_PAM_MODUTIL_GETPWNAM 1" >>confdefs.h |
| 8925 |
|
| 8926 |
fi |
| 8927 |
ac_fn_c_check_func "$LINENO" "pam_syslog" "ac_cv_func_pam_syslog" |
| 8928 |
if test "x$ac_cv_func_pam_syslog" = xyes |
| 8929 |
then : |
| 8930 |
printf "%s\n" "#define HAVE_PAM_SYSLOG 1" >>confdefs.h |
| 8931 |
|
| 8932 |
fi |
| 8933 |
|
| 8934 |
ac_fn_check_decl "$LINENO" "pam_info" "ac_cv_have_decl_pam_info" " |
| 8935 |
#ifdef HAVE_SECURITY_PAM_APPL_H |
| 8936 |
#include <security/pam_appl.h> |
| 8937 |
#endif |
| 8938 |
#ifndef HAVE_PAM_PAM_MODULES_H |
| 8939 |
#include <security/pam_modules.h> |
| 8940 |
#ifdef HAVE_SECURITY_PAM_EXT_H |
| 8941 |
#include <security/pam_ext.h> |
| 8942 |
#endif |
| 8943 |
#else |
| 8944 |
#include <pam/pam_modules.h> |
| 8945 |
#endif |
| 8946 |
#ifdef HAVE_SECURITY_PAM_MODUTIL_H |
| 8947 |
#include <security/pam_modutil.h> |
| 8948 |
#endif |
| 8949 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 8950 |
if test "x$ac_cv_have_decl_pam_info" = xyes |
| 8951 |
then : |
| 8952 |
ac_have_decl=1 |
| 8953 |
else case e in #( |
| 8954 |
e) ac_have_decl=0 ;; |
| 8955 |
esac |
| 8956 |
fi |
| 8957 |
printf "%s\n" "#define HAVE_DECL_PAM_INFO $ac_have_decl" >>confdefs.h |
| 8958 |
ac_fn_check_decl "$LINENO" "pam_error" "ac_cv_have_decl_pam_error" " |
| 8959 |
#ifdef HAVE_SECURITY_PAM_APPL_H |
| 8960 |
#include <security/pam_appl.h> |
| 8961 |
#endif |
| 8962 |
#ifndef HAVE_PAM_PAM_MODULES_H |
| 8963 |
#include <security/pam_modules.h> |
| 8964 |
#ifdef HAVE_SECURITY_PAM_EXT_H |
| 8965 |
#include <security/pam_ext.h> |
| 8966 |
#endif |
| 8967 |
#else |
| 8968 |
#include <pam/pam_modules.h> |
| 8969 |
#endif |
| 8970 |
#ifdef HAVE_SECURITY_PAM_MODUTIL_H |
| 8971 |
#include <security/pam_modutil.h> |
| 8972 |
#endif |
| 8973 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 8974 |
if test "x$ac_cv_have_decl_pam_error" = xyes |
| 8975 |
then : |
| 8976 |
ac_have_decl=1 |
| 8977 |
else case e in #( |
| 8978 |
e) ac_have_decl=0 ;; |
| 8979 |
esac |
| 8980 |
fi |
| 8981 |
printf "%s\n" "#define HAVE_DECL_PAM_ERROR $ac_have_decl" >>confdefs.h |
| 8982 |
|
| 8983 |
|
| 8984 |
# find out how to link the library |
| 8985 |
pam_ldap_so_LINK="\$(CCLD) \$(AM_CFLAGS) \$(CFLAGS) \$(pam_ldap_so_LDFLAGS) \$(LDFLAGS) -o \$@" |
| 8986 |
case "$target_os" in |
| 8987 |
solaris*) |
| 8988 |
if test "x$GCC" = xyes |
| 8989 |
then |
| 8990 |
pam_ldap_so_LINK="/usr/ccs/bin/ld -Bdirect -z nodelete -Bdynamic -M \$(srcdir)/pam_ldap.map -G -o \$@" |
| 8991 |
else |
| 8992 |
pam_ldap_so_LDFLAGS="-shared -Wl,-Bdirect -Wl,-z,nodelete -Wl,-Bdynamic -Wl,-M,\$(srcdir)/pam_ldap.map -Wl,-G" |
| 8993 |
fi |
| 8994 |
;; |
| 8995 |
*) |
| 8996 |
pam_ldap_so_LDFLAGS="-shared -Wl,--version-script,\$(srcdir)/pam_ldap.map" |
| 8997 |
;; |
| 8998 |
esac |
| 8999 |
|
| 9000 |
|
| 9001 |
|
| 9002 |
# check argument type of pam_get_item() |
| 9003 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking argument type of pam_get_item" >&5 |
| 9004 |
printf %s "checking argument type of pam_get_item... " >&6; } |
| 9005 |
if test ${nss_pam_ldapd_cv_pam_get_item_arg3_type+y} |
| 9006 |
then : |
| 9007 |
printf %s "(cached) " >&6 |
| 9008 |
else case e in #( |
| 9009 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9010 |
/* end confdefs.h. */ |
| 9011 |
|
| 9012 |
#ifdef HAVE_SECURITY_PAM_APPL_H |
| 9013 |
#include <security/pam_appl.h> |
| 9014 |
#endif |
| 9015 |
#ifndef HAVE_PAM_PAM_MODULES_H |
| 9016 |
#include <security/pam_modules.h> |
| 9017 |
#ifdef HAVE_SECURITY_PAM_EXT_H |
| 9018 |
#include <security/pam_ext.h> |
| 9019 |
#endif |
| 9020 |
#else |
| 9021 |
#include <pam/pam_modules.h> |
| 9022 |
#endif |
| 9023 |
#ifdef HAVE_SECURITY_PAM_MODUTIL_H |
| 9024 |
#include <security/pam_modutil.h> |
| 9025 |
#endif |
| 9026 |
extern int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item); |
| 9027 |
|
| 9028 |
int |
| 9029 |
main (void) |
| 9030 |
{ |
| 9031 |
|
| 9032 |
; |
| 9033 |
return 0; |
| 9034 |
} |
| 9035 |
_ACEOF |
| 9036 |
if ac_fn_c_try_compile "$LINENO" |
| 9037 |
then : |
| 9038 |
nss_pam_ldapd_cv_pam_get_item_arg3_type="const void **" |
| 9039 |
else case e in #( |
| 9040 |
e) nss_pam_ldapd_cv_pam_get_item_arg3_type="void **" ;; |
| 9041 |
esac |
| 9042 |
fi |
| 9043 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9044 |
esac |
| 9045 |
fi |
| 9046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nss_pam_ldapd_cv_pam_get_item_arg3_type" >&5 |
| 9047 |
printf "%s\n" "$nss_pam_ldapd_cv_pam_get_item_arg3_type" >&6; } |
| 9048 |
PAM_ITEM_CONST="" |
| 9049 |
if test "$nss_pam_ldapd_cv_pam_get_item_arg3_type" = "const void **" |
| 9050 |
then |
| 9051 |
PAM_ITEM_CONST="const" |
| 9052 |
fi |
| 9053 |
|
| 9054 |
printf "%s\n" "#define PAM_ITEM_CONST $PAM_ITEM_CONST" >>confdefs.h |
| 9055 |
|
| 9056 |
|
| 9057 |
# restore CFLAGS and LIBS |
| 9058 |
CFLAGS="$pam_save_CFLAGS" |
| 9059 |
LIBS="$pam_save_LIBS" |
| 9060 |
fi |
| 9061 |
|
| 9062 |
# utils-specific tests |
| 9063 |
if test "x$enable_utils" = "xyes" |
| 9064 |
then |
| 9065 |
# check Python interpreter |
| 9066 |
|
| 9067 |
|
| 9068 |
|
| 9069 |
|
| 9070 |
|
| 9071 |
|
| 9072 |
if test -n "$PYTHON"; then |
| 9073 |
# If the user set $PYTHON, use it and don't search something else. |
| 9074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5 |
| 9075 |
printf %s "checking whether $PYTHON version is >= 2.7... " >&6; } |
| 9076 |
prog="import sys |
| 9077 |
# split strings by '.' and convert to numeric. Append some zeros |
| 9078 |
# because we need at least 4 digits for the hex conversion. |
| 9079 |
# map returns an iterator in Python 3.0 and a list in 2.x |
| 9080 |
minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] |
| 9081 |
minverhex = 0 |
| 9082 |
# xrange is not present in Python 3.0 and range returns an iterator |
| 9083 |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 9084 |
sys.exit(sys.hexversion < minverhex)" |
| 9085 |
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 |
| 9086 |
($PYTHON -c "$prog") >&5 2>&5 |
| 9087 |
ac_status=$? |
| 9088 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9089 |
(exit $ac_status); } |
| 9090 |
then : |
| 9091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9092 |
printf "%s\n" "yes" >&6; } |
| 9093 |
else case e in #( |
| 9094 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9095 |
printf "%s\n" "no" >&6; } |
| 9096 |
as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; |
| 9097 |
esac |
| 9098 |
fi |
| 9099 |
am_display_PYTHON=$PYTHON |
| 9100 |
else |
| 9101 |
# Otherwise, try each interpreter until we find one that satisfies |
| 9102 |
# VERSION. |
| 9103 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5 |
| 9104 |
printf %s "checking for a Python interpreter with version >= 2.7... " >&6; } |
| 9105 |
if test ${am_cv_pathless_PYTHON+y} |
| 9106 |
then : |
| 9107 |
printf %s "(cached) " >&6 |
| 9108 |
else case e in #( |
| 9109 |
e) |
| 9110 |
for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
| 9111 |
test "$am_cv_pathless_PYTHON" = none && break |
| 9112 |
prog="import sys |
| 9113 |
# split strings by '.' and convert to numeric. Append some zeros |
| 9114 |
# because we need at least 4 digits for the hex conversion. |
| 9115 |
# map returns an iterator in Python 3.0 and a list in 2.x |
| 9116 |
minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] |
| 9117 |
minverhex = 0 |
| 9118 |
# xrange is not present in Python 3.0 and range returns an iterator |
| 9119 |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 9120 |
sys.exit(sys.hexversion < minverhex)" |
| 9121 |
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 |
| 9122 |
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 |
| 9123 |
ac_status=$? |
| 9124 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9125 |
(exit $ac_status); } |
| 9126 |
then : |
| 9127 |
break |
| 9128 |
fi |
| 9129 |
done ;; |
| 9130 |
esac |
| 9131 |
fi |
| 9132 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
| 9133 |
printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } |
| 9134 |
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
| 9135 |
if test "$am_cv_pathless_PYTHON" = none; then |
| 9136 |
PYTHON=: |
| 9137 |
else |
| 9138 |
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. |
| 9139 |
set dummy $am_cv_pathless_PYTHON; ac_word=$2 |
| 9140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9141 |
printf %s "checking for $ac_word... " >&6; } |
| 9142 |
if test ${ac_cv_path_PYTHON+y} |
| 9143 |
then : |
| 9144 |
printf %s "(cached) " >&6 |
| 9145 |
else case e in #( |
| 9146 |
e) case $PYTHON in |
| 9147 |
[\\/]* | ?:[\\/]*) |
| 9148 |
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 9149 |
;; |
| 9150 |
*) |
| 9151 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9152 |
for as_dir in $PATH |
| 9153 |
do |
| 9154 |
IFS=$as_save_IFS |
| 9155 |
case $as_dir in #((( |
| 9156 |
'') as_dir=./ ;; |
| 9157 |
*/) ;; |
| 9158 |
*) as_dir=$as_dir/ ;; |
| 9159 |
esac |
| 9160 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9161 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9162 |
ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" |
| 9163 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9164 |
break 2 |
| 9165 |
fi |
| 9166 |
done |
| 9167 |
done |
| 9168 |
IFS=$as_save_IFS |
| 9169 |
|
| 9170 |
;; |
| 9171 |
esac ;; |
| 9172 |
esac |
| 9173 |
fi |
| 9174 |
PYTHON=$ac_cv_path_PYTHON |
| 9175 |
if test -n "$PYTHON"; then |
| 9176 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 9177 |
printf "%s\n" "$PYTHON" >&6; } |
| 9178 |
else |
| 9179 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9180 |
printf "%s\n" "no" >&6; } |
| 9181 |
fi |
| 9182 |
|
| 9183 |
|
| 9184 |
fi |
| 9185 |
am_display_PYTHON=$am_cv_pathless_PYTHON |
| 9186 |
fi |
| 9187 |
|
| 9188 |
|
| 9189 |
if test "$PYTHON" = :; then |
| 9190 |
as_fn_error $? "Python is required" "$LINENO" 5 |
| 9191 |
else |
| 9192 |
|
| 9193 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
| 9194 |
printf %s "checking for $am_display_PYTHON version... " >&6; } |
| 9195 |
if test ${am_cv_python_version+y} |
| 9196 |
then : |
| 9197 |
printf %s "(cached) " >&6 |
| 9198 |
else case e in #( |
| 9199 |
e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; |
| 9200 |
esac |
| 9201 |
fi |
| 9202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
| 9203 |
printf "%s\n" "$am_cv_python_version" >&6; } |
| 9204 |
PYTHON_VERSION=$am_cv_python_version |
| 9205 |
|
| 9206 |
|
| 9207 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
| 9208 |
printf %s "checking for $am_display_PYTHON platform... " >&6; } |
| 9209 |
if test ${am_cv_python_platform+y} |
| 9210 |
then : |
| 9211 |
printf %s "(cached) " >&6 |
| 9212 |
else case e in #( |
| 9213 |
e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; |
| 9214 |
esac |
| 9215 |
fi |
| 9216 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 |
| 9217 |
printf "%s\n" "$am_cv_python_platform" >&6; } |
| 9218 |
PYTHON_PLATFORM=$am_cv_python_platform |
| 9219 |
|
| 9220 |
|
| 9221 |
if test "x$prefix" = xNONE; then |
| 9222 |
am__usable_prefix=$ac_default_prefix |
| 9223 |
else |
| 9224 |
am__usable_prefix=$prefix |
| 9225 |
fi |
| 9226 |
|
| 9227 |
# Allow user to request using sys.* values from Python, |
| 9228 |
# instead of the GNU $prefix values. |
| 9229 |
|
| 9230 |
# Check whether --with-python-sys-prefix was given. |
| 9231 |
if test ${with_python_sys_prefix+y} |
| 9232 |
then : |
| 9233 |
withval=$with_python_sys_prefix; am_use_python_sys=: |
| 9234 |
else case e in #( |
| 9235 |
e) am_use_python_sys=false ;; |
| 9236 |
esac |
| 9237 |
fi |
| 9238 |
|
| 9239 |
|
| 9240 |
# Allow user to override whatever the default Python prefix is. |
| 9241 |
|
| 9242 |
# Check whether --with-python_prefix was given. |
| 9243 |
if test ${with_python_prefix+y} |
| 9244 |
then : |
| 9245 |
withval=$with_python_prefix; am_python_prefix_subst=$withval |
| 9246 |
am_cv_python_prefix=$withval |
| 9247 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 |
| 9248 |
printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } |
| 9249 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 |
| 9250 |
printf "%s\n" "$am_cv_python_prefix" >&6; } |
| 9251 |
else case e in #( |
| 9252 |
e) |
| 9253 |
if $am_use_python_sys; then |
| 9254 |
# using python sys.prefix value, not GNU |
| 9255 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 |
| 9256 |
printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } |
| 9257 |
if test ${am_cv_python_prefix+y} |
| 9258 |
then : |
| 9259 |
printf %s "(cached) " >&6 |
| 9260 |
else case e in #( |
| 9261 |
e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; |
| 9262 |
esac |
| 9263 |
fi |
| 9264 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 |
| 9265 |
printf "%s\n" "$am_cv_python_prefix" >&6; } |
| 9266 |
|
| 9267 |
case $am_cv_python_prefix in |
| 9268 |
$am__usable_prefix*) |
| 9269 |
am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` |
| 9270 |
am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` |
| 9271 |
;; |
| 9272 |
*) |
| 9273 |
am_python_prefix_subst=$am_cv_python_prefix |
| 9274 |
;; |
| 9275 |
esac |
| 9276 |
else # using GNU prefix value, not python sys.prefix |
| 9277 |
am_python_prefix_subst='${prefix}' |
| 9278 |
am_python_prefix=$am_python_prefix_subst |
| 9279 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 |
| 9280 |
printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } |
| 9281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 |
| 9282 |
printf "%s\n" "$am_python_prefix" >&6; } |
| 9283 |
fi ;; |
| 9284 |
esac |
| 9285 |
fi |
| 9286 |
|
| 9287 |
# Substituting python_prefix_subst value. |
| 9288 |
PYTHON_PREFIX=$am_python_prefix_subst |
| 9289 |
|
| 9290 |
|
| 9291 |
# emacs-page Now do it all over again for Python exec_prefix, but with yet |
| 9292 |
# another conditional: fall back to regular prefix if that was specified. |
| 9293 |
|
| 9294 |
# Check whether --with-python_exec_prefix was given. |
| 9295 |
if test ${with_python_exec_prefix+y} |
| 9296 |
then : |
| 9297 |
withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval |
| 9298 |
am_cv_python_exec_prefix=$withval |
| 9299 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 |
| 9300 |
printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } |
| 9301 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 9302 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 9303 |
else case e in #( |
| 9304 |
e) |
| 9305 |
# no explicit --with-python_exec_prefix, but if |
| 9306 |
# --with-python_prefix was given, use its value for python_exec_prefix too. |
| 9307 |
if test -n "$with_python_prefix" |
| 9308 |
then : |
| 9309 |
am_python_exec_prefix_subst=$with_python_prefix |
| 9310 |
am_cv_python_exec_prefix=$with_python_prefix |
| 9311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 |
| 9312 |
printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } |
| 9313 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 9314 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 9315 |
else case e in #( |
| 9316 |
e) |
| 9317 |
# Set am__usable_exec_prefix whether using GNU or Python values, |
| 9318 |
# since we use that variable for pyexecdir. |
| 9319 |
if test "x$exec_prefix" = xNONE; then |
| 9320 |
am__usable_exec_prefix=$am__usable_prefix |
| 9321 |
else |
| 9322 |
am__usable_exec_prefix=$exec_prefix |
| 9323 |
fi |
| 9324 |
# |
| 9325 |
if $am_use_python_sys; then # using python sys.exec_prefix, not GNU |
| 9326 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 |
| 9327 |
printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } |
| 9328 |
if test ${am_cv_python_exec_prefix+y} |
| 9329 |
then : |
| 9330 |
printf %s "(cached) " >&6 |
| 9331 |
else case e in #( |
| 9332 |
e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; |
| 9333 |
esac |
| 9334 |
fi |
| 9335 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 9336 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 9337 |
case $am_cv_python_exec_prefix in |
| 9338 |
$am__usable_exec_prefix*) |
| 9339 |
am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` |
| 9340 |
am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` |
| 9341 |
;; |
| 9342 |
*) |
| 9343 |
am_python_exec_prefix_subst=$am_cv_python_exec_prefix |
| 9344 |
;; |
| 9345 |
esac |
| 9346 |
else # using GNU $exec_prefix, not python sys.exec_prefix |
| 9347 |
am_python_exec_prefix_subst='${exec_prefix}' |
| 9348 |
am_python_exec_prefix=$am_python_exec_prefix_subst |
| 9349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 |
| 9350 |
printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } |
| 9351 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 |
| 9352 |
printf "%s\n" "$am_python_exec_prefix" >&6; } |
| 9353 |
fi ;; |
| 9354 |
esac |
| 9355 |
fi ;; |
| 9356 |
esac |
| 9357 |
fi |
| 9358 |
|
| 9359 |
# Substituting python_exec_prefix_subst. |
| 9360 |
PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst |
| 9361 |
|
| 9362 |
|
| 9363 |
# Factor out some code duplication into this shell variable. |
| 9364 |
am_python_setup_sysconfig="\ |
| 9365 |
import sys |
| 9366 |
# Prefer sysconfig over distutils.sysconfig, for better compatibility |
| 9367 |
# with python 3.x. See automake bug#10227. |
| 9368 |
try: |
| 9369 |
import sysconfig |
| 9370 |
except ImportError: |
| 9371 |
can_use_sysconfig = 0 |
| 9372 |
else: |
| 9373 |
can_use_sysconfig = 1 |
| 9374 |
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
| 9375 |
# <https://github.com/pypa/virtualenv/issues/118> |
| 9376 |
try: |
| 9377 |
from platform import python_implementation |
| 9378 |
if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
| 9379 |
can_use_sysconfig = 0 |
| 9380 |
except ImportError: |
| 9381 |
pass" # end of am_python_setup_sysconfig |
| 9382 |
|
| 9383 |
# More repeated code, for figuring out the installation scheme to use. |
| 9384 |
am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): |
| 9385 |
scheme = sysconfig.get_default_scheme() |
| 9386 |
else: |
| 9387 |
scheme = sysconfig._get_default_scheme() |
| 9388 |
if scheme == 'posix_local': |
| 9389 |
if '$am_py_prefix' == '/usr': |
| 9390 |
scheme = 'deb_system' # should only happen during Debian package builds |
| 9391 |
else: |
| 9392 |
# Debian's default scheme installs to /usr/local/ but we want to |
| 9393 |
# follow the prefix, as we always have. |
| 9394 |
# See bugs#54412, #64837, et al. |
| 9395 |
scheme = 'posix_prefix'" # end of am_python_setup_scheme |
| 9396 |
|
| 9397 |
|
| 9398 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 |
| 9399 |
printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } |
| 9400 |
if test ${am_cv_python_pythondir+y} |
| 9401 |
then : |
| 9402 |
printf %s "(cached) " >&6 |
| 9403 |
else case e in #( |
| 9404 |
e) if test "x$am_cv_python_prefix" = x; then |
| 9405 |
am_py_prefix=$am__usable_prefix |
| 9406 |
else |
| 9407 |
am_py_prefix=$am_cv_python_prefix |
| 9408 |
fi |
| 9409 |
am_cv_python_pythondir=`$PYTHON -c " |
| 9410 |
$am_python_setup_sysconfig |
| 9411 |
if can_use_sysconfig: |
| 9412 |
try: |
| 9413 |
$am_python_setup_scheme |
| 9414 |
sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) |
| 9415 |
except: |
| 9416 |
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
| 9417 |
else: |
| 9418 |
from distutils import sysconfig |
| 9419 |
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
| 9420 |
sys.stdout.write(sitedir)"` |
| 9421 |
# |
| 9422 |
case $am_cv_python_pythondir in |
| 9423 |
$am_py_prefix*) |
| 9424 |
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` |
| 9425 |
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` |
| 9426 |
;; |
| 9427 |
*) |
| 9428 |
case $am_py_prefix in |
| 9429 |
/usr|/System*) ;; |
| 9430 |
*) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" |
| 9431 |
;; |
| 9432 |
esac |
| 9433 |
;; |
| 9434 |
esac |
| 9435 |
;; |
| 9436 |
esac |
| 9437 |
fi |
| 9438 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
| 9439 |
printf "%s\n" "$am_cv_python_pythondir" >&6; } |
| 9440 |
pythondir=$am_cv_python_pythondir |
| 9441 |
|
| 9442 |
|
| 9443 |
pkgpythondir=\${pythondir}/$PACKAGE |
| 9444 |
|
| 9445 |
|
| 9446 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 |
| 9447 |
printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } |
| 9448 |
if test ${am_cv_python_pyexecdir+y} |
| 9449 |
then : |
| 9450 |
printf %s "(cached) " >&6 |
| 9451 |
else case e in #( |
| 9452 |
e) if test "x$am_cv_python_exec_prefix" = x; then |
| 9453 |
am_py_exec_prefix=$am__usable_exec_prefix |
| 9454 |
else |
| 9455 |
am_py_exec_prefix=$am_cv_python_exec_prefix |
| 9456 |
fi |
| 9457 |
am_cv_python_pyexecdir=`$PYTHON -c " |
| 9458 |
$am_python_setup_sysconfig |
| 9459 |
if can_use_sysconfig: |
| 9460 |
try: |
| 9461 |
$am_python_setup_scheme |
| 9462 |
sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) |
| 9463 |
except: |
| 9464 |
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) |
| 9465 |
else: |
| 9466 |
from distutils import sysconfig |
| 9467 |
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') |
| 9468 |
sys.stdout.write(sitedir)"` |
| 9469 |
# |
| 9470 |
case $am_cv_python_pyexecdir in |
| 9471 |
$am_py_exec_prefix*) |
| 9472 |
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |
| 9473 |
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` |
| 9474 |
;; |
| 9475 |
*) |
| 9476 |
case $am_py_exec_prefix in |
| 9477 |
/usr|/System*) ;; |
| 9478 |
*) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" |
| 9479 |
;; |
| 9480 |
esac |
| 9481 |
;; |
| 9482 |
esac |
| 9483 |
;; |
| 9484 |
esac |
| 9485 |
fi |
| 9486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
| 9487 |
printf "%s\n" "$am_cv_python_pyexecdir" >&6; } |
| 9488 |
pyexecdir=$am_cv_python_pyexecdir |
| 9489 |
|
| 9490 |
|
| 9491 |
pkgpyexecdir=\${pyexecdir}/$PACKAGE |
| 9492 |
|
| 9493 |
|
| 9494 |
|
| 9495 |
fi |
| 9496 |
|
| 9497 |
|
| 9498 |
if test -z $PYTHON; |
| 9499 |
then |
| 9500 |
PYTHON="python" |
| 9501 |
fi |
| 9502 |
PYTHON_NAME=`basename $PYTHON` |
| 9503 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: argparse" >&5 |
| 9504 |
printf %s "checking $PYTHON_NAME module: argparse... " >&6; } |
| 9505 |
$PYTHON -c "import argparse" 2>/dev/null |
| 9506 |
if test $? -eq 0; |
| 9507 |
then |
| 9508 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9509 |
printf "%s\n" "yes" >&6; } |
| 9510 |
eval HAVE_PYMOD_ARGPARSE=yes |
| 9511 |
else |
| 9512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9513 |
printf "%s\n" "no" >&6; } |
| 9514 |
eval HAVE_PYMOD_ARGPARSE=no |
| 9515 |
# |
| 9516 |
if test -n "" |
| 9517 |
then |
| 9518 |
as_fn_error $? "failed to find required module argparse" "$LINENO" 5 |
| 9519 |
exit 1 |
| 9520 |
fi |
| 9521 |
fi |
| 9522 |
|
| 9523 |
if test "x$HAVE_PYMOD_ARGPARSE" != "xyes" |
| 9524 |
then |
| 9525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5 |
| 9526 |
printf "%s\n" "$as_me: WARNING: Required Python modules missing" >&2;} |
| 9527 |
fi |
| 9528 |
fi |
| 9529 |
|
| 9530 |
# nslcd daemon-specific tests |
| 9531 |
if test "x$enable_nslcd" = "xyes" |
| 9532 |
then |
| 9533 |
# save CFLAGS and LIBS to restore later |
| 9534 |
nslcd_save_CFLAGS="$CFLAGS" |
| 9535 |
nslcd_save_LIBS="$LIBS" |
| 9536 |
|
| 9537 |
# check header files |
| 9538 |
ac_fn_c_check_header_compile "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" |
| 9539 |
if test "x$ac_cv_header_lber_h" = xyes |
| 9540 |
then : |
| 9541 |
printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h |
| 9542 |
|
| 9543 |
fi |
| 9544 |
|
| 9545 |
for ac_header in ldap.h |
| 9546 |
do : |
| 9547 |
ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" " |
| 9548 |
#if HAVE_LBER_H |
| 9549 |
#include <lber.h> |
| 9550 |
#endif |
| 9551 |
|
| 9552 |
" |
| 9553 |
if test "x$ac_cv_header_ldap_h" = xyes |
| 9554 |
then : |
| 9555 |
printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h |
| 9556 |
|
| 9557 |
else case e in #( |
| 9558 |
e) test "x$enable_nslcd" = "xyes" && as_fn_error $? "could not locate <ldap.h>" "$LINENO" 5 ;; |
| 9559 |
esac |
| 9560 |
fi |
| 9561 |
|
| 9562 |
done |
| 9563 |
ac_fn_c_check_header_compile "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default" |
| 9564 |
if test "x$ac_cv_header_ldap_ssl_h" = xyes |
| 9565 |
then : |
| 9566 |
printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h |
| 9567 |
|
| 9568 |
fi |
| 9569 |
|
| 9570 |
ac_fn_c_check_header_compile "$LINENO" "gssldap.h" "ac_cv_header_gssldap_h" "$ac_includes_default" |
| 9571 |
if test "x$ac_cv_header_gssldap_h" = xyes |
| 9572 |
then : |
| 9573 |
printf "%s\n" "#define HAVE_GSSLDAP_H 1" >>confdefs.h |
| 9574 |
|
| 9575 |
fi |
| 9576 |
|
| 9577 |
if test "x$enable_sasl" = "xyes" |
| 9578 |
then |
| 9579 |
ac_fn_c_check_header_compile "$LINENO" "sasl.h" "ac_cv_header_sasl_h" "$ac_includes_default" |
| 9580 |
if test "x$ac_cv_header_sasl_h" = xyes |
| 9581 |
then : |
| 9582 |
printf "%s\n" "#define HAVE_SASL_H 1" >>confdefs.h |
| 9583 |
|
| 9584 |
fi |
| 9585 |
ac_fn_c_check_header_compile "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" |
| 9586 |
if test "x$ac_cv_header_sasl_sasl_h" = xyes |
| 9587 |
then : |
| 9588 |
printf "%s\n" "#define HAVE_SASL_SASL_H 1" >>confdefs.h |
| 9589 |
|
| 9590 |
fi |
| 9591 |
|
| 9592 |
ac_fn_c_check_header_compile "$LINENO" "gsssasl.h" "ac_cv_header_gsssasl_h" "$ac_includes_default" |
| 9593 |
if test "x$ac_cv_header_gsssasl_h" = xyes |
| 9594 |
then : |
| 9595 |
printf "%s\n" "#define HAVE_GSSSASL_H 1" >>confdefs.h |
| 9596 |
|
| 9597 |
fi |
| 9598 |
|
| 9599 |
fi |
| 9600 |
if test "x$enable_kerberos" = "xyes" |
| 9601 |
then |
| 9602 |
ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" |
| 9603 |
if test "x$ac_cv_header_gssapi_gssapi_h" = xyes |
| 9604 |
then : |
| 9605 |
printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h |
| 9606 |
|
| 9607 |
fi |
| 9608 |
ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default" |
| 9609 |
if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes |
| 9610 |
then : |
| 9611 |
printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_GENERIC_H 1" >>confdefs.h |
| 9612 |
|
| 9613 |
fi |
| 9614 |
ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default" |
| 9615 |
if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes |
| 9616 |
then : |
| 9617 |
printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_KRB5_H 1" >>confdefs.h |
| 9618 |
|
| 9619 |
fi |
| 9620 |
ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 9621 |
if test "x$ac_cv_header_gssapi_h" = xyes |
| 9622 |
then : |
| 9623 |
printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h |
| 9624 |
|
| 9625 |
fi |
| 9626 |
ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" |
| 9627 |
if test "x$ac_cv_header_krb5_h" = xyes |
| 9628 |
then : |
| 9629 |
printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h |
| 9630 |
|
| 9631 |
fi |
| 9632 |
|
| 9633 |
fi |
| 9634 |
ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" |
| 9635 |
if test "x$ac_cv_header_regex_h" = xyes |
| 9636 |
then : |
| 9637 |
printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h |
| 9638 |
|
| 9639 |
fi |
| 9640 |
|
| 9641 |
|
| 9642 |
# checks for availability of system libraries for nslcd |
| 9643 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 9644 |
printf %s "checking for library containing gethostbyname... " >&6; } |
| 9645 |
if test ${ac_cv_search_gethostbyname+y} |
| 9646 |
then : |
| 9647 |
printf %s "(cached) " >&6 |
| 9648 |
else case e in #( |
| 9649 |
e) ac_func_search_save_LIBS=$LIBS |
| 9650 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9651 |
/* end confdefs.h. */ |
| 9652 |
|
| 9653 |
/* Override any GCC internal prototype to avoid an error. |
| 9654 |
Use char because int might match the return type of a GCC |
| 9655 |
builtin and then its argument prototype would still apply. |
| 9656 |
The 'extern "C"' is for builds by C++ compilers; |
| 9657 |
although this is not generally supported in C code supporting it here |
| 9658 |
has little cost and some practical benefit (sr 110532). */ |
| 9659 |
#ifdef __cplusplus |
| 9660 |
extern "C" |
| 9661 |
#endif |
| 9662 |
char gethostbyname (void); |
| 9663 |
int |
| 9664 |
main (void) |
| 9665 |
{ |
| 9666 |
return gethostbyname (); |
| 9667 |
; |
| 9668 |
return 0; |
| 9669 |
} |
| 9670 |
_ACEOF |
| 9671 |
for ac_lib in '' nsl socket |
| 9672 |
do |
| 9673 |
if test -z "$ac_lib"; then |
| 9674 |
ac_res="none required" |
| 9675 |
else |
| 9676 |
ac_res=-l$ac_lib |
| 9677 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9678 |
fi |
| 9679 |
if ac_fn_c_try_link "$LINENO" |
| 9680 |
then : |
| 9681 |
ac_cv_search_gethostbyname=$ac_res |
| 9682 |
fi |
| 9683 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9684 |
conftest$ac_exeext |
| 9685 |
if test ${ac_cv_search_gethostbyname+y} |
| 9686 |
then : |
| 9687 |
break |
| 9688 |
fi |
| 9689 |
done |
| 9690 |
if test ${ac_cv_search_gethostbyname+y} |
| 9691 |
then : |
| 9692 |
|
| 9693 |
else case e in #( |
| 9694 |
e) ac_cv_search_gethostbyname=no ;; |
| 9695 |
esac |
| 9696 |
fi |
| 9697 |
rm conftest.$ac_ext |
| 9698 |
LIBS=$ac_func_search_save_LIBS ;; |
| 9699 |
esac |
| 9700 |
fi |
| 9701 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 9702 |
printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
| 9703 |
ac_res=$ac_cv_search_gethostbyname |
| 9704 |
if test "$ac_res" != no |
| 9705 |
then : |
| 9706 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9707 |
|
| 9708 |
fi |
| 9709 |
|
| 9710 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 |
| 9711 |
printf %s "checking for library containing hstrerror... " >&6; } |
| 9712 |
if test ${ac_cv_search_hstrerror+y} |
| 9713 |
then : |
| 9714 |
printf %s "(cached) " >&6 |
| 9715 |
else case e in #( |
| 9716 |
e) ac_func_search_save_LIBS=$LIBS |
| 9717 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9718 |
/* end confdefs.h. */ |
| 9719 |
|
| 9720 |
/* Override any GCC internal prototype to avoid an error. |
| 9721 |
Use char because int might match the return type of a GCC |
| 9722 |
builtin and then its argument prototype would still apply. |
| 9723 |
The 'extern "C"' is for builds by C++ compilers; |
| 9724 |
although this is not generally supported in C code supporting it here |
| 9725 |
has little cost and some practical benefit (sr 110532). */ |
| 9726 |
#ifdef __cplusplus |
| 9727 |
extern "C" |
| 9728 |
#endif |
| 9729 |
char hstrerror (void); |
| 9730 |
int |
| 9731 |
main (void) |
| 9732 |
{ |
| 9733 |
return hstrerror (); |
| 9734 |
; |
| 9735 |
return 0; |
| 9736 |
} |
| 9737 |
_ACEOF |
| 9738 |
for ac_lib in '' resolv |
| 9739 |
do |
| 9740 |
if test -z "$ac_lib"; then |
| 9741 |
ac_res="none required" |
| 9742 |
else |
| 9743 |
ac_res=-l$ac_lib |
| 9744 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9745 |
fi |
| 9746 |
if ac_fn_c_try_link "$LINENO" |
| 9747 |
then : |
| 9748 |
ac_cv_search_hstrerror=$ac_res |
| 9749 |
fi |
| 9750 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9751 |
conftest$ac_exeext |
| 9752 |
if test ${ac_cv_search_hstrerror+y} |
| 9753 |
then : |
| 9754 |
break |
| 9755 |
fi |
| 9756 |
done |
| 9757 |
if test ${ac_cv_search_hstrerror+y} |
| 9758 |
then : |
| 9759 |
|
| 9760 |
else case e in #( |
| 9761 |
e) ac_cv_search_hstrerror=no ;; |
| 9762 |
esac |
| 9763 |
fi |
| 9764 |
rm conftest.$ac_ext |
| 9765 |
LIBS=$ac_func_search_save_LIBS ;; |
| 9766 |
esac |
| 9767 |
fi |
| 9768 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 |
| 9769 |
printf "%s\n" "$ac_cv_search_hstrerror" >&6; } |
| 9770 |
ac_res=$ac_cv_search_hstrerror |
| 9771 |
if test "$ac_res" != no |
| 9772 |
then : |
| 9773 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9774 |
|
| 9775 |
fi |
| 9776 |
|
| 9777 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 9778 |
printf %s "checking for library containing dlopen... " >&6; } |
| 9779 |
if test ${ac_cv_search_dlopen+y} |
| 9780 |
then : |
| 9781 |
printf %s "(cached) " >&6 |
| 9782 |
else case e in #( |
| 9783 |
e) ac_func_search_save_LIBS=$LIBS |
| 9784 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9785 |
/* end confdefs.h. */ |
| 9786 |
|
| 9787 |
/* Override any GCC internal prototype to avoid an error. |
| 9788 |
Use char because int might match the return type of a GCC |
| 9789 |
builtin and then its argument prototype would still apply. |
| 9790 |
The 'extern "C"' is for builds by C++ compilers; |
| 9791 |
although this is not generally supported in C code supporting it here |
| 9792 |
has little cost and some practical benefit (sr 110532). */ |
| 9793 |
#ifdef __cplusplus |
| 9794 |
extern "C" |
| 9795 |
#endif |
| 9796 |
char dlopen (void); |
| 9797 |
int |
| 9798 |
main (void) |
| 9799 |
{ |
| 9800 |
return dlopen (); |
| 9801 |
; |
| 9802 |
return 0; |
| 9803 |
} |
| 9804 |
_ACEOF |
| 9805 |
for ac_lib in '' dl |
| 9806 |
do |
| 9807 |
if test -z "$ac_lib"; then |
| 9808 |
ac_res="none required" |
| 9809 |
else |
| 9810 |
ac_res=-l$ac_lib |
| 9811 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9812 |
fi |
| 9813 |
if ac_fn_c_try_link "$LINENO" |
| 9814 |
then : |
| 9815 |
ac_cv_search_dlopen=$ac_res |
| 9816 |
fi |
| 9817 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9818 |
conftest$ac_exeext |
| 9819 |
if test ${ac_cv_search_dlopen+y} |
| 9820 |
then : |
| 9821 |
break |
| 9822 |
fi |
| 9823 |
done |
| 9824 |
if test ${ac_cv_search_dlopen+y} |
| 9825 |
then : |
| 9826 |
|
| 9827 |
else case e in #( |
| 9828 |
e) ac_cv_search_dlopen=no ;; |
| 9829 |
esac |
| 9830 |
fi |
| 9831 |
rm conftest.$ac_ext |
| 9832 |
LIBS=$ac_func_search_save_LIBS ;; |
| 9833 |
esac |
| 9834 |
fi |
| 9835 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 9836 |
printf "%s\n" "$ac_cv_search_dlopen" >&6; } |
| 9837 |
ac_res=$ac_cv_search_dlopen |
| 9838 |
if test "$ac_res" != no |
| 9839 |
then : |
| 9840 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9841 |
|
| 9842 |
fi |
| 9843 |
|
| 9844 |
|
| 9845 |
# check for availability of functions |
| 9846 |
ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" |
| 9847 |
if test "x$ac_cv_func_initgroups" = xyes |
| 9848 |
then : |
| 9849 |
printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h |
| 9850 |
|
| 9851 |
fi |
| 9852 |
ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups" |
| 9853 |
if test "x$ac_cv_func_setgroups" = xyes |
| 9854 |
then : |
| 9855 |
printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h |
| 9856 |
|
| 9857 |
fi |
| 9858 |
ac_fn_c_check_func "$LINENO" "execvp" "ac_cv_func_execvp" |
| 9859 |
if test "x$ac_cv_func_execvp" = xyes |
| 9860 |
then : |
| 9861 |
printf "%s\n" "#define HAVE_EXECVP 1" >>confdefs.h |
| 9862 |
|
| 9863 |
fi |
| 9864 |
ac_fn_c_check_func "$LINENO" "execvpe" "ac_cv_func_execvpe" |
| 9865 |
if test "x$ac_cv_func_execvpe" = xyes |
| 9866 |
then : |
| 9867 |
printf "%s\n" "#define HAVE_EXECVPE 1" >>confdefs.h |
| 9868 |
|
| 9869 |
fi |
| 9870 |
ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" |
| 9871 |
if test "x$ac_cv_func_closefrom" = xyes |
| 9872 |
then : |
| 9873 |
printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h |
| 9874 |
|
| 9875 |
fi |
| 9876 |
|
| 9877 |
ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" |
| 9878 |
if test "x$ac_cv_func_getpeereid" = xyes |
| 9879 |
then : |
| 9880 |
printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h |
| 9881 |
|
| 9882 |
fi |
| 9883 |
|
| 9884 |
ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" |
| 9885 |
if test "x$ac_cv_func_getpeerucred" = xyes |
| 9886 |
then : |
| 9887 |
printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h |
| 9888 |
|
| 9889 |
fi |
| 9890 |
|
| 9891 |
ac_fn_c_check_func "$LINENO" "__nss_configure_lookup" "ac_cv_func___nss_configure_lookup" |
| 9892 |
if test "x$ac_cv_func___nss_configure_lookup" = xyes |
| 9893 |
then : |
| 9894 |
printf "%s\n" "#define HAVE___NSS_CONFIGURE_LOOKUP 1" >>confdefs.h |
| 9895 |
|
| 9896 |
fi |
| 9897 |
|
| 9898 |
ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" |
| 9899 |
if test "x$ac_cv_func_getenv" = xyes |
| 9900 |
then : |
| 9901 |
printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h |
| 9902 |
|
| 9903 |
fi |
| 9904 |
ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" |
| 9905 |
if test "x$ac_cv_func_putenv" = xyes |
| 9906 |
then : |
| 9907 |
printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h |
| 9908 |
|
| 9909 |
fi |
| 9910 |
ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv" |
| 9911 |
if test "x$ac_cv_func_clearenv" = xyes |
| 9912 |
then : |
| 9913 |
printf "%s\n" "#define HAVE_CLEARENV 1" >>confdefs.h |
| 9914 |
|
| 9915 |
fi |
| 9916 |
|
| 9917 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 9918 |
if test "x$ac_cv_func_dlopen" = xyes |
| 9919 |
then : |
| 9920 |
printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
| 9921 |
|
| 9922 |
fi |
| 9923 |
ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" |
| 9924 |
if test "x$ac_cv_func_dlsym" = xyes |
| 9925 |
then : |
| 9926 |
printf "%s\n" "#define HAVE_DLSYM 1" >>confdefs.h |
| 9927 |
|
| 9928 |
fi |
| 9929 |
ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| 9930 |
if test "x$ac_cv_func_dlerror" = xyes |
| 9931 |
then : |
| 9932 |
printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h |
| 9933 |
|
| 9934 |
fi |
| 9935 |
|
| 9936 |
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" |
| 9937 |
if test "x$ac_cv_func_regcomp" = xyes |
| 9938 |
then : |
| 9939 |
printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h |
| 9940 |
|
| 9941 |
fi |
| 9942 |
ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec" |
| 9943 |
if test "x$ac_cv_func_regexec" = xyes |
| 9944 |
then : |
| 9945 |
printf "%s\n" "#define HAVE_REGEXEC 1" >>confdefs.h |
| 9946 |
|
| 9947 |
fi |
| 9948 |
ac_fn_c_check_func "$LINENO" "regerror" "ac_cv_func_regerror" |
| 9949 |
if test "x$ac_cv_func_regerror" = xyes |
| 9950 |
then : |
| 9951 |
printf "%s\n" "#define HAVE_REGERROR 1" >>confdefs.h |
| 9952 |
|
| 9953 |
fi |
| 9954 |
|
| 9955 |
ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" |
| 9956 |
if test "x$ac_cv_func_hstrerror" = xyes |
| 9957 |
then : |
| 9958 |
printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h |
| 9959 |
|
| 9960 |
fi |
| 9961 |
|
| 9962 |
|
| 9963 |
# replace some functions if they are not on the system |
| 9964 |
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" |
| 9965 |
if test "x$ac_cv_func_getopt_long" = xyes |
| 9966 |
then : |
| 9967 |
printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h |
| 9968 |
|
| 9969 |
else case e in #( |
| 9970 |
e) case " $LIBOBJS " in |
| 9971 |
*" getopt_long.$ac_objext "* ) ;; |
| 9972 |
*) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" |
| 9973 |
;; |
| 9974 |
esac |
| 9975 |
;; |
| 9976 |
esac |
| 9977 |
fi |
| 9978 |
|
| 9979 |
ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" |
| 9980 |
if test "x$ac_cv_func_strndup" = xyes |
| 9981 |
then : |
| 9982 |
printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h |
| 9983 |
|
| 9984 |
else case e in #( |
| 9985 |
e) case " $LIBOBJS " in |
| 9986 |
*" strndup.$ac_objext "* ) ;; |
| 9987 |
*) LIBOBJS="$LIBOBJS strndup.$ac_objext" |
| 9988 |
;; |
| 9989 |
esac |
| 9990 |
;; |
| 9991 |
esac |
| 9992 |
fi |
| 9993 |
|
| 9994 |
|
| 9995 |
# replace ether_aton_r() if not found |
| 9996 |
|
| 9997 |
for ac_func in ether_aton_r |
| 9998 |
do : |
| 9999 |
ac_fn_c_check_func "$LINENO" "ether_aton_r" "ac_cv_func_ether_aton_r" |
| 10000 |
if test "x$ac_cv_func_ether_aton_r" = xyes |
| 10001 |
then : |
| 10002 |
printf "%s\n" "#define HAVE_ETHER_ATON_R 1" >>confdefs.h |
| 10003 |
|
| 10004 |
else case e in #( |
| 10005 |
e) case " $LIBOBJS " in |
| 10006 |
*" ether.$ac_objext "* ) ;; |
| 10007 |
*) LIBOBJS="$LIBOBJS ether.$ac_objext" |
| 10008 |
;; |
| 10009 |
esac |
| 10010 |
;; |
| 10011 |
esac |
| 10012 |
fi |
| 10013 |
|
| 10014 |
done |
| 10015 |
|
| 10016 |
# check to see if struct sockaddr_storage is defined |
| 10017 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " |
| 10018 |
#include <sys/types.h> |
| 10019 |
#include <sys/socket.h> |
| 10020 |
" |
| 10021 |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes |
| 10022 |
then : |
| 10023 |
|
| 10024 |
else case e in #( |
| 10025 |
e) |
| 10026 |
printf "%s\n" "#define sockaddr_storage sockaddr_in" >>confdefs.h |
| 10027 |
;; |
| 10028 |
esac |
| 10029 |
fi |
| 10030 |
|
| 10031 |
|
| 10032 |
# check for support for the struct ucred structure |
| 10033 |
ac_fn_c_check_type "$LINENO" "struct ucred" "ac_cv_type_struct_ucred" " |
| 10034 |
#include <sys/socket.h> |
| 10035 |
#include <sys/un.h> |
| 10036 |
#include <sys/types.h> |
| 10037 |
" |
| 10038 |
if test "x$ac_cv_type_struct_ucred" = xyes |
| 10039 |
then : |
| 10040 |
|
| 10041 |
printf "%s\n" "#define HAVE_STRUCT_UCRED 1" >>confdefs.h |
| 10042 |
|
| 10043 |
fi |
| 10044 |
|
| 10045 |
|
| 10046 |
# check threading stuff |
| 10047 |
|
| 10048 |
|
| 10049 |
ac_ext=c |
| 10050 |
ac_cpp='$CPP $CPPFLAGS' |
| 10051 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10052 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10053 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10054 |
|
| 10055 |
ax_pthread_ok=no |
| 10056 |
|
| 10057 |
# We used to check for pthread.h first, but this fails if pthread.h |
| 10058 |
# requires special compiler flags (e.g. on True64 or Sequent). |
| 10059 |
# It gets checked for in the link test anyway. |
| 10060 |
|
| 10061 |
# First of all, check if the user has set any of the PTHREAD_LIBS, |
| 10062 |
# etcetera environment variables, and if threads linking works using |
| 10063 |
# them: |
| 10064 |
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 10065 |
save_CFLAGS="$CFLAGS" |
| 10066 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 10067 |
save_LIBS="$LIBS" |
| 10068 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 10069 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 10070 |
printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 10071 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10072 |
/* end confdefs.h. */ |
| 10073 |
|
| 10074 |
/* Override any GCC internal prototype to avoid an error. |
| 10075 |
Use char because int might match the return type of a GCC |
| 10076 |
builtin and then its argument prototype would still apply. |
| 10077 |
The 'extern "C"' is for builds by C++ compilers; |
| 10078 |
although this is not generally supported in C code supporting it here |
| 10079 |
has little cost and some practical benefit (sr 110532). */ |
| 10080 |
#ifdef __cplusplus |
| 10081 |
extern "C" |
| 10082 |
#endif |
| 10083 |
char pthread_join (void); |
| 10084 |
int |
| 10085 |
main (void) |
| 10086 |
{ |
| 10087 |
return pthread_join (); |
| 10088 |
; |
| 10089 |
return 0; |
| 10090 |
} |
| 10091 |
_ACEOF |
| 10092 |
if ac_fn_c_try_link "$LINENO" |
| 10093 |
then : |
| 10094 |
ax_pthread_ok=yes |
| 10095 |
fi |
| 10096 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10097 |
conftest$ac_exeext conftest.$ac_ext |
| 10098 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 10099 |
printf "%s\n" "$ax_pthread_ok" >&6; } |
| 10100 |
if test x"$ax_pthread_ok" = xno; then |
| 10101 |
PTHREAD_LIBS="" |
| 10102 |
PTHREAD_CFLAGS="" |
| 10103 |
fi |
| 10104 |
LIBS="$save_LIBS" |
| 10105 |
CFLAGS="$save_CFLAGS" |
| 10106 |
fi |
| 10107 |
|
| 10108 |
# We must check for the threads library under a number of different |
| 10109 |
# names; the ordering is very important because some systems |
| 10110 |
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 10111 |
# libraries is broken (non-POSIX). |
| 10112 |
|
| 10113 |
# Create a list of thread flags to try. Items starting with a "-" are |
| 10114 |
# C compiler flags, and other items are library names, except for "none" |
| 10115 |
# which indicates that we try without any flags at all, and "pthread-config" |
| 10116 |
# which is a program returning the flags for the Pth emulation library. |
| 10117 |
|
| 10118 |
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 10119 |
|
| 10120 |
# The ordering *is* (sometimes) important. Some notes on the |
| 10121 |
# individual items follow: |
| 10122 |
|
| 10123 |
# pthreads: AIX (must check this before -lpthread) |
| 10124 |
# none: in case threads are in libc; should be tried before -Kthread and |
| 10125 |
# other compiler flags to prevent continual compiler warnings |
| 10126 |
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 10127 |
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 10128 |
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 10129 |
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 10130 |
# -pthreads: Solaris/gcc |
| 10131 |
# -mthreads: Mingw32/gcc, Lynx/gcc |
| 10132 |
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 10133 |
# doesn't hurt to check since this sometimes defines pthreads too; |
| 10134 |
# also defines -D_REENTRANT) |
| 10135 |
# ... -mt is also the pthreads flag for HP/aCC |
| 10136 |
# pthread: Linux, etcetera |
| 10137 |
# --thread-safe: KAI C++ |
| 10138 |
# pthread-config: use pthread-config program (for GNU Pth library) |
| 10139 |
|
| 10140 |
case ${host_os} in |
| 10141 |
solaris*) |
| 10142 |
|
| 10143 |
# On Solaris (at least, for some versions), libc contains stubbed |
| 10144 |
# (non-functional) versions of the pthreads routines, so link-based |
| 10145 |
# tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 10146 |
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 10147 |
# a function called by this macro, so we could check for that, but |
| 10148 |
# who knows whether they'll stub that too in a future libc.) So, |
| 10149 |
# we'll just look for -pthreads and -lpthread first: |
| 10150 |
|
| 10151 |
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 10152 |
;; |
| 10153 |
|
| 10154 |
darwin*) |
| 10155 |
ax_pthread_flags="-pthread $ax_pthread_flags" |
| 10156 |
;; |
| 10157 |
esac |
| 10158 |
|
| 10159 |
# Clang doesn't consider unrecognized options an error unless we specify |
| 10160 |
# -Werror. We throw in some extra Clang-specific options to ensure that |
| 10161 |
# this doesn't happen for GCC, which also accepts -Werror. |
| 10162 |
|
| 10163 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 |
| 10164 |
printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } |
| 10165 |
save_CFLAGS="$CFLAGS" |
| 10166 |
ax_pthread_extra_flags="-Werror" |
| 10167 |
CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" |
| 10168 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10169 |
/* end confdefs.h. */ |
| 10170 |
int foo(void); |
| 10171 |
int |
| 10172 |
main (void) |
| 10173 |
{ |
| 10174 |
foo() |
| 10175 |
; |
| 10176 |
return 0; |
| 10177 |
} |
| 10178 |
_ACEOF |
| 10179 |
if ac_fn_c_try_compile "$LINENO" |
| 10180 |
then : |
| 10181 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10182 |
printf "%s\n" "yes" >&6; } |
| 10183 |
else case e in #( |
| 10184 |
e) ax_pthread_extra_flags= |
| 10185 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10186 |
printf "%s\n" "no" >&6; } ;; |
| 10187 |
esac |
| 10188 |
fi |
| 10189 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10190 |
CFLAGS="$save_CFLAGS" |
| 10191 |
|
| 10192 |
if test x"$ax_pthread_ok" = xno; then |
| 10193 |
for flag in $ax_pthread_flags; do |
| 10194 |
|
| 10195 |
case $flag in |
| 10196 |
none) |
| 10197 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 10198 |
printf %s "checking whether pthreads work without any flags... " >&6; } |
| 10199 |
;; |
| 10200 |
|
| 10201 |
-*) |
| 10202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 10203 |
printf %s "checking whether pthreads work with $flag... " >&6; } |
| 10204 |
PTHREAD_CFLAGS="$flag" |
| 10205 |
;; |
| 10206 |
|
| 10207 |
pthread-config) |
| 10208 |
# Extract the first word of "pthread-config", so it can be a program name with args. |
| 10209 |
set dummy pthread-config; ac_word=$2 |
| 10210 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10211 |
printf %s "checking for $ac_word... " >&6; } |
| 10212 |
if test ${ac_cv_prog_ax_pthread_config+y} |
| 10213 |
then : |
| 10214 |
printf %s "(cached) " >&6 |
| 10215 |
else case e in #( |
| 10216 |
e) if test -n "$ax_pthread_config"; then |
| 10217 |
ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 10218 |
else |
| 10219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10220 |
for as_dir in $PATH |
| 10221 |
do |
| 10222 |
IFS=$as_save_IFS |
| 10223 |
case $as_dir in #((( |
| 10224 |
'') as_dir=./ ;; |
| 10225 |
*/) ;; |
| 10226 |
*) as_dir=$as_dir/ ;; |
| 10227 |
esac |
| 10228 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10229 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10230 |
ac_cv_prog_ax_pthread_config="yes" |
| 10231 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10232 |
break 2 |
| 10233 |
fi |
| 10234 |
done |
| 10235 |
done |
| 10236 |
IFS=$as_save_IFS |
| 10237 |
|
| 10238 |
test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 10239 |
fi ;; |
| 10240 |
esac |
| 10241 |
fi |
| 10242 |
ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 10243 |
if test -n "$ax_pthread_config"; then |
| 10244 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 10245 |
printf "%s\n" "$ax_pthread_config" >&6; } |
| 10246 |
else |
| 10247 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10248 |
printf "%s\n" "no" >&6; } |
| 10249 |
fi |
| 10250 |
|
| 10251 |
|
| 10252 |
if test x"$ax_pthread_config" = xno; then continue; fi |
| 10253 |
PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 10254 |
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 10255 |
;; |
| 10256 |
|
| 10257 |
*) |
| 10258 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 10259 |
printf %s "checking for the pthreads library -l$flag... " >&6; } |
| 10260 |
PTHREAD_LIBS="-l$flag" |
| 10261 |
;; |
| 10262 |
esac |
| 10263 |
|
| 10264 |
save_LIBS="$LIBS" |
| 10265 |
save_CFLAGS="$CFLAGS" |
| 10266 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 10267 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" |
| 10268 |
|
| 10269 |
# Check for various functions. We must include pthread.h, |
| 10270 |
# since some functions may be macros. (On the Sequent, we |
| 10271 |
# need a special flag -Kthread to make this header compile.) |
| 10272 |
# We check for pthread_join because it is in -lpthread on IRIX |
| 10273 |
# while pthread_create is in libc. We check for pthread_attr_init |
| 10274 |
# due to DEC craziness with -lpthreads. We check for |
| 10275 |
# pthread_cleanup_push because it is one of the few pthread |
| 10276 |
# functions on Solaris that doesn't have a non-functional libc stub. |
| 10277 |
# We try pthread_create on general principles. |
| 10278 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10279 |
/* end confdefs.h. */ |
| 10280 |
#include <pthread.h> |
| 10281 |
static void routine(void *a) { a = 0; } |
| 10282 |
static void *start_routine(void *a) { return a; } |
| 10283 |
int |
| 10284 |
main (void) |
| 10285 |
{ |
| 10286 |
pthread_t th; pthread_attr_t attr; |
| 10287 |
pthread_create(&th, 0, start_routine, 0); |
| 10288 |
pthread_join(th, 0); |
| 10289 |
pthread_attr_init(&attr); |
| 10290 |
pthread_cleanup_push(routine, 0); |
| 10291 |
pthread_cleanup_pop(0) /* ; */ |
| 10292 |
; |
| 10293 |
return 0; |
| 10294 |
} |
| 10295 |
_ACEOF |
| 10296 |
if ac_fn_c_try_link "$LINENO" |
| 10297 |
then : |
| 10298 |
ax_pthread_ok=yes |
| 10299 |
fi |
| 10300 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10301 |
conftest$ac_exeext conftest.$ac_ext |
| 10302 |
|
| 10303 |
LIBS="$save_LIBS" |
| 10304 |
CFLAGS="$save_CFLAGS" |
| 10305 |
|
| 10306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 10307 |
printf "%s\n" "$ax_pthread_ok" >&6; } |
| 10308 |
if test "x$ax_pthread_ok" = xyes; then |
| 10309 |
break; |
| 10310 |
fi |
| 10311 |
|
| 10312 |
PTHREAD_LIBS="" |
| 10313 |
PTHREAD_CFLAGS="" |
| 10314 |
done |
| 10315 |
fi |
| 10316 |
|
| 10317 |
# Various other checks: |
| 10318 |
if test "x$ax_pthread_ok" = xyes; then |
| 10319 |
save_LIBS="$LIBS" |
| 10320 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 10321 |
save_CFLAGS="$CFLAGS" |
| 10322 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 10323 |
|
| 10324 |
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 10325 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 10326 |
printf %s "checking for joinable pthread attribute... " >&6; } |
| 10327 |
attr_name=unknown |
| 10328 |
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 10329 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10330 |
/* end confdefs.h. */ |
| 10331 |
#include <pthread.h> |
| 10332 |
int |
| 10333 |
main (void) |
| 10334 |
{ |
| 10335 |
int attr = $attr; return attr /* ; */ |
| 10336 |
; |
| 10337 |
return 0; |
| 10338 |
} |
| 10339 |
_ACEOF |
| 10340 |
if ac_fn_c_try_link "$LINENO" |
| 10341 |
then : |
| 10342 |
attr_name=$attr; break |
| 10343 |
fi |
| 10344 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10345 |
conftest$ac_exeext conftest.$ac_ext |
| 10346 |
done |
| 10347 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 10348 |
printf "%s\n" "$attr_name" >&6; } |
| 10349 |
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 10350 |
|
| 10351 |
printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h |
| 10352 |
|
| 10353 |
fi |
| 10354 |
|
| 10355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 10356 |
printf %s "checking if more special flags are required for pthreads... " >&6; } |
| 10357 |
flag=no |
| 10358 |
case ${host_os} in |
| 10359 |
aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; |
| 10360 |
osf* | hpux*) flag="-D_REENTRANT";; |
| 10361 |
solaris*) |
| 10362 |
if test "$GCC" = "yes"; then |
| 10363 |
flag="-D_REENTRANT" |
| 10364 |
else |
| 10365 |
# TODO: What about Clang on Solaris? |
| 10366 |
flag="-mt -D_REENTRANT" |
| 10367 |
fi |
| 10368 |
;; |
| 10369 |
esac |
| 10370 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 |
| 10371 |
printf "%s\n" "$flag" >&6; } |
| 10372 |
if test "x$flag" != xno; then |
| 10373 |
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 10374 |
fi |
| 10375 |
|
| 10376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 10377 |
printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 10378 |
if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} |
| 10379 |
then : |
| 10380 |
printf %s "(cached) " >&6 |
| 10381 |
else case e in #( |
| 10382 |
e) |
| 10383 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10384 |
/* end confdefs.h. */ |
| 10385 |
#include <pthread.h> |
| 10386 |
int |
| 10387 |
main (void) |
| 10388 |
{ |
| 10389 |
int i = PTHREAD_PRIO_INHERIT; |
| 10390 |
; |
| 10391 |
return 0; |
| 10392 |
} |
| 10393 |
_ACEOF |
| 10394 |
if ac_fn_c_try_link "$LINENO" |
| 10395 |
then : |
| 10396 |
ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 10397 |
else case e in #( |
| 10398 |
e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; |
| 10399 |
esac |
| 10400 |
fi |
| 10401 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10402 |
conftest$ac_exeext conftest.$ac_ext |
| 10403 |
;; |
| 10404 |
esac |
| 10405 |
fi |
| 10406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 10407 |
printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 10408 |
if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" |
| 10409 |
then : |
| 10410 |
|
| 10411 |
printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 10412 |
|
| 10413 |
fi |
| 10414 |
|
| 10415 |
LIBS="$save_LIBS" |
| 10416 |
CFLAGS="$save_CFLAGS" |
| 10417 |
|
| 10418 |
# More AIX lossage: compile with *_r variant |
| 10419 |
if test "x$GCC" != xyes; then |
| 10420 |
case $host_os in |
| 10421 |
aix*) |
| 10422 |
case "x/$CC" in #( |
| 10423 |
x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : |
| 10424 |
#handle absolute path differently from PATH based program lookup |
| 10425 |
case "x$CC" in #( |
| 10426 |
x/*) : |
| 10427 |
if as_fn_executable_p ${CC}_r |
| 10428 |
then : |
| 10429 |
PTHREAD_CC="${CC}_r" |
| 10430 |
fi ;; #( |
| 10431 |
*) : |
| 10432 |
for ac_prog in ${CC}_r |
| 10433 |
do |
| 10434 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10435 |
set dummy $ac_prog; ac_word=$2 |
| 10436 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10437 |
printf %s "checking for $ac_word... " >&6; } |
| 10438 |
if test ${ac_cv_prog_PTHREAD_CC+y} |
| 10439 |
then : |
| 10440 |
printf %s "(cached) " >&6 |
| 10441 |
else case e in #( |
| 10442 |
e) if test -n "$PTHREAD_CC"; then |
| 10443 |
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 10444 |
else |
| 10445 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10446 |
for as_dir in $PATH |
| 10447 |
do |
| 10448 |
IFS=$as_save_IFS |
| 10449 |
case $as_dir in #((( |
| 10450 |
'') as_dir=./ ;; |
| 10451 |
*/) ;; |
| 10452 |
*) as_dir=$as_dir/ ;; |
| 10453 |
esac |
| 10454 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10455 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10456 |
ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 10457 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10458 |
break 2 |
| 10459 |
fi |
| 10460 |
done |
| 10461 |
done |
| 10462 |
IFS=$as_save_IFS |
| 10463 |
|
| 10464 |
fi ;; |
| 10465 |
esac |
| 10466 |
fi |
| 10467 |
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 10468 |
if test -n "$PTHREAD_CC"; then |
| 10469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 10470 |
printf "%s\n" "$PTHREAD_CC" >&6; } |
| 10471 |
else |
| 10472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10473 |
printf "%s\n" "no" >&6; } |
| 10474 |
fi |
| 10475 |
|
| 10476 |
|
| 10477 |
test -n "$PTHREAD_CC" && break |
| 10478 |
done |
| 10479 |
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 10480 |
;; |
| 10481 |
esac ;; #( |
| 10482 |
*) : |
| 10483 |
;; |
| 10484 |
esac |
| 10485 |
;; |
| 10486 |
esac |
| 10487 |
fi |
| 10488 |
fi |
| 10489 |
|
| 10490 |
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 10491 |
|
| 10492 |
|
| 10493 |
|
| 10494 |
|
| 10495 |
|
| 10496 |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 10497 |
if test x"$ax_pthread_ok" = xyes; then |
| 10498 |
|
| 10499 |
printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h |
| 10500 |
|
| 10501 |
: |
| 10502 |
else |
| 10503 |
ax_pthread_ok=no |
| 10504 |
as_fn_error $? "no support for pthreads" "$LINENO" 5 |
| 10505 |
fi |
| 10506 |
ac_ext=c |
| 10507 |
ac_cpp='$CPP $CPPFLAGS' |
| 10508 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10509 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10510 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10511 |
|
| 10512 |
|
| 10513 |
pthread_save_CFLAGS="$CFLAGS" |
| 10514 |
pthread_save_LIBS="$LIBS" |
| 10515 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 10516 |
LIBS="$LIBS $PTHREAD_LIBS" |
| 10517 |
ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" |
| 10518 |
if test "x$ac_cv_func_pthread_mutex_lock" = xyes |
| 10519 |
then : |
| 10520 |
printf "%s\n" "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h |
| 10521 |
|
| 10522 |
fi |
| 10523 |
ac_fn_c_check_func "$LINENO" "pthread_join" "ac_cv_func_pthread_join" |
| 10524 |
if test "x$ac_cv_func_pthread_join" = xyes |
| 10525 |
then : |
| 10526 |
printf "%s\n" "#define HAVE_PTHREAD_JOIN 1" >>confdefs.h |
| 10527 |
|
| 10528 |
fi |
| 10529 |
ac_fn_c_check_func "$LINENO" "pthread_timedjoin_np" "ac_cv_func_pthread_timedjoin_np" |
| 10530 |
if test "x$ac_cv_func_pthread_timedjoin_np" = xyes |
| 10531 |
then : |
| 10532 |
printf "%s\n" "#define HAVE_PTHREAD_TIMEDJOIN_NP 1" >>confdefs.h |
| 10533 |
|
| 10534 |
fi |
| 10535 |
ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" |
| 10536 |
if test "x$ac_cv_func_pthread_atfork" = xyes |
| 10537 |
then : |
| 10538 |
printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h |
| 10539 |
|
| 10540 |
fi |
| 10541 |
|
| 10542 |
CFLAGS="$pthread_save_CFLAGS" |
| 10543 |
LIBS="$pthread_save_LIBS" |
| 10544 |
|
| 10545 |
# also use deprecated LDAP functions |
| 10546 |
|
| 10547 |
printf "%s\n" "#define LDAP_DEPRECATED 1" >>confdefs.h |
| 10548 |
|
| 10549 |
# for compatibility on Solaris |
| 10550 |
|
| 10551 |
printf "%s\n" "#define LDAP_REFERRALS 1" >>confdefs.h |
| 10552 |
|
| 10553 |
|
| 10554 |
# search for an LDAP library (only OpenLDAP is tested) |
| 10555 |
|
| 10556 |
# Check whether --with-ldap-lib was given. |
| 10557 |
if test ${with_ldap_lib+y} |
| 10558 |
then : |
| 10559 |
withval=$with_ldap_lib; |
| 10560 |
fi |
| 10561 |
|
| 10562 |
if test -z "$with_ldap_lib" |
| 10563 |
then |
| 10564 |
with_ldap_lib=auto |
| 10565 |
fi |
| 10566 |
if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = umich -o $with_ldap_lib = openldap \) |
| 10567 |
then |
| 10568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_search_ext" >&5 |
| 10569 |
printf %s "checking for library containing ldap_search_ext... " >&6; } |
| 10570 |
if test ${ac_cv_search_ldap_search_ext+y} |
| 10571 |
then : |
| 10572 |
printf %s "(cached) " >&6 |
| 10573 |
else case e in #( |
| 10574 |
e) ac_func_search_save_LIBS=$LIBS |
| 10575 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10576 |
/* end confdefs.h. */ |
| 10577 |
|
| 10578 |
/* Override any GCC internal prototype to avoid an error. |
| 10579 |
Use char because int might match the return type of a GCC |
| 10580 |
builtin and then its argument prototype would still apply. |
| 10581 |
The 'extern "C"' is for builds by C++ compilers; |
| 10582 |
although this is not generally supported in C code supporting it here |
| 10583 |
has little cost and some practical benefit (sr 110532). */ |
| 10584 |
#ifdef __cplusplus |
| 10585 |
extern "C" |
| 10586 |
#endif |
| 10587 |
char ldap_search_ext (void); |
| 10588 |
int |
| 10589 |
main (void) |
| 10590 |
{ |
| 10591 |
return ldap_search_ext (); |
| 10592 |
; |
| 10593 |
return 0; |
| 10594 |
} |
| 10595 |
_ACEOF |
| 10596 |
for ac_lib in '' ldap_r ldap |
| 10597 |
do |
| 10598 |
if test -z "$ac_lib"; then |
| 10599 |
ac_res="none required" |
| 10600 |
else |
| 10601 |
ac_res=-l$ac_lib |
| 10602 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10603 |
fi |
| 10604 |
if ac_fn_c_try_link "$LINENO" |
| 10605 |
then : |
| 10606 |
ac_cv_search_ldap_search_ext=$ac_res |
| 10607 |
fi |
| 10608 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10609 |
conftest$ac_exeext |
| 10610 |
if test ${ac_cv_search_ldap_search_ext+y} |
| 10611 |
then : |
| 10612 |
break |
| 10613 |
fi |
| 10614 |
done |
| 10615 |
if test ${ac_cv_search_ldap_search_ext+y} |
| 10616 |
then : |
| 10617 |
|
| 10618 |
else case e in #( |
| 10619 |
e) ac_cv_search_ldap_search_ext=no ;; |
| 10620 |
esac |
| 10621 |
fi |
| 10622 |
rm conftest.$ac_ext |
| 10623 |
LIBS=$ac_func_search_save_LIBS ;; |
| 10624 |
esac |
| 10625 |
fi |
| 10626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_search_ext" >&5 |
| 10627 |
printf "%s\n" "$ac_cv_search_ldap_search_ext" >&6; } |
| 10628 |
ac_res=$ac_cv_search_ldap_search_ext |
| 10629 |
if test "$ac_res" != no |
| 10630 |
then : |
| 10631 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10632 |
found_ldap_lib=yes |
| 10633 |
fi |
| 10634 |
|
| 10635 |
fi |
| 10636 |
if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \) |
| 10637 |
then |
| 10638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldap50" >&5 |
| 10639 |
printf %s "checking for main in -lldap50... " >&6; } |
| 10640 |
if test ${ac_cv_lib_ldap50_main+y} |
| 10641 |
then : |
| 10642 |
printf %s "(cached) " >&6 |
| 10643 |
else case e in #( |
| 10644 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10645 |
LIBS="-lldap50 -lpthread $LIBS" |
| 10646 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10647 |
/* end confdefs.h. */ |
| 10648 |
|
| 10649 |
|
| 10650 |
int |
| 10651 |
main (void) |
| 10652 |
{ |
| 10653 |
return main (); |
| 10654 |
; |
| 10655 |
return 0; |
| 10656 |
} |
| 10657 |
_ACEOF |
| 10658 |
if ac_fn_c_try_link "$LINENO" |
| 10659 |
then : |
| 10660 |
ac_cv_lib_ldap50_main=yes |
| 10661 |
else case e in #( |
| 10662 |
e) ac_cv_lib_ldap50_main=no ;; |
| 10663 |
esac |
| 10664 |
fi |
| 10665 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10666 |
conftest$ac_exeext conftest.$ac_ext |
| 10667 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10668 |
esac |
| 10669 |
fi |
| 10670 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap50_main" >&5 |
| 10671 |
printf "%s\n" "$ac_cv_lib_ldap50_main" >&6; } |
| 10672 |
if test "x$ac_cv_lib_ldap50_main" = xyes |
| 10673 |
then : |
| 10674 |
LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4 $LIBS" found_ldap_lib=yes |
| 10675 |
fi |
| 10676 |
|
| 10677 |
fi |
| 10678 |
if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape4 \) |
| 10679 |
then |
| 10680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl41" >&5 |
| 10681 |
printf %s "checking for main in -lldapssl41... " >&6; } |
| 10682 |
if test ${ac_cv_lib_ldapssl41_main+y} |
| 10683 |
then : |
| 10684 |
printf %s "(cached) " >&6 |
| 10685 |
else case e in #( |
| 10686 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10687 |
LIBS="-lldapssl41 -lpthread $LIBS" |
| 10688 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10689 |
/* end confdefs.h. */ |
| 10690 |
|
| 10691 |
|
| 10692 |
int |
| 10693 |
main (void) |
| 10694 |
{ |
| 10695 |
return main (); |
| 10696 |
; |
| 10697 |
return 0; |
| 10698 |
} |
| 10699 |
_ACEOF |
| 10700 |
if ac_fn_c_try_link "$LINENO" |
| 10701 |
then : |
| 10702 |
ac_cv_lib_ldapssl41_main=yes |
| 10703 |
else case e in #( |
| 10704 |
e) ac_cv_lib_ldapssl41_main=no ;; |
| 10705 |
esac |
| 10706 |
fi |
| 10707 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10708 |
conftest$ac_exeext conftest.$ac_ext |
| 10709 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10710 |
esac |
| 10711 |
fi |
| 10712 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl41_main" >&5 |
| 10713 |
printf "%s\n" "$ac_cv_lib_ldapssl41_main" >&6; } |
| 10714 |
if test "x$ac_cv_lib_ldapssl41_main" = xyes |
| 10715 |
then : |
| 10716 |
LIBS="-lldapssl41 -lplc3 -lplds3 -lnspr3 $LIBS" found_ldap_lib=yes |
| 10717 |
fi |
| 10718 |
|
| 10719 |
if test -z "$found_ldap_lib" |
| 10720 |
then |
| 10721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl40" >&5 |
| 10722 |
printf %s "checking for main in -lldapssl40... " >&6; } |
| 10723 |
if test ${ac_cv_lib_ldapssl40_main+y} |
| 10724 |
then : |
| 10725 |
printf %s "(cached) " >&6 |
| 10726 |
else case e in #( |
| 10727 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10728 |
LIBS="-lldapssl40 -lpthread $LIBS" |
| 10729 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10730 |
/* end confdefs.h. */ |
| 10731 |
|
| 10732 |
|
| 10733 |
int |
| 10734 |
main (void) |
| 10735 |
{ |
| 10736 |
return main (); |
| 10737 |
; |
| 10738 |
return 0; |
| 10739 |
} |
| 10740 |
_ACEOF |
| 10741 |
if ac_fn_c_try_link "$LINENO" |
| 10742 |
then : |
| 10743 |
ac_cv_lib_ldapssl40_main=yes |
| 10744 |
else case e in #( |
| 10745 |
e) ac_cv_lib_ldapssl40_main=no ;; |
| 10746 |
esac |
| 10747 |
fi |
| 10748 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10749 |
conftest$ac_exeext conftest.$ac_ext |
| 10750 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10751 |
esac |
| 10752 |
fi |
| 10753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl40_main" >&5 |
| 10754 |
printf "%s\n" "$ac_cv_lib_ldapssl40_main" >&6; } |
| 10755 |
if test "x$ac_cv_lib_ldapssl40_main" = xyes |
| 10756 |
then : |
| 10757 |
LIBS="-lldapssl40 $LIBS" found_ldap_lib=yes |
| 10758 |
fi |
| 10759 |
|
| 10760 |
fi |
| 10761 |
if test -z "$found_ldap_lib" |
| 10762 |
then |
| 10763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldap41" >&5 |
| 10764 |
printf %s "checking for main in -lldap41... " >&6; } |
| 10765 |
if test ${ac_cv_lib_ldap41_main+y} |
| 10766 |
then : |
| 10767 |
printf %s "(cached) " >&6 |
| 10768 |
else case e in #( |
| 10769 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10770 |
LIBS="-lldap41 $LIBS" |
| 10771 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10772 |
/* end confdefs.h. */ |
| 10773 |
|
| 10774 |
|
| 10775 |
int |
| 10776 |
main (void) |
| 10777 |
{ |
| 10778 |
return main (); |
| 10779 |
; |
| 10780 |
return 0; |
| 10781 |
} |
| 10782 |
_ACEOF |
| 10783 |
if ac_fn_c_try_link "$LINENO" |
| 10784 |
then : |
| 10785 |
ac_cv_lib_ldap41_main=yes |
| 10786 |
else case e in #( |
| 10787 |
e) ac_cv_lib_ldap41_main=no ;; |
| 10788 |
esac |
| 10789 |
fi |
| 10790 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10791 |
conftest$ac_exeext conftest.$ac_ext |
| 10792 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10793 |
esac |
| 10794 |
fi |
| 10795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap41_main" >&5 |
| 10796 |
printf "%s\n" "$ac_cv_lib_ldap41_main" >&6; } |
| 10797 |
if test "x$ac_cv_lib_ldap41_main" = xyes |
| 10798 |
then : |
| 10799 |
LIBS="-lldap41 $LIBS" found_ldap_lib=yes |
| 10800 |
fi |
| 10801 |
|
| 10802 |
fi |
| 10803 |
if test -z "$found_ldap_lib" |
| 10804 |
then |
| 10805 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldap40" >&5 |
| 10806 |
printf %s "checking for main in -lldap40... " >&6; } |
| 10807 |
if test ${ac_cv_lib_ldap40_main+y} |
| 10808 |
then : |
| 10809 |
printf %s "(cached) " >&6 |
| 10810 |
else case e in #( |
| 10811 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10812 |
LIBS="-lldap40 $LIBS" |
| 10813 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10814 |
/* end confdefs.h. */ |
| 10815 |
|
| 10816 |
|
| 10817 |
int |
| 10818 |
main (void) |
| 10819 |
{ |
| 10820 |
return main (); |
| 10821 |
; |
| 10822 |
return 0; |
| 10823 |
} |
| 10824 |
_ACEOF |
| 10825 |
if ac_fn_c_try_link "$LINENO" |
| 10826 |
then : |
| 10827 |
ac_cv_lib_ldap40_main=yes |
| 10828 |
else case e in #( |
| 10829 |
e) ac_cv_lib_ldap40_main=no ;; |
| 10830 |
esac |
| 10831 |
fi |
| 10832 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10833 |
conftest$ac_exeext conftest.$ac_ext |
| 10834 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10835 |
esac |
| 10836 |
fi |
| 10837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap40_main" >&5 |
| 10838 |
printf "%s\n" "$ac_cv_lib_ldap40_main" >&6; } |
| 10839 |
if test "x$ac_cv_lib_ldap40_main" = xyes |
| 10840 |
then : |
| 10841 |
LIBS="-lldap40 $LIBS" found_ldap_lib=yes |
| 10842 |
fi |
| 10843 |
|
| 10844 |
fi |
| 10845 |
fi |
| 10846 |
if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape3 \) |
| 10847 |
then |
| 10848 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lldapssl30" >&5 |
| 10849 |
printf %s "checking for main in -lldapssl30... " >&6; } |
| 10850 |
if test ${ac_cv_lib_ldapssl30_main+y} |
| 10851 |
then : |
| 10852 |
printf %s "(cached) " >&6 |
| 10853 |
else case e in #( |
| 10854 |
e) ac_check_lib_save_LIBS=$LIBS |
| 10855 |
LIBS="-lldapssl30 -lpthread $LIBS" |
| 10856 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10857 |
/* end confdefs.h. */ |
| 10858 |
|
| 10859 |
|
| 10860 |
int |
| 10861 |
main (void) |
| 10862 |
{ |
| 10863 |
return main (); |
| 10864 |
; |
| 10865 |
return 0; |
| 10866 |
} |
| 10867 |
_ACEOF |
| 10868 |
if ac_fn_c_try_link "$LINENO" |
| 10869 |
then : |
| 10870 |
ac_cv_lib_ldapssl30_main=yes |
| 10871 |
else case e in #( |
| 10872 |
e) ac_cv_lib_ldapssl30_main=no ;; |
| 10873 |
esac |
| 10874 |
fi |
| 10875 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10876 |
conftest$ac_exeext conftest.$ac_ext |
| 10877 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 10878 |
esac |
| 10879 |
fi |
| 10880 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldapssl30_main" >&5 |
| 10881 |
printf "%s\n" "$ac_cv_lib_ldapssl30_main" >&6; } |
| 10882 |
if test "x$ac_cv_lib_ldapssl30_main" = xyes |
| 10883 |
then : |
| 10884 |
LIBS="-lldapssl30 $LIBS" found_ldap_lib=yes |
| 10885 |
fi |
| 10886 |
|
| 10887 |
fi |
| 10888 |
|
| 10889 |
for ac_func in ldap_search_ext |
| 10890 |
do : |
| 10891 |
ac_fn_c_check_func "$LINENO" "ldap_search_ext" "ac_cv_func_ldap_search_ext" |
| 10892 |
if test "x$ac_cv_func_ldap_search_ext" = xyes |
| 10893 |
then : |
| 10894 |
printf "%s\n" "#define HAVE_LDAP_SEARCH_EXT 1" >>confdefs.h |
| 10895 |
|
| 10896 |
else case e in #( |
| 10897 |
e) as_fn_error $? "could not locate a valid LDAP library" "$LINENO" 5 ;; |
| 10898 |
esac |
| 10899 |
fi |
| 10900 |
|
| 10901 |
done |
| 10902 |
|
| 10903 |
# see if we need a BER library |
| 10904 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ber_bvfree" >&5 |
| 10905 |
printf %s "checking for library containing ber_bvfree... " >&6; } |
| 10906 |
if test ${ac_cv_search_ber_bvfree+y} |
| 10907 |
then : |
| 10908 |
printf %s "(cached) " >&6 |
| 10909 |
else case e in #( |
| 10910 |
e) ac_func_search_save_LIBS=$LIBS |
| 10911 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10912 |
/* end confdefs.h. */ |
| 10913 |
|
| 10914 |
/* Override any GCC internal prototype to avoid an error. |
| 10915 |
Use char because int might match the return type of a GCC |
| 10916 |
builtin and then its argument prototype would still apply. |
| 10917 |
The 'extern "C"' is for builds by C++ compilers; |
| 10918 |
although this is not generally supported in C code supporting it here |
| 10919 |
has little cost and some practical benefit (sr 110532). */ |
| 10920 |
#ifdef __cplusplus |
| 10921 |
extern "C" |
| 10922 |
#endif |
| 10923 |
char ber_bvfree (void); |
| 10924 |
int |
| 10925 |
main (void) |
| 10926 |
{ |
| 10927 |
return ber_bvfree (); |
| 10928 |
; |
| 10929 |
return 0; |
| 10930 |
} |
| 10931 |
_ACEOF |
| 10932 |
for ac_lib in '' lber |
| 10933 |
do |
| 10934 |
if test -z "$ac_lib"; then |
| 10935 |
ac_res="none required" |
| 10936 |
else |
| 10937 |
ac_res=-l$ac_lib |
| 10938 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10939 |
fi |
| 10940 |
if ac_fn_c_try_link "$LINENO" |
| 10941 |
then : |
| 10942 |
ac_cv_search_ber_bvfree=$ac_res |
| 10943 |
fi |
| 10944 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10945 |
conftest$ac_exeext |
| 10946 |
if test ${ac_cv_search_ber_bvfree+y} |
| 10947 |
then : |
| 10948 |
break |
| 10949 |
fi |
| 10950 |
done |
| 10951 |
if test ${ac_cv_search_ber_bvfree+y} |
| 10952 |
then : |
| 10953 |
|
| 10954 |
else case e in #( |
| 10955 |
e) ac_cv_search_ber_bvfree=no ;; |
| 10956 |
esac |
| 10957 |
fi |
| 10958 |
rm conftest.$ac_ext |
| 10959 |
LIBS=$ac_func_search_save_LIBS ;; |
| 10960 |
esac |
| 10961 |
fi |
| 10962 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_bvfree" >&5 |
| 10963 |
printf "%s\n" "$ac_cv_search_ber_bvfree" >&6; } |
| 10964 |
ac_res=$ac_cv_search_ber_bvfree |
| 10965 |
if test "$ac_res" != no |
| 10966 |
then : |
| 10967 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10968 |
|
| 10969 |
fi |
| 10970 |
|
| 10971 |
|
| 10972 |
# check for extra SASL libraries |
| 10973 |
if test "$enable_sasl" = "yes" |
| 10974 |
then |
| 10975 |
ac_fn_c_check_type "$LINENO" "sasl_interact_t" "ac_cv_type_sasl_interact_t" " |
| 10976 |
#ifdef HAVE_SASL_SASL_H |
| 10977 |
#include <sasl/sasl.h> |
| 10978 |
#elif defined(HAVE_SASL_H) |
| 10979 |
#include <sasl.h> |
| 10980 |
#endif |
| 10981 |
" |
| 10982 |
if test "x$ac_cv_type_sasl_interact_t" = xyes |
| 10983 |
then : |
| 10984 |
|
| 10985 |
printf "%s\n" "#define HAVE_SASL_INTERACT_T 1" >>confdefs.h |
| 10986 |
|
| 10987 |
fi |
| 10988 |
|
| 10989 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_sasl_interactive_bind_s" >&5 |
| 10990 |
printf %s "checking for library containing ldap_sasl_interactive_bind_s... " >&6; } |
| 10991 |
if test ${ac_cv_search_ldap_sasl_interactive_bind_s+y} |
| 10992 |
then : |
| 10993 |
printf %s "(cached) " >&6 |
| 10994 |
else case e in #( |
| 10995 |
e) ac_func_search_save_LIBS=$LIBS |
| 10996 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10997 |
/* end confdefs.h. */ |
| 10998 |
|
| 10999 |
/* Override any GCC internal prototype to avoid an error. |
| 11000 |
Use char because int might match the return type of a GCC |
| 11001 |
builtin and then its argument prototype would still apply. |
| 11002 |
The 'extern "C"' is for builds by C++ compilers; |
| 11003 |
although this is not generally supported in C code supporting it here |
| 11004 |
has little cost and some practical benefit (sr 110532). */ |
| 11005 |
#ifdef __cplusplus |
| 11006 |
extern "C" |
| 11007 |
#endif |
| 11008 |
char ldap_sasl_interactive_bind_s (void); |
| 11009 |
int |
| 11010 |
main (void) |
| 11011 |
{ |
| 11012 |
return ldap_sasl_interactive_bind_s (); |
| 11013 |
; |
| 11014 |
return 0; |
| 11015 |
} |
| 11016 |
_ACEOF |
| 11017 |
for ac_lib in '' sasl2 |
| 11018 |
do |
| 11019 |
if test -z "$ac_lib"; then |
| 11020 |
ac_res="none required" |
| 11021 |
else |
| 11022 |
ac_res=-l$ac_lib |
| 11023 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11024 |
fi |
| 11025 |
if ac_fn_c_try_link "$LINENO" |
| 11026 |
then : |
| 11027 |
ac_cv_search_ldap_sasl_interactive_bind_s=$ac_res |
| 11028 |
fi |
| 11029 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11030 |
conftest$ac_exeext |
| 11031 |
if test ${ac_cv_search_ldap_sasl_interactive_bind_s+y} |
| 11032 |
then : |
| 11033 |
break |
| 11034 |
fi |
| 11035 |
done |
| 11036 |
if test ${ac_cv_search_ldap_sasl_interactive_bind_s+y} |
| 11037 |
then : |
| 11038 |
|
| 11039 |
else case e in #( |
| 11040 |
e) ac_cv_search_ldap_sasl_interactive_bind_s=no ;; |
| 11041 |
esac |
| 11042 |
fi |
| 11043 |
rm conftest.$ac_ext |
| 11044 |
LIBS=$ac_func_search_save_LIBS ;; |
| 11045 |
esac |
| 11046 |
fi |
| 11047 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_sasl_interactive_bind_s" >&5 |
| 11048 |
printf "%s\n" "$ac_cv_search_ldap_sasl_interactive_bind_s" >&6; } |
| 11049 |
ac_res=$ac_cv_search_ldap_sasl_interactive_bind_s |
| 11050 |
if test "$ac_res" != no |
| 11051 |
then : |
| 11052 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11053 |
|
| 11054 |
fi |
| 11055 |
|
| 11056 |
ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s" |
| 11057 |
if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes |
| 11058 |
then : |
| 11059 |
printf "%s\n" "#define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1" >>confdefs.h |
| 11060 |
|
| 11061 |
fi |
| 11062 |
|
| 11063 |
fi |
| 11064 |
|
| 11065 |
# check for extra Kerberos libraries |
| 11066 |
if test "$enable_kerberos" = "yes" |
| 11067 |
then |
| 11068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gss_krb5_ccache_name" >&5 |
| 11069 |
printf %s "checking for library containing gss_krb5_ccache_name... " >&6; } |
| 11070 |
if test ${ac_cv_search_gss_krb5_ccache_name+y} |
| 11071 |
then : |
| 11072 |
printf %s "(cached) " >&6 |
| 11073 |
else case e in #( |
| 11074 |
e) ac_func_search_save_LIBS=$LIBS |
| 11075 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11076 |
/* end confdefs.h. */ |
| 11077 |
|
| 11078 |
/* Override any GCC internal prototype to avoid an error. |
| 11079 |
Use char because int might match the return type of a GCC |
| 11080 |
builtin and then its argument prototype would still apply. |
| 11081 |
The 'extern "C"' is for builds by C++ compilers; |
| 11082 |
although this is not generally supported in C code supporting it here |
| 11083 |
has little cost and some practical benefit (sr 110532). */ |
| 11084 |
#ifdef __cplusplus |
| 11085 |
extern "C" |
| 11086 |
#endif |
| 11087 |
char gss_krb5_ccache_name (void); |
| 11088 |
int |
| 11089 |
main (void) |
| 11090 |
{ |
| 11091 |
return gss_krb5_ccache_name (); |
| 11092 |
; |
| 11093 |
return 0; |
| 11094 |
} |
| 11095 |
_ACEOF |
| 11096 |
for ac_lib in '' gssapi gssapi_krb5 |
| 11097 |
do |
| 11098 |
if test -z "$ac_lib"; then |
| 11099 |
ac_res="none required" |
| 11100 |
else |
| 11101 |
ac_res=-l$ac_lib |
| 11102 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11103 |
fi |
| 11104 |
if ac_fn_c_try_link "$LINENO" |
| 11105 |
then : |
| 11106 |
ac_cv_search_gss_krb5_ccache_name=$ac_res |
| 11107 |
fi |
| 11108 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11109 |
conftest$ac_exeext |
| 11110 |
if test ${ac_cv_search_gss_krb5_ccache_name+y} |
| 11111 |
then : |
| 11112 |
break |
| 11113 |
fi |
| 11114 |
done |
| 11115 |
if test ${ac_cv_search_gss_krb5_ccache_name+y} |
| 11116 |
then : |
| 11117 |
|
| 11118 |
else case e in #( |
| 11119 |
e) ac_cv_search_gss_krb5_ccache_name=no ;; |
| 11120 |
esac |
| 11121 |
fi |
| 11122 |
rm conftest.$ac_ext |
| 11123 |
LIBS=$ac_func_search_save_LIBS ;; |
| 11124 |
esac |
| 11125 |
fi |
| 11126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_krb5_ccache_name" >&5 |
| 11127 |
printf "%s\n" "$ac_cv_search_gss_krb5_ccache_name" >&6; } |
| 11128 |
ac_res=$ac_cv_search_gss_krb5_ccache_name |
| 11129 |
if test "$ac_res" != no |
| 11130 |
then : |
| 11131 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11132 |
|
| 11133 |
fi |
| 11134 |
|
| 11135 |
ac_fn_c_check_func "$LINENO" "gss_krb5_ccache_name" "ac_cv_func_gss_krb5_ccache_name" |
| 11136 |
if test "x$ac_cv_func_gss_krb5_ccache_name" = xyes |
| 11137 |
then : |
| 11138 |
printf "%s\n" "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h |
| 11139 |
|
| 11140 |
fi |
| 11141 |
|
| 11142 |
|
| 11143 |
# save CFLAGS and LIBS to restore later |
| 11144 |
krb5_save_CFLAGS="$CFLAGS" |
| 11145 |
krb5_save_LIBS="$LIBS" |
| 11146 |
|
| 11147 |
# find library that contains krb5_is_thread_safe |
| 11148 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5 |
| 11149 |
printf %s "checking for library containing krb5_sendauth... " >&6; } |
| 11150 |
if test ${ac_cv_search_krb5_sendauth+y} |
| 11151 |
then : |
| 11152 |
printf %s "(cached) " >&6 |
| 11153 |
else case e in #( |
| 11154 |
e) ac_func_search_save_LIBS=$LIBS |
| 11155 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11156 |
/* end confdefs.h. */ |
| 11157 |
|
| 11158 |
/* Override any GCC internal prototype to avoid an error. |
| 11159 |
Use char because int might match the return type of a GCC |
| 11160 |
builtin and then its argument prototype would still apply. |
| 11161 |
The 'extern "C"' is for builds by C++ compilers; |
| 11162 |
although this is not generally supported in C code supporting it here |
| 11163 |
has little cost and some practical benefit (sr 110532). */ |
| 11164 |
#ifdef __cplusplus |
| 11165 |
extern "C" |
| 11166 |
#endif |
| 11167 |
char krb5_sendauth (void); |
| 11168 |
int |
| 11169 |
main (void) |
| 11170 |
{ |
| 11171 |
return krb5_sendauth (); |
| 11172 |
; |
| 11173 |
return 0; |
| 11174 |
} |
| 11175 |
_ACEOF |
| 11176 |
for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' |
| 11177 |
do |
| 11178 |
if test -z "$ac_lib"; then |
| 11179 |
ac_res="none required" |
| 11180 |
else |
| 11181 |
ac_res=-l$ac_lib |
| 11182 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11183 |
fi |
| 11184 |
if ac_fn_c_try_link "$LINENO" |
| 11185 |
then : |
| 11186 |
ac_cv_search_krb5_sendauth=$ac_res |
| 11187 |
fi |
| 11188 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11189 |
conftest$ac_exeext |
| 11190 |
if test ${ac_cv_search_krb5_sendauth+y} |
| 11191 |
then : |
| 11192 |
break |
| 11193 |
fi |
| 11194 |
done |
| 11195 |
if test ${ac_cv_search_krb5_sendauth+y} |
| 11196 |
then : |
| 11197 |
|
| 11198 |
else case e in #( |
| 11199 |
e) ac_cv_search_krb5_sendauth=no ;; |
| 11200 |
esac |
| 11201 |
fi |
| 11202 |
rm conftest.$ac_ext |
| 11203 |
LIBS=$ac_func_search_save_LIBS ;; |
| 11204 |
esac |
| 11205 |
fi |
| 11206 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5 |
| 11207 |
printf "%s\n" "$ac_cv_search_krb5_sendauth" >&6; } |
| 11208 |
ac_res=$ac_cv_search_krb5_sendauth |
| 11209 |
if test "$ac_res" != no |
| 11210 |
then : |
| 11211 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11212 |
|
| 11213 |
fi |
| 11214 |
|
| 11215 |
ac_fn_c_check_func "$LINENO" "krb5_is_thread_safe" "ac_cv_func_krb5_is_thread_safe" |
| 11216 |
if test "x$ac_cv_func_krb5_is_thread_safe" = xyes |
| 11217 |
then : |
| 11218 |
printf "%s\n" "#define HAVE_KRB5_IS_THREAD_SAFE 1" >>confdefs.h |
| 11219 |
|
| 11220 |
fi |
| 11221 |
|
| 11222 |
|
| 11223 |
# see if krb5 is thread safe |
| 11224 |
if test "x$ac_cv_func_krb5_is_thread_safe" == "xyes" |
| 11225 |
then |
| 11226 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5 thread safety" >&5 |
| 11227 |
printf %s "checking krb5 thread safety... " >&6; } |
| 11228 |
if test ${nslcd_cv_krb5_is_thread_safe+y} |
| 11229 |
then : |
| 11230 |
printf %s "(cached) " >&6 |
| 11231 |
else case e in #( |
| 11232 |
e) if test "$cross_compiling" = yes |
| 11233 |
then : |
| 11234 |
nslcd_cv_krb5_is_thread_safe=unknown |
| 11235 |
else case e in #( |
| 11236 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11237 |
/* end confdefs.h. */ |
| 11238 |
|
| 11239 |
#include <krb5.h> |
| 11240 |
|
| 11241 |
int |
| 11242 |
main (void) |
| 11243 |
{ |
| 11244 |
|
| 11245 |
if (!krb5_is_thread_safe()) |
| 11246 |
return 1; |
| 11247 |
|
| 11248 |
; |
| 11249 |
return 0; |
| 11250 |
} |
| 11251 |
_ACEOF |
| 11252 |
if ac_fn_c_try_run "$LINENO" |
| 11253 |
then : |
| 11254 |
nslcd_cv_krb5_is_thread_safe=yes |
| 11255 |
else case e in #( |
| 11256 |
e) nslcd_cv_krb5_is_thread_safe=no ;; |
| 11257 |
esac |
| 11258 |
fi |
| 11259 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11260 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11261 |
esac |
| 11262 |
fi |
| 11263 |
;; |
| 11264 |
esac |
| 11265 |
fi |
| 11266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_krb5_is_thread_safe" >&5 |
| 11267 |
printf "%s\n" "$nslcd_cv_krb5_is_thread_safe" >&6; } |
| 11268 |
if test "x$nslcd_cv_krb5_is_thread_safe" == "xno" |
| 11269 |
then |
| 11270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: krb5 is NOT thread safe" >&5 |
| 11271 |
printf "%s\n" "$as_me: WARNING: krb5 is NOT thread safe" >&2;} |
| 11272 |
fi |
| 11273 |
fi |
| 11274 |
|
| 11275 |
# restore CFLAGS and LIBS because we don't directly use krb5 |
| 11276 |
CFLAGS="$krb5_save_CFLAGS" |
| 11277 |
LIBS="$krb5_save_LIBS" |
| 11278 |
|
| 11279 |
fi |
| 11280 |
|
| 11281 |
# check for ldap function availability |
| 11282 |
ac_fn_c_check_func "$LINENO" "ber_bvfree" "ac_cv_func_ber_bvfree" |
| 11283 |
if test "x$ac_cv_func_ber_bvfree" = xyes |
| 11284 |
then : |
| 11285 |
printf "%s\n" "#define HAVE_BER_BVFREE 1" >>confdefs.h |
| 11286 |
|
| 11287 |
fi |
| 11288 |
ac_fn_c_check_func "$LINENO" "ber_free" "ac_cv_func_ber_free" |
| 11289 |
if test "x$ac_cv_func_ber_free" = xyes |
| 11290 |
then : |
| 11291 |
printf "%s\n" "#define HAVE_BER_FREE 1" >>confdefs.h |
| 11292 |
|
| 11293 |
fi |
| 11294 |
ac_fn_c_check_func "$LINENO" "ber_set_option" "ac_cv_func_ber_set_option" |
| 11295 |
if test "x$ac_cv_func_ber_set_option" = xyes |
| 11296 |
then : |
| 11297 |
printf "%s\n" "#define HAVE_BER_SET_OPTION 1" >>confdefs.h |
| 11298 |
|
| 11299 |
fi |
| 11300 |
ac_fn_c_check_func "$LINENO" "ber_get_enum" "ac_cv_func_ber_get_enum" |
| 11301 |
if test "x$ac_cv_func_ber_get_enum" = xyes |
| 11302 |
then : |
| 11303 |
printf "%s\n" "#define HAVE_BER_GET_ENUM 1" >>confdefs.h |
| 11304 |
|
| 11305 |
fi |
| 11306 |
|
| 11307 |
ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize" |
| 11308 |
if test "x$ac_cv_func_ldap_initialize" = xyes |
| 11309 |
then : |
| 11310 |
printf "%s\n" "#define HAVE_LDAP_INITIALIZE 1" >>confdefs.h |
| 11311 |
|
| 11312 |
fi |
| 11313 |
ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s" |
| 11314 |
if test "x$ac_cv_func_ldap_start_tls_s" = xyes |
| 11315 |
then : |
| 11316 |
printf "%s\n" "#define HAVE_LDAP_START_TLS_S 1" >>confdefs.h |
| 11317 |
|
| 11318 |
fi |
| 11319 |
|
| 11320 |
ac_fn_c_check_func "$LINENO" "ldap_get_option" "ac_cv_func_ldap_get_option" |
| 11321 |
if test "x$ac_cv_func_ldap_get_option" = xyes |
| 11322 |
then : |
| 11323 |
printf "%s\n" "#define HAVE_LDAP_GET_OPTION 1" >>confdefs.h |
| 11324 |
|
| 11325 |
fi |
| 11326 |
ac_fn_c_check_func "$LINENO" "ldap_set_option" "ac_cv_func_ldap_set_option" |
| 11327 |
if test "x$ac_cv_func_ldap_set_option" = xyes |
| 11328 |
then : |
| 11329 |
printf "%s\n" "#define HAVE_LDAP_SET_OPTION 1" >>confdefs.h |
| 11330 |
|
| 11331 |
fi |
| 11332 |
ac_fn_c_check_func "$LINENO" "ldap_set_rebind_proc" "ac_cv_func_ldap_set_rebind_proc" |
| 11333 |
if test "x$ac_cv_func_ldap_set_rebind_proc" = xyes |
| 11334 |
then : |
| 11335 |
printf "%s\n" "#define HAVE_LDAP_SET_REBIND_PROC 1" >>confdefs.h |
| 11336 |
|
| 11337 |
fi |
| 11338 |
|
| 11339 |
ac_fn_c_check_func "$LINENO" "ldap_simple_bind_s" "ac_cv_func_ldap_simple_bind_s" |
| 11340 |
if test "x$ac_cv_func_ldap_simple_bind_s" = xyes |
| 11341 |
then : |
| 11342 |
printf "%s\n" "#define HAVE_LDAP_SIMPLE_BIND_S 1" >>confdefs.h |
| 11343 |
|
| 11344 |
fi |
| 11345 |
ac_fn_c_check_func "$LINENO" "ldap_sasl_bind" "ac_cv_func_ldap_sasl_bind" |
| 11346 |
if test "x$ac_cv_func_ldap_sasl_bind" = xyes |
| 11347 |
then : |
| 11348 |
printf "%s\n" "#define HAVE_LDAP_SASL_BIND 1" >>confdefs.h |
| 11349 |
|
| 11350 |
fi |
| 11351 |
ac_fn_c_check_func "$LINENO" "ldap_sasl_bind_s" "ac_cv_func_ldap_sasl_bind_s" |
| 11352 |
if test "x$ac_cv_func_ldap_sasl_bind_s" = xyes |
| 11353 |
then : |
| 11354 |
printf "%s\n" "#define HAVE_LDAP_SASL_BIND_S 1" >>confdefs.h |
| 11355 |
|
| 11356 |
fi |
| 11357 |
ac_fn_c_check_func "$LINENO" "ldap_unbind" "ac_cv_func_ldap_unbind" |
| 11358 |
if test "x$ac_cv_func_ldap_unbind" = xyes |
| 11359 |
then : |
| 11360 |
printf "%s\n" "#define HAVE_LDAP_UNBIND 1" >>confdefs.h |
| 11361 |
|
| 11362 |
fi |
| 11363 |
|
| 11364 |
ac_fn_c_check_func "$LINENO" "ldap_search_ext" "ac_cv_func_ldap_search_ext" |
| 11365 |
if test "x$ac_cv_func_ldap_search_ext" = xyes |
| 11366 |
then : |
| 11367 |
printf "%s\n" "#define HAVE_LDAP_SEARCH_EXT 1" >>confdefs.h |
| 11368 |
|
| 11369 |
fi |
| 11370 |
ac_fn_c_check_func "$LINENO" "ldap_modify_ext_s" "ac_cv_func_ldap_modify_ext_s" |
| 11371 |
if test "x$ac_cv_func_ldap_modify_ext_s" = xyes |
| 11372 |
then : |
| 11373 |
printf "%s\n" "#define HAVE_LDAP_MODIFY_EXT_S 1" >>confdefs.h |
| 11374 |
|
| 11375 |
fi |
| 11376 |
ac_fn_c_check_func "$LINENO" "ldap_extended_operation_s" "ac_cv_func_ldap_extended_operation_s" |
| 11377 |
if test "x$ac_cv_func_ldap_extended_operation_s" = xyes |
| 11378 |
then : |
| 11379 |
printf "%s\n" "#define HAVE_LDAP_EXTENDED_OPERATION_S 1" >>confdefs.h |
| 11380 |
|
| 11381 |
fi |
| 11382 |
|
| 11383 |
ac_fn_c_check_func "$LINENO" "ldap_explode_dn" "ac_cv_func_ldap_explode_dn" |
| 11384 |
if test "x$ac_cv_func_ldap_explode_dn" = xyes |
| 11385 |
then : |
| 11386 |
printf "%s\n" "#define HAVE_LDAP_EXPLODE_DN 1" >>confdefs.h |
| 11387 |
|
| 11388 |
fi |
| 11389 |
ac_fn_c_check_func "$LINENO" "ldap_explode_rdn" "ac_cv_func_ldap_explode_rdn" |
| 11390 |
if test "x$ac_cv_func_ldap_explode_rdn" = xyes |
| 11391 |
then : |
| 11392 |
printf "%s\n" "#define HAVE_LDAP_EXPLODE_RDN 1" >>confdefs.h |
| 11393 |
|
| 11394 |
fi |
| 11395 |
|
| 11396 |
ac_fn_c_check_func "$LINENO" "ldap_domain2hostlist" "ac_cv_func_ldap_domain2hostlist" |
| 11397 |
if test "x$ac_cv_func_ldap_domain2hostlist" = xyes |
| 11398 |
then : |
| 11399 |
printf "%s\n" "#define HAVE_LDAP_DOMAIN2HOSTLIST 1" >>confdefs.h |
| 11400 |
|
| 11401 |
fi |
| 11402 |
ac_fn_c_check_func "$LINENO" "ldap_domain2dn" "ac_cv_func_ldap_domain2dn" |
| 11403 |
if test "x$ac_cv_func_ldap_domain2dn" = xyes |
| 11404 |
then : |
| 11405 |
printf "%s\n" "#define HAVE_LDAP_DOMAIN2DN 1" >>confdefs.h |
| 11406 |
|
| 11407 |
fi |
| 11408 |
|
| 11409 |
ac_fn_c_check_func "$LINENO" "ldap_result" "ac_cv_func_ldap_result" |
| 11410 |
if test "x$ac_cv_func_ldap_result" = xyes |
| 11411 |
then : |
| 11412 |
printf "%s\n" "#define HAVE_LDAP_RESULT 1" >>confdefs.h |
| 11413 |
|
| 11414 |
fi |
| 11415 |
ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result" |
| 11416 |
if test "x$ac_cv_func_ldap_parse_result" = xyes |
| 11417 |
then : |
| 11418 |
printf "%s\n" "#define HAVE_LDAP_PARSE_RESULT 1" >>confdefs.h |
| 11419 |
|
| 11420 |
fi |
| 11421 |
ac_fn_c_check_func "$LINENO" "ldap_msgfree" "ac_cv_func_ldap_msgfree" |
| 11422 |
if test "x$ac_cv_func_ldap_msgfree" = xyes |
| 11423 |
then : |
| 11424 |
printf "%s\n" "#define HAVE_LDAP_MSGFREE 1" >>confdefs.h |
| 11425 |
|
| 11426 |
fi |
| 11427 |
ac_fn_c_check_func "$LINENO" "ldap_memfree" "ac_cv_func_ldap_memfree" |
| 11428 |
if test "x$ac_cv_func_ldap_memfree" = xyes |
| 11429 |
then : |
| 11430 |
printf "%s\n" "#define HAVE_LDAP_MEMFREE 1" >>confdefs.h |
| 11431 |
|
| 11432 |
fi |
| 11433 |
|
| 11434 |
ac_fn_c_check_func "$LINENO" "ldap_get_dn" "ac_cv_func_ldap_get_dn" |
| 11435 |
if test "x$ac_cv_func_ldap_get_dn" = xyes |
| 11436 |
then : |
| 11437 |
printf "%s\n" "#define HAVE_LDAP_GET_DN 1" >>confdefs.h |
| 11438 |
|
| 11439 |
fi |
| 11440 |
ac_fn_c_check_func "$LINENO" "ldap_first_attribute" "ac_cv_func_ldap_first_attribute" |
| 11441 |
if test "x$ac_cv_func_ldap_first_attribute" = xyes |
| 11442 |
then : |
| 11443 |
printf "%s\n" "#define HAVE_LDAP_FIRST_ATTRIBUTE 1" >>confdefs.h |
| 11444 |
|
| 11445 |
fi |
| 11446 |
ac_fn_c_check_func "$LINENO" "ldap_next_attribute" "ac_cv_func_ldap_next_attribute" |
| 11447 |
if test "x$ac_cv_func_ldap_next_attribute" = xyes |
| 11448 |
then : |
| 11449 |
printf "%s\n" "#define HAVE_LDAP_NEXT_ATTRIBUTE 1" >>confdefs.h |
| 11450 |
|
| 11451 |
fi |
| 11452 |
|
| 11453 |
ac_fn_c_check_func "$LINENO" "ldap_get_values" "ac_cv_func_ldap_get_values" |
| 11454 |
if test "x$ac_cv_func_ldap_get_values" = xyes |
| 11455 |
then : |
| 11456 |
printf "%s\n" "#define HAVE_LDAP_GET_VALUES 1" >>confdefs.h |
| 11457 |
|
| 11458 |
fi |
| 11459 |
ac_fn_c_check_func "$LINENO" "ldap_value_free" "ac_cv_func_ldap_value_free" |
| 11460 |
if test "x$ac_cv_func_ldap_value_free" = xyes |
| 11461 |
then : |
| 11462 |
printf "%s\n" "#define HAVE_LDAP_VALUE_FREE 1" >>confdefs.h |
| 11463 |
|
| 11464 |
fi |
| 11465 |
|
| 11466 |
ac_fn_c_check_func "$LINENO" "ldap_get_values_len" "ac_cv_func_ldap_get_values_len" |
| 11467 |
if test "x$ac_cv_func_ldap_get_values_len" = xyes |
| 11468 |
then : |
| 11469 |
printf "%s\n" "#define HAVE_LDAP_GET_VALUES_LEN 1" >>confdefs.h |
| 11470 |
|
| 11471 |
fi |
| 11472 |
ac_fn_c_check_func "$LINENO" "ldap_count_values_len" "ac_cv_func_ldap_count_values_len" |
| 11473 |
if test "x$ac_cv_func_ldap_count_values_len" = xyes |
| 11474 |
then : |
| 11475 |
printf "%s\n" "#define HAVE_LDAP_COUNT_VALUES_LEN 1" >>confdefs.h |
| 11476 |
|
| 11477 |
fi |
| 11478 |
ac_fn_c_check_func "$LINENO" "ldap_value_free_len" "ac_cv_func_ldap_value_free_len" |
| 11479 |
if test "x$ac_cv_func_ldap_value_free_len" = xyes |
| 11480 |
then : |
| 11481 |
printf "%s\n" "#define HAVE_LDAP_VALUE_FREE_LEN 1" >>confdefs.h |
| 11482 |
|
| 11483 |
fi |
| 11484 |
|
| 11485 |
ac_fn_c_check_func "$LINENO" "ldap_err2string" "ac_cv_func_ldap_err2string" |
| 11486 |
if test "x$ac_cv_func_ldap_err2string" = xyes |
| 11487 |
then : |
| 11488 |
printf "%s\n" "#define HAVE_LDAP_ERR2STRING 1" >>confdefs.h |
| 11489 |
|
| 11490 |
fi |
| 11491 |
ac_fn_c_check_func "$LINENO" "ldap_abandon" "ac_cv_func_ldap_abandon" |
| 11492 |
if test "x$ac_cv_func_ldap_abandon" = xyes |
| 11493 |
then : |
| 11494 |
printf "%s\n" "#define HAVE_LDAP_ABANDON 1" >>confdefs.h |
| 11495 |
|
| 11496 |
fi |
| 11497 |
|
| 11498 |
ac_fn_c_check_func "$LINENO" "ldap_control_create" "ac_cv_func_ldap_control_create" |
| 11499 |
if test "x$ac_cv_func_ldap_control_create" = xyes |
| 11500 |
then : |
| 11501 |
printf "%s\n" "#define HAVE_LDAP_CONTROL_CREATE 1" >>confdefs.h |
| 11502 |
|
| 11503 |
fi |
| 11504 |
ac_fn_c_check_func "$LINENO" "ldap_create_control" "ac_cv_func_ldap_create_control" |
| 11505 |
if test "x$ac_cv_func_ldap_create_control" = xyes |
| 11506 |
then : |
| 11507 |
printf "%s\n" "#define HAVE_LDAP_CREATE_CONTROL 1" >>confdefs.h |
| 11508 |
|
| 11509 |
fi |
| 11510 |
ac_fn_c_check_func "$LINENO" "ldap_control_find" "ac_cv_func_ldap_control_find" |
| 11511 |
if test "x$ac_cv_func_ldap_control_find" = xyes |
| 11512 |
then : |
| 11513 |
printf "%s\n" "#define HAVE_LDAP_CONTROL_FIND 1" >>confdefs.h |
| 11514 |
|
| 11515 |
fi |
| 11516 |
|
| 11517 |
ac_fn_c_check_func "$LINENO" "ldap_controls_free" "ac_cv_func_ldap_controls_free" |
| 11518 |
if test "x$ac_cv_func_ldap_controls_free" = xyes |
| 11519 |
then : |
| 11520 |
printf "%s\n" "#define HAVE_LDAP_CONTROLS_FREE 1" >>confdefs.h |
| 11521 |
|
| 11522 |
fi |
| 11523 |
ac_fn_c_check_func "$LINENO" "ldap_control_free" "ac_cv_func_ldap_control_free" |
| 11524 |
if test "x$ac_cv_func_ldap_control_free" = xyes |
| 11525 |
then : |
| 11526 |
printf "%s\n" "#define HAVE_LDAP_CONTROL_FREE 1" >>confdefs.h |
| 11527 |
|
| 11528 |
fi |
| 11529 |
ac_fn_c_check_func "$LINENO" "ldap_get_entry_controls" "ac_cv_func_ldap_get_entry_controls" |
| 11530 |
if test "x$ac_cv_func_ldap_get_entry_controls" = xyes |
| 11531 |
then : |
| 11532 |
printf "%s\n" "#define HAVE_LDAP_GET_ENTRY_CONTROLS 1" >>confdefs.h |
| 11533 |
|
| 11534 |
fi |
| 11535 |
|
| 11536 |
ac_fn_c_check_func "$LINENO" "ldap_parse_passwordpolicy_control" "ac_cv_func_ldap_parse_passwordpolicy_control" |
| 11537 |
if test "x$ac_cv_func_ldap_parse_passwordpolicy_control" = xyes |
| 11538 |
then : |
| 11539 |
printf "%s\n" "#define HAVE_LDAP_PARSE_PASSWORDPOLICY_CONTROL 1" >>confdefs.h |
| 11540 |
|
| 11541 |
fi |
| 11542 |
ac_fn_c_check_func "$LINENO" "ldap_passwordpolicy_err2txt" "ac_cv_func_ldap_passwordpolicy_err2txt" |
| 11543 |
if test "x$ac_cv_func_ldap_passwordpolicy_err2txt" = xyes |
| 11544 |
then : |
| 11545 |
printf "%s\n" "#define HAVE_LDAP_PASSWORDPOLICY_ERR2TXT 1" >>confdefs.h |
| 11546 |
|
| 11547 |
fi |
| 11548 |
|
| 11549 |
ac_fn_c_check_func "$LINENO" "ldap_create_deref_control" "ac_cv_func_ldap_create_deref_control" |
| 11550 |
if test "x$ac_cv_func_ldap_create_deref_control" = xyes |
| 11551 |
then : |
| 11552 |
printf "%s\n" "#define HAVE_LDAP_CREATE_DEREF_CONTROL 1" >>confdefs.h |
| 11553 |
|
| 11554 |
fi |
| 11555 |
ac_fn_c_check_func "$LINENO" "ldap_create_deref_control_value" "ac_cv_func_ldap_create_deref_control_value" |
| 11556 |
if test "x$ac_cv_func_ldap_create_deref_control_value" = xyes |
| 11557 |
then : |
| 11558 |
printf "%s\n" "#define HAVE_LDAP_CREATE_DEREF_CONTROL_VALUE 1" >>confdefs.h |
| 11559 |
|
| 11560 |
fi |
| 11561 |
|
| 11562 |
ac_fn_c_check_func "$LINENO" "ldap_parse_deref_control" "ac_cv_func_ldap_parse_deref_control" |
| 11563 |
if test "x$ac_cv_func_ldap_parse_deref_control" = xyes |
| 11564 |
then : |
| 11565 |
printf "%s\n" "#define HAVE_LDAP_PARSE_DEREF_CONTROL 1" >>confdefs.h |
| 11566 |
|
| 11567 |
fi |
| 11568 |
ac_fn_c_check_func "$LINENO" "ldap_derefresponse_free" "ac_cv_func_ldap_derefresponse_free" |
| 11569 |
if test "x$ac_cv_func_ldap_derefresponse_free" = xyes |
| 11570 |
then : |
| 11571 |
printf "%s\n" "#define HAVE_LDAP_DEREFRESPONSE_FREE 1" >>confdefs.h |
| 11572 |
|
| 11573 |
fi |
| 11574 |
|
| 11575 |
|
| 11576 |
# replace ldap_create_page_control() and ldap_parse_page_control() |
| 11577 |
|
| 11578 |
for ac_func in ldap_create_page_control ldap_parse_page_control |
| 11579 |
do : |
| 11580 |
as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` |
| 11581 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11582 |
if eval test \"x\$"$as_ac_var"\" = x"yes" |
| 11583 |
then : |
| 11584 |
cat >>confdefs.h <<_ACEOF |
| 11585 |
#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 |
| 11586 |
_ACEOF |
| 11587 |
|
| 11588 |
else case e in #( |
| 11589 |
e) case " $LIBOBJS " in |
| 11590 |
*" pagectrl.$ac_objext "* ) ;; |
| 11591 |
*) LIBOBJS="$LIBOBJS pagectrl.$ac_objext" |
| 11592 |
;; |
| 11593 |
esac |
| 11594 |
;; |
| 11595 |
esac |
| 11596 |
fi |
| 11597 |
|
| 11598 |
done |
| 11599 |
ac_fn_check_decl "$LINENO" "ldap_extended_operation_s" "ac_cv_have_decl_ldap_extended_operation_s" " |
| 11600 |
#if HAVE_LBER_H |
| 11601 |
#include <lber.h> |
| 11602 |
#endif |
| 11603 |
#include <ldap.h> |
| 11604 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 11605 |
if test "x$ac_cv_have_decl_ldap_extended_operation_s" = xyes |
| 11606 |
then : |
| 11607 |
ac_have_decl=1 |
| 11608 |
else case e in #( |
| 11609 |
e) ac_have_decl=0 ;; |
| 11610 |
esac |
| 11611 |
fi |
| 11612 |
printf "%s\n" "#define HAVE_DECL_LDAP_EXTENDED_OPERATION_S $ac_have_decl" >>confdefs.h |
| 11613 |
|
| 11614 |
|
| 11615 |
# replace other ldap functions |
| 11616 |
ac_fn_c_check_func "$LINENO" "ldap_passwd_s" "ac_cv_func_ldap_passwd_s" |
| 11617 |
if test "x$ac_cv_func_ldap_passwd_s" = xyes |
| 11618 |
then : |
| 11619 |
printf "%s\n" "#define HAVE_LDAP_PASSWD_S 1" >>confdefs.h |
| 11620 |
|
| 11621 |
else case e in #( |
| 11622 |
e) case " $LIBOBJS " in |
| 11623 |
*" ldap_passwd_s.$ac_objext "* ) ;; |
| 11624 |
*) LIBOBJS="$LIBOBJS ldap_passwd_s.$ac_objext" |
| 11625 |
;; |
| 11626 |
esac |
| 11627 |
;; |
| 11628 |
esac |
| 11629 |
fi |
| 11630 |
|
| 11631 |
ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize" |
| 11632 |
if test "x$ac_cv_func_ldap_initialize" = xyes |
| 11633 |
then : |
| 11634 |
printf "%s\n" "#define HAVE_LDAP_INITIALIZE 1" >>confdefs.h |
| 11635 |
|
| 11636 |
else case e in #( |
| 11637 |
e) case " $LIBOBJS " in |
| 11638 |
*" ldap_initialize.$ac_objext "* ) ;; |
| 11639 |
*) LIBOBJS="$LIBOBJS ldap_initialize.$ac_objext" |
| 11640 |
;; |
| 11641 |
esac |
| 11642 |
;; |
| 11643 |
esac |
| 11644 |
fi |
| 11645 |
|
| 11646 |
ac_fn_c_check_func "$LINENO" "ldap_parse_passwordpolicy_control" "ac_cv_func_ldap_parse_passwordpolicy_control" |
| 11647 |
if test "x$ac_cv_func_ldap_parse_passwordpolicy_control" = xyes |
| 11648 |
then : |
| 11649 |
printf "%s\n" "#define HAVE_LDAP_PARSE_PASSWORDPOLICY_CONTROL 1" >>confdefs.h |
| 11650 |
|
| 11651 |
else case e in #( |
| 11652 |
e) case " $LIBOBJS " in |
| 11653 |
*" ldap_parse_passwordpolicy_control.$ac_objext "* ) ;; |
| 11654 |
*) LIBOBJS="$LIBOBJS ldap_parse_passwordpolicy_control.$ac_objext" |
| 11655 |
;; |
| 11656 |
esac |
| 11657 |
;; |
| 11658 |
esac |
| 11659 |
fi |
| 11660 |
|
| 11661 |
ac_fn_c_check_func "$LINENO" "ldap_passwordpolicy_err2txt" "ac_cv_func_ldap_passwordpolicy_err2txt" |
| 11662 |
if test "x$ac_cv_func_ldap_passwordpolicy_err2txt" = xyes |
| 11663 |
then : |
| 11664 |
printf "%s\n" "#define HAVE_LDAP_PASSWORDPOLICY_ERR2TXT 1" >>confdefs.h |
| 11665 |
|
| 11666 |
else case e in #( |
| 11667 |
e) case " $LIBOBJS " in |
| 11668 |
*" ldap_passwordpolicy_err2txt.$ac_objext "* ) ;; |
| 11669 |
*) LIBOBJS="$LIBOBJS ldap_passwordpolicy_err2txt.$ac_objext" |
| 11670 |
;; |
| 11671 |
esac |
| 11672 |
;; |
| 11673 |
esac |
| 11674 |
fi |
| 11675 |
|
| 11676 |
|
| 11677 |
# check the number of arguments that ldap_set_rebind_proc() uses |
| 11678 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to ldap_set_rebind_proc" >&5 |
| 11679 |
printf %s "checking number of arguments to ldap_set_rebind_proc... " >&6; } |
| 11680 |
if test ${nss_ldapd_cv_ldap_set_rebind_proc_args+y} |
| 11681 |
then : |
| 11682 |
printf %s "(cached) " >&6 |
| 11683 |
else case e in #( |
| 11684 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11685 |
/* end confdefs.h. */ |
| 11686 |
|
| 11687 |
#include <lber.h> |
| 11688 |
#include <ldap.h> |
| 11689 |
|
| 11690 |
int |
| 11691 |
main (void) |
| 11692 |
{ |
| 11693 |
|
| 11694 |
ldap_set_rebind_proc(0, 0, 0); |
| 11695 |
|
| 11696 |
; |
| 11697 |
return 0; |
| 11698 |
} |
| 11699 |
_ACEOF |
| 11700 |
if ac_fn_c_try_compile "$LINENO" |
| 11701 |
then : |
| 11702 |
nss_ldapd_cv_ldap_set_rebind_proc_args=3 |
| 11703 |
else case e in #( |
| 11704 |
e) nss_ldapd_cv_ldap_set_rebind_proc_args=2 ;; |
| 11705 |
esac |
| 11706 |
fi |
| 11707 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11708 |
esac |
| 11709 |
fi |
| 11710 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nss_ldapd_cv_ldap_set_rebind_proc_args" >&5 |
| 11711 |
printf "%s\n" "$nss_ldapd_cv_ldap_set_rebind_proc_args" >&6; } |
| 11712 |
|
| 11713 |
printf "%s\n" "#define LDAP_SET_REBIND_PROC_ARGS $nss_ldapd_cv_ldap_set_rebind_proc_args" >>confdefs.h |
| 11714 |
|
| 11715 |
|
| 11716 |
# check the return type of ldap_set_rebind_proc() |
| 11717 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of ldap_set_rebind_proc" >&5 |
| 11718 |
printf %s "checking return type of ldap_set_rebind_proc... " >&6; } |
| 11719 |
if test ${nss_ldapd_cv_ldap_set_rebind_proc_type+y} |
| 11720 |
then : |
| 11721 |
printf %s "(cached) " >&6 |
| 11722 |
else case e in #( |
| 11723 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11724 |
/* end confdefs.h. */ |
| 11725 |
|
| 11726 |
#include <lber.h> |
| 11727 |
#include <ldap.h> |
| 11728 |
|
| 11729 |
int |
| 11730 |
main (void) |
| 11731 |
{ |
| 11732 |
|
| 11733 |
#if LDAP_SET_REBIND_PROC_ARGS == 3 |
| 11734 |
return ldap_set_rebind_proc(0, 0, 0); |
| 11735 |
#else |
| 11736 |
return ldap_set_rebind_proc(0, 0); |
| 11737 |
#endif |
| 11738 |
|
| 11739 |
; |
| 11740 |
return 0; |
| 11741 |
} |
| 11742 |
_ACEOF |
| 11743 |
if ac_fn_c_try_compile "$LINENO" |
| 11744 |
then : |
| 11745 |
nss_ldapd_cv_ldap_set_rebind_proc_type=int |
| 11746 |
else case e in #( |
| 11747 |
e) nss_ldapd_cv_ldap_set_rebind_proc_type=void ;; |
| 11748 |
esac |
| 11749 |
fi |
| 11750 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11751 |
esac |
| 11752 |
fi |
| 11753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nss_ldapd_cv_ldap_set_rebind_proc_type" >&5 |
| 11754 |
printf "%s\n" "$nss_ldapd_cv_ldap_set_rebind_proc_type" >&6; } |
| 11755 |
if test "x$nss_ldapd_cv_ldap_set_rebind_proc_type" = "xvoid" |
| 11756 |
then |
| 11757 |
|
| 11758 |
printf "%s\n" "#define LDAP_SET_REBIND_PROC_RETURNS_VOID 1" >>confdefs.h |
| 11759 |
|
| 11760 |
fi |
| 11761 |
|
| 11762 |
# check for broken implementations of ldap_create_deref_control() |
| 11763 |
if test "x$ac_cv_func_ldap_create_deref_control" = "xyes" |
| 11764 |
then |
| 11765 |
# this bug cannot be determined on compile time so we run a |
| 11766 |
# small test program |
| 11767 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ldap_create_deref_control() implementation" >&5 |
| 11768 |
printf %s "checking ldap_create_deref_control() implementation... " >&6; } |
| 11769 |
if test ${nslcd_cv_ldap_create_deref_control_working+y} |
| 11770 |
then : |
| 11771 |
printf %s "(cached) " >&6 |
| 11772 |
else case e in #( |
| 11773 |
e) if test "$cross_compiling" = yes |
| 11774 |
then : |
| 11775 |
nslcd_cv_ldap_create_deref_control_working=cross |
| 11776 |
else case e in #( |
| 11777 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11778 |
/* end confdefs.h. */ |
| 11779 |
|
| 11780 |
#include <stdio.h> |
| 11781 |
#include <lber.h> |
| 11782 |
#include <ldap.h> |
| 11783 |
|
| 11784 |
int |
| 11785 |
main (void) |
| 11786 |
{ |
| 11787 |
|
| 11788 |
int rc; |
| 11789 |
LDAP *ld; |
| 11790 |
LDAPControl *ctrls[2] = {NULL, NULL}; |
| 11791 |
struct LDAPDerefSpec ds[2]; |
| 11792 |
char *attrs[2] = {"uid", NULL}; |
| 11793 |
ld = ldap_init("localhost", LDAP_PORT); |
| 11794 |
if (ld == NULL) |
| 11795 |
{ |
| 11796 |
fprintf(stderr, "ldap_init() failed\n"); |
| 11797 |
return 2; |
| 11798 |
} |
| 11799 |
ds[0].derefAttr = "member"; |
| 11800 |
ds[0].attributes = attrs; |
| 11801 |
ds[1].derefAttr = NULL; |
| 11802 |
rc = ldap_create_deref_control(ld, ds, 0, &ctrls[0]); |
| 11803 |
if (rc != LDAP_SUCCESS) |
| 11804 |
{ |
| 11805 |
fprintf(stderr, "ldap_create_deref_control() failed: %s\n", |
| 11806 |
ldap_err2string(rc)); |
| 11807 |
return 2; |
| 11808 |
} |
| 11809 |
if (ldap_control_find(LDAP_CONTROL_X_DEREF, ctrls, NULL) != NULL) |
| 11810 |
return 0; |
| 11811 |
if (ldap_control_find(LDAP_CONTROL_PAGEDRESULTS, ctrls, NULL) != NULL) |
| 11812 |
{ |
| 11813 |
fprintf(stderr, "ldap_create_deref_control() created LDAP_CONTROL_PAGEDRESULTS control\n"); |
| 11814 |
return 3; |
| 11815 |
} |
| 11816 |
fprintf(stderr, "ldap_create_deref_control() created unknown control\n"); |
| 11817 |
return 2; |
| 11818 |
|
| 11819 |
; |
| 11820 |
return 0; |
| 11821 |
} |
| 11822 |
_ACEOF |
| 11823 |
if ac_fn_c_try_run "$LINENO" |
| 11824 |
then : |
| 11825 |
nslcd_cv_ldap_create_deref_control_working=ok |
| 11826 |
else case e in #( |
| 11827 |
e) if test "$?" -eq 3; then nslcd_cv_ldap_create_deref_control_working=broken |
| 11828 |
else nslcd_cv_ldap_create_deref_control_working=unknown; fi ;; |
| 11829 |
esac |
| 11830 |
fi |
| 11831 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11832 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 11833 |
esac |
| 11834 |
fi |
| 11835 |
;; |
| 11836 |
esac |
| 11837 |
fi |
| 11838 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nslcd_cv_ldap_create_deref_control_working" >&5 |
| 11839 |
printf "%s\n" "$nslcd_cv_ldap_create_deref_control_working" >&6; } |
| 11840 |
if test "x$nslcd_cv_ldap_create_deref_control_working" != "xok" |
| 11841 |
then |
| 11842 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: using replacement ldap_create_deref_control()" >&5 |
| 11843 |
printf "%s\n" "$as_me: using replacement ldap_create_deref_control()" >&6;} |
| 11844 |
case " $LIBOBJS " in |
| 11845 |
*" derefctrl.$ac_objext "* ) ;; |
| 11846 |
*) LIBOBJS="$LIBOBJS derefctrl.$ac_objext" |
| 11847 |
;; |
| 11848 |
esac |
| 11849 |
|
| 11850 |
|
| 11851 |
printf "%s\n" "#define REPLACE_LDAP_CREATE_DEREF_CONTROL 1" >>confdefs.h |
| 11852 |
|
| 11853 |
fi |
| 11854 |
fi |
| 11855 |
|
| 11856 |
# save nslcd LIBS and CFLAGS and restore originals |
| 11857 |
nslcd_CFLAGS="$CFLAGS" |
| 11858 |
nslcd_LIBS="$LIBS" |
| 11859 |
CFLAGS="$nslcd_save_CFLAGS" |
| 11860 |
LIBS="$nslcd_save_LIBS" |
| 11861 |
|
| 11862 |
|
| 11863 |
fi |
| 11864 |
|
| 11865 |
# pynslcd-specific tests |
| 11866 |
if test "x$enable_pynslcd" = "xyes" |
| 11867 |
then |
| 11868 |
# check Python interpreter |
| 11869 |
|
| 11870 |
|
| 11871 |
|
| 11872 |
|
| 11873 |
|
| 11874 |
|
| 11875 |
if test -n "$PYTHON"; then |
| 11876 |
# If the user set $PYTHON, use it and don't search something else. |
| 11877 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5 |
| 11878 |
printf %s "checking whether $PYTHON version is >= 2.7... " >&6; } |
| 11879 |
prog="import sys |
| 11880 |
# split strings by '.' and convert to numeric. Append some zeros |
| 11881 |
# because we need at least 4 digits for the hex conversion. |
| 11882 |
# map returns an iterator in Python 3.0 and a list in 2.x |
| 11883 |
minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] |
| 11884 |
minverhex = 0 |
| 11885 |
# xrange is not present in Python 3.0 and range returns an iterator |
| 11886 |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 11887 |
sys.exit(sys.hexversion < minverhex)" |
| 11888 |
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 |
| 11889 |
($PYTHON -c "$prog") >&5 2>&5 |
| 11890 |
ac_status=$? |
| 11891 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11892 |
(exit $ac_status); } |
| 11893 |
then : |
| 11894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11895 |
printf "%s\n" "yes" >&6; } |
| 11896 |
else case e in #( |
| 11897 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11898 |
printf "%s\n" "no" >&6; } |
| 11899 |
as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; |
| 11900 |
esac |
| 11901 |
fi |
| 11902 |
am_display_PYTHON=$PYTHON |
| 11903 |
else |
| 11904 |
# Otherwise, try each interpreter until we find one that satisfies |
| 11905 |
# VERSION. |
| 11906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5 |
| 11907 |
printf %s "checking for a Python interpreter with version >= 2.7... " >&6; } |
| 11908 |
if test ${am_cv_pathless_PYTHON+y} |
| 11909 |
then : |
| 11910 |
printf %s "(cached) " >&6 |
| 11911 |
else case e in #( |
| 11912 |
e) |
| 11913 |
for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
| 11914 |
test "$am_cv_pathless_PYTHON" = none && break |
| 11915 |
prog="import sys |
| 11916 |
# split strings by '.' and convert to numeric. Append some zeros |
| 11917 |
# because we need at least 4 digits for the hex conversion. |
| 11918 |
# map returns an iterator in Python 3.0 and a list in 2.x |
| 11919 |
minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0] |
| 11920 |
minverhex = 0 |
| 11921 |
# xrange is not present in Python 3.0 and range returns an iterator |
| 11922 |
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] |
| 11923 |
sys.exit(sys.hexversion < minverhex)" |
| 11924 |
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 |
| 11925 |
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 |
| 11926 |
ac_status=$? |
| 11927 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11928 |
(exit $ac_status); } |
| 11929 |
then : |
| 11930 |
break |
| 11931 |
fi |
| 11932 |
done ;; |
| 11933 |
esac |
| 11934 |
fi |
| 11935 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
| 11936 |
printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } |
| 11937 |
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
| 11938 |
if test "$am_cv_pathless_PYTHON" = none; then |
| 11939 |
PYTHON=: |
| 11940 |
else |
| 11941 |
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. |
| 11942 |
set dummy $am_cv_pathless_PYTHON; ac_word=$2 |
| 11943 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11944 |
printf %s "checking for $ac_word... " >&6; } |
| 11945 |
if test ${ac_cv_path_PYTHON+y} |
| 11946 |
then : |
| 11947 |
printf %s "(cached) " >&6 |
| 11948 |
else case e in #( |
| 11949 |
e) case $PYTHON in |
| 11950 |
[\\/]* | ?:[\\/]*) |
| 11951 |
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. |
| 11952 |
;; |
| 11953 |
*) |
| 11954 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11955 |
for as_dir in $PATH |
| 11956 |
do |
| 11957 |
IFS=$as_save_IFS |
| 11958 |
case $as_dir in #((( |
| 11959 |
'') as_dir=./ ;; |
| 11960 |
*/) ;; |
| 11961 |
*) as_dir=$as_dir/ ;; |
| 11962 |
esac |
| 11963 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11964 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11965 |
ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" |
| 11966 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11967 |
break 2 |
| 11968 |
fi |
| 11969 |
done |
| 11970 |
done |
| 11971 |
IFS=$as_save_IFS |
| 11972 |
|
| 11973 |
;; |
| 11974 |
esac ;; |
| 11975 |
esac |
| 11976 |
fi |
| 11977 |
PYTHON=$ac_cv_path_PYTHON |
| 11978 |
if test -n "$PYTHON"; then |
| 11979 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
| 11980 |
printf "%s\n" "$PYTHON" >&6; } |
| 11981 |
else |
| 11982 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11983 |
printf "%s\n" "no" >&6; } |
| 11984 |
fi |
| 11985 |
|
| 11986 |
|
| 11987 |
fi |
| 11988 |
am_display_PYTHON=$am_cv_pathless_PYTHON |
| 11989 |
fi |
| 11990 |
|
| 11991 |
|
| 11992 |
if test "$PYTHON" = :; then |
| 11993 |
as_fn_error $? "Python is required" "$LINENO" 5 |
| 11994 |
else |
| 11995 |
|
| 11996 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
| 11997 |
printf %s "checking for $am_display_PYTHON version... " >&6; } |
| 11998 |
if test ${am_cv_python_version+y} |
| 11999 |
then : |
| 12000 |
printf %s "(cached) " >&6 |
| 12001 |
else case e in #( |
| 12002 |
e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; |
| 12003 |
esac |
| 12004 |
fi |
| 12005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
| 12006 |
printf "%s\n" "$am_cv_python_version" >&6; } |
| 12007 |
PYTHON_VERSION=$am_cv_python_version |
| 12008 |
|
| 12009 |
|
| 12010 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
| 12011 |
printf %s "checking for $am_display_PYTHON platform... " >&6; } |
| 12012 |
if test ${am_cv_python_platform+y} |
| 12013 |
then : |
| 12014 |
printf %s "(cached) " >&6 |
| 12015 |
else case e in #( |
| 12016 |
e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; |
| 12017 |
esac |
| 12018 |
fi |
| 12019 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 |
| 12020 |
printf "%s\n" "$am_cv_python_platform" >&6; } |
| 12021 |
PYTHON_PLATFORM=$am_cv_python_platform |
| 12022 |
|
| 12023 |
|
| 12024 |
if test "x$prefix" = xNONE; then |
| 12025 |
am__usable_prefix=$ac_default_prefix |
| 12026 |
else |
| 12027 |
am__usable_prefix=$prefix |
| 12028 |
fi |
| 12029 |
|
| 12030 |
# Allow user to request using sys.* values from Python, |
| 12031 |
# instead of the GNU $prefix values. |
| 12032 |
|
| 12033 |
# Check whether --with-python-sys-prefix was given. |
| 12034 |
if test ${with_python_sys_prefix+y} |
| 12035 |
then : |
| 12036 |
withval=$with_python_sys_prefix; am_use_python_sys=: |
| 12037 |
else case e in #( |
| 12038 |
e) am_use_python_sys=false ;; |
| 12039 |
esac |
| 12040 |
fi |
| 12041 |
|
| 12042 |
|
| 12043 |
# Allow user to override whatever the default Python prefix is. |
| 12044 |
|
| 12045 |
# Check whether --with-python_prefix was given. |
| 12046 |
if test ${with_python_prefix+y} |
| 12047 |
then : |
| 12048 |
withval=$with_python_prefix; am_python_prefix_subst=$withval |
| 12049 |
am_cv_python_prefix=$withval |
| 12050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 |
| 12051 |
printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } |
| 12052 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 |
| 12053 |
printf "%s\n" "$am_cv_python_prefix" >&6; } |
| 12054 |
else case e in #( |
| 12055 |
e) |
| 12056 |
if $am_use_python_sys; then |
| 12057 |
# using python sys.prefix value, not GNU |
| 12058 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 |
| 12059 |
printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } |
| 12060 |
if test ${am_cv_python_prefix+y} |
| 12061 |
then : |
| 12062 |
printf %s "(cached) " >&6 |
| 12063 |
else case e in #( |
| 12064 |
e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; |
| 12065 |
esac |
| 12066 |
fi |
| 12067 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 |
| 12068 |
printf "%s\n" "$am_cv_python_prefix" >&6; } |
| 12069 |
|
| 12070 |
case $am_cv_python_prefix in |
| 12071 |
$am__usable_prefix*) |
| 12072 |
am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` |
| 12073 |
am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` |
| 12074 |
;; |
| 12075 |
*) |
| 12076 |
am_python_prefix_subst=$am_cv_python_prefix |
| 12077 |
;; |
| 12078 |
esac |
| 12079 |
else # using GNU prefix value, not python sys.prefix |
| 12080 |
am_python_prefix_subst='${prefix}' |
| 12081 |
am_python_prefix=$am_python_prefix_subst |
| 12082 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 |
| 12083 |
printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } |
| 12084 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 |
| 12085 |
printf "%s\n" "$am_python_prefix" >&6; } |
| 12086 |
fi ;; |
| 12087 |
esac |
| 12088 |
fi |
| 12089 |
|
| 12090 |
# Substituting python_prefix_subst value. |
| 12091 |
PYTHON_PREFIX=$am_python_prefix_subst |
| 12092 |
|
| 12093 |
|
| 12094 |
# emacs-page Now do it all over again for Python exec_prefix, but with yet |
| 12095 |
# another conditional: fall back to regular prefix if that was specified. |
| 12096 |
|
| 12097 |
# Check whether --with-python_exec_prefix was given. |
| 12098 |
if test ${with_python_exec_prefix+y} |
| 12099 |
then : |
| 12100 |
withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval |
| 12101 |
am_cv_python_exec_prefix=$withval |
| 12102 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 |
| 12103 |
printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } |
| 12104 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 12105 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 12106 |
else case e in #( |
| 12107 |
e) |
| 12108 |
# no explicit --with-python_exec_prefix, but if |
| 12109 |
# --with-python_prefix was given, use its value for python_exec_prefix too. |
| 12110 |
if test -n "$with_python_prefix" |
| 12111 |
then : |
| 12112 |
am_python_exec_prefix_subst=$with_python_prefix |
| 12113 |
am_cv_python_exec_prefix=$with_python_prefix |
| 12114 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 |
| 12115 |
printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } |
| 12116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 12117 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 12118 |
else case e in #( |
| 12119 |
e) |
| 12120 |
# Set am__usable_exec_prefix whether using GNU or Python values, |
| 12121 |
# since we use that variable for pyexecdir. |
| 12122 |
if test "x$exec_prefix" = xNONE; then |
| 12123 |
am__usable_exec_prefix=$am__usable_prefix |
| 12124 |
else |
| 12125 |
am__usable_exec_prefix=$exec_prefix |
| 12126 |
fi |
| 12127 |
# |
| 12128 |
if $am_use_python_sys; then # using python sys.exec_prefix, not GNU |
| 12129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 |
| 12130 |
printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } |
| 12131 |
if test ${am_cv_python_exec_prefix+y} |
| 12132 |
then : |
| 12133 |
printf %s "(cached) " >&6 |
| 12134 |
else case e in #( |
| 12135 |
e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; |
| 12136 |
esac |
| 12137 |
fi |
| 12138 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 |
| 12139 |
printf "%s\n" "$am_cv_python_exec_prefix" >&6; } |
| 12140 |
case $am_cv_python_exec_prefix in |
| 12141 |
$am__usable_exec_prefix*) |
| 12142 |
am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` |
| 12143 |
am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` |
| 12144 |
;; |
| 12145 |
*) |
| 12146 |
am_python_exec_prefix_subst=$am_cv_python_exec_prefix |
| 12147 |
;; |
| 12148 |
esac |
| 12149 |
else # using GNU $exec_prefix, not python sys.exec_prefix |
| 12150 |
am_python_exec_prefix_subst='${exec_prefix}' |
| 12151 |
am_python_exec_prefix=$am_python_exec_prefix_subst |
| 12152 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 |
| 12153 |
printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } |
| 12154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 |
| 12155 |
printf "%s\n" "$am_python_exec_prefix" >&6; } |
| 12156 |
fi ;; |
| 12157 |
esac |
| 12158 |
fi ;; |
| 12159 |
esac |
| 12160 |
fi |
| 12161 |
|
| 12162 |
# Substituting python_exec_prefix_subst. |
| 12163 |
PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst |
| 12164 |
|
| 12165 |
|
| 12166 |
# Factor out some code duplication into this shell variable. |
| 12167 |
am_python_setup_sysconfig="\ |
| 12168 |
import sys |
| 12169 |
# Prefer sysconfig over distutils.sysconfig, for better compatibility |
| 12170 |
# with python 3.x. See automake bug#10227. |
| 12171 |
try: |
| 12172 |
import sysconfig |
| 12173 |
except ImportError: |
| 12174 |
can_use_sysconfig = 0 |
| 12175 |
else: |
| 12176 |
can_use_sysconfig = 1 |
| 12177 |
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: |
| 12178 |
# <https://github.com/pypa/virtualenv/issues/118> |
| 12179 |
try: |
| 12180 |
from platform import python_implementation |
| 12181 |
if python_implementation() == 'CPython' and sys.version[:3] == '2.7': |
| 12182 |
can_use_sysconfig = 0 |
| 12183 |
except ImportError: |
| 12184 |
pass" # end of am_python_setup_sysconfig |
| 12185 |
|
| 12186 |
# More repeated code, for figuring out the installation scheme to use. |
| 12187 |
am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'): |
| 12188 |
scheme = sysconfig.get_default_scheme() |
| 12189 |
else: |
| 12190 |
scheme = sysconfig._get_default_scheme() |
| 12191 |
if scheme == 'posix_local': |
| 12192 |
if '$am_py_prefix' == '/usr': |
| 12193 |
scheme = 'deb_system' # should only happen during Debian package builds |
| 12194 |
else: |
| 12195 |
# Debian's default scheme installs to /usr/local/ but we want to |
| 12196 |
# follow the prefix, as we always have. |
| 12197 |
# See bugs#54412, #64837, et al. |
| 12198 |
scheme = 'posix_prefix'" # end of am_python_setup_scheme |
| 12199 |
|
| 12200 |
|
| 12201 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 |
| 12202 |
printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } |
| 12203 |
if test ${am_cv_python_pythondir+y} |
| 12204 |
then : |
| 12205 |
printf %s "(cached) " >&6 |
| 12206 |
else case e in #( |
| 12207 |
e) if test "x$am_cv_python_prefix" = x; then |
| 12208 |
am_py_prefix=$am__usable_prefix |
| 12209 |
else |
| 12210 |
am_py_prefix=$am_cv_python_prefix |
| 12211 |
fi |
| 12212 |
am_cv_python_pythondir=`$PYTHON -c " |
| 12213 |
$am_python_setup_sysconfig |
| 12214 |
if can_use_sysconfig: |
| 12215 |
try: |
| 12216 |
$am_python_setup_scheme |
| 12217 |
sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) |
| 12218 |
except: |
| 12219 |
sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
| 12220 |
else: |
| 12221 |
from distutils import sysconfig |
| 12222 |
sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') |
| 12223 |
sys.stdout.write(sitedir)"` |
| 12224 |
# |
| 12225 |
case $am_cv_python_pythondir in |
| 12226 |
$am_py_prefix*) |
| 12227 |
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` |
| 12228 |
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` |
| 12229 |
;; |
| 12230 |
*) |
| 12231 |
case $am_py_prefix in |
| 12232 |
/usr|/System*) ;; |
| 12233 |
*) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" |
| 12234 |
;; |
| 12235 |
esac |
| 12236 |
;; |
| 12237 |
esac |
| 12238 |
;; |
| 12239 |
esac |
| 12240 |
fi |
| 12241 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
| 12242 |
printf "%s\n" "$am_cv_python_pythondir" >&6; } |
| 12243 |
pythondir=$am_cv_python_pythondir |
| 12244 |
|
| 12245 |
|
| 12246 |
pkgpythondir=\${pythondir}/$PACKAGE |
| 12247 |
|
| 12248 |
|
| 12249 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 |
| 12250 |
printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } |
| 12251 |
if test ${am_cv_python_pyexecdir+y} |
| 12252 |
then : |
| 12253 |
printf %s "(cached) " >&6 |
| 12254 |
else case e in #( |
| 12255 |
e) if test "x$am_cv_python_exec_prefix" = x; then |
| 12256 |
am_py_exec_prefix=$am__usable_exec_prefix |
| 12257 |
else |
| 12258 |
am_py_exec_prefix=$am_cv_python_exec_prefix |
| 12259 |
fi |
| 12260 |
am_cv_python_pyexecdir=`$PYTHON -c " |
| 12261 |
$am_python_setup_sysconfig |
| 12262 |
if can_use_sysconfig: |
| 12263 |
try: |
| 12264 |
$am_python_setup_scheme |
| 12265 |
sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) |
| 12266 |
except: |
| 12267 |
sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) |
| 12268 |
else: |
| 12269 |
from distutils import sysconfig |
| 12270 |
sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') |
| 12271 |
sys.stdout.write(sitedir)"` |
| 12272 |
# |
| 12273 |
case $am_cv_python_pyexecdir in |
| 12274 |
$am_py_exec_prefix*) |
| 12275 |
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` |
| 12276 |
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` |
| 12277 |
;; |
| 12278 |
*) |
| 12279 |
case $am_py_exec_prefix in |
| 12280 |
/usr|/System*) ;; |
| 12281 |
*) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" |
| 12282 |
;; |
| 12283 |
esac |
| 12284 |
;; |
| 12285 |
esac |
| 12286 |
;; |
| 12287 |
esac |
| 12288 |
fi |
| 12289 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
| 12290 |
printf "%s\n" "$am_cv_python_pyexecdir" >&6; } |
| 12291 |
pyexecdir=$am_cv_python_pyexecdir |
| 12292 |
|
| 12293 |
|
| 12294 |
pkgpyexecdir=\${pyexecdir}/$PACKAGE |
| 12295 |
|
| 12296 |
|
| 12297 |
|
| 12298 |
fi |
| 12299 |
|
| 12300 |
|
| 12301 |
if test -z $PYTHON; |
| 12302 |
then |
| 12303 |
PYTHON="python" |
| 12304 |
fi |
| 12305 |
PYTHON_NAME=`basename $PYTHON` |
| 12306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: daemon" >&5 |
| 12307 |
printf %s "checking $PYTHON_NAME module: daemon... " >&6; } |
| 12308 |
$PYTHON -c "import daemon" 2>/dev/null |
| 12309 |
if test $? -eq 0; |
| 12310 |
then |
| 12311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12312 |
printf "%s\n" "yes" >&6; } |
| 12313 |
eval HAVE_PYMOD_DAEMON=yes |
| 12314 |
else |
| 12315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12316 |
printf "%s\n" "no" >&6; } |
| 12317 |
eval HAVE_PYMOD_DAEMON=no |
| 12318 |
# |
| 12319 |
if test -n "" |
| 12320 |
then |
| 12321 |
as_fn_error $? "failed to find required module daemon" "$LINENO" 5 |
| 12322 |
exit 1 |
| 12323 |
fi |
| 12324 |
fi |
| 12325 |
|
| 12326 |
|
| 12327 |
if test -z $PYTHON; |
| 12328 |
then |
| 12329 |
PYTHON="python" |
| 12330 |
fi |
| 12331 |
PYTHON_NAME=`basename $PYTHON` |
| 12332 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fcntl" >&5 |
| 12333 |
printf %s "checking $PYTHON_NAME module: fcntl... " >&6; } |
| 12334 |
$PYTHON -c "import fcntl" 2>/dev/null |
| 12335 |
if test $? -eq 0; |
| 12336 |
then |
| 12337 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12338 |
printf "%s\n" "yes" >&6; } |
| 12339 |
eval HAVE_PYMOD_FCNTL=yes |
| 12340 |
else |
| 12341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12342 |
printf "%s\n" "no" >&6; } |
| 12343 |
eval HAVE_PYMOD_FCNTL=no |
| 12344 |
# |
| 12345 |
if test -n "" |
| 12346 |
then |
| 12347 |
as_fn_error $? "failed to find required module fcntl" "$LINENO" 5 |
| 12348 |
exit 1 |
| 12349 |
fi |
| 12350 |
fi |
| 12351 |
|
| 12352 |
|
| 12353 |
if test -z $PYTHON; |
| 12354 |
then |
| 12355 |
PYTHON="python" |
| 12356 |
fi |
| 12357 |
PYTHON_NAME=`basename $PYTHON` |
| 12358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: fnmatch" >&5 |
| 12359 |
printf %s "checking $PYTHON_NAME module: fnmatch... " >&6; } |
| 12360 |
$PYTHON -c "import fnmatch" 2>/dev/null |
| 12361 |
if test $? -eq 0; |
| 12362 |
then |
| 12363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12364 |
printf "%s\n" "yes" >&6; } |
| 12365 |
eval HAVE_PYMOD_FNMATCH=yes |
| 12366 |
else |
| 12367 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12368 |
printf "%s\n" "no" >&6; } |
| 12369 |
eval HAVE_PYMOD_FNMATCH=no |
| 12370 |
# |
| 12371 |
if test -n "" |
| 12372 |
then |
| 12373 |
as_fn_error $? "failed to find required module fnmatch" "$LINENO" 5 |
| 12374 |
exit 1 |
| 12375 |
fi |
| 12376 |
fi |
| 12377 |
|
| 12378 |
|
| 12379 |
if test -z $PYTHON; |
| 12380 |
then |
| 12381 |
PYTHON="python" |
| 12382 |
fi |
| 12383 |
PYTHON_NAME=`basename $PYTHON` |
| 12384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: ldap" >&5 |
| 12385 |
printf %s "checking $PYTHON_NAME module: ldap... " >&6; } |
| 12386 |
$PYTHON -c "import ldap" 2>/dev/null |
| 12387 |
if test $? -eq 0; |
| 12388 |
then |
| 12389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12390 |
printf "%s\n" "yes" >&6; } |
| 12391 |
eval HAVE_PYMOD_LDAP=yes |
| 12392 |
else |
| 12393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12394 |
printf "%s\n" "no" >&6; } |
| 12395 |
eval HAVE_PYMOD_LDAP=no |
| 12396 |
# |
| 12397 |
if test -n "" |
| 12398 |
then |
| 12399 |
as_fn_error $? "failed to find required module ldap" "$LINENO" 5 |
| 12400 |
exit 1 |
| 12401 |
fi |
| 12402 |
fi |
| 12403 |
|
| 12404 |
|
| 12405 |
if test -z $PYTHON; |
| 12406 |
then |
| 12407 |
PYTHON="python" |
| 12408 |
fi |
| 12409 |
PYTHON_NAME=`basename $PYTHON` |
| 12410 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: sqlite3" >&5 |
| 12411 |
printf %s "checking $PYTHON_NAME module: sqlite3... " >&6; } |
| 12412 |
$PYTHON -c "import sqlite3" 2>/dev/null |
| 12413 |
if test $? -eq 0; |
| 12414 |
then |
| 12415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12416 |
printf "%s\n" "yes" >&6; } |
| 12417 |
eval HAVE_PYMOD_SQLITE3=yes |
| 12418 |
else |
| 12419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12420 |
printf "%s\n" "no" >&6; } |
| 12421 |
eval HAVE_PYMOD_SQLITE3=no |
| 12422 |
# |
| 12423 |
if test -n "" |
| 12424 |
then |
| 12425 |
as_fn_error $? "failed to find required module sqlite3" "$LINENO" 5 |
| 12426 |
exit 1 |
| 12427 |
fi |
| 12428 |
fi |
| 12429 |
|
| 12430 |
# required by ldap.controls.ppolicy: |
| 12431 |
|
| 12432 |
if test -z $PYTHON; |
| 12433 |
then |
| 12434 |
PYTHON="python" |
| 12435 |
fi |
| 12436 |
PYTHON_NAME=`basename $PYTHON` |
| 12437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1" >&5 |
| 12438 |
printf %s "checking $PYTHON_NAME module: pyasn1... " >&6; } |
| 12439 |
$PYTHON -c "import pyasn1" 2>/dev/null |
| 12440 |
if test $? -eq 0; |
| 12441 |
then |
| 12442 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12443 |
printf "%s\n" "yes" >&6; } |
| 12444 |
eval HAVE_PYMOD_PYASN1=yes |
| 12445 |
else |
| 12446 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12447 |
printf "%s\n" "no" >&6; } |
| 12448 |
eval HAVE_PYMOD_PYASN1=no |
| 12449 |
# |
| 12450 |
if test -n "" |
| 12451 |
then |
| 12452 |
as_fn_error $? "failed to find required module pyasn1" "$LINENO" 5 |
| 12453 |
exit 1 |
| 12454 |
fi |
| 12455 |
fi |
| 12456 |
|
| 12457 |
|
| 12458 |
if test -z $PYTHON; |
| 12459 |
then |
| 12460 |
PYTHON="python" |
| 12461 |
fi |
| 12462 |
PYTHON_NAME=`basename $PYTHON` |
| 12463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyasn1_modules" >&5 |
| 12464 |
printf %s "checking $PYTHON_NAME module: pyasn1_modules... " >&6; } |
| 12465 |
$PYTHON -c "import pyasn1_modules" 2>/dev/null |
| 12466 |
if test $? -eq 0; |
| 12467 |
then |
| 12468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12469 |
printf "%s\n" "yes" >&6; } |
| 12470 |
eval HAVE_PYMOD_PYASN1_MODULES=yes |
| 12471 |
else |
| 12472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12473 |
printf "%s\n" "no" >&6; } |
| 12474 |
eval HAVE_PYMOD_PYASN1_MODULES=no |
| 12475 |
# |
| 12476 |
if test -n "" |
| 12477 |
then |
| 12478 |
as_fn_error $? "failed to find required module pyasn1_modules" "$LINENO" 5 |
| 12479 |
exit 1 |
| 12480 |
fi |
| 12481 |
fi |
| 12482 |
|
| 12483 |
if test "x$HAVE_PYMOD_DAEMON" != "xyes" || \ |
| 12484 |
test "x$HAVE_PYMOD_FCNTL" != "xyes" || \ |
| 12485 |
test "x$HAVE_PYMOD_FNMATCH" != "xyes" || \ |
| 12486 |
test "x$HAVE_PYMOD_LDAP" != "xyes" || \ |
| 12487 |
test "x$HAVE_PYMOD_SQLITE3" != "xyes" || \ |
| 12488 |
test "x$HAVE_PYMOD_PYASN1" != "xyes" || \ |
| 12489 |
test "x$HAVE_PYMOD_PYASN1_MODULES" != "xyes" |
| 12490 |
then |
| 12491 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Required Python modules missing" >&5 |
| 12492 |
printf "%s\n" "$as_me: WARNING: Required Python modules missing" >&2;} |
| 12493 |
fi |
| 12494 |
# optional modules |
| 12495 |
|
| 12496 |
if test -z $PYTHON; |
| 12497 |
then |
| 12498 |
PYTHON="python" |
| 12499 |
fi |
| 12500 |
PYTHON_NAME=`basename $PYTHON` |
| 12501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: setproctitle" >&5 |
| 12502 |
printf %s "checking $PYTHON_NAME module: setproctitle... " >&6; } |
| 12503 |
$PYTHON -c "import setproctitle" 2>/dev/null |
| 12504 |
if test $? -eq 0; |
| 12505 |
then |
| 12506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12507 |
printf "%s\n" "yes" >&6; } |
| 12508 |
eval HAVE_PYMOD_SETPROCTITLE=yes |
| 12509 |
else |
| 12510 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12511 |
printf "%s\n" "no" >&6; } |
| 12512 |
eval HAVE_PYMOD_SETPROCTITLE=no |
| 12513 |
# |
| 12514 |
if test -n "" |
| 12515 |
then |
| 12516 |
as_fn_error $? "failed to find required module setproctitle" "$LINENO" 5 |
| 12517 |
exit 1 |
| 12518 |
fi |
| 12519 |
fi |
| 12520 |
|
| 12521 |
fi |
| 12522 |
|
| 12523 |
if test "x${with_nss_flavour}" = xglibc; then |
| 12524 |
NSS_FLAVOUR_GLIBC_TRUE= |
| 12525 |
NSS_FLAVOUR_GLIBC_FALSE='#' |
| 12526 |
else |
| 12527 |
NSS_FLAVOUR_GLIBC_TRUE='#' |
| 12528 |
NSS_FLAVOUR_GLIBC_FALSE= |
| 12529 |
fi |
| 12530 |
|
| 12531 |
if test "x${with_nss_flavour}" = xsolaris; then |
| 12532 |
NSS_FLAVOUR_SOLARIS_TRUE= |
| 12533 |
NSS_FLAVOUR_SOLARIS_FALSE='#' |
| 12534 |
else |
| 12535 |
NSS_FLAVOUR_SOLARIS_TRUE='#' |
| 12536 |
NSS_FLAVOUR_SOLARIS_FALSE= |
| 12537 |
fi |
| 12538 |
|
| 12539 |
if test "x${with_nss_flavour}" = xfreebsd; then |
| 12540 |
NSS_FLAVOUR_FREEBSD_TRUE= |
| 12541 |
NSS_FLAVOUR_FREEBSD_FALSE='#' |
| 12542 |
else |
| 12543 |
NSS_FLAVOUR_FREEBSD_TRUE='#' |
| 12544 |
NSS_FLAVOUR_FREEBSD_FALSE= |
| 12545 |
fi |
| 12546 |
|
| 12547 |
|
| 12548 |
# generate files |
| 12549 |
ac_config_files="$ac_config_files Makefile compat/Makefile common/Makefile nss/Makefile pam/Makefile utils/Makefile nslcd/Makefile pynslcd/Makefile man/Makefile tests/Makefile" |
| 12550 |
|
| 12551 |
ac_config_files="$ac_config_files pynslcd/constants.py" |
| 12552 |
|
| 12553 |
cat >confcache <<\_ACEOF |
| 12554 |
# This file is a shell script that caches the results of configure |
| 12555 |
# tests run on this system so they can be shared between configure |
| 12556 |
# scripts and configure runs, see configure's option --config-cache. |
| 12557 |
# It is not useful on other systems. If it contains results you don't |
| 12558 |
# want to keep, you may remove or edit it. |
| 12559 |
# |
| 12560 |
# config.status only pays attention to the cache file if you give it |
| 12561 |
# the --recheck option to rerun configure. |
| 12562 |
# |
| 12563 |
# 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 12564 |
# loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 12565 |
# following values. |
| 12566 |
|
| 12567 |
_ACEOF |
| 12568 |
|
| 12569 |
# The following way of writing the cache mishandles newlines in values, |
| 12570 |
# but we know of no workaround that is simple, portable, and efficient. |
| 12571 |
# So, we kill variables containing newlines. |
| 12572 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 12573 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 12574 |
( |
| 12575 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 12576 |
eval ac_val=\$$ac_var |
| 12577 |
case $ac_val in #( |
| 12578 |
*${as_nl}*) |
| 12579 |
case $ac_var in #( |
| 12580 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 12581 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 12582 |
esac |
| 12583 |
case $ac_var in #( |
| 12584 |
_ | IFS | as_nl) ;; #( |
| 12585 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 12586 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 12587 |
esac ;; |
| 12588 |
esac |
| 12589 |
done |
| 12590 |
|
| 12591 |
(set) 2>&1 | |
| 12592 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 12593 |
*${as_nl}ac_space=\ *) |
| 12594 |
# 'set' does not quote correctly, so add quotes: double-quote |
| 12595 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 12596 |
sed -n \ |
| 12597 |
"s/'/'\\\\''/g; |
| 12598 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 12599 |
;; #( |
| 12600 |
*) |
| 12601 |
# 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 12602 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 12603 |
;; |
| 12604 |
esac | |
| 12605 |
sort |
| 12606 |
) | |
| 12607 |
sed ' |
| 12608 |
/^ac_cv_env_/b end |
| 12609 |
t clear |
| 12610 |
:clear |
| 12611 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 12612 |
t end |
| 12613 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12614 |
:end' >>confcache |
| 12615 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 12616 |
if test -w "$cache_file"; then |
| 12617 |
if test "x$cache_file" != "x/dev/null"; then |
| 12618 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 12619 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 12620 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 12621 |
cat confcache >"$cache_file" |
| 12622 |
else |
| 12623 |
case $cache_file in #( |
| 12624 |
*/* | ?:*) |
| 12625 |
mv -f confcache "$cache_file"$$ && |
| 12626 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 12627 |
*) |
| 12628 |
mv -f confcache "$cache_file" ;; |
| 12629 |
esac |
| 12630 |
fi |
| 12631 |
fi |
| 12632 |
else |
| 12633 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 12634 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 12635 |
fi |
| 12636 |
fi |
| 12637 |
rm -f confcache |
| 12638 |
|
| 12639 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12640 |
# Let make expand exec_prefix. |
| 12641 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12642 |
|
| 12643 |
DEFS=-DHAVE_CONFIG_H |
| 12644 |
|
| 12645 |
ac_libobjs= |
| 12646 |
ac_ltlibobjs= |
| 12647 |
U= |
| 12648 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12649 |
# 1. Remove the extension, and $U if already installed. |
| 12650 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 12651 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 12652 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 12653 |
# will be set to the directory where LIBOBJS objects are built. |
| 12654 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 12655 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 12656 |
done |
| 12657 |
LIBOBJS=$ac_libobjs |
| 12658 |
|
| 12659 |
LTLIBOBJS=$ac_ltlibobjs |
| 12660 |
|
| 12661 |
|
| 12662 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 12663 |
printf %s "checking that generated files are newer than configure... " >&6; } |
| 12664 |
if test -n "$am_sleep_pid"; then |
| 12665 |
# Hide warnings about reused PIDs. |
| 12666 |
wait $am_sleep_pid 2>/dev/null |
| 12667 |
fi |
| 12668 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 12669 |
printf "%s\n" "done" >&6; } |
| 12670 |
case $enable_silent_rules in # ((( |
| 12671 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 12672 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 12673 |
esac |
| 12674 |
if test $am_cv_make_support_nested_variables = yes; then |
| 12675 |
AM_V='$(V)' |
| 12676 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 12677 |
else |
| 12678 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 12679 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 12680 |
fi |
| 12681 |
|
| 12682 |
if test -n "$EXEEXT"; then |
| 12683 |
am__EXEEXT_TRUE= |
| 12684 |
am__EXEEXT_FALSE='#' |
| 12685 |
else |
| 12686 |
am__EXEEXT_TRUE='#' |
| 12687 |
am__EXEEXT_FALSE= |
| 12688 |
fi |
| 12689 |
|
| 12690 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 12691 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 12692 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12693 |
fi |
| 12694 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 12695 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 12696 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12697 |
fi |
| 12698 |
if test -z "${GENMAN_TRUE}" && test -z "${GENMAN_FALSE}"; then |
| 12699 |
as_fn_error $? "conditional \"GENMAN\" was never defined. |
| 12700 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12701 |
fi |
| 12702 |
if test -z "${INSTMAN_TRUE}" && test -z "${INSTMAN_FALSE}"; then |
| 12703 |
as_fn_error $? "conditional \"INSTMAN\" was never defined. |
| 12704 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12705 |
fi |
| 12706 |
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then |
| 12707 |
as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. |
| 12708 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12709 |
fi |
| 12710 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 12711 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 12712 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12713 |
fi |
| 12714 |
if test -z "${ENABLE_NSS_TRUE}" && test -z "${ENABLE_NSS_FALSE}"; then |
| 12715 |
as_fn_error $? "conditional \"ENABLE_NSS\" was never defined. |
| 12716 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12717 |
fi |
| 12718 |
if test -z "${ENABLE_PAM_TRUE}" && test -z "${ENABLE_PAM_FALSE}"; then |
| 12719 |
as_fn_error $? "conditional \"ENABLE_PAM\" was never defined. |
| 12720 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12721 |
fi |
| 12722 |
if test -z "${ENABLE_UTILS_TRUE}" && test -z "${ENABLE_UTILS_FALSE}"; then |
| 12723 |
as_fn_error $? "conditional \"ENABLE_UTILS\" was never defined. |
| 12724 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12725 |
fi |
| 12726 |
if test -z "${ENABLE_NSLCD_TRUE}" && test -z "${ENABLE_NSLCD_FALSE}"; then |
| 12727 |
as_fn_error $? "conditional \"ENABLE_NSLCD\" was never defined. |
| 12728 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12729 |
fi |
| 12730 |
if test -z "${ENABLE_PYNSLCD_TRUE}" && test -z "${ENABLE_PYNSLCD_FALSE}"; then |
| 12731 |
as_fn_error $? "conditional \"ENABLE_PYNSLCD\" was never defined. |
| 12732 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12733 |
fi |
| 12734 |
if test -z "${NSS_FLAVOUR_GLIBC_TRUE}" && test -z "${NSS_FLAVOUR_GLIBC_FALSE}"; then |
| 12735 |
as_fn_error $? "conditional \"NSS_FLAVOUR_GLIBC\" was never defined. |
| 12736 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12737 |
fi |
| 12738 |
if test -z "${NSS_FLAVOUR_SOLARIS_TRUE}" && test -z "${NSS_FLAVOUR_SOLARIS_FALSE}"; then |
| 12739 |
as_fn_error $? "conditional \"NSS_FLAVOUR_SOLARIS\" was never defined. |
| 12740 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12741 |
fi |
| 12742 |
if test -z "${NSS_FLAVOUR_FREEBSD_TRUE}" && test -z "${NSS_FLAVOUR_FREEBSD_FALSE}"; then |
| 12743 |
as_fn_error $? "conditional \"NSS_FLAVOUR_FREEBSD\" was never defined. |
| 12744 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 12745 |
fi |
| 12746 |
|
| 12747 |
: "${CONFIG_STATUS=./config.status}" |
| 12748 |
ac_write_fail=0 |
| 12749 |
ac_clean_files_save=$ac_clean_files |
| 12750 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 12751 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 12752 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12753 |
as_write_fail=0 |
| 12754 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 12755 |
#! $SHELL |
| 12756 |
# Generated by $as_me. |
| 12757 |
# Run this file to recreate the current configuration. |
| 12758 |
# Compiler output produced by configure, useful for debugging |
| 12759 |
# configure, is in config.log if it exists. |
| 12760 |
|
| 12761 |
debug=false |
| 12762 |
ac_cs_recheck=false |
| 12763 |
ac_cs_silent=false |
| 12764 |
|
| 12765 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 12766 |
export SHELL |
| 12767 |
_ASEOF |
| 12768 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 12769 |
## -------------------- ## |
| 12770 |
## M4sh Initialization. ## |
| 12771 |
## -------------------- ## |
| 12772 |
|
| 12773 |
# Be more Bourne compatible |
| 12774 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 12775 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 12776 |
then : |
| 12777 |
emulate sh |
| 12778 |
NULLCMD=: |
| 12779 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 12780 |
# is contrary to our usage. Disable this feature. |
| 12781 |
alias -g '${1+"$@"}'='"$@"' |
| 12782 |
setopt NO_GLOB_SUBST |
| 12783 |
else case e in #( |
| 12784 |
e) case `(set -o) 2>/dev/null` in #( |
| 12785 |
*posix*) : |
| 12786 |
set -o posix ;; #( |
| 12787 |
*) : |
| 12788 |
;; |
| 12789 |
esac ;; |
| 12790 |
esac |
| 12791 |
fi |
| 12792 |
|
| 12793 |
|
| 12794 |
|
| 12795 |
# Reset variables that may have inherited troublesome values from |
| 12796 |
# the environment. |
| 12797 |
|
| 12798 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 12799 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 12800 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 12801 |
# Quoting is to prevent editors from complaining about space-tab. |
| 12802 |
as_nl=' |
| 12803 |
' |
| 12804 |
export as_nl |
| 12805 |
IFS=" "" $as_nl" |
| 12806 |
|
| 12807 |
PS1='$ ' |
| 12808 |
PS2='> ' |
| 12809 |
PS4='+ ' |
| 12810 |
|
| 12811 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 12812 |
LC_ALL=C |
| 12813 |
export LC_ALL |
| 12814 |
LANGUAGE=C |
| 12815 |
export LANGUAGE |
| 12816 |
|
| 12817 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 12818 |
# to be unset--not just set to an empty or harmless value--now, to |
| 12819 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 12820 |
# also avoids known problems related to "unset" and subshell syntax |
| 12821 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 12822 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 12823 |
do eval test \${$as_var+y} \ |
| 12824 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 12825 |
done |
| 12826 |
|
| 12827 |
# Ensure that fds 0, 1, and 2 are open. |
| 12828 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 12829 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 12830 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 12831 |
|
| 12832 |
# The user is always right. |
| 12833 |
if ${PATH_SEPARATOR+false} :; then |
| 12834 |
PATH_SEPARATOR=: |
| 12835 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 12836 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 12837 |
PATH_SEPARATOR=';' |
| 12838 |
} |
| 12839 |
fi |
| 12840 |
|
| 12841 |
|
| 12842 |
# Find who we are. Look in the path if we contain no directory separator. |
| 12843 |
as_myself= |
| 12844 |
case $0 in #(( |
| 12845 |
*[\\/]* ) as_myself=$0 ;; |
| 12846 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12847 |
for as_dir in $PATH |
| 12848 |
do |
| 12849 |
IFS=$as_save_IFS |
| 12850 |
case $as_dir in #((( |
| 12851 |
'') as_dir=./ ;; |
| 12852 |
*/) ;; |
| 12853 |
*) as_dir=$as_dir/ ;; |
| 12854 |
esac |
| 12855 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 12856 |
done |
| 12857 |
IFS=$as_save_IFS |
| 12858 |
|
| 12859 |
;; |
| 12860 |
esac |
| 12861 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 12862 |
# in which case we are not to be found in the path. |
| 12863 |
if test "x$as_myself" = x; then |
| 12864 |
as_myself=$0 |
| 12865 |
fi |
| 12866 |
if test ! -f "$as_myself"; then |
| 12867 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 12868 |
exit 1 |
| 12869 |
fi |
| 12870 |
|
| 12871 |
|
| 12872 |
|
| 12873 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 12874 |
# ---------------------------------------- |
| 12875 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 12876 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 12877 |
# script with STATUS, using 1 if that was 0. |
| 12878 |
as_fn_error () |
| 12879 |
{ |
| 12880 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 12881 |
if test "$4"; then |
| 12882 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 12883 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 12884 |
fi |
| 12885 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 12886 |
as_fn_exit $as_status |
| 12887 |
} # as_fn_error |
| 12888 |
|
| 12889 |
|
| 12890 |
# as_fn_set_status STATUS |
| 12891 |
# ----------------------- |
| 12892 |
# Set $? to STATUS, without forking. |
| 12893 |
as_fn_set_status () |
| 12894 |
{ |
| 12895 |
return $1 |
| 12896 |
} # as_fn_set_status |
| 12897 |
|
| 12898 |
# as_fn_exit STATUS |
| 12899 |
# ----------------- |
| 12900 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 12901 |
as_fn_exit () |
| 12902 |
{ |
| 12903 |
set +e |
| 12904 |
as_fn_set_status $1 |
| 12905 |
exit $1 |
| 12906 |
} # as_fn_exit |
| 12907 |
|
| 12908 |
# as_fn_unset VAR |
| 12909 |
# --------------- |
| 12910 |
# Portably unset VAR. |
| 12911 |
as_fn_unset () |
| 12912 |
{ |
| 12913 |
{ eval $1=; unset $1;} |
| 12914 |
} |
| 12915 |
as_unset=as_fn_unset |
| 12916 |
|
| 12917 |
# as_fn_append VAR VALUE |
| 12918 |
# ---------------------- |
| 12919 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 12920 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 12921 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 12922 |
# implementations. |
| 12923 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 12924 |
then : |
| 12925 |
eval 'as_fn_append () |
| 12926 |
{ |
| 12927 |
eval $1+=\$2 |
| 12928 |
}' |
| 12929 |
else case e in #( |
| 12930 |
e) as_fn_append () |
| 12931 |
{ |
| 12932 |
eval $1=\$$1\$2 |
| 12933 |
} ;; |
| 12934 |
esac |
| 12935 |
fi # as_fn_append |
| 12936 |
|
| 12937 |
# as_fn_arith ARG... |
| 12938 |
# ------------------ |
| 12939 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 12940 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 12941 |
# must be portable across $(()) and expr. |
| 12942 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 12943 |
then : |
| 12944 |
eval 'as_fn_arith () |
| 12945 |
{ |
| 12946 |
as_val=$(( $* )) |
| 12947 |
}' |
| 12948 |
else case e in #( |
| 12949 |
e) as_fn_arith () |
| 12950 |
{ |
| 12951 |
as_val=`expr "$@" || test $? -eq 1` |
| 12952 |
} ;; |
| 12953 |
esac |
| 12954 |
fi # as_fn_arith |
| 12955 |
|
| 12956 |
|
| 12957 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12958 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 12959 |
as_expr=expr |
| 12960 |
else |
| 12961 |
as_expr=false |
| 12962 |
fi |
| 12963 |
|
| 12964 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 12965 |
as_basename=basename |
| 12966 |
else |
| 12967 |
as_basename=false |
| 12968 |
fi |
| 12969 |
|
| 12970 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 12971 |
as_dirname=dirname |
| 12972 |
else |
| 12973 |
as_dirname=false |
| 12974 |
fi |
| 12975 |
|
| 12976 |
as_me=`$as_basename -- "$0" || |
| 12977 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12978 |
X"$0" : 'X\(//\)$' \| \ |
| 12979 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 12980 |
printf "%s\n" X/"$0" | |
| 12981 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 12982 |
s//\1/ |
| 12983 |
q |
| 12984 |
} |
| 12985 |
/^X\/\(\/\/\)$/{ |
| 12986 |
s//\1/ |
| 12987 |
q |
| 12988 |
} |
| 12989 |
/^X\/\(\/\).*/{ |
| 12990 |
s//\1/ |
| 12991 |
q |
| 12992 |
} |
| 12993 |
s/.*/./; q'` |
| 12994 |
|
| 12995 |
# Avoid depending upon Character Ranges. |
| 12996 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12997 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12998 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12999 |
as_cr_digits='0123456789' |
| 13000 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 13001 |
|
| 13002 |
|
| 13003 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 13004 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 13005 |
# for compatibility with existing Makefiles. |
| 13006 |
ECHO_C= ECHO_N= ECHO_T= |
| 13007 |
case `echo -n x` in #((((( |
| 13008 |
-n*) |
| 13009 |
case `echo 'xy\c'` in |
| 13010 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 13011 |
xy) ECHO_C='\c';; |
| 13012 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13013 |
ECHO_T=' ';; |
| 13014 |
esac;; |
| 13015 |
*) |
| 13016 |
ECHO_N='-n';; |
| 13017 |
esac |
| 13018 |
|
| 13019 |
# For backward compatibility with old third-party macros, we provide |
| 13020 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 13021 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 13022 |
as_echo='printf %s\n' |
| 13023 |
as_echo_n='printf %s' |
| 13024 |
|
| 13025 |
rm -f conf$$ conf$$.exe conf$$.file |
| 13026 |
if test -d conf$$.dir; then |
| 13027 |
rm -f conf$$.dir/conf$$.file |
| 13028 |
else |
| 13029 |
rm -f conf$$.dir |
| 13030 |
mkdir conf$$.dir 2>/dev/null |
| 13031 |
fi |
| 13032 |
if (echo >conf$$.file) 2>/dev/null; then |
| 13033 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13034 |
as_ln_s='ln -s' |
| 13035 |
# ... but there are two gotchas: |
| 13036 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 13037 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 13038 |
# In both cases, we have to default to 'cp -pR'. |
| 13039 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 13040 |
as_ln_s='cp -pR' |
| 13041 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13042 |
as_ln_s=ln |
| 13043 |
else |
| 13044 |
as_ln_s='cp -pR' |
| 13045 |
fi |
| 13046 |
else |
| 13047 |
as_ln_s='cp -pR' |
| 13048 |
fi |
| 13049 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13050 |
rmdir conf$$.dir 2>/dev/null |
| 13051 |
|
| 13052 |
|
| 13053 |
# as_fn_mkdir_p |
| 13054 |
# ------------- |
| 13055 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 13056 |
as_fn_mkdir_p () |
| 13057 |
{ |
| 13058 |
|
| 13059 |
case $as_dir in #( |
| 13060 |
-*) as_dir=./$as_dir;; |
| 13061 |
esac |
| 13062 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 13063 |
as_dirs= |
| 13064 |
while :; do |
| 13065 |
case $as_dir in #( |
| 13066 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13067 |
*) as_qdir=$as_dir;; |
| 13068 |
esac |
| 13069 |
as_dirs="'$as_qdir' $as_dirs" |
| 13070 |
as_dir=`$as_dirname -- "$as_dir" || |
| 13071 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13072 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13073 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 13074 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13075 |
printf "%s\n" X"$as_dir" | |
| 13076 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13077 |
s//\1/ |
| 13078 |
q |
| 13079 |
} |
| 13080 |
/^X\(\/\/\)[^/].*/{ |
| 13081 |
s//\1/ |
| 13082 |
q |
| 13083 |
} |
| 13084 |
/^X\(\/\/\)$/{ |
| 13085 |
s//\1/ |
| 13086 |
q |
| 13087 |
} |
| 13088 |
/^X\(\/\).*/{ |
| 13089 |
s//\1/ |
| 13090 |
q |
| 13091 |
} |
| 13092 |
s/.*/./; q'` |
| 13093 |
test -d "$as_dir" && break |
| 13094 |
done |
| 13095 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13096 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 13097 |
|
| 13098 |
|
| 13099 |
} # as_fn_mkdir_p |
| 13100 |
if mkdir -p . 2>/dev/null; then |
| 13101 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 13102 |
else |
| 13103 |
test -d ./-p && rmdir ./-p |
| 13104 |
as_mkdir_p=false |
| 13105 |
fi |
| 13106 |
|
| 13107 |
|
| 13108 |
# as_fn_executable_p FILE |
| 13109 |
# ----------------------- |
| 13110 |
# Test if FILE is an executable regular file. |
| 13111 |
as_fn_executable_p () |
| 13112 |
{ |
| 13113 |
test -f "$1" && test -x "$1" |
| 13114 |
} # as_fn_executable_p |
| 13115 |
as_test_x='test -x' |
| 13116 |
as_executable_p=as_fn_executable_p |
| 13117 |
|
| 13118 |
# Sed expression to map a string onto a valid CPP name. |
| 13119 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 13120 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 13121 |
|
| 13122 |
# Sed expression to map a string onto a valid variable name. |
| 13123 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 13124 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 13125 |
|
| 13126 |
|
| 13127 |
exec 6>&1 |
| 13128 |
## ----------------------------------- ## |
| 13129 |
## Main body of $CONFIG_STATUS script. ## |
| 13130 |
## ----------------------------------- ## |
| 13131 |
_ASEOF |
| 13132 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 13133 |
|
| 13134 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13135 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 13136 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 13137 |
# values after options handling. |
| 13138 |
ac_log=" |
| 13139 |
This file was extended by nss-pam-ldapd $as_me 0.9.13, which was |
| 13140 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 13141 |
|
| 13142 |
CONFIG_FILES = $CONFIG_FILES |
| 13143 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 13144 |
CONFIG_LINKS = $CONFIG_LINKS |
| 13145 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13146 |
$ $0 $@ |
| 13147 |
|
| 13148 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13149 |
" |
| 13150 |
|
| 13151 |
_ACEOF |
| 13152 |
|
| 13153 |
case $ac_config_files in *" |
| 13154 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13155 |
esac |
| 13156 |
|
| 13157 |
case $ac_config_headers in *" |
| 13158 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13159 |
esac |
| 13160 |
|
| 13161 |
|
| 13162 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13163 |
# Files that config.status was made for. |
| 13164 |
config_files="$ac_config_files" |
| 13165 |
config_headers="$ac_config_headers" |
| 13166 |
config_commands="$ac_config_commands" |
| 13167 |
|
| 13168 |
_ACEOF |
| 13169 |
|
| 13170 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13171 |
ac_cs_usage="\ |
| 13172 |
'$as_me' instantiates files and other configuration actions |
| 13173 |
from templates according to the current configuration. Unless the files |
| 13174 |
and actions are specified as TAGs, all are instantiated by default. |
| 13175 |
|
| 13176 |
Usage: $0 [OPTION]... [TAG]... |
| 13177 |
|
| 13178 |
-h, --help print this help, then exit |
| 13179 |
-V, --version print version number and configuration settings, then exit |
| 13180 |
--config print configuration, then exit |
| 13181 |
-q, --quiet, --silent |
| 13182 |
do not print progress messages |
| 13183 |
-d, --debug don't remove temporary files |
| 13184 |
--recheck update $as_me by reconfiguring in the same conditions |
| 13185 |
--file=FILE[:TEMPLATE] |
| 13186 |
instantiate the configuration file FILE |
| 13187 |
--header=FILE[:TEMPLATE] |
| 13188 |
instantiate the configuration header FILE |
| 13189 |
|
| 13190 |
Configuration files: |
| 13191 |
$config_files |
| 13192 |
|
| 13193 |
Configuration headers: |
| 13194 |
$config_headers |
| 13195 |
|
| 13196 |
Configuration commands: |
| 13197 |
$config_commands |
| 13198 |
|
| 13199 |
Report bugs to <[email protected]>. |
| 13200 |
nss-pam-ldapd home page: <https://arthurdejong.org/nss-pam-ldapd/>." |
| 13201 |
|
| 13202 |
_ACEOF |
| 13203 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 13204 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 13205 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13206 |
ac_cs_config='$ac_cs_config_escaped' |
| 13207 |
ac_cs_version="\\ |
| 13208 |
nss-pam-ldapd config.status 0.9.13 |
| 13209 |
configured by $0, generated by GNU Autoconf 2.72, |
| 13210 |
with options \\"\$ac_cs_config\\" |
| 13211 |
|
| 13212 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 13213 |
This config.status script is free software; the Free Software Foundation |
| 13214 |
gives unlimited permission to copy, distribute and modify it." |
| 13215 |
|
| 13216 |
ac_pwd='$ac_pwd' |
| 13217 |
srcdir='$srcdir' |
| 13218 |
INSTALL='$INSTALL' |
| 13219 |
MKDIR_P='$MKDIR_P' |
| 13220 |
AWK='$AWK' |
| 13221 |
test -n "\$AWK" || AWK=awk |
| 13222 |
_ACEOF |
| 13223 |
|
| 13224 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13225 |
# The default lists apply if the user does not specify any file. |
| 13226 |
ac_need_defaults=: |
| 13227 |
while test $# != 0 |
| 13228 |
do |
| 13229 |
case $1 in |
| 13230 |
--*=?*) |
| 13231 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13232 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 13233 |
ac_shift=: |
| 13234 |
;; |
| 13235 |
--*=) |
| 13236 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13237 |
ac_optarg= |
| 13238 |
ac_shift=: |
| 13239 |
;; |
| 13240 |
*) |
| 13241 |
ac_option=$1 |
| 13242 |
ac_optarg=$2 |
| 13243 |
ac_shift=shift |
| 13244 |
;; |
| 13245 |
esac |
| 13246 |
|
| 13247 |
case $ac_option in |
| 13248 |
# Handling of the options. |
| 13249 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13250 |
ac_cs_recheck=: ;; |
| 13251 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 13252 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 13253 |
--config | --confi | --conf | --con | --co | --c ) |
| 13254 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 13255 |
--debug | --debu | --deb | --de | --d | -d ) |
| 13256 |
debug=: ;; |
| 13257 |
--file | --fil | --fi | --f ) |
| 13258 |
$ac_shift |
| 13259 |
case $ac_optarg in |
| 13260 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13261 |
'') as_fn_error $? "missing file argument" ;; |
| 13262 |
esac |
| 13263 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 13264 |
ac_need_defaults=false;; |
| 13265 |
--header | --heade | --head | --hea ) |
| 13266 |
$ac_shift |
| 13267 |
case $ac_optarg in |
| 13268 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13269 |
esac |
| 13270 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 13271 |
ac_need_defaults=false;; |
| 13272 |
--he | --h) |
| 13273 |
# Conflict between --help and --header |
| 13274 |
as_fn_error $? "ambiguous option: '$1' |
| 13275 |
Try '$0 --help' for more information.";; |
| 13276 |
--help | --hel | -h ) |
| 13277 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 13278 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13279 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13280 |
ac_cs_silent=: ;; |
| 13281 |
|
| 13282 |
# This is an error. |
| 13283 |
-*) as_fn_error $? "unrecognized option: '$1' |
| 13284 |
Try '$0 --help' for more information." ;; |
| 13285 |
|
| 13286 |
*) as_fn_append ac_config_targets " $1" |
| 13287 |
ac_need_defaults=false ;; |
| 13288 |
|
| 13289 |
esac |
| 13290 |
shift |
| 13291 |
done |
| 13292 |
|
| 13293 |
ac_configure_extra_args= |
| 13294 |
|
| 13295 |
if $ac_cs_silent; then |
| 13296 |
exec 6>/dev/null |
| 13297 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13298 |
fi |
| 13299 |
|
| 13300 |
_ACEOF |
| 13301 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13302 |
if \$ac_cs_recheck; then |
| 13303 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 13304 |
shift |
| 13305 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 13306 |
CONFIG_SHELL='$SHELL' |
| 13307 |
export CONFIG_SHELL |
| 13308 |
exec "\$@" |
| 13309 |
fi |
| 13310 |
|
| 13311 |
_ACEOF |
| 13312 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13313 |
exec 5>>config.log |
| 13314 |
{ |
| 13315 |
echo |
| 13316 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13317 |
## Running $as_me. ## |
| 13318 |
_ASBOX |
| 13319 |
printf "%s\n" "$ac_log" |
| 13320 |
} >&5 |
| 13321 |
|
| 13322 |
_ACEOF |
| 13323 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13324 |
# |
| 13325 |
# INIT-COMMANDS |
| 13326 |
# |
| 13327 |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 13328 |
|
| 13329 |
_ACEOF |
| 13330 |
|
| 13331 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13332 |
|
| 13333 |
# Handling of arguments. |
| 13334 |
for ac_config_target in $ac_config_targets |
| 13335 |
do |
| 13336 |
case $ac_config_target in |
| 13337 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 13338 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 13339 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 13340 |
"compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; |
| 13341 |
"common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
| 13342 |
"nss/Makefile") CONFIG_FILES="$CONFIG_FILES nss/Makefile" ;; |
| 13343 |
"pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;; |
| 13344 |
"utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; |
| 13345 |
"nslcd/Makefile") CONFIG_FILES="$CONFIG_FILES nslcd/Makefile" ;; |
| 13346 |
"pynslcd/Makefile") CONFIG_FILES="$CONFIG_FILES pynslcd/Makefile" ;; |
| 13347 |
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
| 13348 |
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 13349 |
"pynslcd/constants.py") CONFIG_FILES="$CONFIG_FILES pynslcd/constants.py" ;; |
| 13350 |
|
| 13351 |
*) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 13352 |
esac |
| 13353 |
done |
| 13354 |
|
| 13355 |
|
| 13356 |
# If the user did not use the arguments to specify the items to instantiate, |
| 13357 |
# then the envvar interface is used. Set only those that are not. |
| 13358 |
# We use the long form for the default assignment because of an extremely |
| 13359 |
# bizarre bug on SunOS 4.1.3. |
| 13360 |
if $ac_need_defaults; then |
| 13361 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 13362 |
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 13363 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 13364 |
fi |
| 13365 |
|
| 13366 |
# Have a temporary directory for convenience. Make it in the build tree |
| 13367 |
# simply because there is no reason against having it here, and in addition, |
| 13368 |
# creating and moving files from /tmp can sometimes cause problems. |
| 13369 |
# Hook for its removal unless debugging. |
| 13370 |
# Note that there is a small window in which the directory will not be cleaned: |
| 13371 |
# after its creation but before its name has been assigned to '$tmp'. |
| 13372 |
$debug || |
| 13373 |
{ |
| 13374 |
tmp= ac_tmp= |
| 13375 |
trap 'exit_status=$? |
| 13376 |
: "${ac_tmp:=$tmp}" |
| 13377 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 13378 |
' 0 |
| 13379 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 13380 |
} |
| 13381 |
# Create a (secure) tmp directory for tmp files. |
| 13382 |
|
| 13383 |
{ |
| 13384 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 13385 |
test -d "$tmp" |
| 13386 |
} || |
| 13387 |
{ |
| 13388 |
tmp=./conf$$-$RANDOM |
| 13389 |
(umask 077 && mkdir "$tmp") |
| 13390 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 13391 |
ac_tmp=$tmp |
| 13392 |
|
| 13393 |
# Set up the scripts for CONFIG_FILES section. |
| 13394 |
# No need to generate them if there are no CONFIG_FILES. |
| 13395 |
# This happens for instance with './config.status config.h'. |
| 13396 |
if test -n "$CONFIG_FILES"; then |
| 13397 |
|
| 13398 |
|
| 13399 |
ac_cr=`echo X | tr X '\015'` |
| 13400 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 13401 |
# But we know of no other shell where ac_cr would be empty at this |
| 13402 |
# point, so we can use a bashism as a fallback. |
| 13403 |
if test "x$ac_cr" = x; then |
| 13404 |
eval ac_cr=\$\'\\r\' |
| 13405 |
fi |
| 13406 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 13407 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 13408 |
ac_cs_awk_cr='\\r' |
| 13409 |
else |
| 13410 |
ac_cs_awk_cr=$ac_cr |
| 13411 |
fi |
| 13412 |
|
| 13413 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 13414 |
_ACEOF |
| 13415 |
|
| 13416 |
|
| 13417 |
{ |
| 13418 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 13419 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 13420 |
echo "_ACEOF" |
| 13421 |
} >conf$$subs.sh || |
| 13422 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13423 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 13424 |
ac_delim='%!_!# ' |
| 13425 |
for ac_last_try in false false false false false :; do |
| 13426 |
. ./conf$$subs.sh || |
| 13427 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13428 |
|
| 13429 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 13430 |
if test $ac_delim_n = $ac_delim_num; then |
| 13431 |
break |
| 13432 |
elif $ac_last_try; then |
| 13433 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 13434 |
else |
| 13435 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13436 |
fi |
| 13437 |
done |
| 13438 |
rm -f conf$$subs.sh |
| 13439 |
|
| 13440 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13441 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 13442 |
_ACEOF |
| 13443 |
sed -n ' |
| 13444 |
h |
| 13445 |
s/^/S["/; s/!.*/"]=/ |
| 13446 |
p |
| 13447 |
g |
| 13448 |
s/^[^!]*!// |
| 13449 |
:repl |
| 13450 |
t repl |
| 13451 |
s/'"$ac_delim"'$// |
| 13452 |
t delim |
| 13453 |
:nl |
| 13454 |
h |
| 13455 |
s/\(.\{148\}\)..*/\1/ |
| 13456 |
t more1 |
| 13457 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 13458 |
p |
| 13459 |
n |
| 13460 |
b repl |
| 13461 |
:more1 |
| 13462 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13463 |
p |
| 13464 |
g |
| 13465 |
s/.\{148\}// |
| 13466 |
t nl |
| 13467 |
:delim |
| 13468 |
h |
| 13469 |
s/\(.\{148\}\)..*/\1/ |
| 13470 |
t more2 |
| 13471 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 13472 |
p |
| 13473 |
b |
| 13474 |
:more2 |
| 13475 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 13476 |
p |
| 13477 |
g |
| 13478 |
s/.\{148\}// |
| 13479 |
t delim |
| 13480 |
' <conf$$subs.awk | sed ' |
| 13481 |
/^[^""]/{ |
| 13482 |
N |
| 13483 |
s/\n// |
| 13484 |
} |
| 13485 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13486 |
rm -f conf$$subs.awk |
| 13487 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13488 |
_ACAWK |
| 13489 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 13490 |
for (key in S) S_is_set[key] = 1 |
| 13491 |
FS = "" |
| 13492 |
|
| 13493 |
} |
| 13494 |
{ |
| 13495 |
line = $ 0 |
| 13496 |
nfields = split(line, field, "@") |
| 13497 |
substed = 0 |
| 13498 |
len = length(field[1]) |
| 13499 |
for (i = 2; i < nfields; i++) { |
| 13500 |
key = field[i] |
| 13501 |
keylen = length(key) |
| 13502 |
if (S_is_set[key]) { |
| 13503 |
value = S[key] |
| 13504 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 13505 |
len += length(value) + length(field[++i]) |
| 13506 |
substed = 1 |
| 13507 |
} else |
| 13508 |
len += 1 + keylen |
| 13509 |
} |
| 13510 |
|
| 13511 |
print line |
| 13512 |
} |
| 13513 |
|
| 13514 |
_ACAWK |
| 13515 |
_ACEOF |
| 13516 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13517 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 13518 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 13519 |
else |
| 13520 |
cat |
| 13521 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 13522 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 13523 |
_ACEOF |
| 13524 |
|
| 13525 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 13526 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 13527 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 13528 |
# (actually we leave an empty line to preserve line numbers). |
| 13529 |
if test "x$srcdir" = x.; then |
| 13530 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 13531 |
h |
| 13532 |
s/// |
| 13533 |
s/^/:/ |
| 13534 |
s/[ ]*$/:/ |
| 13535 |
s/:\$(srcdir):/:/g |
| 13536 |
s/:\${srcdir}:/:/g |
| 13537 |
s/:@srcdir@:/:/g |
| 13538 |
s/^:*// |
| 13539 |
s/:*$// |
| 13540 |
x |
| 13541 |
s/\(=[ ]*\).*/\1/ |
| 13542 |
G |
| 13543 |
s/\n// |
| 13544 |
s/^[^=]*=[ ]*$// |
| 13545 |
}' |
| 13546 |
fi |
| 13547 |
|
| 13548 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13549 |
fi # test -n "$CONFIG_FILES" |
| 13550 |
|
| 13551 |
# Set up the scripts for CONFIG_HEADERS section. |
| 13552 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 13553 |
# This happens for instance with './config.status Makefile'. |
| 13554 |
if test -n "$CONFIG_HEADERS"; then |
| 13555 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 13556 |
BEGIN { |
| 13557 |
_ACEOF |
| 13558 |
|
| 13559 |
# Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 13560 |
# here-document in config.status, that substitutes the proper values into |
| 13561 |
# config.h.in to produce config.h. |
| 13562 |
|
| 13563 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 13564 |
# handling of long lines. |
| 13565 |
ac_delim='%!_!# ' |
| 13566 |
for ac_last_try in false false :; do |
| 13567 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 13568 |
if test -z "$ac_tt"; then |
| 13569 |
break |
| 13570 |
elif $ac_last_try; then |
| 13571 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 13572 |
else |
| 13573 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 13574 |
fi |
| 13575 |
done |
| 13576 |
|
| 13577 |
# For the awk script, D is an array of macro values keyed by name, |
| 13578 |
# likewise P contains macro parameters if any. Preserve backslash |
| 13579 |
# newline sequences. |
| 13580 |
|
| 13581 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 13582 |
sed -n ' |
| 13583 |
s/.\{148\}/&'"$ac_delim"'/g |
| 13584 |
t rset |
| 13585 |
:rset |
| 13586 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 13587 |
t def |
| 13588 |
d |
| 13589 |
:def |
| 13590 |
s/\\$// |
| 13591 |
t bsnl |
| 13592 |
s/["\\]/\\&/g |
| 13593 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 13594 |
D["\1"]=" \3"/p |
| 13595 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 13596 |
d |
| 13597 |
:bsnl |
| 13598 |
s/["\\]/\\&/g |
| 13599 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 13600 |
D["\1"]=" \3\\\\\\n"\\/p |
| 13601 |
t cont |
| 13602 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 13603 |
t cont |
| 13604 |
d |
| 13605 |
:cont |
| 13606 |
n |
| 13607 |
s/.\{148\}/&'"$ac_delim"'/g |
| 13608 |
t clear |
| 13609 |
:clear |
| 13610 |
s/\\$// |
| 13611 |
t bsnlc |
| 13612 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 13613 |
d |
| 13614 |
:bsnlc |
| 13615 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 13616 |
b cont |
| 13617 |
' <confdefs.h | sed ' |
| 13618 |
s/'"$ac_delim"'/"\\\ |
| 13619 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 13620 |
|
| 13621 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13622 |
for (key in D) D_is_set[key] = 1 |
| 13623 |
FS = "" |
| 13624 |
} |
| 13625 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 13626 |
line = \$ 0 |
| 13627 |
split(line, arg, " ") |
| 13628 |
if (arg[1] == "#") { |
| 13629 |
defundef = arg[2] |
| 13630 |
mac1 = arg[3] |
| 13631 |
} else { |
| 13632 |
defundef = substr(arg[1], 2) |
| 13633 |
mac1 = arg[2] |
| 13634 |
} |
| 13635 |
split(mac1, mac2, "(") #) |
| 13636 |
macro = mac2[1] |
| 13637 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 13638 |
if (D_is_set[macro]) { |
| 13639 |
# Preserve the white space surrounding the "#". |
| 13640 |
print prefix "define", macro P[macro] D[macro] |
| 13641 |
next |
| 13642 |
} else { |
| 13643 |
# Replace #undef with comments. This is necessary, for example, |
| 13644 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 13645 |
# on some systems where configure will not decide to define it. |
| 13646 |
if (defundef == "undef") { |
| 13647 |
print "/*", prefix defundef, macro, "*/" |
| 13648 |
next |
| 13649 |
} |
| 13650 |
} |
| 13651 |
} |
| 13652 |
{ print } |
| 13653 |
_ACAWK |
| 13654 |
_ACEOF |
| 13655 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13656 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 13657 |
fi # test -n "$CONFIG_HEADERS" |
| 13658 |
|
| 13659 |
|
| 13660 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 13661 |
shift |
| 13662 |
for ac_tag |
| 13663 |
do |
| 13664 |
case $ac_tag in |
| 13665 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 13666 |
esac |
| 13667 |
case $ac_mode$ac_tag in |
| 13668 |
:[FHL]*:*);; |
| 13669 |
:L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 13670 |
:[FH]-) ac_tag=-:-;; |
| 13671 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 13672 |
esac |
| 13673 |
ac_save_IFS=$IFS |
| 13674 |
IFS=: |
| 13675 |
set x $ac_tag |
| 13676 |
IFS=$ac_save_IFS |
| 13677 |
shift |
| 13678 |
ac_file=$1 |
| 13679 |
shift |
| 13680 |
|
| 13681 |
case $ac_mode in |
| 13682 |
:L) ac_source=$1;; |
| 13683 |
:[FH]) |
| 13684 |
ac_file_inputs= |
| 13685 |
for ac_f |
| 13686 |
do |
| 13687 |
case $ac_f in |
| 13688 |
-) ac_f="$ac_tmp/stdin";; |
| 13689 |
*) # Look for the file first in the build tree, then in the source tree |
| 13690 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13691 |
# because $ac_f cannot contain ':'. |
| 13692 |
test -f "$ac_f" || |
| 13693 |
case $ac_f in |
| 13694 |
[\\/$]*) false;; |
| 13695 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13696 |
esac || |
| 13697 |
as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 13698 |
esac |
| 13699 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 13700 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 13701 |
done |
| 13702 |
|
| 13703 |
# Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 13704 |
# use $as_me), people would be surprised to read: |
| 13705 |
# /* config.h. Generated by config.status. */ |
| 13706 |
configure_input='Generated from '` |
| 13707 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 13708 |
`' by configure.' |
| 13709 |
if test x"$ac_file" != x-; then |
| 13710 |
configure_input="$ac_file. $configure_input" |
| 13711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 13712 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 13713 |
fi |
| 13714 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 13715 |
case $configure_input in #( |
| 13716 |
*\&* | *\|* | *\\* ) |
| 13717 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 13718 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 13719 |
*) ac_sed_conf_input=$configure_input;; |
| 13720 |
esac |
| 13721 |
|
| 13722 |
case $ac_tag in |
| 13723 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 13724 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 13725 |
esac |
| 13726 |
;; |
| 13727 |
esac |
| 13728 |
|
| 13729 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 13730 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13731 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13732 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 13733 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 13734 |
printf "%s\n" X"$ac_file" | |
| 13735 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13736 |
s//\1/ |
| 13737 |
q |
| 13738 |
} |
| 13739 |
/^X\(\/\/\)[^/].*/{ |
| 13740 |
s//\1/ |
| 13741 |
q |
| 13742 |
} |
| 13743 |
/^X\(\/\/\)$/{ |
| 13744 |
s//\1/ |
| 13745 |
q |
| 13746 |
} |
| 13747 |
/^X\(\/\).*/{ |
| 13748 |
s//\1/ |
| 13749 |
q |
| 13750 |
} |
| 13751 |
s/.*/./; q'` |
| 13752 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 13753 |
ac_builddir=. |
| 13754 |
|
| 13755 |
case "$ac_dir" in |
| 13756 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13757 |
*) |
| 13758 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 13759 |
# A ".." for each directory in $ac_dir_suffix. |
| 13760 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 13761 |
case $ac_top_builddir_sub in |
| 13762 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13763 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 13764 |
esac ;; |
| 13765 |
esac |
| 13766 |
ac_abs_top_builddir=$ac_pwd |
| 13767 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 13768 |
# for backward compatibility: |
| 13769 |
ac_top_builddir=$ac_top_build_prefix |
| 13770 |
|
| 13771 |
case $srcdir in |
| 13772 |
.) # We are building in place. |
| 13773 |
ac_srcdir=. |
| 13774 |
ac_top_srcdir=$ac_top_builddir_sub |
| 13775 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 13776 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 13777 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 13778 |
ac_top_srcdir=$srcdir |
| 13779 |
ac_abs_top_srcdir=$srcdir ;; |
| 13780 |
*) # Relative name. |
| 13781 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13782 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13783 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 13784 |
esac |
| 13785 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 13786 |
|
| 13787 |
|
| 13788 |
case $ac_mode in |
| 13789 |
:F) |
| 13790 |
# |
| 13791 |
# CONFIG_FILE |
| 13792 |
# |
| 13793 |
|
| 13794 |
case $INSTALL in |
| 13795 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 13796 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 13797 |
esac |
| 13798 |
ac_MKDIR_P=$MKDIR_P |
| 13799 |
case $MKDIR_P in |
| 13800 |
[\\/$]* | ?:[\\/]* ) ;; |
| 13801 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 13802 |
esac |
| 13803 |
_ACEOF |
| 13804 |
|
| 13805 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13806 |
# If the template does not know about datarootdir, expand it. |
| 13807 |
# FIXME: This hack should be removed a few years after 2.60. |
| 13808 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 13809 |
ac_sed_dataroot=' |
| 13810 |
/datarootdir/ { |
| 13811 |
p |
| 13812 |
q |
| 13813 |
} |
| 13814 |
/@datadir@/p |
| 13815 |
/@docdir@/p |
| 13816 |
/@infodir@/p |
| 13817 |
/@localedir@/p |
| 13818 |
/@mandir@/p' |
| 13819 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 13820 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 13821 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 13822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 13823 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 13824 |
_ACEOF |
| 13825 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13826 |
ac_datarootdir_hack=' |
| 13827 |
s&@datadir@&$datadir&g |
| 13828 |
s&@docdir@&$docdir&g |
| 13829 |
s&@infodir@&$infodir&g |
| 13830 |
s&@localedir@&$localedir&g |
| 13831 |
s&@mandir@&$mandir&g |
| 13832 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 13833 |
esac |
| 13834 |
_ACEOF |
| 13835 |
|
| 13836 |
# Neutralize VPATH when '$srcdir' = '.'. |
| 13837 |
# Shell code in configure.ac might set extrasub. |
| 13838 |
# FIXME: do we really want to maintain this feature? |
| 13839 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13840 |
ac_sed_extra="$ac_vpsub |
| 13841 |
$extrasub |
| 13842 |
_ACEOF |
| 13843 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13844 |
:t |
| 13845 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 13846 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 13847 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 13848 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 13849 |
s&@srcdir@&$ac_srcdir&;t t |
| 13850 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13851 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13852 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13853 |
s&@builddir@&$ac_builddir&;t t |
| 13854 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13855 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13856 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 13857 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 13858 |
$ac_datarootdir_hack |
| 13859 |
" |
| 13860 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 13861 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13862 |
|
| 13863 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 13864 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 13865 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 13866 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 13867 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 13868 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 13869 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 13870 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 13871 |
|
| 13872 |
rm -f "$ac_tmp/stdin" |
| 13873 |
case $ac_file in |
| 13874 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 13875 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 13876 |
esac \ |
| 13877 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13878 |
;; |
| 13879 |
:H) |
| 13880 |
# |
| 13881 |
# CONFIG_HEADER |
| 13882 |
# |
| 13883 |
if test x"$ac_file" != x-; then |
| 13884 |
{ |
| 13885 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 13886 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 13887 |
} >"$ac_tmp/config.h" \ |
| 13888 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13889 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 13890 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 13891 |
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 13892 |
else |
| 13893 |
rm -f "$ac_file" |
| 13894 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 13895 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13896 |
fi |
| 13897 |
else |
| 13898 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 13899 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 13900 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 13901 |
fi |
| 13902 |
# Compute "$ac_file"'s index in $config_headers. |
| 13903 |
_am_arg="$ac_file" |
| 13904 |
_am_stamp_count=1 |
| 13905 |
for _am_header in $config_headers :; do |
| 13906 |
case $_am_header in |
| 13907 |
$_am_arg | $_am_arg:* ) |
| 13908 |
break ;; |
| 13909 |
* ) |
| 13910 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 13911 |
esac |
| 13912 |
done |
| 13913 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 13914 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13915 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 13916 |
X"$_am_arg" : 'X\(//\)$' \| \ |
| 13917 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 13918 |
printf "%s\n" X"$_am_arg" | |
| 13919 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13920 |
s//\1/ |
| 13921 |
q |
| 13922 |
} |
| 13923 |
/^X\(\/\/\)[^/].*/{ |
| 13924 |
s//\1/ |
| 13925 |
q |
| 13926 |
} |
| 13927 |
/^X\(\/\/\)$/{ |
| 13928 |
s//\1/ |
| 13929 |
q |
| 13930 |
} |
| 13931 |
/^X\(\/\).*/{ |
| 13932 |
s//\1/ |
| 13933 |
q |
| 13934 |
} |
| 13935 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
| 13936 |
;; |
| 13937 |
|
| 13938 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 13939 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 13940 |
;; |
| 13941 |
esac |
| 13942 |
|
| 13943 |
|
| 13944 |
case $ac_file$ac_mode in |
| 13945 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 13946 |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 13947 |
# are listed without --file. Let's play safe and only enable the eval |
| 13948 |
# if we detect the quoting. |
| 13949 |
# TODO: see whether this extra hack can be removed once we start |
| 13950 |
# requiring Autoconf 2.70 or later. |
| 13951 |
case $CONFIG_FILES in #( |
| 13952 |
*\'*) : |
| 13953 |
eval set x "$CONFIG_FILES" ;; #( |
| 13954 |
*) : |
| 13955 |
set x $CONFIG_FILES ;; #( |
| 13956 |
*) : |
| 13957 |
;; |
| 13958 |
esac |
| 13959 |
shift |
| 13960 |
# Used to flag and report bootstrapping failures. |
| 13961 |
am_rc=0 |
| 13962 |
for am_mf |
| 13963 |
do |
| 13964 |
# Strip MF so we end up with the name of the file. |
| 13965 |
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 13966 |
# Check whether this is an Automake generated Makefile which includes |
| 13967 |
# dependency-tracking related rules and includes. |
| 13968 |
# Grep'ing the whole file directly is not great: AIX grep has a line |
| 13969 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 13970 |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 13971 |
|| continue |
| 13972 |
am_dirpart=`$as_dirname -- "$am_mf" || |
| 13973 |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13974 |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 13975 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 13976 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 13977 |
printf "%s\n" X"$am_mf" | |
| 13978 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13979 |
s//\1/ |
| 13980 |
q |
| 13981 |
} |
| 13982 |
/^X\(\/\/\)[^/].*/{ |
| 13983 |
s//\1/ |
| 13984 |
q |
| 13985 |
} |
| 13986 |
/^X\(\/\/\)$/{ |
| 13987 |
s//\1/ |
| 13988 |
q |
| 13989 |
} |
| 13990 |
/^X\(\/\).*/{ |
| 13991 |
s//\1/ |
| 13992 |
q |
| 13993 |
} |
| 13994 |
s/.*/./; q'` |
| 13995 |
am_filepart=`$as_basename -- "$am_mf" || |
| 13996 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13997 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 13998 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 13999 |
printf "%s\n" X/"$am_mf" | |
| 14000 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14001 |
s//\1/ |
| 14002 |
q |
| 14003 |
} |
| 14004 |
/^X\/\(\/\/\)$/{ |
| 14005 |
s//\1/ |
| 14006 |
q |
| 14007 |
} |
| 14008 |
/^X\/\(\/\).*/{ |
| 14009 |
s//\1/ |
| 14010 |
q |
| 14011 |
} |
| 14012 |
s/.*/./; q'` |
| 14013 |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 14014 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 14015 |
| $MAKE -f - am--depfiles" >&5 |
| 14016 |
(cd "$am_dirpart" \ |
| 14017 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 14018 |
| $MAKE -f - am--depfiles) >&5 2>&5 |
| 14019 |
ac_status=$? |
| 14020 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14021 |
(exit $ac_status); } || am_rc=$? |
| 14022 |
done |
| 14023 |
if test $am_rc -ne 0; then |
| 14024 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 14025 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 14026 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 14027 |
for automatic dependency tracking. If GNU make was not used, consider |
| 14028 |
re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 14029 |
necessary). You can also try re-running configure with the |
| 14030 |
'--disable-dependency-tracking' option to at least be able to build |
| 14031 |
the package (albeit without support for automatic dependency tracking). |
| 14032 |
See 'config.log' for more details" "$LINENO" 5; } |
| 14033 |
fi |
| 14034 |
{ am_dirpart=; unset am_dirpart;} |
| 14035 |
{ am_filepart=; unset am_filepart;} |
| 14036 |
{ am_mf=; unset am_mf;} |
| 14037 |
{ am_rc=; unset am_rc;} |
| 14038 |
rm -f conftest-deps.mk |
| 14039 |
} |
| 14040 |
;; |
| 14041 |
"pynslcd/constants.py":F) |
| 14042 |
( |
| 14043 |
echo '' |
| 14044 |
echo '# The following is automatically generated from nslcd.h.' |
| 14045 |
echo '# See that file for details.' |
| 14046 |
echo '' |
| 14047 |
sed -n 's| */\*.*\*/ *||;s/^.define *\(NSLCD_[A-Z_]*\) */\1 = /p' "$srcdir"/nslcd.h |
| 14048 |
) >> pynslcd/constants.py ;; |
| 14049 |
|
| 14050 |
esac |
| 14051 |
done # for ac_tag |
| 14052 |
|
| 14053 |
|
| 14054 |
as_fn_exit 0 |
| 14055 |
_ACEOF |
| 14056 |
ac_clean_files=$ac_clean_files_save |
| 14057 |
|
| 14058 |
test $ac_write_fail = 0 || |
| 14059 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 14060 |
|
| 14061 |
|
| 14062 |
# configure is writing to config.log, and then calls config.status. |
| 14063 |
# config.status does its own redirection, appending to config.log. |
| 14064 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 14065 |
# by configure, so config.status won't be able to write to it; its |
| 14066 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 14067 |
# effectively closing config.log, so it can be properly (re)opened and |
| 14068 |
# appended to by config.status. When coming back to configure, we |
| 14069 |
# need to make the FD available again. |
| 14070 |
if test "$no_create" != yes; then |
| 14071 |
ac_cs_success=: |
| 14072 |
ac_config_status_args= |
| 14073 |
test "$silent" = yes && |
| 14074 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 14075 |
exec 5>/dev/null |
| 14076 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 14077 |
exec 5>>config.log |
| 14078 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14079 |
# would make configure fail if this is the last instruction. |
| 14080 |
$ac_cs_success || as_fn_exit 1 |
| 14081 |
fi |
| 14082 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 14083 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 14084 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14085 |
fi |
| 14086 |
|
| 14087 |
|