1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error STATUS ERROR [LINENO LOG_FD] 360# ---------------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with STATUS, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$1; test $as_status -eq 0 && as_status=1 367 if test "$4"; then 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370 fi 371 $as_echo "$as_me: error: $2" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME= 551PACKAGE_TARNAME= 552PACKAGE_VERSION= 553PACKAGE_STRING= 554PACKAGE_BUGREPORT= 555PACKAGE_URL= 556 557ac_unique_file="NGStream.m" 558ac_default_prefix=/usr/local 559# Factoring default headers for most tests. 560ac_includes_default="\ 561#include <stdio.h> 562#ifdef HAVE_SYS_TYPES_H 563# include <sys/types.h> 564#endif 565#ifdef HAVE_SYS_STAT_H 566# include <sys/stat.h> 567#endif 568#ifdef STDC_HEADERS 569# include <stdlib.h> 570# include <stddef.h> 571#else 572# ifdef HAVE_STDLIB_H 573# include <stdlib.h> 574# endif 575#endif 576#ifdef HAVE_STRING_H 577# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 578# include <memory.h> 579# endif 580# include <string.h> 581#endif 582#ifdef HAVE_STRINGS_H 583# include <strings.h> 584#endif 585#ifdef HAVE_INTTYPES_H 586# include <inttypes.h> 587#endif 588#ifdef HAVE_STDINT_H 589# include <stdint.h> 590#endif 591#ifdef HAVE_UNISTD_H 592# include <unistd.h> 593#endif" 594 595ac_header_list= 596ac_subst_vars='LTLIBOBJS 597LIBOBJS 598EGREP 599GREP 600CPP 601OBJEXT 602EXEEXT 603ac_ct_CC 604CPPFLAGS 605LDFLAGS 606CFLAGS 607DLLTOOL 608AR 609RANLIB 610CC 611target_os 612target_vendor 613target_cpu 614target 615host_os 616host_vendor 617host_cpu 618host 619build_os 620build_vendor 621build_cpu 622build 623target_alias 624host_alias 625build_alias 626LIBS 627ECHO_T 628ECHO_N 629ECHO_C 630DEFS 631mandir 632localedir 633libdir 634psdir 635pdfdir 636dvidir 637htmldir 638infodir 639docdir 640oldincludedir 641includedir 642localstatedir 643sharedstatedir 644sysconfdir 645datadir 646datarootdir 647libexecdir 648sbindir 649bindir 650program_transform_name 651prefix 652exec_prefix 653PACKAGE_URL 654PACKAGE_BUGREPORT 655PACKAGE_STRING 656PACKAGE_VERSION 657PACKAGE_TARNAME 658PACKAGE_NAME 659PATH_SEPARATOR 660SHELL' 661ac_subst_files='' 662ac_user_opts=' 663enable_option_checking 664' 665 ac_precious_vars='build_alias 666host_alias 667target_alias 668CC 669CFLAGS 670LDFLAGS 671LIBS 672CPPFLAGS 673CPP' 674 675 676# Initialize some variables set by options. 677ac_init_help= 678ac_init_version=false 679ac_unrecognized_opts= 680ac_unrecognized_sep= 681# The variables have the same names as the options, with 682# dashes changed to underlines. 683cache_file=/dev/null 684exec_prefix=NONE 685no_create= 686no_recursion= 687prefix=NONE 688program_prefix=NONE 689program_suffix=NONE 690program_transform_name=s,x,x, 691silent= 692site= 693srcdir= 694verbose= 695x_includes=NONE 696x_libraries=NONE 697 698# Installation directory options. 699# These are left unexpanded so users can "make install exec_prefix=/foo" 700# and all the variables that are supposed to be based on exec_prefix 701# by default will actually change. 702# Use braces instead of parens because sh, perl, etc. also accept them. 703# (The list follows the same order as the GNU Coding Standards.) 704bindir='${exec_prefix}/bin' 705sbindir='${exec_prefix}/sbin' 706libexecdir='${exec_prefix}/libexec' 707datarootdir='${prefix}/share' 708datadir='${datarootdir}' 709sysconfdir='${prefix}/etc' 710sharedstatedir='${prefix}/com' 711localstatedir='${prefix}/var' 712includedir='${prefix}/include' 713oldincludedir='/usr/include' 714docdir='${datarootdir}/doc/${PACKAGE}' 715infodir='${datarootdir}/info' 716htmldir='${docdir}' 717dvidir='${docdir}' 718pdfdir='${docdir}' 719psdir='${docdir}' 720libdir='${exec_prefix}/lib' 721localedir='${datarootdir}/locale' 722mandir='${datarootdir}/man' 723 724ac_prev= 725ac_dashdash= 726for ac_option 727do 728 # If the previous option needs an argument, assign it. 729 if test -n "$ac_prev"; then 730 eval $ac_prev=\$ac_option 731 ac_prev= 732 continue 733 fi 734 735 case $ac_option in 736 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 737 *=) ac_optarg= ;; 738 *) ac_optarg=yes ;; 739 esac 740 741 # Accept the important Cygnus configure options, so we can diagnose typos. 742 743 case $ac_dashdash$ac_option in 744 --) 745 ac_dashdash=yes ;; 746 747 -bindir | --bindir | --bindi | --bind | --bin | --bi) 748 ac_prev=bindir ;; 749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 750 bindir=$ac_optarg ;; 751 752 -build | --build | --buil | --bui | --bu) 753 ac_prev=build_alias ;; 754 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 755 build_alias=$ac_optarg ;; 756 757 -cache-file | --cache-file | --cache-fil | --cache-fi \ 758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 759 ac_prev=cache_file ;; 760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 762 cache_file=$ac_optarg ;; 763 764 --config-cache | -C) 765 cache_file=config.cache ;; 766 767 -datadir | --datadir | --datadi | --datad) 768 ac_prev=datadir ;; 769 -datadir=* | --datadir=* | --datadi=* | --datad=*) 770 datadir=$ac_optarg ;; 771 772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 773 | --dataroo | --dataro | --datar) 774 ac_prev=datarootdir ;; 775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 777 datarootdir=$ac_optarg ;; 778 779 -disable-* | --disable-*) 780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 783 as_fn_error $? "invalid feature name: $ac_useropt" 784 ac_useropt_orig=$ac_useropt 785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 786 case $ac_user_opts in 787 *" 788"enable_$ac_useropt" 789"*) ;; 790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 791 ac_unrecognized_sep=', ';; 792 esac 793 eval enable_$ac_useropt=no ;; 794 795 -docdir | --docdir | --docdi | --doc | --do) 796 ac_prev=docdir ;; 797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 798 docdir=$ac_optarg ;; 799 800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 801 ac_prev=dvidir ;; 802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 803 dvidir=$ac_optarg ;; 804 805 -enable-* | --enable-*) 806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 807 # Reject names that are not valid shell variable names. 808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 809 as_fn_error $? "invalid feature name: $ac_useropt" 810 ac_useropt_orig=$ac_useropt 811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 812 case $ac_user_opts in 813 *" 814"enable_$ac_useropt" 815"*) ;; 816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 817 ac_unrecognized_sep=', ';; 818 esac 819 eval enable_$ac_useropt=\$ac_optarg ;; 820 821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 823 | --exec | --exe | --ex) 824 ac_prev=exec_prefix ;; 825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 827 | --exec=* | --exe=* | --ex=*) 828 exec_prefix=$ac_optarg ;; 829 830 -gas | --gas | --ga | --g) 831 # Obsolete; use --with-gas. 832 with_gas=yes ;; 833 834 -help | --help | --hel | --he | -h) 835 ac_init_help=long ;; 836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 837 ac_init_help=recursive ;; 838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 839 ac_init_help=short ;; 840 841 -host | --host | --hos | --ho) 842 ac_prev=host_alias ;; 843 -host=* | --host=* | --hos=* | --ho=*) 844 host_alias=$ac_optarg ;; 845 846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 847 ac_prev=htmldir ;; 848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 849 | --ht=*) 850 htmldir=$ac_optarg ;; 851 852 -includedir | --includedir | --includedi | --included | --include \ 853 | --includ | --inclu | --incl | --inc) 854 ac_prev=includedir ;; 855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 856 | --includ=* | --inclu=* | --incl=* | --inc=*) 857 includedir=$ac_optarg ;; 858 859 -infodir | --infodir | --infodi | --infod | --info | --inf) 860 ac_prev=infodir ;; 861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 862 infodir=$ac_optarg ;; 863 864 -libdir | --libdir | --libdi | --libd) 865 ac_prev=libdir ;; 866 -libdir=* | --libdir=* | --libdi=* | --libd=*) 867 libdir=$ac_optarg ;; 868 869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 870 | --libexe | --libex | --libe) 871 ac_prev=libexecdir ;; 872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 873 | --libexe=* | --libex=* | --libe=*) 874 libexecdir=$ac_optarg ;; 875 876 -localedir | --localedir | --localedi | --localed | --locale) 877 ac_prev=localedir ;; 878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 879 localedir=$ac_optarg ;; 880 881 -localstatedir | --localstatedir | --localstatedi | --localstated \ 882 | --localstate | --localstat | --localsta | --localst | --locals) 883 ac_prev=localstatedir ;; 884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 886 localstatedir=$ac_optarg ;; 887 888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 889 ac_prev=mandir ;; 890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 891 mandir=$ac_optarg ;; 892 893 -nfp | --nfp | --nf) 894 # Obsolete; use --without-fp. 895 with_fp=no ;; 896 897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 898 | --no-cr | --no-c | -n) 899 no_create=yes ;; 900 901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 903 no_recursion=yes ;; 904 905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 907 | --oldin | --oldi | --old | --ol | --o) 908 ac_prev=oldincludedir ;; 909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 912 oldincludedir=$ac_optarg ;; 913 914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 915 ac_prev=prefix ;; 916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 917 prefix=$ac_optarg ;; 918 919 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 920 | --program-pre | --program-pr | --program-p) 921 ac_prev=program_prefix ;; 922 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 924 program_prefix=$ac_optarg ;; 925 926 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 927 | --program-suf | --program-su | --program-s) 928 ac_prev=program_suffix ;; 929 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 931 program_suffix=$ac_optarg ;; 932 933 -program-transform-name | --program-transform-name \ 934 | --program-transform-nam | --program-transform-na \ 935 | --program-transform-n | --program-transform- \ 936 | --program-transform | --program-transfor \ 937 | --program-transfo | --program-transf \ 938 | --program-trans | --program-tran \ 939 | --progr-tra | --program-tr | --program-t) 940 ac_prev=program_transform_name ;; 941 -program-transform-name=* | --program-transform-name=* \ 942 | --program-transform-nam=* | --program-transform-na=* \ 943 | --program-transform-n=* | --program-transform-=* \ 944 | --program-transform=* | --program-transfor=* \ 945 | --program-transfo=* | --program-transf=* \ 946 | --program-trans=* | --program-tran=* \ 947 | --progr-tra=* | --program-tr=* | --program-t=*) 948 program_transform_name=$ac_optarg ;; 949 950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 951 ac_prev=pdfdir ;; 952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 953 pdfdir=$ac_optarg ;; 954 955 -psdir | --psdir | --psdi | --psd | --ps) 956 ac_prev=psdir ;; 957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 958 psdir=$ac_optarg ;; 959 960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 961 | -silent | --silent | --silen | --sile | --sil) 962 silent=yes ;; 963 964 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 965 ac_prev=sbindir ;; 966 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 967 | --sbi=* | --sb=*) 968 sbindir=$ac_optarg ;; 969 970 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 971 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 972 | --sharedst | --shareds | --shared | --share | --shar \ 973 | --sha | --sh) 974 ac_prev=sharedstatedir ;; 975 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 976 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 977 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 978 | --sha=* | --sh=*) 979 sharedstatedir=$ac_optarg ;; 980 981 -site | --site | --sit) 982 ac_prev=site ;; 983 -site=* | --site=* | --sit=*) 984 site=$ac_optarg ;; 985 986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 987 ac_prev=srcdir ;; 988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 989 srcdir=$ac_optarg ;; 990 991 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 992 | --syscon | --sysco | --sysc | --sys | --sy) 993 ac_prev=sysconfdir ;; 994 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 995 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 996 sysconfdir=$ac_optarg ;; 997 998 -target | --target | --targe | --targ | --tar | --ta | --t) 999 ac_prev=target_alias ;; 1000 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1001 target_alias=$ac_optarg ;; 1002 1003 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1004 verbose=yes ;; 1005 1006 -version | --version | --versio | --versi | --vers | -V) 1007 ac_init_version=: ;; 1008 1009 -with-* | --with-*) 1010 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1013 as_fn_error $? "invalid package name: $ac_useropt" 1014 ac_useropt_orig=$ac_useropt 1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1016 case $ac_user_opts in 1017 *" 1018"with_$ac_useropt" 1019"*) ;; 1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1021 ac_unrecognized_sep=', ';; 1022 esac 1023 eval with_$ac_useropt=\$ac_optarg ;; 1024 1025 -without-* | --without-*) 1026 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1029 as_fn_error $? "invalid package name: $ac_useropt" 1030 ac_useropt_orig=$ac_useropt 1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1032 case $ac_user_opts in 1033 *" 1034"with_$ac_useropt" 1035"*) ;; 1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1037 ac_unrecognized_sep=', ';; 1038 esac 1039 eval with_$ac_useropt=no ;; 1040 1041 --x) 1042 # Obsolete; use --with-x. 1043 with_x=yes ;; 1044 1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1046 | --x-incl | --x-inc | --x-in | --x-i) 1047 ac_prev=x_includes ;; 1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1050 x_includes=$ac_optarg ;; 1051 1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1054 ac_prev=x_libraries ;; 1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1057 x_libraries=$ac_optarg ;; 1058 1059 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1060Try \`$0 --help' for more information" 1061 ;; 1062 1063 *=*) 1064 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1065 # Reject names that are not valid shell variable names. 1066 case $ac_envvar in #( 1067 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1068 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1069 esac 1070 eval $ac_envvar=\$ac_optarg 1071 export $ac_envvar ;; 1072 1073 *) 1074 # FIXME: should be removed in autoconf 3.0. 1075 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1079 ;; 1080 1081 esac 1082done 1083 1084if test -n "$ac_prev"; then 1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1086 as_fn_error $? "missing argument to $ac_option" 1087fi 1088 1089if test -n "$ac_unrecognized_opts"; then 1090 case $enable_option_checking in 1091 no) ;; 1092 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1094 esac 1095fi 1096 1097# Check all directory arguments for consistency. 1098for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1099 datadir sysconfdir sharedstatedir localstatedir includedir \ 1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1101 libdir localedir mandir 1102do 1103 eval ac_val=\$$ac_var 1104 # Remove trailing slashes. 1105 case $ac_val in 1106 */ ) 1107 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1108 eval $ac_var=\$ac_val;; 1109 esac 1110 # Be sure to have absolute directory names. 1111 case $ac_val in 1112 [\\/$]* | ?:[\\/]* ) continue;; 1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1114 esac 1115 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1116done 1117 1118# There might be people who depend on the old broken behavior: `$host' 1119# used to hold the argument of --host etc. 1120# FIXME: To remove some day. 1121build=$build_alias 1122host=$host_alias 1123target=$target_alias 1124 1125# FIXME: To remove some day. 1126if test "x$host_alias" != x; then 1127 if test "x$build_alias" = x; then 1128 cross_compiling=maybe 1129 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1130 If a cross compiler is detected then cross compile mode will be used" >&2 1131 elif test "x$build_alias" != "x$host_alias"; then 1132 cross_compiling=yes 1133 fi 1134fi 1135 1136ac_tool_prefix= 1137test -n "$host_alias" && ac_tool_prefix=$host_alias- 1138 1139test "$silent" = yes && exec 6>/dev/null 1140 1141 1142ac_pwd=`pwd` && test -n "$ac_pwd" && 1143ac_ls_di=`ls -di .` && 1144ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1145 as_fn_error $? "working directory cannot be determined" 1146test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1147 as_fn_error $? "pwd does not report name of working directory" 1148 1149 1150# Find the source files, if location was not specified. 1151if test -z "$srcdir"; then 1152 ac_srcdir_defaulted=yes 1153 # Try the directory containing this script, then the parent directory. 1154 ac_confdir=`$as_dirname -- "$as_myself" || 1155$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1156 X"$as_myself" : 'X\(//\)[^/]' \| \ 1157 X"$as_myself" : 'X\(//\)$' \| \ 1158 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1159$as_echo X"$as_myself" | 1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1161 s//\1/ 1162 q 1163 } 1164 /^X\(\/\/\)[^/].*/{ 1165 s//\1/ 1166 q 1167 } 1168 /^X\(\/\/\)$/{ 1169 s//\1/ 1170 q 1171 } 1172 /^X\(\/\).*/{ 1173 s//\1/ 1174 q 1175 } 1176 s/.*/./; q'` 1177 srcdir=$ac_confdir 1178 if test ! -r "$srcdir/$ac_unique_file"; then 1179 srcdir=.. 1180 fi 1181else 1182 ac_srcdir_defaulted=no 1183fi 1184if test ! -r "$srcdir/$ac_unique_file"; then 1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1186 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1187fi 1188ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1189ac_abs_confdir=`( 1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1191 pwd)` 1192# When building in place, set srcdir=. 1193if test "$ac_abs_confdir" = "$ac_pwd"; then 1194 srcdir=. 1195fi 1196# Remove unnecessary trailing slashes from srcdir. 1197# Double slashes in file names in object file debugging info 1198# mess up M-x gdb in Emacs. 1199case $srcdir in 1200*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1201esac 1202for ac_var in $ac_precious_vars; do 1203 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1204 eval ac_env_${ac_var}_value=\$${ac_var} 1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1206 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1207done 1208 1209# 1210# Report the --help message. 1211# 1212if test "$ac_init_help" = "long"; then 1213 # Omit some internal or obsolete options to make the list less imposing. 1214 # This message is too long to be a string in the A/UX 3.1 sh. 1215 cat <<_ACEOF 1216\`configure' configures this package to adapt to many kinds of systems. 1217 1218Usage: $0 [OPTION]... [VAR=VALUE]... 1219 1220To assign environment variables (e.g., CC, CFLAGS...), specify them as 1221VAR=VALUE. See below for descriptions of some of the useful variables. 1222 1223Defaults for the options are specified in brackets. 1224 1225Configuration: 1226 -h, --help display this help and exit 1227 --help=short display options specific to this package 1228 --help=recursive display the short help of all the included packages 1229 -V, --version display version information and exit 1230 -q, --quiet, --silent do not print \`checking ...' messages 1231 --cache-file=FILE cache test results in FILE [disabled] 1232 -C, --config-cache alias for \`--cache-file=config.cache' 1233 -n, --no-create do not create output files 1234 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1235 1236Installation directories: 1237 --prefix=PREFIX install architecture-independent files in PREFIX 1238 [$ac_default_prefix] 1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1240 [PREFIX] 1241 1242By default, \`make install' will install all the files in 1243\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1244an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1245for instance \`--prefix=\$HOME'. 1246 1247For better control, use the options below. 1248 1249Fine tuning of the installation directories: 1250 --bindir=DIR user executables [EPREFIX/bin] 1251 --sbindir=DIR system admin executables [EPREFIX/sbin] 1252 --libexecdir=DIR program executables [EPREFIX/libexec] 1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1256 --libdir=DIR object code libraries [EPREFIX/lib] 1257 --includedir=DIR C header files [PREFIX/include] 1258 --oldincludedir=DIR C header files for non-/usr/local/bin/clang80 [/usr/include] 1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1261 --infodir=DIR info documentation [DATAROOTDIR/info] 1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1263 --mandir=DIR man documentation [DATAROOTDIR/man] 1264 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1265 --htmldir=DIR html documentation [DOCDIR] 1266 --dvidir=DIR dvi documentation [DOCDIR] 1267 --pdfdir=DIR pdf documentation [DOCDIR] 1268 --psdir=DIR ps documentation [DOCDIR] 1269_ACEOF 1270 1271 cat <<\_ACEOF 1272 1273System types: 1274 --build=BUILD configure for building on BUILD [guessed] 1275 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1276 --target=TARGET configure for building compilers for TARGET [HOST] 1277_ACEOF 1278fi 1279 1280if test -n "$ac_init_help"; then 1281 1282 cat <<\_ACEOF 1283 1284Some influential environment variables: 1285 CC C compiler command 1286 CFLAGS C compiler flags 1287 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1288 nonstandard directory <lib dir> 1289 LIBS libraries to pass to the linker, e.g. -l<library> 1290 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1291 you have headers in a nonstandard directory <include dir> 1292 CPP C preprocessor 1293 1294Use these variables to override the choices made by `configure' or to help 1295it to find libraries and programs with nonstandard names/locations. 1296 1297Report bugs to the package provider. 1298_ACEOF 1299ac_status=$? 1300fi 1301 1302if test "$ac_init_help" = "recursive"; then 1303 # If there are subdirs, report their specific --help. 1304 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1305 test -d "$ac_dir" || 1306 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1307 continue 1308 ac_builddir=. 1309 1310case "$ac_dir" in 1311.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1312*) 1313 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1314 # A ".." for each directory in $ac_dir_suffix. 1315 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1316 case $ac_top_builddir_sub in 1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1319 esac ;; 1320esac 1321ac_abs_top_builddir=$ac_pwd 1322ac_abs_builddir=$ac_pwd$ac_dir_suffix 1323# for backward compatibility: 1324ac_top_builddir=$ac_top_build_prefix 1325 1326case $srcdir in 1327 .) # We are building in place. 1328 ac_srcdir=. 1329 ac_top_srcdir=$ac_top_builddir_sub 1330 ac_abs_top_srcdir=$ac_pwd ;; 1331 [\\/]* | ?:[\\/]* ) # Absolute name. 1332 ac_srcdir=$srcdir$ac_dir_suffix; 1333 ac_top_srcdir=$srcdir 1334 ac_abs_top_srcdir=$srcdir ;; 1335 *) # Relative name. 1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1337 ac_top_srcdir=$ac_top_build_prefix$srcdir 1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1339esac 1340ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1341 1342 cd "$ac_dir" || { ac_status=$?; continue; } 1343 # Check for guested configure. 1344 if test -f "$ac_srcdir/configure.gnu"; then 1345 echo && 1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1347 elif test -f "$ac_srcdir/configure"; then 1348 echo && 1349 $SHELL "$ac_srcdir/configure" --help=recursive 1350 else 1351 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1352 fi || ac_status=$? 1353 cd "$ac_pwd" || { ac_status=$?; break; } 1354 done 1355fi 1356 1357test -n "$ac_init_help" && exit $ac_status 1358if $ac_init_version; then 1359 cat <<\_ACEOF 1360configure 1361generated by GNU Autoconf 2.67 1362 1363Copyright (C) 2010 Free Software Foundation, Inc. 1364This configure script is free software; the Free Software Foundation 1365gives unlimited permission to copy, distribute and modify it. 1366_ACEOF 1367 exit 1368fi 1369 1370## ------------------------ ## 1371## Autoconf initialization. ## 1372## ------------------------ ## 1373 1374# ac_fn_c_try_compile LINENO 1375# -------------------------- 1376# Try to compile conftest.$ac_ext, and return whether this succeeded. 1377ac_fn_c_try_compile () 1378{ 1379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1380 rm -f conftest.$ac_objext 1381 if { { ac_try="$ac_compile" 1382case "(($ac_try" in 1383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1384 *) ac_try_echo=$ac_try;; 1385esac 1386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1387$as_echo "$ac_try_echo"; } >&5 1388 (eval "$ac_compile") 2>conftest.err 1389 ac_status=$? 1390 if test -s conftest.err; then 1391 grep -v '^ *+' conftest.err >conftest.er1 1392 cat conftest.er1 >&5 1393 mv -f conftest.er1 conftest.err 1394 fi 1395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1396 test $ac_status = 0; } && { 1397 test -z "$ac_c_werror_flag" || 1398 test ! -s conftest.err 1399 } && test -s conftest.$ac_objext; then : 1400 ac_retval=0 1401else 1402 $as_echo "$as_me: failed program was:" >&5 1403sed 's/^/| /' conftest.$ac_ext >&5 1404 1405 ac_retval=1 1406fi 1407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1408 as_fn_set_status $ac_retval 1409 1410} # ac_fn_c_try_compile 1411 1412# ac_fn_c_try_link LINENO 1413# ----------------------- 1414# Try to link conftest.$ac_ext, and return whether this succeeded. 1415ac_fn_c_try_link () 1416{ 1417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1418 rm -f conftest.$ac_objext conftest$ac_exeext 1419 if { { ac_try="$ac_link" 1420case "(($ac_try" in 1421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1422 *) ac_try_echo=$ac_try;; 1423esac 1424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1425$as_echo "$ac_try_echo"; } >&5 1426 (eval "$ac_link") 2>conftest.err 1427 ac_status=$? 1428 if test -s conftest.err; then 1429 grep -v '^ *+' conftest.err >conftest.er1 1430 cat conftest.er1 >&5 1431 mv -f conftest.er1 conftest.err 1432 fi 1433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1434 test $ac_status = 0; } && { 1435 test -z "$ac_c_werror_flag" || 1436 test ! -s conftest.err 1437 } && test -s conftest$ac_exeext && { 1438 test "$cross_compiling" = yes || 1439 $as_test_x conftest$ac_exeext 1440 }; then : 1441 ac_retval=0 1442else 1443 $as_echo "$as_me: failed program was:" >&5 1444sed 's/^/| /' conftest.$ac_ext >&5 1445 1446 ac_retval=1 1447fi 1448 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1449 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1450 # interfere with the next link command; also delete a directory that is 1451 # left behind by Apple's compiler. We do this before executing the actions. 1452 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1454 as_fn_set_status $ac_retval 1455 1456} # ac_fn_c_try_link 1457 1458# ac_fn_c_try_cpp LINENO 1459# ---------------------- 1460# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1461ac_fn_c_try_cpp () 1462{ 1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1464 if { { ac_try="$ac_cpp conftest.$ac_ext" 1465case "(($ac_try" in 1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1467 *) ac_try_echo=$ac_try;; 1468esac 1469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1470$as_echo "$ac_try_echo"; } >&5 1471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1472 ac_status=$? 1473 if test -s conftest.err; then 1474 grep -v '^ *+' conftest.err >conftest.er1 1475 cat conftest.er1 >&5 1476 mv -f conftest.er1 conftest.err 1477 fi 1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1479 test $ac_status = 0; } > conftest.i && { 1480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1481 test ! -s conftest.err 1482 }; then : 1483 ac_retval=0 1484else 1485 $as_echo "$as_me: failed program was:" >&5 1486sed 's/^/| /' conftest.$ac_ext >&5 1487 1488 ac_retval=1 1489fi 1490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1491 as_fn_set_status $ac_retval 1492 1493} # ac_fn_c_try_cpp 1494 1495# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1496# ------------------------------------------------------- 1497# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1498# the include files in INCLUDES and setting the cache variable VAR 1499# accordingly. 1500ac_fn_c_check_header_mongrel () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 if eval "test \"\${$3+set}\"" = set; then : 1504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1505$as_echo_n "checking for $2... " >&6; } 1506if eval "test \"\${$3+set}\"" = set; then : 1507 $as_echo_n "(cached) " >&6 1508fi 1509eval ac_res=\$$3 1510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1511$as_echo "$ac_res" >&6; } 1512else 1513 # Is the header compilable? 1514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1515$as_echo_n "checking $2 usability... " >&6; } 1516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1517/* end confdefs.h. */ 1518$4 1519#include <$2> 1520_ACEOF 1521if ac_fn_c_try_compile "$LINENO"; then : 1522 ac_header_compiler=yes 1523else 1524 ac_header_compiler=no 1525fi 1526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1528$as_echo "$ac_header_compiler" >&6; } 1529 1530# Is the header present? 1531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1532$as_echo_n "checking $2 presence... " >&6; } 1533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1534/* end confdefs.h. */ 1535#include <$2> 1536_ACEOF 1537if ac_fn_c_try_cpp "$LINENO"; then : 1538 ac_header_preproc=yes 1539else 1540 ac_header_preproc=no 1541fi 1542rm -f conftest.err conftest.i conftest.$ac_ext 1543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1544$as_echo "$ac_header_preproc" >&6; } 1545 1546# So? What about this header? 1547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1548 yes:no: ) 1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1550$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1552$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1553 ;; 1554 no:yes:* ) 1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1556$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1558$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1560$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1562$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1564$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1565 ;; 1566esac 1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1568$as_echo_n "checking for $2... " >&6; } 1569if eval "test \"\${$3+set}\"" = set; then : 1570 $as_echo_n "(cached) " >&6 1571else 1572 eval "$3=\$ac_header_compiler" 1573fi 1574eval ac_res=\$$3 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1576$as_echo "$ac_res" >&6; } 1577fi 1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1579 1580} # ac_fn_c_check_header_mongrel 1581 1582# ac_fn_c_try_run LINENO 1583# ---------------------- 1584# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1585# that executables *can* be run. 1586ac_fn_c_try_run () 1587{ 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 if { { ac_try="$ac_link" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_link") 2>&5 1597 ac_status=$? 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1600 { { case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_try") 2>&5 1607 ac_status=$? 1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1609 test $ac_status = 0; }; }; then : 1610 ac_retval=0 1611else 1612 $as_echo "$as_me: program exited with status $ac_status" >&5 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=$ac_status 1617fi 1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_run 1623 1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1625# ------------------------------------------------------- 1626# Tests whether HEADER exists and can be compiled using the include files in 1627# INCLUDES, setting the cache variable VAR accordingly. 1628ac_fn_c_check_header_compile () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1632$as_echo_n "checking for $2... " >&6; } 1633if eval "test \"\${$3+set}\"" = set; then : 1634 $as_echo_n "(cached) " >&6 1635else 1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637/* end confdefs.h. */ 1638$4 1639#include <$2> 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO"; then : 1642 eval "$3=yes" 1643else 1644 eval "$3=no" 1645fi 1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1647fi 1648eval ac_res=\$$3 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1650$as_echo "$ac_res" >&6; } 1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1652 1653} # ac_fn_c_check_header_compile 1654 1655# ac_fn_c_check_func LINENO FUNC VAR 1656# ---------------------------------- 1657# Tests whether FUNC exists, setting the cache variable VAR accordingly 1658ac_fn_c_check_func () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662$as_echo_n "checking for $2... " >&6; } 1663if eval "test \"\${$3+set}\"" = set; then : 1664 $as_echo_n "(cached) " >&6 1665else 1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1669 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1670#define $2 innocuous_$2 1671 1672/* System header to define __stub macros and hopefully few prototypes, 1673 which can conflict with char $2 (); below. 1674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1675 <limits.h> exists even on freestanding compilers. */ 1676 1677#ifdef __STDC__ 1678# include <limits.h> 1679#else 1680# include <assert.h> 1681#endif 1682 1683#undef $2 1684 1685/* Override any GCC internal prototype to avoid an error. 1686 Use char because int might match the return type of a GCC 1687 builtin and then its argument prototype would still apply. */ 1688#ifdef __cplusplus 1689extern "C" 1690#endif 1691char $2 (); 1692/* The GNU C library defines this for functions which it implements 1693 to always fail with ENOSYS. Some functions are actually named 1694 something starting with __ and the normal name is an alias. */ 1695#if defined __stub_$2 || defined __stub___$2 1696choke me 1697#endif 1698 1699int 1700main () 1701{ 1702return $2 (); 1703 ; 1704 return 0; 1705} 1706_ACEOF 1707if ac_fn_c_try_link "$LINENO"; then : 1708 eval "$3=yes" 1709else 1710 eval "$3=no" 1711fi 1712rm -f core conftest.err conftest.$ac_objext \ 1713 conftest$ac_exeext conftest.$ac_ext 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1719 1720} # ac_fn_c_check_func 1721 1722# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1723# ------------------------------------------- 1724# Tests whether TYPE exists after having included INCLUDES, setting cache 1725# variable VAR accordingly. 1726ac_fn_c_check_type () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval "test \"\${$3+set}\"" = set; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 eval "$3=no" 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738int 1739main () 1740{ 1741if (sizeof ($2)) 1742 return 0; 1743 ; 1744 return 0; 1745} 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750$4 1751int 1752main () 1753{ 1754if (sizeof (($2))) 1755 return 0; 1756 ; 1757 return 0; 1758} 1759_ACEOF 1760if ac_fn_c_try_compile "$LINENO"; then : 1761 1762else 1763 eval "$3=yes" 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1768fi 1769eval ac_res=\$$3 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771$as_echo "$ac_res" >&6; } 1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1773 1774} # ac_fn_c_check_type 1775cat >config.log <<_ACEOF 1776This file contains any messages produced by compilers while 1777running configure, to aid debugging if configure makes a mistake. 1778 1779It was created by $as_me, which was 1780generated by GNU Autoconf 2.67. Invocation command line was 1781 1782 $ $0 $@ 1783 1784_ACEOF 1785exec 5>>config.log 1786{ 1787cat <<_ASUNAME 1788## --------- ## 1789## Platform. ## 1790## --------- ## 1791 1792hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1793uname -m = `(uname -m) 2>/dev/null || echo unknown` 1794uname -r = `(uname -r) 2>/dev/null || echo unknown` 1795uname -s = `(uname -s) 2>/dev/null || echo unknown` 1796uname -v = `(uname -v) 2>/dev/null || echo unknown` 1797 1798/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1799/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1800 1801/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1802/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1803/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1804/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1805/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1806/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1807/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1808 1809_ASUNAME 1810 1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1812for as_dir in $PATH 1813do 1814 IFS=$as_save_IFS 1815 test -z "$as_dir" && as_dir=. 1816 $as_echo "PATH: $as_dir" 1817 done 1818IFS=$as_save_IFS 1819 1820} >&5 1821 1822cat >&5 <<_ACEOF 1823 1824 1825## ----------- ## 1826## Core tests. ## 1827## ----------- ## 1828 1829_ACEOF 1830 1831 1832# Keep a trace of the command line. 1833# Strip out --no-create and --no-recursion so they do not pile up. 1834# Strip out --silent because we don't want to record it for future runs. 1835# Also quote any args containing shell meta-characters. 1836# Make two passes to allow for proper duplicate-argument suppression. 1837ac_configure_args= 1838ac_configure_args0= 1839ac_configure_args1= 1840ac_must_keep_next=false 1841for ac_pass in 1 2 1842do 1843 for ac_arg 1844 do 1845 case $ac_arg in 1846 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1848 | -silent | --silent | --silen | --sile | --sil) 1849 continue ;; 1850 *\'*) 1851 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1852 esac 1853 case $ac_pass in 1854 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1855 2) 1856 as_fn_append ac_configure_args1 " '$ac_arg'" 1857 if test $ac_must_keep_next = true; then 1858 ac_must_keep_next=false # Got value, back to normal. 1859 else 1860 case $ac_arg in 1861 *=* | --config-cache | -C | -disable-* | --disable-* \ 1862 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1863 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1864 | -with-* | --with-* | -without-* | --without-* | --x) 1865 case "$ac_configure_args0 " in 1866 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1867 esac 1868 ;; 1869 -* ) ac_must_keep_next=true ;; 1870 esac 1871 fi 1872 as_fn_append ac_configure_args " '$ac_arg'" 1873 ;; 1874 esac 1875 done 1876done 1877{ ac_configure_args0=; unset ac_configure_args0;} 1878{ ac_configure_args1=; unset ac_configure_args1;} 1879 1880# When interrupted or exit'd, cleanup temporary files, and complete 1881# config.log. We remove comments because anyway the quotes in there 1882# would cause problems or look ugly. 1883# WARNING: Use '\'' to represent an apostrophe within the trap. 1884# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1885trap 'exit_status=$? 1886 # Save into config.log some information that might help in debugging. 1887 { 1888 echo 1889 1890 $as_echo "## ---------------- ## 1891## Cache variables. ## 1892## ---------------- ##" 1893 echo 1894 # The following way of writing the cache mishandles newlines in values, 1895( 1896 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1897 eval ac_val=\$$ac_var 1898 case $ac_val in #( 1899 *${as_nl}*) 1900 case $ac_var in #( 1901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1902$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1903 esac 1904 case $ac_var in #( 1905 _ | IFS | as_nl) ;; #( 1906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1907 *) { eval $ac_var=; unset $ac_var;} ;; 1908 esac ;; 1909 esac 1910 done 1911 (set) 2>&1 | 1912 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1913 *${as_nl}ac_space=\ *) 1914 sed -n \ 1915 "s/'\''/'\''\\\\'\'''\''/g; 1916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1917 ;; #( 1918 *) 1919 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1920 ;; 1921 esac | 1922 sort 1923) 1924 echo 1925 1926 $as_echo "## ----------------- ## 1927## Output variables. ## 1928## ----------------- ##" 1929 echo 1930 for ac_var in $ac_subst_vars 1931 do 1932 eval ac_val=\$$ac_var 1933 case $ac_val in 1934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1935 esac 1936 $as_echo "$ac_var='\''$ac_val'\''" 1937 done | sort 1938 echo 1939 1940 if test -n "$ac_subst_files"; then 1941 $as_echo "## ------------------- ## 1942## File substitutions. ## 1943## ------------------- ##" 1944 echo 1945 for ac_var in $ac_subst_files 1946 do 1947 eval ac_val=\$$ac_var 1948 case $ac_val in 1949 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1950 esac 1951 $as_echo "$ac_var='\''$ac_val'\''" 1952 done | sort 1953 echo 1954 fi 1955 1956 if test -s confdefs.h; then 1957 $as_echo "## ----------- ## 1958## confdefs.h. ## 1959## ----------- ##" 1960 echo 1961 cat confdefs.h 1962 echo 1963 fi 1964 test "$ac_signal" != 0 && 1965 $as_echo "$as_me: caught signal $ac_signal" 1966 $as_echo "$as_me: exit $exit_status" 1967 } >&5 1968 rm -f core *.core core.conftest.* && 1969 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1970 exit $exit_status 1971' 0 1972for ac_signal in 1 2 13 15; do 1973 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1974done 1975ac_signal=0 1976 1977# confdefs.h avoids OS command line length limits that DEFS can exceed. 1978rm -f -r conftest* confdefs.h 1979 1980$as_echo "/* confdefs.h */" > confdefs.h 1981 1982# Predefined preprocessor variables. 1983 1984cat >>confdefs.h <<_ACEOF 1985#define PACKAGE_NAME "$PACKAGE_NAME" 1986_ACEOF 1987 1988cat >>confdefs.h <<_ACEOF 1989#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1990_ACEOF 1991 1992cat >>confdefs.h <<_ACEOF 1993#define PACKAGE_VERSION "$PACKAGE_VERSION" 1994_ACEOF 1995 1996cat >>confdefs.h <<_ACEOF 1997#define PACKAGE_STRING "$PACKAGE_STRING" 1998_ACEOF 1999 2000cat >>confdefs.h <<_ACEOF 2001#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2002_ACEOF 2003 2004cat >>confdefs.h <<_ACEOF 2005#define PACKAGE_URL "$PACKAGE_URL" 2006_ACEOF 2007 2008 2009# Let the site file select an alternate cache file if it wants to. 2010# Prefer an explicitly selected file to automatically selected ones. 2011ac_site_file1=NONE 2012ac_site_file2=NONE 2013if test -n "$CONFIG_SITE"; then 2014 # We do not want a PATH search for config.site. 2015 case $CONFIG_SITE in #(( 2016 -*) ac_site_file1=./$CONFIG_SITE;; 2017 */*) ac_site_file1=$CONFIG_SITE;; 2018 *) ac_site_file1=./$CONFIG_SITE;; 2019 esac 2020elif test "x$prefix" != xNONE; then 2021 ac_site_file1=$prefix/share/config.site 2022 ac_site_file2=$prefix/etc/config.site 2023else 2024 ac_site_file1=$ac_default_prefix/share/config.site 2025 ac_site_file2=$ac_default_prefix/etc/config.site 2026fi 2027for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2028do 2029 test "x$ac_site_file" = xNONE && continue 2030 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2032$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2033 sed 's/^/| /' "$ac_site_file" >&5 2034 . "$ac_site_file" \ 2035 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2037as_fn_error $? "failed to load site script $ac_site_file 2038See \`config.log' for more details" "$LINENO" 5 ; } 2039 fi 2040done 2041 2042if test -r "$cache_file"; then 2043 # Some versions of bash will fail to source /dev/null (special files 2044 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2045 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2047$as_echo "$as_me: loading cache $cache_file" >&6;} 2048 case $cache_file in 2049 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2050 *) . "./$cache_file";; 2051 esac 2052 fi 2053else 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2055$as_echo "$as_me: creating cache $cache_file" >&6;} 2056 >$cache_file 2057fi 2058 2059as_fn_append ac_header_list " stdlib.h" 2060as_fn_append ac_header_list " unistd.h" 2061as_fn_append ac_header_list " sys/param.h" 2062# Check that the precious variables saved in the cache have kept the same 2063# value. 2064ac_cache_corrupted=false 2065for ac_var in $ac_precious_vars; do 2066 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2067 eval ac_new_set=\$ac_env_${ac_var}_set 2068 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2069 eval ac_new_val=\$ac_env_${ac_var}_value 2070 case $ac_old_set,$ac_new_set in 2071 set,) 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2073$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2074 ac_cache_corrupted=: ;; 2075 ,set) 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2077$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2078 ac_cache_corrupted=: ;; 2079 ,);; 2080 *) 2081 if test "x$ac_old_val" != "x$ac_new_val"; then 2082 # differences in whitespace do not lead to failure. 2083 ac_old_val_w=`echo x $ac_old_val` 2084 ac_new_val_w=`echo x $ac_new_val` 2085 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2087$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2088 ac_cache_corrupted=: 2089 else 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2091$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2092 eval $ac_var=\$ac_old_val 2093 fi 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2095$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2097$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2098 fi;; 2099 esac 2100 # Pass precious variables to config.status. 2101 if test "$ac_new_set" = set; then 2102 case $ac_new_val in 2103 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2104 *) ac_arg=$ac_var=$ac_new_val ;; 2105 esac 2106 case " $ac_configure_args " in 2107 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2108 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2109 esac 2110 fi 2111done 2112if $ac_cache_corrupted; then 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2116$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2117 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2118fi 2119## -------------------- ## 2120## Main body of script. ## 2121## -------------------- ## 2122 2123ac_ext=c 2124ac_cpp='$CPP $CPPFLAGS' 2125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2127ac_compiler_gnu=$ac_cv_c_compiler_gnu 2128 2129 2130 2131# Determine the host, build, and target systems 2132CC_TARGET=$target # use --target value for CC, not the canonical form 2133ac_aux_dir= 2134for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2135 if test -f "$ac_dir/install-sh"; then 2136 ac_aux_dir=$ac_dir 2137 ac_install_sh="$ac_aux_dir/install-sh -c" 2138 break 2139 elif test -f "$ac_dir/install.sh"; then 2140 ac_aux_dir=$ac_dir 2141 ac_install_sh="$ac_aux_dir/install.sh -c" 2142 break 2143 elif test -f "$ac_dir/shtool"; then 2144 ac_aux_dir=$ac_dir 2145 ac_install_sh="$ac_aux_dir/shtool install -c" 2146 break 2147 fi 2148done 2149if test -z "$ac_aux_dir"; then 2150 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2151fi 2152 2153# These three variables are undocumented and unsupported, 2154# and are intended to be withdrawn in a future Autoconf release. 2155# They can cause serious problems if a builder's source tree is in a directory 2156# whose full name contains unusual characters. 2157ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2158ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2159ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2160 2161 2162# Make sure we can run config.sub. 2163$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2164 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2165 2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2167$as_echo_n "checking build system type... " >&6; } 2168if test "${ac_cv_build+set}" = set; then : 2169 $as_echo_n "(cached) " >&6 2170else 2171 ac_build_alias=$build_alias 2172test "x$ac_build_alias" = x && 2173 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2174test "x$ac_build_alias" = x && 2175 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2176ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2177 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2178 2179fi 2180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2181$as_echo "$ac_cv_build" >&6; } 2182case $ac_cv_build in 2183*-*-*) ;; 2184*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 2185esac 2186build=$ac_cv_build 2187ac_save_IFS=$IFS; IFS='-' 2188set x $ac_cv_build 2189shift 2190build_cpu=$1 2191build_vendor=$2 2192shift; shift 2193# Remember, the first character of IFS is used to create $*, 2194# except with old shells: 2195build_os=$* 2196IFS=$ac_save_IFS 2197case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2198 2199 2200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2201$as_echo_n "checking host system type... " >&6; } 2202if test "${ac_cv_host+set}" = set; then : 2203 $as_echo_n "(cached) " >&6 2204else 2205 if test "x$host_alias" = x; then 2206 ac_cv_host=$ac_cv_build 2207else 2208 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2209 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2210fi 2211 2212fi 2213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2214$as_echo "$ac_cv_host" >&6; } 2215case $ac_cv_host in 2216*-*-*) ;; 2217*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 2218esac 2219host=$ac_cv_host 2220ac_save_IFS=$IFS; IFS='-' 2221set x $ac_cv_host 2222shift 2223host_cpu=$1 2224host_vendor=$2 2225shift; shift 2226# Remember, the first character of IFS is used to create $*, 2227# except with old shells: 2228host_os=$* 2229IFS=$ac_save_IFS 2230case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2231 2232 2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2234$as_echo_n "checking target system type... " >&6; } 2235if test "${ac_cv_target+set}" = set; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 if test "x$target_alias" = x; then 2239 ac_cv_target=$ac_cv_host 2240else 2241 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2242 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2243fi 2244 2245fi 2246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2247$as_echo "$ac_cv_target" >&6; } 2248case $ac_cv_target in 2249*-*-*) ;; 2250*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; 2251esac 2252target=$ac_cv_target 2253ac_save_IFS=$IFS; IFS='-' 2254set x $ac_cv_target 2255shift 2256target_cpu=$1 2257target_vendor=$2 2258shift; shift 2259# Remember, the first character of IFS is used to create $*, 2260# except with old shells: 2261target_os=$* 2262IFS=$ac_save_IFS 2263case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2264 2265 2266# The aliases save the names the user supplied, while $host etc. 2267# will get canonicalized. 2268test -n "$target_alias" && 2269 test "$program_prefix$program_suffix$program_transform_name" = \ 2270 NONENONEs,x,x, && 2271 program_prefix=${target_alias}- 2272 2273 2274ac_config_headers="$ac_config_headers config.h:config.h.in" 2275 2276 2277 2278# check for cross compilation 2279 2280if test "x$target" = "xNONE"; then 2281 set target $host 2282fi 2283 2284if test "x$host" != "x$target"; then 2285 cross_defines="CROSS=-DCROSS_COMPILE" 2286 cross_compiling="yes" 2287 echo "cross compiling from $host to $target .." 2288# Extract the first word of ""${CC_TARGET}-/usr/local/bin/clang80"", so it can be a program name with args. 2289set dummy "${CC_TARGET}-/usr/local/bin/clang80"; ac_word=$2 2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2291$as_echo_n "checking for $ac_word... " >&6; } 2292if test "${ac_cv_prog_CC+set}" = set; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 if test -n "$CC"; then 2296 ac_cv_prog_CC="$CC" # Let the user override the test. 2297else 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 for ac_exec_ext in '' $ac_executable_extensions; do 2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2305 ac_cv_prog_CC=""${CC_TARGET}-/usr/local/bin/clang80"" 2306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2307 break 2 2308 fi 2309done 2310 done 2311IFS=$as_save_IFS 2312 2313 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="/usr/local/bin/clang80" 2314fi 2315fi 2316CC=$ac_cv_prog_CC 2317if test -n "$CC"; then 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2319$as_echo "$CC" >&6; } 2320else 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2322$as_echo "no" >&6; } 2323fi 2324 2325 2326# Extract the first word of ""${CC_TARGET}-ranlib"", so it can be a program name with args. 2327set dummy "${CC_TARGET}-ranlib"; ac_word=$2 2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2329$as_echo_n "checking for $ac_word... " >&6; } 2330if test "${ac_cv_prog_RANLIB+set}" = set; then : 2331 $as_echo_n "(cached) " >&6 2332else 2333 if test -n "$RANLIB"; then 2334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2335else 2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 for ac_exec_ext in '' $ac_executable_extensions; do 2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2343 ac_cv_prog_RANLIB=""${CC_TARGET}-ranlib"" 2344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2345 break 2 2346 fi 2347done 2348 done 2349IFS=$as_save_IFS 2350 2351 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib" 2352fi 2353fi 2354RANLIB=$ac_cv_prog_RANLIB 2355if test -n "$RANLIB"; then 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 2357$as_echo "$RANLIB" >&6; } 2358else 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2360$as_echo "no" >&6; } 2361fi 2362 2363 2364# Extract the first word of ""${CC_TARGET}-ar"", so it can be a program name with args. 2365set dummy "${CC_TARGET}-ar"; ac_word=$2 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2367$as_echo_n "checking for $ac_word... " >&6; } 2368if test "${ac_cv_prog_AR+set}" = set; then : 2369 $as_echo_n "(cached) " >&6 2370else 2371 if test -n "$AR"; then 2372 ac_cv_prog_AR="$AR" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_AR=""${CC_TARGET}-ar"" 2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386 done 2387IFS=$as_save_IFS 2388 2389 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 2390fi 2391fi 2392AR=$ac_cv_prog_AR 2393if test -n "$AR"; then 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 2395$as_echo "$AR" >&6; } 2396else 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2398$as_echo "no" >&6; } 2399fi 2400 2401 2402# Extract the first word of ""${CC_TARGET}-dlltool"", so it can be a program name with args. 2403set dummy "${CC_TARGET}-dlltool"; ac_word=$2 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2405$as_echo_n "checking for $ac_word... " >&6; } 2406if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 if test -n "$DLLTOOL"; then 2410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 2411else 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2419 ac_cv_prog_DLLTOOL=""${CC_TARGET}-dlltool"" 2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2421 break 2 2422 fi 2423done 2424 done 2425IFS=$as_save_IFS 2426 2427 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool" 2428fi 2429fi 2430DLLTOOL=$ac_cv_prog_DLLTOOL 2431if test -n "$DLLTOOL"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 2433$as_echo "$DLLTOOL" >&6; } 2434else 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2436$as_echo "no" >&6; } 2437fi 2438 2439 2440 CC=${CC_TARGET}-/usr/local/bin/clang80 2441 LD=${CC_TARGET}-ld 2442 AR=${CC_TARGET}-ar 2443 RANLIB=${CC_TARGET}-ranlib 2444else 2445# Extract the first word of ""/usr/local/bin/clang80"", so it can be a program name with args. 2446set dummy "/usr/local/bin/clang80"; ac_word=$2 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2448$as_echo_n "checking for $ac_word... " >&6; } 2449if test "${ac_cv_prog_CC+set}" = set; then : 2450 $as_echo_n "(cached) " >&6 2451else 2452 if test -n "$CC"; then 2453 ac_cv_prog_CC="$CC" # Let the user override the test. 2454else 2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456for as_dir in $PATH 2457do 2458 IFS=$as_save_IFS 2459 test -z "$as_dir" && as_dir=. 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2462 ac_cv_prog_CC=""/usr/local/bin/clang80"" 2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2464 break 2 2465 fi 2466done 2467 done 2468IFS=$as_save_IFS 2469 2470 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="/usr/local/bin/clang80" 2471fi 2472fi 2473CC=$ac_cv_prog_CC 2474if test -n "$CC"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2476$as_echo "$CC" >&6; } 2477else 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2479$as_echo "no" >&6; } 2480fi 2481 2482 2483# Extract the first word of ""ranlib"", so it can be a program name with args. 2484set dummy "ranlib"; ac_word=$2 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if test "${ac_cv_prog_RANLIB+set}" = set; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$RANLIB"; then 2491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2500 ac_cv_prog_RANLIB=""ranlib"" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505 done 2506IFS=$as_save_IFS 2507 2508 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib" 2509fi 2510fi 2511RANLIB=$ac_cv_prog_RANLIB 2512if test -n "$RANLIB"; then 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 2514$as_echo "$RANLIB" >&6; } 2515else 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2517$as_echo "no" >&6; } 2518fi 2519 2520 2521# Extract the first word of ""ar"", so it can be a program name with args. 2522set dummy "ar"; ac_word=$2 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2524$as_echo_n "checking for $ac_word... " >&6; } 2525if test "${ac_cv_prog_AR+set}" = set; then : 2526 $as_echo_n "(cached) " >&6 2527else 2528 if test -n "$AR"; then 2529 ac_cv_prog_AR="$AR" # Let the user override the test. 2530else 2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 test -z "$as_dir" && as_dir=. 2536 for ac_exec_ext in '' $ac_executable_extensions; do 2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2538 ac_cv_prog_AR=""ar"" 2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2540 break 2 2541 fi 2542done 2543 done 2544IFS=$as_save_IFS 2545 2546 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 2547fi 2548fi 2549AR=$ac_cv_prog_AR 2550if test -n "$AR"; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 2552$as_echo "$AR" >&6; } 2553else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2555$as_echo "no" >&6; } 2556fi 2557 2558 2559# Extract the first word of ""dlltool"", so it can be a program name with args. 2560set dummy "dlltool"; ac_word=$2 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2562$as_echo_n "checking for $ac_word... " >&6; } 2563if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 2564 $as_echo_n "(cached) " >&6 2565else 2566 if test -n "$DLLTOOL"; then 2567 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 2568else 2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2570for as_dir in $PATH 2571do 2572 IFS=$as_save_IFS 2573 test -z "$as_dir" && as_dir=. 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2576 ac_cv_prog_DLLTOOL=""dlltool"" 2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2578 break 2 2579 fi 2580done 2581 done 2582IFS=$as_save_IFS 2583 2584 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool" 2585fi 2586fi 2587DLLTOOL=$ac_cv_prog_DLLTOOL 2588if test -n "$DLLTOOL"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 2590$as_echo "$DLLTOOL" >&6; } 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594fi 2595 2596 2597fi 2598 2599case "${host_cpu}" in 2600 i[45]86*) host_cpu=i386;; 2601 hppa1.1) host_cpu=hppa;; 2602esac 2603if test "x$cross_compiling" = "xyes"; then 2604 case "${target_cpu}" in 2605 i[45]86*) target_cpu=i386;; 2606 hppa1.1) target_cpu=hppa;; 2607 esac 2608else 2609 target_cpu=${host_cpu} 2610 target_os=${host_os} 2611 target_vendor=${host_vendor} 2612fi 2613case "x${target_os}" in 2614 xdragonfly*) target_os=dragonfly;; 2615 xfreebsd*) target_os=freebsd;; 2616esac 2617 2618# Assign the HOST variables for sharedlib.mak 2619HOST=$host 2620HOST_CPU=$host_cpu 2621HOST_VENDOR=$host_vendor 2622HOST_OS=$host_os 2623TARGET=$target 2624TARGET_CPU=$target_cpu 2625TARGET_VENDOR=$target_vendor 2626TARGET_OS=$target_os 2627 2628ac_ext=c 2629ac_cpp='$CPP $CPPFLAGS' 2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2632ac_compiler_gnu=$ac_cv_c_compiler_gnu 2633if test -n "$ac_tool_prefix"; then 2634 # Extract the first word of "${ac_tool_prefix}/usr/local/bin/clang80", so it can be a program name with args. 2635set dummy ${ac_tool_prefix}/usr/local/bin/clang80; ac_word=$2 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2637$as_echo_n "checking for $ac_word... " >&6; } 2638if test "${ac_cv_prog_CC+set}" = set; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 if test -n "$CC"; then 2642 ac_cv_prog_CC="$CC" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2651 ac_cv_prog_CC="${ac_tool_prefix}/usr/local/bin/clang80" 2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656 done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661CC=$ac_cv_prog_CC 2662if test -n "$CC"; then 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2664$as_echo "$CC" >&6; } 2665else 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2667$as_echo "no" >&6; } 2668fi 2669 2670 2671fi 2672if test -z "$ac_cv_prog_CC"; then 2673 ac_ct_CC=$CC 2674 # Extract the first word of "/usr/local/bin/clang80", so it can be a program name with args. 2675set dummy /usr/local/bin/clang80; ac_word=$2 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$ac_ct_CC"; then 2682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2691 ac_cv_prog_ac_ct_CC="/usr/local/bin/clang80" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700fi 2701ac_ct_CC=$ac_cv_prog_ac_ct_CC 2702if test -n "$ac_ct_CC"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2704$as_echo "$ac_ct_CC" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 if test "x$ac_ct_CC" = x; then 2711 CC="" 2712 else 2713 case $cross_compiling:$ac_tool_warned in 2714yes:) 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2717ac_tool_warned=yes ;; 2718esac 2719 CC=$ac_ct_CC 2720 fi 2721else 2722 CC="$ac_cv_prog_CC" 2723fi 2724 2725if test -z "$CC"; then 2726 if test -n "$ac_tool_prefix"; then 2727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2728set dummy ${ac_tool_prefix}cc; ac_word=$2 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2730$as_echo_n "checking for $ac_word... " >&6; } 2731if test "${ac_cv_prog_CC+set}" = set; then : 2732 $as_echo_n "(cached) " >&6 2733else 2734 if test -n "$CC"; then 2735 ac_cv_prog_CC="$CC" # Let the user override the test. 2736else 2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2738for as_dir in $PATH 2739do 2740 IFS=$as_save_IFS 2741 test -z "$as_dir" && as_dir=. 2742 for ac_exec_ext in '' $ac_executable_extensions; do 2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2744 ac_cv_prog_CC="${ac_tool_prefix}cc" 2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2746 break 2 2747 fi 2748done 2749 done 2750IFS=$as_save_IFS 2751 2752fi 2753fi 2754CC=$ac_cv_prog_CC 2755if test -n "$CC"; then 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2757$as_echo "$CC" >&6; } 2758else 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2760$as_echo "no" >&6; } 2761fi 2762 2763 2764 fi 2765fi 2766if test -z "$CC"; then 2767 # Extract the first word of "cc", so it can be a program name with args. 2768set dummy cc; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if test "${ac_cv_prog_CC+set}" = set; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777 ac_prog_rejected=no 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 test -z "$as_dir" && as_dir=. 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2786 ac_prog_rejected=yes 2787 continue 2788 fi 2789 ac_cv_prog_CC="cc" 2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793done 2794 done 2795IFS=$as_save_IFS 2796 2797if test $ac_prog_rejected = yes; then 2798 # We found a bogon in the path, so make sure we never use it. 2799 set dummy $ac_cv_prog_CC 2800 shift 2801 if test $# != 0; then 2802 # We chose a different compiler from the bogus one. 2803 # However, it has the same basename, so the bogon will be chosen 2804 # first if we set CC to just the basename; use the full file name. 2805 shift 2806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2807 fi 2808fi 2809fi 2810fi 2811CC=$ac_cv_prog_CC 2812if test -n "$CC"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2814$as_echo "$CC" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 2821fi 2822if test -z "$CC"; then 2823 if test -n "$ac_tool_prefix"; then 2824 for ac_prog in cl.exe 2825 do 2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2827set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829$as_echo_n "checking for $ac_word... " >&6; } 2830if test "${ac_cv_prog_CC+set}" = set; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 if test -n "$CC"; then 2834 ac_cv_prog_CC="$CC" # Let the user override the test. 2835else 2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837for as_dir in $PATH 2838do 2839 IFS=$as_save_IFS 2840 test -z "$as_dir" && as_dir=. 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847done 2848 done 2849IFS=$as_save_IFS 2850 2851fi 2852fi 2853CC=$ac_cv_prog_CC 2854if test -n "$CC"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2856$as_echo "$CC" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 2863 test -n "$CC" && break 2864 done 2865fi 2866if test -z "$CC"; then 2867 ac_ct_CC=$CC 2868 for ac_prog in cl.exe 2869do 2870 # Extract the first word of "$ac_prog", so it can be a program name with args. 2871set dummy $ac_prog; ac_word=$2 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873$as_echo_n "checking for $ac_word... " >&6; } 2874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2875 $as_echo_n "(cached) " >&6 2876else 2877 if test -n "$ac_ct_CC"; then 2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2879else 2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2881for as_dir in $PATH 2882do 2883 IFS=$as_save_IFS 2884 test -z "$as_dir" && as_dir=. 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2887 ac_cv_prog_ac_ct_CC="$ac_prog" 2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2889 break 2 2890 fi 2891done 2892 done 2893IFS=$as_save_IFS 2894 2895fi 2896fi 2897ac_ct_CC=$ac_cv_prog_ac_ct_CC 2898if test -n "$ac_ct_CC"; then 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2900$as_echo "$ac_ct_CC" >&6; } 2901else 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2903$as_echo "no" >&6; } 2904fi 2905 2906 2907 test -n "$ac_ct_CC" && break 2908done 2909 2910 if test "x$ac_ct_CC" = x; then 2911 CC="" 2912 else 2913 case $cross_compiling:$ac_tool_warned in 2914yes:) 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2917ac_tool_warned=yes ;; 2918esac 2919 CC=$ac_ct_CC 2920 fi 2921fi 2922 2923fi 2924 2925 2926test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2928as_fn_error $? "no acceptable C compiler found in \$PATH 2929See \`config.log' for more details" "$LINENO" 5 ; } 2930 2931# Provide some information about the compiler. 2932$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2933set X $ac_compile 2934ac_compiler=$2 2935for ac_option in --version -v -V -qversion; do 2936 { { ac_try="$ac_compiler $ac_option >&5" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2942$as_echo "$ac_try_echo"; } >&5 2943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2944 ac_status=$? 2945 if test -s conftest.err; then 2946 sed '10a\ 2947... rest of stderr output deleted ... 2948 10q' conftest.err >conftest.er1 2949 cat conftest.er1 >&5 2950 fi 2951 rm -f conftest.er1 conftest.err 2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2953 test $ac_status = 0; } 2954done 2955 2956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2957/* end confdefs.h. */ 2958 2959int 2960main () 2961{ 2962 2963 ; 2964 return 0; 2965} 2966_ACEOF 2967ac_clean_files_save=$ac_clean_files 2968ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2969# Try to create an executable without -o first, disregard a.out. 2970# It will help us diagnose broken compilers, and finding out an intuition 2971# of exeext. 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2973$as_echo_n "checking whether the C compiler works... " >&6; } 2974ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2975 2976# The possible output files: 2977ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2978 2979ac_rmfiles= 2980for ac_file in $ac_files 2981do 2982 case $ac_file in 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2985 esac 2986done 2987rm -f $ac_rmfiles 2988 2989if { { ac_try="$ac_link_default" 2990case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2995$as_echo "$ac_try_echo"; } >&5 2996 (eval "$ac_link_default") 2>&5 2997 ac_status=$? 2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2999 test $ac_status = 0; }; then : 3000 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3001# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3002# in a Makefile. We should not override ac_cv_exeext if it was cached, 3003# so that the user can short-circuit this test for compilers unknown to 3004# Autoconf. 3005for ac_file in $ac_files '' 3006do 3007 test -f "$ac_file" || continue 3008 case $ac_file in 3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3010 ;; 3011 [ab].out ) 3012 # We found the default executable, but exeext='' is most 3013 # certainly right. 3014 break;; 3015 *.* ) 3016 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3017 then :; else 3018 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3019 fi 3020 # We set ac_cv_exeext here because the later test for it is not 3021 # safe: cross compilers may not add the suffix if given an `-o' 3022 # argument, so we may need to know it at that point already. 3023 # Even if this section looks crufty: it has the advantage of 3024 # actually working. 3025 break;; 3026 * ) 3027 break;; 3028 esac 3029done 3030test "$ac_cv_exeext" = no && ac_cv_exeext= 3031 3032else 3033 ac_file='' 3034fi 3035if test -z "$ac_file"; then : 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037$as_echo "no" >&6; } 3038$as_echo "$as_me: failed program was:" >&5 3039sed 's/^/| /' conftest.$ac_ext >&5 3040 3041{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3043as_fn_error 77 "C compiler cannot create executables 3044See \`config.log' for more details" "$LINENO" 5 ; } 3045else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3047$as_echo "yes" >&6; } 3048fi 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3050$as_echo_n "checking for C compiler default output file name... " >&6; } 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3052$as_echo "$ac_file" >&6; } 3053ac_exeext=$ac_cv_exeext 3054 3055rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3056ac_clean_files=$ac_clean_files_save 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3058$as_echo_n "checking for suffix of executables... " >&6; } 3059if { { ac_try="$ac_link" 3060case "(($ac_try" in 3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3062 *) ac_try_echo=$ac_try;; 3063esac 3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3065$as_echo "$ac_try_echo"; } >&5 3066 (eval "$ac_link") 2>&5 3067 ac_status=$? 3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3069 test $ac_status = 0; }; then : 3070 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3071# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3072# work properly (i.e., refer to `conftest.exe'), while it won't with 3073# `rm'. 3074for ac_file in conftest.exe conftest conftest.*; do 3075 test -f "$ac_file" || continue 3076 case $ac_file in 3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3079 break;; 3080 * ) break;; 3081 esac 3082done 3083else 3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3086as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3087See \`config.log' for more details" "$LINENO" 5 ; } 3088fi 3089rm -f conftest conftest$ac_cv_exeext 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3091$as_echo "$ac_cv_exeext" >&6; } 3092 3093rm -f conftest.$ac_ext 3094EXEEXT=$ac_cv_exeext 3095ac_exeext=$EXEEXT 3096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3097/* end confdefs.h. */ 3098#include <stdio.h> 3099int 3100main () 3101{ 3102FILE *f = fopen ("conftest.out", "w"); 3103 return ferror (f) || fclose (f) != 0; 3104 3105 ; 3106 return 0; 3107} 3108_ACEOF 3109ac_clean_files="$ac_clean_files conftest.out" 3110# Check that the compiler produces executables we can run. If not, either 3111# the compiler is broken, or we cross compile. 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3113$as_echo_n "checking whether we are cross compiling... " >&6; } 3114if test "$cross_compiling" != yes; then 3115 { { ac_try="$ac_link" 3116case "(($ac_try" in 3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3118 *) ac_try_echo=$ac_try;; 3119esac 3120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3121$as_echo "$ac_try_echo"; } >&5 3122 (eval "$ac_link") 2>&5 3123 ac_status=$? 3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3125 test $ac_status = 0; } 3126 if { ac_try='./conftest$ac_cv_exeext' 3127 { { case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3132$as_echo "$ac_try_echo"; } >&5 3133 (eval "$ac_try") 2>&5 3134 ac_status=$? 3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3136 test $ac_status = 0; }; }; then 3137 cross_compiling=no 3138 else 3139 if test "$cross_compiling" = maybe; then 3140 cross_compiling=yes 3141 else 3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3144as_fn_error $? "cannot run C compiled programs. 3145If you meant to cross compile, use \`--host'. 3146See \`config.log' for more details" "$LINENO" 5 ; } 3147 fi 3148 fi 3149fi 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3151$as_echo "$cross_compiling" >&6; } 3152 3153rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3154ac_clean_files=$ac_clean_files_save 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3156$as_echo_n "checking for suffix of object files... " >&6; } 3157if test "${ac_cv_objext+set}" = set; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3161/* end confdefs.h. */ 3162 3163int 3164main () 3165{ 3166 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171rm -f conftest.o conftest.obj 3172if { { ac_try="$ac_compile" 3173case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176esac 3177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3178$as_echo "$ac_try_echo"; } >&5 3179 (eval "$ac_compile") 2>&5 3180 ac_status=$? 3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3182 test $ac_status = 0; }; then : 3183 for ac_file in conftest.o conftest.obj conftest.*; do 3184 test -f "$ac_file" || continue; 3185 case $ac_file in 3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3187 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3188 break;; 3189 esac 3190done 3191else 3192 $as_echo "$as_me: failed program was:" >&5 3193sed 's/^/| /' conftest.$ac_ext >&5 3194 3195{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3197as_fn_error $? "cannot compute suffix of object files: cannot compile 3198See \`config.log' for more details" "$LINENO" 5 ; } 3199fi 3200rm -f conftest.$ac_cv_objext conftest.$ac_ext 3201fi 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3203$as_echo "$ac_cv_objext" >&6; } 3204OBJEXT=$ac_cv_objext 3205ac_objext=$OBJEXT 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3207$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3208if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3209 $as_echo_n "(cached) " >&6 3210else 3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212/* end confdefs.h. */ 3213 3214int 3215main () 3216{ 3217#ifndef __GNUC__ 3218 choke me 3219#endif 3220 3221 ; 3222 return 0; 3223} 3224_ACEOF 3225if ac_fn_c_try_compile "$LINENO"; then : 3226 ac_compiler_gnu=yes 3227else 3228 ac_compiler_gnu=no 3229fi 3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3231ac_cv_c_compiler_gnu=$ac_compiler_gnu 3232 3233fi 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3235$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3236if test $ac_compiler_gnu = yes; then 3237 GCC=yes 3238else 3239 GCC= 3240fi 3241ac_test_CFLAGS=${CFLAGS+set} 3242ac_save_CFLAGS=$CFLAGS 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3244$as_echo_n "checking whether $CC accepts -g... " >&6; } 3245if test "${ac_cv_prog_cc_g+set}" = set; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 ac_save_c_werror_flag=$ac_c_werror_flag 3249 ac_c_werror_flag=yes 3250 ac_cv_prog_cc_g=no 3251 CFLAGS="-g" 3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3253/* end confdefs.h. */ 3254 3255int 3256main () 3257{ 3258 3259 ; 3260 return 0; 3261} 3262_ACEOF 3263if ac_fn_c_try_compile "$LINENO"; then : 3264 ac_cv_prog_cc_g=yes 3265else 3266 CFLAGS="" 3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278if ac_fn_c_try_compile "$LINENO"; then : 3279 3280else 3281 ac_c_werror_flag=$ac_save_c_werror_flag 3282 CFLAGS="-g" 3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294if ac_fn_c_try_compile "$LINENO"; then : 3295 ac_cv_prog_cc_g=yes 3296fi 3297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3298fi 3299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3300fi 3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3302 ac_c_werror_flag=$ac_save_c_werror_flag 3303fi 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3305$as_echo "$ac_cv_prog_cc_g" >&6; } 3306if test "$ac_test_CFLAGS" = set; then 3307 CFLAGS=$ac_save_CFLAGS 3308elif test $ac_cv_prog_cc_g = yes; then 3309 if test "$GCC" = yes; then 3310 CFLAGS="-g -O2" 3311 else 3312 CFLAGS="-g" 3313 fi 3314else 3315 if test "$GCC" = yes; then 3316 CFLAGS="-O2" 3317 else 3318 CFLAGS= 3319 fi 3320fi 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3322$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3323if test "${ac_cv_prog_cc_c89+set}" = set; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 ac_cv_prog_cc_c89=no 3327ac_save_CC=$CC 3328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3329/* end confdefs.h. */ 3330#include <stdarg.h> 3331#include <stdio.h> 3332#include <sys/types.h> 3333#include <sys/stat.h> 3334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3335struct buf { int x; }; 3336FILE * (*rcsopen) (struct buf *, struct stat *, int); 3337static char *e (p, i) 3338 char **p; 3339 int i; 3340{ 3341 return p[i]; 3342} 3343static char *f (char * (*g) (char **, int), char **p, ...) 3344{ 3345 char *s; 3346 va_list v; 3347 va_start (v,p); 3348 s = g (p, va_arg (v,int)); 3349 va_end (v); 3350 return s; 3351} 3352 3353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3354 function prototypes and stuff, but not '\xHH' hex character constants. 3355 These don't provoke an error unfortunately, instead are silently treated 3356 as 'x'. The following induces an error, until -std is added to get 3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3358 array size at least. It's necessary to write '\x00'==0 to get something 3359 that's true only with -std. */ 3360int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3361 3362/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3363 inside strings and character constants. */ 3364#define FOO(x) 'x' 3365int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3366 3367int test (int i, double x); 3368struct s1 {int (*f) (int a);}; 3369struct s2 {int (*f) (double a);}; 3370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3371int argc; 3372char **argv; 3373int 3374main () 3375{ 3376return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3377 ; 3378 return 0; 3379} 3380_ACEOF 3381for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3383do 3384 CC="$ac_save_CC $ac_arg" 3385 if ac_fn_c_try_compile "$LINENO"; then : 3386 ac_cv_prog_cc_c89=$ac_arg 3387fi 3388rm -f core conftest.err conftest.$ac_objext 3389 test "x$ac_cv_prog_cc_c89" != "xno" && break 3390done 3391rm -f conftest.$ac_ext 3392CC=$ac_save_CC 3393 3394fi 3395# AC_CACHE_VAL 3396case "x$ac_cv_prog_cc_c89" in 3397 x) 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3399$as_echo "none needed" >&6; } ;; 3400 xno) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3402$as_echo "unsupported" >&6; } ;; 3403 *) 3404 CC="$CC $ac_cv_prog_cc_c89" 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3406$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3407esac 3408if test "x$ac_cv_prog_cc_c89" != xno; then : 3409 3410fi 3411 3412ac_ext=c 3413ac_cpp='$CPP $CPPFLAGS' 3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3416ac_compiler_gnu=$ac_cv_c_compiler_gnu 3417 3418 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chown in -lnsl" >&5 3420$as_echo_n "checking for chown in -lnsl... " >&6; } 3421if test "${ac_cv_lib_nsl_chown+set}" = set; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 ac_check_lib_save_LIBS=$LIBS 3425LIBS="-lnsl $LIBS" 3426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428 3429/* Override any GCC internal prototype to avoid an error. 3430 Use char because int might match the return type of a GCC 3431 builtin and then its argument prototype would still apply. */ 3432#ifdef __cplusplus 3433extern "C" 3434#endif 3435char chown (); 3436int 3437main () 3438{ 3439return chown (); 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_link "$LINENO"; then : 3445 ac_cv_lib_nsl_chown=yes 3446else 3447 ac_cv_lib_nsl_chown=no 3448fi 3449rm -f core conftest.err conftest.$ac_objext \ 3450 conftest$ac_exeext conftest.$ac_ext 3451LIBS=$ac_check_lib_save_LIBS 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_chown" >&5 3454$as_echo "$ac_cv_lib_nsl_chown" >&6; } 3455if test "x$ac_cv_lib_nsl_chown" = x""yes; then : 3456 cat >>confdefs.h <<_ACEOF 3457#define HAVE_LIBNSL 1 3458_ACEOF 3459 3460 LIBS="-lnsl $LIBS" 3461 3462fi 3463 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept in -lsocket" >&5 3465$as_echo_n "checking for accept in -lsocket... " >&6; } 3466if test "${ac_cv_lib_socket_accept+set}" = set; then : 3467 $as_echo_n "(cached) " >&6 3468else 3469 ac_check_lib_save_LIBS=$LIBS 3470LIBS="-lsocket $LIBS" 3471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473 3474/* Override any GCC internal prototype to avoid an error. 3475 Use char because int might match the return type of a GCC 3476 builtin and then its argument prototype would still apply. */ 3477#ifdef __cplusplus 3478extern "C" 3479#endif 3480char accept (); 3481int 3482main () 3483{ 3484return accept (); 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489if ac_fn_c_try_link "$LINENO"; then : 3490 ac_cv_lib_socket_accept=yes 3491else 3492 ac_cv_lib_socket_accept=no 3493fi 3494rm -f core conftest.err conftest.$ac_objext \ 3495 conftest$ac_exeext conftest.$ac_ext 3496LIBS=$ac_check_lib_save_LIBS 3497fi 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_accept" >&5 3499$as_echo "$ac_cv_lib_socket_accept" >&6; } 3500if test "x$ac_cv_lib_socket_accept" = x""yes; then : 3501 cat >>confdefs.h <<_ACEOF 3502#define HAVE_LIBSOCKET 1 3503_ACEOF 3504 3505 LIBS="-lsocket $LIBS" 3506 3507fi 3508 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in -lwsock32" >&5 3510$as_echo_n "checking for in -lwsock32... " >&6; } 3511if test "${ac_cv_lib_wsock32_+set}" = set; then : 3512 $as_echo_n "(cached) " >&6 3513else 3514 ac_check_lib_save_LIBS=$LIBS 3515LIBS="-lwsock32 $LIBS" 3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519/* Override any GCC internal prototype to avoid an error. 3520 Use char because int might match the return type of a GCC 3521 builtin and then its argument prototype would still apply. */ 3522#ifdef __cplusplus 3523extern "C" 3524#endif 3525char (); 3526int 3527main () 3528{ 3529return (); 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534if ac_fn_c_try_link "$LINENO"; then : 3535 ac_cv_lib_wsock32_=yes 3536else 3537 ac_cv_lib_wsock32_=no 3538fi 3539rm -f core conftest.err conftest.$ac_objext \ 3540 conftest$ac_exeext conftest.$ac_ext 3541LIBS=$ac_check_lib_save_LIBS 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_" >&5 3544$as_echo "$ac_cv_lib_wsock32_" >&6; } 3545if test "x$ac_cv_lib_wsock32_" = x""yes; then : 3546 cat >>confdefs.h <<_ACEOF 3547#define HAVE_LIBWSOCK32 1 3548_ACEOF 3549 3550 LIBS="-lwsock32 $LIBS" 3551 3552fi 3553 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in -ladvapi32" >&5 3555$as_echo_n "checking for in -ladvapi32... " >&6; } 3556if test "${ac_cv_lib_advapi32_+set}" = set; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_check_lib_save_LIBS=$LIBS 3560LIBS="-ladvapi32 $LIBS" 3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563 3564/* Override any GCC internal prototype to avoid an error. 3565 Use char because int might match the return type of a GCC 3566 builtin and then its argument prototype would still apply. */ 3567#ifdef __cplusplus 3568extern "C" 3569#endif 3570char (); 3571int 3572main () 3573{ 3574return (); 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579if ac_fn_c_try_link "$LINENO"; then : 3580 ac_cv_lib_advapi32_=yes 3581else 3582 ac_cv_lib_advapi32_=no 3583fi 3584rm -f core conftest.err conftest.$ac_objext \ 3585 conftest$ac_exeext conftest.$ac_ext 3586LIBS=$ac_check_lib_save_LIBS 3587fi 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_" >&5 3589$as_echo "$ac_cv_lib_advapi32_" >&6; } 3590if test "x$ac_cv_lib_advapi32_" = x""yes; then : 3591 cat >>confdefs.h <<_ACEOF 3592#define HAVE_LIBADVAPI32 1 3593_ACEOF 3594 3595 LIBS="-ladvapi32 $LIBS" 3596 3597fi 3598 3599 3600ac_header_dirent=no 3601for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3602 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 3604$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 3605if eval "test \"\${$as_ac_Header+set}\"" = set; then : 3606 $as_echo_n "(cached) " >&6 3607else 3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610#include <sys/types.h> 3611#include <$ac_hdr> 3612 3613int 3614main () 3615{ 3616if ((DIR *) 0) 3617return 0; 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622if ac_fn_c_try_compile "$LINENO"; then : 3623 eval "$as_ac_Header=yes" 3624else 3625 eval "$as_ac_Header=no" 3626fi 3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3628fi 3629eval ac_res=\$$as_ac_Header 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3631$as_echo "$ac_res" >&6; } 3632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3633 cat >>confdefs.h <<_ACEOF 3634#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3635_ACEOF 3636 3637ac_header_dirent=$ac_hdr; break 3638fi 3639 3640done 3641# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3642if test $ac_header_dirent = dirent.h; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 3644$as_echo_n "checking for library containing opendir... " >&6; } 3645if test "${ac_cv_search_opendir+set}" = set; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 ac_func_search_save_LIBS=$LIBS 3649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3650/* end confdefs.h. */ 3651 3652/* Override any GCC internal prototype to avoid an error. 3653 Use char because int might match the return type of a GCC 3654 builtin and then its argument prototype would still apply. */ 3655#ifdef __cplusplus 3656extern "C" 3657#endif 3658char opendir (); 3659int 3660main () 3661{ 3662return opendir (); 3663 ; 3664 return 0; 3665} 3666_ACEOF 3667for ac_lib in '' dir; do 3668 if test -z "$ac_lib"; then 3669 ac_res="none required" 3670 else 3671 ac_res=-l$ac_lib 3672 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3673 fi 3674 if ac_fn_c_try_link "$LINENO"; then : 3675 ac_cv_search_opendir=$ac_res 3676fi 3677rm -f core conftest.err conftest.$ac_objext \ 3678 conftest$ac_exeext 3679 if test "${ac_cv_search_opendir+set}" = set; then : 3680 break 3681fi 3682done 3683if test "${ac_cv_search_opendir+set}" = set; then : 3684 3685else 3686 ac_cv_search_opendir=no 3687fi 3688rm conftest.$ac_ext 3689LIBS=$ac_func_search_save_LIBS 3690fi 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 3692$as_echo "$ac_cv_search_opendir" >&6; } 3693ac_res=$ac_cv_search_opendir 3694if test "$ac_res" != no; then : 3695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3696 3697fi 3698 3699else 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 3701$as_echo_n "checking for library containing opendir... " >&6; } 3702if test "${ac_cv_search_opendir+set}" = set; then : 3703 $as_echo_n "(cached) " >&6 3704else 3705 ac_func_search_save_LIBS=$LIBS 3706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707/* end confdefs.h. */ 3708 3709/* Override any GCC internal prototype to avoid an error. 3710 Use char because int might match the return type of a GCC 3711 builtin and then its argument prototype would still apply. */ 3712#ifdef __cplusplus 3713extern "C" 3714#endif 3715char opendir (); 3716int 3717main () 3718{ 3719return opendir (); 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724for ac_lib in '' x; do 3725 if test -z "$ac_lib"; then 3726 ac_res="none required" 3727 else 3728 ac_res=-l$ac_lib 3729 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3730 fi 3731 if ac_fn_c_try_link "$LINENO"; then : 3732 ac_cv_search_opendir=$ac_res 3733fi 3734rm -f core conftest.err conftest.$ac_objext \ 3735 conftest$ac_exeext 3736 if test "${ac_cv_search_opendir+set}" = set; then : 3737 break 3738fi 3739done 3740if test "${ac_cv_search_opendir+set}" = set; then : 3741 3742else 3743 ac_cv_search_opendir=no 3744fi 3745rm conftest.$ac_ext 3746LIBS=$ac_func_search_save_LIBS 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 3749$as_echo "$ac_cv_search_opendir" >&6; } 3750ac_res=$ac_cv_search_opendir 3751if test "$ac_res" != no; then : 3752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3753 3754fi 3755 3756fi 3757 3758ac_ext=c 3759ac_cpp='$CPP $CPPFLAGS' 3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3764$as_echo_n "checking how to run the C preprocessor... " >&6; } 3765# On Suns, sometimes $CPP names a directory. 3766if test -n "$CPP" && test -d "$CPP"; then 3767 CPP= 3768fi 3769if test -z "$CPP"; then 3770 if test "${ac_cv_prog_CPP+set}" = set; then : 3771 $as_echo_n "(cached) " >&6 3772else 3773 # Double quotes because CPP needs to be expanded 3774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3775 do 3776 ac_preproc_ok=false 3777for ac_c_preproc_warn_flag in '' yes 3778do 3779 # Use a header file that comes with /usr/local/bin/clang80, so configuring glibc 3780 # with a fresh cross-compiler works. 3781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3782 # <limits.h> exists even on freestanding compilers. 3783 # On the NeXT, cc -E runs the code through the compiler's parser, 3784 # not just through cpp. "Syntax error" is here to catch this case. 3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787#ifdef __STDC__ 3788# include <limits.h> 3789#else 3790# include <assert.h> 3791#endif 3792 Syntax error 3793_ACEOF 3794if ac_fn_c_try_cpp "$LINENO"; then : 3795 3796else 3797 # Broken: fails on valid input. 3798continue 3799fi 3800rm -f conftest.err conftest.i conftest.$ac_ext 3801 3802 # OK, works on sane cases. Now check whether nonexistent headers 3803 # can be detected and how. 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806#include <ac_nonexistent.h> 3807_ACEOF 3808if ac_fn_c_try_cpp "$LINENO"; then : 3809 # Broken: success on invalid input. 3810continue 3811else 3812 # Passes both tests. 3813ac_preproc_ok=: 3814break 3815fi 3816rm -f conftest.err conftest.i conftest.$ac_ext 3817 3818done 3819# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3820rm -f conftest.i conftest.err conftest.$ac_ext 3821if $ac_preproc_ok; then : 3822 break 3823fi 3824 3825 done 3826 ac_cv_prog_CPP=$CPP 3827 3828fi 3829 CPP=$ac_cv_prog_CPP 3830else 3831 ac_cv_prog_CPP=$CPP 3832fi 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3834$as_echo "$CPP" >&6; } 3835ac_preproc_ok=false 3836for ac_c_preproc_warn_flag in '' yes 3837do 3838 # Use a header file that comes with /usr/local/bin/clang80, so configuring glibc 3839 # with a fresh cross-compiler works. 3840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3841 # <limits.h> exists even on freestanding compilers. 3842 # On the NeXT, cc -E runs the code through the compiler's parser, 3843 # not just through cpp. "Syntax error" is here to catch this case. 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#ifdef __STDC__ 3847# include <limits.h> 3848#else 3849# include <assert.h> 3850#endif 3851 Syntax error 3852_ACEOF 3853if ac_fn_c_try_cpp "$LINENO"; then : 3854 3855else 3856 # Broken: fails on valid input. 3857continue 3858fi 3859rm -f conftest.err conftest.i conftest.$ac_ext 3860 3861 # OK, works on sane cases. Now check whether nonexistent headers 3862 # can be detected and how. 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865#include <ac_nonexistent.h> 3866_ACEOF 3867if ac_fn_c_try_cpp "$LINENO"; then : 3868 # Broken: success on invalid input. 3869continue 3870else 3871 # Passes both tests. 3872ac_preproc_ok=: 3873break 3874fi 3875rm -f conftest.err conftest.i conftest.$ac_ext 3876 3877done 3878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3879rm -f conftest.i conftest.err conftest.$ac_ext 3880if $ac_preproc_ok; then : 3881 3882else 3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3885as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3886See \`config.log' for more details" "$LINENO" 5 ; } 3887fi 3888 3889ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894 3895 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3897$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3898if test "${ac_cv_path_GREP+set}" = set; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -z "$GREP"; then 3902 ac_path_GREP_found=false 3903 # Loop through the user's path and test for each of PROGNAME-LIST 3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3906do 3907 IFS=$as_save_IFS 3908 test -z "$as_dir" && as_dir=. 3909 for ac_prog in grep ggrep; do 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3912 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3913# Check for GNU ac_path_GREP and select it if it is found. 3914 # Check for GNU $ac_path_GREP 3915case `"$ac_path_GREP" --version 2>&1` in 3916*GNU*) 3917 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3918*) 3919 ac_count=0 3920 $as_echo_n 0123456789 >"conftest.in" 3921 while : 3922 do 3923 cat "conftest.in" "conftest.in" >"conftest.tmp" 3924 mv "conftest.tmp" "conftest.in" 3925 cp "conftest.in" "conftest.nl" 3926 $as_echo 'GREP' >> "conftest.nl" 3927 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3929 as_fn_arith $ac_count + 1 && ac_count=$as_val 3930 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3931 # Best one so far, save it but keep looking for a better one 3932 ac_cv_path_GREP="$ac_path_GREP" 3933 ac_path_GREP_max=$ac_count 3934 fi 3935 # 10*(2^10) chars as input seems more than enough 3936 test $ac_count -gt 10 && break 3937 done 3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3939esac 3940 3941 $ac_path_GREP_found && break 3 3942 done 3943 done 3944 done 3945IFS=$as_save_IFS 3946 if test -z "$ac_cv_path_GREP"; then 3947 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3948 fi 3949else 3950 ac_cv_path_GREP=$GREP 3951fi 3952 3953fi 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3955$as_echo "$ac_cv_path_GREP" >&6; } 3956 GREP="$ac_cv_path_GREP" 3957 3958 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3960$as_echo_n "checking for egrep... " >&6; } 3961if test "${ac_cv_path_EGREP+set}" = set; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3965 then ac_cv_path_EGREP="$GREP -E" 3966 else 3967 if test -z "$EGREP"; then 3968 ac_path_EGREP_found=false 3969 # Loop through the user's path and test for each of PROGNAME-LIST 3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3972do 3973 IFS=$as_save_IFS 3974 test -z "$as_dir" && as_dir=. 3975 for ac_prog in egrep; do 3976 for ac_exec_ext in '' $ac_executable_extensions; do 3977 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3978 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3979# Check for GNU ac_path_EGREP and select it if it is found. 3980 # Check for GNU $ac_path_EGREP 3981case `"$ac_path_EGREP" --version 2>&1` in 3982*GNU*) 3983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3984*) 3985 ac_count=0 3986 $as_echo_n 0123456789 >"conftest.in" 3987 while : 3988 do 3989 cat "conftest.in" "conftest.in" >"conftest.tmp" 3990 mv "conftest.tmp" "conftest.in" 3991 cp "conftest.in" "conftest.nl" 3992 $as_echo 'EGREP' >> "conftest.nl" 3993 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3995 as_fn_arith $ac_count + 1 && ac_count=$as_val 3996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3997 # Best one so far, save it but keep looking for a better one 3998 ac_cv_path_EGREP="$ac_path_EGREP" 3999 ac_path_EGREP_max=$ac_count 4000 fi 4001 # 10*(2^10) chars as input seems more than enough 4002 test $ac_count -gt 10 && break 4003 done 4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4005esac 4006 4007 $ac_path_EGREP_found && break 3 4008 done 4009 done 4010 done 4011IFS=$as_save_IFS 4012 if test -z "$ac_cv_path_EGREP"; then 4013 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4014 fi 4015else 4016 ac_cv_path_EGREP=$EGREP 4017fi 4018 4019 fi 4020fi 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4022$as_echo "$ac_cv_path_EGREP" >&6; } 4023 EGREP="$ac_cv_path_EGREP" 4024 4025 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4027$as_echo_n "checking for ANSI C header files... " >&6; } 4028if test "${ac_cv_header_stdc+set}" = set; then : 4029 $as_echo_n "(cached) " >&6 4030else 4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4032/* end confdefs.h. */ 4033#include <stdlib.h> 4034#include <stdarg.h> 4035#include <string.h> 4036#include <float.h> 4037 4038int 4039main () 4040{ 4041 4042 ; 4043 return 0; 4044} 4045_ACEOF 4046if ac_fn_c_try_compile "$LINENO"; then : 4047 ac_cv_header_stdc=yes 4048else 4049 ac_cv_header_stdc=no 4050fi 4051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4052 4053if test $ac_cv_header_stdc = yes; then 4054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057#include <string.h> 4058 4059_ACEOF 4060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4061 $EGREP "memchr" >/dev/null 2>&1; then : 4062 4063else 4064 ac_cv_header_stdc=no 4065fi 4066rm -f conftest* 4067 4068fi 4069 4070if test $ac_cv_header_stdc = yes; then 4071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074#include <stdlib.h> 4075 4076_ACEOF 4077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4078 $EGREP "free" >/dev/null 2>&1; then : 4079 4080else 4081 ac_cv_header_stdc=no 4082fi 4083rm -f conftest* 4084 4085fi 4086 4087if test $ac_cv_header_stdc = yes; then 4088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4089 if test "$cross_compiling" = yes; then : 4090 : 4091else 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094#include <ctype.h> 4095#include <stdlib.h> 4096#if ((' ' & 0x0FF) == 0x020) 4097# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4098# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4099#else 4100# define ISLOWER(c) \ 4101 (('a' <= (c) && (c) <= 'i') \ 4102 || ('j' <= (c) && (c) <= 'r') \ 4103 || ('s' <= (c) && (c) <= 'z')) 4104# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4105#endif 4106 4107#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4108int 4109main () 4110{ 4111 int i; 4112 for (i = 0; i < 256; i++) 4113 if (XOR (islower (i), ISLOWER (i)) 4114 || toupper (i) != TOUPPER (i)) 4115 return 2; 4116 return 0; 4117} 4118_ACEOF 4119if ac_fn_c_try_run "$LINENO"; then : 4120 4121else 4122 ac_cv_header_stdc=no 4123fi 4124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4125 conftest.$ac_objext conftest.beam conftest.$ac_ext 4126fi 4127 4128fi 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4131$as_echo "$ac_cv_header_stdc" >&6; } 4132if test $ac_cv_header_stdc = yes; then 4133 4134$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4135 4136fi 4137 4138# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4139for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4140 inttypes.h stdint.h unistd.h 4141do : 4142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4143ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4144" 4145if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4146 cat >>confdefs.h <<_ACEOF 4147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4148_ACEOF 4149 4150fi 4151 4152done 4153 4154 4155for ac_header in dir.h libc.h time.h stdlib.h memory.h string.h strings.h sys/stat.h sys/fcntl.h fcntl.h sys/vfs.h sys/statfs.h sys/statvfs.h netinet/in.h windows.h winsock.h sys/socket.h Windows32/Sockets.h pwd.h process.h grp.h sys/param.h sys/file.h sys/errno.h sys/select.h sys/poll.h poll.h sys/time.h sys/types.h sys/ioctl.h sys/filio.h netdb.h unistd.h unistd.h limits.h 4156do : 4157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4158ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4159if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4160 cat >>confdefs.h <<_ACEOF 4161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4162_ACEOF 4163 4164fi 4165 4166done 4167 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4169$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4170if test "${ac_cv_header_sys_wait_h+set}" = set; then : 4171 $as_echo_n "(cached) " >&6 4172else 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175#include <sys/types.h> 4176#include <sys/wait.h> 4177#ifndef WEXITSTATUS 4178# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4179#endif 4180#ifndef WIFEXITED 4181# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4182#endif 4183 4184int 4185main () 4186{ 4187 int s; 4188 wait (&s); 4189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4190 ; 4191 return 0; 4192} 4193_ACEOF 4194if ac_fn_c_try_compile "$LINENO"; then : 4195 ac_cv_header_sys_wait_h=yes 4196else 4197 ac_cv_header_sys_wait_h=no 4198fi 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4202$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4203if test $ac_cv_header_sys_wait_h = yes; then 4204 4205$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4206 4207fi 4208 4209 4210for ac_func in memcpy getcwd kill poll isatty ttyname ttyname_r gethostbyname_r gethostbyaddr_r gethostent_r 4211do : 4212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4213ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4214if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4215 cat >>confdefs.h <<_ACEOF 4216#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4217_ACEOF 4218 4219fi 4220done 4221 4222 4223 4224 4225 for ac_header in $ac_header_list 4226do : 4227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4228ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4229" 4230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4231 cat >>confdefs.h <<_ACEOF 4232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4233_ACEOF 4234 4235fi 4236 4237done 4238 4239 4240 4241 4242 4243 4244 4245 4246for ac_func in getpagesize 4247do : 4248 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 4249if test "x$ac_cv_func_getpagesize" = x""yes; then : 4250 cat >>confdefs.h <<_ACEOF 4251#define HAVE_GETPAGESIZE 1 4252_ACEOF 4253 4254fi 4255done 4256 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 4258$as_echo_n "checking for working mmap... " >&6; } 4259if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 if test "$cross_compiling" = yes; then : 4263 ac_cv_func_mmap_fixed_mapped=no 4264else 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267$ac_includes_default 4268/* malloc might have been renamed as rpl_malloc. */ 4269#undef malloc 4270 4271/* Thanks to Mike Haertel and Jim Avera for this test. 4272 Here is a matrix of mmap possibilities: 4273 mmap private not fixed 4274 mmap private fixed at somewhere currently unmapped 4275 mmap private fixed at somewhere already mapped 4276 mmap shared not fixed 4277 mmap shared fixed at somewhere currently unmapped 4278 mmap shared fixed at somewhere already mapped 4279 For private mappings, we should verify that changes cannot be read() 4280 back from the file, nor mmap's back from the file at a different 4281 address. (There have been systems where private was not correctly 4282 implemented like the infamous i386 svr4.0, and systems where the 4283 VM page cache was not coherent with the file system buffer cache 4284 like early versions of FreeBSD and possibly contemporary NetBSD.) 4285 For shared mappings, we should conversely verify that changes get 4286 propagated back to all the places they're supposed to be. 4287 4288 Grep wants private fixed already mapped. 4289 The main things grep needs to know about mmap are: 4290 * does it exist and is it safe to write into the mmap'd area 4291 * how to use it (BSD variants) */ 4292 4293#include <fcntl.h> 4294#include <sys/mman.h> 4295 4296#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 4297char *malloc (); 4298#endif 4299 4300/* This mess was copied from the GNU getpagesize.h. */ 4301#ifndef HAVE_GETPAGESIZE 4302# ifdef _SC_PAGESIZE 4303# define getpagesize() sysconf(_SC_PAGESIZE) 4304# else /* no _SC_PAGESIZE */ 4305# ifdef HAVE_SYS_PARAM_H 4306# include <sys/param.h> 4307# ifdef EXEC_PAGESIZE 4308# define getpagesize() EXEC_PAGESIZE 4309# else /* no EXEC_PAGESIZE */ 4310# ifdef NBPG 4311# define getpagesize() NBPG * CLSIZE 4312# ifndef CLSIZE 4313# define CLSIZE 1 4314# endif /* no CLSIZE */ 4315# else /* no NBPG */ 4316# ifdef NBPC 4317# define getpagesize() NBPC 4318# else /* no NBPC */ 4319# ifdef PAGESIZE 4320# define getpagesize() PAGESIZE 4321# endif /* PAGESIZE */ 4322# endif /* no NBPC */ 4323# endif /* no NBPG */ 4324# endif /* no EXEC_PAGESIZE */ 4325# else /* no HAVE_SYS_PARAM_H */ 4326# define getpagesize() 8192 /* punt totally */ 4327# endif /* no HAVE_SYS_PARAM_H */ 4328# endif /* no _SC_PAGESIZE */ 4329 4330#endif /* no HAVE_GETPAGESIZE */ 4331 4332int 4333main () 4334{ 4335 char *data, *data2, *data3; 4336 const char *cdata2; 4337 int i, pagesize; 4338 int fd, fd2; 4339 4340 pagesize = getpagesize (); 4341 4342 /* First, make a file with some known garbage in it. */ 4343 data = (char *) malloc (pagesize); 4344 if (!data) 4345 return 1; 4346 for (i = 0; i < pagesize; ++i) 4347 *(data + i) = rand (); 4348 umask (0); 4349 fd = creat ("conftest.mmap", 0600); 4350 if (fd < 0) 4351 return 2; 4352 if (write (fd, data, pagesize) != pagesize) 4353 return 3; 4354 close (fd); 4355 4356 /* Next, check that the tail of a page is zero-filled. File must have 4357 non-zero length, otherwise we risk SIGBUS for entire page. */ 4358 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 4359 if (fd2 < 0) 4360 return 4; 4361 cdata2 = ""; 4362 if (write (fd2, cdata2, 1) != 1) 4363 return 5; 4364 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 4365 if (data2 == MAP_FAILED) 4366 return 6; 4367 for (i = 0; i < pagesize; ++i) 4368 if (*(data2 + i)) 4369 return 7; 4370 close (fd2); 4371 if (munmap (data2, pagesize)) 4372 return 8; 4373 4374 /* Next, try to mmap the file at a fixed address which already has 4375 something else allocated at it. If we can, also make sure that 4376 we see the same garbage. */ 4377 fd = open ("conftest.mmap", O_RDWR); 4378 if (fd < 0) 4379 return 9; 4380 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 4381 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 4382 return 10; 4383 for (i = 0; i < pagesize; ++i) 4384 if (*(data + i) != *(data2 + i)) 4385 return 11; 4386 4387 /* Finally, make sure that changes to the mapped area do not 4388 percolate back to the file as seen by read(). (This is a bug on 4389 some variants of i386 svr4.0.) */ 4390 for (i = 0; i < pagesize; ++i) 4391 *(data2 + i) = *(data2 + i) + 1; 4392 data3 = (char *) malloc (pagesize); 4393 if (!data3) 4394 return 12; 4395 if (read (fd, data3, pagesize) != pagesize) 4396 return 13; 4397 for (i = 0; i < pagesize; ++i) 4398 if (*(data + i) != *(data3 + i)) 4399 return 14; 4400 close (fd); 4401 return 0; 4402} 4403_ACEOF 4404if ac_fn_c_try_run "$LINENO"; then : 4405 ac_cv_func_mmap_fixed_mapped=yes 4406else 4407 ac_cv_func_mmap_fixed_mapped=no 4408fi 4409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4410 conftest.$ac_objext conftest.beam conftest.$ac_ext 4411fi 4412 4413fi 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 4415$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 4416if test $ac_cv_func_mmap_fixed_mapped = yes; then 4417 4418$as_echo "#define HAVE_MMAP 1" >>confdefs.h 4419 4420fi 4421rm -f conftest.mmap conftest.txt 4422 4423ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 4424if test "x$ac_cv_type_pid_t" = x""yes; then : 4425 4426else 4427 4428cat >>confdefs.h <<_ACEOF 4429#define pid_t int 4430_ACEOF 4431 4432fi 4433 4434for ac_header in vfork.h 4435do : 4436 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 4437if test "x$ac_cv_header_vfork_h" = x""yes; then : 4438 cat >>confdefs.h <<_ACEOF 4439#define HAVE_VFORK_H 1 4440_ACEOF 4441 4442fi 4443 4444done 4445 4446for ac_func in fork vfork 4447do : 4448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4449ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4450if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4451 cat >>confdefs.h <<_ACEOF 4452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4453_ACEOF 4454 4455fi 4456done 4457 4458if test "x$ac_cv_func_fork" = xyes; then 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 4460$as_echo_n "checking for working fork... " >&6; } 4461if test "${ac_cv_func_fork_works+set}" = set; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test "$cross_compiling" = yes; then : 4465 ac_cv_func_fork_works=cross 4466else 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4468/* end confdefs.h. */ 4469$ac_includes_default 4470int 4471main () 4472{ 4473 4474 /* By Ruediger Kuhlmann. */ 4475 return fork () < 0; 4476 4477 ; 4478 return 0; 4479} 4480_ACEOF 4481if ac_fn_c_try_run "$LINENO"; then : 4482 ac_cv_func_fork_works=yes 4483else 4484 ac_cv_func_fork_works=no 4485fi 4486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4487 conftest.$ac_objext conftest.beam conftest.$ac_ext 4488fi 4489 4490fi 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 4492$as_echo "$ac_cv_func_fork_works" >&6; } 4493 4494else 4495 ac_cv_func_fork_works=$ac_cv_func_fork 4496fi 4497if test "x$ac_cv_func_fork_works" = xcross; then 4498 case $host in 4499 *-*-amigaos* | *-*-msdosdjgpp*) 4500 # Override, as these systems have only a dummy fork() stub 4501 ac_cv_func_fork_works=no 4502 ;; 4503 *) 4504 ac_cv_func_fork_works=yes 4505 ;; 4506 esac 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 4508$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 4509fi 4510ac_cv_func_vfork_works=$ac_cv_func_vfork 4511if test "x$ac_cv_func_vfork" = xyes; then 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 4513$as_echo_n "checking for working vfork... " >&6; } 4514if test "${ac_cv_func_vfork_works+set}" = set; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test "$cross_compiling" = yes; then : 4518 ac_cv_func_vfork_works=cross 4519else 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522/* Thanks to Paul Eggert for this test. */ 4523$ac_includes_default 4524#include <sys/wait.h> 4525#ifdef HAVE_VFORK_H 4526# include <vfork.h> 4527#endif 4528/* On some sparc systems, changes by the child to local and incoming 4529 argument registers are propagated back to the parent. The compiler 4530 is told about this with #include <vfork.h>, but some compilers 4531 (e.g. /usr/local/bin/clang80 -O) don't grok <vfork.h>. Test for this by using a 4532 static variable whose address is put into a register that is 4533 clobbered by the vfork. */ 4534static void 4535#ifdef __cplusplus 4536sparc_address_test (int arg) 4537# else 4538sparc_address_test (arg) int arg; 4539#endif 4540{ 4541 static pid_t child; 4542 if (!child) { 4543 child = vfork (); 4544 if (child < 0) { 4545 perror ("vfork"); 4546 _exit(2); 4547 } 4548 if (!child) { 4549 arg = getpid(); 4550 write(-1, "", 0); 4551 _exit (arg); 4552 } 4553 } 4554} 4555 4556int 4557main () 4558{ 4559 pid_t parent = getpid (); 4560 pid_t child; 4561 4562 sparc_address_test (0); 4563 4564 child = vfork (); 4565 4566 if (child == 0) { 4567 /* Here is another test for sparc vfork register problems. This 4568 test uses lots of local variables, at least as many local 4569 variables as main has allocated so far including compiler 4570 temporaries. 4 locals are enough for /usr/local/bin/clang80 1.40.3 on a Solaris 4571 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 4572 reuse the register of parent for one of the local variables, 4573 since it will think that parent can't possibly be used any more 4574 in this routine. Assigning to the local variable will thus 4575 munge parent in the parent process. */ 4576 pid_t 4577 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 4578 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 4579 /* Convince the compiler that p..p7 are live; otherwise, it might 4580 use the same hardware register for all 8 local variables. */ 4581 if (p != p1 || p != p2 || p != p3 || p != p4 4582 || p != p5 || p != p6 || p != p7) 4583 _exit(1); 4584 4585 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 4586 from child file descriptors. If the child closes a descriptor 4587 before it execs or exits, this munges the parent's descriptor 4588 as well. Test for this by closing stdout in the child. */ 4589 _exit(close(fileno(stdout)) != 0); 4590 } else { 4591 int status; 4592 struct stat st; 4593 4594 while (wait(&status) != child) 4595 ; 4596 return ( 4597 /* Was there some problem with vforking? */ 4598 child < 0 4599 4600 /* Did the child fail? (This shouldn't happen.) */ 4601 || status 4602 4603 /* Did the vfork/compiler bug occur? */ 4604 || parent != getpid() 4605 4606 /* Did the file descriptor bug occur? */ 4607 || fstat(fileno(stdout), &st) != 0 4608 ); 4609 } 4610} 4611_ACEOF 4612if ac_fn_c_try_run "$LINENO"; then : 4613 ac_cv_func_vfork_works=yes 4614else 4615 ac_cv_func_vfork_works=no 4616fi 4617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4618 conftest.$ac_objext conftest.beam conftest.$ac_ext 4619fi 4620 4621fi 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 4623$as_echo "$ac_cv_func_vfork_works" >&6; } 4624 4625fi; 4626if test "x$ac_cv_func_fork_works" = xcross; then 4627 ac_cv_func_vfork_works=$ac_cv_func_vfork 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 4629$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 4630fi 4631 4632if test "x$ac_cv_func_vfork_works" = xyes; then 4633 4634$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 4635 4636else 4637 4638$as_echo "#define vfork fork" >>confdefs.h 4639 4640fi 4641if test "x$ac_cv_func_fork_works" = xyes; then 4642 4643$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 4644 4645fi 4646 4647 4648# uses AC_TRY_RUN 4649if test "$cross_compiling" = yes; then 4650echo "WARNING: cannot check for restartable system calls during cross compilation." 4651else 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for restartable system calls" >&5 4653$as_echo_n "checking for restartable system calls... " >&6; } 4654if test "${ac_cv_sys_restartable_syscalls+set}" = set; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 if test "$cross_compiling" = yes; then : 4658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4660as_fn_error $? "cannot run test program while cross compiling 4661See \`config.log' for more details" "$LINENO" 5 ; } 4662else 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665/* Exit 0 (true) if wait returns something other than -1, 4666 i.e. the pid of the child, which means that wait was restarted 4667 after getting the signal. */ 4668 4669$ac_includes_default 4670#include <signal.h> 4671#ifdef HAVE_SYS_WAIT_H 4672# include <sys/wait.h> 4673#endif 4674 4675/* Some platforms explicitly require an extern "C" signal handler 4676 when using C++. */ 4677#ifdef __cplusplus 4678extern "C" void ucatch (int dummy) { } 4679#else 4680void ucatch (dummy) int dummy; { } 4681#endif 4682 4683int 4684main () 4685{ 4686 int i = fork (), status; 4687 4688 if (i == 0) 4689 { 4690 sleep (3); 4691 kill (getppid (), SIGINT); 4692 sleep (3); 4693 return 0; 4694 } 4695 4696 signal (SIGINT, ucatch); 4697 4698 status = wait (&i); 4699 if (status == -1) 4700 wait (&i); 4701 4702 return status == -1; 4703} 4704_ACEOF 4705if ac_fn_c_try_run "$LINENO"; then : 4706 ac_cv_sys_restartable_syscalls=yes 4707else 4708 ac_cv_sys_restartable_syscalls=no 4709fi 4710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4711 conftest.$ac_objext conftest.beam conftest.$ac_ext 4712fi 4713 4714fi 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_restartable_syscalls" >&5 4716$as_echo "$ac_cv_sys_restartable_syscalls" >&6; } 4717if test $ac_cv_sys_restartable_syscalls = yes; then 4718 4719$as_echo "#define HAVE_RESTARTABLE_SYSCALLS 1" >>confdefs.h 4720 4721fi 4722 4723fi 4724 4725cat >confcache <<\_ACEOF 4726# This file is a shell script that caches the results of configure 4727# tests run on this system so they can be shared between configure 4728# scripts and configure runs, see configure's option --config-cache. 4729# It is not useful on other systems. If it contains results you don't 4730# want to keep, you may remove or edit it. 4731# 4732# config.status only pays attention to the cache file if you give it 4733# the --recheck option to rerun configure. 4734# 4735# `ac_cv_env_foo' variables (set or unset) will be overridden when 4736# loading this file, other *unset* `ac_cv_foo' will be assigned the 4737# following values. 4738 4739_ACEOF 4740 4741# The following way of writing the cache mishandles newlines in values, 4742# but we know of no workaround that is simple, portable, and efficient. 4743# So, we kill variables containing newlines. 4744# Ultrix sh set writes to stderr and can't be redirected directly, 4745# and sets the high bit in the cache file unless we assign to the vars. 4746( 4747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4748 eval ac_val=\$$ac_var 4749 case $ac_val in #( 4750 *${as_nl}*) 4751 case $ac_var in #( 4752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4753$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4754 esac 4755 case $ac_var in #( 4756 _ | IFS | as_nl) ;; #( 4757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4758 *) { eval $ac_var=; unset $ac_var;} ;; 4759 esac ;; 4760 esac 4761 done 4762 4763 (set) 2>&1 | 4764 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4765 *${as_nl}ac_space=\ *) 4766 # `set' does not quote correctly, so add quotes: double-quote 4767 # substitution turns \\\\ into \\, and sed turns \\ into \. 4768 sed -n \ 4769 "s/'/'\\\\''/g; 4770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4771 ;; #( 4772 *) 4773 # `set' quotes correctly as required by POSIX, so do not add quotes. 4774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4775 ;; 4776 esac | 4777 sort 4778) | 4779 sed ' 4780 /^ac_cv_env_/b end 4781 t clear 4782 :clear 4783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4784 t end 4785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4786 :end' >>confcache 4787if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4788 if test -w "$cache_file"; then 4789 test "x$cache_file" != "x/dev/null" && 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4791$as_echo "$as_me: updating cache $cache_file" >&6;} 4792 cat confcache >$cache_file 4793 else 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4795$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4796 fi 4797fi 4798rm -f confcache 4799 4800test "x$prefix" = xNONE && prefix=$ac_default_prefix 4801# Let make expand exec_prefix. 4802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4803 4804DEFS=-DHAVE_CONFIG_H 4805 4806ac_libobjs= 4807ac_ltlibobjs= 4808U= 4809for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4810 # 1. Remove the extension, and $U if already installed. 4811 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4812 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4814 # will be set to the directory where LIBOBJS objects are built. 4815 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4816 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4817done 4818LIBOBJS=$ac_libobjs 4819 4820LTLIBOBJS=$ac_ltlibobjs 4821 4822 4823 4824: ${CONFIG_STATUS=./config.status} 4825ac_write_fail=0 4826ac_clean_files_save=$ac_clean_files 4827ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4829$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4830as_write_fail=0 4831cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4832#! $SHELL 4833# Generated by $as_me. 4834# Run this file to recreate the current configuration. 4835# Compiler output produced by configure, useful for debugging 4836# configure, is in config.log if it exists. 4837 4838debug=false 4839ac_cs_recheck=false 4840ac_cs_silent=false 4841 4842SHELL=\${CONFIG_SHELL-$SHELL} 4843export SHELL 4844_ASEOF 4845cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4846## -------------------- ## 4847## M4sh Initialization. ## 4848## -------------------- ## 4849 4850# Be more Bourne compatible 4851DUALCASE=1; export DUALCASE # for MKS sh 4852if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4853 emulate sh 4854 NULLCMD=: 4855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4856 # is contrary to our usage. Disable this feature. 4857 alias -g '${1+"$@"}'='"$@"' 4858 setopt NO_GLOB_SUBST 4859else 4860 case `(set -o) 2>/dev/null` in #( 4861 *posix*) : 4862 set -o posix ;; #( 4863 *) : 4864 ;; 4865esac 4866fi 4867 4868 4869as_nl=' 4870' 4871export as_nl 4872# Printing a long string crashes Solaris 7 /usr/bin/printf. 4873as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4875as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4876# Prefer a ksh shell builtin over an external printf program on Solaris, 4877# but without wasting forks for bash or zsh. 4878if test -z "$BASH_VERSION$ZSH_VERSION" \ 4879 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4880 as_echo='print -r --' 4881 as_echo_n='print -rn --' 4882elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4883 as_echo='printf %s\n' 4884 as_echo_n='printf %s' 4885else 4886 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4887 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4888 as_echo_n='/usr/ucb/echo -n' 4889 else 4890 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4891 as_echo_n_body='eval 4892 arg=$1; 4893 case $arg in #( 4894 *"$as_nl"*) 4895 expr "X$arg" : "X\\(.*\\)$as_nl"; 4896 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4897 esac; 4898 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4899 ' 4900 export as_echo_n_body 4901 as_echo_n='sh -c $as_echo_n_body as_echo' 4902 fi 4903 export as_echo_body 4904 as_echo='sh -c $as_echo_body as_echo' 4905fi 4906 4907# The user is always right. 4908if test "${PATH_SEPARATOR+set}" != set; then 4909 PATH_SEPARATOR=: 4910 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4911 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4912 PATH_SEPARATOR=';' 4913 } 4914fi 4915 4916 4917# IFS 4918# We need space, tab and new line, in precisely that order. Quoting is 4919# there to prevent editors from complaining about space-tab. 4920# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4921# splitting by setting IFS to empty value.) 4922IFS=" "" $as_nl" 4923 4924# Find who we are. Look in the path if we contain no directory separator. 4925case $0 in #(( 4926 *[\\/]* ) as_myself=$0 ;; 4927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4928for as_dir in $PATH 4929do 4930 IFS=$as_save_IFS 4931 test -z "$as_dir" && as_dir=. 4932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4933 done 4934IFS=$as_save_IFS 4935 4936 ;; 4937esac 4938# We did not find ourselves, most probably we were run as `sh COMMAND' 4939# in which case we are not to be found in the path. 4940if test "x$as_myself" = x; then 4941 as_myself=$0 4942fi 4943if test ! -f "$as_myself"; then 4944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4945 exit 1 4946fi 4947 4948# Unset variables that we do not need and which cause bugs (e.g. in 4949# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4950# suppresses any "Segmentation fault" message there. '((' could 4951# trigger a bug in pdksh 5.2.14. 4952for as_var in BASH_ENV ENV MAIL MAILPATH 4953do eval test x\${$as_var+set} = xset \ 4954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4955done 4956PS1='$ ' 4957PS2='> ' 4958PS4='+ ' 4959 4960# NLS nuisances. 4961LC_ALL=C 4962export LC_ALL 4963LANGUAGE=C 4964export LANGUAGE 4965 4966# CDPATH. 4967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4968 4969 4970# as_fn_error STATUS ERROR [LINENO LOG_FD] 4971# ---------------------------------------- 4972# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4973# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4974# script with STATUS, using 1 if that was 0. 4975as_fn_error () 4976{ 4977 as_status=$1; test $as_status -eq 0 && as_status=1 4978 if test "$4"; then 4979 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4981 fi 4982 $as_echo "$as_me: error: $2" >&2 4983 as_fn_exit $as_status 4984} # as_fn_error 4985 4986 4987# as_fn_set_status STATUS 4988# ----------------------- 4989# Set $? to STATUS, without forking. 4990as_fn_set_status () 4991{ 4992 return $1 4993} # as_fn_set_status 4994 4995# as_fn_exit STATUS 4996# ----------------- 4997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4998as_fn_exit () 4999{ 5000 set +e 5001 as_fn_set_status $1 5002 exit $1 5003} # as_fn_exit 5004 5005# as_fn_unset VAR 5006# --------------- 5007# Portably unset VAR. 5008as_fn_unset () 5009{ 5010 { eval $1=; unset $1;} 5011} 5012as_unset=as_fn_unset 5013# as_fn_append VAR VALUE 5014# ---------------------- 5015# Append the text in VALUE to the end of the definition contained in VAR. Take 5016# advantage of any shell optimizations that allow amortized linear growth over 5017# repeated appends, instead of the typical quadratic growth present in naive 5018# implementations. 5019if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5020 eval 'as_fn_append () 5021 { 5022 eval $1+=\$2 5023 }' 5024else 5025 as_fn_append () 5026 { 5027 eval $1=\$$1\$2 5028 } 5029fi # as_fn_append 5030 5031# as_fn_arith ARG... 5032# ------------------ 5033# Perform arithmetic evaluation on the ARGs, and store the result in the 5034# global $as_val. Take advantage of shells that can avoid forks. The arguments 5035# must be portable across $(()) and expr. 5036if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5037 eval 'as_fn_arith () 5038 { 5039 as_val=$(( $* )) 5040 }' 5041else 5042 as_fn_arith () 5043 { 5044 as_val=`expr "$@" || test $? -eq 1` 5045 } 5046fi # as_fn_arith 5047 5048 5049if expr a : '\(a\)' >/dev/null 2>&1 && 5050 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5051 as_expr=expr 5052else 5053 as_expr=false 5054fi 5055 5056if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5057 as_basename=basename 5058else 5059 as_basename=false 5060fi 5061 5062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5063 as_dirname=dirname 5064else 5065 as_dirname=false 5066fi 5067 5068as_me=`$as_basename -- "$0" || 5069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5070 X"$0" : 'X\(//\)$' \| \ 5071 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5072$as_echo X/"$0" | 5073 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5074 s//\1/ 5075 q 5076 } 5077 /^X\/\(\/\/\)$/{ 5078 s//\1/ 5079 q 5080 } 5081 /^X\/\(\/\).*/{ 5082 s//\1/ 5083 q 5084 } 5085 s/.*/./; q'` 5086 5087# Avoid depending upon Character Ranges. 5088as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5090as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5091as_cr_digits='0123456789' 5092as_cr_alnum=$as_cr_Letters$as_cr_digits 5093 5094ECHO_C= ECHO_N= ECHO_T= 5095case `echo -n x` in #((((( 5096-n*) 5097 case `echo 'xy\c'` in 5098 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5099 xy) ECHO_C='\c';; 5100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5101 ECHO_T=' ';; 5102 esac;; 5103*) 5104 ECHO_N='-n';; 5105esac 5106 5107rm -f conf$$ conf$$.exe conf$$.file 5108if test -d conf$$.dir; then 5109 rm -f conf$$.dir/conf$$.file 5110else 5111 rm -f conf$$.dir 5112 mkdir conf$$.dir 2>/dev/null 5113fi 5114if (echo >conf$$.file) 2>/dev/null; then 5115 if ln -s conf$$.file conf$$ 2>/dev/null; then 5116 as_ln_s='ln -s' 5117 # ... but there are two gotchas: 5118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5120 # In both cases, we have to default to `cp -p'. 5121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5122 as_ln_s='cp -p' 5123 elif ln conf$$.file conf$$ 2>/dev/null; then 5124 as_ln_s=ln 5125 else 5126 as_ln_s='cp -p' 5127 fi 5128else 5129 as_ln_s='cp -p' 5130fi 5131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5132rmdir conf$$.dir 2>/dev/null 5133 5134 5135# as_fn_mkdir_p 5136# ------------- 5137# Create "$as_dir" as a directory, including parents if necessary. 5138as_fn_mkdir_p () 5139{ 5140 5141 case $as_dir in #( 5142 -*) as_dir=./$as_dir;; 5143 esac 5144 test -d "$as_dir" || eval $as_mkdir_p || { 5145 as_dirs= 5146 while :; do 5147 case $as_dir in #( 5148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5149 *) as_qdir=$as_dir;; 5150 esac 5151 as_dirs="'$as_qdir' $as_dirs" 5152 as_dir=`$as_dirname -- "$as_dir" || 5153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5154 X"$as_dir" : 'X\(//\)[^/]' \| \ 5155 X"$as_dir" : 'X\(//\)$' \| \ 5156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5157$as_echo X"$as_dir" | 5158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5159 s//\1/ 5160 q 5161 } 5162 /^X\(\/\/\)[^/].*/{ 5163 s//\1/ 5164 q 5165 } 5166 /^X\(\/\/\)$/{ 5167 s//\1/ 5168 q 5169 } 5170 /^X\(\/\).*/{ 5171 s//\1/ 5172 q 5173 } 5174 s/.*/./; q'` 5175 test -d "$as_dir" && break 5176 done 5177 test -z "$as_dirs" || eval "mkdir $as_dirs" 5178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5179 5180 5181} # as_fn_mkdir_p 5182if mkdir -p . 2>/dev/null; then 5183 as_mkdir_p='mkdir -p "$as_dir"' 5184else 5185 test -d ./-p && rmdir ./-p 5186 as_mkdir_p=false 5187fi 5188 5189if test -x / >/dev/null 2>&1; then 5190 as_test_x='test -x' 5191else 5192 if ls -dL / >/dev/null 2>&1; then 5193 as_ls_L_option=L 5194 else 5195 as_ls_L_option= 5196 fi 5197 as_test_x=' 5198 eval sh -c '\'' 5199 if test -d "$1"; then 5200 test -d "$1/."; 5201 else 5202 case $1 in #( 5203 -*)set "./$1";; 5204 esac; 5205 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5206 ???[sx]*):;;*)false;;esac;fi 5207 '\'' sh 5208 ' 5209fi 5210as_executable_p=$as_test_x 5211 5212# Sed expression to map a string onto a valid CPP name. 5213as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5214 5215# Sed expression to map a string onto a valid variable name. 5216as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5217 5218 5219exec 6>&1 5220## ----------------------------------- ## 5221## Main body of $CONFIG_STATUS script. ## 5222## ----------------------------------- ## 5223_ASEOF 5224test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5225 5226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5227# Save the log message, to keep $0 and so on meaningful, and to 5228# report actual input values of CONFIG_FILES etc. instead of their 5229# values after options handling. 5230ac_log=" 5231This file was extended by $as_me, which was 5232generated by GNU Autoconf 2.67. Invocation command line was 5233 5234 CONFIG_FILES = $CONFIG_FILES 5235 CONFIG_HEADERS = $CONFIG_HEADERS 5236 CONFIG_LINKS = $CONFIG_LINKS 5237 CONFIG_COMMANDS = $CONFIG_COMMANDS 5238 $ $0 $@ 5239 5240on `(hostname || uname -n) 2>/dev/null | sed 1q` 5241" 5242 5243_ACEOF 5244 5245 5246case $ac_config_headers in *" 5247"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5248esac 5249 5250 5251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5252# Files that config.status was made for. 5253config_headers="$ac_config_headers" 5254 5255_ACEOF 5256 5257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5258ac_cs_usage="\ 5259\`$as_me' instantiates files and other configuration actions 5260from templates according to the current configuration. Unless the files 5261and actions are specified as TAGs, all are instantiated by default. 5262 5263Usage: $0 [OPTION]... [TAG]... 5264 5265 -h, --help print this help, then exit 5266 -V, --version print version number and configuration settings, then exit 5267 --config print configuration, then exit 5268 -q, --quiet, --silent 5269 do not print progress messages 5270 -d, --debug don't remove temporary files 5271 --recheck update $as_me by reconfiguring in the same conditions 5272 --header=FILE[:TEMPLATE] 5273 instantiate the configuration header FILE 5274 5275Configuration headers: 5276$config_headers 5277 5278Report bugs to the package provider." 5279 5280_ACEOF 5281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5282ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5283ac_cs_version="\\ 5284config.status 5285configured by $0, generated by GNU Autoconf 2.67, 5286 with options \\"\$ac_cs_config\\" 5287 5288Copyright (C) 2010 Free Software Foundation, Inc. 5289This config.status script is free software; the Free Software Foundation 5290gives unlimited permission to copy, distribute and modify it." 5291 5292ac_pwd='$ac_pwd' 5293srcdir='$srcdir' 5294test -n "\$AWK" || AWK=awk 5295_ACEOF 5296 5297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5298# The default lists apply if the user does not specify any file. 5299ac_need_defaults=: 5300while test $# != 0 5301do 5302 case $1 in 5303 --*=?*) 5304 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5306 ac_shift=: 5307 ;; 5308 --*=) 5309 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5310 ac_optarg= 5311 ac_shift=: 5312 ;; 5313 *) 5314 ac_option=$1 5315 ac_optarg=$2 5316 ac_shift=shift 5317 ;; 5318 esac 5319 5320 case $ac_option in 5321 # Handling of the options. 5322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5323 ac_cs_recheck=: ;; 5324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5325 $as_echo "$ac_cs_version"; exit ;; 5326 --config | --confi | --conf | --con | --co | --c ) 5327 $as_echo "$ac_cs_config"; exit ;; 5328 --debug | --debu | --deb | --de | --d | -d ) 5329 debug=: ;; 5330 --header | --heade | --head | --hea ) 5331 $ac_shift 5332 case $ac_optarg in 5333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5334 esac 5335 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5336 ac_need_defaults=false;; 5337 --he | --h) 5338 # Conflict between --help and --header 5339 as_fn_error $? "ambiguous option: \`$1' 5340Try \`$0 --help' for more information.";; 5341 --help | --hel | -h ) 5342 $as_echo "$ac_cs_usage"; exit ;; 5343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5344 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5345 ac_cs_silent=: ;; 5346 5347 # This is an error. 5348 -*) as_fn_error $? "unrecognized option: \`$1' 5349Try \`$0 --help' for more information." ;; 5350 5351 *) as_fn_append ac_config_targets " $1" 5352 ac_need_defaults=false ;; 5353 5354 esac 5355 shift 5356done 5357 5358ac_configure_extra_args= 5359 5360if $ac_cs_silent; then 5361 exec 6>/dev/null 5362 ac_configure_extra_args="$ac_configure_extra_args --silent" 5363fi 5364 5365_ACEOF 5366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5367if \$ac_cs_recheck; then 5368 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5369 shift 5370 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5371 CONFIG_SHELL='$SHELL' 5372 export CONFIG_SHELL 5373 exec "\$@" 5374fi 5375 5376_ACEOF 5377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5378exec 5>>config.log 5379{ 5380 echo 5381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5382## Running $as_me. ## 5383_ASBOX 5384 $as_echo "$ac_log" 5385} >&5 5386 5387_ACEOF 5388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5389_ACEOF 5390 5391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5392 5393# Handling of arguments. 5394for ac_config_target in $ac_config_targets 5395do 5396 case $ac_config_target in 5397 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 5398 5399 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 5400 esac 5401done 5402 5403 5404# If the user did not use the arguments to specify the items to instantiate, 5405# then the envvar interface is used. Set only those that are not. 5406# We use the long form for the default assignment because of an extremely 5407# bizarre bug on SunOS 4.1.3. 5408if $ac_need_defaults; then 5409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5410fi 5411 5412# Have a temporary directory for convenience. Make it in the build tree 5413# simply because there is no reason against having it here, and in addition, 5414# creating and moving files from /tmp can sometimes cause problems. 5415# Hook for its removal unless debugging. 5416# Note that there is a small window in which the directory will not be cleaned: 5417# after its creation but before its name has been assigned to `$tmp'. 5418$debug || 5419{ 5420 tmp= 5421 trap 'exit_status=$? 5422 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5423' 0 5424 trap 'as_fn_exit 1' 1 2 13 15 5425} 5426# Create a (secure) tmp directory for tmp files. 5427 5428{ 5429 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5430 test -n "$tmp" && test -d "$tmp" 5431} || 5432{ 5433 tmp=./conf$$-$RANDOM 5434 (umask 077 && mkdir "$tmp") 5435} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5436 5437# Set up the scripts for CONFIG_HEADERS section. 5438# No need to generate them if there are no CONFIG_HEADERS. 5439# This happens for instance with `./config.status Makefile'. 5440if test -n "$CONFIG_HEADERS"; then 5441cat >"$tmp/defines.awk" <<\_ACAWK || 5442BEGIN { 5443_ACEOF 5444 5445# Transform confdefs.h into an awk script `defines.awk', embedded as 5446# here-document in config.status, that substitutes the proper values into 5447# config.h.in to produce config.h. 5448 5449# Create a delimiter string that does not exist in confdefs.h, to ease 5450# handling of long lines. 5451ac_delim='%!_!# ' 5452for ac_last_try in false false :; do 5453 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5454 if test -z "$ac_t"; then 5455 break 5456 elif $ac_last_try; then 5457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5458 else 5459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5460 fi 5461done 5462 5463# For the awk script, D is an array of macro values keyed by name, 5464# likewise P contains macro parameters if any. Preserve backslash 5465# newline sequences. 5466 5467ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5468sed -n ' 5469s/.\{148\}/&'"$ac_delim"'/g 5470t rset 5471:rset 5472s/^[ ]*#[ ]*define[ ][ ]*/ / 5473t def 5474d 5475:def 5476s/\\$// 5477t bsnl 5478s/["\\]/\\&/g 5479s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5480D["\1"]=" \3"/p 5481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5482d 5483:bsnl 5484s/["\\]/\\&/g 5485s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5486D["\1"]=" \3\\\\\\n"\\/p 5487t cont 5488s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5489t cont 5490d 5491:cont 5492n 5493s/.\{148\}/&'"$ac_delim"'/g 5494t clear 5495:clear 5496s/\\$// 5497t bsnlc 5498s/["\\]/\\&/g; s/^/"/; s/$/"/p 5499d 5500:bsnlc 5501s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5502b cont 5503' <confdefs.h | sed ' 5504s/'"$ac_delim"'/"\\\ 5505"/g' >>$CONFIG_STATUS || ac_write_fail=1 5506 5507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5508 for (key in D) D_is_set[key] = 1 5509 FS = "" 5510} 5511/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5512 line = \$ 0 5513 split(line, arg, " ") 5514 if (arg[1] == "#") { 5515 defundef = arg[2] 5516 mac1 = arg[3] 5517 } else { 5518 defundef = substr(arg[1], 2) 5519 mac1 = arg[2] 5520 } 5521 split(mac1, mac2, "(") #) 5522 macro = mac2[1] 5523 prefix = substr(line, 1, index(line, defundef) - 1) 5524 if (D_is_set[macro]) { 5525 # Preserve the white space surrounding the "#". 5526 print prefix "define", macro P[macro] D[macro] 5527 next 5528 } else { 5529 # Replace #undef with comments. This is necessary, for example, 5530 # in the case of _POSIX_SOURCE, which is predefined and required 5531 # on some systems where configure will not decide to define it. 5532 if (defundef == "undef") { 5533 print "/*", prefix defundef, macro, "*/" 5534 next 5535 } 5536 } 5537} 5538{ print } 5539_ACAWK 5540_ACEOF 5541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5543fi # test -n "$CONFIG_HEADERS" 5544 5545 5546eval set X " :H $CONFIG_HEADERS " 5547shift 5548for ac_tag 5549do 5550 case $ac_tag in 5551 :[FHLC]) ac_mode=$ac_tag; continue;; 5552 esac 5553 case $ac_mode$ac_tag in 5554 :[FHL]*:*);; 5555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 5556 :[FH]-) ac_tag=-:-;; 5557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5558 esac 5559 ac_save_IFS=$IFS 5560 IFS=: 5561 set x $ac_tag 5562 IFS=$ac_save_IFS 5563 shift 5564 ac_file=$1 5565 shift 5566 5567 case $ac_mode in 5568 :L) ac_source=$1;; 5569 :[FH]) 5570 ac_file_inputs= 5571 for ac_f 5572 do 5573 case $ac_f in 5574 -) ac_f="$tmp/stdin";; 5575 *) # Look for the file first in the build tree, then in the source tree 5576 # (if the path is not absolute). The absolute path cannot be DOS-style, 5577 # because $ac_f cannot contain `:'. 5578 test -f "$ac_f" || 5579 case $ac_f in 5580 [\\/$]*) false;; 5581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5582 esac || 5583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 5584 esac 5585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5586 as_fn_append ac_file_inputs " '$ac_f'" 5587 done 5588 5589 # Let's still pretend it is `configure' which instantiates (i.e., don't 5590 # use $as_me), people would be surprised to read: 5591 # /* config.h. Generated by config.status. */ 5592 configure_input='Generated from '` 5593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5594 `' by configure.' 5595 if test x"$ac_file" != x-; then 5596 configure_input="$ac_file. $configure_input" 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5598$as_echo "$as_me: creating $ac_file" >&6;} 5599 fi 5600 # Neutralize special characters interpreted by sed in replacement strings. 5601 case $configure_input in #( 5602 *\&* | *\|* | *\\* ) 5603 ac_sed_conf_input=`$as_echo "$configure_input" | 5604 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5605 *) ac_sed_conf_input=$configure_input;; 5606 esac 5607 5608 case $ac_tag in 5609 *:-:* | *:-) cat >"$tmp/stdin" \ 5610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5611 esac 5612 ;; 5613 esac 5614 5615 ac_dir=`$as_dirname -- "$ac_file" || 5616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5617 X"$ac_file" : 'X\(//\)[^/]' \| \ 5618 X"$ac_file" : 'X\(//\)$' \| \ 5619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5620$as_echo X"$ac_file" | 5621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5622 s//\1/ 5623 q 5624 } 5625 /^X\(\/\/\)[^/].*/{ 5626 s//\1/ 5627 q 5628 } 5629 /^X\(\/\/\)$/{ 5630 s//\1/ 5631 q 5632 } 5633 /^X\(\/\).*/{ 5634 s//\1/ 5635 q 5636 } 5637 s/.*/./; q'` 5638 as_dir="$ac_dir"; as_fn_mkdir_p 5639 ac_builddir=. 5640 5641case "$ac_dir" in 5642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5643*) 5644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5645 # A ".." for each directory in $ac_dir_suffix. 5646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5647 case $ac_top_builddir_sub in 5648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5650 esac ;; 5651esac 5652ac_abs_top_builddir=$ac_pwd 5653ac_abs_builddir=$ac_pwd$ac_dir_suffix 5654# for backward compatibility: 5655ac_top_builddir=$ac_top_build_prefix 5656 5657case $srcdir in 5658 .) # We are building in place. 5659 ac_srcdir=. 5660 ac_top_srcdir=$ac_top_builddir_sub 5661 ac_abs_top_srcdir=$ac_pwd ;; 5662 [\\/]* | ?:[\\/]* ) # Absolute name. 5663 ac_srcdir=$srcdir$ac_dir_suffix; 5664 ac_top_srcdir=$srcdir 5665 ac_abs_top_srcdir=$srcdir ;; 5666 *) # Relative name. 5667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5668 ac_top_srcdir=$ac_top_build_prefix$srcdir 5669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5670esac 5671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5672 5673 5674 case $ac_mode in 5675 5676 :H) 5677 # 5678 # CONFIG_HEADER 5679 # 5680 if test x"$ac_file" != x-; then 5681 { 5682 $as_echo "/* $configure_input */" \ 5683 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 5684 } >"$tmp/config.h" \ 5685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5686 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5688$as_echo "$as_me: $ac_file is unchanged" >&6;} 5689 else 5690 rm -f "$ac_file" 5691 mv "$tmp/config.h" "$ac_file" \ 5692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5693 fi 5694 else 5695 $as_echo "/* $configure_input */" \ 5696 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 5697 || as_fn_error $? "could not create -" "$LINENO" 5 5698 fi 5699 ;; 5700 5701 5702 esac 5703 5704done # for ac_tag 5705 5706 5707as_fn_exit 0 5708_ACEOF 5709ac_clean_files=$ac_clean_files_save 5710 5711test $ac_write_fail = 0 || 5712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5713 5714 5715# configure is writing to config.log, and then calls config.status. 5716# config.status does its own redirection, appending to config.log. 5717# Unfortunately, on DOS this fails, as config.log is still kept open 5718# by configure, so config.status won't be able to write to it; its 5719# output is simply discarded. So we exec the FD to /dev/null, 5720# effectively closing config.log, so it can be properly (re)opened and 5721# appended to by config.status. When coming back to configure, we 5722# need to make the FD available again. 5723if test "$no_create" != yes; then 5724 ac_cs_success=: 5725 ac_config_status_args= 5726 test "$silent" = yes && 5727 ac_config_status_args="$ac_config_status_args --quiet" 5728 exec 5>/dev/null 5729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5730 exec 5>>config.log 5731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5732 # would make configure fail if this is the last instruction. 5733 $ac_cs_success || as_fn_exit 1 5734fi 5735if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5737$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5738fi 5739 5740