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