1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622LIBOBJS 623DED_OSTYPE 624DED_THR_DEFS 625DED_LIBS 626DED_WERRORFLAGS 627DED_WARN_FLAGS 628DED_STATIC_CFLAGS 629DED_CFLAGS 630DED_BASIC_CFLAGS 631DED_INCLUDE 632DED_SYS_INCLUDE 633DED_EXT 634DED_GCC 635DED_CC 636EGREP 637GREP 638DEFAULT_VERBOSITY 639OTP_VSN 640OTP_REL 641ERTS_VSN 642PERL 643LN_S 644INSTALL_DATA 645INSTALL_SCRIPT 646INSTALL_PROGRAM 647MAKE_PROG 648ENV 649MIXED_MINGW 650MIXED_VC 651ac_ct_CXX 652OBJEXT 653EXEEXT 654ac_ct_CC 655BOOTSTRAP_ONLY 656CROSS_COMPILING 657TARGET 658host_os 659host_vendor 660host_cpu 661host 662build_os 663build_vendor 664build_cpu 665build 666erl_xcomp_dlsym_brk_wrappers 667erl_xcomp_after_morecore_hook 668erl_xcomp_clock_gettime_cpu_time 669erl_xcomp_gethrvtime_procfs_ioctl 670erl_xcomp_getaddrinfo 671erl_xcomp_reliable_fpe 672erl_xcomp_putenv_copy 673erl_xcomp_kqueue 674erl_xcomp_poll 675erl_xcomp_linux_usable_sigaltstack 676erl_xcomp_linux_usable_sigusrx 677erl_xcomp_linux_nptl 678erl_xcomp_double_middle_endian 679erl_xcomp_bigendian 680erl_xcomp_isysroot 681erl_xcomp_sysroot 682GETCONF 683AR 684RANLIB 685LFS_LIBS 686LFS_LDFLAGS 687LFS_CFLAGS 688DED_LD_FLAG_RUNTIME_LIBRARY_PATH 689DED_LDFLAGS 690DED_LD 691LDFLAGS 692LD 693CXXFLAGS 694CXX 695CPPFLAGS 696CPP 697CFLAG_RUNTIME_LIBRARY_PATH 698STATIC_CFLAGS 699CFLAGS 700CC 701ERL_TOP 702target_alias 703host_alias 704build_alias 705LIBS 706ECHO_T 707ECHO_N 708ECHO_C 709DEFS 710mandir 711localedir 712libdir 713psdir 714pdfdir 715dvidir 716htmldir 717infodir 718docdir 719oldincludedir 720includedir 721runstatedir 722localstatedir 723sharedstatedir 724sysconfdir 725datadir 726datarootdir 727libexecdir 728sbindir 729bindir 730program_transform_name 731prefix 732exec_prefix 733PACKAGE_URL 734PACKAGE_BUGREPORT 735PACKAGE_STRING 736PACKAGE_VERSION 737PACKAGE_TARNAME 738PACKAGE_NAME 739PATH_SEPARATOR 740SHELL' 741ac_subst_files='' 742ac_user_opts=' 743enable_option_checking 744enable_bootstrap_only 745enable_parallel_configure 746enable_dirty_schedulers 747enable_plain_emulator 748with_termcap 749enable_kernel_poll 750enable_sctp 751with_dynamic_trace 752enable_vm_probes 753with_javac 754enable_megaco_flex_scanner_lineno 755enable_megaco_reentrant_flex_scanner 756with_ssl 757with_ssl_incl 758with_ssl_zlib 759with_ssl_lib_subdir 760with_ssl_rpath 761enable_dynamic_ssl_lib 762enable_fips 763enable_builtin_zlib 764enable_esock 765enable_sharing_preserving 766enable_m64_build 767enable_m32_build 768enable_pie 769with_libatomic_ops 770enable_sanitizers 771enable_silent_rules 772' 773 ac_precious_vars='build_alias 774host_alias 775target_alias 776ERL_TOP 777CC 778CFLAGS 779STATIC_CFLAGS 780CFLAG_RUNTIME_LIBRARY_PATH 781CPP 782CPPFLAGS 783CXX 784CXXFLAGS 785LD 786LDFLAGS 787LIBS 788DED_LD 789DED_LDFLAGS 790DED_LD_FLAG_RUNTIME_LIBRARY_PATH 791LFS_CFLAGS 792LFS_LDFLAGS 793LFS_LIBS 794RANLIB 795AR 796GETCONF 797erl_xcomp_sysroot 798erl_xcomp_isysroot 799erl_xcomp_bigendian 800erl_xcomp_double_middle_endian 801erl_xcomp_linux_nptl 802erl_xcomp_linux_usable_sigusrx 803erl_xcomp_linux_usable_sigaltstack 804erl_xcomp_poll 805erl_xcomp_kqueue 806erl_xcomp_putenv_copy 807erl_xcomp_reliable_fpe 808erl_xcomp_getaddrinfo 809erl_xcomp_gethrvtime_procfs_ioctl 810erl_xcomp_clock_gettime_cpu_time 811erl_xcomp_after_morecore_hook 812erl_xcomp_dlsym_brk_wrappers 813CCC' 814 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819ac_unrecognized_opts= 820ac_unrecognized_sep= 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852runstatedir='${localstatedir}/run' 853includedir='${prefix}/include' 854oldincludedir='/usr/include' 855docdir='${datarootdir}/doc/${PACKAGE}' 856infodir='${datarootdir}/info' 857htmldir='${docdir}' 858dvidir='${docdir}' 859pdfdir='${docdir}' 860psdir='${docdir}' 861libdir='${exec_prefix}/lib' 862localedir='${datarootdir}/locale' 863mandir='${datarootdir}/man' 864 865ac_prev= 866ac_dashdash= 867for ac_option 868do 869 # If the previous option needs an argument, assign it. 870 if test -n "$ac_prev"; then 871 eval $ac_prev=\$ac_option 872 ac_prev= 873 continue 874 fi 875 876 case $ac_option in 877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 878 *=) ac_optarg= ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1106 | --runstate | --runstat | --runsta | --runst | --runs \ 1107 | --run | --ru | --r) 1108 ac_prev=runstatedir ;; 1109 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1110 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1111 | --run=* | --ru=* | --r=*) 1112 runstatedir=$ac_optarg ;; 1113 1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1115 ac_prev=sbindir ;; 1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1117 | --sbi=* | --sb=*) 1118 sbindir=$ac_optarg ;; 1119 1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1122 | --sharedst | --shareds | --shared | --share | --shar \ 1123 | --sha | --sh) 1124 ac_prev=sharedstatedir ;; 1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1128 | --sha=* | --sh=*) 1129 sharedstatedir=$ac_optarg ;; 1130 1131 -site | --site | --sit) 1132 ac_prev=site ;; 1133 -site=* | --site=* | --sit=*) 1134 site=$ac_optarg ;; 1135 1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1137 ac_prev=srcdir ;; 1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1139 srcdir=$ac_optarg ;; 1140 1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1142 | --syscon | --sysco | --sysc | --sys | --sy) 1143 ac_prev=sysconfdir ;; 1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1146 sysconfdir=$ac_optarg ;; 1147 1148 -target | --target | --targe | --targ | --tar | --ta | --t) 1149 ac_prev=target_alias ;; 1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1151 target_alias=$ac_optarg ;; 1152 1153 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1154 verbose=yes ;; 1155 1156 -version | --version | --versio | --versi | --vers | -V) 1157 ac_init_version=: ;; 1158 1159 -with-* | --with-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=\$ac_optarg ;; 1174 1175 -without-* | --without-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184"with_$ac_useropt" 1185"*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=no ;; 1190 1191 --x) 1192 # Obsolete; use --with-x. 1193 with_x=yes ;; 1194 1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1196 | --x-incl | --x-inc | --x-in | --x-i) 1197 ac_prev=x_includes ;; 1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1200 x_includes=$ac_optarg ;; 1201 1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1204 ac_prev=x_libraries ;; 1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1207 x_libraries=$ac_optarg ;; 1208 1209 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1210Try \`$0 --help' for more information" 1211 ;; 1212 1213 *=*) 1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1215 # Reject names that are not valid shell variable names. 1216 case $ac_envvar in #( 1217 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1219 esac 1220 eval $ac_envvar=\$ac_optarg 1221 export $ac_envvar ;; 1222 1223 *) 1224 # FIXME: should be removed in autoconf 3.0. 1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1229 ;; 1230 1231 esac 1232done 1233 1234if test -n "$ac_prev"; then 1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1236 as_fn_error $? "missing argument to $ac_option" 1237fi 1238 1239if test -n "$ac_unrecognized_opts"; then 1240 case $enable_option_checking in 1241 no) ;; 1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1244 esac 1245fi 1246 1247# Check all directory arguments for consistency. 1248for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1249 datadir sysconfdir sharedstatedir localstatedir includedir \ 1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1251 libdir localedir mandir runstatedir 1252do 1253 eval ac_val=\$$ac_var 1254 # Remove trailing slashes. 1255 case $ac_val in 1256 */ ) 1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1258 eval $ac_var=\$ac_val;; 1259 esac 1260 # Be sure to have absolute directory names. 1261 case $ac_val in 1262 [\\/$]* | ?:[\\/]* ) continue;; 1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1264 esac 1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1266done 1267 1268# There might be people who depend on the old broken behavior: `$host' 1269# used to hold the argument of --host etc. 1270# FIXME: To remove some day. 1271build=$build_alias 1272host=$host_alias 1273target=$target_alias 1274 1275# FIXME: To remove some day. 1276if test "x$host_alias" != x; then 1277 if test "x$build_alias" = x; then 1278 cross_compiling=maybe 1279 elif test "x$build_alias" != "x$host_alias"; then 1280 cross_compiling=yes 1281 fi 1282fi 1283 1284ac_tool_prefix= 1285test -n "$host_alias" && ac_tool_prefix=$host_alias- 1286 1287test "$silent" = yes && exec 6>/dev/null 1288 1289 1290ac_pwd=`pwd` && test -n "$ac_pwd" && 1291ac_ls_di=`ls -di .` && 1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1293 as_fn_error $? "working directory cannot be determined" 1294test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1295 as_fn_error $? "pwd does not report name of working directory" 1296 1297 1298# Find the source files, if location was not specified. 1299if test -z "$srcdir"; then 1300 ac_srcdir_defaulted=yes 1301 # Try the directory containing this script, then the parent directory. 1302 ac_confdir=`$as_dirname -- "$as_myself" || 1303$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1304 X"$as_myself" : 'X\(//\)[^/]' \| \ 1305 X"$as_myself" : 'X\(//\)$' \| \ 1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1307$as_echo X"$as_myself" | 1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)[^/].*/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\).*/{ 1321 s//\1/ 1322 q 1323 } 1324 s/.*/./; q'` 1325 srcdir=$ac_confdir 1326 if test ! -r "$srcdir/$ac_unique_file"; then 1327 srcdir=.. 1328 fi 1329else 1330 ac_srcdir_defaulted=no 1331fi 1332if test ! -r "$srcdir/$ac_unique_file"; then 1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1335fi 1336ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1337ac_abs_confdir=`( 1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1339 pwd)` 1340# When building in place, set srcdir=. 1341if test "$ac_abs_confdir" = "$ac_pwd"; then 1342 srcdir=. 1343fi 1344# Remove unnecessary trailing slashes from srcdir. 1345# Double slashes in file names in object file debugging info 1346# mess up M-x gdb in Emacs. 1347case $srcdir in 1348*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1349esac 1350for ac_var in $ac_precious_vars; do 1351 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1352 eval ac_env_${ac_var}_value=\$${ac_var} 1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1355done 1356 1357# 1358# Report the --help message. 1359# 1360if test "$ac_init_help" = "long"; then 1361 # Omit some internal or obsolete options to make the list less imposing. 1362 # This message is too long to be a string in the A/UX 3.1 sh. 1363 cat <<_ACEOF 1364\`configure' configures this package to adapt to many kinds of systems. 1365 1366Usage: $0 [OPTION]... [VAR=VALUE]... 1367 1368To assign environment variables (e.g., CC, CFLAGS...), specify them as 1369VAR=VALUE. See below for descriptions of some of the useful variables. 1370 1371Defaults for the options are specified in brackets. 1372 1373Configuration: 1374 -h, --help display this help and exit 1375 --help=short display options specific to this package 1376 --help=recursive display the short help of all the included packages 1377 -V, --version display version information and exit 1378 -q, --quiet, --silent do not print \`checking ...' messages 1379 --cache-file=FILE cache test results in FILE [disabled] 1380 -C, --config-cache alias for \`--cache-file=config.cache' 1381 -n, --no-create do not create output files 1382 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1383 1384Installation directories: 1385 --prefix=PREFIX install architecture-independent files in PREFIX 1386 [$ac_default_prefix] 1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1388 [PREFIX] 1389 1390By default, \`make install' will install all the files in 1391\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1392an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1393for instance \`--prefix=\$HOME'. 1394 1395For better control, use the options below. 1396 1397Fine tuning of the installation directories: 1398 --bindir=DIR user executables [EPREFIX/bin] 1399 --sbindir=DIR system admin executables [EPREFIX/sbin] 1400 --libexecdir=DIR program executables [EPREFIX/libexec] 1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1404 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422System types: 1423 --build=BUILD configure for building on BUILD [guessed] 1424 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1425_ACEOF 1426fi 1427 1428if test -n "$ac_init_help"; then 1429 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --enable-bootstrap-only enable bootstrap only configuration 1437 --disable-parallel-configure 1438 disable parallel execution of configure scripts 1439 --enable-dirty-schedulers 1440 enable dirty scheduler support 1441 --enable-plain-emulator enable threaded non-smp emulator 1442 --disable-plain-emulator 1443 disable threaded non-smp emulator 1444 --enable-kernel-poll enable kernel poll support 1445 --disable-kernel-poll disable kernel poll support 1446 --enable-sctp enable sctp support (default) to on demand load the 1447 SCTP library in runtime 1448 --enable-sctp=lib enable sctp support to link against the SCTP library 1449 --disable-sctp disable sctp support 1450 --enable-vm-probes add dynamic trace probes to the Beam VM (only 1451 possible if --with-dynamic-trace is enabled, and 1452 then default) 1453 --disable-megaco-flex-scanner-lineno 1454 disable megaco flex scanner lineno 1455 --disable-megaco-reentrant-flex-scanner 1456 disable reentrant megaco flex scanner 1457 --enable-dynamic-ssl-lib 1458 enable using dynamic openssl libraries when linking 1459 the crypto NIF 1460 --disable-dynamic-ssl-lib 1461 disable using dynamic openssl libraries when linking 1462 the crypto NIF 1463 --enable-fips enable OpenSSL FIPS mode support 1464 --disable-fips disable OpenSSL FIPS mode support (default) 1465 --enable-builtin-zlib force use of our own built-in zlib 1466 --enable-esock enable builtin experimental socket (as a nif) 1467 support (default) 1468 --disable-esock disable builtin experimental socket (as a nif) 1469 support 1470 --enable-sharing-preserving 1471 enable copying of terms without destroying sharing 1472 --enable-m64-build build 64bit binaries using the -m64 flag to (g)cc 1473 --enable-m32-build build 32bit binaries using the -m32 flag to (g)cc 1474 --enable-pie build position independent executables 1475 --disable-pie do no build position independent executables 1476 --enable-sanitizers[=comma-separated list of sanitizers] 1477 Default=address,undefined 1478 --enable-silent-rules less verbose build output (undo: "make V=1") 1479 --disable-silent-rules verbose build output (undo: "make V=0") 1480 1481Optional Packages: 1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1484 --with-termcap use termcap (default) 1485 --without-termcap do not use any termcap libraries 1486 (ncurses,curses,termcap,termlib) 1487 --with-dynamic-trace={dtrace|lttng|systemtap} 1488 specify use of dynamic trace framework, dtrace, 1489 lttng or systemtap 1490 --without-dynamic-trace don't enable any dynamic tracing (default) 1491 --with-javac=JAVAC specify Java compiler to use 1492 --with-javac use a Java compiler if found (default) 1493 --without-javac don't use any Java compiler 1494 --with-ssl=PATH base location of OpenSSL include and lib directories 1495 --with-ssl use SSL (default) 1496 --without-ssl don't use SSL 1497 --with-ssl-incl=PATH base location of OpenSSL include directory (if 1498 different than base location specified by 1499 --with-ssl=PATH) 1500 --with-ssl-zlib=PATH Path to static zlib library to link the crypto NIF 1501 with. This zlib library is most often not necessary 1502 but might be needed in order to link the NIF in some 1503 cases. 1504 --with-ssl-lib-subdir=RELATIVE_PATH 1505 specify extra OpenSSL lib sub-directory to search in 1506 (relative to base directory) 1507 --with-ssl-rpath=yes|no|PATHS 1508 runtime library path for OpenSSL. Default is 'yes', 1509 which equates to a number of standard locations. If 1510 'no', then no runtime library paths will be used. 1511 Anything else should be a comma or colon separated 1512 list of paths. 1513 --with-libatomic_ops=PATH 1514 specify and prefer usage of libatomic_ops in the 1515 ethread library 1516 1517Some influential environment variables: 1518 ERL_TOP Erlang/OTP top source directory 1519 CC C compiler 1520 CFLAGS C compiler flags 1521 STATIC_CFLAGS 1522 C compiler static flags 1523 CFLAG_RUNTIME_LIBRARY_PATH 1524 runtime library path linker flag passed via C compiler 1525 CPP C/C++ preprocessor 1526 CPPFLAGS C/C++ preprocessor flags 1527 CXX C++ compiler 1528 CXXFLAGS C++ compiler flags 1529 LD linker (is often overridden by configure) 1530 LDFLAGS linker flags (can be risky to set since LD may be overriden by 1531 configure) 1532 LIBS libraries 1533 DED_LD linker for Dynamic Erlang Drivers (set all DED_LD* variables or 1534 none) 1535 DED_LDFLAGS linker flags for Dynamic Erlang Drivers (set all DED_LD* 1536 variables or none) 1537 DED_LD_FLAG_RUNTIME_LIBRARY_PATH 1538 runtime library path linker flag for Dynamic Erlang Drivers (set 1539 all DED_LD* variables or none) 1540 LFS_CFLAGS large file support C compiler flags (set all LFS_* variables or 1541 none) 1542 LFS_LDFLAGS large file support linker flags (set all LFS_* variables or 1543 none) 1544 LFS_LIBS large file support libraries (set all LFS_* variables or none) 1545 RANLIB ranlib 1546 AR ar 1547 GETCONF getconf 1548 erl_xcomp_sysroot 1549 Absolute cross system root path (only used when cross compiling) 1550 erl_xcomp_isysroot 1551 Absolute cross system root include path (only used when cross 1552 compiling) 1553 erl_xcomp_bigendian 1554 big endian system: yes|no (only used when cross compiling) 1555 erl_xcomp_double_middle_endian 1556 double-middle-endian system: yes|no (only used when cross 1557 compiling) 1558 erl_xcomp_linux_nptl 1559 have Native POSIX Thread Library: yes|no (only used when cross 1560 compiling) 1561 erl_xcomp_linux_usable_sigusrx 1562 SIGUSR1 and SIGUSR2 can be used: yes|no (only used when cross 1563 compiling) 1564 erl_xcomp_linux_usable_sigaltstack 1565 have working sigaltstack(): yes|no (only used when cross 1566 compiling) 1567 erl_xcomp_poll 1568 have working poll(): yes|no (only used when cross compiling) 1569 erl_xcomp_kqueue 1570 have working kqueue(): yes|no (only used when cross compiling) 1571 erl_xcomp_putenv_copy 1572 putenv() stores key-value copy: yes|no (only used when cross 1573 compiling) 1574 erl_xcomp_reliable_fpe 1575 have reliable floating point exceptions: yes|no (only used when 1576 cross compiling) 1577 erl_xcomp_getaddrinfo 1578 have working getaddrinfo() for both IPv4 and IPv6: yes|no (only 1579 used when cross compiling) 1580 erl_xcomp_gethrvtime_procfs_ioctl 1581 have working gethrvtime() which can be used with procfs ioctl(): 1582 yes|no (only used when cross compiling) 1583 erl_xcomp_clock_gettime_cpu_time 1584 clock_gettime() can be used for retrieving process CPU time: 1585 yes|no (only used when cross compiling) 1586 erl_xcomp_after_morecore_hook 1587 __after_morecore_hook can track malloc()s core memory usage: 1588 yes|no (only used when cross compiling) 1589 erl_xcomp_dlsym_brk_wrappers 1590 dlsym(RTLD_NEXT, _) brk wrappers can track malloc()s core memory 1591 usage: yes|no (only used when cross compiling) 1592 1593Use these variables to override the choices made by `configure' or to help 1594it to find libraries and programs with nonstandard names/locations. 1595 1596Report bugs to the package provider. 1597_ACEOF 1598ac_status=$? 1599fi 1600 1601if test "$ac_init_help" = "recursive"; then 1602 # If there are subdirs, report their specific --help. 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1604 test -d "$ac_dir" || 1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1606 continue 1607 ac_builddir=. 1608 1609case "$ac_dir" in 1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1611*) 1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1613 # A ".." for each directory in $ac_dir_suffix. 1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1615 case $ac_top_builddir_sub in 1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1618 esac ;; 1619esac 1620ac_abs_top_builddir=$ac_pwd 1621ac_abs_builddir=$ac_pwd$ac_dir_suffix 1622# for backward compatibility: 1623ac_top_builddir=$ac_top_build_prefix 1624 1625case $srcdir in 1626 .) # We are building in place. 1627 ac_srcdir=. 1628 ac_top_srcdir=$ac_top_builddir_sub 1629 ac_abs_top_srcdir=$ac_pwd ;; 1630 [\\/]* | ?:[\\/]* ) # Absolute name. 1631 ac_srcdir=$srcdir$ac_dir_suffix; 1632 ac_top_srcdir=$srcdir 1633 ac_abs_top_srcdir=$srcdir ;; 1634 *) # Relative name. 1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1636 ac_top_srcdir=$ac_top_build_prefix$srcdir 1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1638esac 1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1640 1641 cd "$ac_dir" || { ac_status=$?; continue; } 1642 # Check for guested configure. 1643 if test -f "$ac_srcdir/configure.gnu"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1646 elif test -f "$ac_srcdir/configure"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure" --help=recursive 1649 else 1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1651 fi || ac_status=$? 1652 cd "$ac_pwd" || { ac_status=$?; break; } 1653 done 1654fi 1655 1656test -n "$ac_init_help" && exit $ac_status 1657if $ac_init_version; then 1658 cat <<\_ACEOF 1659configure 1660generated by GNU Autoconf 2.69 1661 1662Copyright (C) 2012 Free Software Foundation, Inc. 1663This configure script is free software; the Free Software Foundation 1664gives unlimited permission to copy, distribute and modify it. 1665_ACEOF 1666 exit 1667fi 1668 1669## ------------------------ ## 1670## Autoconf initialization. ## 1671## ------------------------ ## 1672 1673# ac_fn_c_try_compile LINENO 1674# -------------------------- 1675# Try to compile conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext 1680 if { { ac_try="$ac_compile" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686$as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_compile") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest.$ac_objext; then : 1699 ac_retval=0 1700else 1701 $as_echo "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 1705fi 1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1707 as_fn_set_status $ac_retval 1708 1709} # ac_fn_c_try_compile 1710 1711# ac_fn_cxx_try_compile LINENO 1712# ---------------------------- 1713# Try to compile conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_cxx_try_compile () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext 1718 if { { ac_try="$ac_compile" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_compile") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_cxx_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest.$ac_objext; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_cxx_try_compile 1748 1749# ac_fn_c_try_link LINENO 1750# ----------------------- 1751# Try to link conftest.$ac_ext, and return whether this succeeded. 1752ac_fn_c_try_link () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 rm -f conftest.$ac_objext conftest$ac_exeext 1756 if { { ac_try="$ac_link" 1757case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762$as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_link") 2>conftest.err 1764 ac_status=$? 1765 if test -s conftest.err; then 1766 grep -v '^ *+' conftest.err >conftest.er1 1767 cat conftest.er1 >&5 1768 mv -f conftest.er1 conftest.err 1769 fi 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { 1772 test -z "$ac_c_werror_flag" || 1773 test ! -s conftest.err 1774 } && test -s conftest$ac_exeext && { 1775 test "$cross_compiling" = yes || 1776 test -x conftest$ac_exeext 1777 }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1787 # interfere with the next link command; also delete a directory that is 1788 # left behind by Apple's compiler. We do this before executing the actions. 1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793} # ac_fn_c_try_link 1794 1795# ac_fn_c_check_func LINENO FUNC VAR 1796# ---------------------------------- 1797# Tests whether FUNC exists, setting the cache variable VAR accordingly 1798ac_fn_c_check_func () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802$as_echo_n "checking for $2... " >&6; } 1803if eval \${$3+:} false; then : 1804 $as_echo_n "(cached) " >&6 1805else 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1810#define $2 innocuous_$2 1811 1812/* System header to define __stub macros and hopefully few prototypes, 1813 which can conflict with char $2 (); below. 1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1815 <limits.h> exists even on freestanding compilers. */ 1816 1817#ifdef __STDC__ 1818# include <limits.h> 1819#else 1820# include <assert.h> 1821#endif 1822 1823#undef $2 1824 1825/* Override any GCC internal prototype to avoid an error. 1826 Use char because int might match the return type of a GCC 1827 builtin and then its argument prototype would still apply. */ 1828#ifdef __cplusplus 1829extern "C" 1830#endif 1831char $2 (); 1832/* The GNU C library defines this for functions which it implements 1833 to always fail with ENOSYS. Some functions are actually named 1834 something starting with __ and the normal name is an alias. */ 1835#if defined __stub_$2 || defined __stub___$2 1836choke me 1837#endif 1838 1839int 1840main () 1841{ 1842return $2 (); 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_link "$LINENO"; then : 1848 eval "$3=yes" 1849else 1850 eval "$3=no" 1851fi 1852rm -f core conftest.err conftest.$ac_objext \ 1853 conftest$ac_exeext conftest.$ac_ext 1854fi 1855eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857$as_echo "$ac_res" >&6; } 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 1860} # ac_fn_c_check_func 1861 1862# ac_fn_c_try_cpp LINENO 1863# ---------------------- 1864# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1865ac_fn_c_try_cpp () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 if { { ac_try="$ac_cpp conftest.$ac_ext" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1876 ac_status=$? 1877 if test -s conftest.err; then 1878 grep -v '^ *+' conftest.err >conftest.er1 1879 cat conftest.er1 >&5 1880 mv -f conftest.er1 conftest.err 1881 fi 1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1883 test $ac_status = 0; } > conftest.i && { 1884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1885 test ! -s conftest.err 1886 }; then : 1887 ac_retval=0 1888else 1889 $as_echo "$as_me: failed program was:" >&5 1890sed 's/^/| /' conftest.$ac_ext >&5 1891 1892 ac_retval=1 1893fi 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 as_fn_set_status $ac_retval 1896 1897} # ac_fn_c_try_cpp 1898 1899# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1900# ------------------------------------------------------- 1901# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1902# the include files in INCLUDES and setting the cache variable VAR 1903# accordingly. 1904ac_fn_c_check_header_mongrel () 1905{ 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 if eval \${$3+:} false; then : 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1909$as_echo_n "checking for $2... " >&6; } 1910if eval \${$3+:} false; then : 1911 $as_echo_n "(cached) " >&6 1912fi 1913eval ac_res=\$$3 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915$as_echo "$ac_res" >&6; } 1916else 1917 # Is the header compilable? 1918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1919$as_echo_n "checking $2 usability... " >&6; } 1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921/* end confdefs.h. */ 1922$4 1923#include <$2> 1924_ACEOF 1925if ac_fn_c_try_compile "$LINENO"; then : 1926 ac_header_compiler=yes 1927else 1928 ac_header_compiler=no 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1932$as_echo "$ac_header_compiler" >&6; } 1933 1934# Is the header present? 1935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1936$as_echo_n "checking $2 presence... " >&6; } 1937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939#include <$2> 1940_ACEOF 1941if ac_fn_c_try_cpp "$LINENO"; then : 1942 ac_header_preproc=yes 1943else 1944 ac_header_preproc=no 1945fi 1946rm -f conftest.err conftest.i conftest.$ac_ext 1947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1948$as_echo "$ac_header_preproc" >&6; } 1949 1950# So? What about this header? 1951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1952 yes:no: ) 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1954$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1956$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1957 ;; 1958 no:yes:* ) 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1960$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1962$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1964$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1966$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1968$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1969 ;; 1970esac 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1972$as_echo_n "checking for $2... " >&6; } 1973if eval \${$3+:} false; then : 1974 $as_echo_n "(cached) " >&6 1975else 1976 eval "$3=\$ac_header_compiler" 1977fi 1978eval ac_res=\$$3 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1980$as_echo "$ac_res" >&6; } 1981fi 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_header_mongrel 1985 1986# ac_fn_c_try_run LINENO 1987# ---------------------- 1988# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1989# that executables *can* be run. 1990ac_fn_c_try_run () 1991{ 1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1993 if { { ac_try="$ac_link" 1994case "(($ac_try" in 1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1996 *) ac_try_echo=$ac_try;; 1997esac 1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1999$as_echo "$ac_try_echo"; } >&5 2000 (eval "$ac_link") 2>&5 2001 ac_status=$? 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2004 { { case "(($ac_try" in 2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2006 *) ac_try_echo=$ac_try;; 2007esac 2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2009$as_echo "$ac_try_echo"; } >&5 2010 (eval "$ac_try") 2>&5 2011 ac_status=$? 2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2013 test $ac_status = 0; }; }; then : 2014 ac_retval=0 2015else 2016 $as_echo "$as_me: program exited with status $ac_status" >&5 2017 $as_echo "$as_me: failed program was:" >&5 2018sed 's/^/| /' conftest.$ac_ext >&5 2019 2020 ac_retval=$ac_status 2021fi 2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 as_fn_set_status $ac_retval 2025 2026} # ac_fn_c_try_run 2027 2028# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2029# ------------------------------------------------------- 2030# Tests whether HEADER exists and can be compiled using the include files in 2031# INCLUDES, setting the cache variable VAR accordingly. 2032ac_fn_c_check_header_compile () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2036$as_echo_n "checking for $2... " >&6; } 2037if eval \${$3+:} false; then : 2038 $as_echo_n "(cached) " >&6 2039else 2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043#include <$2> 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 eval "$3=yes" 2047else 2048 eval "$3=no" 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051fi 2052eval ac_res=\$$3 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2054$as_echo "$ac_res" >&6; } 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2056 2057} # ac_fn_c_check_header_compile 2058 2059# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2060# -------------------------------------------- 2061# Tries to find the compile-time value of EXPR in a program that includes 2062# INCLUDES, setting VAR accordingly. Returns whether the value could be 2063# computed 2064ac_fn_c_compute_int () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 if test "$cross_compiling" = yes; then 2068 # Depending upon the size, compute the lo and hi bounds. 2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071$4 2072int 2073main () 2074{ 2075static int test_array [1 - 2 * !(($2) >= 0)]; 2076test_array [0] = 0; 2077return test_array [0]; 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 ac_lo=0 ac_mid=0 2085 while :; do 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089int 2090main () 2091{ 2092static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2093test_array [0] = 0; 2094return test_array [0]; 2095 2096 ; 2097 return 0; 2098} 2099_ACEOF 2100if ac_fn_c_try_compile "$LINENO"; then : 2101 ac_hi=$ac_mid; break 2102else 2103 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2104 if test $ac_lo -le $ac_mid; then 2105 ac_lo= ac_hi= 2106 break 2107 fi 2108 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2109fi 2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2111 done 2112else 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$4 2116int 2117main () 2118{ 2119static int test_array [1 - 2 * !(($2) < 0)]; 2120test_array [0] = 0; 2121return test_array [0]; 2122 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127if ac_fn_c_try_compile "$LINENO"; then : 2128 ac_hi=-1 ac_mid=-1 2129 while :; do 2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132$4 2133int 2134main () 2135{ 2136static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2137test_array [0] = 0; 2138return test_array [0]; 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_c_try_compile "$LINENO"; then : 2145 ac_lo=$ac_mid; break 2146else 2147 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2148 if test $ac_mid -le $ac_hi; then 2149 ac_lo= ac_hi= 2150 break 2151 fi 2152 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155 done 2156else 2157 ac_lo= ac_hi= 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2160fi 2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2162# Binary search between lo and hi bounds. 2163while test "x$ac_lo" != "x$ac_hi"; do 2164 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166/* end confdefs.h. */ 2167$4 2168int 2169main () 2170{ 2171static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2172test_array [0] = 0; 2173return test_array [0]; 2174 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179if ac_fn_c_try_compile "$LINENO"; then : 2180 ac_hi=$ac_mid 2181else 2182 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2183fi 2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2185done 2186case $ac_lo in #(( 2187?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2188'') ac_retval=1 ;; 2189esac 2190 else 2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2192/* end confdefs.h. */ 2193$4 2194static long int longval () { return $2; } 2195static unsigned long int ulongval () { return $2; } 2196#include <stdio.h> 2197#include <stdlib.h> 2198int 2199main () 2200{ 2201 2202 FILE *f = fopen ("conftest.val", "w"); 2203 if (! f) 2204 return 1; 2205 if (($2) < 0) 2206 { 2207 long int i = longval (); 2208 if (i != ($2)) 2209 return 1; 2210 fprintf (f, "%ld", i); 2211 } 2212 else 2213 { 2214 unsigned long int i = ulongval (); 2215 if (i != ($2)) 2216 return 1; 2217 fprintf (f, "%lu", i); 2218 } 2219 /* Do not output a trailing newline, as this causes \r\n confusion 2220 on some platforms. */ 2221 return ferror (f) || fclose (f) != 0; 2222 2223 ; 2224 return 0; 2225} 2226_ACEOF 2227if ac_fn_c_try_run "$LINENO"; then : 2228 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2229else 2230 ac_retval=1 2231fi 2232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2233 conftest.$ac_objext conftest.beam conftest.$ac_ext 2234rm -f conftest.val 2235 2236 fi 2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2238 as_fn_set_status $ac_retval 2239 2240} # ac_fn_c_compute_int 2241cat >config.log <<_ACEOF 2242This file contains any messages produced by compilers while 2243running configure, to aid debugging if configure makes a mistake. 2244 2245It was created by $as_me, which was 2246generated by GNU Autoconf 2.69. Invocation command line was 2247 2248 $ $0 $@ 2249 2250_ACEOF 2251exec 5>>config.log 2252{ 2253cat <<_ASUNAME 2254## --------- ## 2255## Platform. ## 2256## --------- ## 2257 2258hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2259uname -m = `(uname -m) 2>/dev/null || echo unknown` 2260uname -r = `(uname -r) 2>/dev/null || echo unknown` 2261uname -s = `(uname -s) 2>/dev/null || echo unknown` 2262uname -v = `(uname -v) 2>/dev/null || echo unknown` 2263 2264/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2265/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2266 2267/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2268/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2269/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2270/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2271/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2272/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2273/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2274 2275_ASUNAME 2276 2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 $as_echo "PATH: $as_dir" 2283 done 2284IFS=$as_save_IFS 2285 2286} >&5 2287 2288cat >&5 <<_ACEOF 2289 2290 2291## ----------- ## 2292## Core tests. ## 2293## ----------- ## 2294 2295_ACEOF 2296 2297 2298# Keep a trace of the command line. 2299# Strip out --no-create and --no-recursion so they do not pile up. 2300# Strip out --silent because we don't want to record it for future runs. 2301# Also quote any args containing shell meta-characters. 2302# Make two passes to allow for proper duplicate-argument suppression. 2303ac_configure_args= 2304ac_configure_args0= 2305ac_configure_args1= 2306ac_must_keep_next=false 2307for ac_pass in 1 2 2308do 2309 for ac_arg 2310 do 2311 case $ac_arg in 2312 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2314 | -silent | --silent | --silen | --sile | --sil) 2315 continue ;; 2316 *\'*) 2317 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2318 esac 2319 case $ac_pass in 2320 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2321 2) 2322 as_fn_append ac_configure_args1 " '$ac_arg'" 2323 if test $ac_must_keep_next = true; then 2324 ac_must_keep_next=false # Got value, back to normal. 2325 else 2326 case $ac_arg in 2327 *=* | --config-cache | -C | -disable-* | --disable-* \ 2328 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2329 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2330 | -with-* | --with-* | -without-* | --without-* | --x) 2331 case "$ac_configure_args0 " in 2332 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2333 esac 2334 ;; 2335 -* ) ac_must_keep_next=true ;; 2336 esac 2337 fi 2338 as_fn_append ac_configure_args " '$ac_arg'" 2339 ;; 2340 esac 2341 done 2342done 2343{ ac_configure_args0=; unset ac_configure_args0;} 2344{ ac_configure_args1=; unset ac_configure_args1;} 2345 2346# When interrupted or exit'd, cleanup temporary files, and complete 2347# config.log. We remove comments because anyway the quotes in there 2348# would cause problems or look ugly. 2349# WARNING: Use '\'' to represent an apostrophe within the trap. 2350# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2351trap 'exit_status=$? 2352 # Save into config.log some information that might help in debugging. 2353 { 2354 echo 2355 2356 $as_echo "## ---------------- ## 2357## Cache variables. ## 2358## ---------------- ##" 2359 echo 2360 # The following way of writing the cache mishandles newlines in values, 2361( 2362 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2363 eval ac_val=\$$ac_var 2364 case $ac_val in #( 2365 *${as_nl}*) 2366 case $ac_var in #( 2367 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2368$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2369 esac 2370 case $ac_var in #( 2371 _ | IFS | as_nl) ;; #( 2372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2373 *) { eval $ac_var=; unset $ac_var;} ;; 2374 esac ;; 2375 esac 2376 done 2377 (set) 2>&1 | 2378 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2379 *${as_nl}ac_space=\ *) 2380 sed -n \ 2381 "s/'\''/'\''\\\\'\'''\''/g; 2382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2383 ;; #( 2384 *) 2385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2386 ;; 2387 esac | 2388 sort 2389) 2390 echo 2391 2392 $as_echo "## ----------------- ## 2393## Output variables. ## 2394## ----------------- ##" 2395 echo 2396 for ac_var in $ac_subst_vars 2397 do 2398 eval ac_val=\$$ac_var 2399 case $ac_val in 2400 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2401 esac 2402 $as_echo "$ac_var='\''$ac_val'\''" 2403 done | sort 2404 echo 2405 2406 if test -n "$ac_subst_files"; then 2407 $as_echo "## ------------------- ## 2408## File substitutions. ## 2409## ------------------- ##" 2410 echo 2411 for ac_var in $ac_subst_files 2412 do 2413 eval ac_val=\$$ac_var 2414 case $ac_val in 2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2416 esac 2417 $as_echo "$ac_var='\''$ac_val'\''" 2418 done | sort 2419 echo 2420 fi 2421 2422 if test -s confdefs.h; then 2423 $as_echo "## ----------- ## 2424## confdefs.h. ## 2425## ----------- ##" 2426 echo 2427 cat confdefs.h 2428 echo 2429 fi 2430 test "$ac_signal" != 0 && 2431 $as_echo "$as_me: caught signal $ac_signal" 2432 $as_echo "$as_me: exit $exit_status" 2433 } >&5 2434 rm -f core *.core core.conftest.* && 2435 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2436 exit $exit_status 2437' 0 2438for ac_signal in 1 2 13 15; do 2439 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2440done 2441ac_signal=0 2442 2443# confdefs.h avoids OS command line length limits that DEFS can exceed. 2444rm -f -r conftest* confdefs.h 2445 2446$as_echo "/* confdefs.h */" > confdefs.h 2447 2448# Predefined preprocessor variables. 2449 2450cat >>confdefs.h <<_ACEOF 2451#define PACKAGE_NAME "$PACKAGE_NAME" 2452_ACEOF 2453 2454cat >>confdefs.h <<_ACEOF 2455#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2456_ACEOF 2457 2458cat >>confdefs.h <<_ACEOF 2459#define PACKAGE_VERSION "$PACKAGE_VERSION" 2460_ACEOF 2461 2462cat >>confdefs.h <<_ACEOF 2463#define PACKAGE_STRING "$PACKAGE_STRING" 2464_ACEOF 2465 2466cat >>confdefs.h <<_ACEOF 2467#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2468_ACEOF 2469 2470cat >>confdefs.h <<_ACEOF 2471#define PACKAGE_URL "$PACKAGE_URL" 2472_ACEOF 2473 2474 2475# Let the site file select an alternate cache file if it wants to. 2476# Prefer an explicitly selected file to automatically selected ones. 2477ac_site_file1=NONE 2478ac_site_file2=NONE 2479if test -n "$CONFIG_SITE"; then 2480 # We do not want a PATH search for config.site. 2481 case $CONFIG_SITE in #(( 2482 -*) ac_site_file1=./$CONFIG_SITE;; 2483 */*) ac_site_file1=$CONFIG_SITE;; 2484 *) ac_site_file1=./$CONFIG_SITE;; 2485 esac 2486elif test "x$prefix" != xNONE; then 2487 ac_site_file1=$prefix/share/config.site 2488 ac_site_file2=$prefix/etc/config.site 2489else 2490 ac_site_file1=$ac_default_prefix/share/config.site 2491 ac_site_file2=$ac_default_prefix/etc/config.site 2492fi 2493for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2494do 2495 test "x$ac_site_file" = xNONE && continue 2496 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2498$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2499 sed 's/^/| /' "$ac_site_file" >&5 2500 . "$ac_site_file" \ 2501 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2503as_fn_error $? "failed to load site script $ac_site_file 2504See \`config.log' for more details" "$LINENO" 5; } 2505 fi 2506done 2507 2508if test -r "$cache_file"; then 2509 # Some versions of bash will fail to source /dev/null (special files 2510 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2511 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2513$as_echo "$as_me: loading cache $cache_file" >&6;} 2514 case $cache_file in 2515 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2516 *) . "./$cache_file";; 2517 esac 2518 fi 2519else 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2521$as_echo "$as_me: creating cache $cache_file" >&6;} 2522 >$cache_file 2523fi 2524 2525# Check that the precious variables saved in the cache have kept the same 2526# value. 2527ac_cache_corrupted=false 2528for ac_var in $ac_precious_vars; do 2529 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2530 eval ac_new_set=\$ac_env_${ac_var}_set 2531 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2532 eval ac_new_val=\$ac_env_${ac_var}_value 2533 case $ac_old_set,$ac_new_set in 2534 set,) 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2536$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2537 ac_cache_corrupted=: ;; 2538 ,set) 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2540$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2541 ac_cache_corrupted=: ;; 2542 ,);; 2543 *) 2544 if test "x$ac_old_val" != "x$ac_new_val"; then 2545 # differences in whitespace do not lead to failure. 2546 ac_old_val_w=`echo x $ac_old_val` 2547 ac_new_val_w=`echo x $ac_new_val` 2548 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2550$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2551 ac_cache_corrupted=: 2552 else 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2554$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2555 eval $ac_var=\$ac_old_val 2556 fi 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2558$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2560$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2561 fi;; 2562 esac 2563 # Pass precious variables to config.status. 2564 if test "$ac_new_set" = set; then 2565 case $ac_new_val in 2566 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2567 *) ac_arg=$ac_var=$ac_new_val ;; 2568 esac 2569 case " $ac_configure_args " in 2570 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2571 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2572 esac 2573 fi 2574done 2575if $ac_cache_corrupted; then 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2579$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2580 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2581fi 2582## -------------------- ## 2583## Main body of script. ## 2584## -------------------- ## 2585 2586ac_ext=c 2587ac_cpp='$CPP $CPPFLAGS' 2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2590ac_compiler_gnu=$ac_cv_c_compiler_gnu 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639default_cache_file=./config.cache 2640 2641if test "x$no_recursion" != "xyes" -a "x$OVERRIDE_CONFIG_CACHE" = "x"; then 2642 # The no_recursion variable is not documented, but the only 2643 # action we take on it is disabling caching which is safe! 2644 if test "x$cache_file" != "x$default_cache_file"; then 2645 echo "Ignoring the --cache-file argument since it can cause the system to be erroneously configured" 2646 fi 2647 echo "Disabling caching" 2648 if test -f $cache_file; then 2649 echo "Removing cache file $cache_file" 2650 rm -f $cache_file 2651 fi 2652 cache_file=/dev/null 2653fi 2654 2655case "X$ERL_TOP" in 2656 X) 2657 ;; 2658 X/*) 2659 test -f "$ERL_TOP/erts/emulator/beam/erl_init.c" || { 2660 as_fn_error $? "Invalid \$ERL_TOP" "$LINENO" 5 2661 } 2662 srcdir="$ERL_TOP";; 2663 *) 2664 as_fn_error $? "\$ERL_TOP needs to be absolute" "$LINENO" 5;; 2665esac 2666 2667#### Make srcdir absolute, if it isn't already. It's important to 2668#### avoid running the path through pwd unnecessary, since pwd can 2669#### give you automounter prefixes, which can go away. 2670case "${srcdir}" in 2671 /* ) ;; 2672 . ) 2673 ## We may be able to use the $PWD environment variable to make this 2674 ## absolute. But sometimes PWD is inaccurate. 2675 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). 2676 CDPATH= 2677 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; 2678 then 2679 srcdir="$PWD" 2680 else 2681 srcdir="`(cd ${srcdir}; pwd)`" 2682 fi 2683 ;; 2684 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; 2685esac 2686 2687# 2688# Now srcdir is absolute and also the top of Erlang distribution, ERL_TOP. 2689# 2690test "X$ERL_TOP" != "X" || as_fn_error $? "ERL_TOP not set" "$LINENO" 5 2691 2692 2693ac_aux_dir= 2694for ac_dir in ${ERL_TOP}/erts/autoconf "$srcdir"/${ERL_TOP}/erts/autoconf; do 2695 if test -f "$ac_dir/install-sh"; then 2696 ac_aux_dir=$ac_dir 2697 ac_install_sh="$ac_aux_dir/install-sh -c" 2698 break 2699 elif test -f "$ac_dir/install.sh"; then 2700 ac_aux_dir=$ac_dir 2701 ac_install_sh="$ac_aux_dir/install.sh -c" 2702 break 2703 elif test -f "$ac_dir/shtool"; then 2704 ac_aux_dir=$ac_dir 2705 ac_install_sh="$ac_aux_dir/shtool install -c" 2706 break 2707 fi 2708done 2709if test -z "$ac_aux_dir"; then 2710 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${ERL_TOP}/erts/autoconf \"$srcdir\"/${ERL_TOP}/erts/autoconf" "$LINENO" 5 2711fi 2712 2713# These three variables are undocumented and unsupported, 2714# and are intended to be withdrawn in a future Autoconf release. 2715# They can cause serious problems if a builder's source tree is in a directory 2716# whose full name contains unusual characters. 2717ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2718ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2719ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2720 2721 2722 2723 2724if test "X$host" != "Xfree_source" -a "X$host" != "Xwin32"; then 2725 # Make sure we can run config.sub. 2726$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2727 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2728 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2730$as_echo_n "checking build system type... " >&6; } 2731if ${ac_cv_build+:} false; then : 2732 $as_echo_n "(cached) " >&6 2733else 2734 ac_build_alias=$build_alias 2735test "x$ac_build_alias" = x && 2736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2737test "x$ac_build_alias" = x && 2738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2739ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2741 2742fi 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2744$as_echo "$ac_cv_build" >&6; } 2745case $ac_cv_build in 2746*-*-*) ;; 2747*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2748esac 2749build=$ac_cv_build 2750ac_save_IFS=$IFS; IFS='-' 2751set x $ac_cv_build 2752shift 2753build_cpu=$1 2754build_vendor=$2 2755shift; shift 2756# Remember, the first character of IFS is used to create $*, 2757# except with old shells: 2758build_os=$* 2759IFS=$ac_save_IFS 2760case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2761 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2764$as_echo_n "checking host system type... " >&6; } 2765if ${ac_cv_host+:} false; then : 2766 $as_echo_n "(cached) " >&6 2767else 2768 if test "x$host_alias" = x; then 2769 ac_cv_host=$ac_cv_build 2770else 2771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2773fi 2774 2775fi 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2777$as_echo "$ac_cv_host" >&6; } 2778case $ac_cv_host in 2779*-*-*) ;; 2780*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2781esac 2782host=$ac_cv_host 2783ac_save_IFS=$IFS; IFS='-' 2784set x $ac_cv_host 2785shift 2786host_cpu=$1 2787host_vendor=$2 2788shift; shift 2789# Remember, the first character of IFS is used to create $*, 2790# except with old shells: 2791host_os=$* 2792IFS=$ac_save_IFS 2793case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2794 2795 2796 2797else 2798 host_os=$host 2799fi 2800 2801TARGET=$host 2802 2803 2804if test "$cross_compiling" = "yes"; then 2805 if test "$build" = "$host"; then 2806 as_fn_error $? " 2807 Cross compiling with the same canonicalized 'host' value 2808 as the canonicalized 'build' value. 2809 2810 We are cross compiling since the '--host=$host_alias' 2811 and the '--build=$build_alias' arguments differ. When 2812 cross compiling Erlang/OTP also the canonicalized values of 2813 the '--build' and the '--host' arguments *must* differ. The 2814 canonicalized values of these arguments however both equals: 2815 $host 2816 2817 You can check the canonical value by passing a value as 2818 argument to the 'erts/autoconf/config.sub' script. 2819 " "$LINENO" 5 2820 fi 2821 CROSS_COMPILING=yes 2822else 2823 CROSS_COMPILING=no 2824fi 2825 2826 2827# Check whether --enable-bootstrap-only was given. 2828if test "${enable_bootstrap_only+set}" = set; then : 2829 enableval=$enable_bootstrap_only; if test "X$enableval" = "Xyes"; then 2830 BOOTSTRAP_ONLY=yes 2831 else 2832 BOOTSTRAP_ONLY=no 2833 fi 2834 2835else 2836 BOOTSTRAP_ONLY=no 2837fi 2838 2839 2840 2841 2842if test $CROSS_COMPILING = yes -a $BOOTSTRAP_ONLY = yes; then 2843 as_fn_error $? "Cannot both cross compile and build a bootstrap system" "$LINENO" 5 2844fi 2845 2846 2847ac_ext=c 2848ac_cpp='$CPP $CPPFLAGS' 2849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2851ac_compiler_gnu=$ac_cv_c_compiler_gnu 2852if test -n "$ac_tool_prefix"; then 2853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2854set dummy ${ac_tool_prefix}gcc; ac_word=$2 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2856$as_echo_n "checking for $ac_word... " >&6; } 2857if ${ac_cv_prog_CC+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859else 2860 if test -n "$CC"; then 2861 ac_cv_prog_CC="$CC" # Let the user override the test. 2862else 2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH 2865do 2866 IFS=$as_save_IFS 2867 test -z "$as_dir" && as_dir=. 2868 for ac_exec_ext in '' $ac_executable_extensions; do 2869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2870 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2872 break 2 2873 fi 2874done 2875 done 2876IFS=$as_save_IFS 2877 2878fi 2879fi 2880CC=$ac_cv_prog_CC 2881if test -n "$CC"; then 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2883$as_echo "$CC" >&6; } 2884else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2886$as_echo "no" >&6; } 2887fi 2888 2889 2890fi 2891if test -z "$ac_cv_prog_CC"; then 2892 ac_ct_CC=$CC 2893 # Extract the first word of "gcc", so it can be a program name with args. 2894set dummy gcc; ac_word=$2 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2896$as_echo_n "checking for $ac_word... " >&6; } 2897if ${ac_cv_prog_ac_ct_CC+:} false; then : 2898 $as_echo_n "(cached) " >&6 2899else 2900 if test -n "$ac_ct_CC"; then 2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2902else 2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2904for as_dir in $PATH 2905do 2906 IFS=$as_save_IFS 2907 test -z "$as_dir" && as_dir=. 2908 for ac_exec_ext in '' $ac_executable_extensions; do 2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2910 ac_cv_prog_ac_ct_CC="gcc" 2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2912 break 2 2913 fi 2914done 2915 done 2916IFS=$as_save_IFS 2917 2918fi 2919fi 2920ac_ct_CC=$ac_cv_prog_ac_ct_CC 2921if test -n "$ac_ct_CC"; then 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2923$as_echo "$ac_ct_CC" >&6; } 2924else 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2926$as_echo "no" >&6; } 2927fi 2928 2929 if test "x$ac_ct_CC" = x; then 2930 CC="" 2931 else 2932 case $cross_compiling:$ac_tool_warned in 2933yes:) 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2936ac_tool_warned=yes ;; 2937esac 2938 CC=$ac_ct_CC 2939 fi 2940else 2941 CC="$ac_cv_prog_CC" 2942fi 2943 2944if test -z "$CC"; then 2945 if test -n "$ac_tool_prefix"; then 2946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2947set dummy ${ac_tool_prefix}cc; ac_word=$2 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2949$as_echo_n "checking for $ac_word... " >&6; } 2950if ${ac_cv_prog_CC+:} false; then : 2951 $as_echo_n "(cached) " >&6 2952else 2953 if test -n "$CC"; then 2954 ac_cv_prog_CC="$CC" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2963 ac_cv_prog_CC="${ac_tool_prefix}cc" 2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2965 break 2 2966 fi 2967done 2968 done 2969IFS=$as_save_IFS 2970 2971fi 2972fi 2973CC=$ac_cv_prog_CC 2974if test -n "$CC"; then 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2976$as_echo "$CC" >&6; } 2977else 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2979$as_echo "no" >&6; } 2980fi 2981 2982 2983 fi 2984fi 2985if test -z "$CC"; then 2986 # Extract the first word of "cc", so it can be a program name with args. 2987set dummy cc; ac_word=$2 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2989$as_echo_n "checking for $ac_word... " >&6; } 2990if ${ac_cv_prog_CC+:} false; then : 2991 $as_echo_n "(cached) " >&6 2992else 2993 if test -n "$CC"; then 2994 ac_cv_prog_CC="$CC" # Let the user override the test. 2995else 2996 ac_prog_rejected=no 2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998for as_dir in $PATH 2999do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3005 ac_prog_rejected=yes 3006 continue 3007 fi 3008 ac_cv_prog_CC="cc" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012done 3013 done 3014IFS=$as_save_IFS 3015 3016if test $ac_prog_rejected = yes; then 3017 # We found a bogon in the path, so make sure we never use it. 3018 set dummy $ac_cv_prog_CC 3019 shift 3020 if test $# != 0; then 3021 # We chose a different compiler from the bogus one. 3022 # However, it has the same basename, so the bogon will be chosen 3023 # first if we set CC to just the basename; use the full file name. 3024 shift 3025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3026 fi 3027fi 3028fi 3029fi 3030CC=$ac_cv_prog_CC 3031if test -n "$CC"; then 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3033$as_echo "$CC" >&6; } 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036$as_echo "no" >&6; } 3037fi 3038 3039 3040fi 3041if test -z "$CC"; then 3042 if test -n "$ac_tool_prefix"; then 3043 for ac_prog in cl.exe 3044 do 3045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3046set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048$as_echo_n "checking for $ac_word... " >&6; } 3049if ${ac_cv_prog_CC+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 if test -n "$CC"; then 3053 ac_cv_prog_CC="$CC" # Let the user override the test. 3054else 3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3056for as_dir in $PATH 3057do 3058 IFS=$as_save_IFS 3059 test -z "$as_dir" && as_dir=. 3060 for ac_exec_ext in '' $ac_executable_extensions; do 3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067 done 3068IFS=$as_save_IFS 3069 3070fi 3071fi 3072CC=$ac_cv_prog_CC 3073if test -n "$CC"; then 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3075$as_echo "$CC" >&6; } 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079fi 3080 3081 3082 test -n "$CC" && break 3083 done 3084fi 3085if test -z "$CC"; then 3086 ac_ct_CC=$CC 3087 for ac_prog in cl.exe 3088do 3089 # Extract the first word of "$ac_prog", so it can be a program name with args. 3090set dummy $ac_prog; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if ${ac_cv_prog_ac_ct_CC+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$ac_ct_CC"; then 3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3106 ac_cv_prog_ac_ct_CC="$ac_prog" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116ac_ct_CC=$ac_cv_prog_ac_ct_CC 3117if test -n "$ac_ct_CC"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3119$as_echo "$ac_ct_CC" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 3126 test -n "$ac_ct_CC" && break 3127done 3128 3129 if test "x$ac_ct_CC" = x; then 3130 CC="" 3131 else 3132 case $cross_compiling:$ac_tool_warned in 3133yes:) 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3136ac_tool_warned=yes ;; 3137esac 3138 CC=$ac_ct_CC 3139 fi 3140fi 3141 3142fi 3143 3144 3145test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3147as_fn_error $? "no acceptable C compiler found in \$PATH 3148See \`config.log' for more details" "$LINENO" 5; } 3149 3150# Provide some information about the compiler. 3151$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3152set X $ac_compile 3153ac_compiler=$2 3154for ac_option in --version -v -V -qversion; do 3155 { { ac_try="$ac_compiler $ac_option >&5" 3156case "(($ac_try" in 3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3158 *) ac_try_echo=$ac_try;; 3159esac 3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3161$as_echo "$ac_try_echo"; } >&5 3162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3163 ac_status=$? 3164 if test -s conftest.err; then 3165 sed '10a\ 3166... rest of stderr output deleted ... 3167 10q' conftest.err >conftest.er1 3168 cat conftest.er1 >&5 3169 fi 3170 rm -f conftest.er1 conftest.err 3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3172 test $ac_status = 0; } 3173done 3174 3175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3176/* end confdefs.h. */ 3177 3178int 3179main () 3180{ 3181 3182 ; 3183 return 0; 3184} 3185_ACEOF 3186ac_clean_files_save=$ac_clean_files 3187ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3188# Try to create an executable without -o first, disregard a.out. 3189# It will help us diagnose broken compilers, and finding out an intuition 3190# of exeext. 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3192$as_echo_n "checking whether the C compiler works... " >&6; } 3193ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3194 3195# The possible output files: 3196ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3197 3198ac_rmfiles= 3199for ac_file in $ac_files 3200do 3201 case $ac_file in 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3203 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3204 esac 3205done 3206rm -f $ac_rmfiles 3207 3208if { { ac_try="$ac_link_default" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3214$as_echo "$ac_try_echo"; } >&5 3215 (eval "$ac_link_default") 2>&5 3216 ac_status=$? 3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3218 test $ac_status = 0; }; then : 3219 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3220# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3221# in a Makefile. We should not override ac_cv_exeext if it was cached, 3222# so that the user can short-circuit this test for compilers unknown to 3223# Autoconf. 3224for ac_file in $ac_files '' 3225do 3226 test -f "$ac_file" || continue 3227 case $ac_file in 3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3229 ;; 3230 [ab].out ) 3231 # We found the default executable, but exeext='' is most 3232 # certainly right. 3233 break;; 3234 *.* ) 3235 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3236 then :; else 3237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3238 fi 3239 # We set ac_cv_exeext here because the later test for it is not 3240 # safe: cross compilers may not add the suffix if given an `-o' 3241 # argument, so we may need to know it at that point already. 3242 # Even if this section looks crufty: it has the advantage of 3243 # actually working. 3244 break;; 3245 * ) 3246 break;; 3247 esac 3248done 3249test "$ac_cv_exeext" = no && ac_cv_exeext= 3250 3251else 3252 ac_file='' 3253fi 3254if test -z "$ac_file"; then : 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257$as_echo "$as_me: failed program was:" >&5 3258sed 's/^/| /' conftest.$ac_ext >&5 3259 3260{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3262as_fn_error 77 "C compiler cannot create executables 3263See \`config.log' for more details" "$LINENO" 5; } 3264else 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3266$as_echo "yes" >&6; } 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3269$as_echo_n "checking for C compiler default output file name... " >&6; } 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3271$as_echo "$ac_file" >&6; } 3272ac_exeext=$ac_cv_exeext 3273 3274rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3275ac_clean_files=$ac_clean_files_save 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3277$as_echo_n "checking for suffix of executables... " >&6; } 3278if { { ac_try="$ac_link" 3279case "(($ac_try" in 3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281 *) ac_try_echo=$ac_try;; 3282esac 3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3284$as_echo "$ac_try_echo"; } >&5 3285 (eval "$ac_link") 2>&5 3286 ac_status=$? 3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3288 test $ac_status = 0; }; then : 3289 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3290# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3291# work properly (i.e., refer to `conftest.exe'), while it won't with 3292# `rm'. 3293for ac_file in conftest.exe conftest conftest.*; do 3294 test -f "$ac_file" || continue 3295 case $ac_file in 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3298 break;; 3299 * ) break;; 3300 esac 3301done 3302else 3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3305as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3306See \`config.log' for more details" "$LINENO" 5; } 3307fi 3308rm -f conftest conftest$ac_cv_exeext 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3310$as_echo "$ac_cv_exeext" >&6; } 3311 3312rm -f conftest.$ac_ext 3313EXEEXT=$ac_cv_exeext 3314ac_exeext=$EXEEXT 3315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3316/* end confdefs.h. */ 3317#include <stdio.h> 3318int 3319main () 3320{ 3321FILE *f = fopen ("conftest.out", "w"); 3322 return ferror (f) || fclose (f) != 0; 3323 3324 ; 3325 return 0; 3326} 3327_ACEOF 3328ac_clean_files="$ac_clean_files conftest.out" 3329# Check that the compiler produces executables we can run. If not, either 3330# the compiler is broken, or we cross compile. 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3332$as_echo_n "checking whether we are cross compiling... " >&6; } 3333if test "$cross_compiling" != yes; then 3334 { { ac_try="$ac_link" 3335case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338esac 3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340$as_echo "$ac_try_echo"; } >&5 3341 (eval "$ac_link") 2>&5 3342 ac_status=$? 3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3344 test $ac_status = 0; } 3345 if { ac_try='./conftest$ac_cv_exeext' 3346 { { case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3351$as_echo "$ac_try_echo"; } >&5 3352 (eval "$ac_try") 2>&5 3353 ac_status=$? 3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3355 test $ac_status = 0; }; }; then 3356 cross_compiling=no 3357 else 3358 if test "$cross_compiling" = maybe; then 3359 cross_compiling=yes 3360 else 3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3363as_fn_error $? "cannot run C compiled programs. 3364If you meant to cross compile, use \`--host'. 3365See \`config.log' for more details" "$LINENO" 5; } 3366 fi 3367 fi 3368fi 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3370$as_echo "$cross_compiling" >&6; } 3371 3372rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3373ac_clean_files=$ac_clean_files_save 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3375$as_echo_n "checking for suffix of object files... " >&6; } 3376if ${ac_cv_objext+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3380/* end confdefs.h. */ 3381 3382int 3383main () 3384{ 3385 3386 ; 3387 return 0; 3388} 3389_ACEOF 3390rm -f conftest.o conftest.obj 3391if { { ac_try="$ac_compile" 3392case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_compile") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; then : 3402 for ac_file in conftest.o conftest.obj conftest.*; do 3403 test -f "$ac_file" || continue; 3404 case $ac_file in 3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3406 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3407 break;; 3408 esac 3409done 3410else 3411 $as_echo "$as_me: failed program was:" >&5 3412sed 's/^/| /' conftest.$ac_ext >&5 3413 3414{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3416as_fn_error $? "cannot compute suffix of object files: cannot compile 3417See \`config.log' for more details" "$LINENO" 5; } 3418fi 3419rm -f conftest.$ac_cv_objext conftest.$ac_ext 3420fi 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3422$as_echo "$ac_cv_objext" >&6; } 3423OBJEXT=$ac_cv_objext 3424ac_objext=$OBJEXT 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3426$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3427if ${ac_cv_c_compiler_gnu+:} false; then : 3428 $as_echo_n "(cached) " >&6 3429else 3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3431/* end confdefs.h. */ 3432 3433int 3434main () 3435{ 3436#ifndef __GNUC__ 3437 choke me 3438#endif 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_compile "$LINENO"; then : 3445 ac_compiler_gnu=yes 3446else 3447 ac_compiler_gnu=no 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450ac_cv_c_compiler_gnu=$ac_compiler_gnu 3451 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3454$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3455if test $ac_compiler_gnu = yes; then 3456 GCC=yes 3457else 3458 GCC= 3459fi 3460ac_test_CFLAGS=${CFLAGS+set} 3461ac_save_CFLAGS=$CFLAGS 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3463$as_echo_n "checking whether $CC accepts -g... " >&6; } 3464if ${ac_cv_prog_cc_g+:} false; then : 3465 $as_echo_n "(cached) " >&6 3466else 3467 ac_save_c_werror_flag=$ac_c_werror_flag 3468 ac_c_werror_flag=yes 3469 ac_cv_prog_cc_g=no 3470 CFLAGS="-g" 3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473 3474int 3475main () 3476{ 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482if ac_fn_c_try_compile "$LINENO"; then : 3483 ac_cv_prog_cc_g=yes 3484else 3485 CFLAGS="" 3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3487/* end confdefs.h. */ 3488 3489int 3490main () 3491{ 3492 3493 ; 3494 return 0; 3495} 3496_ACEOF 3497if ac_fn_c_try_compile "$LINENO"; then : 3498 3499else 3500 ac_c_werror_flag=$ac_save_c_werror_flag 3501 CFLAGS="-g" 3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504 3505int 3506main () 3507{ 3508 3509 ; 3510 return 0; 3511} 3512_ACEOF 3513if ac_fn_c_try_compile "$LINENO"; then : 3514 ac_cv_prog_cc_g=yes 3515fi 3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3517fi 3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3519fi 3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3521 ac_c_werror_flag=$ac_save_c_werror_flag 3522fi 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3524$as_echo "$ac_cv_prog_cc_g" >&6; } 3525if test "$ac_test_CFLAGS" = set; then 3526 CFLAGS=$ac_save_CFLAGS 3527elif test $ac_cv_prog_cc_g = yes; then 3528 if test "$GCC" = yes; then 3529 CFLAGS="-g -O2" 3530 else 3531 CFLAGS="-g" 3532 fi 3533else 3534 if test "$GCC" = yes; then 3535 CFLAGS="-O2" 3536 else 3537 CFLAGS= 3538 fi 3539fi 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3541$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3542if ${ac_cv_prog_cc_c89+:} false; then : 3543 $as_echo_n "(cached) " >&6 3544else 3545 ac_cv_prog_cc_c89=no 3546ac_save_CC=$CC 3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549#include <stdarg.h> 3550#include <stdio.h> 3551struct stat; 3552/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3553struct buf { int x; }; 3554FILE * (*rcsopen) (struct buf *, struct stat *, int); 3555static char *e (p, i) 3556 char **p; 3557 int i; 3558{ 3559 return p[i]; 3560} 3561static char *f (char * (*g) (char **, int), char **p, ...) 3562{ 3563 char *s; 3564 va_list v; 3565 va_start (v,p); 3566 s = g (p, va_arg (v,int)); 3567 va_end (v); 3568 return s; 3569} 3570 3571/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3572 function prototypes and stuff, but not '\xHH' hex character constants. 3573 These don't provoke an error unfortunately, instead are silently treated 3574 as 'x'. The following induces an error, until -std is added to get 3575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3576 array size at least. It's necessary to write '\x00'==0 to get something 3577 that's true only with -std. */ 3578int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3579 3580/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3581 inside strings and character constants. */ 3582#define FOO(x) 'x' 3583int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3584 3585int test (int i, double x); 3586struct s1 {int (*f) (int a);}; 3587struct s2 {int (*f) (double a);}; 3588int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3589int argc; 3590char **argv; 3591int 3592main () 3593{ 3594return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3601do 3602 CC="$ac_save_CC $ac_arg" 3603 if ac_fn_c_try_compile "$LINENO"; then : 3604 ac_cv_prog_cc_c89=$ac_arg 3605fi 3606rm -f core conftest.err conftest.$ac_objext 3607 test "x$ac_cv_prog_cc_c89" != "xno" && break 3608done 3609rm -f conftest.$ac_ext 3610CC=$ac_save_CC 3611 3612fi 3613# AC_CACHE_VAL 3614case "x$ac_cv_prog_cc_c89" in 3615 x) 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3617$as_echo "none needed" >&6; } ;; 3618 xno) 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3620$as_echo "unsupported" >&6; } ;; 3621 *) 3622 CC="$CC $ac_cv_prog_cc_c89" 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3624$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3625esac 3626if test "x$ac_cv_prog_cc_c89" != xno; then : 3627 3628fi 3629 3630ac_ext=c 3631ac_cpp='$CPP $CPPFLAGS' 3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ac_compiler_gnu=$ac_cv_c_compiler_gnu 3635 3636ac_ext=cpp 3637ac_cpp='$CXXCPP $CPPFLAGS' 3638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3641if test -z "$CXX"; then 3642 if test -n "$CCC"; then 3643 CXX=$CCC 3644 else 3645 if test -n "$ac_tool_prefix"; then 3646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3647 do 3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3649set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3651$as_echo_n "checking for $ac_word... " >&6; } 3652if ${ac_cv_prog_CXX+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 if test -n "$CXX"; then 3656 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3657else 3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659for as_dir in $PATH 3660do 3661 IFS=$as_save_IFS 3662 test -z "$as_dir" && as_dir=. 3663 for ac_exec_ext in '' $ac_executable_extensions; do 3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3667 break 2 3668 fi 3669done 3670 done 3671IFS=$as_save_IFS 3672 3673fi 3674fi 3675CXX=$ac_cv_prog_CXX 3676if test -n "$CXX"; then 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3678$as_echo "$CXX" >&6; } 3679else 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3681$as_echo "no" >&6; } 3682fi 3683 3684 3685 test -n "$CXX" && break 3686 done 3687fi 3688if test -z "$CXX"; then 3689 ac_ct_CXX=$CXX 3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3691do 3692 # Extract the first word of "$ac_prog", so it can be a program name with args. 3693set dummy $ac_prog; ac_word=$2 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3695$as_echo_n "checking for $ac_word... " >&6; } 3696if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 if test -n "$ac_ct_CXX"; then 3700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3701else 3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3703for as_dir in $PATH 3704do 3705 IFS=$as_save_IFS 3706 test -z "$as_dir" && as_dir=. 3707 for ac_exec_ext in '' $ac_executable_extensions; do 3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3709 ac_cv_prog_ac_ct_CXX="$ac_prog" 3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3711 break 2 3712 fi 3713done 3714 done 3715IFS=$as_save_IFS 3716 3717fi 3718fi 3719ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3720if test -n "$ac_ct_CXX"; then 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3722$as_echo "$ac_ct_CXX" >&6; } 3723else 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3725$as_echo "no" >&6; } 3726fi 3727 3728 3729 test -n "$ac_ct_CXX" && break 3730done 3731 3732 if test "x$ac_ct_CXX" = x; then 3733 CXX="g++" 3734 else 3735 case $cross_compiling:$ac_tool_warned in 3736yes:) 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3739ac_tool_warned=yes ;; 3740esac 3741 CXX=$ac_ct_CXX 3742 fi 3743fi 3744 3745 fi 3746fi 3747# Provide some information about the compiler. 3748$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3749set X $ac_compile 3750ac_compiler=$2 3751for ac_option in --version -v -V -qversion; do 3752 { { ac_try="$ac_compiler $ac_option >&5" 3753case "(($ac_try" in 3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755 *) ac_try_echo=$ac_try;; 3756esac 3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3758$as_echo "$ac_try_echo"; } >&5 3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3760 ac_status=$? 3761 if test -s conftest.err; then 3762 sed '10a\ 3763... rest of stderr output deleted ... 3764 10q' conftest.err >conftest.er1 3765 cat conftest.er1 >&5 3766 fi 3767 rm -f conftest.er1 conftest.err 3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3769 test $ac_status = 0; } 3770done 3771 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3773$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3774if ${ac_cv_cxx_compiler_gnu+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779 3780int 3781main () 3782{ 3783#ifndef __GNUC__ 3784 choke me 3785#endif 3786 3787 ; 3788 return 0; 3789} 3790_ACEOF 3791if ac_fn_cxx_try_compile "$LINENO"; then : 3792 ac_compiler_gnu=yes 3793else 3794 ac_compiler_gnu=no 3795fi 3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3797ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3798 3799fi 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3801$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3802if test $ac_compiler_gnu = yes; then 3803 GXX=yes 3804else 3805 GXX= 3806fi 3807ac_test_CXXFLAGS=${CXXFLAGS+set} 3808ac_save_CXXFLAGS=$CXXFLAGS 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3810$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3811if ${ac_cv_prog_cxx_g+:} false; then : 3812 $as_echo_n "(cached) " >&6 3813else 3814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3815 ac_cxx_werror_flag=yes 3816 ac_cv_prog_cxx_g=no 3817 CXXFLAGS="-g" 3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819/* end confdefs.h. */ 3820 3821int 3822main () 3823{ 3824 3825 ; 3826 return 0; 3827} 3828_ACEOF 3829if ac_fn_cxx_try_compile "$LINENO"; then : 3830 ac_cv_prog_cxx_g=yes 3831else 3832 CXXFLAGS="" 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835 3836int 3837main () 3838{ 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844if ac_fn_cxx_try_compile "$LINENO"; then : 3845 3846else 3847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3848 CXXFLAGS="-g" 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851 3852int 3853main () 3854{ 3855 3856 ; 3857 return 0; 3858} 3859_ACEOF 3860if ac_fn_cxx_try_compile "$LINENO"; then : 3861 ac_cv_prog_cxx_g=yes 3862fi 3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3864fi 3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3866fi 3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3869fi 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3871$as_echo "$ac_cv_prog_cxx_g" >&6; } 3872if test "$ac_test_CXXFLAGS" = set; then 3873 CXXFLAGS=$ac_save_CXXFLAGS 3874elif test $ac_cv_prog_cxx_g = yes; then 3875 if test "$GXX" = yes; then 3876 CXXFLAGS="-g -O2" 3877 else 3878 CXXFLAGS="-g" 3879 fi 3880else 3881 if test "$GXX" = yes; then 3882 CXXFLAGS="-O2" 3883 else 3884 CXXFLAGS= 3885 fi 3886fi 3887ac_ext=c 3888ac_cpp='$CPP $CPPFLAGS' 3889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3891ac_compiler_gnu=$ac_cv_c_compiler_gnu 3892 3893if test -n "$ac_tool_prefix"; then 3894 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 3895set dummy ${ac_tool_prefix}ld; ac_word=$2 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3897$as_echo_n "checking for $ac_word... " >&6; } 3898if ${ac_cv_prog_LD+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -n "$LD"; then 3902 ac_cv_prog_LD="$LD" # Let the user override the test. 3903else 3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3905for as_dir in $PATH 3906do 3907 IFS=$as_save_IFS 3908 test -z "$as_dir" && as_dir=. 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3911 ac_cv_prog_LD="${ac_tool_prefix}ld" 3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3913 break 2 3914 fi 3915done 3916 done 3917IFS=$as_save_IFS 3918 3919fi 3920fi 3921LD=$ac_cv_prog_LD 3922if test -n "$LD"; then 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3924$as_echo "$LD" >&6; } 3925else 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3927$as_echo "no" >&6; } 3928fi 3929 3930 3931fi 3932if test -z "$ac_cv_prog_LD"; then 3933 ac_ct_LD=$LD 3934 # Extract the first word of "ld", so it can be a program name with args. 3935set dummy ld; ac_word=$2 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3937$as_echo_n "checking for $ac_word... " >&6; } 3938if ${ac_cv_prog_ac_ct_LD+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 if test -n "$ac_ct_LD"; then 3942 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 3943else 3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945for as_dir in $PATH 3946do 3947 IFS=$as_save_IFS 3948 test -z "$as_dir" && as_dir=. 3949 for ac_exec_ext in '' $ac_executable_extensions; do 3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3951 ac_cv_prog_ac_ct_LD="ld" 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3953 break 2 3954 fi 3955done 3956 done 3957IFS=$as_save_IFS 3958 3959fi 3960fi 3961ac_ct_LD=$ac_cv_prog_ac_ct_LD 3962if test -n "$ac_ct_LD"; then 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 3964$as_echo "$ac_ct_LD" >&6; } 3965else 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3967$as_echo "no" >&6; } 3968fi 3969 3970 if test "x$ac_ct_LD" = x; then 3971 LD="" 3972 else 3973 case $cross_compiling:$ac_tool_warned in 3974yes:) 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3977ac_tool_warned=yes ;; 3978esac 3979 LD=$ac_ct_LD 3980 fi 3981else 3982 LD="$ac_cv_prog_LD" 3983fi 3984 3985 3986 3987 3988if test "X$windows_environment_" != "Xchecked"; then 3989windows_environment_=checked 3990MIXED_CYGWIN=no 3991MIXED_MSYS=no 3992MIXED_VSL=no 3993 3994MIXED_VC=no 3995MIXED_MINGW=no 3996 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed mingw-gcc and native VC++ environment" >&5 3998$as_echo_n "checking for mixed mingw-gcc and native VC++ environment... " >&6; } 3999if test "X$host" = "Xwin32" -a "x$GCC" != "xyes"; then 4000 if test -x /usr/bin/msys-?.0.dll; then 4001 CFLAGS="$CFLAGS -O2" 4002 MIXED_MSYS=yes 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MSYS and VC" >&5 4004$as_echo "MSYS and VC" >&6; } 4005 MIXED_VC=yes 4006 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC" 4007 elif test -x /usr/bin/cygpath; then 4008 CFLAGS="$CFLAGS -O2" 4009 MIXED_CYGWIN=yes 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin and VC" >&5 4011$as_echo "Cygwin and VC" >&6; } 4012 MIXED_VC=yes 4013 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC" 4014 elif test -x /bin/wslpath; then 4015 CFLAGS="$CFLAGS -O2" 4016 MIXED_WSL=yes 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: WSL and VC" >&5 4018$as_echo "WSL and VC" >&6; } 4019 MIXED_VC=yes 4020 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC" 4021 else 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 4023$as_echo "undeterminable" >&6; } 4024 as_fn_error cannot handle this! "Seems to be mixed windows but not within any known env" "$LINENO" 5 4025 fi 4026else 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4028$as_echo "no" >&6; } 4029fi 4030 4031 4032 4033if test "x$MIXED_MSYS" != "xyes"; then 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed cygwin and native MinGW environment" >&5 4035$as_echo_n "checking for mixed cygwin and native MinGW environment... " >&6; } 4036 if test "X$host" = "Xwin32" -a "x$GCC" = x"yes"; then 4037 if test -x /usr/bin/cygpath; then 4038 CFLAGS="$CFLAGS -O2" 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4040$as_echo "yes" >&6; } 4041 MIXED_MINGW=yes 4042 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_MINGW" 4043 else 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 4045$as_echo "undeterminable" >&6; } 4046 as_fn_error cannot handle this! "Seems to be mixed windows but not with cygwin" "$LINENO" 5 4047 fi 4048 else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050$as_echo "no" >&6; } 4051 fi 4052else 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed MSYS and native MinGW environment" >&5 4054$as_echo_n "checking for mixed MSYS and native MinGW environment... " >&6; } 4055 if test "x$GCC" = x"yes"; then 4056 if test -x /usr/bin/msys-=.0.dll; then 4057 CFLAGS="$CFLAGS -O2" 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4059$as_echo "yes" >&6; } 4060 MIXED_MINGW=yes 4061 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_MINGW" 4062 else 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 4064$as_echo "undeterminable" >&6; } 4065 as_fn_error cannot handle this! "Seems to be mixed windows but not with msys" "$LINENO" 5 4066 fi 4067 else 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069$as_echo "no" >&6; } 4070 fi 4071fi 4072 4073 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix cygwin with any native compiler" >&5 4075$as_echo_n "checking if we mix cygwin with any native compiler... " >&6; } 4076if test "X$MIXED_CYGWIN" = "Xyes"; then 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4078$as_echo "yes" >&6; } 4079else 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4081$as_echo "no" >&6; } 4082fi 4083 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix msys with another native compiler" >&5 4085$as_echo_n "checking if we mix msys with another native compiler... " >&6; } 4086if test "X$MIXED_MSYS" = "Xyes" ; then 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4088$as_echo "yes" >&6; } 4089else 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4091$as_echo "no" >&6; } 4092fi 4093 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix WSL with another native compiler" >&5 4095$as_echo_n "checking if we mix WSL with another native compiler... " >&6; } 4096if test "X$MIXED_WSL" = "Xyes" ; then 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4098$as_echo "yes" >&6; } 4099else 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4101$as_echo "no" >&6; } 4102fi 4103 4104fi 4105 4106 4107_search_path=/bin:/usr/bin:/usr/local/bin:$PATH 4108 4109# Extract the first word of "env", so it can be a program name with args. 4110set dummy env; ac_word=$2 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4112$as_echo_n "checking for $ac_word... " >&6; } 4113if ${ac_cv_path_ENV+:} false; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 case $ENV in 4117 [\\/]* | ?:[\\/]*) 4118 ac_cv_path_ENV="$ENV" # Let the user override the test with a path. 4119 ;; 4120 *) 4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122for as_dir in $_search_path 4123do 4124 IFS=$as_save_IFS 4125 test -z "$as_dir" && as_dir=. 4126 for ac_exec_ext in '' $ac_executable_extensions; do 4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4128 ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext" 4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4130 break 2 4131 fi 4132done 4133 done 4134IFS=$as_save_IFS 4135 4136 test -z "$ac_cv_path_ENV" && ac_cv_path_ENV="false" 4137 ;; 4138esac 4139fi 4140ENV=$ac_cv_path_ENV 4141if test -n "$ENV"; then 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5 4143$as_echo "$ENV" >&6; } 4144else 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146$as_echo "no" >&6; } 4147fi 4148 4149 4150if test "$ac_cv_path_ENV" = false; then 4151 as_fn_error $? "No 'env' command found" "$LINENO" 5 4152fi 4153 4154# 4155# We need GNU make, complain if we can't find it 4156# 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 4158$as_echo_n "checking for GNU make... " >&6; } 4159# If there is a Makefile created we don't want make to start making, run 4160# in a subdirectory and -f /dev/null 4161MAKE_PROG=x 4162if test X"$CLEARCASE_MAKE_COMPAT" = X"gnu" -a X"$CLEARCASE_ROOT" != X"" ; then 4163 eval clearmake -version 2>&1 | grep clearmake > /dev/null 2>&1 4164 case $? in 4165 0) MAKE_PROG="clearmake -V";; 4166 *);; 4167 esac 4168fi 4169if test X"$MAKE_PROG" = X"x"; then 4170 mkdir conftestmake 4171 if test -d conftestmake; then 4172 cd conftestmake 4173 for m in make gmake ggmake; do 4174 eval $m --version -f /dev/null 2>&1 | grep GNU > /dev/null 2>&1 4175 case $? in 4176 0) MAKE_PROG=$m ; break ;; 4177 *) ;; 4178 esac 4179 done 4180 cd .. 4181 else 4182 as_fn_error $? "could not create subdirectory" "$LINENO" 5 4183 fi 4184fi 4185rm -rf conftestmake 4186case $MAKE_PROG in 4187 x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4188$as_echo "no" >&6; } 4189 as_fn_error $? "GNU make is required!" "$LINENO" 5 4190 ;; 4191 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($MAKE_PROG)" >&5 4192$as_echo "yes ($MAKE_PROG)" >&6; } 4193 4194 ;; 4195esac 4196 4197# Find a good install program. We prefer a C program (faster), 4198# so one script is as good as another. But avoid the broken or 4199# incompatible versions: 4200# SysV /etc/install, /usr/sbin/install 4201# SunOS /usr/etc/install 4202# IRIX /sbin/install 4203# AIX /bin/install 4204# AmigaOS /C/install, which installs bootblocks on floppy discs 4205# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4206# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4207# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4208# OS/2's system install, which has a completely different semantic 4209# ./install, which can be erroneously created by make from ./install.sh. 4210# Reject install programs that cannot install multiple files. 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4212$as_echo_n "checking for a BSD-compatible install... " >&6; } 4213if test -z "$INSTALL"; then 4214if ${ac_cv_path_install+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4218for as_dir in $PATH 4219do 4220 IFS=$as_save_IFS 4221 test -z "$as_dir" && as_dir=. 4222 # Account for people who put trailing slashes in PATH elements. 4223case $as_dir/ in #(( 4224 ./ | .// | /[cC]/* | \ 4225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4226 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4227 /usr/ucb/* ) ;; 4228 *) 4229 # OSF1 and SCO ODT 3.0 have their own names for install. 4230 # Don't use installbsd from OSF since it installs stuff as root 4231 # by default. 4232 for ac_prog in ginstall scoinst install; do 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4235 if test $ac_prog = install && 4236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4237 # AIX install. It has an incompatible calling convention. 4238 : 4239 elif test $ac_prog = install && 4240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4241 # program-specific install script used by HP pwplus--don't use. 4242 : 4243 else 4244 rm -rf conftest.one conftest.two conftest.dir 4245 echo one > conftest.one 4246 echo two > conftest.two 4247 mkdir conftest.dir 4248 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4249 test -s conftest.one && test -s conftest.two && 4250 test -s conftest.dir/conftest.one && 4251 test -s conftest.dir/conftest.two 4252 then 4253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4254 break 3 4255 fi 4256 fi 4257 fi 4258 done 4259 done 4260 ;; 4261esac 4262 4263 done 4264IFS=$as_save_IFS 4265 4266rm -rf conftest.one conftest.two conftest.dir 4267 4268fi 4269 if test "${ac_cv_path_install+set}" = set; then 4270 INSTALL=$ac_cv_path_install 4271 else 4272 # As a last resort, use the slow shell script. Don't cache a 4273 # value for INSTALL within a source directory, because that will 4274 # break other packages using the cache if that directory is 4275 # removed, or if the value is a relative name. 4276 INSTALL=$ac_install_sh 4277 fi 4278fi 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4280$as_echo "$INSTALL" >&6; } 4281 4282# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4283# It thinks the first close brace ends the variable substitution. 4284test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4285 4286test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4287 4288test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4289 4290if test X"${INSTALL}" = "X${ac_aux_dir}/install-sh -c" && test -f /usr/ucb/install ; then 4291 case $host_os in 4292 osf*) ;; 4293 *) INSTALL="/usr/ucb/install -c" ;; 4294 esac 4295fi 4296 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4298$as_echo_n "checking whether ln -s works... " >&6; } 4299LN_S=$as_ln_s 4300if test "$LN_S" = "ln -s"; then 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4302$as_echo "yes" >&6; } 4303else 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4305$as_echo "no, using $LN_S" >&6; } 4306fi 4307 4308if test -n "$ac_tool_prefix"; then 4309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4310set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4312$as_echo_n "checking for $ac_word... " >&6; } 4313if ${ac_cv_prog_RANLIB+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 if test -n "$RANLIB"; then 4317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4318else 4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320for as_dir in $PATH 4321do 4322 IFS=$as_save_IFS 4323 test -z "$as_dir" && as_dir=. 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4328 break 2 4329 fi 4330done 4331 done 4332IFS=$as_save_IFS 4333 4334fi 4335fi 4336RANLIB=$ac_cv_prog_RANLIB 4337if test -n "$RANLIB"; then 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4339$as_echo "$RANLIB" >&6; } 4340else 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4342$as_echo "no" >&6; } 4343fi 4344 4345 4346fi 4347if test -z "$ac_cv_prog_RANLIB"; then 4348 ac_ct_RANLIB=$RANLIB 4349 # Extract the first word of "ranlib", so it can be a program name with args. 4350set dummy ranlib; ac_word=$2 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4352$as_echo_n "checking for $ac_word... " >&6; } 4353if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 if test -n "$ac_ct_RANLIB"; then 4357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4358else 4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360for as_dir in $PATH 4361do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4366 ac_cv_prog_ac_ct_RANLIB="ranlib" 4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4368 break 2 4369 fi 4370done 4371 done 4372IFS=$as_save_IFS 4373 4374fi 4375fi 4376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4377if test -n "$ac_ct_RANLIB"; then 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4379$as_echo "$ac_ct_RANLIB" >&6; } 4380else 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4382$as_echo "no" >&6; } 4383fi 4384 4385 if test "x$ac_ct_RANLIB" = x; then 4386 RANLIB=":" 4387 else 4388 case $cross_compiling:$ac_tool_warned in 4389yes:) 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4392ac_tool_warned=yes ;; 4393esac 4394 RANLIB=$ac_ct_RANLIB 4395 fi 4396else 4397 RANLIB="$ac_cv_prog_RANLIB" 4398fi 4399 4400for ac_prog in perl5 perl 4401do 4402 # Extract the first word of "$ac_prog", so it can be a program name with args. 4403set dummy $ac_prog; ac_word=$2 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4405$as_echo_n "checking for $ac_word... " >&6; } 4406if ${ac_cv_path_PERL+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 case $PERL in 4410 [\\/]* | ?:[\\/]*) 4411 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4412 ;; 4413 *) 4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4415as_dummy="/usr/local/bin:/opt/local/bin:/usr/local/gnu/bin:${PATH}" 4416for as_dir in $as_dummy 4417do 4418 IFS=$as_save_IFS 4419 test -z "$as_dir" && as_dir=. 4420 for ac_exec_ext in '' $ac_executable_extensions; do 4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4422 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4424 break 2 4425 fi 4426done 4427 done 4428IFS=$as_save_IFS 4429 4430 ;; 4431esac 4432fi 4433PERL=$ac_cv_path_PERL 4434if test -n "$PERL"; then 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4436$as_echo "$PERL" >&6; } 4437else 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4439$as_echo "no" >&6; } 4440fi 4441 4442 4443 test -n "$PERL" && break 4444done 4445test -n "$PERL" || PERL="false" 4446 4447if test "$PERL" = "false"; then 4448 ac_cv_path_PERL=false 4449 PERL=false 4450fi 4451 4452if test "$ac_cv_path_PERL" = false; then 4453 as_fn_error $? "Perl version 5 is required!" "$LINENO" 5 4454fi 4455 4456# 4457# Get erts version from erts/vsn.mk 4458# 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ERTS version" >&5 4460$as_echo_n "checking ERTS version... " >&6; } 4461ERTS_VSN=`sed -n "s/^VSN[ ]*=[ ]*\(.*\)/\1/p" < $ERL_TOP/erts/vsn.mk` 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ERTS_VSN" >&5 4463$as_echo "$ERTS_VSN" >&6; } 4464 4465 4466# 4467# Get OTP release and OTP version from $ERL_TOP/OTP_VERSION 4468# 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP release" >&5 4470$as_echo_n "checking OTP release... " >&6; } 4471OTP_REL=`cat $ERL_TOP/OTP_VERSION | sed "s|\([0-9]*\).*|\1|"` 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTP_REL" >&5 4473$as_echo "$OTP_REL" >&6; } 4474 4475 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP version" >&5 4477$as_echo_n "checking OTP version... " >&6; } 4478OTP_VSN=`cat $ERL_TOP/OTP_VERSION` 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTP_VSN" >&5 4480$as_echo "$OTP_VSN" >&6; } 4481 4482 4483# Check whether --enable-parallel-configure was given. 4484if test "${enable_parallel_configure+set}" = set; then : 4485 enableval=$enable_parallel_configure; 4486fi 4487 4488 4489# Check whether --enable-dirty-schedulers was given. 4490if test "${enable_dirty_schedulers+set}" = set; then : 4491 enableval=$enable_dirty_schedulers; 4492fi 4493 4494 4495# Check whether --enable-plain-emulator was given. 4496if test "${enable_plain_emulator+set}" = set; then : 4497 enableval=$enable_plain_emulator; 4498fi 4499 4500 4501 4502# Check whether --with-termcap was given. 4503if test "${with_termcap+set}" = set; then : 4504 withval=$with_termcap; 4505fi 4506 4507 4508# Check whether --enable-kernel-poll was given. 4509if test "${enable_kernel_poll+set}" = set; then : 4510 enableval=$enable_kernel_poll; 4511fi 4512 4513 4514# Check whether --enable-sctp was given. 4515if test "${enable_sctp+set}" = set; then : 4516 enableval=$enable_sctp; 4517fi 4518 4519 4520 4521# Check whether --with-dynamic-trace was given. 4522if test "${with_dynamic_trace+set}" = set; then : 4523 withval=$with_dynamic_trace; 4524fi 4525 4526# Check whether --enable-vm-probes was given. 4527if test "${enable_vm_probes+set}" = set; then : 4528 enableval=$enable_vm_probes; 4529fi 4530 4531 4532# Check whether --with-javac was given. 4533if test "${with_javac+set}" = set; then : 4534 withval=$with_javac; 4535fi 4536 4537 4538# Check whether --enable-megaco_flex_scanner_lineno was given. 4539if test "${enable_megaco_flex_scanner_lineno+set}" = set; then : 4540 enableval=$enable_megaco_flex_scanner_lineno; 4541fi 4542 4543 4544# Check whether --enable-megaco_reentrant_flex_scanner was given. 4545if test "${enable_megaco_reentrant_flex_scanner+set}" = set; then : 4546 enableval=$enable_megaco_reentrant_flex_scanner; 4547fi 4548 4549 4550 4551# Check whether --with-ssl was given. 4552if test "${with_ssl+set}" = set; then : 4553 withval=$with_ssl; 4554fi 4555 4556 4557 4558# Check whether --with-ssl-incl was given. 4559if test "${with_ssl_incl+set}" = set; then : 4560 withval=$with_ssl_incl; 4561fi 4562 4563 4564 4565# Check whether --with-ssl-zlib was given. 4566if test "${with_ssl_zlib+set}" = set; then : 4567 withval=$with_ssl_zlib; 4568fi 4569 4570 4571 4572# Check whether --with-ssl-lib-subdir was given. 4573if test "${with_ssl_lib_subdir+set}" = set; then : 4574 withval=$with_ssl_lib_subdir; 4575fi 4576 4577 4578 4579# Check whether --with-ssl-rpath was given. 4580if test "${with_ssl_rpath+set}" = set; then : 4581 withval=$with_ssl_rpath; 4582fi 4583 4584 4585# Check whether --enable-dynamic-ssl-lib was given. 4586if test "${enable_dynamic_ssl_lib+set}" = set; then : 4587 enableval=$enable_dynamic_ssl_lib; 4588fi 4589 4590 4591# Check whether --enable-fips was given. 4592if test "${enable_fips+set}" = set; then : 4593 enableval=$enable_fips; 4594fi 4595 4596 4597# Check whether --enable-builtin-zlib was given. 4598if test "${enable_builtin_zlib+set}" = set; then : 4599 enableval=$enable_builtin_zlib; 4600fi 4601 4602 4603# Check whether --enable-esock was given. 4604if test "${enable_esock+set}" = set; then : 4605 enableval=$enable_esock; 4606fi 4607 4608 4609# Check whether --enable-sharing-preserving was given. 4610if test "${enable_sharing_preserving+set}" = set; then : 4611 enableval=$enable_sharing_preserving; 4612fi 4613 4614 4615 4616# Check whether --enable-m64-build was given. 4617if test "${enable_m64_build+set}" = set; then : 4618 enableval=$enable_m64_build; case "$enableval" in 4619 no) enable_m64_build=no ;; 4620 *) enable_m64_build=yes ;; 4621 esac 4622 4623else 4624 enable_m64_build=no 4625fi 4626 4627 4628# Check whether --enable-m32-build was given. 4629if test "${enable_m32_build+set}" = set; then : 4630 enableval=$enable_m32_build; case "$enableval" in 4631 no) enable_m32_build=no ;; 4632 *) enable_m32_build=yes ;; 4633 esac 4634 4635else 4636 enable_m32_build=no 4637fi 4638 4639 4640# Check whether --enable-pie was given. 4641if test "${enable_pie+set}" = set; then : 4642 enableval=$enable_pie; 4643fi 4644 4645 4646 4647# Check whether --with-libatomic_ops was given. 4648if test "${with_libatomic_ops+set}" = set; then : 4649 withval=$with_libatomic_ops; 4650fi 4651 4652 4653 4654# Check whether --enable-sanitizers was given. 4655if test "${enable_sanitizers+set}" = set; then : 4656 enableval=$enable_sanitizers; 4657fi 4658 4659 4660# Check whether --enable-silent-rules was given. 4661if test "${enable_silent_rules+set}" = set; then : 4662 enableval=$enable_silent_rules; 4663fi 4664 4665 4666DEFAULT_VERBOSITY=0 4667if test X${enable_silent_rules} = Xno; then 4668 DEFAULT_VERBOSITY=1 4669fi 4670 4671 4672if test X${enable_m64_build} = Xyes; then 4673 CFLAGS="-m64 $CFLAGS" 4674 export CFLAGS 4675 LDFLAGS="-m64 $LDFLAGS" 4676 export LDFLAGS 4677fi 4678if test X${enable_m32_build} = Xyes; then 4679 CFLAGS="-m32 $CFLAGS" 4680 export CFLAGS 4681 LDFLAGS="-m32 $LDFLAGS" 4682 export LDFLAGS 4683fi 4684 4685 4686ac_ext=c 4687ac_cpp='$CPP $CPPFLAGS' 4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4690ac_compiler_gnu=$ac_cv_c_compiler_gnu 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4692$as_echo_n "checking how to run the C preprocessor... " >&6; } 4693# On Suns, sometimes $CPP names a directory. 4694if test -n "$CPP" && test -d "$CPP"; then 4695 CPP= 4696fi 4697if test -z "$CPP"; then 4698 if ${ac_cv_prog_CPP+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700else 4701 # Double quotes because CPP needs to be expanded 4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4703 do 4704 ac_preproc_ok=false 4705for ac_c_preproc_warn_flag in '' yes 4706do 4707 # Use a header file that comes with gcc, so configuring glibc 4708 # with a fresh cross-compiler works. 4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4710 # <limits.h> exists even on freestanding compilers. 4711 # On the NeXT, cc -E runs the code through the compiler's parser, 4712 # not just through cpp. "Syntax error" is here to catch this case. 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714/* end confdefs.h. */ 4715#ifdef __STDC__ 4716# include <limits.h> 4717#else 4718# include <assert.h> 4719#endif 4720 Syntax error 4721_ACEOF 4722if ac_fn_c_try_cpp "$LINENO"; then : 4723 4724else 4725 # Broken: fails on valid input. 4726continue 4727fi 4728rm -f conftest.err conftest.i conftest.$ac_ext 4729 4730 # OK, works on sane cases. Now check whether nonexistent headers 4731 # can be detected and how. 4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4733/* end confdefs.h. */ 4734#include <ac_nonexistent.h> 4735_ACEOF 4736if ac_fn_c_try_cpp "$LINENO"; then : 4737 # Broken: success on invalid input. 4738continue 4739else 4740 # Passes both tests. 4741ac_preproc_ok=: 4742break 4743fi 4744rm -f conftest.err conftest.i conftest.$ac_ext 4745 4746done 4747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4748rm -f conftest.i conftest.err conftest.$ac_ext 4749if $ac_preproc_ok; then : 4750 break 4751fi 4752 4753 done 4754 ac_cv_prog_CPP=$CPP 4755 4756fi 4757 CPP=$ac_cv_prog_CPP 4758else 4759 ac_cv_prog_CPP=$CPP 4760fi 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4762$as_echo "$CPP" >&6; } 4763ac_preproc_ok=false 4764for ac_c_preproc_warn_flag in '' yes 4765do 4766 # Use a header file that comes with gcc, so configuring glibc 4767 # with a fresh cross-compiler works. 4768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4769 # <limits.h> exists even on freestanding compilers. 4770 # On the NeXT, cc -E runs the code through the compiler's parser, 4771 # not just through cpp. "Syntax error" is here to catch this case. 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774#ifdef __STDC__ 4775# include <limits.h> 4776#else 4777# include <assert.h> 4778#endif 4779 Syntax error 4780_ACEOF 4781if ac_fn_c_try_cpp "$LINENO"; then : 4782 4783else 4784 # Broken: fails on valid input. 4785continue 4786fi 4787rm -f conftest.err conftest.i conftest.$ac_ext 4788 4789 # OK, works on sane cases. Now check whether nonexistent headers 4790 # can be detected and how. 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <ac_nonexistent.h> 4794_ACEOF 4795if ac_fn_c_try_cpp "$LINENO"; then : 4796 # Broken: success on invalid input. 4797continue 4798else 4799 # Passes both tests. 4800ac_preproc_ok=: 4801break 4802fi 4803rm -f conftest.err conftest.i conftest.$ac_ext 4804 4805done 4806# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4807rm -f conftest.i conftest.err conftest.$ac_ext 4808if $ac_preproc_ok; then : 4809 4810else 4811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4813as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4814See \`config.log' for more details" "$LINENO" 5; } 4815fi 4816 4817ac_ext=c 4818ac_cpp='$CPP $CPPFLAGS' 4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4821ac_compiler_gnu=$ac_cv_c_compiler_gnu 4822 4823 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4825$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4826if ${ac_cv_path_GREP+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 if test -z "$GREP"; then 4830 ac_path_GREP_found=false 4831 # Loop through the user's path and test for each of PROGNAME-LIST 4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4834do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_prog in grep ggrep; do 4838 for ac_exec_ext in '' $ac_executable_extensions; do 4839 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4840 as_fn_executable_p "$ac_path_GREP" || continue 4841# Check for GNU ac_path_GREP and select it if it is found. 4842 # Check for GNU $ac_path_GREP 4843case `"$ac_path_GREP" --version 2>&1` in 4844*GNU*) 4845 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4846*) 4847 ac_count=0 4848 $as_echo_n 0123456789 >"conftest.in" 4849 while : 4850 do 4851 cat "conftest.in" "conftest.in" >"conftest.tmp" 4852 mv "conftest.tmp" "conftest.in" 4853 cp "conftest.in" "conftest.nl" 4854 $as_echo 'GREP' >> "conftest.nl" 4855 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4857 as_fn_arith $ac_count + 1 && ac_count=$as_val 4858 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4859 # Best one so far, save it but keep looking for a better one 4860 ac_cv_path_GREP="$ac_path_GREP" 4861 ac_path_GREP_max=$ac_count 4862 fi 4863 # 10*(2^10) chars as input seems more than enough 4864 test $ac_count -gt 10 && break 4865 done 4866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4867esac 4868 4869 $ac_path_GREP_found && break 3 4870 done 4871 done 4872 done 4873IFS=$as_save_IFS 4874 if test -z "$ac_cv_path_GREP"; then 4875 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4876 fi 4877else 4878 ac_cv_path_GREP=$GREP 4879fi 4880 4881fi 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4883$as_echo "$ac_cv_path_GREP" >&6; } 4884 GREP="$ac_cv_path_GREP" 4885 4886 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4888$as_echo_n "checking for egrep... " >&6; } 4889if ${ac_cv_path_EGREP+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4893 then ac_cv_path_EGREP="$GREP -E" 4894 else 4895 if test -z "$EGREP"; then 4896 ac_path_EGREP_found=false 4897 # Loop through the user's path and test for each of PROGNAME-LIST 4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4899for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4900do 4901 IFS=$as_save_IFS 4902 test -z "$as_dir" && as_dir=. 4903 for ac_prog in egrep; do 4904 for ac_exec_ext in '' $ac_executable_extensions; do 4905 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4906 as_fn_executable_p "$ac_path_EGREP" || continue 4907# Check for GNU ac_path_EGREP and select it if it is found. 4908 # Check for GNU $ac_path_EGREP 4909case `"$ac_path_EGREP" --version 2>&1` in 4910*GNU*) 4911 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4912*) 4913 ac_count=0 4914 $as_echo_n 0123456789 >"conftest.in" 4915 while : 4916 do 4917 cat "conftest.in" "conftest.in" >"conftest.tmp" 4918 mv "conftest.tmp" "conftest.in" 4919 cp "conftest.in" "conftest.nl" 4920 $as_echo 'EGREP' >> "conftest.nl" 4921 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4923 as_fn_arith $ac_count + 1 && ac_count=$as_val 4924 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4925 # Best one so far, save it but keep looking for a better one 4926 ac_cv_path_EGREP="$ac_path_EGREP" 4927 ac_path_EGREP_max=$ac_count 4928 fi 4929 # 10*(2^10) chars as input seems more than enough 4930 test $ac_count -gt 10 && break 4931 done 4932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4933esac 4934 4935 $ac_path_EGREP_found && break 3 4936 done 4937 done 4938 done 4939IFS=$as_save_IFS 4940 if test -z "$ac_cv_path_EGREP"; then 4941 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4942 fi 4943else 4944 ac_cv_path_EGREP=$EGREP 4945fi 4946 4947 fi 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4950$as_echo "$ac_cv_path_EGREP" >&6; } 4951 EGREP="$ac_cv_path_EGREP" 4952 4953 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4955$as_echo_n "checking for ANSI C header files... " >&6; } 4956if ${ac_cv_header_stdc+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961#include <stdlib.h> 4962#include <stdarg.h> 4963#include <string.h> 4964#include <float.h> 4965 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_compile "$LINENO"; then : 4975 ac_cv_header_stdc=yes 4976else 4977 ac_cv_header_stdc=no 4978fi 4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4980 4981if test $ac_cv_header_stdc = yes; then 4982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985#include <string.h> 4986 4987_ACEOF 4988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4989 $EGREP "memchr" >/dev/null 2>&1; then : 4990 4991else 4992 ac_cv_header_stdc=no 4993fi 4994rm -f conftest* 4995 4996fi 4997 4998if test $ac_cv_header_stdc = yes; then 4999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002#include <stdlib.h> 5003 5004_ACEOF 5005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5006 $EGREP "free" >/dev/null 2>&1; then : 5007 5008else 5009 ac_cv_header_stdc=no 5010fi 5011rm -f conftest* 5012 5013fi 5014 5015if test $ac_cv_header_stdc = yes; then 5016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5017 if test "$cross_compiling" = yes; then : 5018 : 5019else 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022#include <ctype.h> 5023#include <stdlib.h> 5024#if ((' ' & 0x0FF) == 0x020) 5025# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5026# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5027#else 5028# define ISLOWER(c) \ 5029 (('a' <= (c) && (c) <= 'i') \ 5030 || ('j' <= (c) && (c) <= 'r') \ 5031 || ('s' <= (c) && (c) <= 'z')) 5032# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5033#endif 5034 5035#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5036int 5037main () 5038{ 5039 int i; 5040 for (i = 0; i < 256; i++) 5041 if (XOR (islower (i), ISLOWER (i)) 5042 || toupper (i) != TOUPPER (i)) 5043 return 2; 5044 return 0; 5045} 5046_ACEOF 5047if ac_fn_c_try_run "$LINENO"; then : 5048 5049else 5050 ac_cv_header_stdc=no 5051fi 5052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5053 conftest.$ac_objext conftest.beam conftest.$ac_ext 5054fi 5055 5056fi 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5059$as_echo "$ac_cv_header_stdc" >&6; } 5060if test $ac_cv_header_stdc = yes; then 5061 5062$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5063 5064fi 5065 5066# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5067for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5068 inttypes.h stdint.h unistd.h 5069do : 5070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5071ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5072" 5073if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5074 cat >>confdefs.h <<_ACEOF 5075#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5076_ACEOF 5077 5078fi 5079 5080done 5081 5082 5083 5084 5085USER_LD=$LD 5086USER_LDFLAGS="$LDFLAGS" 5087 5088 5089 5090NEED_NPTL_PTHREAD_H=no 5091 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native win32 threads" >&5 5093$as_echo_n "checking for native win32 threads... " >&6; } 5094if test "X$host_os" = "Xwin32"; then 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5096$as_echo "yes" >&6; } 5097 THR_DEFS="-DWIN32_THREADS" 5098 THR_LIBS= 5099 THR_LIB_NAME=win32_threads 5100 THR_LIB_TYPE=win32_threads 5101else 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5103$as_echo "no" >&6; } 5104 THR_DEFS= 5105 THR_LIBS= 5106 THR_LIB_NAME= 5107 THR_LIB_TYPE=posix_unknown 5108 5109 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 5111$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 5112if ${ac_cv_lib_pthread_pthread_create+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114else 5115 ac_check_lib_save_LIBS=$LIBS 5116LIBS="-lpthread $LIBS" 5117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118/* end confdefs.h. */ 5119 5120/* Override any GCC internal prototype to avoid an error. 5121 Use char because int might match the return type of a GCC 5122 builtin and then its argument prototype would still apply. */ 5123#ifdef __cplusplus 5124extern "C" 5125#endif 5126char pthread_create (); 5127int 5128main () 5129{ 5130return pthread_create (); 5131 ; 5132 return 0; 5133} 5134_ACEOF 5135if ac_fn_c_try_link "$LINENO"; then : 5136 ac_cv_lib_pthread_pthread_create=yes 5137else 5138 ac_cv_lib_pthread_pthread_create=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext \ 5141 conftest$ac_exeext conftest.$ac_ext 5142LIBS=$ac_check_lib_save_LIBS 5143fi 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 5145$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 5146if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 5147 THR_LIBS="-lpthread" 5148fi 5149 5150 5151 if test "x$THR_LIBS" = "x"; then 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 5153$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 5154if ${ac_cv_lib_c_r_pthread_create+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 ac_check_lib_save_LIBS=$LIBS 5158LIBS="-lc_r $LIBS" 5159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160/* end confdefs.h. */ 5161 5162/* Override any GCC internal prototype to avoid an error. 5163 Use char because int might match the return type of a GCC 5164 builtin and then its argument prototype would still apply. */ 5165#ifdef __cplusplus 5166extern "C" 5167#endif 5168char pthread_create (); 5169int 5170main () 5171{ 5172return pthread_create (); 5173 ; 5174 return 0; 5175} 5176_ACEOF 5177if ac_fn_c_try_link "$LINENO"; then : 5178 ac_cv_lib_c_r_pthread_create=yes 5179else 5180 ac_cv_lib_c_r_pthread_create=no 5181fi 5182rm -f core conftest.err conftest.$ac_objext \ 5183 conftest$ac_exeext conftest.$ac_ext 5184LIBS=$ac_check_lib_save_LIBS 5185fi 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 5187$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 5188if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 5189 THR_LIBS="-lc_r" 5190fi 5191 5192 fi 5193 5194 if test "x$THR_LIBS" = "x"; then 5195 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 5196if test "x$ac_cv_func_pthread_create" = xyes; then : 5197 THR_LIBS="none_needed" 5198fi 5199 5200 fi 5201 5202 if test "x$THR_LIBS" = "x"; then 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the '-pthread' switch can be used" >&5 5204$as_echo_n "checking if the '-pthread' switch can be used... " >&6; } 5205 saved_cflags=$CFLAGS 5206 CFLAGS="$CFLAGS -pthread" 5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208/* end confdefs.h. */ 5209#include <pthread.h> 5210int 5211main () 5212{ 5213pthread_create((void*)0,(void*)0,(void*)0,(void*)0); 5214 ; 5215 return 0; 5216} 5217_ACEOF 5218if ac_fn_c_try_link "$LINENO"; then : 5219 THR_DEFS="-pthread" 5220 THR_LIBS="-pthread" 5221fi 5222rm -f core conftest.err conftest.$ac_objext \ 5223 conftest$ac_exeext conftest.$ac_ext 5224 CFLAGS=$saved_cflags 5225 if test "x$THR_LIBS" != "x"; then 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5227$as_echo "yes" >&6; } 5228 else 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5230$as_echo "no" >&6; } 5231 fi 5232 fi 5233 5234 if test "x$THR_LIBS" != "x"; then 5235 THR_DEFS="$THR_DEFS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS" 5236 THR_LIB_NAME=pthread 5237 if test "x$THR_LIBS" = "xnone_needed"; then 5238 THR_LIBS= 5239 fi 5240 case $host_os in 5241 solaris*) 5242 THR_DEFS="$THR_DEFS -D_POSIX_PTHREAD_SEMANTICS" ;; 5243 linux*) 5244 THR_DEFS="$THR_DEFS -D_POSIX_THREAD_SAFE_FUNCTIONS" 5245 5246 5247if test "$cross_compiling" != "yes"; then 5248 # Extract the first word of "getconf", so it can be a program name with args. 5249set dummy getconf; ac_word=$2 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5251$as_echo_n "checking for $ac_word... " >&6; } 5252if ${ac_cv_prog_GETCONF+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if test -n "$GETCONF"; then 5256 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. 5257else 5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH 5260do 5261 IFS=$as_save_IFS 5262 test -z "$as_dir" && as_dir=. 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5265 ac_cv_prog_GETCONF="getconf" 5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5267 break 2 5268 fi 5269done 5270 done 5271IFS=$as_save_IFS 5272 5273 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="false" 5274fi 5275fi 5276GETCONF=$ac_cv_prog_GETCONF 5277if test -n "$GETCONF"; then 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 5279$as_echo "$GETCONF" >&6; } 5280else 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5282$as_echo "no" >&6; } 5283fi 5284 5285 5286else 5287 host_getconf="$host_alias-getconf" 5288 # Extract the first word of "$host_getconf", so it can be a program name with args. 5289set dummy $host_getconf; ac_word=$2 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5291$as_echo_n "checking for $ac_word... " >&6; } 5292if ${ac_cv_prog_GETCONF+:} false; then : 5293 $as_echo_n "(cached) " >&6 5294else 5295 if test -n "$GETCONF"; then 5296 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. 5297else 5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5299for as_dir in $PATH 5300do 5301 IFS=$as_save_IFS 5302 test -z "$as_dir" && as_dir=. 5303 for ac_exec_ext in '' $ac_executable_extensions; do 5304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5305 ac_cv_prog_GETCONF="$host_getconf" 5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5307 break 2 5308 fi 5309done 5310 done 5311IFS=$as_save_IFS 5312 5313 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="false" 5314fi 5315fi 5316GETCONF=$ac_cv_prog_GETCONF 5317if test -n "$GETCONF"; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 5319$as_echo "$GETCONF" >&6; } 5320else 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5322$as_echo "no" >&6; } 5323fi 5324 5325 5326 if test "$GETCONF" = "false" && test "$erl_xcomp_sysroot" != ""; then 5327 GETCONF= 5328 prfx="$erl_xcomp_sysroot" 5329 if test -n "$ac_tool_prefix"; then 5330 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args. 5331set dummy ${ac_tool_prefix}getconf; ac_word=$2 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5333$as_echo_n "checking for $ac_word... " >&6; } 5334if ${ac_cv_path_GETCONF+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 case $GETCONF in 5338 [\\/]* | ?:[\\/]*) 5339 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path. 5340 ;; 5341 *) 5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5343as_dummy=""$prfx/usr/bin:$prfx/bin:$prfx/usr/local/bin"" 5344for as_dir in $as_dummy 5345do 5346 IFS=$as_save_IFS 5347 test -z "$as_dir" && as_dir=. 5348 for ac_exec_ext in '' $ac_executable_extensions; do 5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5350 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext" 5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5352 break 2 5353 fi 5354done 5355 done 5356IFS=$as_save_IFS 5357 5358 ;; 5359esac 5360fi 5361GETCONF=$ac_cv_path_GETCONF 5362if test -n "$GETCONF"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 5364$as_echo "$GETCONF" >&6; } 5365else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367$as_echo "no" >&6; } 5368fi 5369 5370 5371fi 5372if test -z "$ac_cv_path_GETCONF"; then 5373 ac_pt_GETCONF=$GETCONF 5374 # Extract the first word of "getconf", so it can be a program name with args. 5375set dummy getconf; ac_word=$2 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377$as_echo_n "checking for $ac_word... " >&6; } 5378if ${ac_cv_path_ac_pt_GETCONF+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 case $ac_pt_GETCONF in 5382 [\\/]* | ?:[\\/]*) 5383 ac_cv_path_ac_pt_GETCONF="$ac_pt_GETCONF" # Let the user override the test with a path. 5384 ;; 5385 *) 5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387as_dummy=""$prfx/usr/bin:$prfx/bin:$prfx/usr/local/bin"" 5388for as_dir in $as_dummy 5389do 5390 IFS=$as_save_IFS 5391 test -z "$as_dir" && as_dir=. 5392 for ac_exec_ext in '' $ac_executable_extensions; do 5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5394 ac_cv_path_ac_pt_GETCONF="$as_dir/$ac_word$ac_exec_ext" 5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5396 break 2 5397 fi 5398done 5399 done 5400IFS=$as_save_IFS 5401 5402 ;; 5403esac 5404fi 5405ac_pt_GETCONF=$ac_cv_path_ac_pt_GETCONF 5406if test -n "$ac_pt_GETCONF"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GETCONF" >&5 5408$as_echo "$ac_pt_GETCONF" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 if test "x$ac_pt_GETCONF" = x; then 5415 GETCONF="false" 5416 else 5417 case $cross_compiling:$ac_tool_warned in 5418yes:) 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5421ac_tool_warned=yes ;; 5422esac 5423 GETCONF=$ac_pt_GETCONF 5424 fi 5425else 5426 GETCONF="$ac_cv_path_GETCONF" 5427fi 5428 5429 fi 5430fi 5431 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Native POSIX Thread Library" >&5 5433$as_echo_n "checking for Native POSIX Thread Library... " >&6; } 5434 libpthr_vsn=`$GETCONF GNU_LIBPTHREAD_VERSION 2>/dev/null` 5435 if test $? -eq 0; then 5436 case "$libpthr_vsn" in 5437 *nptl*|*NPTL*) nptl=yes;; 5438 *) nptl=no;; 5439 esac 5440 elif test "$cross_compiling" = "yes"; then 5441 case "$erl_xcomp_linux_nptl" in 5442 "") nptl=cross;; 5443 yes|no) nptl=$erl_xcomp_linux_nptl;; 5444 *) as_fn_error $? "Bad erl_xcomp_linux_nptl value: $erl_xcomp_linux_nptl" "$LINENO" 5;; 5445 esac 5446 else 5447 nptl=no 5448 fi 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nptl" >&5 5450$as_echo "$nptl" >&6; } 5451 if test $nptl = cross; then 5452 nptl=yes 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result yes guessed because of cross compilation" >&5 5454$as_echo "$as_me: WARNING: result yes guessed because of cross compilation" >&2;} 5455 fi 5456 if test $nptl = yes; then 5457 THR_LIB_TYPE=posix_nptl 5458 need_nptl_incldir=no 5459 ac_fn_c_check_header_mongrel "$LINENO" "nptl/pthread.h" "ac_cv_header_nptl_pthread_h" "$ac_includes_default" 5460if test "x$ac_cv_header_nptl_pthread_h" = xyes; then : 5461 need_nptl_incldir=yes 5462 NEED_NPTL_PTHREAD_H=yes 5463fi 5464 5465 5466 if test $need_nptl_incldir = yes; then 5467 # Ahh... 5468 nptl_path="$C_INCLUDE_PATH:$CPATH" 5469 if test X$cross_compiling != Xyes; then 5470 nptl_path="$nptl_path:/usr/local/include:/usr/include" 5471 else 5472 IROOT="$erl_xcomp_isysroot" 5473 test "$IROOT" != "" || IROOT="$erl_xcomp_sysroot" 5474 test "$IROOT" != "" || as_fn_error $? "Don't know where to search for includes! Please set erl_xcomp_isysroot" "$LINENO" 5 5475 nptl_path="$nptl_path:$IROOT/usr/local/include:$IROOT/usr/include" 5476 fi 5477 nptl_ws_path= 5478 save_ifs="$IFS"; IFS=":" 5479 for dir in $nptl_path; do 5480 if test "x$dir" != "x"; then 5481 nptl_ws_path="$nptl_ws_path $dir" 5482 fi 5483 done 5484 IFS=$save_ifs 5485 nptl_incldir= 5486 for dir in $nptl_ws_path; do 5487 as_ac_Header=`$as_echo "ac_cv_header_$dir/nptl/pthread.h" | $as_tr_sh` 5488ac_fn_c_check_header_mongrel "$LINENO" "$dir/nptl/pthread.h" "$as_ac_Header" "$ac_includes_default" 5489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5490 nptl_incldir=$dir/nptl 5491fi 5492 5493 5494 if test "x$nptl_incldir" != "x"; then 5495 THR_DEFS="$THR_DEFS -isystem $nptl_incldir" 5496 break 5497 fi 5498 done 5499 if test "x$nptl_incldir" = "x"; then 5500 as_fn_error $? "Failed to locate nptl system include directory" "$LINENO" 5 5501 fi 5502 fi 5503 fi 5504 ;; 5505 *) ;; 5506 esac 5507 5508 saved_cppflags=$CPPFLAGS 5509 CPPFLAGS="$CPPFLAGS $THR_DEFS" 5510 5511 5512 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 5513if test "x$ac_cv_header_pthread_h" = xyes; then : 5514 5515$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h 5516 5517fi 5518 5519 5520 5521 ac_fn_c_check_header_mongrel "$LINENO" "pthread/mit/pthread.h" "ac_cv_header_pthread_mit_pthread_h" "$ac_includes_default" 5522if test "x$ac_cv_header_pthread_mit_pthread_h" = xyes; then : 5523 \ 5524 5525$as_echo "#define HAVE_MIT_PTHREAD_H 1" >>confdefs.h 5526 5527fi 5528 5529 5530 5531 CPPFLAGS=$saved_cppflags 5532 5533 fi 5534fi 5535 5536 5537 5538DED_CC=$CC 5539DED_GCC=$GCC 5540 5541DED_CFLAGS= 5542DED_OSTYPE=unix 5543case $host_os in 5544 linux*) 5545 DED_CFLAGS="-D_GNU_SOURCE" ;; 5546 win32) 5547 DED_CFLAGS="-D_WIN32_WINNT=0x0600 -DWINVER=0x0600" 5548 DED_OSTYPE=win32 ;; 5549 *) 5550 ;; 5551esac 5552 5553 5554DED_WARN_FLAGS="-Wall -Wstrict-prototypes" 5555case "$host_cpu" in 5556 tile*) 5557 # tile-gcc is a bit stricter with -Wmissing-prototypes than other gccs, 5558 # and too strict for our taste. 5559 ;; 5560 *) 5561 DED_WARN_FLAGS="$DED_WARN_FLAGS -Wmissing-prototypes";; 5562esac 5563 5564 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Wdeclaration-after-statement to DED_WARN_FLAGS (via CFLAGS)" >&5 5566$as_echo_n "checking if we can add -Wdeclaration-after-statement to DED_WARN_FLAGS (via CFLAGS)... " >&6; } 5567 saved_CFLAGS=$CFLAGS; 5568 CFLAGS="-Wdeclaration-after-statement $DED_WARN_FLAGS"; 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571 5572int 5573main () 5574{ 5575return 0; 5576 ; 5577 return 0; 5578} 5579_ACEOF 5580if ac_fn_c_try_compile "$LINENO"; then : 5581 can_enable_flag=true 5582else 5583 can_enable_flag=false 5584fi 5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5586 CFLAGS=$saved_CFLAGS; 5587 if test "X$can_enable_flag" = "Xtrue"; then 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5589$as_echo "yes" >&6; } 5590 DED_WARN_FLAGS="-Wdeclaration-after-statement $DED_WARN_FLAGS" 5591 else 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5593$as_echo "no" >&6; } 5594 fi 5595 5596 5597 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=return-type to DED_WERRORFLAGS (via CFLAGS)" >&5 5599$as_echo_n "checking if we can add -Werror=return-type to DED_WERRORFLAGS (via CFLAGS)... " >&6; } 5600 saved_CFLAGS=$CFLAGS; 5601 CFLAGS="-Werror=return-type $DED_WERRORFLAGS"; 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604 5605int 5606main () 5607{ 5608return 0; 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_compile "$LINENO"; then : 5614 can_enable_flag=true 5615else 5616 can_enable_flag=false 5617fi 5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5619 CFLAGS=$saved_CFLAGS; 5620 if test "X$can_enable_flag" = "Xtrue"; then 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5622$as_echo "yes" >&6; } 5623 DED_WERRORFLAGS="-Werror=return-type $DED_WERRORFLAGS" 5624 else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5626$as_echo "no" >&6; } 5627 fi 5628 5629 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=implicit to DED_WERRORFLAGS (via CFLAGS)" >&5 5631$as_echo_n "checking if we can add -Werror=implicit to DED_WERRORFLAGS (via CFLAGS)... " >&6; } 5632 saved_CFLAGS=$CFLAGS; 5633 CFLAGS="-Werror=implicit $DED_WERRORFLAGS"; 5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636 5637int 5638main () 5639{ 5640return 0; 5641 ; 5642 return 0; 5643} 5644_ACEOF 5645if ac_fn_c_try_compile "$LINENO"; then : 5646 can_enable_flag=true 5647else 5648 can_enable_flag=false 5649fi 5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5651 CFLAGS=$saved_CFLAGS; 5652 if test "X$can_enable_flag" = "Xtrue"; then 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5654$as_echo "yes" >&6; } 5655 DED_WERRORFLAGS="-Werror=implicit $DED_WERRORFLAGS" 5656 else 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5658$as_echo "no" >&6; } 5659 fi 5660 5661 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=undef to DED_WERRORFLAGS (via CFLAGS)" >&5 5663$as_echo_n "checking if we can add -Werror=undef to DED_WERRORFLAGS (via CFLAGS)... " >&6; } 5664 saved_CFLAGS=$CFLAGS; 5665 CFLAGS="-Werror=undef $DED_WERRORFLAGS"; 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668 5669int 5670main () 5671{ 5672return 0; 5673 ; 5674 return 0; 5675} 5676_ACEOF 5677if ac_fn_c_try_compile "$LINENO"; then : 5678 can_enable_flag=true 5679else 5680 can_enable_flag=false 5681fi 5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5683 CFLAGS=$saved_CFLAGS; 5684 if test "X$can_enable_flag" = "Xtrue"; then 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5686$as_echo "yes" >&6; } 5687 DED_WERRORFLAGS="-Werror=undef $DED_WERRORFLAGS" 5688 else 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690$as_echo "no" >&6; } 5691 fi 5692 5693 5694DED_SYS_INCLUDE="-I${ERL_TOP}/erts/emulator/beam -I${ERL_TOP}/erts/include -I${ERL_TOP}/erts/include/$host -I${ERL_TOP}/erts/include/internal -I${ERL_TOP}/erts/include/internal/$host -I${ERL_TOP}/erts/emulator/sys/$DED_OSTYPE -I${ERL_TOP}/erts/emulator/sys/common" 5695DED_INCLUDE=$DED_SYS_INCLUDE 5696 5697if test "$THR_DEFS" = ""; then 5698 DED_THR_DEFS="-D_THREAD_SAFE -D_REENTRANT" 5699else 5700 DED_THR_DEFS="$THR_DEFS" 5701fi 5702# DED_EMU_THR_DEFS=$EMU_THR_DEFS 5703DED_CFLAGS="$CFLAGS $CPPFLAGS $DED_CFLAGS" 5704if test "x$GCC" = xyes; then 5705 # Use -fno-common for gcc, that is link error if multiple definitions of 5706 # global variables are encountered. This is ISO C compliant. 5707 # Until version 10, gcc has had -fcommon as default, which allows and merges 5708 # such dubious duplicates. 5709 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -fno-common to DED_CFLAGS (via CFLAGS)" >&5 5711$as_echo_n "checking if we can add -fno-common to DED_CFLAGS (via CFLAGS)... " >&6; } 5712 saved_CFLAGS=$CFLAGS; 5713 CFLAGS="-fno-common $DED_CFLAGS"; 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715/* end confdefs.h. */ 5716 5717int 5718main () 5719{ 5720return 0; 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725if ac_fn_c_try_compile "$LINENO"; then : 5726 can_enable_flag=true 5727else 5728 can_enable_flag=false 5729fi 5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731 CFLAGS=$saved_CFLAGS; 5732 if test "X$can_enable_flag" = "Xtrue"; then 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5734$as_echo "yes" >&6; } 5735 DED_CFLAGS="-fno-common $DED_CFLAGS" 5736 else 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5738$as_echo "no" >&6; } 5739 fi 5740 5741 5742 DED_STATIC_CFLAGS="$DED_CFLAGS" 5743 DED_CFLAGS="$DED_CFLAGS -fPIC" 5744 # Remove -fPIE and -fno-PIE 5745 DED_CFLAGS=`echo $DED_CFLAGS | sed 's/-f\(no-\)\?PIE//g'` 5746fi 5747 5748DED_EXT=so 5749case $host_os in 5750 win32) DED_EXT=dll;; 5751 darwin*) 5752 DED_CFLAGS="$DED_CFLAGS -fno-common" 5753 DED_STATIC_CFLAGS="$DED_STATIC_CFLAGS -fno-common";; 5754 *) 5755 ;; 5756esac 5757 5758DED_STATIC_CFLAGS="$DED_STATIC_CFLAGS -DSTATIC_ERLANG_NIF -DSTATIC_ERLANG_DRIVER" 5759 5760if test "$CFLAG_RUNTIME_LIBRARY_PATH" = ""; then 5761 5762 CFLAG_RUNTIME_LIBRARY_PATH="-Wl,-R" 5763 case $host_os in 5764 darwin*) 5765 CFLAG_RUNTIME_LIBRARY_PATH= 5766 ;; 5767 win32) 5768 CFLAG_RUNTIME_LIBRARY_PATH= 5769 ;; 5770 osf*) 5771 CFLAG_RUNTIME_LIBRARY_PATH="-Wl,-rpath," 5772 ;; 5773 *) 5774 ;; 5775 esac 5776 5777fi 5778 5779# If DED_LD is set in environment, we expect all DED_LD* variables 5780# to be specified (cross compiling) 5781if test "x$DED_LD" = "x"; then 5782 5783DED_LDFLAGS_CONFTEST= 5784 5785DED_LD_FLAG_RUNTIME_LIBRARY_PATH="-R" 5786case $host_os in 5787 win32) 5788 DED_LD="ld.sh" 5789 DED_LDFLAGS="-dll" 5790 DED_LD_FLAG_RUNTIME_LIBRARY_PATH= 5791 ;; 5792 solaris2*|sysv4*) 5793 DED_LDFLAGS="-G" 5794 if test X${enable_m64_build} = Xyes; then 5795 DED_LDFLAGS="-64 $DED_LDFLAGS" 5796 fi 5797 ;; 5798 aix*|os400*) 5799 DED_LDFLAGS="-G -bnoentry -bexpall" 5800 ;; 5801 freebsd2*) 5802 # Non-ELF GNU linker 5803 DED_LDFLAGS="-Bshareable" 5804 ;; 5805 darwin*) 5806 # Mach-O linker: a shared lib and a loadable 5807 # object file is not the same thing. 5808 DED_LDFLAGS="-bundle -bundle_loader ${ERL_TOP}/bin/$host/beam.smp" 5809 # DED_LDFLAGS_CONFTEST is for use in configure tests only. We 5810 # cannot use DED_LDFLAGS in configure tests since beam.smp has not 5811 # been built yet... 5812 DED_LDFLAGS_CONFTEST="-bundle" 5813 if test X${enable_m64_build} = Xyes; then 5814 DED_LDFLAGS="-m64 $DED_LDFLAGS" 5815 else 5816 if test X${enable_m32_build} = Xyes; then 5817 DED_LDFLAGS="-m32 $DED_LDFLAGS" 5818 else 5819 # The cast to long int works around a bug in the HP C Compiler 5820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5822# This bug is HP SR number 8606223364. 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 5824$as_echo_n "checking size of void *... " >&6; } 5825if ${ac_cv_sizeof_void_p+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 5829 5830else 5831 if test "$ac_cv_type_void_p" = yes; then 5832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5834as_fn_error 77 "cannot compute sizeof (void *) 5835See \`config.log' for more details" "$LINENO" 5; } 5836 else 5837 ac_cv_sizeof_void_p=0 5838 fi 5839fi 5840 5841fi 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 5843$as_echo "$ac_cv_sizeof_void_p" >&6; } 5844 5845 5846 5847cat >>confdefs.h <<_ACEOF 5848#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 5849_ACEOF 5850 5851 5852 case "$ac_cv_sizeof_void_p" in 5853 8) 5854 DED_LDFLAGS="-m64 $DED_LDFLAGS";; 5855 *) 5856 ;; 5857 esac 5858 fi 5859 fi 5860 DED_LD="$CC" 5861 DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH" 5862 ;; 5863 linux*) 5864 DED_LD="$CC" 5865 DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH" 5866 DED_LDFLAGS="-shared -Wl,-Bsymbolic" 5867 if test X${enable_m64_build} = Xyes; then 5868 DED_LDFLAGS="-m64 $DED_LDFLAGS" 5869 fi; 5870 if test X${enable_m32_build} = Xyes; then 5871 DED_LDFLAGS="-m32 $DED_LDFLAGS" 5872 fi 5873 ;; 5874 freebsd*|dragonfly*) 5875 DED_LD="$CC" 5876 DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH" 5877 DED_LDFLAGS="-shared" 5878 if test X${enable_m64_build} = Xyes; then 5879 DED_LDFLAGS="-m64 $DED_LDFLAGS" 5880 fi; 5881 if test X${enable_m32_build} = Xyes; then 5882 DED_LDFLAGS="-m32 $DED_LDFLAGS" 5883 fi 5884 ;; 5885 openbsd*) 5886 DED_LD="$CC" 5887 DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH" 5888 DED_LDFLAGS="-shared" 5889 ;; 5890 osf*) 5891 # NOTE! Whitespace after -rpath is important. 5892 DED_LD_FLAG_RUNTIME_LIBRARY_PATH="-rpath " 5893 DED_LDFLAGS="-shared -expect_unresolved '*'" 5894 ;; 5895 *) 5896 # assume GNU linker and ELF 5897 DED_LDFLAGS="-shared" 5898 # GNU linker has no option for 64bit build, should not propagate -m64 5899 ;; 5900esac 5901 5902if test "$DED_LD" = "" && test "$USER_LD" != ""; then 5903 DED_LD="$USER_LD" 5904 DED_LDFLAGS="$USER_LDFLAGS $DED_LDFLAGS" 5905fi 5906 5907DED_LIBS=$LIBS 5908 5909fi # "x$DED_LD" = "x" 5910 5911test "$DED_LDFLAGS_CONFTEST" != "" || DED_LDFLAGS_CONFTEST="$DED_LDFLAGS" 5912 5913if test -n "$ac_tool_prefix"; then 5914 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 5915set dummy ${ac_tool_prefix}ld; ac_word=$2 5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5917$as_echo_n "checking for $ac_word... " >&6; } 5918if ${ac_cv_prog_DED_LD+:} false; then : 5919 $as_echo_n "(cached) " >&6 5920else 5921 if test -n "$DED_LD"; then 5922 ac_cv_prog_DED_LD="$DED_LD" # Let the user override the test. 5923else 5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5925for as_dir in $PATH 5926do 5927 IFS=$as_save_IFS 5928 test -z "$as_dir" && as_dir=. 5929 for ac_exec_ext in '' $ac_executable_extensions; do 5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5931 ac_cv_prog_DED_LD="${ac_tool_prefix}ld" 5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5933 break 2 5934 fi 5935done 5936 done 5937IFS=$as_save_IFS 5938 5939fi 5940fi 5941DED_LD=$ac_cv_prog_DED_LD 5942if test -n "$DED_LD"; then 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LD" >&5 5944$as_echo "$DED_LD" >&6; } 5945else 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947$as_echo "no" >&6; } 5948fi 5949 5950 5951fi 5952if test -z "$ac_cv_prog_DED_LD"; then 5953 ac_ct_DED_LD=$DED_LD 5954 # Extract the first word of "ld", so it can be a program name with args. 5955set dummy ld; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if ${ac_cv_prog_ac_ct_DED_LD+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 if test -n "$ac_ct_DED_LD"; then 5962 ac_cv_prog_ac_ct_DED_LD="$ac_ct_DED_LD" # Let the user override the test. 5963else 5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5971 ac_cv_prog_ac_ct_DED_LD="ld" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi 5980fi 5981ac_ct_DED_LD=$ac_cv_prog_ac_ct_DED_LD 5982if test -n "$ac_ct_DED_LD"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DED_LD" >&5 5984$as_echo "$ac_ct_DED_LD" >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988fi 5989 5990 if test "x$ac_ct_DED_LD" = x; then 5991 DED_LD="false" 5992 else 5993 case $cross_compiling:$ac_tool_warned in 5994yes:) 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5997ac_tool_warned=yes ;; 5998esac 5999 DED_LD=$ac_ct_DED_LD 6000 fi 6001else 6002 DED_LD="$ac_cv_prog_DED_LD" 6003fi 6004 6005test "$DED_LD" != "false" || as_fn_error $? "No linker found" "$LINENO" 5 6006 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static compiler flags" >&5 6008$as_echo_n "checking for static compiler flags... " >&6; } 6009DED_STATIC_CFLAGS="$DED_WERRORFLAGS $DED_WFLAGS $DED_THR_DEFS $DED_STATIC_CFLAGS" 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_STATIC_CFLAGS" >&5 6011$as_echo "$DED_STATIC_CFLAGS" >&6; } 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic compiler flags for loadable drivers" >&5 6013$as_echo_n "checking for basic compiler flags for loadable drivers... " >&6; } 6014DED_BASIC_CFLAGS=$DED_CFLAGS 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_CFLAGS" >&5 6016$as_echo "$DED_CFLAGS" >&6; } 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler flags for loadable drivers" >&5 6018$as_echo_n "checking for compiler flags for loadable drivers... " >&6; } 6019DED_CFLAGS="$DED_WERRORFLAGS $DED_WARN_FLAGS $DED_THR_DEFS $DED_CFLAGS" 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_CFLAGS" >&5 6021$as_echo "$DED_CFLAGS" >&6; } 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker for loadable drivers" >&5 6023$as_echo_n "checking for linker for loadable drivers... " >&6; } 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LD" >&5 6025$as_echo "$DED_LD" >&6; } 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker flags for loadable drivers" >&5 6027$as_echo_n "checking for linker flags for loadable drivers... " >&6; } 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LDFLAGS" >&5 6029$as_echo "$DED_LDFLAGS" >&6; } 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'runtime library path' linker flag" >&5 6031$as_echo_n "checking for 'runtime library path' linker flag... " >&6; } 6032if test "x$DED_LD_FLAG_RUNTIME_LIBRARY_PATH" != "x"; then 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DED_LD_FLAG_RUNTIME_LIBRARY_PATH" >&5 6034$as_echo "$DED_LD_FLAG_RUNTIME_LIBRARY_PATH" >&6; } 6035else 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6037$as_echo "not found" >&6; } 6038fi 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059ac_config_files="$ac_config_files ../Makefile output.mk ../make/$host/otp_ded.mk:../make/otp_ded.mk.in" 6060 6061ac_config_files="$ac_config_files emd2exml" 6062 6063 6064cat >confcache <<\_ACEOF 6065# This file is a shell script that caches the results of configure 6066# tests run on this system so they can be shared between configure 6067# scripts and configure runs, see configure's option --config-cache. 6068# It is not useful on other systems. If it contains results you don't 6069# want to keep, you may remove or edit it. 6070# 6071# config.status only pays attention to the cache file if you give it 6072# the --recheck option to rerun configure. 6073# 6074# `ac_cv_env_foo' variables (set or unset) will be overridden when 6075# loading this file, other *unset* `ac_cv_foo' will be assigned the 6076# following values. 6077 6078_ACEOF 6079 6080# The following way of writing the cache mishandles newlines in values, 6081# but we know of no workaround that is simple, portable, and efficient. 6082# So, we kill variables containing newlines. 6083# Ultrix sh set writes to stderr and can't be redirected directly, 6084# and sets the high bit in the cache file unless we assign to the vars. 6085( 6086 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6087 eval ac_val=\$$ac_var 6088 case $ac_val in #( 6089 *${as_nl}*) 6090 case $ac_var in #( 6091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6093 esac 6094 case $ac_var in #( 6095 _ | IFS | as_nl) ;; #( 6096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6097 *) { eval $ac_var=; unset $ac_var;} ;; 6098 esac ;; 6099 esac 6100 done 6101 6102 (set) 2>&1 | 6103 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6104 *${as_nl}ac_space=\ *) 6105 # `set' does not quote correctly, so add quotes: double-quote 6106 # substitution turns \\\\ into \\, and sed turns \\ into \. 6107 sed -n \ 6108 "s/'/'\\\\''/g; 6109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6110 ;; #( 6111 *) 6112 # `set' quotes correctly as required by POSIX, so do not add quotes. 6113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6114 ;; 6115 esac | 6116 sort 6117) | 6118 sed ' 6119 /^ac_cv_env_/b end 6120 t clear 6121 :clear 6122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6123 t end 6124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6125 :end' >>confcache 6126if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6127 if test -w "$cache_file"; then 6128 if test "x$cache_file" != "x/dev/null"; then 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6130$as_echo "$as_me: updating cache $cache_file" >&6;} 6131 if test ! -f "$cache_file" || test -h "$cache_file"; then 6132 cat confcache >"$cache_file" 6133 else 6134 case $cache_file in #( 6135 */* | ?:*) 6136 mv -f confcache "$cache_file"$$ && 6137 mv -f "$cache_file"$$ "$cache_file" ;; #( 6138 *) 6139 mv -f confcache "$cache_file" ;; 6140 esac 6141 fi 6142 fi 6143 else 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6145$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6146 fi 6147fi 6148rm -f confcache 6149 6150test "x$prefix" = xNONE && prefix=$ac_default_prefix 6151# Let make expand exec_prefix. 6152test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6153 6154# Transform confdefs.h into DEFS. 6155# Protect against shell expansion while executing Makefile rules. 6156# Protect against Makefile macro expansion. 6157# 6158# If the first sed substitution is executed (which looks for macros that 6159# take arguments), then branch to the quote section. Otherwise, 6160# look for a macro that doesn't take arguments. 6161ac_script=' 6162:mline 6163/\\$/{ 6164 N 6165 s,\\\n,, 6166 b mline 6167} 6168t clear 6169:clear 6170s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 6171t quote 6172s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 6173t quote 6174b any 6175:quote 6176s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 6177s/\[/\\&/g 6178s/\]/\\&/g 6179s/\$/$$/g 6180H 6181:any 6182${ 6183 g 6184 s/^\n// 6185 s/\n/ /g 6186 p 6187} 6188' 6189DEFS=`sed -n "$ac_script" confdefs.h` 6190 6191 6192ac_libobjs= 6193ac_ltlibobjs= 6194U= 6195for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6196 # 1. Remove the extension, and $U if already installed. 6197 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6198 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6199 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6200 # will be set to the directory where LIBOBJS objects are built. 6201 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6202 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6203done 6204LIBOBJS=$ac_libobjs 6205 6206LTLIBOBJS=$ac_ltlibobjs 6207 6208 6209 6210: "${CONFIG_STATUS=./config.status}" 6211ac_write_fail=0 6212ac_clean_files_save=$ac_clean_files 6213ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6215$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6216as_write_fail=0 6217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6218#! $SHELL 6219# Generated by $as_me. 6220# Run this file to recreate the current configuration. 6221# Compiler output produced by configure, useful for debugging 6222# configure, is in config.log if it exists. 6223 6224debug=false 6225ac_cs_recheck=false 6226ac_cs_silent=false 6227 6228SHELL=\${CONFIG_SHELL-$SHELL} 6229export SHELL 6230_ASEOF 6231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6232## -------------------- ## 6233## M4sh Initialization. ## 6234## -------------------- ## 6235 6236# Be more Bourne compatible 6237DUALCASE=1; export DUALCASE # for MKS sh 6238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6239 emulate sh 6240 NULLCMD=: 6241 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6242 # is contrary to our usage. Disable this feature. 6243 alias -g '${1+"$@"}'='"$@"' 6244 setopt NO_GLOB_SUBST 6245else 6246 case `(set -o) 2>/dev/null` in #( 6247 *posix*) : 6248 set -o posix ;; #( 6249 *) : 6250 ;; 6251esac 6252fi 6253 6254 6255as_nl=' 6256' 6257export as_nl 6258# Printing a long string crashes Solaris 7 /usr/bin/printf. 6259as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6262# Prefer a ksh shell builtin over an external printf program on Solaris, 6263# but without wasting forks for bash or zsh. 6264if test -z "$BASH_VERSION$ZSH_VERSION" \ 6265 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6266 as_echo='print -r --' 6267 as_echo_n='print -rn --' 6268elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6269 as_echo='printf %s\n' 6270 as_echo_n='printf %s' 6271else 6272 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6273 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6274 as_echo_n='/usr/ucb/echo -n' 6275 else 6276 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6277 as_echo_n_body='eval 6278 arg=$1; 6279 case $arg in #( 6280 *"$as_nl"*) 6281 expr "X$arg" : "X\\(.*\\)$as_nl"; 6282 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6283 esac; 6284 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6285 ' 6286 export as_echo_n_body 6287 as_echo_n='sh -c $as_echo_n_body as_echo' 6288 fi 6289 export as_echo_body 6290 as_echo='sh -c $as_echo_body as_echo' 6291fi 6292 6293# The user is always right. 6294if test "${PATH_SEPARATOR+set}" != set; then 6295 PATH_SEPARATOR=: 6296 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6297 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6298 PATH_SEPARATOR=';' 6299 } 6300fi 6301 6302 6303# IFS 6304# We need space, tab and new line, in precisely that order. Quoting is 6305# there to prevent editors from complaining about space-tab. 6306# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6307# splitting by setting IFS to empty value.) 6308IFS=" "" $as_nl" 6309 6310# Find who we are. Look in the path if we contain no directory separator. 6311as_myself= 6312case $0 in #(( 6313 *[\\/]* ) as_myself=$0 ;; 6314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6315for as_dir in $PATH 6316do 6317 IFS=$as_save_IFS 6318 test -z "$as_dir" && as_dir=. 6319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6320 done 6321IFS=$as_save_IFS 6322 6323 ;; 6324esac 6325# We did not find ourselves, most probably we were run as `sh COMMAND' 6326# in which case we are not to be found in the path. 6327if test "x$as_myself" = x; then 6328 as_myself=$0 6329fi 6330if test ! -f "$as_myself"; then 6331 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6332 exit 1 6333fi 6334 6335# Unset variables that we do not need and which cause bugs (e.g. in 6336# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6337# suppresses any "Segmentation fault" message there. '((' could 6338# trigger a bug in pdksh 5.2.14. 6339for as_var in BASH_ENV ENV MAIL MAILPATH 6340do eval test x\${$as_var+set} = xset \ 6341 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6342done 6343PS1='$ ' 6344PS2='> ' 6345PS4='+ ' 6346 6347# NLS nuisances. 6348LC_ALL=C 6349export LC_ALL 6350LANGUAGE=C 6351export LANGUAGE 6352 6353# CDPATH. 6354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6355 6356 6357# as_fn_error STATUS ERROR [LINENO LOG_FD] 6358# ---------------------------------------- 6359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6361# script with STATUS, using 1 if that was 0. 6362as_fn_error () 6363{ 6364 as_status=$1; test $as_status -eq 0 && as_status=1 6365 if test "$4"; then 6366 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 6368 fi 6369 $as_echo "$as_me: error: $2" >&2 6370 as_fn_exit $as_status 6371} # as_fn_error 6372 6373 6374# as_fn_set_status STATUS 6375# ----------------------- 6376# Set $? to STATUS, without forking. 6377as_fn_set_status () 6378{ 6379 return $1 6380} # as_fn_set_status 6381 6382# as_fn_exit STATUS 6383# ----------------- 6384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6385as_fn_exit () 6386{ 6387 set +e 6388 as_fn_set_status $1 6389 exit $1 6390} # as_fn_exit 6391 6392# as_fn_unset VAR 6393# --------------- 6394# Portably unset VAR. 6395as_fn_unset () 6396{ 6397 { eval $1=; unset $1;} 6398} 6399as_unset=as_fn_unset 6400# as_fn_append VAR VALUE 6401# ---------------------- 6402# Append the text in VALUE to the end of the definition contained in VAR. Take 6403# advantage of any shell optimizations that allow amortized linear growth over 6404# repeated appends, instead of the typical quadratic growth present in naive 6405# implementations. 6406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6407 eval 'as_fn_append () 6408 { 6409 eval $1+=\$2 6410 }' 6411else 6412 as_fn_append () 6413 { 6414 eval $1=\$$1\$2 6415 } 6416fi # as_fn_append 6417 6418# as_fn_arith ARG... 6419# ------------------ 6420# Perform arithmetic evaluation on the ARGs, and store the result in the 6421# global $as_val. Take advantage of shells that can avoid forks. The arguments 6422# must be portable across $(()) and expr. 6423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6424 eval 'as_fn_arith () 6425 { 6426 as_val=$(( $* )) 6427 }' 6428else 6429 as_fn_arith () 6430 { 6431 as_val=`expr "$@" || test $? -eq 1` 6432 } 6433fi # as_fn_arith 6434 6435 6436if expr a : '\(a\)' >/dev/null 2>&1 && 6437 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6438 as_expr=expr 6439else 6440 as_expr=false 6441fi 6442 6443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6444 as_basename=basename 6445else 6446 as_basename=false 6447fi 6448 6449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6450 as_dirname=dirname 6451else 6452 as_dirname=false 6453fi 6454 6455as_me=`$as_basename -- "$0" || 6456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6457 X"$0" : 'X\(//\)$' \| \ 6458 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6459$as_echo X/"$0" | 6460 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6461 s//\1/ 6462 q 6463 } 6464 /^X\/\(\/\/\)$/{ 6465 s//\1/ 6466 q 6467 } 6468 /^X\/\(\/\).*/{ 6469 s//\1/ 6470 q 6471 } 6472 s/.*/./; q'` 6473 6474# Avoid depending upon Character Ranges. 6475as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6477as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6478as_cr_digits='0123456789' 6479as_cr_alnum=$as_cr_Letters$as_cr_digits 6480 6481ECHO_C= ECHO_N= ECHO_T= 6482case `echo -n x` in #((((( 6483-n*) 6484 case `echo 'xy\c'` in 6485 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6486 xy) ECHO_C='\c';; 6487 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6488 ECHO_T=' ';; 6489 esac;; 6490*) 6491 ECHO_N='-n';; 6492esac 6493 6494rm -f conf$$ conf$$.exe conf$$.file 6495if test -d conf$$.dir; then 6496 rm -f conf$$.dir/conf$$.file 6497else 6498 rm -f conf$$.dir 6499 mkdir conf$$.dir 2>/dev/null 6500fi 6501if (echo >conf$$.file) 2>/dev/null; then 6502 if ln -s conf$$.file conf$$ 2>/dev/null; then 6503 as_ln_s='ln -s' 6504 # ... but there are two gotchas: 6505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6507 # In both cases, we have to default to `cp -pR'. 6508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6509 as_ln_s='cp -pR' 6510 elif ln conf$$.file conf$$ 2>/dev/null; then 6511 as_ln_s=ln 6512 else 6513 as_ln_s='cp -pR' 6514 fi 6515else 6516 as_ln_s='cp -pR' 6517fi 6518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6519rmdir conf$$.dir 2>/dev/null 6520 6521 6522# as_fn_mkdir_p 6523# ------------- 6524# Create "$as_dir" as a directory, including parents if necessary. 6525as_fn_mkdir_p () 6526{ 6527 6528 case $as_dir in #( 6529 -*) as_dir=./$as_dir;; 6530 esac 6531 test -d "$as_dir" || eval $as_mkdir_p || { 6532 as_dirs= 6533 while :; do 6534 case $as_dir in #( 6535 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6536 *) as_qdir=$as_dir;; 6537 esac 6538 as_dirs="'$as_qdir' $as_dirs" 6539 as_dir=`$as_dirname -- "$as_dir" || 6540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6541 X"$as_dir" : 'X\(//\)[^/]' \| \ 6542 X"$as_dir" : 'X\(//\)$' \| \ 6543 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6544$as_echo X"$as_dir" | 6545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6546 s//\1/ 6547 q 6548 } 6549 /^X\(\/\/\)[^/].*/{ 6550 s//\1/ 6551 q 6552 } 6553 /^X\(\/\/\)$/{ 6554 s//\1/ 6555 q 6556 } 6557 /^X\(\/\).*/{ 6558 s//\1/ 6559 q 6560 } 6561 s/.*/./; q'` 6562 test -d "$as_dir" && break 6563 done 6564 test -z "$as_dirs" || eval "mkdir $as_dirs" 6565 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 6566 6567 6568} # as_fn_mkdir_p 6569if mkdir -p . 2>/dev/null; then 6570 as_mkdir_p='mkdir -p "$as_dir"' 6571else 6572 test -d ./-p && rmdir ./-p 6573 as_mkdir_p=false 6574fi 6575 6576 6577# as_fn_executable_p FILE 6578# ----------------------- 6579# Test if FILE is an executable regular file. 6580as_fn_executable_p () 6581{ 6582 test -f "$1" && test -x "$1" 6583} # as_fn_executable_p 6584as_test_x='test -x' 6585as_executable_p=as_fn_executable_p 6586 6587# Sed expression to map a string onto a valid CPP name. 6588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6589 6590# Sed expression to map a string onto a valid variable name. 6591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6592 6593 6594exec 6>&1 6595## ----------------------------------- ## 6596## Main body of $CONFIG_STATUS script. ## 6597## ----------------------------------- ## 6598_ASEOF 6599test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 6600 6601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6602# Save the log message, to keep $0 and so on meaningful, and to 6603# report actual input values of CONFIG_FILES etc. instead of their 6604# values after options handling. 6605ac_log=" 6606This file was extended by $as_me, which was 6607generated by GNU Autoconf 2.69. Invocation command line was 6608 6609 CONFIG_FILES = $CONFIG_FILES 6610 CONFIG_HEADERS = $CONFIG_HEADERS 6611 CONFIG_LINKS = $CONFIG_LINKS 6612 CONFIG_COMMANDS = $CONFIG_COMMANDS 6613 $ $0 $@ 6614 6615on `(hostname || uname -n) 2>/dev/null | sed 1q` 6616" 6617 6618_ACEOF 6619 6620case $ac_config_files in *" 6621"*) set x $ac_config_files; shift; ac_config_files=$*;; 6622esac 6623 6624 6625 6626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6627# Files that config.status was made for. 6628config_files="$ac_config_files" 6629 6630_ACEOF 6631 6632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6633ac_cs_usage="\ 6634\`$as_me' instantiates files and other configuration actions 6635from templates according to the current configuration. Unless the files 6636and actions are specified as TAGs, all are instantiated by default. 6637 6638Usage: $0 [OPTION]... [TAG]... 6639 6640 -h, --help print this help, then exit 6641 -V, --version print version number and configuration settings, then exit 6642 --config print configuration, then exit 6643 -q, --quiet, --silent 6644 do not print progress messages 6645 -d, --debug don't remove temporary files 6646 --recheck update $as_me by reconfiguring in the same conditions 6647 --file=FILE[:TEMPLATE] 6648 instantiate the configuration file FILE 6649 6650Configuration files: 6651$config_files 6652 6653Report bugs to the package provider." 6654 6655_ACEOF 6656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6657ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6658ac_cs_version="\\ 6659config.status 6660configured by $0, generated by GNU Autoconf 2.69, 6661 with options \\"\$ac_cs_config\\" 6662 6663Copyright (C) 2012 Free Software Foundation, Inc. 6664This config.status script is free software; the Free Software Foundation 6665gives unlimited permission to copy, distribute and modify it." 6666 6667ac_pwd='$ac_pwd' 6668srcdir='$srcdir' 6669INSTALL='$INSTALL' 6670test -n "\$AWK" || AWK=awk 6671_ACEOF 6672 6673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6674# The default lists apply if the user does not specify any file. 6675ac_need_defaults=: 6676while test $# != 0 6677do 6678 case $1 in 6679 --*=?*) 6680 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6682 ac_shift=: 6683 ;; 6684 --*=) 6685 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6686 ac_optarg= 6687 ac_shift=: 6688 ;; 6689 *) 6690 ac_option=$1 6691 ac_optarg=$2 6692 ac_shift=shift 6693 ;; 6694 esac 6695 6696 case $ac_option in 6697 # Handling of the options. 6698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6699 ac_cs_recheck=: ;; 6700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6701 $as_echo "$ac_cs_version"; exit ;; 6702 --config | --confi | --conf | --con | --co | --c ) 6703 $as_echo "$ac_cs_config"; exit ;; 6704 --debug | --debu | --deb | --de | --d | -d ) 6705 debug=: ;; 6706 --file | --fil | --fi | --f ) 6707 $ac_shift 6708 case $ac_optarg in 6709 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6710 '') as_fn_error $? "missing file argument" ;; 6711 esac 6712 as_fn_append CONFIG_FILES " '$ac_optarg'" 6713 ac_need_defaults=false;; 6714 --he | --h | --help | --hel | -h ) 6715 $as_echo "$ac_cs_usage"; exit ;; 6716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6717 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6718 ac_cs_silent=: ;; 6719 6720 # This is an error. 6721 -*) as_fn_error $? "unrecognized option: \`$1' 6722Try \`$0 --help' for more information." ;; 6723 6724 *) as_fn_append ac_config_targets " $1" 6725 ac_need_defaults=false ;; 6726 6727 esac 6728 shift 6729done 6730 6731ac_configure_extra_args= 6732 6733if $ac_cs_silent; then 6734 exec 6>/dev/null 6735 ac_configure_extra_args="$ac_configure_extra_args --silent" 6736fi 6737 6738_ACEOF 6739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6740if \$ac_cs_recheck; then 6741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6742 shift 6743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6744 CONFIG_SHELL='$SHELL' 6745 export CONFIG_SHELL 6746 exec "\$@" 6747fi 6748 6749_ACEOF 6750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6751exec 5>>config.log 6752{ 6753 echo 6754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6755## Running $as_me. ## 6756_ASBOX 6757 $as_echo "$ac_log" 6758} >&5 6759 6760_ACEOF 6761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6762_ACEOF 6763 6764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6765 6766# Handling of arguments. 6767for ac_config_target in $ac_config_targets 6768do 6769 case $ac_config_target in 6770 "../Makefile") CONFIG_FILES="$CONFIG_FILES ../Makefile" ;; 6771 "output.mk") CONFIG_FILES="$CONFIG_FILES output.mk" ;; 6772 "../make/$host/otp_ded.mk") CONFIG_FILES="$CONFIG_FILES ../make/$host/otp_ded.mk:../make/otp_ded.mk.in" ;; 6773 "emd2exml") CONFIG_FILES="$CONFIG_FILES emd2exml" ;; 6774 6775 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6776 esac 6777done 6778 6779 6780# If the user did not use the arguments to specify the items to instantiate, 6781# then the envvar interface is used. Set only those that are not. 6782# We use the long form for the default assignment because of an extremely 6783# bizarre bug on SunOS 4.1.3. 6784if $ac_need_defaults; then 6785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6786fi 6787 6788# Have a temporary directory for convenience. Make it in the build tree 6789# simply because there is no reason against having it here, and in addition, 6790# creating and moving files from /tmp can sometimes cause problems. 6791# Hook for its removal unless debugging. 6792# Note that there is a small window in which the directory will not be cleaned: 6793# after its creation but before its name has been assigned to `$tmp'. 6794$debug || 6795{ 6796 tmp= ac_tmp= 6797 trap 'exit_status=$? 6798 : "${ac_tmp:=$tmp}" 6799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6800' 0 6801 trap 'as_fn_exit 1' 1 2 13 15 6802} 6803# Create a (secure) tmp directory for tmp files. 6804 6805{ 6806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6807 test -d "$tmp" 6808} || 6809{ 6810 tmp=./conf$$-$RANDOM 6811 (umask 077 && mkdir "$tmp") 6812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6813ac_tmp=$tmp 6814 6815# Set up the scripts for CONFIG_FILES section. 6816# No need to generate them if there are no CONFIG_FILES. 6817# This happens for instance with `./config.status config.h'. 6818if test -n "$CONFIG_FILES"; then 6819 6820 6821ac_cr=`echo X | tr X '\015'` 6822# On cygwin, bash can eat \r inside `` if the user requested igncr. 6823# But we know of no other shell where ac_cr would be empty at this 6824# point, so we can use a bashism as a fallback. 6825if test "x$ac_cr" = x; then 6826 eval ac_cr=\$\'\\r\' 6827fi 6828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6830 ac_cs_awk_cr='\\r' 6831else 6832 ac_cs_awk_cr=$ac_cr 6833fi 6834 6835echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 6836_ACEOF 6837 6838 6839{ 6840 echo "cat >conf$$subs.awk <<_ACEOF" && 6841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6842 echo "_ACEOF" 6843} >conf$$subs.sh || 6844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6846ac_delim='%!_!# ' 6847for ac_last_try in false false false false false :; do 6848 . ./conf$$subs.sh || 6849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6850 6851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6852 if test $ac_delim_n = $ac_delim_num; then 6853 break 6854 elif $ac_last_try; then 6855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6856 else 6857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6858 fi 6859done 6860rm -f conf$$subs.sh 6861 6862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6864_ACEOF 6865sed -n ' 6866h 6867s/^/S["/; s/!.*/"]=/ 6868p 6869g 6870s/^[^!]*!// 6871:repl 6872t repl 6873s/'"$ac_delim"'$// 6874t delim 6875:nl 6876h 6877s/\(.\{148\}\)..*/\1/ 6878t more1 6879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6880p 6881n 6882b repl 6883:more1 6884s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6885p 6886g 6887s/.\{148\}// 6888t nl 6889:delim 6890h 6891s/\(.\{148\}\)..*/\1/ 6892t more2 6893s/["\\]/\\&/g; s/^/"/; s/$/"/ 6894p 6895b 6896:more2 6897s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6898p 6899g 6900s/.\{148\}// 6901t delim 6902' <conf$$subs.awk | sed ' 6903/^[^""]/{ 6904 N 6905 s/\n// 6906} 6907' >>$CONFIG_STATUS || ac_write_fail=1 6908rm -f conf$$subs.awk 6909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6910_ACAWK 6911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6912 for (key in S) S_is_set[key] = 1 6913 FS = "" 6914 6915} 6916{ 6917 line = $ 0 6918 nfields = split(line, field, "@") 6919 substed = 0 6920 len = length(field[1]) 6921 for (i = 2; i < nfields; i++) { 6922 key = field[i] 6923 keylen = length(key) 6924 if (S_is_set[key]) { 6925 value = S[key] 6926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6927 len += length(value) + length(field[++i]) 6928 substed = 1 6929 } else 6930 len += 1 + keylen 6931 } 6932 6933 print line 6934} 6935 6936_ACAWK 6937_ACEOF 6938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6941else 6942 cat 6943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6945_ACEOF 6946 6947# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6949# trailing colons and then remove the whole line if VPATH becomes empty 6950# (actually we leave an empty line to preserve line numbers). 6951if test "x$srcdir" = x.; then 6952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6953h 6954s/// 6955s/^/:/ 6956s/[ ]*$/:/ 6957s/:\$(srcdir):/:/g 6958s/:\${srcdir}:/:/g 6959s/:@srcdir@:/:/g 6960s/^:*// 6961s/:*$// 6962x 6963s/\(=[ ]*\).*/\1/ 6964G 6965s/\n// 6966s/^[^=]*=[ ]*$// 6967}' 6968fi 6969 6970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6971fi # test -n "$CONFIG_FILES" 6972 6973 6974eval set X " :F $CONFIG_FILES " 6975shift 6976for ac_tag 6977do 6978 case $ac_tag in 6979 :[FHLC]) ac_mode=$ac_tag; continue;; 6980 esac 6981 case $ac_mode$ac_tag in 6982 :[FHL]*:*);; 6983 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6984 :[FH]-) ac_tag=-:-;; 6985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6986 esac 6987 ac_save_IFS=$IFS 6988 IFS=: 6989 set x $ac_tag 6990 IFS=$ac_save_IFS 6991 shift 6992 ac_file=$1 6993 shift 6994 6995 case $ac_mode in 6996 :L) ac_source=$1;; 6997 :[FH]) 6998 ac_file_inputs= 6999 for ac_f 7000 do 7001 case $ac_f in 7002 -) ac_f="$ac_tmp/stdin";; 7003 *) # Look for the file first in the build tree, then in the source tree 7004 # (if the path is not absolute). The absolute path cannot be DOS-style, 7005 # because $ac_f cannot contain `:'. 7006 test -f "$ac_f" || 7007 case $ac_f in 7008 [\\/$]*) false;; 7009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7010 esac || 7011 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7012 esac 7013 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7014 as_fn_append ac_file_inputs " '$ac_f'" 7015 done 7016 7017 # Let's still pretend it is `configure' which instantiates (i.e., don't 7018 # use $as_me), people would be surprised to read: 7019 # /* config.h. Generated by config.status. */ 7020 configure_input='Generated from '` 7021 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7022 `' by configure.' 7023 if test x"$ac_file" != x-; then 7024 configure_input="$ac_file. $configure_input" 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7026$as_echo "$as_me: creating $ac_file" >&6;} 7027 fi 7028 # Neutralize special characters interpreted by sed in replacement strings. 7029 case $configure_input in #( 7030 *\&* | *\|* | *\\* ) 7031 ac_sed_conf_input=`$as_echo "$configure_input" | 7032 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7033 *) ac_sed_conf_input=$configure_input;; 7034 esac 7035 7036 case $ac_tag in 7037 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7039 esac 7040 ;; 7041 esac 7042 7043 ac_dir=`$as_dirname -- "$ac_file" || 7044$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7045 X"$ac_file" : 'X\(//\)[^/]' \| \ 7046 X"$ac_file" : 'X\(//\)$' \| \ 7047 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7048$as_echo X"$ac_file" | 7049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7050 s//\1/ 7051 q 7052 } 7053 /^X\(\/\/\)[^/].*/{ 7054 s//\1/ 7055 q 7056 } 7057 /^X\(\/\/\)$/{ 7058 s//\1/ 7059 q 7060 } 7061 /^X\(\/\).*/{ 7062 s//\1/ 7063 q 7064 } 7065 s/.*/./; q'` 7066 as_dir="$ac_dir"; as_fn_mkdir_p 7067 ac_builddir=. 7068 7069case "$ac_dir" in 7070.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7071*) 7072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7073 # A ".." for each directory in $ac_dir_suffix. 7074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7075 case $ac_top_builddir_sub in 7076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7078 esac ;; 7079esac 7080ac_abs_top_builddir=$ac_pwd 7081ac_abs_builddir=$ac_pwd$ac_dir_suffix 7082# for backward compatibility: 7083ac_top_builddir=$ac_top_build_prefix 7084 7085case $srcdir in 7086 .) # We are building in place. 7087 ac_srcdir=. 7088 ac_top_srcdir=$ac_top_builddir_sub 7089 ac_abs_top_srcdir=$ac_pwd ;; 7090 [\\/]* | ?:[\\/]* ) # Absolute name. 7091 ac_srcdir=$srcdir$ac_dir_suffix; 7092 ac_top_srcdir=$srcdir 7093 ac_abs_top_srcdir=$srcdir ;; 7094 *) # Relative name. 7095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7096 ac_top_srcdir=$ac_top_build_prefix$srcdir 7097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7098esac 7099ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7100 7101 7102 case $ac_mode in 7103 :F) 7104 # 7105 # CONFIG_FILE 7106 # 7107 7108 case $INSTALL in 7109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7111 esac 7112_ACEOF 7113 7114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7115# If the template does not know about datarootdir, expand it. 7116# FIXME: This hack should be removed a few years after 2.60. 7117ac_datarootdir_hack=; ac_datarootdir_seen= 7118ac_sed_dataroot=' 7119/datarootdir/ { 7120 p 7121 q 7122} 7123/@datadir@/p 7124/@docdir@/p 7125/@infodir@/p 7126/@localedir@/p 7127/@mandir@/p' 7128case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7129*datarootdir*) ac_datarootdir_seen=yes;; 7130*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7132$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7133_ACEOF 7134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7135 ac_datarootdir_hack=' 7136 s&@datadir@&$datadir&g 7137 s&@docdir@&$docdir&g 7138 s&@infodir@&$infodir&g 7139 s&@localedir@&$localedir&g 7140 s&@mandir@&$mandir&g 7141 s&\\\${datarootdir}&$datarootdir&g' ;; 7142esac 7143_ACEOF 7144 7145# Neutralize VPATH when `$srcdir' = `.'. 7146# Shell code in configure.ac might set extrasub. 7147# FIXME: do we really want to maintain this feature? 7148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7149ac_sed_extra="$ac_vpsub 7150$extrasub 7151_ACEOF 7152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7153:t 7154/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7155s|@configure_input@|$ac_sed_conf_input|;t t 7156s&@top_builddir@&$ac_top_builddir_sub&;t t 7157s&@top_build_prefix@&$ac_top_build_prefix&;t t 7158s&@srcdir@&$ac_srcdir&;t t 7159s&@abs_srcdir@&$ac_abs_srcdir&;t t 7160s&@top_srcdir@&$ac_top_srcdir&;t t 7161s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7162s&@builddir@&$ac_builddir&;t t 7163s&@abs_builddir@&$ac_abs_builddir&;t t 7164s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7165s&@INSTALL@&$ac_INSTALL&;t t 7166$ac_datarootdir_hack 7167" 7168eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7169 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7170 7171test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7172 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7174 "$ac_tmp/out"`; test -z "$ac_out"; } && 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7176which seems to be undefined. Please make sure it is defined" >&5 7177$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7178which seems to be undefined. Please make sure it is defined" >&2;} 7179 7180 rm -f "$ac_tmp/stdin" 7181 case $ac_file in 7182 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7183 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7184 esac \ 7185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7186 ;; 7187 7188 7189 7190 esac 7191 7192 7193 case $ac_file$ac_mode in 7194 "emd2exml":F) chmod +x emd2exml ;; 7195 7196 esac 7197done # for ac_tag 7198 7199 7200as_fn_exit 0 7201_ACEOF 7202ac_clean_files=$ac_clean_files_save 7203 7204test $ac_write_fail = 0 || 7205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 7206 7207 7208# configure is writing to config.log, and then calls config.status. 7209# config.status does its own redirection, appending to config.log. 7210# Unfortunately, on DOS this fails, as config.log is still kept open 7211# by configure, so config.status won't be able to write to it; its 7212# output is simply discarded. So we exec the FD to /dev/null, 7213# effectively closing config.log, so it can be properly (re)opened and 7214# appended to by config.status. When coming back to configure, we 7215# need to make the FD available again. 7216if test "$no_create" != yes; then 7217 ac_cs_success=: 7218 ac_config_status_args= 7219 test "$silent" = yes && 7220 ac_config_status_args="$ac_config_status_args --quiet" 7221 exec 5>/dev/null 7222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7223 exec 5>>config.log 7224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7225 # would make configure fail if this is the last instruction. 7226 $ac_cs_success || as_fn_exit 1 7227fi 7228if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7230$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7231fi 7232 7233