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