A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for nss-pam-ldapd 0.9.12. 4 # 5 # Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>. 6 # 7 # Copyright (C) 2006 Luke Howard 8 # Copyright (C) 2006 West Consulting 9 # Copyright (C) 2006-2021 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-2021 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 as_nop=: 31 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 32 then : 33 emulate sh 34 NULLCMD=: 35 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 36 # is contrary to our usage. Disable this feature. 37 alias -g '${1+"$@"}'='"$@"' 38 setopt NO_GLOB_SUBST 39 else $as_nop 40 case `(set -o) 2>/dev/null` in #( 41 *posix*) : 42 set -o posix ;; #( 43 *) : 44 ;; 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="as_nop=: 154 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 155 then : 156 emulate sh 157 NULLCMD=: 158 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 159 # is contrary to our usage. Disable this feature. 160 alias -g '\${1+\"\$@\"}'='\"\$@\"' 161 setopt NO_GLOB_SUBST 162 else \$as_nop 163 case \`(set -o) 2>/dev/null\` in #( 164 *posix*) : 165 set -o posix ;; #( 166 *) : 167 ;; 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 \$as_nop 186 exitcode=1; echo positional parameters were not saved. 187 fi 188 test x\$exitcode = x0 || exit 1 189 blah=\$(echo \$(echo blah)) 190 test x\"\$blah\" = xblah || exit 1 191 test -x / || exit 1" 192 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 193 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 194 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 195 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 196 test \$(( 1 + 1 )) = 2 || exit 1" 197 if (eval "$as_required") 2>/dev/null 198 then : 199 as_have_required=yes 200 else $as_nop 201 as_have_required=no 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else $as_nop 207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else $as_nop 241 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi 246 fi 247 248 249 if test "x$CONFIG_SHELL" != x 250 then : 251 export CONFIG_SHELL 252 # We cannot yet assume a decent shell, so we have to provide a 253 # neutralization value for shells without unset; and this also 254 # works around shells that cannot unset nonexistent variables. 255 # Preserve -v and -x to the replacement shell. 256 BASH_ENV=/dev/null 257 ENV=/dev/null 258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 259 case $- in # (((( 260 *v*x* | *x*v* ) as_opts=-vx ;; 261 *v* ) as_opts=-v ;; 262 *x* ) as_opts=-x ;; 263 * ) as_opts= ;; 264 esac 265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 266 # Admittedly, this is quite paranoid, since all the known shells bail 267 # out after a failed `exec'. 268 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 269 exit 255 270 fi 271 272 if test x$as_have_required = xno 273 then : 274 printf "%s\n" "$0: This script requires a shell more modern than all" 275 printf "%s\n" "$0: the shells that I found on your system." 276 if test ${ZSH_VERSION+y} ; then 277 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 278 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 279 else 280 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 281 $0: nss-pam-ldapd-users@lists.arthurdejong.org about your 282 $0: system, including any error possibly output before this 283 $0: message. Then install a modern shell, or manually run 284 $0: the script under such a shell if you do have one." 285 fi 286 exit 1 287 fi 288 fi 289 fi 290 SHELL=${CONFIG_SHELL-/bin/sh} 291 export SHELL 292 # Unset more variables known to interfere with behavior of common tools. 293 CLICOLOR_FORCE= GREP_OPTIONS= 294 unset CLICOLOR_FORCE GREP_OPTIONS 295 296 ## --------------------- ## 297 ## M4sh Shell Functions. ## 298 ## --------------------- ## 299 # as_fn_unset VAR 300 # --------------- 301 # Portably unset VAR. 302 as_fn_unset () 303 { 304 { eval $1=; unset $1;} 305 } 306 as_unset=as_fn_unset 307 308 309 # as_fn_set_status STATUS 310 # ----------------------- 311 # Set $? to STATUS, without forking. 312 as_fn_set_status () 313 { 314 return $1 315 } # as_fn_set_status 316 317 # as_fn_exit STATUS 318 # ----------------- 319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 320 as_fn_exit () 321 { 322 set +e 323 as_fn_set_status $1 324 exit $1 325 } # as_fn_exit 326 # as_fn_nop 327 # --------- 328 # Do nothing but, unlike ":", preserve the value of $?. 329 as_fn_nop () 330 { 331 return $? 332 } 333 as_nop=as_fn_nop 334 335 # as_fn_mkdir_p 336 # ------------- 337 # Create "$as_dir" as a directory, including parents if necessary. 338 as_fn_mkdir_p () 339 { 340 341 case $as_dir in #( 342 -*) as_dir=./$as_dir;; 343 esac 344 test -d "$as_dir" || eval $as_mkdir_p || { 345 as_dirs= 346 while :; do 347 case $as_dir in #( 348 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 349 *) as_qdir=$as_dir;; 350 esac 351 as_dirs="'$as_qdir' $as_dirs" 352 as_dir=`$as_dirname -- "$as_dir" || 353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 354 X"$as_dir" : 'X\(//\)[^/]' \| \ 355 X"$as_dir" : 'X\(//\)$' \| \ 356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 357 printf "%s\n" X"$as_dir" | 358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 359 s//\1/ 360 q 361 } 362 /^X\(\/\/\)[^/].*/{ 363 s//\1/ 364 q 365 } 366 /^X\(\/\/\)$/{ 367 s//\1/ 368 q 369 } 370 /^X\(\/\).*/{ 371 s//\1/ 372 q 373 } 374 s/.*/./; q'` 375 test -d "$as_dir" && break 376 done 377 test -z "$as_dirs" || eval "mkdir $as_dirs" 378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 379 380 381 } # as_fn_mkdir_p 382 383 # as_fn_executable_p FILE 384 # ----------------------- 385 # Test if FILE is an executable regular file. 386 as_fn_executable_p () 387 { 388 test -f "$1" && test -x "$1" 389 } # as_fn_executable_p 390 # as_fn_append VAR VALUE 391 # ---------------------- 392 # Append the text in VALUE to the end of the definition contained in VAR. Take 393 # advantage of any shell optimizations that allow amortized linear growth over 394 # repeated appends, instead of the typical quadratic growth present in naive 395 # implementations. 396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 397 then : 398 eval 'as_fn_append () 399 { 400 eval $1+=\$2 401 }' 402 else $as_nop 403 as_fn_append () 404 { 405 eval $1=\$$1\$2 406 } 407 fi # as_fn_append 408 409 # as_fn_arith ARG... 410 # ------------------ 411 # Perform arithmetic evaluation on the ARGs, and store the result in the 412 # global $as_val. Take advantage of shells that can avoid forks. The arguments 413 # must be portable across $(()) and expr. 414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 415 then : 416 eval 'as_fn_arith () 417 { 418 as_val=$(( $* )) 419 }' 420 else $as_nop 421 as_fn_arith () 422 { 423 as_val=`expr "$@" || test $? -eq 1` 424 } 425 fi # as_fn_arith 426 427 # as_fn_nop 428 # --------- 429 # Do nothing but, unlike ":", preserve the value of $?. 430 as_fn_nop () 431 { 432 return $? 433 } 434 as_nop=as_fn_nop 435 436 # as_fn_error STATUS ERROR [LINENO LOG_FD] 437 # ---------------------------------------- 438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 440 # script with STATUS, using 1 if that was 0. 441 as_fn_error () 442 { 443 as_status=$1; test $as_status -eq 0 && as_status=1 444 if test "$4"; then 445 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 447 fi 448 printf "%s\n" "$as_me: error: $2" >&2 449 as_fn_exit $as_status 450 } # as_fn_error 451 452 if expr a : '\(a\)' >/dev/null 2>&1 && 453 test "X`expr 00001 : '.*\(...\)'`" = X001; then 454 as_expr=expr 455 else 456 as_expr=false 457 fi 458 459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 460 as_basename=basename 461 else 462 as_basename=false 463 fi 464 465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 466 as_dirname=dirname 467 else 468 as_dirname=false 469 fi 470 471 as_me=`$as_basename -- "$0" || 472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 473 X"$0" : 'X\(//\)$' \| \ 474 X"$0" : 'X\(/\)' \| . 2>/dev/null || 475 printf "%s\n" X/"$0" | 476 sed '/^.*\/\([^/][^/]*\)\/*$/{ 477 s//\1/ 478 q 479 } 480 /^X\/\(\/\/\)$/{ 481 s//\1/ 482 q 483 } 484 /^X\/\(\/\).*/{ 485 s//\1/ 486 q 487 } 488 s/.*/./; q'` 489 490 # Avoid depending upon Character Ranges. 491 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 494 as_cr_digits='0123456789' 495 as_cr_alnum=$as_cr_Letters$as_cr_digits 496 497 498 as_lineno_1=$LINENO as_lineno_1a=$LINENO 499 as_lineno_2=$LINENO as_lineno_2a=$LINENO 500 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 501 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 502 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 503 sed -n ' 504 p 505 /[$]LINENO/= 506 ' <$as_myself | 507 sed ' 508 s/[$]LINENO.*/&-/ 509 t lineno 510 b 511 :lineno 512 N 513 :loop 514 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 515 t loop 516 s/-\n.*// 517 ' >$as_me.lineno && 518 chmod +x "$as_me.lineno" || 519 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 520 521 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 522 # already done that, so ensure we don't try to do so again and fall 523 # in an infinite loop. This has already happened in practice. 524 _as_can_reexec=no; export _as_can_reexec 525 # Don't try to exec as it changes $[0], causing all sort of problems 526 # (the dirname of $[0] is not the place where we might find the 527 # original and so on. Autoconf is especially sensitive to this). 528 . "./$as_me.lineno" 529 # Exit status is that of the last command. 530 exit 531 } 532 533 534 # Determine whether it's possible to make 'echo' print without a newline. 535 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 536 # for compatibility with existing Makefiles. 537 ECHO_C= ECHO_N= ECHO_T= 538 case `echo -n x` in #((((( 539 -n*) 540 case `echo 'xy\c'` in 541 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 542 xy) ECHO_C='\c';; 543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 544 ECHO_T=' ';; 545 esac;; 546 *) 547 ECHO_N='-n';; 548 esac 549 550 # For backward compatibility with old third-party macros, we provide 551 # the shell variables $as_echo and $as_echo_n. New code should use 552 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 553 as_echo='printf %s\n' 554 as_echo_n='printf %s' 555 556 557 rm -f conf$$ conf$$.exe conf$$.file 558 if test -d conf$$.dir; then 559 rm -f conf$$.dir/conf$$.file 560 else 561 rm -f conf$$.dir 562 mkdir conf$$.dir 2>/dev/null 563 fi 564 if (echo >conf$$.file) 2>/dev/null; then 565 if ln -s conf$$.file conf$$ 2>/dev/null; then 566 as_ln_s='ln -s' 567 # ... but there are two gotchas: 568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 570 # In both cases, we have to default to `cp -pR'. 571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 572 as_ln_s='cp -pR' 573 elif ln conf$$.file conf$$ 2>/dev/null; then 574 as_ln_s=ln 575 else 576 as_ln_s='cp -pR' 577 fi 578 else 579 as_ln_s='cp -pR' 580 fi 581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 582 rmdir conf$$.dir 2>/dev/null 583 584 if mkdir -p . 2>/dev/null; then 585 as_mkdir_p='mkdir -p "$as_dir"' 586 else 587 test -d ./-p && rmdir ./-p 588 as_mkdir_p=false 589 fi 590 591 as_test_x='test -x' 592 as_executable_p=as_fn_executable_p 593 594 # Sed expression to map a string onto a valid CPP name. 595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 596 597 # Sed expression to map a string onto a valid variable name. 598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 599 600 601 test -n "$DJDIR" || exec 7<&0 </dev/null 602 exec 6>&1 603 604 # Name of the host. 605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606 # so uname gets run too. 607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609 # 610 # Initializations. 611 # 612 ac_default_prefix=/usr/local 613 ac_clean_files= 614 ac_config_libobj_dir=. 615 LIBOBJS= 616 cross_compiling=no 617 subdirs= 618 MFLAGS= 619 MAKEFLAGS= 620 621 # Identity of this package. 622 PACKAGE_NAME='nss-pam-ldapd' 623 PACKAGE_TARNAME='nss-pam-ldapd' 624 PACKAGE_VERSION='0.9.12' 625 PACKAGE_STRING='nss-pam-ldapd 0.9.12' 626 PACKAGE_BUGREPORT='nss-pam-ldapd-users@lists.arthurdejong.org' 627 PACKAGE_URL='https://arthurdejong.org/nss-pam-ldapd/' 628 629 ac_unique_file="nslcd.h" 630 ac_default_prefix= 631 ac_config_libobj_dir=compat 632 # Factoring default headers for most tests. 633 ac_includes_default="\ 634 #include <stddef.h> 635 #ifdef HAVE_STDIO_H 636 # include <stdio.h> 637 #endif 638 #ifdef HAVE_STDLIB_H 639 # include <stdlib.h> 640 #endif 641 #ifdef HAVE_STRING_H 642 # include <string.h> 643 #endif 644 #ifdef HAVE_INTTYPES_H 645 # include <inttypes.h> 646 #endif 647 #ifdef HAVE_STDINT_H 648 # include <stdint.h> 649 #endif 650 #ifdef HAVE_STRINGS_H 651 # include <strings.h> 652 #endif 653 #ifdef HAVE_SYS_TYPES_H 654 # include <sys/types.h> 655 #endif 656 #ifdef HAVE_SYS_STAT_H 657 # include <sys/stat.h> 658 #endif 659 #ifdef HAVE_UNISTD_H 660 # include <unistd.h> 661 #endif" 662 663 ac_header_c_list= 664 ac_func_c_list= 665 ac_subst_vars='am__EXEEXT_FALSE 666 am__EXEEXT_TRUE 667 LTLIBOBJS 668 NSS_FLAVOUR_FREEBSD_FALSE 669 NSS_FLAVOUR_FREEBSD_TRUE 670 NSS_FLAVOUR_SOLARIS_FALSE 671 NSS_FLAVOUR_SOLARIS_TRUE 672 NSS_FLAVOUR_GLIBC_FALSE 673 NSS_FLAVOUR_GLIBC_TRUE 674 nslcd_LIBS 675 PTHREAD_CFLAGS 676 PTHREAD_LIBS 677 PTHREAD_CC 678 ax_pthread_config 679 pam_ldap_so_LINK 680 pam_ldap_so_LDFLAGS 681 LIBOBJS 682 nss_ldap_so_LINK 683 nss_ldap_so_LDFLAGS 684 NSS_MODULE_OBJS 685 NSS_FLAVOUR 686 EGREP 687 GREP 688 PAM_LDAP_SONAME 689 NSS_LDAP_SONAME 690 MODULE_NAME 691 PAM_SECLIB_DIR 692 NSLCD_SOCKET 693 NSLCD_PIDFILE 694 NSLCD_BINDPW_PATH 695 NSLCD_CONF_PATH 696 ENABLE_PYNSLCD_FALSE 697 ENABLE_PYNSLCD_TRUE 698 ENABLE_NSLCD_FALSE 699 ENABLE_NSLCD_TRUE 700 ENABLE_UTILS_FALSE 701 ENABLE_UTILS_TRUE 702 ENABLE_PAM_FALSE 703 ENABLE_PAM_TRUE 704 ENABLE_NSS_FALSE 705 ENABLE_NSS_TRUE 706 MAINT 707 MAINTAINER_MODE_FALSE 708 MAINTAINER_MODE_TRUE 709 PIC_CFLAGS 710 HAVE_PYTHON_FALSE 711 HAVE_PYTHON_TRUE 712 pkgpyexecdir 713 pyexecdir 714 pkgpythondir 715 pythondir 716 PYTHON_EXEC_PREFIX 717 PYTHON_PREFIX 718 PYTHON_PLATFORM 719 PYTHON_VERSION 720 PYTHON 721 INSTMAN_FALSE 722 INSTMAN_TRUE 723 GENMAN_FALSE 724 GENMAN_TRUE 725 DOCBOOK2X_MAN 726 ac_ct_AR 727 AR 728 LN_S 729 RANLIB 730 CPP 731 am__fastdepCC_FALSE 732 am__fastdepCC_TRUE 733 CCDEPMODE 734 am__nodep 735 AMDEPBACKSLASH 736 AMDEP_FALSE 737 AMDEP_TRUE 738 am__include 739 DEPDIR 740 OBJEXT 741 EXEEXT 742 ac_ct_CC 743 CPPFLAGS 744 LDFLAGS 745 CFLAGS 746 CC 747 AM_BACKSLASH 748 AM_DEFAULT_VERBOSITY 749 AM_DEFAULT_V 750 AM_V 751 CSCOPE 752 ETAGS 753 CTAGS 754 am__untar 755 am__tar 756 AMTAR 757 am__leading_dot 758 SET_MAKE 759 AWK 760 mkdir_p 761 MKDIR_P 762 INSTALL_STRIP_PROGRAM 763 STRIP 764 install_sh 765 MAKEINFO 766 AUTOHEADER 767 AUTOMAKE 768 AUTOCONF 769 ACLOCAL 770 VERSION 771 PACKAGE 772 CYGPATH_W 773 am__isrc 774 INSTALL_DATA 775 INSTALL_SCRIPT 776 INSTALL_PROGRAM 777 target_os 778 target_vendor 779 target_cpu 780 target 781 host_os 782 host_vendor 783 host_cpu 784 host 785 build_os 786 build_vendor 787 build_cpu 788 build 789 RELEASE_MONTH 790 target_alias 791 host_alias 792 build_alias 793 LIBS 794 ECHO_T 795 ECHO_N 796 ECHO_C 797 DEFS 798 mandir 799 localedir 800 libdir 801 psdir 802 pdfdir 803 dvidir 804 htmldir 805 infodir 806 docdir 807 oldincludedir 808 includedir 809 runstatedir 810 localstatedir 811 sharedstatedir 812 sysconfdir 813 datadir 814 datarootdir 815 libexecdir 816 sbindir 817 bindir 818 program_transform_name 819 prefix 820 exec_prefix 821 PACKAGE_URL 822 PACKAGE_BUGREPORT 823 PACKAGE_STRING 824 PACKAGE_VERSION 825 PACKAGE_TARNAME 826 PACKAGE_NAME 827 PATH_SEPARATOR 828 SHELL 829 am__quote' 830 ac_subst_files='' 831 ac_user_opts=' 832 enable_option_checking 833 enable_silent_rules 834 enable_dependency_tracking 835 with_python_sys_prefix 836 with_python_prefix 837 with_python_exec_prefix 838 enable_debug 839 enable_warnings 840 enable_maintainer_mode 841 enable_nss 842 enable_pam 843 enable_utils 844 enable_nslcd 845 enable_pynslcd 846 enable_sasl 847 enable_kerberos 848 enable_configfile_checking 849 with_ldap_conf_file 850 with_bindpw_file 851 with_nslcd_pidfile 852 with_nslcd_socket 853 with_pam_seclib_dir 854 with_module_name 855 with_nss_ldap_soname 856 with_pam_ldap_soname 857 with_nss_maps 858 with_nss_flavour 859 with_ldap_lib 860 ' 861 ac_precious_vars='build_alias 862 host_alias 863 target_alias 864 CC 865 CFLAGS 866 LDFLAGS 867 LIBS 868 CPPFLAGS 869 CPP 870 PYTHON' 871 872 873 # Initialize some variables set by options. 874 ac_init_help= 875 ac_init_version=false 876 ac_unrecognized_opts= 877 ac_unrecognized_sep= 878 # The variables have the same names as the options, with 879 # dashes changed to underlines. 880 cache_file=/dev/null 881 exec_prefix=NONE 882 no_create= 883 no_recursion= 884 prefix=NONE 885 program_prefix=NONE 886 program_suffix=NONE 887 program_transform_name=s,x,x, 888 silent= 889 site= 890 srcdir= 891 verbose= 892 x_includes=NONE 893 x_libraries=NONE 894 895 # Installation directory options. 896 # These are left unexpanded so users can "make install exec_prefix=/foo" 897 # and all the variables that are supposed to be based on exec_prefix 898 # by default will actually change. 899 # Use braces instead of parens because sh, perl, etc. also accept them. 900 # (The list follows the same order as the GNU Coding Standards.) 901 bindir='${exec_prefix}/bin' 902 sbindir='${exec_prefix}/sbin' 903 libexecdir='${exec_prefix}/libexec' 904 datarootdir='${prefix}/share' 905 datadir='${datarootdir}' 906 sysconfdir='${prefix}/etc' 907 sharedstatedir='${prefix}/com' 908 localstatedir='${prefix}/var' 909 runstatedir='${localstatedir}/run' 910 includedir='${prefix}/include' 911 oldincludedir='/usr/include' 912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 913 infodir='${datarootdir}/info' 914 htmldir='${docdir}' 915 dvidir='${docdir}' 916 pdfdir='${docdir}' 917 psdir='${docdir}' 918 libdir='${exec_prefix}/lib' 919 localedir='${datarootdir}/locale' 920 mandir='${datarootdir}/man' 921 922 ac_prev= 923 ac_dashdash= 924 for ac_option 925 do 926 # If the previous option needs an argument, assign it. 927 if test -n "$ac_prev"; then 928 eval $ac_prev=\$ac_option 929 ac_prev= 930 continue 931 fi 932 933 case $ac_option in 934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 935 *=) ac_optarg= ;; 936 *) ac_optarg=yes ;; 937 esac 938 939 case $ac_dashdash$ac_option in 940 --) 941 ac_dashdash=yes ;; 942 943 -bindir | --bindir | --bindi | --bind | --bin | --bi) 944 ac_prev=bindir ;; 945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 946 bindir=$ac_optarg ;; 947 948 -build | --build | --buil | --bui | --bu) 949 ac_prev=build_alias ;; 950 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 951 build_alias=$ac_optarg ;; 952 953 -cache-file | --cache-file | --cache-fil | --cache-fi \ 954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 955 ac_prev=cache_file ;; 956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 958 cache_file=$ac_optarg ;; 959 960 --config-cache | -C) 961 cache_file=config.cache ;; 962 963 -datadir | --datadir | --datadi | --datad) 964 ac_prev=datadir ;; 965 -datadir=* | --datadir=* | --datadi=* | --datad=*) 966 datadir=$ac_optarg ;; 967 968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 969 | --dataroo | --dataro | --datar) 970 ac_prev=datarootdir ;; 971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 973 datarootdir=$ac_optarg ;; 974 975 -disable-* | --disable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: \`$ac_useropt'" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984 "enable_$ac_useropt" 985 "*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=no ;; 990 991 -docdir | --docdir | --docdi | --doc | --do) 992 ac_prev=docdir ;; 993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 994 docdir=$ac_optarg ;; 995 996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 997 ac_prev=dvidir ;; 998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 999 dvidir=$ac_optarg ;; 1000 1001 -enable-* | --enable-*) 1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1006 ac_useropt_orig=$ac_useropt 1007 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1008 case $ac_user_opts in 1009 *" 1010 "enable_$ac_useropt" 1011 "*) ;; 1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1013 ac_unrecognized_sep=', ';; 1014 esac 1015 eval enable_$ac_useropt=\$ac_optarg ;; 1016 1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1019 | --exec | --exe | --ex) 1020 ac_prev=exec_prefix ;; 1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1023 | --exec=* | --exe=* | --ex=*) 1024 exec_prefix=$ac_optarg ;; 1025 1026 -gas | --gas | --ga | --g) 1027 # Obsolete; use --with-gas. 1028 with_gas=yes ;; 1029 1030 -help | --help | --hel | --he | -h) 1031 ac_init_help=long ;; 1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1033 ac_init_help=recursive ;; 1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1035 ac_init_help=short ;; 1036 1037 -host | --host | --hos | --ho) 1038 ac_prev=host_alias ;; 1039 -host=* | --host=* | --hos=* | --ho=*) 1040 host_alias=$ac_optarg ;; 1041 1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1043 ac_prev=htmldir ;; 1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1045 | --ht=*) 1046 htmldir=$ac_optarg ;; 1047 1048 -includedir | --includedir | --includedi | --included | --include \ 1049 | --includ | --inclu | --incl | --inc) 1050 ac_prev=includedir ;; 1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1052 | --includ=* | --inclu=* | --incl=* | --inc=*) 1053 includedir=$ac_optarg ;; 1054 1055 -infodir | --infodir | --infodi | --infod | --info | --inf) 1056 ac_prev=infodir ;; 1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1058 infodir=$ac_optarg ;; 1059 1060 -libdir | --libdir | --libdi | --libd) 1061 ac_prev=libdir ;; 1062 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1063 libdir=$ac_optarg ;; 1064 1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1066 | --libexe | --libex | --libe) 1067 ac_prev=libexecdir ;; 1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1069 | --libexe=* | --libex=* | --libe=*) 1070 libexecdir=$ac_optarg ;; 1071 1072 -localedir | --localedir | --localedi | --localed | --locale) 1073 ac_prev=localedir ;; 1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1075 localedir=$ac_optarg ;; 1076 1077 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1078 | --localstate | --localstat | --localsta | --localst | --locals) 1079 ac_prev=localstatedir ;; 1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1082 localstatedir=$ac_optarg ;; 1083 1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1085 ac_prev=mandir ;; 1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1087 mandir=$ac_optarg ;; 1088 1089 -nfp | --nfp | --nf) 1090 # Obsolete; use --without-fp. 1091 with_fp=no ;; 1092 1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1094 | --no-cr | --no-c | -n) 1095 no_create=yes ;; 1096 1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1099 no_recursion=yes ;; 1100 1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1103 | --oldin | --oldi | --old | --ol | --o) 1104 ac_prev=oldincludedir ;; 1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1108 oldincludedir=$ac_optarg ;; 1109 1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1111 ac_prev=prefix ;; 1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1113 prefix=$ac_optarg ;; 1114 1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1116 | --program-pre | --program-pr | --program-p) 1117 ac_prev=program_prefix ;; 1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1120 program_prefix=$ac_optarg ;; 1121 1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1123 | --program-suf | --program-su | --program-s) 1124 ac_prev=program_suffix ;; 1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1127 program_suffix=$ac_optarg ;; 1128 1129 -program-transform-name | --program-transform-name \ 1130 | --program-transform-nam | --program-transform-na \ 1131 | --program-transform-n | --program-transform- \ 1132 | --program-transform | --program-transfor \ 1133 | --program-transfo | --program-transf \ 1134 | --program-trans | --program-tran \ 1135 | --progr-tra | --program-tr | --program-t) 1136 ac_prev=program_transform_name ;; 1137 -program-transform-name=* | --program-transform-name=* \ 1138 | --program-transform-nam=* | --program-transform-na=* \ 1139 | --program-transform-n=* | --program-transform-=* \ 1140 | --program-transform=* | --program-transfor=* \ 1141 | --program-transfo=* | --program-transf=* \ 1142 | --program-trans=* | --program-tran=* \ 1143 | --progr-tra=* | --program-tr=* | --program-t=*) 1144 program_transform_name=$ac_optarg ;; 1145 1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1147 ac_prev=pdfdir ;; 1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1149 pdfdir=$ac_optarg ;; 1150 1151 -psdir | --psdir | --psdi | --psd | --ps) 1152 ac_prev=psdir ;; 1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1154 psdir=$ac_optarg ;; 1155 1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1157 | -silent | --silent | --silen | --sile | --sil) 1158 silent=yes ;; 1159 1160 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1161 | --runstate | --runstat | --runsta | --runst | --runs \ 1162 | --run | --ru | --r) 1163 ac_prev=runstatedir ;; 1164 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1165 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1166 | --run=* | --ru=* | --r=*) 1167 runstatedir=$ac_optarg ;; 1168 1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1170 ac_prev=sbindir ;; 1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1172 | --sbi=* | --sb=*) 1173 sbindir=$ac_optarg ;; 1174 1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1177 | --sharedst | --shareds | --shared | --share | --shar \ 1178 | --sha | --sh) 1179 ac_prev=sharedstatedir ;; 1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1183 | --sha=* | --sh=*) 1184 sharedstatedir=$ac_optarg ;; 1185 1186 -site | --site | --sit) 1187 ac_prev=site ;; 1188 -site=* | --site=* | --sit=*) 1189 site=$ac_optarg ;; 1190 1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1192 ac_prev=srcdir ;; 1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1194 srcdir=$ac_optarg ;; 1195 1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1197 | --syscon | --sysco | --sysc | --sys | --sy) 1198 ac_prev=sysconfdir ;; 1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1201 sysconfdir=$ac_optarg ;; 1202 1203 -target | --target | --targe | --targ | --tar | --ta | --t) 1204 ac_prev=target_alias ;; 1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1206 target_alias=$ac_optarg ;; 1207 1208 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1209 verbose=yes ;; 1210 1211 -version | --version | --versio | --versi | --vers | -V) 1212 ac_init_version=: ;; 1213 1214 -with-* | --with-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 as_fn_error $? "invalid package name: \`$ac_useropt'" 1219 ac_useropt_orig=$ac_useropt 1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 case $ac_user_opts in 1222 *" 1223 "with_$ac_useropt" 1224 "*) ;; 1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1226 ac_unrecognized_sep=', ';; 1227 esac 1228 eval with_$ac_useropt=\$ac_optarg ;; 1229 1230 -without-* | --without-*) 1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1232 # Reject names that are not valid shell variable names. 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1234 as_fn_error $? "invalid package name: \`$ac_useropt'" 1235 ac_useropt_orig=$ac_useropt 1236 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1237 case $ac_user_opts in 1238 *" 1239 "with_$ac_useropt" 1240 "*) ;; 1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1242 ac_unrecognized_sep=', ';; 1243 esac 1244 eval with_$ac_useropt=no ;; 1245 1246 --x) 1247 # Obsolete; use --with-x. 1248 with_x=yes ;; 1249 1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1251 | --x-incl | --x-inc | --x-in | --x-i) 1252 ac_prev=x_includes ;; 1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1255 x_includes=$ac_optarg ;; 1256 1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1259 ac_prev=x_libraries ;; 1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1262 x_libraries=$ac_optarg ;; 1263 1264 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1265 Try \`$0 --help' for more information" 1266 ;; 1267 1268 *=*) 1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1270 # Reject names that are not valid shell variable names. 1271 case $ac_envvar in #( 1272 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1274 esac 1275 eval $ac_envvar=\$ac_optarg 1276 export $ac_envvar ;; 1277 1278 *) 1279 # FIXME: should be removed in autoconf 3.0. 1280 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1282 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1284 ;; 1285 1286 esac 1287 done 1288 1289 if test -n "$ac_prev"; then 1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1291 as_fn_error $? "missing argument to $ac_option" 1292 fi 1293 1294 if test -n "$ac_unrecognized_opts"; then 1295 case $enable_option_checking in 1296 no) ;; 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1298 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1299 esac 1300 fi 1301 1302 # Check all directory arguments for consistency. 1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1304 datadir sysconfdir sharedstatedir localstatedir includedir \ 1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1306 libdir localedir mandir runstatedir 1307 do 1308 eval ac_val=\$$ac_var 1309 # Remove trailing slashes. 1310 case $ac_val in 1311 */ ) 1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1313 eval $ac_var=\$ac_val;; 1314 esac 1315 # Be sure to have absolute directory names. 1316 case $ac_val in 1317 [\\/$]* | ?:[\\/]* ) continue;; 1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1319 esac 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1321 done 1322 1323 # There might be people who depend on the old broken behavior: `$host' 1324 # used to hold the argument of --host etc. 1325 # FIXME: To remove some day. 1326 build=$build_alias 1327 host=$host_alias 1328 target=$target_alias 1329 1330 # FIXME: To remove some day. 1331 if test "x$host_alias" != x; then 1332 if test "x$build_alias" = x; then 1333 cross_compiling=maybe 1334 elif test "x$build_alias" != "x$host_alias"; then 1335 cross_compiling=yes 1336 fi 1337 fi 1338 1339 ac_tool_prefix= 1340 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1341 1342 test "$silent" = yes && exec 6>/dev/null 1343 1344 1345 ac_pwd=`pwd` && test -n "$ac_pwd" && 1346 ac_ls_di=`ls -di .` && 1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1348 as_fn_error $? "working directory cannot be determined" 1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1350 as_fn_error $? "pwd does not report name of working directory" 1351 1352 1353 # Find the source files, if location was not specified. 1354 if test -z "$srcdir"; then 1355 ac_srcdir_defaulted=yes 1356 # Try the directory containing this script, then the parent directory. 1357 ac_confdir=`$as_dirname -- "$as_myself" || 1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1359 X"$as_myself" : 'X\(//\)[^/]' \| \ 1360 X"$as_myself" : 'X\(//\)$' \| \ 1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1362 printf "%s\n" X"$as_myself" | 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\/\)[^/].*/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\).*/{ 1376 s//\1/ 1377 q 1378 } 1379 s/.*/./; q'` 1380 srcdir=$ac_confdir 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 srcdir=.. 1383 fi 1384 else 1385 ac_srcdir_defaulted=no 1386 fi 1387 if test ! -r "$srcdir/$ac_unique_file"; then 1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1390 fi 1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1392 ac_abs_confdir=`( 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1394 pwd)` 1395 # When building in place, set srcdir=. 1396 if test "$ac_abs_confdir" = "$ac_pwd"; then 1397 srcdir=. 1398 fi 1399 # Remove unnecessary trailing slashes from srcdir. 1400 # Double slashes in file names in object file debugging info 1401 # mess up M-x gdb in Emacs. 1402 case $srcdir in 1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1404 esac 1405 for ac_var in $ac_precious_vars; do 1406 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1407 eval ac_env_${ac_var}_value=\$${ac_var} 1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1410 done 1411 1412 # 1413 # Report the --help message. 1414 # 1415 if test "$ac_init_help" = "long"; then 1416 # Omit some internal or obsolete options to make the list less imposing. 1417 # This message is too long to be a string in the A/UX 3.1 sh. 1418 cat <<_ACEOF 1419 \`configure' configures nss-pam-ldapd 0.9.12 to adapt to many kinds of systems. 1420 1421 Usage: $0 [OPTION]... [VAR=VALUE]... 1422 1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1424 VAR=VALUE. See below for descriptions of some of the useful variables. 1425 1426 Defaults for the options are specified in brackets. 1427 1428 Configuration: 1429 -h, --help display this help and exit 1430 --help=short display options specific to this package 1431 --help=recursive display the short help of all the included packages 1432 -V, --version display version information and exit 1433 -q, --quiet, --silent do not print \`checking ...' messages 1434 --cache-file=FILE cache test results in FILE [disabled] 1435 -C, --config-cache alias for \`--cache-file=config.cache' 1436 -n, --no-create do not create output files 1437 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1438 1439 Installation directories: 1440 --prefix=PREFIX install architecture-independent files in PREFIX 1441 [$ac_default_prefix] 1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1443 [PREFIX] 1444 1445 By default, \`make install' will install all the files in 1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1448 for instance \`--prefix=\$HOME'. 1449 1450 For better control, use the options below. 1451 1452 Fine tuning of the installation directories: 1453 --bindir=DIR user executables [EPREFIX/bin] 1454 --sbindir=DIR system admin executables [EPREFIX/sbin] 1455 --libexecdir=DIR program executables [EPREFIX/libexec] 1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1459 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/nss-pam-ldapd] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473 _ACEOF 1474 1475 cat <<\_ACEOF 1476 1477 Program names: 1478 --program-prefix=PREFIX prepend PREFIX to installed program names 1479 --program-suffix=SUFFIX append SUFFIX to installed program names 1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1481 1482 System types: 1483 --build=BUILD configure for building on BUILD [guessed] 1484 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1485 --target=TARGET configure for building compilers for TARGET [HOST] 1486 _ACEOF 1487 fi 1488 1489 if test -n "$ac_init_help"; then 1490 case $ac_init_help in 1491 short | recursive ) echo "Configuration of nss-pam-ldapd 0.9.12:";; 1492 esac 1493 cat <<\_ACEOF 1494 1495 Optional Features: 1496 --disable-option-checking ignore unrecognized --enable/--with options 1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1499 --enable-silent-rules less verbose build output (undo: "make V=1") 1500 --disable-silent-rules verbose build output (undo: "make V=0") 1501 --enable-dependency-tracking 1502 do not reject slow dependency extractors 1503 --disable-dependency-tracking 1504 speeds up one-time build 1505 --enable-debug enable extensive debugging and logging 1506 --enable-warnings enable extra compiler warnings (gcc) 1507 --disable-maintainer-mode 1508 disable make rules and dependencies not useful (and 1509 sometimes confusing) to the casual installer 1510 --disable-nss build the NSS module [enabled] 1511 --disable-pam build the PAM module [enabled] 1512 --disable-utils build the the command-line utilities [auto] 1513 --disable-nslcd build the nslcd daemon [enabled] 1514 --enable-pynslcd build the pynslcd daemon [disabled] 1515 --disable-sasl disable SASL support [enabled] 1516 --disable-kerberos disable Kerberos support [enabled] 1517 --disable-configfile-checking 1518 check configfile options [enabled] 1519 1520 Optional Packages: 1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1523 --with-python-sys-prefix 1524 use Python's sys.prefix and sys.exec_prefix values 1525 --with-python_prefix override the default PYTHON_PREFIX 1526 --with-python_exec_prefix 1527 override the default PYTHON_EXEC_PREFIX 1528 --with-ldap-conf-file=PATH 1529 path to nslcd configuration file [/etc/nslcd.conf] 1530 --with-bindpw-file=PATH path to file with value for bindpw [disabled] 1531 --with-nslcd-pidfile=PATH 1532 path to pidfile [/var/run/nslcd/nslcd.pid] 1533 --with-nslcd-socket=PATH 1534 path to socket [/var/run/nslcd/socket] 1535 --with-pam-seclib-dir=PAM_SECLIB_DIR 1536 path to PAM security library [auto] 1537 --with-module-name=NAME name of NSS and PAM modules [ldap] 1538 --with-nss-ldap-soname=SONAME 1539 name of NSS module [auto] 1540 --with-pam-ldap-soname=SONAME 1541 name of PAM module [auto] 1542 --with-nss-maps=MAP LIST 1543 comma separated list of NSS maps to build [all] 1544 --with-nss-flavour=auto|glibc|solaris|freebsd 1545 the libc flavour to build our NSS module for [auto] 1546 --with-ldap-lib=TYPE select ldap library 1547 (auto|netscape5|netscape4|netscape3|umich|openldap) 1548 [auto] 1549 1550 Some influential environment variables: 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1554 nonstandard directory <lib dir> 1555 LIBS libraries to pass to the linker, e.g. -l<library> 1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1557 you have headers in a nonstandard directory <include dir> 1558 CPP C preprocessor 1559 PYTHON the Python interpreter 1560 1561 Use these variables to override the choices made by `configure' or to help 1562 it to find libraries and programs with nonstandard names/locations. 1563 1564 Report bugs to <nss-pam-ldapd-users@lists.arthurdejong.org>. 1565 nss-pam-ldapd home page: <https://arthurdejong.org/nss-pam-ldapd/>. 1566 _ACEOF 1567 ac_status=$? 1568 fi 1569 1570 if test "$ac_init_help" = "recursive"; then 1571 # If there are subdirs, report their specific --help. 1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1573 test -d "$ac_dir" || 1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1575 continue 1576 ac_builddir=. 1577 1578 case "$ac_dir" in 1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580 *) 1581 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1582 # A ".." for each directory in $ac_dir_suffix. 1583 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1584 case $ac_top_builddir_sub in 1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1587 esac ;; 1588 esac 1589 ac_abs_top_builddir=$ac_pwd 1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1591 # for backward compatibility: 1592 ac_top_builddir=$ac_top_build_prefix 1593 1594 case $srcdir in 1595 .) # We are building in place. 1596 ac_srcdir=. 1597 ac_top_srcdir=$ac_top_builddir_sub 1598 ac_abs_top_srcdir=$ac_pwd ;; 1599 [\\/]* | ?:[\\/]* ) # Absolute name. 1600 ac_srcdir=$srcdir$ac_dir_suffix; 1601 ac_top_srcdir=$srcdir 1602 ac_abs_top_srcdir=$srcdir ;; 1603 *) # Relative name. 1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1605 ac_top_srcdir=$ac_top_build_prefix$srcdir 1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1607 esac 1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1609 1610 cd "$ac_dir" || { ac_status=$?; continue; } 1611 # Check for configure.gnu first; this name is used for a wrapper for 1612 # Metaconfig's "Configure" on case-insensitive file systems. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624 fi 1625 1626 test -n "$ac_init_help" && exit $ac_status 1627 if $ac_init_version; then 1628 cat <<\_ACEOF 1629 nss-pam-ldapd configure 0.9.12 1630 generated by GNU Autoconf 2.71 1631 1632 Copyright (C) 2021 Free Software Foundation, Inc. 1633 This configure script is free software; the Free Software Foundation 1634 gives unlimited permission to copy, distribute and modify it. 1635 1636 Copyright (C) 2006 Luke Howard 1637 Copyright (C) 2006 West Consulting 1638 Copyright (C) 2006-2021 Arthur de Jong 1639 1640 This configure script is derived from configure.ac which is free software; 1641 you can redistribute it and/or modify it under the terms of the GNU Lesser 1642 General Public License as published by the Free Software Foundation; either 1643 version 2.1 of the License, or (at your option) any later version. See the 1644 configure.ac file for more details. 1645 _ACEOF 1646 exit 1647 fi 1648 1649 ## ------------------------ ## 1650 ## Autoconf initialization. ## 1651 ## ------------------------ ## 1652 1653 # ac_fn_c_try_compile LINENO 1654 # -------------------------- 1655 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1656 ac_fn_c_try_compile () 1657 { 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 rm -f conftest.$ac_objext conftest.beam 1660 if { { ac_try="$ac_compile" 1661 case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664 esac 1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666 printf "%s\n" "$ac_try_echo"; } >&5 1667 (eval "$ac_compile") 2>conftest.err 1668 ac_status=$? 1669 if test -s conftest.err; then 1670 grep -v '^ *+' conftest.err >conftest.er1 1671 cat conftest.er1 >&5 1672 mv -f conftest.er1 conftest.err 1673 fi 1674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { 1676 test -z "$ac_c_werror_flag" || 1677 test ! -s conftest.err 1678 } && test -s conftest.$ac_objext 1679 then : 1680 ac_retval=0 1681 else $as_nop 1682 printf "%s\n" "$as_me: failed program was:" >&5 1683 sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686 fi 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 as_fn_set_status $ac_retval 1689 1690 } # ac_fn_c_try_compile 1691 1692 # ac_fn_c_try_cpp LINENO 1693 # ---------------------- 1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1695 ac_fn_c_try_cpp () 1696 { 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 if { { ac_try="$ac_cpp conftest.$ac_ext" 1699 case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702 esac 1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704 printf "%s\n" "$ac_try_echo"; } >&5 1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1706 ac_status=$? 1707 if test -s conftest.err; then 1708 grep -v '^ *+' conftest.err >conftest.er1 1709 cat conftest.er1 >&5 1710 mv -f conftest.er1 conftest.err 1711 fi 1712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } > conftest.i && { 1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1715 test ! -s conftest.err 1716 } 1717 then : 1718 ac_retval=0 1719 else $as_nop 1720 printf "%s\n" "$as_me: failed program was:" >&5 1721 sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724 fi 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728 } # ac_fn_c_try_cpp 1729 1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1731 # ------------------------------------------------------- 1732 # Tests whether HEADER exists and can be compiled using the include files in 1733 # INCLUDES, setting the cache variable VAR accordingly. 1734 ac_fn_c_check_header_compile () 1735 { 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738 printf %s "checking for $2... " >&6; } 1739 if eval test \${$3+y} 1740 then : 1741 printf %s "(cached) " >&6 1742 else $as_nop 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744 /* end confdefs.h. */ 1745 $4 1746 #include <$2> 1747 _ACEOF 1748 if ac_fn_c_try_compile "$LINENO" 1749 then : 1750 eval "$3=yes" 1751 else $as_nop 1752 eval "$3=no" 1753 fi 1754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1755 fi 1756 eval ac_res=\$$3 1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758 printf "%s\n" "$ac_res" >&6; } 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 1761 } # ac_fn_c_check_header_compile 1762 1763 # ac_fn_c_try_link LINENO 1764 # ----------------------- 1765 # Try to link conftest.$ac_ext, and return whether this succeeded. 1766 ac_fn_c_try_link () 1767 { 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1770 if { { ac_try="$ac_link" 1771 case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774 esac 1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776 printf "%s\n" "$ac_try_echo"; } >&5 1777 (eval "$ac_link") 2>conftest.err 1778 ac_status=$? 1779 if test -s conftest.err; then 1780 grep -v '^ *+' conftest.err >conftest.er1 1781 cat conftest.er1 >&5 1782 mv -f conftest.er1 conftest.err 1783 fi 1784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1785 test $ac_status = 0; } && { 1786 test -z "$ac_c_werror_flag" || 1787 test ! -s conftest.err 1788 } && test -s conftest$ac_exeext && { 1789 test "$cross_compiling" = yes || 1790 test -x conftest$ac_exeext 1791 } 1792 then : 1793 ac_retval=0 1794 else $as_nop 1795 printf "%s\n" "$as_me: failed program was:" >&5 1796 sed 's/^/| /' conftest.$ac_ext >&5 1797 1798 ac_retval=1 1799 fi 1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1802 # interfere with the next link command; also delete a directory that is 1803 # left behind by Apple's compiler. We do this before executing the actions. 1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808 } # ac_fn_c_try_link 1809 1810 # ac_fn_c_check_func LINENO FUNC VAR 1811 # ---------------------------------- 1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1813 ac_fn_c_check_func () 1814 { 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817 printf %s "checking for $2... " >&6; } 1818 if eval test \${$3+y} 1819 then : 1820 printf %s "(cached) " >&6 1821 else $as_nop 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823 /* end confdefs.h. */ 1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1826 #define $2 innocuous_$2 1827 1828 /* System header to define __stub macros and hopefully few prototypes, 1829 which can conflict with char $2 (); below. */ 1830 1831 #include <limits.h> 1832 #undef $2 1833 1834 /* Override any GCC internal prototype to avoid an error. 1835 Use char because int might match the return type of a GCC 1836 builtin and then its argument prototype would still apply. */ 1837 #ifdef __cplusplus 1838 extern "C" 1839 #endif 1840 char $2 (); 1841 /* The GNU C library defines this for functions which it implements 1842 to always fail with ENOSYS. Some functions are actually named 1843 something starting with __ and the normal name is an alias. */ 1844 #if defined __stub_$2 || defined __stub___$2 1845 choke me 1846 #endif 1847 1848 int 1849 main (void) 1850 { 1851 return $2 (); 1852 ; 1853 return 0; 1854 } 1855 _ACEOF 1856 if ac_fn_c_try_link "$LINENO" 1857 then : 1858 eval "$3=yes" 1859 else $as_nop 1860 eval "$3=no" 1861 fi 1862 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1863 conftest$ac_exeext conftest.$ac_ext 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 $as_nop 1885 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 $as_nop 1916 eval "$3=yes" 1917 fi 1918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1919 fi 1920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1921 fi 1922 eval ac_res=\$$3 1923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924 printf "%s\n" "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927 } # ac_fn_c_check_type 1928 1929 # ac_fn_c_try_run LINENO 1930 # ---------------------- 1931 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1932 # executables *can* be run. 1933 ac_fn_c_try_run () 1934 { 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 if { { ac_try="$ac_link" 1937 case "(($ac_try" in 1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1939 *) ac_try_echo=$ac_try;; 1940 esac 1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1942 printf "%s\n" "$ac_try_echo"; } >&5 1943 (eval "$ac_link") 2>&5 1944 ac_status=$? 1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1946 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1947 { { case "(($ac_try" in 1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1949 *) ac_try_echo=$ac_try;; 1950 esac 1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1952 printf "%s\n" "$ac_try_echo"; } >&5 1953 (eval "$ac_try") 2>&5 1954 ac_status=$? 1955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1956 test $ac_status = 0; }; } 1957 then : 1958 ac_retval=0 1959 else $as_nop 1960 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1961 printf "%s\n" "$as_me: failed program was:" >&5 1962 sed 's/^/| /' conftest.$ac_ext >&5 1963 1964 ac_retval=$ac_status 1965 fi 1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 as_fn_set_status $ac_retval 1969 1970 } # ac_fn_c_try_run 1971 1972 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1973 # ------------------------------------------------------------------ 1974 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1975 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1976 ac_fn_check_decl () 1977 { 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 as_decl_name=`echo $2|sed 's/ *(.*//'` 1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1981 printf %s "checking whether $as_decl_name is declared... " >&6; } 1982 if eval test \${$3+y} 1983 then : 1984 printf %s "(cached) " >&6 1985 else $as_nop 1986 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1987 eval ac_save_FLAGS=\$$6 1988 as_fn_append $6 " $5" 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990 /* end confdefs.h. */ 1991 $4 1992 int 1993 main (void) 1994 { 1995 #ifndef $as_decl_name 1996 #ifdef __cplusplus 1997 (void) $as_decl_use; 1998 #else 1999 (void) $as_decl_name; 2000 #endif 2001 #endif 2002 2003 ; 2004 return 0; 2005 } 2006 _ACEOF 2007 if ac_fn_c_try_compile "$LINENO" 2008 then : 2009 eval "$3=yes" 2010 else $as_nop 2011 eval "$3=no" 2012 fi 2013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2014 eval $6=\$ac_save_FLAGS 2015 2016 fi 2017 eval ac_res=\$$3 2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2019 printf "%s\n" "$ac_res" >&6; } 2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2021 2022 } # ac_fn_check_decl 2023 2024 # ac_fn_c_find_intX_t LINENO BITS VAR 2025 # ----------------------------------- 2026 # Finds a signed integer type with width BITS, setting cache variable VAR 2027 # accordingly. 2028 ac_fn_c_find_intX_t () 2029 { 2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2032 printf %s "checking for int$2_t... " >&6; } 2033 if eval test \${$3+y} 2034 then : 2035 printf %s "(cached) " >&6 2036 else $as_nop 2037 eval "$3=no" 2038 # Order is important - never check a type that is potentially smaller 2039 # than half of the expected target width. 2040 for ac_type in int$2_t 'int' 'long int' \ 2041 'long long int' 'short int' 'signed char'; do 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043 /* end confdefs.h. */ 2044 $ac_includes_default 2045 enum { N = $2 / 2 - 1 }; 2046 int 2047 main (void) 2048 { 2049 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2050 test_array [0] = 0; 2051 return test_array [0]; 2052 2053 ; 2054 return 0; 2055 } 2056 _ACEOF 2057 if ac_fn_c_try_compile "$LINENO" 2058 then : 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060 /* end confdefs.h. */ 2061 $ac_includes_default 2062 enum { N = $2 / 2 - 1 }; 2063 int 2064 main (void) 2065 { 2066 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2067 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2068 test_array [0] = 0; 2069 return test_array [0]; 2070 2071 ; 2072 return 0; 2073 } 2074 _ACEOF 2075 if ac_fn_c_try_compile "$LINENO" 2076 then : 2077 2078 else $as_nop 2079 case $ac_type in #( 2080 int$2_t) : 2081 eval "$3=yes" ;; #( 2082 *) : 2083 eval "$3=\$ac_type" ;; 2084 esac 2085 fi 2086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2087 fi 2088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2089 if eval test \"x\$"$3"\" = x"no" 2090 then : 2091 2092 else $as_nop 2093 break 2094 fi 2095 done 2096 fi 2097 eval ac_res=\$$3 2098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099 printf "%s\n" "$ac_res" >&6; } 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2101 2102 } # ac_fn_c_find_intX_t 2103 2104 # ac_fn_c_find_uintX_t LINENO BITS VAR 2105 # ------------------------------------ 2106 # Finds an unsigned integer type with width BITS, setting cache variable VAR 2107 # accordingly. 2108 ac_fn_c_find_uintX_t () 2109 { 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2112 printf %s "checking for uint$2_t... " >&6; } 2113 if eval test \${$3+y} 2114 then : 2115 printf %s "(cached) " >&6 2116 else $as_nop 2117 eval "$3=no" 2118 # Order is important - never check a type that is potentially smaller 2119 # than half of the expected target width. 2120 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2121 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123 /* end confdefs.h. */ 2124 $ac_includes_default 2125 int 2126 main (void) 2127 { 2128 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2129 test_array [0] = 0; 2130 return test_array [0]; 2131 2132 ; 2133 return 0; 2134 } 2135 _ACEOF 2136 if ac_fn_c_try_compile "$LINENO" 2137 then : 2138 case $ac_type in #( 2139 uint$2_t) : 2140 eval "$3=yes" ;; #( 2141 *) : 2142 eval "$3=\$ac_type" ;; 2143 esac 2144 fi 2145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2146 if eval test \"x\$"$3"\" = x"no" 2147 then : 2148 2149 else $as_nop 2150 break 2151 fi 2152 done 2153 fi 2154 eval ac_res=\$$3 2155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2156 printf "%s\n" "$ac_res" >&6; } 2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2158 2159 } # ac_fn_c_find_uintX_t 2160 2161 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2162 # -------------------------------------------- 2163 # Tries to find the compile-time value of EXPR in a program that includes 2164 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2165 # computed 2166 ac_fn_c_compute_int () 2167 { 2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2169 if test "$cross_compiling" = yes; then 2170 # Depending upon the size, compute the lo and hi bounds. 2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172 /* end confdefs.h. */ 2173 $4 2174 int 2175 main (void) 2176 { 2177 static int test_array [1 - 2 * !(($2) >= 0)]; 2178 test_array [0] = 0; 2179 return test_array [0]; 2180 2181 ; 2182 return 0; 2183 } 2184 _ACEOF 2185 if ac_fn_c_try_compile "$LINENO" 2186 then : 2187 ac_lo=0 ac_mid=0 2188 while :; do 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190 /* end confdefs.h. */ 2191 $4 2192 int 2193 main (void) 2194 { 2195 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2196 test_array [0] = 0; 2197 return test_array [0]; 2198 2199 ; 2200 return 0; 2201 } 2202 _ACEOF 2203 if ac_fn_c_try_compile "$LINENO" 2204 then : 2205 ac_hi=$ac_mid; break 2206 else $as_nop 2207 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2208 if test $ac_lo -le $ac_mid; then 2209 ac_lo= ac_hi= 2210 break 2211 fi 2212 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2213 fi 2214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2215 done 2216 else $as_nop 2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2218 /* end confdefs.h. */ 2219 $4 2220 int 2221 main (void) 2222 { 2223 static int test_array [1 - 2 * !(($2) < 0)]; 2224 test_array [0] = 0; 2225 return test_array [0]; 2226 2227 ; 2228 return 0; 2229 } 2230 _ACEOF 2231 if ac_fn_c_try_compile "$LINENO" 2232 then : 2233 ac_hi=-1 ac_mid=-1 2234 while :; do 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236 /* end confdefs.h. */ 2237 $4 2238 int 2239 main (void) 2240 { 2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2242 test_array [0] = 0; 2243 return test_array [0]; 2244 2245 ; 2246 return 0; 2247 } 2248 _ACEOF 2249 if ac_fn_c_try_compile "$LINENO" 2250 then : 2251 ac_lo=$ac_mid; break 2252 else $as_nop 2253 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2254 if test $ac_mid -le $ac_hi; then 2255 ac_lo= ac_hi= 2256 break 2257 fi 2258 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2259 fi 2260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2261 done 2262 else $as_nop 2263 ac_lo= ac_hi= 2264 fi 2265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2266 fi 2267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2268 # Binary search between lo and hi bounds. 2269 while test "x$ac_lo" != "x$ac_hi"; do 2270 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2272 /* end confdefs.h. */ 2273 $4 2274 int 2275 main (void) 2276 { 2277 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2278 test_array [0] = 0; 2279 return test_array [0]; 2280 2281 ; 2282 return 0; 2283 } 2284 _ACEOF 2285 if ac_fn_c_try_compile "$LINENO" 2286 then : 2287 ac_hi=$ac_mid 2288 else $as_nop 2289 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2290 fi 2291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2292 done 2293 case $ac_lo in #(( 2294 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2295 '') ac_retval=1 ;; 2296 esac 2297 else 2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2299 /* end confdefs.h. */ 2300 $4 2301 static long int longval (void) { return $2; } 2302 static unsigned long int ulongval (void) { return $2; } 2303 #include <stdio.h> 2304 #include <stdlib.h> 2305 int 2306 main (void) 2307 { 2308 2309 FILE *f = fopen ("conftest.val", "w"); 2310 if (! f) 2311 return 1; 2312 if (($2) < 0) 2313 { 2314 long int i = longval (); 2315 if (i != ($2)) 2316 return 1; 2317 fprintf (f, "%ld", i); 2318 } 2319 else 2320 { 2321 unsigned long int i = ulongval (); 2322 if (i != ($2)) 2323 return 1; 2324 fprintf (f, "%lu", i); 2325 } 2326 /* Do not output a trailing newline, as this causes \r\n confusion 2327 on some platforms. */ 2328 return ferror (f) || fclose (f) != 0; 2329 2330 ; 2331 return 0; 2332 } 2333 _ACEOF 2334 if ac_fn_c_try_run "$LINENO" 2335 then : 2336 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2337 else $as_nop 2338 ac_retval=1 2339 fi 2340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2341 conftest.$ac_objext conftest.beam conftest.$ac_ext 2342 rm -f conftest.val 2343 2344 fi 2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2346 as_fn_set_status $ac_retval 2347 2348 } # ac_fn_c_compute_int 2349 2350 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2351 # ---------------------------------------------------- 2352 # Tries to find if the field MEMBER exists in type AGGR, after including 2353 # INCLUDES, setting cache variable VAR accordingly. 2354 ac_fn_c_check_member () 2355 { 2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2358 printf %s "checking for $2.$3... " >&6; } 2359 if eval test \${$4+y} 2360 then : 2361 printf %s "(cached) " >&6 2362 else $as_nop 2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2364 /* end confdefs.h. */ 2365 $5 2366 int 2367 main (void) 2368 { 2369 static $2 ac_aggr; 2370 if (ac_aggr.$3) 2371 return 0; 2372 ; 2373 return 0; 2374 } 2375 _ACEOF 2376 if ac_fn_c_try_compile "$LINENO" 2377 then : 2378 eval "$4=yes" 2379 else $as_nop 2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2381 /* end confdefs.h. */ 2382 $5 2383 int 2384 main (void) 2385 { 2386 static $2 ac_aggr; 2387 if (sizeof ac_aggr.$3) 2388 return 0; 2389 ; 2390 return 0; 2391 } 2392 _ACEOF 2393 if ac_fn_c_try_compile "$LINENO" 2394 then : 2395 eval "$4=yes" 2396 else $as_nop 2397 eval "$4=no" 2398 fi 2399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2400 fi 2401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2402 fi 2403 eval ac_res=\$$4 2404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2405 printf "%s\n" "$ac_res" >&6; } 2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2407 2408 } # ac_fn_c_check_member 2409 ac_configure_args_raw= 2410 for ac_arg 2411 do 2412 case $ac_arg in 2413 *\'*) 2414 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2415 esac 2416 as_fn_append ac_configure_args_raw " '$ac_arg'" 2417 done 2418 2419 case $ac_configure_args_raw in 2420 *$as_nl*) 2421 ac_safe_unquote= ;; 2422 *) 2423 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2424 ac_unsafe_a="$ac_unsafe_z#~" 2425 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2426 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2427 esac 2428 2429 cat >config.log <<_ACEOF 2430 This file contains any messages produced by compilers while 2431 running configure, to aid debugging if configure makes a mistake. 2432 2433 It was created by nss-pam-ldapd $as_me 0.9.12, which was 2434 generated by GNU Autoconf 2.71. Invocation command line was 2435 2436 $ $0$ac_configure_args_raw 2437 2438 _ACEOF 2439 exec 5>>config.log 2440 { 2441 cat <<_ASUNAME 2442 ## --------- ## 2443 ## Platform. ## 2444 ## --------- ## 2445 2446 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2447 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2448 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2449 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2450 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2451 2452 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2453 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2454 2455 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2456 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2457 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2458 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2459 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2460 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2461 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2462 2463 _ASUNAME 2464 2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2466 for as_dir in $PATH 2467 do 2468 IFS=$as_save_IFS 2469 case $as_dir in #((( 2470 '') as_dir=./ ;; 2471 */) ;; 2472 *) as_dir=$as_dir/ ;; 2473 esac 2474 printf "%s\n" "PATH: $as_dir" 2475 done 2476 IFS=$as_save_IFS 2477 2478 } >&5 2479 2480 cat >&5 <<_ACEOF 2481 2482 2483 ## ----------- ## 2484 ## Core tests. ## 2485 ## ----------- ## 2486 2487 _ACEOF 2488 2489 2490 # Keep a trace of the command line. 2491 # Strip out --no-create and --no-recursion so they do not pile up. 2492 # Strip out --silent because we don't want to record it for future runs. 2493 # Also quote any args containing shell meta-characters. 2494 # Make two passes to allow for proper duplicate-argument suppression. 2495 ac_configure_args= 2496 ac_configure_args0= 2497 ac_configure_args1= 2498 ac_must_keep_next=false 2499 for ac_pass in 1 2 2500 do 2501 for ac_arg 2502 do 2503 case $ac_arg in 2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2506 | -silent | --silent | --silen | --sile | --sil) 2507 continue ;; 2508 *\'*) 2509 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2510 esac 2511 case $ac_pass in 2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2513 2) 2514 as_fn_append ac_configure_args1 " '$ac_arg'" 2515 if test $ac_must_keep_next = true; then 2516 ac_must_keep_next=false # Got value, back to normal. 2517 else 2518 case $ac_arg in 2519 *=* | --config-cache | -C | -disable-* | --disable-* \ 2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2522 | -with-* | --with-* | -without-* | --without-* | --x) 2523 case "$ac_configure_args0 " in 2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2525 esac 2526 ;; 2527 -* ) ac_must_keep_next=true ;; 2528 esac 2529 fi 2530 as_fn_append ac_configure_args " '$ac_arg'" 2531 ;; 2532 esac 2533 done 2534 done 2535 { ac_configure_args0=; unset ac_configure_args0;} 2536 { ac_configure_args1=; unset ac_configure_args1;} 2537 2538 # When interrupted or exit'd, cleanup temporary files, and complete 2539 # config.log. We remove comments because anyway the quotes in there 2540 # would cause problems or look ugly. 2541 # WARNING: Use '\'' to represent an apostrophe within the trap. 2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2543 trap 'exit_status=$? 2544 # Sanitize IFS. 2545 IFS=" "" $as_nl" 2546 # Save into config.log some information that might help in debugging. 2547 { 2548 echo 2549 2550 printf "%s\n" "## ---------------- ## 2551 ## Cache variables. ## 2552 ## ---------------- ##" 2553 echo 2554 # The following way of writing the cache mishandles newlines in values, 2555 ( 2556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2557 eval ac_val=\$$ac_var 2558 case $ac_val in #( 2559 *${as_nl}*) 2560 case $ac_var in #( 2561 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2562 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2563 esac 2564 case $ac_var in #( 2565 _ | IFS | as_nl) ;; #( 2566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2567 *) { eval $ac_var=; unset $ac_var;} ;; 2568 esac ;; 2569 esac 2570 done 2571 (set) 2>&1 | 2572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2573 *${as_nl}ac_space=\ *) 2574 sed -n \ 2575 "s/'\''/'\''\\\\'\'''\''/g; 2576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2577 ;; #( 2578 *) 2579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2580 ;; 2581 esac | 2582 sort 2583 ) 2584 echo 2585 2586 printf "%s\n" "## ----------------- ## 2587 ## Output variables. ## 2588 ## ----------------- ##" 2589 echo 2590 for ac_var in $ac_subst_vars 2591 do 2592 eval ac_val=\$$ac_var 2593 case $ac_val in 2594 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2595 esac 2596 printf "%s\n" "$ac_var='\''$ac_val'\''" 2597 done | sort 2598 echo 2599 2600 if test -n "$ac_subst_files"; then 2601 printf "%s\n" "## ------------------- ## 2602 ## File substitutions. ## 2603 ## ------------------- ##" 2604 echo 2605 for ac_var in $ac_subst_files 2606 do 2607 eval ac_val=\$$ac_var 2608 case $ac_val in 2609 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2610 esac 2611 printf "%s\n" "$ac_var='\''$ac_val'\''" 2612 done | sort 2613 echo 2614 fi 2615 2616 if test -s confdefs.h; then 2617 printf "%s\n" "## ----------- ## 2618 ## confdefs.h. ## 2619 ## ----------- ##" 2620 echo 2621 cat confdefs.h 2622 echo 2623 fi 2624 test "$ac_signal" != 0 && 2625 printf "%s\n" "$as_me: caught signal $ac_signal" 2626 printf "%s\n" "$as_me: exit $exit_status" 2627 } >&5 2628 rm -f core *.core core.conftest.* && 2629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2630 exit $exit_status 2631 ' 0 2632 for ac_signal in 1 2 13 15; do 2633 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2634 done 2635 ac_signal=0 2636 2637 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2638 rm -f -r conftest* confdefs.h 2639 2640 printf "%s\n" "/* confdefs.h */" > confdefs.h 2641 2642 # Predefined preprocessor variables. 2643 2644 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2645 2646 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2647 2648 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2649 2650 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2651 2652 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2653 2654 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2655 2656 2657 # Let the site file select an alternate cache file if it wants to. 2658 # Prefer an explicitly selected file to automatically selected ones. 2659 if test -n "$CONFIG_SITE"; then 2660 ac_site_files="$CONFIG_SITE" 2661 elif test "x$prefix" != xNONE; then 2662 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2663 else 2664 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2665 fi 2666 2667 for ac_site_file in $ac_site_files 2668 do 2669 case $ac_site_file in #( 2670 */*) : 2671 ;; #( 2672 *) : 2673 ac_site_file=./$ac_site_file ;; 2674 esac 2675 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2677 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2678 sed 's/^/| /' "$ac_site_file" >&5 2679 . "$ac_site_file" \ 2680 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2681 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2682 as_fn_error $? "failed to load site script $ac_site_file 2683 See \`config.log' for more details" "$LINENO" 5; } 2684 fi 2685 done 2686 2687 if test -r "$cache_file"; then 2688 # Some versions of bash will fail to source /dev/null (special files 2689 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2690 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2692 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2693 case $cache_file in 2694 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2695 *) . "./$cache_file";; 2696 esac 2697 fi 2698 else 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2700 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2701 >$cache_file 2702 fi 2703 2704 # Test code for whether the C compiler supports C89 (global declarations) 2705 ac_c_conftest_c89_globals=' 2706 /* Does the compiler advertise C89 conformance? 2707 Do not test the value of __STDC__, because some compilers set it to 0 2708 while being otherwise adequately conformant. */ 2709 #if !defined __STDC__ 2710 # error "Compiler does not advertise C89 conformance" 2711 #endif 2712 2713 #include <stddef.h> 2714 #include <stdarg.h> 2715 struct stat; 2716 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2717 struct buf { int x; }; 2718 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2719 static char *e (p, i) 2720 char **p; 2721 int i; 2722 { 2723 return p[i]; 2724 } 2725 static char *f (char * (*g) (char **, int), char **p, ...) 2726 { 2727 char *s; 2728 va_list v; 2729 va_start (v,p); 2730 s = g (p, va_arg (v,int)); 2731 va_end (v); 2732 return s; 2733 } 2734 2735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2736 function prototypes and stuff, but not \xHH hex character constants. 2737 These do not provoke an error unfortunately, instead are silently treated 2738 as an "x". The following induces an error, until -std is added to get 2739 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2740 array size at least. It is necessary to write \x00 == 0 to get something 2741 that is true only with -std. */ 2742 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2743 2744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2745 inside strings and character constants. */ 2746 #define FOO(x) '\''x'\'' 2747 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2748 2749 int test (int i, double x); 2750 struct s1 {int (*f) (int a);}; 2751 struct s2 {int (*f) (double a);}; 2752 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2753 int, int);' 2754 2755 # Test code for whether the C compiler supports C89 (body of main). 2756 ac_c_conftest_c89_main=' 2757 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2758 ' 2759 2760 # Test code for whether the C compiler supports C99 (global declarations) 2761 ac_c_conftest_c99_globals=' 2762 // Does the compiler advertise C99 conformance? 2763 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2764 # error "Compiler does not advertise C99 conformance" 2765 #endif 2766 2767 #include <stdbool.h> 2768 extern int puts (const char *); 2769 extern int printf (const char *, ...); 2770 extern int dprintf (int, const char *, ...); 2771 extern void *malloc (size_t); 2772 2773 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2774 // dprintf is used instead of fprintf to avoid needing to declare 2775 // FILE and stderr. 2776 #define debug(...) dprintf (2, __VA_ARGS__) 2777 #define showlist(...) puts (#__VA_ARGS__) 2778 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2779 static void 2780 test_varargs_macros (void) 2781 { 2782 int x = 1234; 2783 int y = 5678; 2784 debug ("Flag"); 2785 debug ("X = %d\n", x); 2786 showlist (The first, second, and third items.); 2787 report (x>y, "x is %d but y is %d", x, y); 2788 } 2789 2790 // Check long long types. 2791 #define BIG64 18446744073709551615ull 2792 #define BIG32 4294967295ul 2793 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2794 #if !BIG_OK 2795 #error "your preprocessor is broken" 2796 #endif 2797 #if BIG_OK 2798 #else 2799 #error "your preprocessor is broken" 2800 #endif 2801 static long long int bignum = -9223372036854775807LL; 2802 static unsigned long long int ubignum = BIG64; 2803 2804 struct incomplete_array 2805 { 2806 int datasize; 2807 double data[]; 2808 }; 2809 2810 struct named_init { 2811 int number; 2812 const wchar_t *name; 2813 double average; 2814 }; 2815 2816 typedef const char *ccp; 2817 2818 static inline int 2819 test_restrict (ccp restrict text) 2820 { 2821 // See if C++-style comments work. 2822 // Iterate through items via the restricted pointer. 2823 // Also check for declarations in for loops. 2824 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2825 continue; 2826 return 0; 2827 } 2828 2829 // Check varargs and va_copy. 2830 static bool 2831 test_varargs (const char *format, ...) 2832 { 2833 va_list args; 2834 va_start (args, format); 2835 va_list args_copy; 2836 va_copy (args_copy, args); 2837 2838 const char *str = ""; 2839 int number = 0; 2840 float fnumber = 0; 2841 2842 while (*format) 2843 { 2844 switch (*format++) 2845 { 2846 case '\''s'\'': // string 2847 str = va_arg (args_copy, const char *); 2848 break; 2849 case '\''d'\'': // int 2850 number = va_arg (args_copy, int); 2851 break; 2852 case '\''f'\'': // float 2853 fnumber = va_arg (args_copy, double); 2854 break; 2855 default: 2856 break; 2857 } 2858 } 2859 va_end (args_copy); 2860 va_end (args); 2861 2862 return *str && number && fnumber; 2863 } 2864 ' 2865 2866 # Test code for whether the C compiler supports C99 (body of main). 2867 ac_c_conftest_c99_main=' 2868 // Check bool. 2869 _Bool success = false; 2870 success |= (argc != 0); 2871 2872 // Check restrict. 2873 if (test_restrict ("String literal") == 0) 2874 success = true; 2875 char *restrict newvar = "Another string"; 2876 2877 // Check varargs. 2878 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2879 test_varargs_macros (); 2880 2881 // Check flexible array members. 2882 struct incomplete_array *ia = 2883 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2884 ia->datasize = 10; 2885 for (int i = 0; i < ia->datasize; ++i) 2886 ia->data[i] = i * 1.234; 2887 2888 // Check named initializers. 2889 struct named_init ni = { 2890 .number = 34, 2891 .name = L"Test wide string", 2892 .average = 543.34343, 2893 }; 2894 2895 ni.number = 58; 2896 2897 int dynamic_array[ni.number]; 2898 dynamic_array[0] = argv[0][0]; 2899 dynamic_array[ni.number - 1] = 543; 2900 2901 // work around unused variable warnings 2902 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2903 || dynamic_array[ni.number - 1] != 543); 2904 ' 2905 2906 # Test code for whether the C compiler supports C11 (global declarations) 2907 ac_c_conftest_c11_globals=' 2908 // Does the compiler advertise C11 conformance? 2909 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2910 # error "Compiler does not advertise C11 conformance" 2911 #endif 2912 2913 // Check _Alignas. 2914 char _Alignas (double) aligned_as_double; 2915 char _Alignas (0) no_special_alignment; 2916 extern char aligned_as_int; 2917 char _Alignas (0) _Alignas (int) aligned_as_int; 2918 2919 // Check _Alignof. 2920 enum 2921 { 2922 int_alignment = _Alignof (int), 2923 int_array_alignment = _Alignof (int[100]), 2924 char_alignment = _Alignof (char) 2925 }; 2926 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2927 2928 // Check _Noreturn. 2929 int _Noreturn does_not_return (void) { for (;;) continue; } 2930 2931 // Check _Static_assert. 2932 struct test_static_assert 2933 { 2934 int x; 2935 _Static_assert (sizeof (int) <= sizeof (long int), 2936 "_Static_assert does not work in struct"); 2937 long int y; 2938 }; 2939 2940 // Check UTF-8 literals. 2941 #define u8 syntax error! 2942 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2943 2944 // Check duplicate typedefs. 2945 typedef long *long_ptr; 2946 typedef long int *long_ptr; 2947 typedef long_ptr long_ptr; 2948 2949 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2950 struct anonymous 2951 { 2952 union { 2953 struct { int i; int j; }; 2954 struct { int k; long int l; } w; 2955 }; 2956 int m; 2957 } v1; 2958 ' 2959 2960 # Test code for whether the C compiler supports C11 (body of main). 2961 ac_c_conftest_c11_main=' 2962 _Static_assert ((offsetof (struct anonymous, i) 2963 == offsetof (struct anonymous, w.k)), 2964 "Anonymous union alignment botch"); 2965 v1.i = 2; 2966 v1.w.k = 5; 2967 ok |= v1.i != 5; 2968 ' 2969 2970 # Test code for whether the C compiler supports C11 (complete). 2971 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2972 ${ac_c_conftest_c99_globals} 2973 ${ac_c_conftest_c11_globals} 2974 2975 int 2976 main (int argc, char **argv) 2977 { 2978 int ok = 0; 2979 ${ac_c_conftest_c89_main} 2980 ${ac_c_conftest_c99_main} 2981 ${ac_c_conftest_c11_main} 2982 return ok; 2983 } 2984 " 2985 2986 # Test code for whether the C compiler supports C99 (complete). 2987 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2988 ${ac_c_conftest_c99_globals} 2989 2990 int 2991 main (int argc, char **argv) 2992 { 2993 int ok = 0; 2994 ${ac_c_conftest_c89_main} 2995 ${ac_c_conftest_c99_main} 2996 return ok; 2997 } 2998 " 2999 3000 # Test code for whether the C compiler supports C89 (complete). 3001 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3002 3003 int 3004 main (int argc, char **argv) 3005 { 3006 int ok = 0; 3007 ${ac_c_conftest_c89_main} 3008 return ok; 3009 } 3010 " 3011 3012 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3013 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3014 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3015 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3016 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3017 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3018 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3019 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3020 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3021 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3022 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3023 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 3024 as_fn_append ac_func_c_list " fork HAVE_FORK" 3025 as_fn_append ac_func_c_list " vfork HAVE_VFORK" 3026 3027 # Auxiliary files required by this configure script. 3028 ac_aux_files="ar-lib compile missing install-sh config.guess config.sub" 3029 3030 # Locations in which to look for auxiliary files. 3031 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3032 3033 # Search for a directory containing all of the required auxiliary files, 3034 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3035 # If we don't find one directory that contains all the files we need, 3036 # we report the set of missing files from the *first* directory in 3037 # $ac_aux_dir_candidates and give up. 3038 ac_missing_aux_files="" 3039 ac_first_candidate=: 3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042 as_found=false 3043 for as_dir in $ac_aux_dir_candidates 3044 do 3045 IFS=$as_save_IFS 3046 case $as_dir in #((( 3047 '') as_dir=./ ;; 3048 */) ;; 3049 *) as_dir=$as_dir/ ;; 3050 esac 3051 as_found=: 3052 3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3054 ac_aux_dir_found=yes 3055 ac_install_sh= 3056 for ac_aux in $ac_aux_files 3057 do 3058 # As a special case, if "install-sh" is required, that requirement 3059 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3060 # and $ac_install_sh is set appropriately for whichever one is found. 3061 if test x"$ac_aux" = x"install-sh" 3062 then 3063 if test -f "${as_dir}install-sh"; then 3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3065 ac_install_sh="${as_dir}install-sh -c" 3066 elif test -f "${as_dir}install.sh"; then 3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3068 ac_install_sh="${as_dir}install.sh -c" 3069 elif test -f "${as_dir}shtool"; then 3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3071 ac_install_sh="${as_dir}shtool install -c" 3072 else 3073 ac_aux_dir_found=no 3074 if $ac_first_candidate; then 3075 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3076 else 3077 break 3078 fi 3079 fi 3080 else 3081 if test -f "${as_dir}${ac_aux}"; then 3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3083 else 3084 ac_aux_dir_found=no 3085 if $ac_first_candidate; then 3086 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3087 else 3088 break 3089 fi 3090 fi 3091 fi 3092 done 3093 if test "$ac_aux_dir_found" = yes; then 3094 ac_aux_dir="$as_dir" 3095 break 3096 fi 3097 ac_first_candidate=false 3098 3099 as_found=false 3100 done 3101 IFS=$as_save_IFS 3102 if $as_found 3103 then : 3104 3105 else $as_nop 3106 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3107 fi 3108 3109 3110 # These three variables are undocumented and unsupported, 3111 # and are intended to be withdrawn in a future Autoconf release. 3112 # They can cause serious problems if a builder's source tree is in a directory 3113 # whose full name contains unusual characters. 3114 if test -f "${ac_aux_dir}config.guess"; then 3115 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3116 fi 3117 if test -f "${ac_aux_dir}config.sub"; then 3118 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3119 fi 3120 if test -f "$ac_aux_dir/configure"; then 3121 ac_configure="$SHELL ${ac_aux_dir}configure" 3122 fi 3123 3124 # Check that the precious variables saved in the cache have kept the same 3125 # value. 3126 ac_cache_corrupted=false 3127 for ac_var in $ac_precious_vars; do 3128 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3129 eval ac_new_set=\$ac_env_${ac_var}_set 3130 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3131 eval ac_new_val=\$ac_env_${ac_var}_value 3132 case $ac_old_set,$ac_new_set in 3133 set,) 3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3135 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3136 ac_cache_corrupted=: ;; 3137 ,set) 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3139 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3140 ac_cache_corrupted=: ;; 3141 ,);; 3142 *) 3143 if test "x$ac_old_val" != "x$ac_new_val"; then 3144 # differences in whitespace do not lead to failure. 3145 ac_old_val_w=`echo x $ac_old_val` 3146 ac_new_val_w=`echo x $ac_new_val` 3147 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3149 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3150 ac_cache_corrupted=: 3151 else 3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3153 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3154 eval $ac_var=\$ac_old_val 3155 fi 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3157 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3159 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3160 fi;; 3161 esac 3162 # Pass precious variables to config.status. 3163 if test "$ac_new_set" = set; then 3164 case $ac_new_val in 3165 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3166 *) ac_arg=$ac_var=$ac_new_val ;; 3167 esac 3168 case " $ac_configure_args " in 3169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3170 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3171 esac 3172 fi 3173 done 3174 if $ac_cache_corrupted; then 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3178 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3179 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3180 and start over" "$LINENO" 5 3181 fi 3182 ## -------------------- ## 3183 ## Main body of script. ## 3184 ## -------------------- ## 3185 3186 ac_ext=c 3187 ac_cpp='$CPP $CPPFLAGS' 3188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3190 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3191 3192 3193 RELEASE_MONTH="Nov 2021" 3194 3195 3196 3197 3198 # some initialisation 3199 3200 3201 3202 # Make sure we can run config.sub. 3203 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3204 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3205 3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3207 printf %s "checking build system type... " >&6; } 3208 if test ${ac_cv_build+y} 3209 then : 3210 printf %s "(cached) " >&6 3211 else $as_nop 3212 ac_build_alias=$build_alias 3213 test "x$ac_build_alias" = x && 3214 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3215 test "x$ac_build_alias" = x && 3216 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3217 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3218 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3219 3220 fi 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3222 printf "%s\n" "$ac_cv_build" >&6; } 3223 case $ac_cv_build in 3224 *-*-*) ;; 3225 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3226 esac 3227 build=$ac_cv_build 3228 ac_save_IFS=$IFS; IFS='-' 3229 set x $ac_cv_build 3230 shift 3231 build_cpu=$1 3232 build_vendor=$2 3233 shift; shift 3234 # Remember, the first character of IFS is used to create $*, 3235 # except with old shells: 3236 build_os=$* 3237 IFS=$ac_save_IFS 3238 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3239 3240 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3242 printf %s "checking host system type... " >&6; } 3243 if test ${ac_cv_host+y} 3244 then : 3245 printf %s "(cached) " >&6 3246 else $as_nop 3247 if test "x$host_alias" = x; then 3248 ac_cv_host=$ac_cv_build 3249 else 3250 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3251 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3252 fi 3253 3254 fi 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3256 printf "%s\n" "$ac_cv_host" >&6; } 3257 case $ac_cv_host in 3258 *-*-*) ;; 3259 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3260 esac 3261 host=$ac_cv_host 3262 ac_save_IFS=$IFS; IFS='-' 3263 set x $ac_cv_host 3264 shift 3265 host_cpu=$1 3266 host_vendor=$2 3267 shift; shift 3268 # Remember, the first character of IFS is used to create $*, 3269 # except with old shells: 3270 host_os=$* 3271 IFS=$ac_save_IFS 3272 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3273 3274 3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3276 printf %s "checking target system type... " >&6; } 3277 if test ${ac_cv_target+y} 3278 then : 3279 printf %s "(cached) " >&6 3280 else $as_nop 3281 if test "x$target_alias" = x; then 3282 ac_cv_target=$ac_cv_host 3283 else 3284 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || 3285 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 3286 fi 3287 3288 fi 3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3290 printf "%s\n" "$ac_cv_target" >&6; } 3291 case $ac_cv_target in 3292 *-*-*) ;; 3293 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3294 esac 3295 target=$ac_cv_target 3296 ac_save_IFS=$IFS; IFS='-' 3297 set x $ac_cv_target 3298 shift 3299 target_cpu=$1 3300 target_vendor=$2 3301 shift; shift 3302 # Remember, the first character of IFS is used to create $*, 3303 # except with old shells: 3304 target_os=$* 3305 IFS=$ac_save_IFS 3306 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3307 3308 3309 # The aliases save the names the user supplied, while $host etc. 3310 # will get canonicalized. 3311 test -n "$target_alias" && 3312 test "$program_prefix$program_suffix$program_transform_name" = \ 3313 NONENONEs,x,x, && 3314 program_prefix=${target_alias}- 3315 3316 3317 3318 # display notice and initialize automake 3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring nss-pam-ldapd 0.9.12" >&5 3320 printf "%s\n" "$as_me: configuring nss-pam-ldapd 0.9.12" >&6;} 3321 am__api_version='1.16' 3322 3323 3324 # Find a good install program. We prefer a C program (faster), 3325 # so one script is as good as another. But avoid the broken or 3326 # incompatible versions: 3327 # SysV /etc/install, /usr/sbin/install 3328 # SunOS /usr/etc/install 3329 # IRIX /sbin/install 3330 # AIX /bin/install 3331 # AmigaOS /C/install, which installs bootblocks on floppy discs 3332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3335 # OS/2's system install, which has a completely different semantic 3336 # ./install, which can be erroneously created by make from ./install.sh. 3337 # Reject install programs that cannot install multiple files. 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3339 printf %s "checking for a BSD-compatible install... " >&6; } 3340 if test -z "$INSTALL"; then 3341 if test ${ac_cv_path_install+y} 3342 then : 3343 printf %s "(cached) " >&6 3344 else $as_nop 3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3346 for as_dir in $PATH 3347 do 3348 IFS=$as_save_IFS 3349 case $as_dir in #((( 3350 '') as_dir=./ ;; 3351 */) ;; 3352 *) as_dir=$as_dir/ ;; 3353 esac 3354 # Account for fact that we put trailing slashes in our PATH walk. 3355 case $as_dir in #(( 3356 ./ | /[cC]/* | \ 3357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3358 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3359 /usr/ucb/* ) ;; 3360 *) 3361 # OSF1 and SCO ODT 3.0 have their own names for install. 3362 # Don't use installbsd from OSF since it installs stuff as root 3363 # by default. 3364 for ac_prog in ginstall scoinst install; do 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3367 if test $ac_prog = install && 3368 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3369 # AIX install. It has an incompatible calling convention. 3370 : 3371 elif test $ac_prog = install && 3372 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3373 # program-specific install script used by HP pwplus--don't use. 3374 : 3375 else 3376 rm -rf conftest.one conftest.two conftest.dir 3377 echo one > conftest.one 3378 echo two > conftest.two 3379 mkdir conftest.dir 3380 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3381 test -s conftest.one && test -s conftest.two && 3382 test -s conftest.dir/conftest.one && 3383 test -s conftest.dir/conftest.two 3384 then 3385 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3386 break 3 3387 fi 3388 fi 3389 fi 3390 done 3391 done 3392 ;; 3393 esac 3394 3395 done 3396 IFS=$as_save_IFS 3397 3398 rm -rf conftest.one conftest.two conftest.dir 3399 3400 fi 3401 if test ${ac_cv_path_install+y}; then 3402 INSTALL=$ac_cv_path_install 3403 else 3404 # As a last resort, use the slow shell script. Don't cache a 3405 # value for INSTALL within a source directory, because that will 3406 # break other packages using the cache if that directory is 3407 # removed, or if the value is a relative name. 3408 INSTALL=$ac_install_sh 3409 fi 3410 fi 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3412 printf "%s\n" "$INSTALL" >&6; } 3413 3414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3415 # It thinks the first close brace ends the variable substitution. 3416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3417 3418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3419 3420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3421 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3423 printf %s "checking whether build environment is sane... " >&6; } 3424 # Reject unsafe characters in $srcdir or the absolute working directory 3425 # name. Accept space and tab only in the latter. 3426 am_lf=' 3427 ' 3428 case `pwd` in 3429 *[\\\"\#\$\&\'\`$am_lf]*) 3430 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3431 esac 3432 case $srcdir in 3433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3434 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3435 esac 3436 3437 # Do 'set' in a subshell so we don't clobber the current shell's 3438 # arguments. Must try -L first in case configure is actually a 3439 # symlink; some systems play weird games with the mod time of symlinks 3440 # (eg FreeBSD returns the mod time of the symlink's containing 3441 # directory). 3442 if ( 3443 am_has_slept=no 3444 for am_try in 1 2; do 3445 echo "timestamp, slept: $am_has_slept" > conftest.file 3446 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3447 if test "$*" = "X"; then 3448 # -L didn't work. 3449 set X `ls -t "$srcdir/configure" conftest.file` 3450 fi 3451 if test "$*" != "X $srcdir/configure conftest.file" \ 3452 && test "$*" != "X conftest.file $srcdir/configure"; then 3453 3454 # If neither matched, then we have a broken ls. This can happen 3455 # if, for instance, CONFIG_SHELL is bash and it inherits a 3456 # broken ls alias from the environment. This has actually 3457 # happened. Such a system could not be considered "sane". 3458 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3459 alias in your environment" "$LINENO" 5 3460 fi 3461 if test "$2" = conftest.file || test $am_try -eq 2; then 3462 break 3463 fi 3464 # Just in case. 3465 sleep 1 3466 am_has_slept=yes 3467 done 3468 test "$2" = conftest.file 3469 ) 3470 then 3471 # Ok. 3472 : 3473 else 3474 as_fn_error $? "newly created file is older than distributed files! 3475 Check your system clock" "$LINENO" 5 3476 fi 3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3478 printf "%s\n" "yes" >&6; } 3479 # If we didn't sleep, we still need to ensure time stamps of config.status and 3480 # generated files are strictly newer. 3481 am_sleep_pid= 3482 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3483 ( sleep 1 ) & 3484 am_sleep_pid=$! 3485 fi 3486 3487 rm -f conftest.file 3488 3489 test "$program_prefix" != NONE && 3490 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3491 # Use a double $ so make ignores it. 3492 test "$program_suffix" != NONE && 3493 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3494 # Double any \ or $. 3495 # By default was `s,x,x', remove it if useless. 3496 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3497 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3498 3499 3500 # Expand $ac_aux_dir to an absolute path. 3501 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3502 3503 3504 if test x"${MISSING+set}" != xset; then 3505 MISSING="\${SHELL} '$am_aux_dir/missing'" 3506 fi 3507 # Use eval to expand $SHELL 3508 if eval "$MISSING --is-lightweight"; then 3509 am_missing_run="$MISSING " 3510 else 3511 am_missing_run= 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3513 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3514 fi 3515 3516 if test x"${install_sh+set}" != xset; then 3517 case $am_aux_dir in 3518 *\ * | *\ *) 3519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3520 *) 3521 install_sh="\${SHELL} $am_aux_dir/install-sh" 3522 esac 3523 fi 3524 3525 # Installed binaries are usually stripped using 'strip' when the user 3526 # run "make install-strip". However 'strip' might not be the right 3527 # tool to use in cross-compilation environments, therefore Automake 3528 # will honor the 'STRIP' environment variable to overrule this program. 3529 if test "$cross_compiling" != no; then 3530 if test -n "$ac_tool_prefix"; then 3531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3532 set dummy ${ac_tool_prefix}strip; ac_word=$2 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534 printf %s "checking for $ac_word... " >&6; } 3535 if test ${ac_cv_prog_STRIP+y} 3536 then : 3537 printf %s "(cached) " >&6 3538 else $as_nop 3539 if test -n "$STRIP"; then 3540 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3541 else 3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543 for as_dir in $PATH 3544 do 3545 IFS=$as_save_IFS 3546 case $as_dir in #((( 3547 '') as_dir=./ ;; 3548 */) ;; 3549 *) as_dir=$as_dir/ ;; 3550 esac 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3553 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557 done 3558 done 3559 IFS=$as_save_IFS 3560 3561 fi 3562 fi 3563 STRIP=$ac_cv_prog_STRIP 3564 if test -n "$STRIP"; then 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3566 printf "%s\n" "$STRIP" >&6; } 3567 else 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569 printf "%s\n" "no" >&6; } 3570 fi 3571 3572 3573 fi 3574 if test -z "$ac_cv_prog_STRIP"; then 3575 ac_ct_STRIP=$STRIP 3576 # Extract the first word of "strip", so it can be a program name with args. 3577 set dummy strip; ac_word=$2 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3579 printf %s "checking for $ac_word... " >&6; } 3580 if test ${ac_cv_prog_ac_ct_STRIP+y} 3581 then : 3582 printf %s "(cached) " >&6 3583 else $as_nop 3584 if test -n "$ac_ct_STRIP"; then 3585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3586 else 3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588 for as_dir in $PATH 3589 do 3590 IFS=$as_save_IFS 3591 case $as_dir in #((( 3592 '') as_dir=./ ;; 3593 */) ;; 3594 *) as_dir=$as_dir/ ;; 3595 esac 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3598 ac_cv_prog_ac_ct_STRIP="strip" 3599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602 done 3603 done 3604 IFS=$as_save_IFS 3605 3606 fi 3607 fi 3608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3609 if test -n "$ac_ct_STRIP"; then 3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3611 printf "%s\n" "$ac_ct_STRIP" >&6; } 3612 else 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614 printf "%s\n" "no" >&6; } 3615 fi 3616 3617 if test "x$ac_ct_STRIP" = x; then 3618 STRIP=":" 3619 else 3620 case $cross_compiling:$ac_tool_warned in 3621 yes:) 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3623 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3624 ac_tool_warned=yes ;; 3625 esac 3626 STRIP=$ac_ct_STRIP 3627 fi 3628 else 3629 STRIP="$ac_cv_prog_STRIP" 3630 fi 3631 3632 fi 3633 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3634 3635 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3637 printf %s "checking for a race-free mkdir -p... " >&6; } 3638 if test -z "$MKDIR_P"; then 3639 if test ${ac_cv_path_mkdir+y} 3640 then : 3641 printf %s "(cached) " >&6 3642 else $as_nop 3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3645 do 3646 IFS=$as_save_IFS 3647 case $as_dir in #((( 3648 '') as_dir=./ ;; 3649 */) ;; 3650 *) as_dir=$as_dir/ ;; 3651 esac 3652 for ac_prog in mkdir gmkdir; do 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3655 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3656 'mkdir ('*'coreutils) '* | \ 3657 'BusyBox '* | \ 3658 'mkdir (fileutils) '4.1*) 3659 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3660 break 3;; 3661 esac 3662 done 3663 done 3664 done 3665 IFS=$as_save_IFS 3666 3667 fi 3668 3669 test -d ./--version && rmdir ./--version 3670 if test ${ac_cv_path_mkdir+y}; then 3671 MKDIR_P="$ac_cv_path_mkdir -p" 3672 else 3673 # As a last resort, use the slow shell script. Don't cache a 3674 # value for MKDIR_P within a source directory, because that will 3675 # break other packages using the cache if that directory is 3676 # removed, or if the value is a relative name. 3677 MKDIR_P="$ac_install_sh -d" 3678 fi 3679 fi 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3681 printf "%s\n" "$MKDIR_P" >&6; } 3682 3683 for ac_prog in gawk mawk nawk awk 3684 do 3685 # Extract the first word of "$ac_prog", so it can be a program name with args. 3686 set dummy $ac_prog; ac_word=$2 3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3688 printf %s "checking for $ac_word... " >&6; } 3689 if test ${ac_cv_prog_AWK+y} 3690 then : 3691 printf %s "(cached) " >&6 3692 else $as_nop 3693 if test -n "$AWK"; then 3694 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3695 else 3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697 for as_dir in $PATH 3698 do 3699 IFS=$as_save_IFS 3700 case $as_dir in #((( 3701 '') as_dir=./ ;; 3702 */) ;; 3703 *) as_dir=$as_dir/ ;; 3704 esac 3705 for ac_exec_ext in '' $ac_executable_extensions; do 3706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3707 ac_cv_prog_AWK="$ac_prog" 3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3709 break 2 3710 fi 3711 done 3712 done 3713 IFS=$as_save_IFS 3714 3715 fi 3716 fi 3717 AWK=$ac_cv_prog_AWK 3718 if test -n "$AWK"; then 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3720 printf "%s\n" "$AWK" >&6; } 3721 else 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3723 printf "%s\n" "no" >&6; } 3724 fi 3725 3726 3727 test -n "$AWK" && break 3728 done 3729 3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3731 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3732 set x ${MAKE-make} 3733 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3734 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3735 then : 3736 printf %s "(cached) " >&6 3737 else $as_nop 3738 cat >conftest.make <<\_ACEOF 3739 SHELL = /bin/sh 3740 all: 3741 @echo '@@@%%%=$(MAKE)=@@@%%%' 3742 _ACEOF 3743 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3744 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3745 *@@@%%%=?*=@@@%%%*) 3746 eval ac_cv_prog_make_${ac_make}_set=yes;; 3747 *) 3748 eval ac_cv_prog_make_${ac_make}_set=no;; 3749 esac 3750 rm -f conftest.make 3751 fi 3752 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3754 printf "%s\n" "yes" >&6; } 3755 SET_MAKE= 3756 else 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3758 printf "%s\n" "no" >&6; } 3759 SET_MAKE="MAKE=${MAKE-make}" 3760 fi 3761 3762 rm -rf .tst 2>/dev/null 3763 mkdir .tst 2>/dev/null 3764 if test -d .tst; then 3765 am__leading_dot=. 3766 else 3767 am__leading_dot=_ 3768 fi 3769 rmdir .tst 2>/dev/null 3770 3771 # Check whether --enable-silent-rules was given. 3772 if test ${enable_silent_rules+y} 3773 then : 3774 enableval=$enable_silent_rules; 3775 fi 3776 3777 case $enable_silent_rules in # ((( 3778 yes) AM_DEFAULT_VERBOSITY=0;; 3779 no) AM_DEFAULT_VERBOSITY=1;; 3780 *) AM_DEFAULT_VERBOSITY=1;; 3781 esac 3782 am_make=${MAKE-make} 3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3784 printf %s "checking whether $am_make supports nested variables... " >&6; } 3785 if test ${am_cv_make_support_nested_variables+y} 3786 then : 3787 printf %s "(cached) " >&6 3788 else $as_nop 3789 if printf "%s\n" 'TRUE=$(BAR$(V)) 3790 BAR0=false 3791 BAR1=true 3792 V=1 3793 am__doit: 3794 @$(TRUE) 3795 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3796 am_cv_make_support_nested_variables=yes 3797 else 3798 am_cv_make_support_nested_variables=no 3799 fi 3800 fi 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3802 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3803 if test $am_cv_make_support_nested_variables = yes; then 3804 AM_V='$(V)' 3805 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3806 else 3807 AM_V=$AM_DEFAULT_VERBOSITY 3808 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3809 fi 3810 AM_BACKSLASH='\' 3811 3812 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3813 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3814 # is not polluted with repeated "-I." 3815 am__isrc=' -I$(srcdir)' 3816 # test to see if srcdir already configured 3817 if test -f $srcdir/config.status; then 3818 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3819 fi 3820 fi 3821 3822 # test whether we have cygpath 3823 if test -z "$CYGPATH_W"; then 3824 if (cygpath --version) >/dev/null 2>/dev/null; then 3825 CYGPATH_W='cygpath -w' 3826 else 3827 CYGPATH_W=echo 3828 fi 3829 fi 3830 3831 3832 # Define the identity of the package. 3833 PACKAGE='nss-pam-ldapd' 3834 VERSION='0.9.12' 3835 3836 3837 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3838 3839 3840 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3841 3842 # Some tools Automake needs. 3843 3844 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3845 3846 3847 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3848 3849 3850 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3851 3852 3853 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3854 3855 3856 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3857 3858 # For better backward compatibility. To be removed once Automake 1.9.x 3859 # dies out for good. For more background, see: 3860 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3861 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3862 mkdir_p='$(MKDIR_P)' 3863 3864 # We need awk for the "check" target (and possibly the TAP driver). The 3865 # system "awk" is bad on some platforms. 3866 # Always define AMTAR for backward compatibility. Yes, it's still used 3867 # in the wild :-( We should find a proper way to deprecate it ... 3868 AMTAR='$${TAR-tar}' 3869 3870 3871 # We'll loop over all known methods to create a tar archive until one works. 3872 _am_tools='gnutar pax cpio none' 3873 3874 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3875 3876 3877 3878 3879 3880 # Variables for tags utilities; see am/tags.am 3881 if test -z "$CTAGS"; then 3882 CTAGS=ctags 3883 fi 3884 3885 if test -z "$ETAGS"; then 3886 ETAGS=etags 3887 fi 3888 3889 if test -z "$CSCOPE"; then 3890 CSCOPE=cscope 3891 fi 3892 3893 3894 3895 # POSIX will say in a future version that running "rm -f" with no argument 3896 # is OK; and we want to be able to make that assumption in our Makefile 3897 # recipes. So use an aggressive probe to check that the usage we want is 3898 # actually supported "in the wild" to an acceptable degree. 3899 # See automake bug#10828. 3900 # To make any issue more visible, cause the running configure to be aborted 3901 # by default if the 'rm' program in use doesn't match our expectations; the 3902 # user can still override this though. 3903 if rm -f && rm -fr && rm -rf; then : OK; else 3904 cat >&2 <<'END' 3905 Oops! 3906 3907 Your 'rm' program seems unable to run without file operands specified 3908 on the command line, even when the '-f' option is present. This is contrary 3909 to the behaviour of most rm programs out there, and not conforming with 3910 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3911 3912 Please tell bug-automake@gnu.org about your system, including the value 3913 of your $PATH and any error possibly output before this message. This 3914 can help us improve future automake versions. 3915 3916 END 3917 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3918 echo 'Configuration will proceed anyway, since you have set the' >&2 3919 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3920 echo >&2 3921 else 3922 cat >&2 <<'END' 3923 Aborting the configuration process, to ensure you take notice of the issue. 3924 3925 You can download and install GNU coreutils to get an 'rm' implementation 3926 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3927 3928 If you want to complete the configuration process using your problematic 3929 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3930 to "yes", and re-run configure. 3931 3932 END 3933 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3934 fi 3935 fi 3936 3937 3938 # create a config.h file (Automake will add -DHAVE_CONFIG_H) 3939 ac_config_headers="$ac_config_headers config.h" 3940 3941 3942 # check for programs 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 ac_ext=c 3953 ac_cpp='$CPP $CPPFLAGS' 3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3957 if test -n "$ac_tool_prefix"; then 3958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3959 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961 printf %s "checking for $ac_word... " >&6; } 3962 if test ${ac_cv_prog_CC+y} 3963 then : 3964 printf %s "(cached) " >&6 3965 else $as_nop 3966 if test -n "$CC"; then 3967 ac_cv_prog_CC="$CC" # Let the user override the test. 3968 else 3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970 for as_dir in $PATH 3971 do 3972 IFS=$as_save_IFS 3973 case $as_dir in #((( 3974 '') as_dir=./ ;; 3975 */) ;; 3976 *) as_dir=$as_dir/ ;; 3977 esac 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3980 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3982 break 2 3983 fi 3984 done 3985 done 3986 IFS=$as_save_IFS 3987 3988 fi 3989 fi 3990 CC=$ac_cv_prog_CC 3991 if test -n "$CC"; then 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3993 printf "%s\n" "$CC" >&6; } 3994 else 3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3996 printf "%s\n" "no" >&6; } 3997 fi 3998 3999 4000 fi 4001 if test -z "$ac_cv_prog_CC"; then 4002 ac_ct_CC=$CC 4003 # Extract the first word of "gcc", so it can be a program name with args. 4004 set dummy gcc; ac_word=$2 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006 printf %s "checking for $ac_word... " >&6; } 4007 if test ${ac_cv_prog_ac_ct_CC+y} 4008 then : 4009 printf %s "(cached) " >&6 4010 else $as_nop 4011 if test -n "$ac_ct_CC"; then 4012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4013 else 4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4015 for as_dir in $PATH 4016 do 4017 IFS=$as_save_IFS 4018 case $as_dir in #((( 4019 '') as_dir=./ ;; 4020 */) ;; 4021 *) as_dir=$as_dir/ ;; 4022 esac 4023 for ac_exec_ext in '' $ac_executable_extensions; do 4024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4025 ac_cv_prog_ac_ct_CC="gcc" 4026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4027 break 2 4028 fi 4029 done 4030 done 4031 IFS=$as_save_IFS 4032 4033 fi 4034 fi 4035 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4036 if test -n "$ac_ct_CC"; then 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4038 printf "%s\n" "$ac_ct_CC" >&6; } 4039 else 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4041 printf "%s\n" "no" >&6; } 4042 fi 4043 4044 if test "x$ac_ct_CC" = x; then 4045 CC="" 4046 else 4047 case $cross_compiling:$ac_tool_warned in 4048 yes:) 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4050 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4051 ac_tool_warned=yes ;; 4052 esac 4053 CC=$ac_ct_CC 4054 fi 4055 else 4056 CC="$ac_cv_prog_CC" 4057 fi 4058 4059 if test -z "$CC"; then 4060 if test -n "$ac_tool_prefix"; then 4061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4062 set dummy ${ac_tool_prefix}cc; ac_word=$2 4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064 printf %s "checking for $ac_word... " >&6; } 4065 if test ${ac_cv_prog_CC+y} 4066 then : 4067 printf %s "(cached) " >&6 4068 else $as_nop 4069 if test -n "$CC"; then 4070 ac_cv_prog_CC="$CC" # Let the user override the test. 4071 else 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073 for as_dir in $PATH 4074 do 4075 IFS=$as_save_IFS 4076 case $as_dir in #((( 4077 '') as_dir=./ ;; 4078 */) ;; 4079 *) as_dir=$as_dir/ ;; 4080 esac 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4083 ac_cv_prog_CC="${ac_tool_prefix}cc" 4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087 done 4088 done 4089 IFS=$as_save_IFS 4090 4091 fi 4092 fi 4093 CC=$ac_cv_prog_CC 4094 if test -n "$CC"; then 4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4096 printf "%s\n" "$CC" >&6; } 4097 else 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099 printf "%s\n" "no" >&6; } 4100 fi 4101 4102 4103 fi 4104 fi 4105 if test -z "$CC"; then 4106 # Extract the first word of "cc", so it can be a program name with args. 4107 set dummy cc; ac_word=$2 4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4109 printf %s "checking for $ac_word... " >&6; } 4110 if test ${ac_cv_prog_CC+y} 4111 then : 4112 printf %s "(cached) " >&6 4113 else $as_nop 4114 if test -n "$CC"; then 4115 ac_cv_prog_CC="$CC" # Let the user override the test. 4116 else 4117 ac_prog_rejected=no 4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4119 for as_dir in $PATH 4120 do 4121 IFS=$as_save_IFS 4122 case $as_dir in #((( 4123 '') as_dir=./ ;; 4124 */) ;; 4125 *) as_dir=$as_dir/ ;; 4126 esac 4127 for ac_exec_ext in '' $ac_executable_extensions; do 4128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4129 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4130 ac_prog_rejected=yes 4131 continue 4132 fi 4133 ac_cv_prog_CC="cc" 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137 done 4138 done 4139 IFS=$as_save_IFS 4140 4141 if test $ac_prog_rejected = yes; then 4142 # We found a bogon in the path, so make sure we never use it. 4143 set dummy $ac_cv_prog_CC 4144 shift 4145 if test $# != 0; then 4146 # We chose a different compiler from the bogus one. 4147 # However, it has the same basename, so the bogon will be chosen 4148 # first if we set CC to just the basename; use the full file name. 4149 shift 4150 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4151 fi 4152 fi 4153 fi 4154 fi 4155 CC=$ac_cv_prog_CC 4156 if test -n "$CC"; then 4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4158 printf "%s\n" "$CC" >&6; } 4159 else 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4161 printf "%s\n" "no" >&6; } 4162 fi 4163 4164 4165 fi 4166 if test -z "$CC"; then 4167 if test -n "$ac_tool_prefix"; then 4168 for ac_prog in cl.exe 4169 do 4170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4173 printf %s "checking for $ac_word... " >&6; } 4174 if test ${ac_cv_prog_CC+y} 4175 then : 4176 printf %s "(cached) " >&6 4177 else $as_nop 4178 if test -n "$CC"; then 4179 ac_cv_prog_CC="$CC" # Let the user override the test. 4180 else 4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4182 for as_dir in $PATH 4183 do 4184 IFS=$as_save_IFS 4185 case $as_dir in #((( 4186 '') as_dir=./ ;; 4187 */) ;; 4188 *) as_dir=$as_dir/ ;; 4189 esac 4190 for ac_exec_ext in '' $ac_executable_extensions; do 4191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4194 break 2 4195 fi 4196 done 4197 done 4198 IFS=$as_save_IFS 4199 4200 fi 4201 fi 4202 CC=$ac_cv_prog_CC 4203 if test -n "$CC"; then 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4205 printf "%s\n" "$CC" >&6; } 4206 else 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208 printf "%s\n" "no" >&6; } 4209 fi 4210 4211 4212 test -n "$CC" && break 4213 done 4214 fi 4215 if test -z "$CC"; then 4216 ac_ct_CC=$CC 4217 for ac_prog in cl.exe 4218 do 4219 # Extract the first word of "$ac_prog", so it can be a program name with args. 4220 set dummy $ac_prog; ac_word=$2 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4222 printf %s "checking for $ac_word... " >&6; } 4223 if test ${ac_cv_prog_ac_ct_CC+y} 4224 then : 4225 printf %s "(cached) " >&6 4226 else $as_nop 4227 if test -n "$ac_ct_CC"; then 4228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4229 else 4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4231 for as_dir in $PATH 4232 do 4233 IFS=$as_save_IFS 4234 case $as_dir in #((( 4235 '') as_dir=./ ;; 4236 */) ;; 4237 *) as_dir=$as_dir/ ;; 4238 esac 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4241 ac_cv_prog_ac_ct_CC="$ac_prog" 4242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4243 break 2 4244 fi 4245 done 4246 done 4247 IFS=$as_save_IFS 4248 4249 fi 4250 fi 4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4252 if test -n "$ac_ct_CC"; then 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4254 printf "%s\n" "$ac_ct_CC" >&6; } 4255 else 4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4257 printf "%s\n" "no" >&6; } 4258 fi 4259 4260 4261 test -n "$ac_ct_CC" && break 4262 done 4263 4264 if test "x$ac_ct_CC" = x; then 4265 CC="" 4266 else 4267 case $cross_compiling:$ac_tool_warned in 4268 yes:) 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4270 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4271 ac_tool_warned=yes ;; 4272 esac 4273 CC=$ac_ct_CC 4274 fi 4275 fi 4276 4277 fi 4278 if test -z "$CC"; then 4279 if test -n "$ac_tool_prefix"; then 4280 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4281 set dummy ${ac_tool_prefix}clang; ac_word=$2 4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283 printf %s "checking for $ac_word... " >&6; } 4284 if test ${ac_cv_prog_CC+y} 4285 then : 4286 printf %s "(cached) " >&6 4287 else $as_nop 4288 if test -n "$CC"; then 4289 ac_cv_prog_CC="$CC" # Let the user override the test. 4290 else 4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292 for as_dir in $PATH 4293 do 4294 IFS=$as_save_IFS 4295 case $as_dir in #((( 4296 '') as_dir=./ ;; 4297 */) ;; 4298 *) as_dir=$as_dir/ ;; 4299 esac 4300 for ac_exec_ext in '' $ac_executable_extensions; do 4301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4302 ac_cv_prog_CC="${ac_tool_prefix}clang" 4303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4304 break 2 4305 fi 4306 done 4307 done 4308 IFS=$as_save_IFS 4309 4310 fi 4311 fi 4312 CC=$ac_cv_prog_CC 4313 if test -n "$CC"; then 4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4315 printf "%s\n" "$CC" >&6; } 4316 else 4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4318 printf "%s\n" "no" >&6; } 4319 fi 4320 4321 4322 fi 4323 if test -z "$ac_cv_prog_CC"; then 4324 ac_ct_CC=$CC 4325 # Extract the first word of "clang", so it can be a program name with args. 4326 set dummy clang; ac_word=$2 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4328 printf %s "checking for $ac_word... " >&6; } 4329 if test ${ac_cv_prog_ac_ct_CC+y} 4330 then : 4331 printf %s "(cached) " >&6 4332 else $as_nop 4333 if test -n "$ac_ct_CC"; then 4334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4335 else 4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4337 for as_dir in $PATH 4338 do 4339 IFS=$as_save_IFS 4340 case $as_dir in #((( 4341 '') as_dir=./ ;; 4342 */) ;; 4343 *) as_dir=$as_dir/ ;; 4344 esac 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4347 ac_cv_prog_ac_ct_CC="clang" 4348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4349 break 2 4350 fi 4351 done 4352 done 4353 IFS=$as_save_IFS 4354 4355 fi 4356 fi 4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4358 if test -n "$ac_ct_CC"; then 4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4360 printf "%s\n" "$ac_ct_CC" >&6; } 4361 else 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4363 printf "%s\n" "no" >&6; } 4364 fi 4365 4366 if test "x$ac_ct_CC" = x; then 4367 CC="" 4368 else 4369 case $cross_compiling:$ac_tool_warned in 4370 yes:) 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4373 ac_tool_warned=yes ;; 4374 esac 4375 CC=$ac_ct_CC 4376 fi 4377 else 4378 CC="$ac_cv_prog_CC" 4379 fi 4380 4381 fi 4382 4383 4384 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4386 as_fn_error $? "no acceptable C compiler found in \$PATH 4387 See \`config.log' for more details" "$LINENO" 5; } 4388 4389 # Provide some information about the compiler. 4390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4391 set X $ac_compile 4392 ac_compiler=$2 4393 for ac_option in --version -v -V -qversion -version; do 4394 { { ac_try="$ac_compiler $ac_option >&5" 4395 case "(($ac_try" in 4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4397 *) ac_try_echo=$ac_try;; 4398 esac 4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4400 printf "%s\n" "$ac_try_echo"; } >&5 4401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4402 ac_status=$? 4403 if test -s conftest.err; then 4404 sed '10a\ 4405 ... rest of stderr output deleted ... 4406 10q' conftest.err >conftest.er1 4407 cat conftest.er1 >&5 4408 fi 4409 rm -f conftest.er1 conftest.err 4410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4411 test $ac_status = 0; } 4412 done 4413 4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4415 /* end confdefs.h. */ 4416 4417 int 4418 main (void) 4419 { 4420 4421 ; 4422 return 0; 4423 } 4424 _ACEOF 4425 ac_clean_files_save=$ac_clean_files 4426 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4427 # Try to create an executable without -o first, disregard a.out. 4428 # It will help us diagnose broken compilers, and finding out an intuition 4429 # of exeext. 4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4431 printf %s "checking whether the C compiler works... " >&6; } 4432 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4433 4434 # The possible output files: 4435 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4436 4437 ac_rmfiles= 4438 for ac_file in $ac_files 4439 do 4440 case $ac_file in 4441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4442 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4443 esac 4444 done 4445 rm -f $ac_rmfiles 4446 4447 if { { ac_try="$ac_link_default" 4448 case "(($ac_try" in 4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4450 *) ac_try_echo=$ac_try;; 4451 esac 4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4453 printf "%s\n" "$ac_try_echo"; } >&5 4454 (eval "$ac_link_default") 2>&5 4455 ac_status=$? 4456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4457 test $ac_status = 0; } 4458 then : 4459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4461 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4462 # so that the user can short-circuit this test for compilers unknown to 4463 # Autoconf. 4464 for ac_file in $ac_files '' 4465 do 4466 test -f "$ac_file" || continue 4467 case $ac_file in 4468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4469 ;; 4470 [ab].out ) 4471 # We found the default executable, but exeext='' is most 4472 # certainly right. 4473 break;; 4474 *.* ) 4475 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4476 then :; else 4477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4478 fi 4479 # We set ac_cv_exeext here because the later test for it is not 4480 # safe: cross compilers may not add the suffix if given an `-o' 4481 # argument, so we may need to know it at that point already. 4482 # Even if this section looks crufty: it has the advantage of 4483 # actually working. 4484 break;; 4485 * ) 4486 break;; 4487 esac 4488 done 4489 test "$ac_cv_exeext" = no && ac_cv_exeext= 4490 4491 else $as_nop 4492 ac_file='' 4493 fi 4494 if test -z "$ac_file" 4495 then : 4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497 printf "%s\n" "no" >&6; } 4498 printf "%s\n" "$as_me: failed program was:" >&5 4499 sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4502 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4503 as_fn_error 77 "C compiler cannot create executables 4504 See \`config.log' for more details" "$LINENO" 5; } 4505 else $as_nop 4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4507 printf "%s\n" "yes" >&6; } 4508 fi 4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4510 printf %s "checking for C compiler default output file name... " >&6; } 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4512 printf "%s\n" "$ac_file" >&6; } 4513 ac_exeext=$ac_cv_exeext 4514 4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4516 ac_clean_files=$ac_clean_files_save 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4518 printf %s "checking for suffix of executables... " >&6; } 4519 if { { ac_try="$ac_link" 4520 case "(($ac_try" in 4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4522 *) ac_try_echo=$ac_try;; 4523 esac 4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4525 printf "%s\n" "$ac_try_echo"; } >&5 4526 (eval "$ac_link") 2>&5 4527 ac_status=$? 4528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4529 test $ac_status = 0; } 4530 then : 4531 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4533 # work properly (i.e., refer to `conftest.exe'), while it won't with 4534 # `rm'. 4535 for ac_file in conftest.exe conftest conftest.*; do 4536 test -f "$ac_file" || continue 4537 case $ac_file in 4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4540 break;; 4541 * ) break;; 4542 esac 4543 done 4544 else $as_nop 4545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4547 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4548 See \`config.log' for more details" "$LINENO" 5; } 4549 fi 4550 rm -f conftest conftest$ac_cv_exeext 4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4552 printf "%s\n" "$ac_cv_exeext" >&6; } 4553 4554 rm -f conftest.$ac_ext 4555 EXEEXT=$ac_cv_exeext 4556 ac_exeext=$EXEEXT 4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4558 /* end confdefs.h. */ 4559 #include <stdio.h> 4560 int 4561 main (void) 4562 { 4563 FILE *f = fopen ("conftest.out", "w"); 4564 return ferror (f) || fclose (f) != 0; 4565 4566 ; 4567 return 0; 4568 } 4569 _ACEOF 4570 ac_clean_files="$ac_clean_files conftest.out" 4571 # Check that the compiler produces executables we can run. If not, either 4572 # the compiler is broken, or we cross compile. 4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4574 printf %s "checking whether we are cross compiling... " >&6; } 4575 if test "$cross_compiling" != yes; then 4576 { { ac_try="$ac_link" 4577 case "(($ac_try" in 4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4579 *) ac_try_echo=$ac_try;; 4580 esac 4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4582 printf "%s\n" "$ac_try_echo"; } >&5 4583 (eval "$ac_link") 2>&5 4584 ac_status=$? 4585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4586 test $ac_status = 0; } 4587 if { ac_try='./conftest$ac_cv_exeext' 4588 { { case "(($ac_try" in 4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4590 *) ac_try_echo=$ac_try;; 4591 esac 4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4593 printf "%s\n" "$ac_try_echo"; } >&5 4594 (eval "$ac_try") 2>&5 4595 ac_status=$? 4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4597 test $ac_status = 0; }; }; then 4598 cross_compiling=no 4599 else 4600 if test "$cross_compiling" = maybe; then 4601 cross_compiling=yes 4602 else 4603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4604 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4605 as_fn_error 77 "cannot run C compiled programs. 4606 If you meant to cross compile, use \`--host'. 4607 See \`config.log' for more details" "$LINENO" 5; } 4608 fi 4609 fi 4610 fi 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4612 printf "%s\n" "$cross_compiling" >&6; } 4613 4614 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4615 ac_clean_files=$ac_clean_files_save 4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4617 printf %s "checking for suffix of object files... " >&6; } 4618 if test ${ac_cv_objext+y} 4619 then : 4620 printf %s "(cached) " >&6 4621 else $as_nop 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4623 /* end confdefs.h. */ 4624 4625 int 4626 main (void) 4627 { 4628 4629 ; 4630 return 0; 4631 } 4632 _ACEOF 4633 rm -f conftest.o conftest.obj 4634 if { { ac_try="$ac_compile" 4635 case "(($ac_try" in 4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4637 *) ac_try_echo=$ac_try;; 4638 esac 4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4640 printf "%s\n" "$ac_try_echo"; } >&5 4641 (eval "$ac_compile") 2>&5 4642 ac_status=$? 4643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4644 test $ac_status = 0; } 4645 then : 4646 for ac_file in conftest.o conftest.obj conftest.*; do 4647 test -f "$ac_file" || continue; 4648 case $ac_file in 4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4651 break;; 4652 esac 4653 done 4654 else $as_nop 4655 printf "%s\n" "$as_me: failed program was:" >&5 4656 sed 's/^/| /' conftest.$ac_ext >&5 4657 4658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4659 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4660 as_fn_error $? "cannot compute suffix of object files: cannot compile 4661 See \`config.log' for more details" "$LINENO" 5; } 4662 fi 4663 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4664 fi 4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4666 printf "%s\n" "$ac_cv_objext" >&6; } 4667 OBJEXT=$ac_cv_objext 4668 ac_objext=$OBJEXT 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4670 printf %s "checking whether the compiler supports GNU C... " >&6; } 4671 if test ${ac_cv_c_compiler_gnu+y} 4672 then : 4673 printf %s "(cached) " >&6 4674 else $as_nop 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676 /* end confdefs.h. */ 4677 4678 int 4679 main (void) 4680 { 4681 #ifndef __GNUC__ 4682 choke me 4683 #endif 4684 4685 ; 4686 return 0; 4687 } 4688 _ACEOF 4689 if ac_fn_c_try_compile "$LINENO" 4690 then : 4691 ac_compiler_gnu=yes 4692 else $as_nop 4693 ac_compiler_gnu=no 4694 fi 4695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4696 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4697 4698 fi 4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4700 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4702 4703 if test $ac_compiler_gnu = yes; then 4704 GCC=yes 4705 else 4706 GCC= 4707 fi 4708 ac_test_CFLAGS=${CFLAGS+y} 4709 ac_save_CFLAGS=$CFLAGS 4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4711 printf %s "checking whether $CC accepts -g... " >&6; } 4712 if test ${ac_cv_prog_cc_g+y} 4713 then : 4714 printf %s "(cached) " >&6 4715 else $as_nop 4716 ac_save_c_werror_flag=$ac_c_werror_flag 4717 ac_c_werror_flag=yes 4718 ac_cv_prog_cc_g=no 4719 CFLAGS="-g" 4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4721 /* end confdefs.h. */ 4722 4723 int 4724 main (void) 4725 { 4726 4727 ; 4728 return 0; 4729 } 4730 _ACEOF 4731 if ac_fn_c_try_compile "$LINENO" 4732 then : 4733 ac_cv_prog_cc_g=yes 4734 else $as_nop 4735 CFLAGS="" 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4737 /* end confdefs.h. */ 4738 4739 int 4740 main (void) 4741 { 4742 4743 ; 4744 return 0; 4745 } 4746 _ACEOF 4747 if ac_fn_c_try_compile "$LINENO" 4748 then : 4749 4750 else $as_nop 4751 ac_c_werror_flag=$ac_save_c_werror_flag 4752 CFLAGS="-g" 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754 /* end confdefs.h. */ 4755 4756 int 4757 main (void) 4758 { 4759 4760 ; 4761 return 0; 4762 } 4763 _ACEOF 4764 if ac_fn_c_try_compile "$LINENO" 4765 then : 4766 ac_cv_prog_cc_g=yes 4767 fi 4768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4769 fi 4770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4771 fi 4772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4773 ac_c_werror_flag=$ac_save_c_werror_flag 4774 fi 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4776 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4777 if test $ac_test_CFLAGS; then 4778 CFLAGS=$ac_save_CFLAGS 4779 elif test $ac_cv_prog_cc_g = yes; then 4780 if test "$GCC" = yes; then 4781 CFLAGS="-g -O2" 4782 else 4783 CFLAGS="-g" 4784 fi 4785 else 4786 if test "$GCC" = yes; then 4787 CFLAGS="-O2" 4788 else 4789 CFLAGS= 4790 fi 4791 fi 4792 ac_prog_cc_stdc=no 4793 if test x$ac_prog_cc_stdc = xno 4794 then : 4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4796 printf %s "checking for $CC option to enable C11 features... " >&6; } 4797 if test ${ac_cv_prog_cc_c11+y} 4798 then : 4799 printf %s "(cached) " >&6 4800 else $as_nop 4801 ac_cv_prog_cc_c11=no 4802 ac_save_CC=$CC 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804 /* end confdefs.h. */ 4805 $ac_c_conftest_c11_program 4806 _ACEOF 4807 for ac_arg in '' -std=gnu11 4808 do 4809 CC="$ac_save_CC $ac_arg" 4810 if ac_fn_c_try_compile "$LINENO" 4811 then : 4812 ac_cv_prog_cc_c11=$ac_arg 4813 fi 4814 rm -f core conftest.err conftest.$ac_objext conftest.beam 4815 test "x$ac_cv_prog_cc_c11" != "xno" && break 4816 done 4817 rm -f conftest.$ac_ext 4818 CC=$ac_save_CC 4819 fi 4820 4821 if test "x$ac_cv_prog_cc_c11" = xno 4822 then : 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4824 printf "%s\n" "unsupported" >&6; } 4825 else $as_nop 4826 if test "x$ac_cv_prog_cc_c11" = x 4827 then : 4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4829 printf "%s\n" "none needed" >&6; } 4830 else $as_nop 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4832 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4833 CC="$CC $ac_cv_prog_cc_c11" 4834 fi 4835 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4836 ac_prog_cc_stdc=c11 4837 fi 4838 fi 4839 if test x$ac_prog_cc_stdc = xno 4840 then : 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4842 printf %s "checking for $CC option to enable C99 features... " >&6; } 4843 if test ${ac_cv_prog_cc_c99+y} 4844 then : 4845 printf %s "(cached) " >&6 4846 else $as_nop 4847 ac_cv_prog_cc_c99=no 4848 ac_save_CC=$CC 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850 /* end confdefs.h. */ 4851 $ac_c_conftest_c99_program 4852 _ACEOF 4853 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4854 do 4855 CC="$ac_save_CC $ac_arg" 4856 if ac_fn_c_try_compile "$LINENO" 4857 then : 4858 ac_cv_prog_cc_c99=$ac_arg 4859 fi 4860 rm -f core conftest.err conftest.$ac_objext conftest.beam 4861 test "x$ac_cv_prog_cc_c99" != "xno" && break 4862 done 4863 rm -f conftest.$ac_ext 4864 CC=$ac_save_CC 4865 fi 4866 4867 if test "x$ac_cv_prog_cc_c99" = xno 4868 then : 4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4870 printf "%s\n" "unsupported" >&6; } 4871 else $as_nop 4872 if test "x$ac_cv_prog_cc_c99" = x 4873 then : 4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4875 printf "%s\n" "none needed" >&6; } 4876 else $as_nop 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4878 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4879 CC="$CC $ac_cv_prog_cc_c99" 4880 fi 4881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4882 ac_prog_cc_stdc=c99 4883 fi 4884 fi 4885 if test x$ac_prog_cc_stdc = xno 4886 then : 4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4888 printf %s "checking for $CC option to enable C89 features... " >&6; } 4889 if test ${ac_cv_prog_cc_c89+y} 4890 then : 4891 printf %s "(cached) " >&6 4892 else $as_nop 4893 ac_cv_prog_cc_c89=no 4894 ac_save_CC=$CC 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896 /* end confdefs.h. */ 4897 $ac_c_conftest_c89_program 4898 _ACEOF 4899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4900 do 4901 CC="$ac_save_CC $ac_arg" 4902 if ac_fn_c_try_compile "$LINENO" 4903 then : 4904 ac_cv_prog_cc_c89=$ac_arg 4905 fi 4906 rm -f core conftest.err conftest.$ac_objext conftest.beam 4907 test "x$ac_cv_prog_cc_c89" != "xno" && break 4908 done 4909 rm -f conftest.$ac_ext 4910 CC=$ac_save_CC 4911 fi 4912 4913 if test "x$ac_cv_prog_cc_c89" = xno 4914 then : 4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4916 printf "%s\n" "unsupported" >&6; } 4917 else $as_nop 4918 if test "x$ac_cv_prog_cc_c89" = x 4919 then : 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4921 printf "%s\n" "none needed" >&6; } 4922 else $as_nop 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4924 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4925 CC="$CC $ac_cv_prog_cc_c89" 4926 fi 4927 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4928 ac_prog_cc_stdc=c89 4929 fi 4930 fi 4931 4932 ac_ext=c 4933 ac_cpp='$CPP $CPPFLAGS' 4934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4936 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4937 4938 4939 ac_ext=c 4940 ac_cpp='$CPP $CPPFLAGS' 4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4945 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4946 if test ${am_cv_prog_cc_c_o+y} 4947 then : 4948 printf %s "(cached) " >&6 4949 else $as_nop 4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4951 /* end confdefs.h. */ 4952 4953 int 4954 main (void) 4955 { 4956 4957 ; 4958 return 0; 4959 } 4960 _ACEOF 4961 # Make sure it works both with $CC and with simple cc. 4962 # Following AC_PROG_CC_C_O, we do the test twice because some 4963 # compilers refuse to overwrite an existing .o file with -o, 4964 # though they will create one. 4965 am_cv_prog_cc_c_o=yes 4966 for am_i in 1 2; do 4967 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4968 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4969 ac_status=$? 4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4971 (exit $ac_status); } \ 4972 && test -f conftest2.$ac_objext; then 4973 : OK 4974 else 4975 am_cv_prog_cc_c_o=no 4976 break 4977 fi 4978 done 4979 rm -f core conftest* 4980 unset am_i 4981 fi 4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4983 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4984 if test "$am_cv_prog_cc_c_o" != yes; then 4985 # Losing compiler, so override with the script. 4986 # FIXME: It is wrong to rewrite CC. 4987 # But if we don't then we get into trouble of one sort or another. 4988 # A longer-term fix would be to have automake use am__CC in this case, 4989 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4990 CC="$am_aux_dir/compile $CC" 4991 fi 4992 ac_ext=c 4993 ac_cpp='$CPP $CPPFLAGS' 4994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4996 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4997 4998 DEPDIR="${am__leading_dot}deps" 4999 5000 ac_config_commands="$ac_config_commands depfiles" 5001 5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5003 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5004 cat > confinc.mk << 'END' 5005 am__doit: 5006 @echo this is the am__doit target >confinc.out 5007 .PHONY: am__doit 5008 END 5009 am__include="#" 5010 am__quote= 5011 # BSD make does it like this. 5012 echo '.include "confinc.mk" # ignored' > confmf.BSD 5013 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 5014 echo 'include confinc.mk # ignored' > confmf.GNU 5015 _am_result=no 5016 for s in GNU BSD; do 5017 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5018 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5019 ac_status=$? 5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5021 (exit $ac_status); } 5022 case $?:`cat confinc.out 2>/dev/null` in #( 5023 '0:this is the am__doit target') : 5024 case $s in #( 5025 BSD) : 5026 am__include='.include' am__quote='"' ;; #( 5027 *) : 5028 am__include='include' am__quote='' ;; 5029 esac ;; #( 5030 *) : 5031 ;; 5032 esac 5033 if test "$am__include" != "#"; then 5034 _am_result="yes ($s style)" 5035 break 5036 fi 5037 done 5038 rm -f confinc.* confmf.* 5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5040 printf "%s\n" "${_am_result}" >&6; } 5041 5042 # Check whether --enable-dependency-tracking was given. 5043 if test ${enable_dependency_tracking+y} 5044 then : 5045 enableval=$enable_dependency_tracking; 5046 fi 5047 5048 if test "x$enable_dependency_tracking" != xno; then 5049 am_depcomp="$ac_aux_dir/depcomp" 5050 AMDEPBACKSLASH='\' 5051 am__nodep='_no' 5052 fi 5053 if test "x$enable_dependency_tracking" != xno; then 5054 AMDEP_TRUE= 5055 AMDEP_FALSE='#' 5056 else 5057 AMDEP_TRUE='#' 5058 AMDEP_FALSE= 5059 fi 5060 5061 5062 5063 depcc="$CC" am_compiler_list= 5064 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5066 printf %s "checking dependency style of $depcc... " >&6; } 5067 if test ${am_cv_CC_dependencies_compiler_type+y} 5068 then : 5069 printf %s "(cached) " >&6 5070 else $as_nop 5071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5072 # We make a subdir and do the tests there. Otherwise we can end up 5073 # making bogus files that we don't know about and never remove. For 5074 # instance it was reported that on HP-UX the gcc test will end up 5075 # making a dummy file named 'D' -- because '-MD' means "put the output 5076 # in D". 5077 rm -rf conftest.dir 5078 mkdir conftest.dir 5079 # Copy depcomp to subdir because otherwise we won't find it if we're 5080 # using a relative directory. 5081 cp "$am_depcomp" conftest.dir 5082 cd conftest.dir 5083 # We will build objects and dependencies in a subdirectory because 5084 # it helps to detect inapplicable dependency modes. For instance 5085 # both Tru64's cc and ICC support -MD to output dependencies as a 5086 # side effect of compilation, but ICC will put the dependencies in 5087 # the current directory while Tru64 will put them in the object 5088 # directory. 5089 mkdir sub 5090 5091 am_cv_CC_dependencies_compiler_type=none 5092 if test "$am_compiler_list" = ""; then 5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5094 fi 5095 am__universal=false 5096 case " $depcc " in #( 5097 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5098 esac 5099 5100 for depmode in $am_compiler_list; do 5101 # Setup a source with many dependencies, because some compilers 5102 # like to wrap large dependency lists on column 80 (with \), and 5103 # we should not choose a depcomp mode which is confused by this. 5104 # 5105 # We need to recreate these files for each test, as the compiler may 5106 # overwrite some of them when testing with obscure command lines. 5107 # This happens at least with the AIX C compiler. 5108 : > sub/conftest.c 5109 for i in 1 2 3 4 5 6; do 5110 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5111 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5112 # Solaris 10 /bin/sh. 5113 echo '/* dummy */' > sub/conftst$i.h 5114 done 5115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5116 5117 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5118 # mode. It turns out that the SunPro C++ compiler does not properly 5119 # handle '-M -o', and we need to detect this. Also, some Intel 5120 # versions had trouble with output in subdirs. 5121 am__obj=sub/conftest.${OBJEXT-o} 5122 am__minus_obj="-o $am__obj" 5123 case $depmode in 5124 gcc) 5125 # This depmode causes a compiler race in universal mode. 5126 test "$am__universal" = false || continue 5127 ;; 5128 nosideeffect) 5129 # After this tag, mechanisms are not by side-effect, so they'll 5130 # only be used when explicitly requested. 5131 if test "x$enable_dependency_tracking" = xyes; then 5132 continue 5133 else 5134 break 5135 fi 5136 ;; 5137 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5138 # This compiler won't grok '-c -o', but also, the minuso test has 5139 # not run yet. These depmodes are late enough in the game, and 5140 # so weak that their functioning should not be impacted. 5141 am__obj=conftest.${OBJEXT-o} 5142 am__minus_obj= 5143 ;; 5144 none) break ;; 5145 esac 5146 if depmode=$depmode \ 5147 source=sub/conftest.c object=$am__obj \ 5148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5150 >/dev/null 2>conftest.err && 5151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5155 # icc doesn't choke on unknown options, it will just issue warnings 5156 # or remarks (even with -Werror). So we grep stderr for any message 5157 # that says an option was ignored or not supported. 5158 # When given -MP, icc 7.0 and 7.1 complain thusly: 5159 # icc: Command line warning: ignoring option '-M'; no argument required 5160 # The diagnosis changed in icc 8.0: 5161 # icc: Command line remark: option '-MP' not supported 5162 if (grep 'ignoring option' conftest.err || 5163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5164 am_cv_CC_dependencies_compiler_type=$depmode 5165 break 5166 fi 5167 fi 5168 done 5169 5170 cd .. 5171 rm -rf conftest.dir 5172 else 5173 am_cv_CC_dependencies_compiler_type=none 5174 fi 5175 5176 fi 5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5178 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5180 5181 if 5182 test "x$enable_dependency_tracking" != xno \ 5183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5184 am__fastdepCC_TRUE= 5185 am__fastdepCC_FALSE='#' 5186 else 5187 am__fastdepCC_TRUE='#' 5188 am__fastdepCC_FALSE= 5189 fi 5190 5191 5192 ac_ext=c 5193 ac_cpp='$CPP $CPPFLAGS' 5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5198 printf %s "checking how to run the C preprocessor... " >&6; } 5199 # On Suns, sometimes $CPP names a directory. 5200 if test -n "$CPP" && test -d "$CPP"; then 5201 CPP= 5202 fi 5203 if test -z "$CPP"; then 5204 if test ${ac_cv_prog_CPP+y} 5205 then : 5206 printf %s "(cached) " >&6 5207 else $as_nop 5208 # Double quotes because $CC needs to be expanded 5209 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5210 do 5211 ac_preproc_ok=false 5212 for ac_c_preproc_warn_flag in '' yes 5213 do 5214 # Use a header file that comes with gcc, so configuring glibc 5215 # with a fresh cross-compiler works. 5216 # On the NeXT, cc -E runs the code through the compiler's parser, 5217 # not just through cpp. "Syntax error" is here to catch this case. 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219 /* end confdefs.h. */ 5220 #include <limits.h> 5221 Syntax error 5222 _ACEOF 5223 if ac_fn_c_try_cpp "$LINENO" 5224 then : 5225 5226 else $as_nop 5227 # Broken: fails on valid input. 5228 continue 5229 fi 5230 rm -f conftest.err conftest.i conftest.$ac_ext 5231 5232 # OK, works on sane cases. Now check whether nonexistent headers 5233 # can be detected and how. 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235 /* end confdefs.h. */ 5236 #include <ac_nonexistent.h> 5237 _ACEOF 5238 if ac_fn_c_try_cpp "$LINENO" 5239 then : 5240 # Broken: success on invalid input. 5241 continue 5242 else $as_nop 5243 # Passes both tests. 5244 ac_preproc_ok=: 5245 break 5246 fi 5247 rm -f conftest.err conftest.i conftest.$ac_ext 5248 5249 done 5250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5251 rm -f conftest.i conftest.err conftest.$ac_ext 5252 if $ac_preproc_ok 5253 then : 5254 break 5255 fi 5256 5257 done 5258 ac_cv_prog_CPP=$CPP 5259 5260 fi 5261 CPP=$ac_cv_prog_CPP 5262 else 5263 ac_cv_prog_CPP=$CPP 5264 fi 5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5266 printf "%s\n" "$CPP" >&6; } 5267 ac_preproc_ok=false 5268 for ac_c_preproc_warn_flag in '' yes 5269 do 5270 # Use a header file that comes with gcc, so configuring glibc 5271 # with a fresh cross-compiler works. 5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5273 # not just through cpp. "Syntax error" is here to catch this case. 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275 /* end confdefs.h. */ 5276 #include <limits.h> 5277 Syntax error 5278 _ACEOF 5279 if ac_fn_c_try_cpp "$LINENO" 5280 then : 5281 5282 else $as_nop 5283 # Broken: fails on valid input. 5284 continue 5285 fi 5286 rm -f conftest.err conftest.i conftest.$ac_ext 5287 5288 # OK, works on sane cases. Now check whether nonexistent headers 5289 # can be detected and how. 5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291 /* end confdefs.h. */ 5292 #include <ac_nonexistent.h> 5293 _ACEOF 5294 if ac_fn_c_try_cpp "$LINENO" 5295 then : 5296 # Broken: success on invalid input. 5297 continue 5298 else $as_nop 5299 # Passes both tests. 5300 ac_preproc_ok=: 5301 break 5302 fi 5303 rm -f conftest.err conftest.i conftest.$ac_ext 5304 5305 done 5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5307 rm -f conftest.i conftest.err conftest.$ac_ext 5308 if $ac_preproc_ok 5309 then : 5310 5311 else $as_nop 5312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5314 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5315 See \`config.log' for more details" "$LINENO" 5; } 5316 fi 5317 5318 ac_ext=c 5319 ac_cpp='$CPP $CPPFLAGS' 5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5323 5324 5325 if test -n "$ac_tool_prefix"; then 5326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5329 printf %s "checking for $ac_word... " >&6; } 5330 if test ${ac_cv_prog_RANLIB+y} 5331 then : 5332 printf %s "(cached) " >&6 5333 else $as_nop 5334 if test -n "$RANLIB"; then 5335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5336 else 5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5338 for as_dir in $PATH 5339 do 5340 IFS=$as_save_IFS 5341 case $as_dir in #((( 5342 '') as_dir=./ ;; 5343 */) ;; 5344 *) as_dir=$as_dir/ ;; 5345 esac 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352 done 5353 done 5354 IFS=$as_save_IFS 5355 5356 fi 5357 fi 5358 RANLIB=$ac_cv_prog_RANLIB 5359 if test -n "$RANLIB"; then 5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5361 printf "%s\n" "$RANLIB" >&6; } 5362 else 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364 printf "%s\n" "no" >&6; } 5365 fi 5366 5367 5368 fi 5369 if test -z "$ac_cv_prog_RANLIB"; then 5370 ac_ct_RANLIB=$RANLIB 5371 # Extract the first word of "ranlib", so it can be a program name with args. 5372 set dummy ranlib; ac_word=$2 5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5374 printf %s "checking for $ac_word... " >&6; } 5375 if test ${ac_cv_prog_ac_ct_RANLIB+y} 5376 then : 5377 printf %s "(cached) " >&6 5378 else $as_nop 5379 if test -n "$ac_ct_RANLIB"; then 5380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5381 else 5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383 for as_dir in $PATH 5384 do 5385 IFS=$as_save_IFS 5386 case $as_dir in #((( 5387 '') as_dir=./ ;; 5388 */) ;; 5389 *) as_dir=$as_dir/ ;; 5390 esac 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5393 ac_cv_prog_ac_ct_RANLIB="ranlib" 5394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397 done 5398 done 5399 IFS=$as_save_IFS 5400 5401 fi 5402 fi 5403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5404 if test -n "$ac_ct_RANLIB"; then 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5406 printf "%s\n" "$ac_ct_RANLIB" >&6; } 5407 else 5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409 printf "%s\n" "no" >&6; } 5410 fi 5411 5412 if test "x$ac_ct_RANLIB" = x; then 5413 RANLIB=":" 5414 else 5415 case $cross_compiling:$ac_tool_warned in 5416 yes:) 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5419 ac_tool_warned=yes ;; 5420 esac 5421 RANLIB=$ac_ct_RANLIB 5422 fi 5423 else 5424 RANLIB="$ac_cv_prog_RANLIB" 5425 fi 5426 5427 5428 5429 ac_header= ac_cache= 5430 for ac_item in $ac_header_c_list 5431 do 5432 if test $ac_cache; then 5433 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5434 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5435 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5436 fi 5437 ac_header= ac_cache= 5438 elif test $ac_header; then 5439 ac_cache=$ac_item 5440 else 5441 ac_header=$ac_item 5442 fi 5443 done 5444 5445 5446 5447 5448 5449 5450 5451 5452 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5453 then : 5454 5455 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5456 5457 fi 5458 5459 5460 5461 5462 5463 5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5465 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5466 if test ${ac_cv_safe_to_define___extensions__+y} 5467 then : 5468 printf %s "(cached) " >&6 5469 else $as_nop 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471 /* end confdefs.h. */ 5472 5473 # define __EXTENSIONS__ 1 5474 $ac_includes_default 5475 int 5476 main (void) 5477 { 5478 5479 ; 5480 return 0; 5481 } 5482 _ACEOF 5483 if ac_fn_c_try_compile "$LINENO" 5484 then : 5485 ac_cv_safe_to_define___extensions__=yes 5486 else $as_nop 5487 ac_cv_safe_to_define___extensions__=no 5488 fi 5489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5490 fi 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5492 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5493 5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5495 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }