1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for netgen 1.3. 4# 5# Report bugs to <eda-dev@opencircuitdesign.com>. 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 270$0: eda-dev@opencircuitdesign.com about your system, 271$0: including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do 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='netgen' 582PACKAGE_TARNAME='netgen' 583PACKAGE_VERSION='1.3' 584PACKAGE_STRING='netgen 1.3' 585PACKAGE_BUGREPORT='eda-dev@opencircuitdesign.com' 586PACKAGE_URL='' 587 588ac_unique_file="rules.mak" 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 627INSTALL_TARGET 628ALL_TARGET 629LD_RUN_PATH 630SHLIB_CFLAGS 631DEPEND_FLAG 632gr_srcs 633gr_libs 634gr_dflags 635gr_cflags 636DIST_DIR 637cadinstall 638programs 639unused 640modules 641sub_extra_libs 642top_extra_libs 643ld_extra_objs 644ld_extra_libs 645stub_defs 646extra_defs 647extra_libs 648SCRIPTS 649PACKAGE 650VERSION 651TCL_LIB_DIR 652TCLSH_EXE 653WISH_EXE 654LIB_SPECS_NOSTUB 655LIB_SPECS 656INC_SPECS 657EXTRA_LIB_SPECS 658SHLIB_LIB_SPECS 659LDDL_FLAGS 660LD 661SHLIB_LD 662SHDLIB_EXT 663X_EXTRA_LIBS 664X_LIBS 665X_PRE_LIBS 666X_CFLAGS 667XMKMF 668HAVE_PYTHON3 669EGREP 670GREP 671M4 672RANLIB 673INSTALL_DATA 674INSTALL_SCRIPT 675INSTALL_PROGRAM 676CPP 677OBJEXT 678EXEEXT 679ac_ct_CC 680CPPFLAGS 681LDFLAGS 682CFLAGS 683CC 684target_os 685target_vendor 686target_cpu 687target 688host_os 689host_vendor 690host_cpu 691host 692build_os 693build_vendor 694build_cpu 695build 696target_alias 697host_alias 698build_alias 699LIBS 700ECHO_T 701ECHO_N 702ECHO_C 703DEFS 704mandir 705localedir 706libdir 707psdir 708pdfdir 709dvidir 710htmldir 711infodir 712docdir 713oldincludedir 714includedir 715localstatedir 716sharedstatedir 717sysconfdir 718datadir 719datarootdir 720libexecdir 721sbindir 722bindir 723program_transform_name 724prefix 725exec_prefix 726PACKAGE_URL 727PACKAGE_BUGREPORT 728PACKAGE_STRING 729PACKAGE_VERSION 730PACKAGE_TARNAME 731PACKAGE_NAME 732PATH_SEPARATOR 733SHELL' 734ac_subst_files='' 735ac_user_opts=' 736enable_option_checking 737with_gnu_ld 738with_distdir 739with_interpreter 740with_tcl 741with_tk 742with_tclincls 743with_tkincls 744with_tcllibs 745with_tklibs 746with_widgets 747with_x 748' 749 ac_precious_vars='build_alias 750host_alias 751target_alias 752CC 753CFLAGS 754LDFLAGS 755LIBS 756CPPFLAGS 757CPP 758XMKMF' 759 760 761# Initialize some variables set by options. 762ac_init_help= 763ac_init_version=false 764ac_unrecognized_opts= 765ac_unrecognized_sep= 766# The variables have the same names as the options, with 767# dashes changed to underlines. 768cache_file=/dev/null 769exec_prefix=NONE 770no_create= 771no_recursion= 772prefix=NONE 773program_prefix=NONE 774program_suffix=NONE 775program_transform_name=s,x,x, 776silent= 777site= 778srcdir= 779verbose= 780x_includes=NONE 781x_libraries=NONE 782 783# Installation directory options. 784# These are left unexpanded so users can "make install exec_prefix=/foo" 785# and all the variables that are supposed to be based on exec_prefix 786# by default will actually change. 787# Use braces instead of parens because sh, perl, etc. also accept them. 788# (The list follows the same order as the GNU Coding Standards.) 789bindir='${exec_prefix}/bin' 790sbindir='${exec_prefix}/sbin' 791libexecdir='${exec_prefix}/libexec' 792datarootdir='${prefix}/share' 793datadir='${datarootdir}' 794sysconfdir='${prefix}/etc' 795sharedstatedir='${prefix}/com' 796localstatedir='${prefix}/var' 797includedir='${prefix}/include' 798oldincludedir='/usr/include' 799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 800infodir='${datarootdir}/info' 801htmldir='${docdir}' 802dvidir='${docdir}' 803pdfdir='${docdir}' 804psdir='${docdir}' 805libdir='${exec_prefix}/lib' 806localedir='${datarootdir}/locale' 807mandir='${datarootdir}/man' 808 809ac_prev= 810ac_dashdash= 811for ac_option 812do 813 # If the previous option needs an argument, assign it. 814 if test -n "$ac_prev"; then 815 eval $ac_prev=\$ac_option 816 ac_prev= 817 continue 818 fi 819 820 case $ac_option in 821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 822 *=) ac_optarg= ;; 823 *) ac_optarg=yes ;; 824 esac 825 826 # Accept the important Cygnus configure options, so we can diagnose typos. 827 828 case $ac_dashdash$ac_option in 829 --) 830 ac_dashdash=yes ;; 831 832 -bindir | --bindir | --bindi | --bind | --bin | --bi) 833 ac_prev=bindir ;; 834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 835 bindir=$ac_optarg ;; 836 837 -build | --build | --buil | --bui | --bu) 838 ac_prev=build_alias ;; 839 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 840 build_alias=$ac_optarg ;; 841 842 -cache-file | --cache-file | --cache-fil | --cache-fi \ 843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 844 ac_prev=cache_file ;; 845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 847 cache_file=$ac_optarg ;; 848 849 --config-cache | -C) 850 cache_file=config.cache ;; 851 852 -datadir | --datadir | --datadi | --datad) 853 ac_prev=datadir ;; 854 -datadir=* | --datadir=* | --datadi=* | --datad=*) 855 datadir=$ac_optarg ;; 856 857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 858 | --dataroo | --dataro | --datar) 859 ac_prev=datarootdir ;; 860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 862 datarootdir=$ac_optarg ;; 863 864 -disable-* | --disable-*) 865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 866 # Reject names that are not valid shell variable names. 867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 868 as_fn_error $? "invalid feature name: $ac_useropt" 869 ac_useropt_orig=$ac_useropt 870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 871 case $ac_user_opts in 872 *" 873"enable_$ac_useropt" 874"*) ;; 875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 876 ac_unrecognized_sep=', ';; 877 esac 878 eval enable_$ac_useropt=no ;; 879 880 -docdir | --docdir | --docdi | --doc | --do) 881 ac_prev=docdir ;; 882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 883 docdir=$ac_optarg ;; 884 885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 886 ac_prev=dvidir ;; 887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 888 dvidir=$ac_optarg ;; 889 890 -enable-* | --enable-*) 891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 894 as_fn_error $? "invalid feature name: $ac_useropt" 895 ac_useropt_orig=$ac_useropt 896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 897 case $ac_user_opts in 898 *" 899"enable_$ac_useropt" 900"*) ;; 901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 902 ac_unrecognized_sep=', ';; 903 esac 904 eval enable_$ac_useropt=\$ac_optarg ;; 905 906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 908 | --exec | --exe | --ex) 909 ac_prev=exec_prefix ;; 910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 912 | --exec=* | --exe=* | --ex=*) 913 exec_prefix=$ac_optarg ;; 914 915 -gas | --gas | --ga | --g) 916 # Obsolete; use --with-gas. 917 with_gas=yes ;; 918 919 -help | --help | --hel | --he | -h) 920 ac_init_help=long ;; 921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 922 ac_init_help=recursive ;; 923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 924 ac_init_help=short ;; 925 926 -host | --host | --hos | --ho) 927 ac_prev=host_alias ;; 928 -host=* | --host=* | --hos=* | --ho=*) 929 host_alias=$ac_optarg ;; 930 931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 932 ac_prev=htmldir ;; 933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 934 | --ht=*) 935 htmldir=$ac_optarg ;; 936 937 -includedir | --includedir | --includedi | --included | --include \ 938 | --includ | --inclu | --incl | --inc) 939 ac_prev=includedir ;; 940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 941 | --includ=* | --inclu=* | --incl=* | --inc=*) 942 includedir=$ac_optarg ;; 943 944 -infodir | --infodir | --infodi | --infod | --info | --inf) 945 ac_prev=infodir ;; 946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 947 infodir=$ac_optarg ;; 948 949 -libdir | --libdir | --libdi | --libd) 950 ac_prev=libdir ;; 951 -libdir=* | --libdir=* | --libdi=* | --libd=*) 952 libdir=$ac_optarg ;; 953 954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 955 | --libexe | --libex | --libe) 956 ac_prev=libexecdir ;; 957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 958 | --libexe=* | --libex=* | --libe=*) 959 libexecdir=$ac_optarg ;; 960 961 -localedir | --localedir | --localedi | --localed | --locale) 962 ac_prev=localedir ;; 963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 964 localedir=$ac_optarg ;; 965 966 -localstatedir | --localstatedir | --localstatedi | --localstated \ 967 | --localstate | --localstat | --localsta | --localst | --locals) 968 ac_prev=localstatedir ;; 969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 971 localstatedir=$ac_optarg ;; 972 973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 974 ac_prev=mandir ;; 975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 976 mandir=$ac_optarg ;; 977 978 -nfp | --nfp | --nf) 979 # Obsolete; use --without-fp. 980 with_fp=no ;; 981 982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 983 | --no-cr | --no-c | -n) 984 no_create=yes ;; 985 986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 988 no_recursion=yes ;; 989 990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 992 | --oldin | --oldi | --old | --ol | --o) 993 ac_prev=oldincludedir ;; 994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 997 oldincludedir=$ac_optarg ;; 998 999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1000 ac_prev=prefix ;; 1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1002 prefix=$ac_optarg ;; 1003 1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1005 | --program-pre | --program-pr | --program-p) 1006 ac_prev=program_prefix ;; 1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1009 program_prefix=$ac_optarg ;; 1010 1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1012 | --program-suf | --program-su | --program-s) 1013 ac_prev=program_suffix ;; 1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1016 program_suffix=$ac_optarg ;; 1017 1018 -program-transform-name | --program-transform-name \ 1019 | --program-transform-nam | --program-transform-na \ 1020 | --program-transform-n | --program-transform- \ 1021 | --program-transform | --program-transfor \ 1022 | --program-transfo | --program-transf \ 1023 | --program-trans | --program-tran \ 1024 | --progr-tra | --program-tr | --program-t) 1025 ac_prev=program_transform_name ;; 1026 -program-transform-name=* | --program-transform-name=* \ 1027 | --program-transform-nam=* | --program-transform-na=* \ 1028 | --program-transform-n=* | --program-transform-=* \ 1029 | --program-transform=* | --program-transfor=* \ 1030 | --program-transfo=* | --program-transf=* \ 1031 | --program-trans=* | --program-tran=* \ 1032 | --progr-tra=* | --program-tr=* | --program-t=*) 1033 program_transform_name=$ac_optarg ;; 1034 1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1036 ac_prev=pdfdir ;; 1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1038 pdfdir=$ac_optarg ;; 1039 1040 -psdir | --psdir | --psdi | --psd | --ps) 1041 ac_prev=psdir ;; 1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1043 psdir=$ac_optarg ;; 1044 1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1046 | -silent | --silent | --silen | --sile | --sil) 1047 silent=yes ;; 1048 1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1050 ac_prev=sbindir ;; 1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1052 | --sbi=* | --sb=*) 1053 sbindir=$ac_optarg ;; 1054 1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1057 | --sharedst | --shareds | --shared | --share | --shar \ 1058 | --sha | --sh) 1059 ac_prev=sharedstatedir ;; 1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1063 | --sha=* | --sh=*) 1064 sharedstatedir=$ac_optarg ;; 1065 1066 -site | --site | --sit) 1067 ac_prev=site ;; 1068 -site=* | --site=* | --sit=*) 1069 site=$ac_optarg ;; 1070 1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1072 ac_prev=srcdir ;; 1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1074 srcdir=$ac_optarg ;; 1075 1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1077 | --syscon | --sysco | --sysc | --sys | --sy) 1078 ac_prev=sysconfdir ;; 1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1081 sysconfdir=$ac_optarg ;; 1082 1083 -target | --target | --targe | --targ | --tar | --ta | --t) 1084 ac_prev=target_alias ;; 1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1086 target_alias=$ac_optarg ;; 1087 1088 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1089 verbose=yes ;; 1090 1091 -version | --version | --versio | --versi | --vers | -V) 1092 ac_init_version=: ;; 1093 1094 -with-* | --with-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 as_fn_error $? "invalid package name: $ac_useropt" 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103"with_$ac_useropt" 1104"*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval with_$ac_useropt=\$ac_optarg ;; 1109 1110 -without-* | --without-*) 1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1112 # Reject names that are not valid shell variable names. 1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1114 as_fn_error $? "invalid package name: $ac_useropt" 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"with_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval with_$ac_useropt=no ;; 1125 1126 --x) 1127 # Obsolete; use --with-x. 1128 with_x=yes ;; 1129 1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1131 | --x-incl | --x-inc | --x-in | --x-i) 1132 ac_prev=x_includes ;; 1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1135 x_includes=$ac_optarg ;; 1136 1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1139 ac_prev=x_libraries ;; 1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1142 x_libraries=$ac_optarg ;; 1143 1144 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1145Try \`$0 --help' for more information" 1146 ;; 1147 1148 *=*) 1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1150 # Reject names that are not valid shell variable names. 1151 case $ac_envvar in #( 1152 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1153 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1154 esac 1155 eval $ac_envvar=\$ac_optarg 1156 export $ac_envvar ;; 1157 1158 *) 1159 # FIXME: should be removed in autoconf 3.0. 1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1163 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1164 ;; 1165 1166 esac 1167done 1168 1169if test -n "$ac_prev"; then 1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1171 as_fn_error $? "missing argument to $ac_option" 1172fi 1173 1174if test -n "$ac_unrecognized_opts"; then 1175 case $enable_option_checking in 1176 no) ;; 1177 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1179 esac 1180fi 1181 1182# Check all directory arguments for consistency. 1183for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1184 datadir sysconfdir sharedstatedir localstatedir includedir \ 1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1186 libdir localedir mandir 1187do 1188 eval ac_val=\$$ac_var 1189 # Remove trailing slashes. 1190 case $ac_val in 1191 */ ) 1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1193 eval $ac_var=\$ac_val;; 1194 esac 1195 # Be sure to have absolute directory names. 1196 case $ac_val in 1197 [\\/$]* | ?:[\\/]* ) continue;; 1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1199 esac 1200 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1201done 1202 1203# There might be people who depend on the old broken behavior: `$host' 1204# used to hold the argument of --host etc. 1205# FIXME: To remove some day. 1206build=$build_alias 1207host=$host_alias 1208target=$target_alias 1209 1210# FIXME: To remove some day. 1211if test "x$host_alias" != x; then 1212 if test "x$build_alias" = x; then 1213 cross_compiling=maybe 1214 elif test "x$build_alias" != "x$host_alias"; then 1215 cross_compiling=yes 1216 fi 1217fi 1218 1219ac_tool_prefix= 1220test -n "$host_alias" && ac_tool_prefix=$host_alias- 1221 1222test "$silent" = yes && exec 6>/dev/null 1223 1224 1225ac_pwd=`pwd` && test -n "$ac_pwd" && 1226ac_ls_di=`ls -di .` && 1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228 as_fn_error $? "working directory cannot be determined" 1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1230 as_fn_error $? "pwd does not report name of working directory" 1231 1232 1233# Find the source files, if location was not specified. 1234if test -z "$srcdir"; then 1235 ac_srcdir_defaulted=yes 1236 # Try the directory containing this script, then the parent directory. 1237 ac_confdir=`$as_dirname -- "$as_myself" || 1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239 X"$as_myself" : 'X\(//\)[^/]' \| \ 1240 X"$as_myself" : 'X\(//\)$' \| \ 1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1242$as_echo X"$as_myself" | 1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\/\)[^/].*/{ 1248 s//\1/ 1249 q 1250 } 1251 /^X\(\/\/\)$/{ 1252 s//\1/ 1253 q 1254 } 1255 /^X\(\/\).*/{ 1256 s//\1/ 1257 q 1258 } 1259 s/.*/./; q'` 1260 srcdir=$ac_confdir 1261 if test ! -r "$srcdir/$ac_unique_file"; then 1262 srcdir=.. 1263 fi 1264else 1265 ac_srcdir_defaulted=no 1266fi 1267if test ! -r "$srcdir/$ac_unique_file"; then 1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1270fi 1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1272ac_abs_confdir=`( 1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1274 pwd)` 1275# When building in place, set srcdir=. 1276if test "$ac_abs_confdir" = "$ac_pwd"; then 1277 srcdir=. 1278fi 1279# Remove unnecessary trailing slashes from srcdir. 1280# Double slashes in file names in object file debugging info 1281# mess up M-x gdb in Emacs. 1282case $srcdir in 1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1284esac 1285for ac_var in $ac_precious_vars; do 1286 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_env_${ac_var}_value=\$${ac_var} 1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1289 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1290done 1291 1292# 1293# Report the --help message. 1294# 1295if test "$ac_init_help" = "long"; then 1296 # Omit some internal or obsolete options to make the list less imposing. 1297 # This message is too long to be a string in the A/UX 3.1 sh. 1298 cat <<_ACEOF 1299\`configure' configures netgen 1.3 to adapt to many kinds of systems. 1300 1301Usage: $0 [OPTION]... [VAR=VALUE]... 1302 1303To assign environment variables (e.g., CC, CFLAGS...), specify them as 1304VAR=VALUE. See below for descriptions of some of the useful variables. 1305 1306Defaults for the options are specified in brackets. 1307 1308Configuration: 1309 -h, --help display this help and exit 1310 --help=short display options specific to this package 1311 --help=recursive display the short help of all the included packages 1312 -V, --version display version information and exit 1313 -q, --quiet, --silent do not print \`checking ...' messages 1314 --cache-file=FILE cache test results in FILE [disabled] 1315 -C, --config-cache alias for \`--cache-file=config.cache' 1316 -n, --no-create do not create output files 1317 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1318 1319Installation directories: 1320 --prefix=PREFIX install architecture-independent files in PREFIX 1321 [$ac_default_prefix] 1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1323 [PREFIX] 1324 1325By default, \`make install' will install all the files in 1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1327an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1328for instance \`--prefix=\$HOME'. 1329 1330For better control, use the options below. 1331 1332Fine tuning of the installation directories: 1333 --bindir=DIR user executables [EPREFIX/bin] 1334 --sbindir=DIR system admin executables [EPREFIX/sbin] 1335 --libexecdir=DIR program executables [EPREFIX/libexec] 1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1339 --libdir=DIR object code libraries [EPREFIX/lib] 1340 --includedir=DIR C header files [PREFIX/include] 1341 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1344 --infodir=DIR info documentation [DATAROOTDIR/info] 1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1346 --mandir=DIR man documentation [DATAROOTDIR/man] 1347 --docdir=DIR documentation root [DATAROOTDIR/doc/netgen] 1348 --htmldir=DIR html documentation [DOCDIR] 1349 --dvidir=DIR dvi documentation [DOCDIR] 1350 --pdfdir=DIR pdf documentation [DOCDIR] 1351 --psdir=DIR ps documentation [DOCDIR] 1352_ACEOF 1353 1354 cat <<\_ACEOF 1355 1356X features: 1357 --x-includes=DIR X include files are in DIR 1358 --x-libraries=DIR X library files are in DIR 1359 1360System types: 1361 --build=BUILD configure for building on BUILD [guessed] 1362 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1363 --target=TARGET configure for building compilers for TARGET [HOST] 1364_ACEOF 1365fi 1366 1367if test -n "$ac_init_help"; then 1368 case $ac_init_help in 1369 short | recursive ) echo "Configuration of netgen 1.3:";; 1370 esac 1371 cat <<\_ACEOF 1372 1373Optional Packages: 1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1376 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1377 --with-distdir=DIR install into location DIR for distribution 1378 --with-interpreter=arg enable interpreter 1379 --with-tcl=DIR Find tclConfig.sh in DIR 1380 --with-tk=DIR Find tkConfig.sh in DIR 1381 --with-tclincls=DIR Find tcl.h in DIR 1382 --with-tkincls=DIR Find tk.h in DIR 1383 --with-tcllibs=DIR Find Tcl library in DIR 1384 --with-tklibs=DIR Find Tk library in DIR 1385 --with-widgets=arg select widget set 1386 --with-x use the X Window System 1387 1388Some influential environment variables: 1389 CC C compiler command 1390 CFLAGS C compiler flags 1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1392 nonstandard directory <lib dir> 1393 LIBS libraries to pass to the linker, e.g. -l<library> 1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1395 you have headers in a nonstandard directory <include dir> 1396 CPP C preprocessor 1397 XMKMF Path to xmkmf, Makefile generator for X Window System 1398 1399Use these variables to override the choices made by `configure' or to help 1400it to find libraries and programs with nonstandard names/locations. 1401 1402Report bugs to <eda-dev@opencircuitdesign.com>. 1403_ACEOF 1404ac_status=$? 1405fi 1406 1407if test "$ac_init_help" = "recursive"; then 1408 # If there are subdirs, report their specific --help. 1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1410 test -d "$ac_dir" || 1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1412 continue 1413 ac_builddir=. 1414 1415case "$ac_dir" in 1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417*) 1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1419 # A ".." for each directory in $ac_dir_suffix. 1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1421 case $ac_top_builddir_sub in 1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1424 esac ;; 1425esac 1426ac_abs_top_builddir=$ac_pwd 1427ac_abs_builddir=$ac_pwd$ac_dir_suffix 1428# for backward compatibility: 1429ac_top_builddir=$ac_top_build_prefix 1430 1431case $srcdir in 1432 .) # We are building in place. 1433 ac_srcdir=. 1434 ac_top_srcdir=$ac_top_builddir_sub 1435 ac_abs_top_srcdir=$ac_pwd ;; 1436 [\\/]* | ?:[\\/]* ) # Absolute name. 1437 ac_srcdir=$srcdir$ac_dir_suffix; 1438 ac_top_srcdir=$srcdir 1439 ac_abs_top_srcdir=$srcdir ;; 1440 *) # Relative name. 1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1442 ac_top_srcdir=$ac_top_build_prefix$srcdir 1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1444esac 1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1446 1447 cd "$ac_dir" || { ac_status=$?; continue; } 1448 # Check for guested configure. 1449 if test -f "$ac_srcdir/configure.gnu"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1452 elif test -f "$ac_srcdir/configure"; then 1453 echo && 1454 $SHELL "$ac_srcdir/configure" --help=recursive 1455 else 1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1457 fi || ac_status=$? 1458 cd "$ac_pwd" || { ac_status=$?; break; } 1459 done 1460fi 1461 1462test -n "$ac_init_help" && exit $ac_status 1463if $ac_init_version; then 1464 cat <<\_ACEOF 1465netgen configure 1.3 1466generated by GNU Autoconf 2.69 1467 1468Copyright (C) 2012 Free Software Foundation, Inc. 1469This configure script is free software; the Free Software Foundation 1470gives unlimited permission to copy, distribute and modify it. 1471_ACEOF 1472 exit 1473fi 1474 1475## ------------------------ ## 1476## Autoconf initialization. ## 1477## ------------------------ ## 1478 1479# ac_fn_c_try_compile LINENO 1480# -------------------------- 1481# Try to compile conftest.$ac_ext, and return whether this succeeded. 1482ac_fn_c_try_compile () 1483{ 1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1485 rm -f conftest.$ac_objext 1486 if { { ac_try="$ac_compile" 1487case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490esac 1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492$as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_compile") 2>conftest.err 1494 ac_status=$? 1495 if test -s conftest.err; then 1496 grep -v '^ *+' conftest.err >conftest.er1 1497 cat conftest.er1 >&5 1498 mv -f conftest.er1 conftest.err 1499 fi 1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1501 test $ac_status = 0; } && { 1502 test -z "$ac_c_werror_flag" || 1503 test ! -s conftest.err 1504 } && test -s conftest.$ac_objext; then : 1505 ac_retval=0 1506else 1507 $as_echo "$as_me: failed program was:" >&5 1508sed 's/^/| /' conftest.$ac_ext >&5 1509 1510 ac_retval=1 1511fi 1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1513 as_fn_set_status $ac_retval 1514 1515} # ac_fn_c_try_compile 1516 1517# ac_fn_c_try_cpp LINENO 1518# ---------------------- 1519# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_c_try_cpp () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 if { { ac_try="$ac_cpp conftest.$ac_ext" 1524case "(($ac_try" in 1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1526 *) ac_try_echo=$ac_try;; 1527esac 1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1529$as_echo "$ac_try_echo"; } >&5 1530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1531 ac_status=$? 1532 if test -s conftest.err; then 1533 grep -v '^ *+' conftest.err >conftest.er1 1534 cat conftest.er1 >&5 1535 mv -f conftest.er1 conftest.err 1536 fi 1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1538 test $ac_status = 0; } > conftest.i && { 1539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1540 test ! -s conftest.err 1541 }; then : 1542 ac_retval=0 1543else 1544 $as_echo "$as_me: failed program was:" >&5 1545sed 's/^/| /' conftest.$ac_ext >&5 1546 1547 ac_retval=1 1548fi 1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550 as_fn_set_status $ac_retval 1551 1552} # ac_fn_c_try_cpp 1553 1554# ac_fn_c_try_link LINENO 1555# ----------------------- 1556# Try to link conftest.$ac_ext, and return whether this succeeded. 1557ac_fn_c_try_link () 1558{ 1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1560 rm -f conftest.$ac_objext conftest$ac_exeext 1561 if { { ac_try="$ac_link" 1562case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567$as_echo "$ac_try_echo"; } >&5 1568 (eval "$ac_link") 2>conftest.err 1569 ac_status=$? 1570 if test -s conftest.err; then 1571 grep -v '^ *+' conftest.err >conftest.er1 1572 cat conftest.er1 >&5 1573 mv -f conftest.er1 conftest.err 1574 fi 1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576 test $ac_status = 0; } && { 1577 test -z "$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 } && test -s conftest$ac_exeext && { 1580 test "$cross_compiling" = yes || 1581 test -x conftest$ac_exeext 1582 }; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1592 # interfere with the next link command; also delete a directory that is 1593 # left behind by Apple's compiler. We do this before executing the actions. 1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1596 as_fn_set_status $ac_retval 1597 1598} # ac_fn_c_try_link 1599 1600# ac_fn_c_try_run LINENO 1601# ---------------------- 1602# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1603# that executables *can* be run. 1604ac_fn_c_try_run () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 if { { ac_try="$ac_link" 1608case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611esac 1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613$as_echo "$ac_try_echo"; } >&5 1614 (eval "$ac_link") 2>&5 1615 ac_status=$? 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1618 { { case "(($ac_try" in 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1620 *) ac_try_echo=$ac_try;; 1621esac 1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1623$as_echo "$ac_try_echo"; } >&5 1624 (eval "$ac_try") 2>&5 1625 ac_status=$? 1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; }; }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: program exited with status $ac_status" >&5 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=$ac_status 1635fi 1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1638 as_fn_set_status $ac_retval 1639 1640} # ac_fn_c_try_run 1641 1642# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1643# -------------------------------------------- 1644# Tries to find the compile-time value of EXPR in a program that includes 1645# INCLUDES, setting VAR accordingly. Returns whether the value could be 1646# computed 1647ac_fn_c_compute_int () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 if test "$cross_compiling" = yes; then 1651 # Depending upon the size, compute the lo and hi bounds. 1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1653/* end confdefs.h. */ 1654$4 1655int 1656main () 1657{ 1658static int test_array [1 - 2 * !(($2) >= 0)]; 1659test_array [0] = 0; 1660return test_array [0]; 1661 1662 ; 1663 return 0; 1664} 1665_ACEOF 1666if ac_fn_c_try_compile "$LINENO"; then : 1667 ac_lo=0 ac_mid=0 1668 while :; do 1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671$4 1672int 1673main () 1674{ 1675static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1676test_array [0] = 0; 1677return test_array [0]; 1678 1679 ; 1680 return 0; 1681} 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 ac_hi=$ac_mid; break 1685else 1686 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1687 if test $ac_lo -le $ac_mid; then 1688 ac_lo= ac_hi= 1689 break 1690 fi 1691 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1692fi 1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1694 done 1695else 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699int 1700main () 1701{ 1702static int test_array [1 - 2 * !(($2) < 0)]; 1703test_array [0] = 0; 1704return test_array [0]; 1705 1706 ; 1707 return 0; 1708} 1709_ACEOF 1710if ac_fn_c_try_compile "$LINENO"; then : 1711 ac_hi=-1 ac_mid=-1 1712 while :; do 1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715$4 1716int 1717main () 1718{ 1719static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1720test_array [0] = 0; 1721return test_array [0]; 1722 1723 ; 1724 return 0; 1725} 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 ac_lo=$ac_mid; break 1729else 1730 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1731 if test $ac_mid -le $ac_hi; then 1732 ac_lo= ac_hi= 1733 break 1734 fi 1735 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738 done 1739else 1740 ac_lo= ac_hi= 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1745# Binary search between lo and hi bounds. 1746while test "x$ac_lo" != "x$ac_hi"; do 1747 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750$4 1751int 1752main () 1753{ 1754static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1755test_array [0] = 0; 1756return test_array [0]; 1757 1758 ; 1759 return 0; 1760} 1761_ACEOF 1762if ac_fn_c_try_compile "$LINENO"; then : 1763 ac_hi=$ac_mid 1764else 1765 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1768done 1769case $ac_lo in #(( 1770?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1771'') ac_retval=1 ;; 1772esac 1773 else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776$4 1777static long int longval () { return $2; } 1778static unsigned long int ulongval () { return $2; } 1779#include <stdio.h> 1780#include <stdlib.h> 1781int 1782main () 1783{ 1784 1785 FILE *f = fopen ("conftest.val", "w"); 1786 if (! f) 1787 return 1; 1788 if (($2) < 0) 1789 { 1790 long int i = longval (); 1791 if (i != ($2)) 1792 return 1; 1793 fprintf (f, "%ld", i); 1794 } 1795 else 1796 { 1797 unsigned long int i = ulongval (); 1798 if (i != ($2)) 1799 return 1; 1800 fprintf (f, "%lu", i); 1801 } 1802 /* Do not output a trailing newline, as this causes \r\n confusion 1803 on some platforms. */ 1804 return ferror (f) || fclose (f) != 0; 1805 1806 ; 1807 return 0; 1808} 1809_ACEOF 1810if ac_fn_c_try_run "$LINENO"; then : 1811 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1812else 1813 ac_retval=1 1814fi 1815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1816 conftest.$ac_objext conftest.beam conftest.$ac_ext 1817rm -f conftest.val 1818 1819 fi 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_compute_int 1824 1825# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1826# ------------------------------------------------------- 1827# Tests whether HEADER exists and can be compiled using the include files in 1828# INCLUDES, setting the cache variable VAR accordingly. 1829ac_fn_c_check_header_compile () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if eval \${$3+:} false; then : 1835 $as_echo_n "(cached) " >&6 1836else 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839$4 1840#include <$2> 1841_ACEOF 1842if ac_fn_c_try_compile "$LINENO"; then : 1843 eval "$3=yes" 1844else 1845 eval "$3=no" 1846fi 1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 1854} # ac_fn_c_check_header_compile 1855 1856# ac_fn_c_check_func LINENO FUNC VAR 1857# ---------------------------------- 1858# Tests whether FUNC exists, setting the cache variable VAR accordingly 1859ac_fn_c_check_func () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1863$as_echo_n "checking for $2... " >&6; } 1864if eval \${$3+:} false; then : 1865 $as_echo_n "(cached) " >&6 1866else 1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1871#define $2 innocuous_$2 1872 1873/* System header to define __stub macros and hopefully few prototypes, 1874 which can conflict with char $2 (); below. 1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1876 <limits.h> exists even on freestanding compilers. */ 1877 1878#ifdef __STDC__ 1879# include <limits.h> 1880#else 1881# include <assert.h> 1882#endif 1883 1884#undef $2 1885 1886/* Override any GCC internal prototype to avoid an error. 1887 Use char because int might match the return type of a GCC 1888 builtin and then its argument prototype would still apply. */ 1889#ifdef __cplusplus 1890extern "C" 1891#endif 1892char $2 (); 1893/* The GNU C library defines this for functions which it implements 1894 to always fail with ENOSYS. Some functions are actually named 1895 something starting with __ and the normal name is an alias. */ 1896#if defined __stub_$2 || defined __stub___$2 1897choke me 1898#endif 1899 1900int 1901main () 1902{ 1903return $2 (); 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908if ac_fn_c_try_link "$LINENO"; then : 1909 eval "$3=yes" 1910else 1911 eval "$3=no" 1912fi 1913rm -f core conftest.err conftest.$ac_objext \ 1914 conftest$ac_exeext conftest.$ac_ext 1915fi 1916eval ac_res=\$$3 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918$as_echo "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921} # ac_fn_c_check_func 1922 1923# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1924# ------------------------------------------------------- 1925# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1926# the include files in INCLUDES and setting the cache variable VAR 1927# accordingly. 1928ac_fn_c_check_header_mongrel () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 if eval \${$3+:} false; then : 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1933$as_echo_n "checking for $2... " >&6; } 1934if eval \${$3+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940else 1941 # Is the header compilable? 1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1943$as_echo_n "checking $2 usability... " >&6; } 1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947#include <$2> 1948_ACEOF 1949if ac_fn_c_try_compile "$LINENO"; then : 1950 ac_header_compiler=yes 1951else 1952 ac_header_compiler=no 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1956$as_echo "$ac_header_compiler" >&6; } 1957 1958# Is the header present? 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1960$as_echo_n "checking $2 presence... " >&6; } 1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963#include <$2> 1964_ACEOF 1965if ac_fn_c_try_cpp "$LINENO"; then : 1966 ac_header_preproc=yes 1967else 1968 ac_header_preproc=no 1969fi 1970rm -f conftest.err conftest.i conftest.$ac_ext 1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1972$as_echo "$ac_header_preproc" >&6; } 1973 1974# So? What about this header? 1975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1976 yes:no: ) 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1978$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1981 ;; 1982 no:yes:* ) 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1984$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1986$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1988$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1990$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1993( $as_echo "## -------------------------------------------- ## 1994## Report this to eda-dev@opencircuitdesign.com ## 1995## -------------------------------------------- ##" 1996 ) | sed "s/^/$as_me: WARNING: /" >&2 1997 ;; 1998esac 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2000$as_echo_n "checking for $2... " >&6; } 2001if eval \${$3+:} false; then : 2002 $as_echo_n "(cached) " >&6 2003else 2004 eval "$3=\$ac_header_compiler" 2005fi 2006eval ac_res=\$$3 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008$as_echo "$ac_res" >&6; } 2009fi 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011 2012} # ac_fn_c_check_header_mongrel 2013cat >config.log <<_ACEOF 2014This file contains any messages produced by compilers while 2015running configure, to aid debugging if configure makes a mistake. 2016 2017It was created by netgen $as_me 1.3, which was 2018generated by GNU Autoconf 2.69. Invocation command line was 2019 2020 $ $0 $@ 2021 2022_ACEOF 2023exec 5>>config.log 2024{ 2025cat <<_ASUNAME 2026## --------- ## 2027## Platform. ## 2028## --------- ## 2029 2030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2031uname -m = `(uname -m) 2>/dev/null || echo unknown` 2032uname -r = `(uname -r) 2>/dev/null || echo unknown` 2033uname -s = `(uname -s) 2>/dev/null || echo unknown` 2034uname -v = `(uname -v) 2>/dev/null || echo unknown` 2035 2036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2037/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2038 2039/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2040/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2042/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2043/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2044/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2045/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2046 2047_ASUNAME 2048 2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2050for as_dir in $PATH 2051do 2052 IFS=$as_save_IFS 2053 test -z "$as_dir" && as_dir=. 2054 $as_echo "PATH: $as_dir" 2055 done 2056IFS=$as_save_IFS 2057 2058} >&5 2059 2060cat >&5 <<_ACEOF 2061 2062 2063## ----------- ## 2064## Core tests. ## 2065## ----------- ## 2066 2067_ACEOF 2068 2069 2070# Keep a trace of the command line. 2071# Strip out --no-create and --no-recursion so they do not pile up. 2072# Strip out --silent because we don't want to record it for future runs. 2073# Also quote any args containing shell meta-characters. 2074# Make two passes to allow for proper duplicate-argument suppression. 2075ac_configure_args= 2076ac_configure_args0= 2077ac_configure_args1= 2078ac_must_keep_next=false 2079for ac_pass in 1 2 2080do 2081 for ac_arg 2082 do 2083 case $ac_arg in 2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2086 | -silent | --silent | --silen | --sile | --sil) 2087 continue ;; 2088 *\'*) 2089 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2090 esac 2091 case $ac_pass in 2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2093 2) 2094 as_fn_append ac_configure_args1 " '$ac_arg'" 2095 if test $ac_must_keep_next = true; then 2096 ac_must_keep_next=false # Got value, back to normal. 2097 else 2098 case $ac_arg in 2099 *=* | --config-cache | -C | -disable-* | --disable-* \ 2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2102 | -with-* | --with-* | -without-* | --without-* | --x) 2103 case "$ac_configure_args0 " in 2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2105 esac 2106 ;; 2107 -* ) ac_must_keep_next=true ;; 2108 esac 2109 fi 2110 as_fn_append ac_configure_args " '$ac_arg'" 2111 ;; 2112 esac 2113 done 2114done 2115{ ac_configure_args0=; unset ac_configure_args0;} 2116{ ac_configure_args1=; unset ac_configure_args1;} 2117 2118# When interrupted or exit'd, cleanup temporary files, and complete 2119# config.log. We remove comments because anyway the quotes in there 2120# would cause problems or look ugly. 2121# WARNING: Use '\'' to represent an apostrophe within the trap. 2122# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2123trap 'exit_status=$? 2124 # Save into config.log some information that might help in debugging. 2125 { 2126 echo 2127 2128 $as_echo "## ---------------- ## 2129## Cache variables. ## 2130## ---------------- ##" 2131 echo 2132 # The following way of writing the cache mishandles newlines in values, 2133( 2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2135 eval ac_val=\$$ac_var 2136 case $ac_val in #( 2137 *${as_nl}*) 2138 case $ac_var in #( 2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2141 esac 2142 case $ac_var in #( 2143 _ | IFS | as_nl) ;; #( 2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2145 *) { eval $ac_var=; unset $ac_var;} ;; 2146 esac ;; 2147 esac 2148 done 2149 (set) 2>&1 | 2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2151 *${as_nl}ac_space=\ *) 2152 sed -n \ 2153 "s/'\''/'\''\\\\'\'''\''/g; 2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2155 ;; #( 2156 *) 2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2158 ;; 2159 esac | 2160 sort 2161) 2162 echo 2163 2164 $as_echo "## ----------------- ## 2165## Output variables. ## 2166## ----------------- ##" 2167 echo 2168 for ac_var in $ac_subst_vars 2169 do 2170 eval ac_val=\$$ac_var 2171 case $ac_val in 2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2173 esac 2174 $as_echo "$ac_var='\''$ac_val'\''" 2175 done | sort 2176 echo 2177 2178 if test -n "$ac_subst_files"; then 2179 $as_echo "## ------------------- ## 2180## File substitutions. ## 2181## ------------------- ##" 2182 echo 2183 for ac_var in $ac_subst_files 2184 do 2185 eval ac_val=\$$ac_var 2186 case $ac_val in 2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2188 esac 2189 $as_echo "$ac_var='\''$ac_val'\''" 2190 done | sort 2191 echo 2192 fi 2193 2194 if test -s confdefs.h; then 2195 $as_echo "## ----------- ## 2196## confdefs.h. ## 2197## ----------- ##" 2198 echo 2199 cat confdefs.h 2200 echo 2201 fi 2202 test "$ac_signal" != 0 && 2203 $as_echo "$as_me: caught signal $ac_signal" 2204 $as_echo "$as_me: exit $exit_status" 2205 } >&5 2206 rm -f core *.core core.conftest.* && 2207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2208 exit $exit_status 2209' 0 2210for ac_signal in 1 2 13 15; do 2211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2212done 2213ac_signal=0 2214 2215# confdefs.h avoids OS command line length limits that DEFS can exceed. 2216rm -f -r conftest* confdefs.h 2217 2218$as_echo "/* confdefs.h */" > confdefs.h 2219 2220# Predefined preprocessor variables. 2221 2222cat >>confdefs.h <<_ACEOF 2223#define PACKAGE_NAME "$PACKAGE_NAME" 2224_ACEOF 2225 2226cat >>confdefs.h <<_ACEOF 2227#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2228_ACEOF 2229 2230cat >>confdefs.h <<_ACEOF 2231#define PACKAGE_VERSION "$PACKAGE_VERSION" 2232_ACEOF 2233 2234cat >>confdefs.h <<_ACEOF 2235#define PACKAGE_STRING "$PACKAGE_STRING" 2236_ACEOF 2237 2238cat >>confdefs.h <<_ACEOF 2239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2240_ACEOF 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE_URL "$PACKAGE_URL" 2244_ACEOF 2245 2246 2247# Let the site file select an alternate cache file if it wants to. 2248# Prefer an explicitly selected file to automatically selected ones. 2249ac_site_file1=NONE 2250ac_site_file2=NONE 2251if test -n "$CONFIG_SITE"; then 2252 # We do not want a PATH search for config.site. 2253 case $CONFIG_SITE in #(( 2254 -*) ac_site_file1=./$CONFIG_SITE;; 2255 */*) ac_site_file1=$CONFIG_SITE;; 2256 *) ac_site_file1=./$CONFIG_SITE;; 2257 esac 2258elif test "x$prefix" != xNONE; then 2259 ac_site_file1=$prefix/share/config.site 2260 ac_site_file2=$prefix/etc/config.site 2261else 2262 ac_site_file1=$ac_default_prefix/share/config.site 2263 ac_site_file2=$ac_default_prefix/etc/config.site 2264fi 2265for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2266do 2267 test "x$ac_site_file" = xNONE && continue 2268 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2270$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2271 sed 's/^/| /' "$ac_site_file" >&5 2272 . "$ac_site_file" \ 2273 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2275as_fn_error $? "failed to load site script $ac_site_file 2276See \`config.log' for more details" "$LINENO" 5; } 2277 fi 2278done 2279 2280if test -r "$cache_file"; then 2281 # Some versions of bash will fail to source /dev/null (special files 2282 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2283 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2285$as_echo "$as_me: loading cache $cache_file" >&6;} 2286 case $cache_file in 2287 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2288 *) . "./$cache_file";; 2289 esac 2290 fi 2291else 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2293$as_echo "$as_me: creating cache $cache_file" >&6;} 2294 >$cache_file 2295fi 2296 2297# Check that the precious variables saved in the cache have kept the same 2298# value. 2299ac_cache_corrupted=false 2300for ac_var in $ac_precious_vars; do 2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2302 eval ac_new_set=\$ac_env_${ac_var}_set 2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2304 eval ac_new_val=\$ac_env_${ac_var}_value 2305 case $ac_old_set,$ac_new_set in 2306 set,) 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2308$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2309 ac_cache_corrupted=: ;; 2310 ,set) 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2312$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2313 ac_cache_corrupted=: ;; 2314 ,);; 2315 *) 2316 if test "x$ac_old_val" != "x$ac_new_val"; then 2317 # differences in whitespace do not lead to failure. 2318 ac_old_val_w=`echo x $ac_old_val` 2319 ac_new_val_w=`echo x $ac_new_val` 2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2322$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2323 ac_cache_corrupted=: 2324 else 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2326$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2327 eval $ac_var=\$ac_old_val 2328 fi 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2330$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2332$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2333 fi;; 2334 esac 2335 # Pass precious variables to config.status. 2336 if test "$ac_new_set" = set; then 2337 case $ac_new_val in 2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2339 *) ac_arg=$ac_var=$ac_new_val ;; 2340 esac 2341 case " $ac_configure_args " in 2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2344 esac 2345 fi 2346done 2347if $ac_cache_corrupted; then 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2351$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2352 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2353fi 2354## -------------------- ## 2355## Main body of script. ## 2356## -------------------- ## 2357 2358ac_ext=c 2359ac_cpp='$CPP $CPPFLAGS' 2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2362ac_compiler_gnu=$ac_cv_c_compiler_gnu 2363 2364 2365 2366 2367ac_aux_dir= 2368for ac_dir in . "$srcdir"/.; do 2369 if test -f "$ac_dir/install-sh"; then 2370 ac_aux_dir=$ac_dir 2371 ac_install_sh="$ac_aux_dir/install-sh -c" 2372 break 2373 elif test -f "$ac_dir/install.sh"; then 2374 ac_aux_dir=$ac_dir 2375 ac_install_sh="$ac_aux_dir/install.sh -c" 2376 break 2377 elif test -f "$ac_dir/shtool"; then 2378 ac_aux_dir=$ac_dir 2379 ac_install_sh="$ac_aux_dir/shtool install -c" 2380 break 2381 fi 2382done 2383if test -z "$ac_aux_dir"; then 2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2385fi 2386 2387# These three variables are undocumented and unsupported, 2388# and are intended to be withdrawn in a future Autoconf release. 2389# They can cause serious problems if a builder's source tree is in a directory 2390# whose full name contains unusual characters. 2391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2394 2395 2396 2397# Make sure we can run config.sub. 2398$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2400 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2402$as_echo_n "checking build system type... " >&6; } 2403if ${ac_cv_build+:} false; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 ac_build_alias=$build_alias 2407test "x$ac_build_alias" = x && 2408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2409test "x$ac_build_alias" = x && 2410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2411ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2413 2414fi 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2416$as_echo "$ac_cv_build" >&6; } 2417case $ac_cv_build in 2418*-*-*) ;; 2419*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2420esac 2421build=$ac_cv_build 2422ac_save_IFS=$IFS; IFS='-' 2423set x $ac_cv_build 2424shift 2425build_cpu=$1 2426build_vendor=$2 2427shift; shift 2428# Remember, the first character of IFS is used to create $*, 2429# except with old shells: 2430build_os=$* 2431IFS=$ac_save_IFS 2432case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2433 2434 2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2436$as_echo_n "checking host system type... " >&6; } 2437if ${ac_cv_host+:} false; then : 2438 $as_echo_n "(cached) " >&6 2439else 2440 if test "x$host_alias" = x; then 2441 ac_cv_host=$ac_cv_build 2442else 2443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2445fi 2446 2447fi 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2449$as_echo "$ac_cv_host" >&6; } 2450case $ac_cv_host in 2451*-*-*) ;; 2452*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2453esac 2454host=$ac_cv_host 2455ac_save_IFS=$IFS; IFS='-' 2456set x $ac_cv_host 2457shift 2458host_cpu=$1 2459host_vendor=$2 2460shift; shift 2461# Remember, the first character of IFS is used to create $*, 2462# except with old shells: 2463host_os=$* 2464IFS=$ac_save_IFS 2465case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2466 2467 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2469$as_echo_n "checking target system type... " >&6; } 2470if ${ac_cv_target+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test "x$target_alias" = x; then 2474 ac_cv_target=$ac_cv_host 2475else 2476 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2478fi 2479 2480fi 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2482$as_echo "$ac_cv_target" >&6; } 2483case $ac_cv_target in 2484*-*-*) ;; 2485*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2486esac 2487target=$ac_cv_target 2488ac_save_IFS=$IFS; IFS='-' 2489set x $ac_cv_target 2490shift 2491target_cpu=$1 2492target_vendor=$2 2493shift; shift 2494# Remember, the first character of IFS is used to create $*, 2495# except with old shells: 2496target_os=$* 2497IFS=$ac_save_IFS 2498case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2499 2500 2501# The aliases save the names the user supplied, while $host etc. 2502# will get canonicalized. 2503test -n "$target_alias" && 2504 test "$program_prefix$program_suffix$program_transform_name" = \ 2505 NONENONEs,x,x, && 2506 program_prefix=${target_alias}- 2507 2508 2509PACKAGE=netgen 2510NETGEN_VERSION=`cat ../VERSION | cut -d. -f1-2` 2511NETGEN_REVISION=`cat ../VERSION | cut -d. -f3` 2512cat >>confdefs.h <<_ACEOF 2513#define NETGEN_VERSION "${NETGEN_VERSION}" 2514_ACEOF 2515 2516cat >>confdefs.h <<_ACEOF 2517#define NETGEN_REVISION "${NETGEN_REVISION}" 2518_ACEOF 2519 2520 2521ALL_TARGET="standard" 2522INSTALL_TARGET="install-netgen" 2523 2524ac_ext=c 2525ac_cpp='$CPP $CPPFLAGS' 2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2528ac_compiler_gnu=$ac_cv_c_compiler_gnu 2529if test -n "$ac_tool_prefix"; then 2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2531set dummy ${ac_tool_prefix}gcc; ac_word=$2 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533$as_echo_n "checking for $ac_word... " >&6; } 2534if ${ac_cv_prog_CC+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 if test -n "$CC"; then 2538 ac_cv_prog_CC="$CC" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2547 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552 done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557CC=$ac_cv_prog_CC 2558if test -n "$CC"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2560$as_echo "$CC" >&6; } 2561else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563$as_echo "no" >&6; } 2564fi 2565 2566 2567fi 2568if test -z "$ac_cv_prog_CC"; then 2569 ac_ct_CC=$CC 2570 # Extract the first word of "gcc", so it can be a program name with args. 2571set dummy gcc; ac_word=$2 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2573$as_echo_n "checking for $ac_word... " >&6; } 2574if ${ac_cv_prog_ac_ct_CC+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 if test -n "$ac_ct_CC"; then 2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2579else 2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_exec_ext in '' $ac_executable_extensions; do 2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2587 ac_cv_prog_ac_ct_CC="gcc" 2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2589 break 2 2590 fi 2591done 2592 done 2593IFS=$as_save_IFS 2594 2595fi 2596fi 2597ac_ct_CC=$ac_cv_prog_ac_ct_CC 2598if test -n "$ac_ct_CC"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2600$as_echo "$ac_ct_CC" >&6; } 2601else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2603$as_echo "no" >&6; } 2604fi 2605 2606 if test "x$ac_ct_CC" = x; then 2607 CC="" 2608 else 2609 case $cross_compiling:$ac_tool_warned in 2610yes:) 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2613ac_tool_warned=yes ;; 2614esac 2615 CC=$ac_ct_CC 2616 fi 2617else 2618 CC="$ac_cv_prog_CC" 2619fi 2620 2621if test -z "$CC"; then 2622 if test -n "$ac_tool_prefix"; then 2623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2624set dummy ${ac_tool_prefix}cc; ac_word=$2 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2626$as_echo_n "checking for $ac_word... " >&6; } 2627if ${ac_cv_prog_CC+:} false; then : 2628 $as_echo_n "(cached) " >&6 2629else 2630 if test -n "$CC"; then 2631 ac_cv_prog_CC="$CC" # Let the user override the test. 2632else 2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2634for as_dir in $PATH 2635do 2636 IFS=$as_save_IFS 2637 test -z "$as_dir" && as_dir=. 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2640 ac_cv_prog_CC="${ac_tool_prefix}cc" 2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645 done 2646IFS=$as_save_IFS 2647 2648fi 2649fi 2650CC=$ac_cv_prog_CC 2651if test -n "$CC"; then 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2653$as_echo "$CC" >&6; } 2654else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656$as_echo "no" >&6; } 2657fi 2658 2659 2660 fi 2661fi 2662if test -z "$CC"; then 2663 # Extract the first word of "cc", so it can be a program name with args. 2664set dummy cc; ac_word=$2 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2666$as_echo_n "checking for $ac_word... " >&6; } 2667if ${ac_cv_prog_CC+:} false; then : 2668 $as_echo_n "(cached) " >&6 2669else 2670 if test -n "$CC"; then 2671 ac_cv_prog_CC="$CC" # Let the user override the test. 2672else 2673 ac_prog_rejected=no 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2682 ac_prog_rejected=yes 2683 continue 2684 fi 2685 ac_cv_prog_CC="cc" 2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689done 2690 done 2691IFS=$as_save_IFS 2692 2693if test $ac_prog_rejected = yes; then 2694 # We found a bogon in the path, so make sure we never use it. 2695 set dummy $ac_cv_prog_CC 2696 shift 2697 if test $# != 0; then 2698 # We chose a different compiler from the bogus one. 2699 # However, it has the same basename, so the bogon will be chosen 2700 # first if we set CC to just the basename; use the full file name. 2701 shift 2702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2703 fi 2704fi 2705fi 2706fi 2707CC=$ac_cv_prog_CC 2708if test -n "$CC"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2710$as_echo "$CC" >&6; } 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714fi 2715 2716 2717fi 2718if test -z "$CC"; then 2719 if test -n "$ac_tool_prefix"; then 2720 for ac_prog in cl.exe 2721 do 2722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2723set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2725$as_echo_n "checking for $ac_word... " >&6; } 2726if ${ac_cv_prog_CC+:} false; then : 2727 $as_echo_n "(cached) " >&6 2728else 2729 if test -n "$CC"; then 2730 ac_cv_prog_CC="$CC" # Let the user override the test. 2731else 2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2741 break 2 2742 fi 2743done 2744 done 2745IFS=$as_save_IFS 2746 2747fi 2748fi 2749CC=$ac_cv_prog_CC 2750if test -n "$CC"; then 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2752$as_echo "$CC" >&6; } 2753else 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2755$as_echo "no" >&6; } 2756fi 2757 2758 2759 test -n "$CC" && break 2760 done 2761fi 2762if test -z "$CC"; then 2763 ac_ct_CC=$CC 2764 for ac_prog in cl.exe 2765do 2766 # Extract the first word of "$ac_prog", so it can be a program name with args. 2767set dummy $ac_prog; ac_word=$2 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769$as_echo_n "checking for $ac_word... " >&6; } 2770if ${ac_cv_prog_ac_ct_CC+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 if test -n "$ac_ct_CC"; then 2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_ac_ct_CC="$ac_prog" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793ac_ct_CC=$ac_cv_prog_ac_ct_CC 2794if test -n "$ac_ct_CC"; then 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2796$as_echo "$ac_ct_CC" >&6; } 2797else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799$as_echo "no" >&6; } 2800fi 2801 2802 2803 test -n "$ac_ct_CC" && break 2804done 2805 2806 if test "x$ac_ct_CC" = x; then 2807 CC="" 2808 else 2809 case $cross_compiling:$ac_tool_warned in 2810yes:) 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2813ac_tool_warned=yes ;; 2814esac 2815 CC=$ac_ct_CC 2816 fi 2817fi 2818 2819fi 2820 2821 2822test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2824as_fn_error $? "no acceptable C compiler found in \$PATH 2825See \`config.log' for more details" "$LINENO" 5; } 2826 2827# Provide some information about the compiler. 2828$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2829set X $ac_compile 2830ac_compiler=$2 2831for ac_option in --version -v -V -qversion; do 2832 { { ac_try="$ac_compiler $ac_option >&5" 2833case "(($ac_try" in 2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2835 *) ac_try_echo=$ac_try;; 2836esac 2837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2838$as_echo "$ac_try_echo"; } >&5 2839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2840 ac_status=$? 2841 if test -s conftest.err; then 2842 sed '10a\ 2843... rest of stderr output deleted ... 2844 10q' conftest.err >conftest.er1 2845 cat conftest.er1 >&5 2846 fi 2847 rm -f conftest.er1 conftest.err 2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2849 test $ac_status = 0; } 2850done 2851 2852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2853/* end confdefs.h. */ 2854 2855int 2856main () 2857{ 2858 2859 ; 2860 return 0; 2861} 2862_ACEOF 2863ac_clean_files_save=$ac_clean_files 2864ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2865# Try to create an executable without -o first, disregard a.out. 2866# It will help us diagnose broken compilers, and finding out an intuition 2867# of exeext. 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2869$as_echo_n "checking whether the C compiler works... " >&6; } 2870ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2871 2872# The possible output files: 2873ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2874 2875ac_rmfiles= 2876for ac_file in $ac_files 2877do 2878 case $ac_file in 2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2880 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2881 esac 2882done 2883rm -f $ac_rmfiles 2884 2885if { { ac_try="$ac_link_default" 2886case "(($ac_try" in 2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2888 *) ac_try_echo=$ac_try;; 2889esac 2890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2891$as_echo "$ac_try_echo"; } >&5 2892 (eval "$ac_link_default") 2>&5 2893 ac_status=$? 2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2895 test $ac_status = 0; }; then : 2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2897# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2898# in a Makefile. We should not override ac_cv_exeext if it was cached, 2899# so that the user can short-circuit this test for compilers unknown to 2900# Autoconf. 2901for ac_file in $ac_files '' 2902do 2903 test -f "$ac_file" || continue 2904 case $ac_file in 2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2906 ;; 2907 [ab].out ) 2908 # We found the default executable, but exeext='' is most 2909 # certainly right. 2910 break;; 2911 *.* ) 2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2913 then :; else 2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2915 fi 2916 # We set ac_cv_exeext here because the later test for it is not 2917 # safe: cross compilers may not add the suffix if given an `-o' 2918 # argument, so we may need to know it at that point already. 2919 # Even if this section looks crufty: it has the advantage of 2920 # actually working. 2921 break;; 2922 * ) 2923 break;; 2924 esac 2925done 2926test "$ac_cv_exeext" = no && ac_cv_exeext= 2927 2928else 2929 ac_file='' 2930fi 2931if test -z "$ac_file"; then : 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934$as_echo "$as_me: failed program was:" >&5 2935sed 's/^/| /' conftest.$ac_ext >&5 2936 2937{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2939as_fn_error 77 "C compiler cannot create executables 2940See \`config.log' for more details" "$LINENO" 5; } 2941else 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2943$as_echo "yes" >&6; } 2944fi 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2946$as_echo_n "checking for C compiler default output file name... " >&6; } 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2948$as_echo "$ac_file" >&6; } 2949ac_exeext=$ac_cv_exeext 2950 2951rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2952ac_clean_files=$ac_clean_files_save 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2954$as_echo_n "checking for suffix of executables... " >&6; } 2955if { { ac_try="$ac_link" 2956case "(($ac_try" in 2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2958 *) ac_try_echo=$ac_try;; 2959esac 2960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2961$as_echo "$ac_try_echo"; } >&5 2962 (eval "$ac_link") 2>&5 2963 ac_status=$? 2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2965 test $ac_status = 0; }; then : 2966 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2967# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2968# work properly (i.e., refer to `conftest.exe'), while it won't with 2969# `rm'. 2970for ac_file in conftest.exe conftest conftest.*; do 2971 test -f "$ac_file" || continue 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2975 break;; 2976 * ) break;; 2977 esac 2978done 2979else 2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2982as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2983See \`config.log' for more details" "$LINENO" 5; } 2984fi 2985rm -f conftest conftest$ac_cv_exeext 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2987$as_echo "$ac_cv_exeext" >&6; } 2988 2989rm -f conftest.$ac_ext 2990EXEEXT=$ac_cv_exeext 2991ac_exeext=$EXEEXT 2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993/* end confdefs.h. */ 2994#include <stdio.h> 2995int 2996main () 2997{ 2998FILE *f = fopen ("conftest.out", "w"); 2999 return ferror (f) || fclose (f) != 0; 3000 3001 ; 3002 return 0; 3003} 3004_ACEOF 3005ac_clean_files="$ac_clean_files conftest.out" 3006# Check that the compiler produces executables we can run. If not, either 3007# the compiler is broken, or we cross compile. 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3009$as_echo_n "checking whether we are cross compiling... " >&6; } 3010if test "$cross_compiling" != yes; then 3011 { { ac_try="$ac_link" 3012case "(($ac_try" in 3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3014 *) ac_try_echo=$ac_try;; 3015esac 3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3017$as_echo "$ac_try_echo"; } >&5 3018 (eval "$ac_link") 2>&5 3019 ac_status=$? 3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3021 test $ac_status = 0; } 3022 if { ac_try='./conftest$ac_cv_exeext' 3023 { { case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026esac 3027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3028$as_echo "$ac_try_echo"; } >&5 3029 (eval "$ac_try") 2>&5 3030 ac_status=$? 3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3032 test $ac_status = 0; }; }; then 3033 cross_compiling=no 3034 else 3035 if test "$cross_compiling" = maybe; then 3036 cross_compiling=yes 3037 else 3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3040as_fn_error $? "cannot run C compiled programs. 3041If you meant to cross compile, use \`--host'. 3042See \`config.log' for more details" "$LINENO" 5; } 3043 fi 3044 fi 3045fi 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3047$as_echo "$cross_compiling" >&6; } 3048 3049rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3050ac_clean_files=$ac_clean_files_save 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3052$as_echo_n "checking for suffix of object files... " >&6; } 3053if ${ac_cv_objext+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3057/* end confdefs.h. */ 3058 3059int 3060main () 3061{ 3062 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067rm -f conftest.o conftest.obj 3068if { { ac_try="$ac_compile" 3069case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3074$as_echo "$ac_try_echo"; } >&5 3075 (eval "$ac_compile") 2>&5 3076 ac_status=$? 3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 test $ac_status = 0; }; then : 3079 for ac_file in conftest.o conftest.obj conftest.*; do 3080 test -f "$ac_file" || continue; 3081 case $ac_file in 3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3084 break;; 3085 esac 3086done 3087else 3088 $as_echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3093as_fn_error $? "cannot compute suffix of object files: cannot compile 3094See \`config.log' for more details" "$LINENO" 5; } 3095fi 3096rm -f conftest.$ac_cv_objext conftest.$ac_ext 3097fi 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3099$as_echo "$ac_cv_objext" >&6; } 3100OBJEXT=$ac_cv_objext 3101ac_objext=$OBJEXT 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3103$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3104if ${ac_cv_c_compiler_gnu+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3108/* end confdefs.h. */ 3109 3110int 3111main () 3112{ 3113#ifndef __GNUC__ 3114 choke me 3115#endif 3116 3117 ; 3118 return 0; 3119} 3120_ACEOF 3121if ac_fn_c_try_compile "$LINENO"; then : 3122 ac_compiler_gnu=yes 3123else 3124 ac_compiler_gnu=no 3125fi 3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3127ac_cv_c_compiler_gnu=$ac_compiler_gnu 3128 3129fi 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3131$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3132if test $ac_compiler_gnu = yes; then 3133 GCC=yes 3134else 3135 GCC= 3136fi 3137ac_test_CFLAGS=${CFLAGS+set} 3138ac_save_CFLAGS=$CFLAGS 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3140$as_echo_n "checking whether $CC accepts -g... " >&6; } 3141if ${ac_cv_prog_cc_g+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 ac_save_c_werror_flag=$ac_c_werror_flag 3145 ac_c_werror_flag=yes 3146 ac_cv_prog_cc_g=no 3147 CFLAGS="-g" 3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3149/* end confdefs.h. */ 3150 3151int 3152main () 3153{ 3154 3155 ; 3156 return 0; 3157} 3158_ACEOF 3159if ac_fn_c_try_compile "$LINENO"; then : 3160 ac_cv_prog_cc_g=yes 3161else 3162 CFLAGS="" 3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3164/* end confdefs.h. */ 3165 3166int 3167main () 3168{ 3169 3170 ; 3171 return 0; 3172} 3173_ACEOF 3174if ac_fn_c_try_compile "$LINENO"; then : 3175 3176else 3177 ac_c_werror_flag=$ac_save_c_werror_flag 3178 CFLAGS="-g" 3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180/* end confdefs.h. */ 3181 3182int 3183main () 3184{ 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190if ac_fn_c_try_compile "$LINENO"; then : 3191 ac_cv_prog_cc_g=yes 3192fi 3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3194fi 3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3196fi 3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3198 ac_c_werror_flag=$ac_save_c_werror_flag 3199fi 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3201$as_echo "$ac_cv_prog_cc_g" >&6; } 3202if test "$ac_test_CFLAGS" = set; then 3203 CFLAGS=$ac_save_CFLAGS 3204elif test $ac_cv_prog_cc_g = yes; then 3205 if test "$GCC" = yes; then 3206 CFLAGS="-g -O2" 3207 else 3208 CFLAGS="-g" 3209 fi 3210else 3211 if test "$GCC" = yes; then 3212 CFLAGS="-O2" 3213 else 3214 CFLAGS= 3215 fi 3216fi 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3218$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3219if ${ac_cv_prog_cc_c89+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 ac_cv_prog_cc_c89=no 3223ac_save_CC=$CC 3224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3225/* end confdefs.h. */ 3226#include <stdarg.h> 3227#include <stdio.h> 3228struct stat; 3229/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3230struct buf { int x; }; 3231FILE * (*rcsopen) (struct buf *, struct stat *, int); 3232static char *e (p, i) 3233 char **p; 3234 int i; 3235{ 3236 return p[i]; 3237} 3238static char *f (char * (*g) (char **, int), char **p, ...) 3239{ 3240 char *s; 3241 va_list v; 3242 va_start (v,p); 3243 s = g (p, va_arg (v,int)); 3244 va_end (v); 3245 return s; 3246} 3247 3248/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3249 function prototypes and stuff, but not '\xHH' hex character constants. 3250 These don't provoke an error unfortunately, instead are silently treated 3251 as 'x'. The following induces an error, until -std is added to get 3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3253 array size at least. It's necessary to write '\x00'==0 to get something 3254 that's true only with -std. */ 3255int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3256 3257/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3258 inside strings and character constants. */ 3259#define FOO(x) 'x' 3260int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3261 3262int test (int i, double x); 3263struct s1 {int (*f) (int a);}; 3264struct s2 {int (*f) (double a);}; 3265int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3266int argc; 3267char **argv; 3268int 3269main () 3270{ 3271return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3278do 3279 CC="$ac_save_CC $ac_arg" 3280 if ac_fn_c_try_compile "$LINENO"; then : 3281 ac_cv_prog_cc_c89=$ac_arg 3282fi 3283rm -f core conftest.err conftest.$ac_objext 3284 test "x$ac_cv_prog_cc_c89" != "xno" && break 3285done 3286rm -f conftest.$ac_ext 3287CC=$ac_save_CC 3288 3289fi 3290# AC_CACHE_VAL 3291case "x$ac_cv_prog_cc_c89" in 3292 x) 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3294$as_echo "none needed" >&6; } ;; 3295 xno) 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3297$as_echo "unsupported" >&6; } ;; 3298 *) 3299 CC="$CC $ac_cv_prog_cc_c89" 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3301$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3302esac 3303if test "x$ac_cv_prog_cc_c89" != xno; then : 3304 3305fi 3306 3307ac_ext=c 3308ac_cpp='$CPP $CPPFLAGS' 3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3311ac_compiler_gnu=$ac_cv_c_compiler_gnu 3312 3313ac_ext=c 3314ac_cpp='$CPP $CPPFLAGS' 3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3317ac_compiler_gnu=$ac_cv_c_compiler_gnu 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3319$as_echo_n "checking how to run the C preprocessor... " >&6; } 3320# On Suns, sometimes $CPP names a directory. 3321if test -n "$CPP" && test -d "$CPP"; then 3322 CPP= 3323fi 3324if test -z "$CPP"; then 3325 if ${ac_cv_prog_CPP+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 # Double quotes because CPP needs to be expanded 3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3330 do 3331 ac_preproc_ok=false 3332for ac_c_preproc_warn_flag in '' yes 3333do 3334 # Use a header file that comes with gcc, so configuring glibc 3335 # with a fresh cross-compiler works. 3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3337 # <limits.h> exists even on freestanding compilers. 3338 # On the NeXT, cc -E runs the code through the compiler's parser, 3339 # not just through cpp. "Syntax error" is here to catch this case. 3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3341/* end confdefs.h. */ 3342#ifdef __STDC__ 3343# include <limits.h> 3344#else 3345# include <assert.h> 3346#endif 3347 Syntax error 3348_ACEOF 3349if ac_fn_c_try_cpp "$LINENO"; then : 3350 3351else 3352 # Broken: fails on valid input. 3353continue 3354fi 3355rm -f conftest.err conftest.i conftest.$ac_ext 3356 3357 # OK, works on sane cases. Now check whether nonexistent headers 3358 # can be detected and how. 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360/* end confdefs.h. */ 3361#include <ac_nonexistent.h> 3362_ACEOF 3363if ac_fn_c_try_cpp "$LINENO"; then : 3364 # Broken: success on invalid input. 3365continue 3366else 3367 # Passes both tests. 3368ac_preproc_ok=: 3369break 3370fi 3371rm -f conftest.err conftest.i conftest.$ac_ext 3372 3373done 3374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3375rm -f conftest.i conftest.err conftest.$ac_ext 3376if $ac_preproc_ok; then : 3377 break 3378fi 3379 3380 done 3381 ac_cv_prog_CPP=$CPP 3382 3383fi 3384 CPP=$ac_cv_prog_CPP 3385else 3386 ac_cv_prog_CPP=$CPP 3387fi 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3389$as_echo "$CPP" >&6; } 3390ac_preproc_ok=false 3391for ac_c_preproc_warn_flag in '' yes 3392do 3393 # Use a header file that comes with gcc, so configuring glibc 3394 # with a fresh cross-compiler works. 3395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3396 # <limits.h> exists even on freestanding compilers. 3397 # On the NeXT, cc -E runs the code through the compiler's parser, 3398 # not just through cpp. "Syntax error" is here to catch this case. 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401#ifdef __STDC__ 3402# include <limits.h> 3403#else 3404# include <assert.h> 3405#endif 3406 Syntax error 3407_ACEOF 3408if ac_fn_c_try_cpp "$LINENO"; then : 3409 3410else 3411 # Broken: fails on valid input. 3412continue 3413fi 3414rm -f conftest.err conftest.i conftest.$ac_ext 3415 3416 # OK, works on sane cases. Now check whether nonexistent headers 3417 # can be detected and how. 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420#include <ac_nonexistent.h> 3421_ACEOF 3422if ac_fn_c_try_cpp "$LINENO"; then : 3423 # Broken: success on invalid input. 3424continue 3425else 3426 # Passes both tests. 3427ac_preproc_ok=: 3428break 3429fi 3430rm -f conftest.err conftest.i conftest.$ac_ext 3431 3432done 3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3434rm -f conftest.i conftest.err conftest.$ac_ext 3435if $ac_preproc_ok; then : 3436 3437else 3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3441See \`config.log' for more details" "$LINENO" 5; } 3442fi 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449 3450 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3452$as_echo_n "checking for library containing strerror... " >&6; } 3453if ${ac_cv_search_strerror+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 ac_func_search_save_LIBS=$LIBS 3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459 3460/* Override any GCC internal prototype to avoid an error. 3461 Use char because int might match the return type of a GCC 3462 builtin and then its argument prototype would still apply. */ 3463#ifdef __cplusplus 3464extern "C" 3465#endif 3466char strerror (); 3467int 3468main () 3469{ 3470return strerror (); 3471 ; 3472 return 0; 3473} 3474_ACEOF 3475for ac_lib in '' cposix; do 3476 if test -z "$ac_lib"; then 3477 ac_res="none required" 3478 else 3479 ac_res=-l$ac_lib 3480 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3481 fi 3482 if ac_fn_c_try_link "$LINENO"; then : 3483 ac_cv_search_strerror=$ac_res 3484fi 3485rm -f core conftest.err conftest.$ac_objext \ 3486 conftest$ac_exeext 3487 if ${ac_cv_search_strerror+:} false; then : 3488 break 3489fi 3490done 3491if ${ac_cv_search_strerror+:} false; then : 3492 3493else 3494 ac_cv_search_strerror=no 3495fi 3496rm conftest.$ac_ext 3497LIBS=$ac_func_search_save_LIBS 3498fi 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3500$as_echo "$ac_cv_search_strerror" >&6; } 3501ac_res=$ac_cv_search_strerror 3502if test "$ac_res" != no; then : 3503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3504 3505fi 3506 3507# Find a good install program. We prefer a C program (faster), 3508# so one script is as good as another. But avoid the broken or 3509# incompatible versions: 3510# SysV /etc/install, /usr/sbin/install 3511# SunOS /usr/etc/install 3512# IRIX /sbin/install 3513# AIX /bin/install 3514# AmigaOS /C/install, which installs bootblocks on floppy discs 3515# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3516# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3517# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3518# OS/2's system install, which has a completely different semantic 3519# ./install, which can be erroneously created by make from ./install.sh. 3520# Reject install programs that cannot install multiple files. 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3522$as_echo_n "checking for a BSD-compatible install... " >&6; } 3523if test -z "$INSTALL"; then 3524if ${ac_cv_path_install+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528for as_dir in $PATH 3529do 3530 IFS=$as_save_IFS 3531 test -z "$as_dir" && as_dir=. 3532 # Account for people who put trailing slashes in PATH elements. 3533case $as_dir/ in #(( 3534 ./ | .// | /[cC]/* | \ 3535 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3536 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3537 /usr/ucb/* ) ;; 3538 *) 3539 # OSF1 and SCO ODT 3.0 have their own names for install. 3540 # Don't use installbsd from OSF since it installs stuff as root 3541 # by default. 3542 for ac_prog in ginstall scoinst install; do 3543 for ac_exec_ext in '' $ac_executable_extensions; do 3544 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3545 if test $ac_prog = install && 3546 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3547 # AIX install. It has an incompatible calling convention. 3548 : 3549 elif test $ac_prog = install && 3550 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3551 # program-specific install script used by HP pwplus--don't use. 3552 : 3553 else 3554 rm -rf conftest.one conftest.two conftest.dir 3555 echo one > conftest.one 3556 echo two > conftest.two 3557 mkdir conftest.dir 3558 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3559 test -s conftest.one && test -s conftest.two && 3560 test -s conftest.dir/conftest.one && 3561 test -s conftest.dir/conftest.two 3562 then 3563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3564 break 3 3565 fi 3566 fi 3567 fi 3568 done 3569 done 3570 ;; 3571esac 3572 3573 done 3574IFS=$as_save_IFS 3575 3576rm -rf conftest.one conftest.two conftest.dir 3577 3578fi 3579 if test "${ac_cv_path_install+set}" = set; then 3580 INSTALL=$ac_cv_path_install 3581 else 3582 # As a last resort, use the slow shell script. Don't cache a 3583 # value for INSTALL within a source directory, because that will 3584 # break other packages using the cache if that directory is 3585 # removed, or if the value is a relative name. 3586 INSTALL=$ac_install_sh 3587 fi 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3590$as_echo "$INSTALL" >&6; } 3591 3592# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3593# It thinks the first close brace ends the variable substitution. 3594test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3595 3596test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3597 3598test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3599 3600if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3602set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604$as_echo_n "checking for $ac_word... " >&6; } 3605if ${ac_cv_prog_RANLIB+:} false; then : 3606 $as_echo_n "(cached) " >&6 3607else 3608 if test -n "$RANLIB"; then 3609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3610else 3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3612for as_dir in $PATH 3613do 3614 IFS=$as_save_IFS 3615 test -z "$as_dir" && as_dir=. 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623 done 3624IFS=$as_save_IFS 3625 3626fi 3627fi 3628RANLIB=$ac_cv_prog_RANLIB 3629if test -n "$RANLIB"; then 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3631$as_echo "$RANLIB" >&6; } 3632else 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3634$as_echo "no" >&6; } 3635fi 3636 3637 3638fi 3639if test -z "$ac_cv_prog_RANLIB"; then 3640 ac_ct_RANLIB=$RANLIB 3641 # Extract the first word of "ranlib", so it can be a program name with args. 3642set dummy ranlib; ac_word=$2 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644$as_echo_n "checking for $ac_word... " >&6; } 3645if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 if test -n "$ac_ct_RANLIB"; then 3649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3650else 3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652for as_dir in $PATH 3653do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 for ac_exec_ext in '' $ac_executable_extensions; do 3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3658 ac_cv_prog_ac_ct_RANLIB="ranlib" 3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3660 break 2 3661 fi 3662done 3663 done 3664IFS=$as_save_IFS 3665 3666fi 3667fi 3668ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3669if test -n "$ac_ct_RANLIB"; then 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3671$as_echo "$ac_ct_RANLIB" >&6; } 3672else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674$as_echo "no" >&6; } 3675fi 3676 3677 if test "x$ac_ct_RANLIB" = x; then 3678 RANLIB=":" 3679 else 3680 case $cross_compiling:$ac_tool_warned in 3681yes:) 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3684ac_tool_warned=yes ;; 3685esac 3686 RANLIB=$ac_ct_RANLIB 3687 fi 3688else 3689 RANLIB="$ac_cv_prog_RANLIB" 3690fi 3691 3692 3693for ac_prog in gm4 gnum4 m4 3694do 3695 # Extract the first word of "$ac_prog", so it can be a program name with args. 3696set dummy $ac_prog; ac_word=$2 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3698$as_echo_n "checking for $ac_word... " >&6; } 3699if ${ac_cv_path_M4+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701else 3702 case $M4 in 3703 [\\/]* | ?:[\\/]*) 3704 ac_cv_path_M4="$M4" # Let the user override the test with a path. 3705 ;; 3706 *) 3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3708for as_dir in $PATH 3709do 3710 IFS=$as_save_IFS 3711 test -z "$as_dir" && as_dir=. 3712 for ac_exec_ext in '' $ac_executable_extensions; do 3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3714 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext" 3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3716 break 2 3717 fi 3718done 3719 done 3720IFS=$as_save_IFS 3721 3722 ;; 3723esac 3724fi 3725M4=$ac_cv_path_M4 3726if test -n "$M4"; then 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 3728$as_echo "$M4" >&6; } 3729else 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731$as_echo "no" >&6; } 3732fi 3733 3734 3735 test -n "$M4" && break 3736done 3737test -n "$M4" || M4="no" 3738 3739if test x$M4 = xno; then 3740 as_fn_error $? "M4 is required" "$LINENO" 5 3741fi 3742 3743 3744if test "$CPP" = "$CC -E" ; then 3745 CPP="$CPP -x c" 3746fi 3747 3748 3749#------------------------------------------------------------ 3750# AC_PROG_LD - find the path to the GNU or non-GNU linker 3751# (This stuff ripped from libtool) 3752#------------------------------------------------------------ 3753 3754 3755 3756 3757 3758# Check whether --with-gnu-ld was given. 3759if test "${with_gnu_ld+set}" = set; then : 3760 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3761else 3762 with_gnu_ld=no 3763fi 3764 3765ac_prog=ld 3766if test "$GCC" = yes; then 3767 # Check if gcc -print-prog-name=ld gives a path. 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 3769$as_echo_n "checking for ld used by GCC... " >&6; } 3770 case $host in 3771 *-*-mingw*) 3772 # gcc leaves a trailing carriage return which upsets mingw 3773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3774 *) 3775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3776 esac 3777 case "$ac_prog" in 3778 # Accept absolute paths. 3779 [\\/]* | [A-Za-z]:[\\/]*) 3780 re_direlt='/[^/][^/]*/\.\./' 3781 # Canonicalize the path of ld 3782 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3784 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3785 done 3786 test -z "$LD" && LD="$ac_prog" 3787 ;; 3788 "") 3789 # If it fails, then pretend we aren't using GCC. 3790 ac_prog=ld 3791 ;; 3792 *) 3793 # If it is relative, then search for the first ld in PATH. 3794 with_gnu_ld=unknown 3795 ;; 3796 esac 3797elif test "$with_gnu_ld" = yes; then 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3799$as_echo_n "checking for GNU ld... " >&6; } 3800else 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3802$as_echo_n "checking for non-GNU ld... " >&6; } 3803fi 3804if ${ac_cv_path_LD+:} false; then : 3805 $as_echo_n "(cached) " >&6 3806else 3807 if test -z "$LD"; then 3808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3809 for ac_dir in $PATH; do 3810 test -z "$ac_dir" && ac_dir=. 3811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3812 ac_cv_path_LD="$ac_dir/$ac_prog" 3813 # Check to see if the program is GNU ld. I'd rather use --version, 3814 # but apparently some GNU ld's only accept -v. 3815 # Break only if it was the GNU/non-GNU ld that we prefer. 3816 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3817 test "$with_gnu_ld" != no && break 3818 else 3819 test "$with_gnu_ld" != yes && break 3820 fi 3821 fi 3822 done 3823 IFS="$ac_save_ifs" 3824else 3825 ac_cv_path_LD="$LD" # Let the user override the test with a path. 3826fi 3827fi 3828 3829LD="$ac_cv_path_LD" 3830if test -n "$LD"; then 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3832$as_echo "$LD" >&6; } 3833else 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3835$as_echo "no" >&6; } 3836fi 3837test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3839$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3840if ${ac_cv_prog_gnu_ld+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3844if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3845 ac_cv_prog_gnu_ld=yes 3846else 3847 ac_cv_prog_gnu_ld=no 3848fi 3849fi 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5 3851$as_echo "$ac_cv_prog_gnu_ld" >&6; } 3852with_gnu_ld=$ac_cv_prog_gnu_ld 3853 3854 3855 3856 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3858$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3859if ${ac_cv_path_GREP+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 if test -z "$GREP"; then 3863 ac_path_GREP_found=false 3864 # Loop through the user's path and test for each of PROGNAME-LIST 3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3867do 3868 IFS=$as_save_IFS 3869 test -z "$as_dir" && as_dir=. 3870 for ac_prog in grep ggrep; do 3871 for ac_exec_ext in '' $ac_executable_extensions; do 3872 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3873 as_fn_executable_p "$ac_path_GREP" || continue 3874# Check for GNU ac_path_GREP and select it if it is found. 3875 # Check for GNU $ac_path_GREP 3876case `"$ac_path_GREP" --version 2>&1` in 3877*GNU*) 3878 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3879*) 3880 ac_count=0 3881 $as_echo_n 0123456789 >"conftest.in" 3882 while : 3883 do 3884 cat "conftest.in" "conftest.in" >"conftest.tmp" 3885 mv "conftest.tmp" "conftest.in" 3886 cp "conftest.in" "conftest.nl" 3887 $as_echo 'GREP' >> "conftest.nl" 3888 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3890 as_fn_arith $ac_count + 1 && ac_count=$as_val 3891 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3892 # Best one so far, save it but keep looking for a better one 3893 ac_cv_path_GREP="$ac_path_GREP" 3894 ac_path_GREP_max=$ac_count 3895 fi 3896 # 10*(2^10) chars as input seems more than enough 3897 test $ac_count -gt 10 && break 3898 done 3899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3900esac 3901 3902 $ac_path_GREP_found && break 3 3903 done 3904 done 3905 done 3906IFS=$as_save_IFS 3907 if test -z "$ac_cv_path_GREP"; then 3908 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3909 fi 3910else 3911 ac_cv_path_GREP=$GREP 3912fi 3913 3914fi 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3916$as_echo "$ac_cv_path_GREP" >&6; } 3917 GREP="$ac_cv_path_GREP" 3918 3919 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3921$as_echo_n "checking for egrep... " >&6; } 3922if ${ac_cv_path_EGREP+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3926 then ac_cv_path_EGREP="$GREP -E" 3927 else 3928 if test -z "$EGREP"; then 3929 ac_path_EGREP_found=false 3930 # Loop through the user's path and test for each of PROGNAME-LIST 3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3933do 3934 IFS=$as_save_IFS 3935 test -z "$as_dir" && as_dir=. 3936 for ac_prog in egrep; do 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3939 as_fn_executable_p "$ac_path_EGREP" || continue 3940# Check for GNU ac_path_EGREP and select it if it is found. 3941 # Check for GNU $ac_path_EGREP 3942case `"$ac_path_EGREP" --version 2>&1` in 3943*GNU*) 3944 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3945*) 3946 ac_count=0 3947 $as_echo_n 0123456789 >"conftest.in" 3948 while : 3949 do 3950 cat "conftest.in" "conftest.in" >"conftest.tmp" 3951 mv "conftest.tmp" "conftest.in" 3952 cp "conftest.in" "conftest.nl" 3953 $as_echo 'EGREP' >> "conftest.nl" 3954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3956 as_fn_arith $ac_count + 1 && ac_count=$as_val 3957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3958 # Best one so far, save it but keep looking for a better one 3959 ac_cv_path_EGREP="$ac_path_EGREP" 3960 ac_path_EGREP_max=$ac_count 3961 fi 3962 # 10*(2^10) chars as input seems more than enough 3963 test $ac_count -gt 10 && break 3964 done 3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3966esac 3967 3968 $ac_path_EGREP_found && break 3 3969 done 3970 done 3971 done 3972IFS=$as_save_IFS 3973 if test -z "$ac_cv_path_EGREP"; then 3974 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3975 fi 3976else 3977 ac_cv_path_EGREP=$EGREP 3978fi 3979 3980 fi 3981fi 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3983$as_echo "$ac_cv_path_EGREP" >&6; } 3984 EGREP="$ac_cv_path_EGREP" 3985 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3988$as_echo_n "checking for ANSI C header files... " >&6; } 3989if ${ac_cv_header_stdc+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993/* end confdefs.h. */ 3994#include <stdlib.h> 3995#include <stdarg.h> 3996#include <string.h> 3997#include <float.h> 3998 3999int 4000main () 4001{ 4002 4003 ; 4004 return 0; 4005} 4006_ACEOF 4007if ac_fn_c_try_compile "$LINENO"; then : 4008 ac_cv_header_stdc=yes 4009else 4010 ac_cv_header_stdc=no 4011fi 4012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4013 4014if test $ac_cv_header_stdc = yes; then 4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018#include <string.h> 4019 4020_ACEOF 4021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4022 $EGREP "memchr" >/dev/null 2>&1; then : 4023 4024else 4025 ac_cv_header_stdc=no 4026fi 4027rm -f conftest* 4028 4029fi 4030 4031if test $ac_cv_header_stdc = yes; then 4032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035#include <stdlib.h> 4036 4037_ACEOF 4038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4039 $EGREP "free" >/dev/null 2>&1; then : 4040 4041else 4042 ac_cv_header_stdc=no 4043fi 4044rm -f conftest* 4045 4046fi 4047 4048if test $ac_cv_header_stdc = yes; then 4049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4050 if test "$cross_compiling" = yes; then : 4051 : 4052else 4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055#include <ctype.h> 4056#include <stdlib.h> 4057#if ((' ' & 0x0FF) == 0x020) 4058# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4059# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4060#else 4061# define ISLOWER(c) \ 4062 (('a' <= (c) && (c) <= 'i') \ 4063 || ('j' <= (c) && (c) <= 'r') \ 4064 || ('s' <= (c) && (c) <= 'z')) 4065# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4066#endif 4067 4068#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4069int 4070main () 4071{ 4072 int i; 4073 for (i = 0; i < 256; i++) 4074 if (XOR (islower (i), ISLOWER (i)) 4075 || toupper (i) != TOUPPER (i)) 4076 return 2; 4077 return 0; 4078} 4079_ACEOF 4080if ac_fn_c_try_run "$LINENO"; then : 4081 4082else 4083 ac_cv_header_stdc=no 4084fi 4085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4086 conftest.$ac_objext conftest.beam conftest.$ac_ext 4087fi 4088 4089fi 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4092$as_echo "$ac_cv_header_stdc" >&6; } 4093if test $ac_cv_header_stdc = yes; then 4094 4095$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4096 4097fi 4098 4099# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4100for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4101 inttypes.h stdint.h unistd.h 4102do : 4103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4104ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4105" 4106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4107 cat >>confdefs.h <<_ACEOF 4108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4109_ACEOF 4110 4111fi 4112 4113done 4114 4115 4116# The cast to long int works around a bug in the HP C Compiler 4117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4119# This bug is HP SR number 8606223364. 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4121$as_echo_n "checking size of void *... " >&6; } 4122if ${ac_cv_sizeof_void_p+:} false; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4126 4127else 4128 if test "$ac_cv_type_void_p" = yes; then 4129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4131as_fn_error 77 "cannot compute sizeof (void *) 4132See \`config.log' for more details" "$LINENO" 5; } 4133 else 4134 ac_cv_sizeof_void_p=0 4135 fi 4136fi 4137 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4140$as_echo "$ac_cv_sizeof_void_p" >&6; } 4141 4142 4143 4144cat >>confdefs.h <<_ACEOF 4145#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4146_ACEOF 4147 4148 4149# The cast to long int works around a bug in the HP C Compiler 4150# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4151# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4152# This bug is HP SR number 8606223364. 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 4154$as_echo_n "checking size of unsigned int... " >&6; } 4155if ${ac_cv_sizeof_unsigned_int+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 4159 4160else 4161 if test "$ac_cv_type_unsigned_int" = yes; then 4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4164as_fn_error 77 "cannot compute sizeof (unsigned int) 4165See \`config.log' for more details" "$LINENO" 5; } 4166 else 4167 ac_cv_sizeof_unsigned_int=0 4168 fi 4169fi 4170 4171fi 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 4173$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 4174 4175 4176 4177cat >>confdefs.h <<_ACEOF 4178#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 4179_ACEOF 4180 4181 4182# The cast to long int works around a bug in the HP C Compiler 4183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4185# This bug is HP SR number 8606223364. 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 4187$as_echo_n "checking size of unsigned long... " >&6; } 4188if ${ac_cv_sizeof_unsigned_long+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 4192 4193else 4194 if test "$ac_cv_type_unsigned_long" = yes; then 4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4197as_fn_error 77 "cannot compute sizeof (unsigned long) 4198See \`config.log' for more details" "$LINENO" 5; } 4199 else 4200 ac_cv_sizeof_unsigned_long=0 4201 fi 4202fi 4203 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 4206$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 4207 4208 4209 4210cat >>confdefs.h <<_ACEOF 4211#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 4212_ACEOF 4213 4214 4215# The cast to long int works around a bug in the HP C Compiler 4216# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4217# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4218# This bug is HP SR number 8606223364. 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 4220$as_echo_n "checking size of unsigned long long... " >&6; } 4221if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 4225 4226else 4227 if test "$ac_cv_type_unsigned_long_long" = yes; then 4228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4230as_fn_error 77 "cannot compute sizeof (unsigned long long) 4231See \`config.log' for more details" "$LINENO" 5; } 4232 else 4233 ac_cv_sizeof_unsigned_long_long=0 4234 fi 4235fi 4236 4237fi 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 4239$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 4240 4241 4242 4243cat >>confdefs.h <<_ACEOF 4244#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 4245_ACEOF 4246 4247 4248 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4250$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4251if ${ac_cv_c_bigendian+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 ac_cv_c_bigendian=unknown 4255 # See if we're dealing with a universal compiler. 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257/* end confdefs.h. */ 4258#ifndef __APPLE_CC__ 4259 not a universal capable compiler 4260 #endif 4261 typedef int dummy; 4262 4263_ACEOF 4264if ac_fn_c_try_compile "$LINENO"; then : 4265 4266 # Check for potential -arch flags. It is not universal unless 4267 # there are at least two -arch flags with different values. 4268 ac_arch= 4269 ac_prev= 4270 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4271 if test -n "$ac_prev"; then 4272 case $ac_word in 4273 i?86 | x86_64 | ppc | ppc64) 4274 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4275 ac_arch=$ac_word 4276 else 4277 ac_cv_c_bigendian=universal 4278 break 4279 fi 4280 ;; 4281 esac 4282 ac_prev= 4283 elif test "x$ac_word" = "x-arch"; then 4284 ac_prev=arch 4285 fi 4286 done 4287fi 4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4289 if test $ac_cv_c_bigendian = unknown; then 4290 # See if sys/param.h defines the BYTE_ORDER macro. 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293#include <sys/types.h> 4294 #include <sys/param.h> 4295 4296int 4297main () 4298{ 4299#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4300 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4301 && LITTLE_ENDIAN) 4302 bogus endian macros 4303 #endif 4304 4305 ; 4306 return 0; 4307} 4308_ACEOF 4309if ac_fn_c_try_compile "$LINENO"; then : 4310 # It does; now see whether it defined to BIG_ENDIAN or not. 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#include <sys/types.h> 4314 #include <sys/param.h> 4315 4316int 4317main () 4318{ 4319#if BYTE_ORDER != BIG_ENDIAN 4320 not big endian 4321 #endif 4322 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327if ac_fn_c_try_compile "$LINENO"; then : 4328 ac_cv_c_bigendian=yes 4329else 4330 ac_cv_c_bigendian=no 4331fi 4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4333fi 4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4335 fi 4336 if test $ac_cv_c_bigendian = unknown; then 4337 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340#include <limits.h> 4341 4342int 4343main () 4344{ 4345#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4346 bogus endian macros 4347 #endif 4348 4349 ; 4350 return 0; 4351} 4352_ACEOF 4353if ac_fn_c_try_compile "$LINENO"; then : 4354 # It does; now see whether it defined to _BIG_ENDIAN or not. 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356/* end confdefs.h. */ 4357#include <limits.h> 4358 4359int 4360main () 4361{ 4362#ifndef _BIG_ENDIAN 4363 not big endian 4364 #endif 4365 4366 ; 4367 return 0; 4368} 4369_ACEOF 4370if ac_fn_c_try_compile "$LINENO"; then : 4371 ac_cv_c_bigendian=yes 4372else 4373 ac_cv_c_bigendian=no 4374fi 4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4376fi 4377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4378 fi 4379 if test $ac_cv_c_bigendian = unknown; then 4380 # Compile a test program. 4381 if test "$cross_compiling" = yes; then : 4382 # Try to guess by grepping values from an object file. 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385short int ascii_mm[] = 4386 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4387 short int ascii_ii[] = 4388 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4389 int use_ascii (int i) { 4390 return ascii_mm[i] + ascii_ii[i]; 4391 } 4392 short int ebcdic_ii[] = 4393 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4394 short int ebcdic_mm[] = 4395 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4396 int use_ebcdic (int i) { 4397 return ebcdic_mm[i] + ebcdic_ii[i]; 4398 } 4399 extern int foo; 4400 4401int 4402main () 4403{ 4404return use_ascii (foo) == use_ebcdic (foo); 4405 ; 4406 return 0; 4407} 4408_ACEOF 4409if ac_fn_c_try_compile "$LINENO"; then : 4410 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4411 ac_cv_c_bigendian=yes 4412 fi 4413 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4414 if test "$ac_cv_c_bigendian" = unknown; then 4415 ac_cv_c_bigendian=no 4416 else 4417 # finding both strings is unlikely to happen, but who knows? 4418 ac_cv_c_bigendian=unknown 4419 fi 4420 fi 4421fi 4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4423else 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425/* end confdefs.h. */ 4426$ac_includes_default 4427int 4428main () 4429{ 4430 4431 /* Are we little or big endian? From Harbison&Steele. */ 4432 union 4433 { 4434 long int l; 4435 char c[sizeof (long int)]; 4436 } u; 4437 u.l = 1; 4438 return u.c[sizeof (long int) - 1] == 1; 4439 4440 ; 4441 return 0; 4442} 4443_ACEOF 4444if ac_fn_c_try_run "$LINENO"; then : 4445 ac_cv_c_bigendian=no 4446else 4447 ac_cv_c_bigendian=yes 4448fi 4449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4450 conftest.$ac_objext conftest.beam conftest.$ac_ext 4451fi 4452 4453 fi 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4456$as_echo "$ac_cv_c_bigendian" >&6; } 4457 case $ac_cv_c_bigendian in #( 4458 yes) 4459 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4460;; #( 4461 no) 4462 ;; #( 4463 universal) 4464 4465$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4466 4467 ;; #( 4468 *) 4469 as_fn_error $? "unknown endianness 4470 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4471 esac 4472 4473 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4475$as_echo_n "checking for ANSI C header files... " >&6; } 4476if ${ac_cv_header_stdc+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480/* end confdefs.h. */ 4481#include <stdlib.h> 4482#include <stdarg.h> 4483#include <string.h> 4484#include <float.h> 4485 4486int 4487main () 4488{ 4489 4490 ; 4491 return 0; 4492} 4493_ACEOF 4494if ac_fn_c_try_compile "$LINENO"; then : 4495 ac_cv_header_stdc=yes 4496else 4497 ac_cv_header_stdc=no 4498fi 4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4500 4501if test $ac_cv_header_stdc = yes; then 4502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505#include <string.h> 4506 4507_ACEOF 4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4509 $EGREP "memchr" >/dev/null 2>&1; then : 4510 4511else 4512 ac_cv_header_stdc=no 4513fi 4514rm -f conftest* 4515 4516fi 4517 4518if test $ac_cv_header_stdc = yes; then 4519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522#include <stdlib.h> 4523 4524_ACEOF 4525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4526 $EGREP "free" >/dev/null 2>&1; then : 4527 4528else 4529 ac_cv_header_stdc=no 4530fi 4531rm -f conftest* 4532 4533fi 4534 4535if test $ac_cv_header_stdc = yes; then 4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4537 if test "$cross_compiling" = yes; then : 4538 : 4539else 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542#include <ctype.h> 4543#include <stdlib.h> 4544#if ((' ' & 0x0FF) == 0x020) 4545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4547#else 4548# define ISLOWER(c) \ 4549 (('a' <= (c) && (c) <= 'i') \ 4550 || ('j' <= (c) && (c) <= 'r') \ 4551 || ('s' <= (c) && (c) <= 'z')) 4552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4553#endif 4554 4555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4556int 4557main () 4558{ 4559 int i; 4560 for (i = 0; i < 256; i++) 4561 if (XOR (islower (i), ISLOWER (i)) 4562 || toupper (i) != TOUPPER (i)) 4563 return 2; 4564 return 0; 4565} 4566_ACEOF 4567if ac_fn_c_try_run "$LINENO"; then : 4568 4569else 4570 ac_cv_header_stdc=no 4571fi 4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4573 conftest.$ac_objext conftest.beam conftest.$ac_ext 4574fi 4575 4576fi 4577fi 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4579$as_echo "$ac_cv_header_stdc" >&6; } 4580if test $ac_cv_header_stdc = yes; then 4581 4582$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4583 4584fi 4585 4586 4587for ac_func in setenv putenv 4588do : 4589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4591if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4592 cat >>confdefs.h <<_ACEOF 4593#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4594_ACEOF 4595 4596fi 4597done 4598 4599 4600ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 4601if test "x$ac_cv_func_vfork" = xyes; then : 4602 4603fi 4604 4605 4606for ac_header in dirent.h 4607do : 4608 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 4609if test "x$ac_cv_header_dirent_h" = xyes; then : 4610 cat >>confdefs.h <<_ACEOF 4611#define HAVE_DIRENT_H 1 4612_ACEOF 4613 4614fi 4615 4616done 4617 4618 4619for ac_header in limits.h 4620do : 4621 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 4622if test "x$ac_cv_header_limits_h" = xyes; then : 4623 cat >>confdefs.h <<_ACEOF 4624#define HAVE_LIMITS_H 1 4625_ACEOF 4626 4627fi 4628 4629done 4630 4631 4632for ac_header in param.h 4633do : 4634 ac_fn_c_check_header_mongrel "$LINENO" "param.h" "ac_cv_header_param_h" "$ac_includes_default" 4635if test "x$ac_cv_header_param_h" = xyes; then : 4636 cat >>confdefs.h <<_ACEOF 4637#define HAVE_PARAM_H 1 4638_ACEOF 4639 4640fi 4641 4642done 4643 4644 4645# Extract the first word of "python3", so it can be a program name with args. 4646set dummy python3; ac_word=$2 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4648$as_echo_n "checking for $ac_word... " >&6; } 4649if ${ac_cv_prog_HAVE_PYTHON3+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if test -n "$HAVE_PYTHON3"; then 4653 ac_cv_prog_HAVE_PYTHON3="$HAVE_PYTHON3" # Let the user override the test. 4654else 4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4656for as_dir in $PATH 4657do 4658 IFS=$as_save_IFS 4659 test -z "$as_dir" && as_dir=. 4660 for ac_exec_ext in '' $ac_executable_extensions; do 4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4662 ac_cv_prog_HAVE_PYTHON3="yes" 4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4664 break 2 4665 fi 4666done 4667 done 4668IFS=$as_save_IFS 4669 4670 test -z "$ac_cv_prog_HAVE_PYTHON3" && ac_cv_prog_HAVE_PYTHON3="no" 4671fi 4672fi 4673HAVE_PYTHON3=$ac_cv_prog_HAVE_PYTHON3 4674if test -n "$HAVE_PYTHON3"; then 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PYTHON3" >&5 4676$as_echo "$HAVE_PYTHON3" >&6; } 4677else 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4679$as_echo "no" >&6; } 4680fi 4681 4682 4683 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 4685$as_echo_n "checking for va_copy... " >&6; } 4686if ${ac_cv_c_va_copy+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690/* end confdefs.h. */ 4691#include <stdarg.h> 4692int 4693main () 4694{ 4695va_list ap1, ap2; 4696 va_copy(ap1,ap2); 4697 4698 ; 4699 return 0; 4700} 4701_ACEOF 4702if ac_fn_c_try_link "$LINENO"; then : 4703 ac_cv_c_va_copy="yes" 4704else 4705 ac_cv_c_va_copy="no" 4706fi 4707rm -f core conftest.err conftest.$ac_objext \ 4708 conftest$ac_exeext conftest.$ac_ext 4709 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5 4712$as_echo "$ac_cv_c_va_copy" >&6; } 4713if test "$ac_cv_c_va_copy" = "yes" 4714then 4715 4716$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 4717 4718fi 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 4720$as_echo_n "checking for __va_copy... " >&6; } 4721if ${ac_cv_c___va_copy+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4725/* end confdefs.h. */ 4726#include <stdarg.h> 4727int 4728main () 4729{ 4730va_list ap1, ap2; 4731 __va_copy(ap1,ap2); 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_c_try_link "$LINENO"; then : 4738 ac_cv_c___va_copy="yes" 4739else 4740 ac_cv_c___va_copy="no" 4741fi 4742rm -f core conftest.err conftest.$ac_objext \ 4743 conftest$ac_exeext conftest.$ac_ext 4744 4745fi 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5 4747$as_echo "$ac_cv_c___va_copy" >&6; } 4748if test "$ac_cv_c___va_copy" = "yes" 4749then 4750 4751$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 4752 4753fi 4754 4755# Note that it is essential to disable the DBUG packages, as it is 4756# not ANSI-compliant and won't compile without quite a bit of work. 4757$as_echo "#define DBUG_OFF 1" >>confdefs.h 4758 4759 4760stub_defs="" 4761extra_defs="$extra_defs -DCAD_DIR=\\\"\${LIBDIR}\\\"" 4762X_LIBS= 4763X_CFLAGS= 4764CPPFLAGS= 4765INC_SPECS= 4766DEPEND_FLAG= 4767SHLIB_CFLAGS="" 4768LD_RUN_PATH="" 4769WISH_EXE="" 4770TCLSH_EXE="" 4771CXX= 4772 4773modules="" 4774unused="" 4775cadinstall="" 4776extra_libs="" 4777other_srcs="" 4778top_extra_libs="" 4779sub_extra_libs="" 4780ld_extra_libs="" 4781ld_extra_objs="" 4782programs="" 4783rl_defs= 4784rl_libs= 4785gr_cflags= 4786gr_dflags= 4787gr_libs= 4788gr_srcs= 4789gr_hsrcs= 4790gr_hprog= 4791 4792netgen_with_tcl="yes" 4793netgen_with_tk="yes" 4794netgen_with_tcl_includes="" 4795netgen_with_tk_includes="" 4796netgen_with_tcl_libraries="" 4797netgen_with_tk_libraries="" 4798 4799 4800usingTcl=1 4801usingX11= 4802 4803 4804# For distributed installs, where the run-time files are installed in a 4805# place that is a temporary staging area, like DESTDIR, but unlike DESTDIR, 4806# the prefix is replaced by the destination directory, rather than appended 4807# to it. 4808DIST_DIR="\${exec_prefix}" 4809 4810# Check whether --with-distdir was given. 4811if test "${with_distdir+set}" = set; then : 4812 withval=$with_distdir; 4813 if test "$withval" = "no" -o "$withval" = "NO" ; then 4814 DIST_DIR="\${exec_prefix}" 4815 else 4816 DIST_DIR=${withval} 4817 fi 4818 4819fi 4820 4821 4822 4823# Check whether --with-interpreter was given. 4824if test "${with_interpreter+set}" = set; then : 4825 withval=$with_interpreter; 4826 if test "$withval" = "no" -o "$withval" = "NO"; then 4827 usingTcl= 4828 elif test "$withval" = "scheme" -o "$withval" = "SCHEME"; then 4829 usingScheme=1 4830 usingTcl= 4831 elif test "$withval" != "tcl" -a "$withval" != "TCL"; then 4832 echo "Unknown option to --with-interpreter: Must be scheme, tcl, or no." 4833 exit 1 4834 fi 4835 4836fi 4837 4838 4839 4840# Check whether --with-tcl was given. 4841if test "${with_tcl+set}" = set; then : 4842 withval=$with_tcl; 4843 netgen_with_tcl=$withval 4844 if test "$withval" = "no" -o "$withval" = "NO"; then 4845 usingTcl= 4846 elif test $usingScheme ; then 4847 echo Attempt to enable both Tcl and Scheme interpreters. 4848 echo Disabling Tcl, and using Scheme instead. 4849 usingTcl= 4850 fi 4851 4852fi 4853 4854 4855 4856 4857# Check whether --with-tk was given. 4858if test "${with_tk+set}" = set; then : 4859 withval=$with_tk; netgen_with_tk=$withval 4860fi 4861 4862 4863# Check whether --with-tclincls was given. 4864if test "${with_tclincls+set}" = set; then : 4865 withval=$with_tclincls; netgen_with_tcl_includes=$withval 4866fi 4867 4868 4869# Check whether --with-tkincls was given. 4870if test "${with_tkincls+set}" = set; then : 4871 withval=$with_tkincls; netgen_with_tk_includes=$withval 4872fi 4873 4874 4875# Check whether --with-tcllibs was given. 4876if test "${with_tcllibs+set}" = set; then : 4877 withval=$with_tcllibs; netgen_with_tcl_libraries=$withval 4878fi 4879 4880 4881# Check whether --with-tklibs was given. 4882if test "${with_tklibs+set}" = set; then : 4883 withval=$with_tklibs; netgen_with_tk_libraries=$withval 4884fi 4885 4886 4887# ----------------------------------------------------------------------- 4888# Find the Tcl build configuration file "tclConfig.sh" 4889# ----------------------------------------------------------------------- 4890 4891if test $usingTcl ; then 4892 TCL_INC_DIR="." 4893 TK_INC_DIR="." 4894 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5 4896$as_echo_n "checking for tclConfig.sh... " >&6; } 4897 tcl_config_sh="" 4898 4899 if test "$netgen_with_tcl" = "no" ; then 4900 netgen_with_tcl="" 4901 elif test "$netgen_with_tcl" != "yes" ; then 4902 # 4903 # Verify that a tclConfig.sh file exists in the directory specified 4904 # by --with-tcl. 4905 # 4906 for dir in \ 4907 $netgen_with_tcl 4908 do 4909 if test -r "$dir/tclConfig.sh" ; then 4910 tcl_config_sh="$dir/tclConfig.sh" 4911 break 4912 elif test -r "$dir/lib/tclConfig.sh" ; then 4913 tcl_config_sh="$dir/lib/tclConfig.sh" 4914 break 4915 elif test -r "$dir/unix/tclConfig.sh" ; then 4916 tcl_config_sh="$dir/unix/tclConfig.sh" 4917 break 4918 fi 4919 done 4920 else 4921 # 4922 # Otherwise, search for Tcl configuration file. 4923 # 4924 4925 # 1. Search previously named locations. 4926 4927 for dir in \ 4928 $ac_default_prefix \ 4929 $exec_prefix 4930 do 4931 if test -r "$dir/tclConfig.sh" ; then 4932 tcl_config_sh="$dir/tclConfig.sh" 4933 break 4934 elif test -r "$dir/lib/tclConfig.sh" ; then 4935 tcl_config_sh="$dir/lib/tclConfig.sh" 4936 break 4937 elif test -r "$dir/unix/tclConfig.sh" ; then 4938 tcl_config_sh="$dir/unix/tclConfig.sh" 4939 break 4940 fi 4941 done 4942 4943 # 2. Search standard locations. 4944 4945 if test "x$tcl_config_sh" = "x" ; then 4946 for dir in \ 4947 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \ 4948 /usr/local/tcl \ 4949 /usr/local/lib \ 4950 /usr/lib64 \ 4951 /usr/local \ 4952 `ls -dr /usr/lib/tcl[7-9].[0-9]* 2>/dev/null` \ 4953 /sw/lib \ 4954 /usr 4955 do 4956 if test -r "$dir/tclConfig.sh" ; then 4957 tcl_config_sh="$dir/tclConfig.sh" 4958 break 4959 elif test -r "$dir/lib/tclConfig.sh" ; then 4960 tcl_config_sh="$dir/lib/tclConfig.sh" 4961 break 4962 fi 4963 done 4964 fi 4965 fi 4966 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5 4968$as_echo "${tcl_config_sh}" >&6; } 4969 4970 if test "x$tcl_config_sh" = "x" ; then 4971 echo "Can't find Tcl configuration script \"tclConfig.sh\"" 4972 echo "Reverting to non-Tcl compilation" 4973 usingTcl= 4974 fi 4975fi 4976 4977# ----------------------------------------------------------------------- 4978# Find the Tk build configuration file "tkConfig.sh" 4979# ----------------------------------------------------------------------- 4980 4981if test $usingTcl ; then 4982 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5 4984$as_echo_n "checking for tkConfig.sh... " >&6; } 4985 tk_config_sh="" 4986 if test "$netgen_with_tk" != "yes"; then 4987 # 4988 # Verify that a tkConfig.sh file exists in the directory specified 4989 # by --with-tcl or --with-tk. 4990 # 4991 for dir in \ 4992 $netgen_with_tk \ 4993 $netgen_with_tcl 4994 do 4995 if test -r "$dir/tkConfig.sh" ; then 4996 tk_config_sh="$dir/tkConfig.sh" 4997 break 4998 elif test -r "$dir/lib/tkConfig.sh" ; then 4999 tk_config_sh="$dir/lib/tkConfig.sh" 5000 break 5001 elif test -r "$dir/unix/tkConfig.sh" ; then 5002 tk_config_sh="$dir/unix/tkConfig.sh" 5003 break 5004 fi 5005 done 5006 else 5007 # 5008 # Search for Tk configuration file. 5009 # 5010 5011 # 5012 # 1. Search previously named locations. 5013 # 5014 for dir in \ 5015 $ac_default_prefix \ 5016 $exec_prefix 5017 do 5018 if test -r "$dir/tkConfig.sh" ; then 5019 tk_config_sh="$dir/tkConfig.sh" 5020 break 5021 elif test -r "$dir/lib/tkConfig.sh" ; then 5022 tk_config_sh="$dir/lib/tkConfig.sh" 5023 break 5024 elif test -r "$dir/unix/tkConfig.sh" ; then 5025 tk_config_sh="$dir/unix/tkConfig.sh" 5026 break 5027 fi 5028 done 5029 # 5030 # 2. Search standard locations. 5031 # 5032 if test "x$tk_config_sh" = "x" ; then 5033 for dir in \ 5034 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \ 5035 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \ 5036 /usr/local/tcl \ 5037 /usr/local/lib \ 5038 /usr/lib64 \ 5039 /usr/local \ 5040 `ls -dr /usr/lib/tcl[7-9].[0-9]* 2>/dev/null` \ 5041 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \ 5042 /sw/lib \ 5043 ${x_libraries} \ 5044 /usr 5045 do 5046 if test -r "$dir/tkConfig.sh" ; then 5047 tk_config_sh="$dir/tkConfig.sh" 5048 break 5049 elif test -r "$dir/lib/tkConfig.sh" ; then 5050 tk_config_sh="$dir/lib/tkConfig.sh" 5051 break 5052 fi 5053 done 5054 fi 5055 fi 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5 5057$as_echo "${tk_config_sh}" >&6; } 5058 5059 if test "x$tk_config_sh" = "x" ; then 5060 echo "can't find Tk configuration script \"tkConfig.sh\"" 5061 echo "Reverting to non-Tcl compilation" 5062 usingTcl= 5063 fi 5064fi 5065 5066# ----------------------------------------------------------------------- 5067# Source in the Tcl/Tk configuration scripts. 5068# ----------------------------------------------------------------------- 5069 5070if test $usingTcl ; then 5071 . $tcl_config_sh 5072 . $tk_config_sh 5073 5074 # Should probably trust the config file contents, but this configure 5075 # file checks the Tcl and Tk include and lib directories. Since 5076 # the config file doesn't separate out the libraries from the strings 5077 # passed to the compiler/linker, do it manually here. 5078 # 5079 # Extract TCL_LIB_DIR from TCL_LIB_SPEC 5080 # Extract TK_LIB_DIR from TK_LIB_SPEC 5081 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC 5082 # Extract TK_INC_DIR from TK_INCLUDE_SPEC 5083 # 5084 # These will be the defaults unless overridden by configure command line 5085 5086 tmpstr=${TCL_LIB_SPEC#*-L} 5087 TCL_LIB_DIR=${tmpstr% -l*} 5088 tmpstr=${TK_LIB_SPEC#*-L} 5089 TK_LIB_DIR=${tmpstr% -l*} 5090 TCL_INC_DIR=${TCL_INCLUDE_SPEC#*-I} 5091 TK_INC_DIR=${TK_INCLUDE_SPEC#*-I} 5092 5093 if test "$TCL_VERSION" = "7.6" -a "$TK_VERSION" = "4.2" ; then 5094 : 5095 elif test "$TCL_VERSION" = "7.5" -a "$TK_VERSION" = "4.1" ; then 5096 : 5097 elif test "$TCL_VERSION" = "$TK_VERSION" ; then 5098 : 5099 else 5100 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)" 5101 echo "Reverting to non-Tcl compile" 5102 usingTcl= 5103 fi 5104fi 5105 5106if test $usingTcl ; then 5107 if test "x${netgen_with_tcl_includes}" != "x" ; then 5108 if test -r "${netgen_with_tcl_includes}/tcl.h" ; then 5109 TCL_INC_DIR=${netgen_with_tcl_includes} 5110 else 5111 echo "Can't find tcl.h in \"${netgen_with_tcl_includes}\"" 5112 echo "Reverting to non-Tcl compile" 5113 usingTcl= 5114 fi 5115 else 5116 for dir in \ 5117 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ 5118 ${TCL_PREFIX}/include \ 5119 ${TCL_SRC_DIR}/generic \ 5120 ${TCL_INC_DIR} 5121 do 5122 if test -r "$dir/tcl.h" ; then 5123 TCL_INC_DIR=$dir 5124 break 5125 fi 5126 done 5127 if test "x${TCL_INC_DIR}" = "x" ; then 5128 echo "Can't find tcl.h header file" 5129 echo "Reverting to non-Tcl compile" 5130 usingTcl= 5131 fi 5132 fi 5133fi 5134 5135if test $usingTcl ; then 5136 if test "x${netgen_with_tk_includes}" != "x" ; then 5137 if test -r "${netgen_with_tk_includes}/tk.h" ; then 5138 TK_INC_DIR=${netgen_with_tk_includes} 5139 else 5140 echo "Can't find tk.h in \"${netgen_with_tk_includes}\"" 5141 echo "Reverting to non-Tcl compile" 5142 usingTcl= 5143 fi 5144 else 5145 for dir in \ 5146 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \ 5147 ${TK_PREFIX}/include \ 5148 ${TK_SRC_DIR}/generic \ 5149 ${TK_INC_DIR} \ 5150 ${TCL_INC_DIR} 5151 do 5152 if test -r "$dir/tk.h" ; then 5153 TK_INC_DIR=$dir 5154 break 5155 fi 5156 done 5157 if test "x${TK_INC_DIR}" = "x" ; then 5158 echo "Can't find tk.h header file" 5159 echo "Reverting to non-Tcl compile" 5160 usingTcl= 5161 fi 5162 fi 5163fi 5164 5165if test $usingTcl ; then 5166 case $target in 5167 *-sunos4*|*-*-netbsd*|NetBSD-*|FreeBSD-*|OpenBSD-*) 5168 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" 5169 TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" 5170 ;; 5171 *) 5172 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}" 5173 TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}" 5174 ;; 5175 esac 5176 5177 loclib=`echo ${TCL_LIB_SPEC} | sed -e 's/.*-L//' -e 's/ .*//'` 5178 5179 if test "x${TCL_LIB_SPEC}" = "x" ; then 5180 TCL_LIB_SPEC="-l${TCL_LIB_NAME}" 5181 fi 5182 if test "x${TK_LIB_SPEC}" = "x" ; then 5183 TK_LIB_SPEC="-l${TK_LIB_NAME}" 5184 fi 5185 5186# Find the version of "wish" that corresponds to TCL_EXEC_PREFIX 5187# We really ought to run "ldd" to confirm that the linked libraries match. 5188 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5 5190$as_echo_n "checking for wish executable... " >&6; } 5191 for dir in \ 5192 ${TK_EXEC_PREFIX}/bin \ 5193 ${TK_EXEC_PREFIX} 5194 do 5195 for wishexe in \ 5196 wish \ 5197 wish${TK_VERSION} \ 5198 wish.exe \ 5199 wish${TK_VERSION}.exe 5200 do 5201 if test -r "$dir/$wishexe" ; then 5202 WISH_EXE=$dir/$wishexe 5203 break 5204 fi 5205 done 5206 if test "x${WISH_EXE}" != "x" ; then 5207 break 5208 fi 5209 done 5210 if test "x${WISH_EXE}" = "x" ; then 5211 echo "Warning: Can't find executable for \"wish\". You may have to" 5212 echo "manually set the value for WISH_EXE in the netgen startup script." 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5214$as_echo "no" >&6; } 5215 else 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5 5217$as_echo "${WISH_EXE}" >&6; } 5218 fi 5219 5220# Find the version of "tclsh" that corresponds to TCL_EXEC_PREFIX 5221 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh executable" >&5 5223$as_echo_n "checking for tclsh executable... " >&6; } 5224 for dir in \ 5225 ${TK_EXEC_PREFIX}/bin \ 5226 ${TK_EXEC_PREFIX} 5227 do 5228 for tclshexe in \ 5229 tclsh \ 5230 tclsh${TK_VERSION} \ 5231 tclsh.exe \ 5232 tclsh${TK_VERSION}.exe 5233 do 5234 if test -r "$dir/$tclshexe" ; then 5235 TCLSH_EXE=$dir/$tclshexe 5236 break 5237 fi 5238 done 5239 if test "x${TCLSH_EXE}" != "x" ; then 5240 break 5241 fi 5242 done 5243 if test "x${TCLSH_EXE}" = "x" ; then 5244 echo "Warning: Can't find executable for \"tclsh\"." 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5246$as_echo "no" >&6; } 5247 else 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_EXE}" >&5 5249$as_echo "${TCLSH_EXE}" >&6; } 5250 fi 5251 5252# Have to define SHDLIB_EXT here even though we have to do it below, too. 5253 case $target in 5254 *-hpux*) 5255 SHDLIB_EXT=".sl" 5256 SHDLIB_EXT_ALT=".sl" 5257 ;; 5258 *cygwin*) 5259 SHDLIB_EXT=".dll" 5260 SHDLIB_EXT_ALT=".dll.a" 5261 ;; 5262 *darwin*) 5263 SHDLIB_EXT=".dylib" 5264 SHDLIB_EXT_ALT=".dylib" 5265 ;; 5266 *) 5267 SHDLIB_EXT=".so" 5268 SHDLIB_EXT_ALT=".so" 5269 ;; 5270 esac 5271 5272 if test "x${netgen_with_tcl_libraries}" != "x" ; then 5273 for libname in \ 5274 "${netgen_with_tcl_libraries}/lib${TCL_LIB_FILE}" \ 5275 "${netgen_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" \ 5276 "${netgen_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT_ALT}" 5277 do 5278 if test -r "$libname" ; then 5279 TCL_LIB_DIR="${netgen_with_tcl_libraries}" 5280 break 5281 fi 5282 done 5283 5284 if test "x${TCL_LIB_DIR}" = "x" ; then 5285 echo "Can't find tcl library in \"${netgen_with_tcl_libraries}\"" 5286 echo "Reverting to non-Tcl compile" 5287 usingTcl= 5288 fi 5289 else 5290 for libname in \ 5291 "${loclib:=${TCL_EXEC_PREFIX}/lib}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" \ 5292 "${loclib:=${TCL_EXEC_PREFIX}/lib}/lib${TCL_LIB_NAME}${SHDLIB_EXT_ALT}" \ 5293 "${loclib:=${TCL_EXEC_PREFIX}/lib64}/lib${TCL_LIB_NAME}${SHDLIB_EXT}" 5294 do 5295 if test -r "$libname" ; then 5296 TCL_LIB_DIR="${TCL_EXEC_PREFIX}/lib" 5297 break 5298 fi 5299 done 5300 if test "x${TCL_LIB_DIR}" = "x" ; then 5301 echo "Can't find tcl library" 5302 echo "Reverting to non-Tcl compile" 5303 usingTcl= 5304 fi 5305 fi 5306fi 5307 5308if test $usingTcl ; then 5309 if test "x${netgen_with_tk_libraries}" != "x" ; then 5310 for libname in \ 5311 "${netgen_with_tk_libraries}/${TCL_LIB_FILE}" \ 5312 "${netgen_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}" \ 5313 "${netgen_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT_ALT}" 5314 do 5315 if test -r "$libname" ; then 5316 TK_LIB_DIR="${netgen_with_tk_libraries}" 5317 break 5318 fi 5319 done 5320 if test "x${TK_LIB_DIR}" = "x" ; then 5321 echo "Can't find tk library in \"${netgen_with_tk_libraries}\"" 5322 echo "Reverting to non-Tcl compile" 5323 usingTcl= 5324 fi 5325 else 5326 for libname in \ 5327 "${loclib:=${TK_EXEC_PREFIX}/lib}/lib${TK_LIB_NAME}${SHDLIB_EXT}" \ 5328 "${loclib:=${TK_EXEC_PREFIX}/lib}/lib${TK_LIB_NAME}${SHDLIB_EXT_ALT}" \ 5329 "${loclib:=${TK_EXEC_PREFIX}/lib64}/lib${TK_LIB_NAME}${SHDLIB_EXT}" 5330 do 5331 if test -r "$libname" ; then 5332 TK_LIB_DIR="${TK_EXEC_PREFIX}/lib" 5333 break 5334 fi 5335 done 5336 if test "x${TK_LIB_DIR}" = "x" ; then 5337 echo "Can't find tk library" 5338 echo "Reverting to non-Tcl compile" 5339 usingTcl= 5340 fi 5341 fi 5342fi 5343 5344 5345 5346 5347# Check whether --with-widgets was given. 5348if test "${with_widgets+set}" = set; then : 5349 withval=$with_widgets; 5350 if test "$withval" = "xw" -o "$withval" = "Xw"; then 5351 usingX11=1 5352 usingTcl= 5353 gr_dflags="${gr_dflags} -DHAVE_X11 -DX11_HP_WIDGETS" 5354 gr_libs="${gr_libs} -lXw -lXt" 5355 elif test "$withval" = "Xm" -o "$withval" = "Motif"; then 5356 usingX11=1 5357 usingTcl= 5358 gr_dflags="${gr_dflags} -DHAVE_X11 -DX11_MOTIF_WIDGETS" 5359 gr_libs="${gr_libs} -lXm -lXt" 5360 else 5361 usingX11=1 5362 usingTcl= 5363 gr_dflags="${gr_dflags} -DHAVE_X11 -DX11_ATHENA_WIDGETS" 5364 gr_libs="${gr_libs} -lXaw -lXmu -lXt -lXext" 5365 fi 5366 5367fi 5368 5369 5370 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 5372$as_echo_n "checking for X... " >&6; } 5373 5374 5375# Check whether --with-x was given. 5376if test "${with_x+set}" = set; then : 5377 withval=$with_x; 5378fi 5379 5380# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5381if test "x$with_x" = xno; then 5382 # The user explicitly disabled X. 5383 have_x=disabled 5384else 5385 case $x_includes,$x_libraries in #( 5386 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 5387 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389else 5390 # One or both of the vars are not set, and there is no cached value. 5391ac_x_includes=no ac_x_libraries=no 5392rm -f -r conftest.dir 5393if mkdir conftest.dir; then 5394 cd conftest.dir 5395 cat >Imakefile <<'_ACEOF' 5396incroot: 5397 @echo incroot='${INCROOT}' 5398usrlibdir: 5399 @echo usrlibdir='${USRLIBDIR}' 5400libdir: 5401 @echo libdir='${LIBDIR}' 5402_ACEOF 5403 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5404 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5405 for ac_var in incroot usrlibdir libdir; do 5406 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5407 done 5408 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5409 for ac_extension in a so sl dylib la dll; do 5410 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5411 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5412 ac_im_usrlibdir=$ac_im_libdir; break 5413 fi 5414 done 5415 # Screen out bogus values from the imake configuration. They are 5416 # bogus both because they are the default anyway, and because 5417 # using them would break gcc on systems where it needs fixed includes. 5418 case $ac_im_incroot in 5419 /usr/include) ac_x_includes= ;; 5420 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5421 esac 5422 case $ac_im_usrlibdir in 5423 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 5424 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5425 esac 5426 fi 5427 cd .. 5428 rm -f -r conftest.dir 5429fi 5430 5431# Standard set of common directories for X headers. 5432# Check X11 before X11Rn because it is often a symlink to the current release. 5433ac_x_header_dirs=' 5434/usr/X11/include 5435/usr/X11R7/include 5436/usr/X11R6/include 5437/usr/X11R5/include 5438/usr/X11R4/include 5439 5440/usr/include/X11 5441/usr/include/X11R7 5442/usr/include/X11R6 5443/usr/include/X11R5 5444/usr/include/X11R4 5445 5446/usr/local/X11/include 5447/usr/local/X11R7/include 5448/usr/local/X11R6/include 5449/usr/local/X11R5/include 5450/usr/local/X11R4/include 5451 5452/usr/local/include/X11 5453/usr/local/include/X11R7 5454/usr/local/include/X11R6 5455/usr/local/include/X11R5 5456/usr/local/include/X11R4 5457 5458/usr/X386/include 5459/usr/x386/include 5460/usr/XFree86/include/X11 5461 5462/usr/include 5463/usr/local/include 5464/usr/unsupported/include 5465/usr/athena/include 5466/usr/local/x11r5/include 5467/usr/lpp/Xamples/include 5468 5469/usr/openwin/include 5470/usr/openwin/share/include' 5471 5472if test "$ac_x_includes" = no; then 5473 # Guess where to find include files, by looking for Xlib.h. 5474 # First, try using that file with no special directory specified. 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477#include <X11/Xlib.h> 5478_ACEOF 5479if ac_fn_c_try_cpp "$LINENO"; then : 5480 # We can compile using X headers with no special include directory. 5481ac_x_includes= 5482else 5483 for ac_dir in $ac_x_header_dirs; do 5484 if test -r "$ac_dir/X11/Xlib.h"; then 5485 ac_x_includes=$ac_dir 5486 break 5487 fi 5488done 5489fi 5490rm -f conftest.err conftest.i conftest.$ac_ext 5491fi # $ac_x_includes = no 5492 5493if test "$ac_x_libraries" = no; then 5494 # Check for the libraries. 5495 # See if we find them without any special options. 5496 # Don't add to $LIBS permanently. 5497 ac_save_LIBS=$LIBS 5498 LIBS="-lX11 $LIBS" 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5500/* end confdefs.h. */ 5501#include <X11/Xlib.h> 5502int 5503main () 5504{ 5505XrmInitialize () 5506 ; 5507 return 0; 5508} 5509_ACEOF 5510if ac_fn_c_try_link "$LINENO"; then : 5511 LIBS=$ac_save_LIBS 5512# We can link X programs with no special library path. 5513ac_x_libraries= 5514else 5515 LIBS=$ac_save_LIBS 5516for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5517do 5518 # Don't even attempt the hair of trying to link an X program! 5519 for ac_extension in a so sl dylib la dll; do 5520 if test -r "$ac_dir/libX11.$ac_extension"; then 5521 ac_x_libraries=$ac_dir 5522 break 2 5523 fi 5524 done 5525done 5526fi 5527rm -f core conftest.err conftest.$ac_objext \ 5528 conftest$ac_exeext conftest.$ac_ext 5529fi # $ac_x_libraries = no 5530 5531case $ac_x_includes,$ac_x_libraries in #( 5532 no,* | *,no | *\'*) 5533 # Didn't find X, or a directory has "'" in its name. 5534 ac_cv_have_x="have_x=no";; #( 5535 *) 5536 # Record where we found X for the cache. 5537 ac_cv_have_x="have_x=yes\ 5538 ac_x_includes='$ac_x_includes'\ 5539 ac_x_libraries='$ac_x_libraries'" 5540esac 5541fi 5542;; #( 5543 *) have_x=yes;; 5544 esac 5545 eval "$ac_cv_have_x" 5546fi # $with_x != no 5547 5548if test "$have_x" != yes; then 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 5550$as_echo "$have_x" >&6; } 5551 no_x=yes 5552else 5553 # If each of the values was on the command line, it overrides each guess. 5554 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5555 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5556 # Update the cache value to reflect the command line values. 5557 ac_cv_have_x="have_x=yes\ 5558 ac_x_includes='$x_includes'\ 5559 ac_x_libraries='$x_libraries'" 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 5561$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 5562fi 5563 5564if test "$no_x" = yes; then 5565 # Not all programs may use this symbol, but it does not hurt to define it. 5566 5567$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 5568 5569 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5570else 5571 if test -n "$x_includes"; then 5572 X_CFLAGS="$X_CFLAGS -I$x_includes" 5573 fi 5574 5575 # It would also be nice to do this for all -L options, not just this one. 5576 if test -n "$x_libraries"; then 5577 X_LIBS="$X_LIBS -L$x_libraries" 5578 # For Solaris; some versions of Sun CC require a space after -R and 5579 # others require no space. Words are not sufficient . . . . 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 5581$as_echo_n "checking whether -R must be followed by a space... " >&6; } 5582 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5583 ac_xsave_c_werror_flag=$ac_c_werror_flag 5584 ac_c_werror_flag=yes 5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5586/* end confdefs.h. */ 5587 5588int 5589main () 5590{ 5591 5592 ; 5593 return 0; 5594} 5595_ACEOF 5596if ac_fn_c_try_link "$LINENO"; then : 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5598$as_echo "no" >&6; } 5599 X_LIBS="$X_LIBS -R$x_libraries" 5600else 5601 LIBS="$ac_xsave_LIBS -R $x_libraries" 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_link "$LINENO"; then : 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5615$as_echo "yes" >&6; } 5616 X_LIBS="$X_LIBS -R $x_libraries" 5617else 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 5619$as_echo "neither works" >&6; } 5620fi 5621rm -f core conftest.err conftest.$ac_objext \ 5622 conftest$ac_exeext conftest.$ac_ext 5623fi 5624rm -f core conftest.err conftest.$ac_objext \ 5625 conftest$ac_exeext conftest.$ac_ext 5626 ac_c_werror_flag=$ac_xsave_c_werror_flag 5627 LIBS=$ac_xsave_LIBS 5628 fi 5629 5630 # Check for system-dependent libraries X programs must link with. 5631 # Do this before checking for the system-independent R6 libraries 5632 # (-lICE), since we may need -lsocket or whatever for X linking. 5633 5634 if test "$ISC" = yes; then 5635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 5636 else 5637 # Martyn Johnson says this is needed for Ultrix, if the X 5638 # libraries were built with DECnet support. And Karl Berry says 5639 # the Alpha needs dnet_stub (dnet does not exist). 5640 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643 5644/* Override any GCC internal prototype to avoid an error. 5645 Use char because int might match the return type of a GCC 5646 builtin and then its argument prototype would still apply. */ 5647#ifdef __cplusplus 5648extern "C" 5649#endif 5650char XOpenDisplay (); 5651int 5652main () 5653{ 5654return XOpenDisplay (); 5655 ; 5656 return 0; 5657} 5658_ACEOF 5659if ac_fn_c_try_link "$LINENO"; then : 5660 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 5663$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 5664if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 5665 $as_echo_n "(cached) " >&6 5666else 5667 ac_check_lib_save_LIBS=$LIBS 5668LIBS="-ldnet $LIBS" 5669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5670/* end confdefs.h. */ 5671 5672/* Override any GCC internal prototype to avoid an error. 5673 Use char because int might match the return type of a GCC 5674 builtin and then its argument prototype would still apply. */ 5675#ifdef __cplusplus 5676extern "C" 5677#endif 5678char dnet_ntoa (); 5679int 5680main () 5681{ 5682return dnet_ntoa (); 5683 ; 5684 return 0; 5685} 5686_ACEOF 5687if ac_fn_c_try_link "$LINENO"; then : 5688 ac_cv_lib_dnet_dnet_ntoa=yes 5689else 5690 ac_cv_lib_dnet_dnet_ntoa=no 5691fi 5692rm -f core conftest.err conftest.$ac_objext \ 5693 conftest$ac_exeext conftest.$ac_ext 5694LIBS=$ac_check_lib_save_LIBS 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5697$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5698if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 5699 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5700fi 5701 5702 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 5704$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 5705if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 ac_check_lib_save_LIBS=$LIBS 5709LIBS="-ldnet_stub $LIBS" 5710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5711/* end confdefs.h. */ 5712 5713/* Override any GCC internal prototype to avoid an error. 5714 Use char because int might match the return type of a GCC 5715 builtin and then its argument prototype would still apply. */ 5716#ifdef __cplusplus 5717extern "C" 5718#endif 5719char dnet_ntoa (); 5720int 5721main () 5722{ 5723return dnet_ntoa (); 5724 ; 5725 return 0; 5726} 5727_ACEOF 5728if ac_fn_c_try_link "$LINENO"; then : 5729 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5730else 5731 ac_cv_lib_dnet_stub_dnet_ntoa=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext \ 5734 conftest$ac_exeext conftest.$ac_ext 5735LIBS=$ac_check_lib_save_LIBS 5736fi 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5738$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5739if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 5740 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5741fi 5742 5743 fi 5744fi 5745rm -f core conftest.err conftest.$ac_objext \ 5746 conftest$ac_exeext conftest.$ac_ext 5747 LIBS="$ac_xsave_LIBS" 5748 5749 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5750 # to get the SysV transport functions. 5751 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5752 # needs -lnsl. 5753 # The nsl library prevents programs from opening the X display 5754 # on Irix 5.2, according to T.E. Dickey. 5755 # The functions gethostbyname, getservbyname, and inet_addr are 5756 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5757 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5758if test "x$ac_cv_func_gethostbyname" = xyes; then : 5759 5760fi 5761 5762 if test $ac_cv_func_gethostbyname = no; then 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5764$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5765if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 ac_check_lib_save_LIBS=$LIBS 5769LIBS="-lnsl $LIBS" 5770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771/* end confdefs.h. */ 5772 5773/* Override any GCC internal prototype to avoid an error. 5774 Use char because int might match the return type of a GCC 5775 builtin and then its argument prototype would still apply. */ 5776#ifdef __cplusplus 5777extern "C" 5778#endif 5779char gethostbyname (); 5780int 5781main () 5782{ 5783return gethostbyname (); 5784 ; 5785 return 0; 5786} 5787_ACEOF 5788if ac_fn_c_try_link "$LINENO"; then : 5789 ac_cv_lib_nsl_gethostbyname=yes 5790else 5791 ac_cv_lib_nsl_gethostbyname=no 5792fi 5793rm -f core conftest.err conftest.$ac_objext \ 5794 conftest$ac_exeext conftest.$ac_ext 5795LIBS=$ac_check_lib_save_LIBS 5796fi 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5798$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5799if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 5800 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5801fi 5802 5803 if test $ac_cv_lib_nsl_gethostbyname = no; then 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 5805$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 5806if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 ac_check_lib_save_LIBS=$LIBS 5810LIBS="-lbsd $LIBS" 5811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813 5814/* Override any GCC internal prototype to avoid an error. 5815 Use char because int might match the return type of a GCC 5816 builtin and then its argument prototype would still apply. */ 5817#ifdef __cplusplus 5818extern "C" 5819#endif 5820char gethostbyname (); 5821int 5822main () 5823{ 5824return gethostbyname (); 5825 ; 5826 return 0; 5827} 5828_ACEOF 5829if ac_fn_c_try_link "$LINENO"; then : 5830 ac_cv_lib_bsd_gethostbyname=yes 5831else 5832 ac_cv_lib_bsd_gethostbyname=no 5833fi 5834rm -f core conftest.err conftest.$ac_objext \ 5835 conftest$ac_exeext conftest.$ac_ext 5836LIBS=$ac_check_lib_save_LIBS 5837fi 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 5839$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 5840if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 5841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5842fi 5843 5844 fi 5845 fi 5846 5847 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5848 # socket/setsockopt and other routines are undefined under SCO ODT 5849 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5850 # on later versions), says Simon Leinen: it contains gethostby* 5851 # variants that don't use the name server (or something). -lsocket 5852 # must be given before -lnsl if both are needed. We assume that 5853 # if connect needs -lnsl, so does gethostbyname. 5854 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 5855if test "x$ac_cv_func_connect" = xyes; then : 5856 5857fi 5858 5859 if test $ac_cv_func_connect = no; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 5861$as_echo_n "checking for connect in -lsocket... " >&6; } 5862if ${ac_cv_lib_socket_connect+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 ac_check_lib_save_LIBS=$LIBS 5866LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869 5870/* Override any GCC internal prototype to avoid an error. 5871 Use char because int might match the return type of a GCC 5872 builtin and then its argument prototype would still apply. */ 5873#ifdef __cplusplus 5874extern "C" 5875#endif 5876char connect (); 5877int 5878main () 5879{ 5880return connect (); 5881 ; 5882 return 0; 5883} 5884_ACEOF 5885if ac_fn_c_try_link "$LINENO"; then : 5886 ac_cv_lib_socket_connect=yes 5887else 5888 ac_cv_lib_socket_connect=no 5889fi 5890rm -f core conftest.err conftest.$ac_objext \ 5891 conftest$ac_exeext conftest.$ac_ext 5892LIBS=$ac_check_lib_save_LIBS 5893fi 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 5895$as_echo "$ac_cv_lib_socket_connect" >&6; } 5896if test "x$ac_cv_lib_socket_connect" = xyes; then : 5897 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5898fi 5899 5900 fi 5901 5902 # Guillermo Gomez says -lposix is necessary on A/UX. 5903 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 5904if test "x$ac_cv_func_remove" = xyes; then : 5905 5906fi 5907 5908 if test $ac_cv_func_remove = no; then 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 5910$as_echo_n "checking for remove in -lposix... " >&6; } 5911if ${ac_cv_lib_posix_remove+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 ac_check_lib_save_LIBS=$LIBS 5915LIBS="-lposix $LIBS" 5916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5917/* end confdefs.h. */ 5918 5919/* Override any GCC internal prototype to avoid an error. 5920 Use char because int might match the return type of a GCC 5921 builtin and then its argument prototype would still apply. */ 5922#ifdef __cplusplus 5923extern "C" 5924#endif 5925char remove (); 5926int 5927main () 5928{ 5929return remove (); 5930 ; 5931 return 0; 5932} 5933_ACEOF 5934if ac_fn_c_try_link "$LINENO"; then : 5935 ac_cv_lib_posix_remove=yes 5936else 5937 ac_cv_lib_posix_remove=no 5938fi 5939rm -f core conftest.err conftest.$ac_objext \ 5940 conftest$ac_exeext conftest.$ac_ext 5941LIBS=$ac_check_lib_save_LIBS 5942fi 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 5944$as_echo "$ac_cv_lib_posix_remove" >&6; } 5945if test "x$ac_cv_lib_posix_remove" = xyes; then : 5946 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5947fi 5948 5949 fi 5950 5951 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5952 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 5953if test "x$ac_cv_func_shmat" = xyes; then : 5954 5955fi 5956 5957 if test $ac_cv_func_shmat = no; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 5959$as_echo_n "checking for shmat in -lipc... " >&6; } 5960if ${ac_cv_lib_ipc_shmat+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 ac_check_lib_save_LIBS=$LIBS 5964LIBS="-lipc $LIBS" 5965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967 5968/* Override any GCC internal prototype to avoid an error. 5969 Use char because int might match the return type of a GCC 5970 builtin and then its argument prototype would still apply. */ 5971#ifdef __cplusplus 5972extern "C" 5973#endif 5974char shmat (); 5975int 5976main () 5977{ 5978return shmat (); 5979 ; 5980 return 0; 5981} 5982_ACEOF 5983if ac_fn_c_try_link "$LINENO"; then : 5984 ac_cv_lib_ipc_shmat=yes 5985else 5986 ac_cv_lib_ipc_shmat=no 5987fi 5988rm -f core conftest.err conftest.$ac_objext \ 5989 conftest$ac_exeext conftest.$ac_ext 5990LIBS=$ac_check_lib_save_LIBS 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 5993$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 5994if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 5995 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5996fi 5997 5998 fi 5999 fi 6000 6001 # Check for libraries that X11R6 Xt/Xaw programs need. 6002 ac_save_LDFLAGS=$LDFLAGS 6003 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 6004 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 6005 # check for ICE first), but we must link in the order -lSM -lICE or 6006 # we get undefined symbols. So assume we have SM if we have ICE. 6007 # These have to be linked with before -lX11, unlike the other 6008 # libraries we check for below, so use a different variable. 6009 # John Interrante, Karl Berry 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6011$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6012if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 ac_check_lib_save_LIBS=$LIBS 6016LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019 6020/* Override any GCC internal prototype to avoid an error. 6021 Use char because int might match the return type of a GCC 6022 builtin and then its argument prototype would still apply. */ 6023#ifdef __cplusplus 6024extern "C" 6025#endif 6026char IceConnectionNumber (); 6027int 6028main () 6029{ 6030return IceConnectionNumber (); 6031 ; 6032 return 0; 6033} 6034_ACEOF 6035if ac_fn_c_try_link "$LINENO"; then : 6036 ac_cv_lib_ICE_IceConnectionNumber=yes 6037else 6038 ac_cv_lib_ICE_IceConnectionNumber=no 6039fi 6040rm -f core conftest.err conftest.$ac_objext \ 6041 conftest$ac_exeext conftest.$ac_ext 6042LIBS=$ac_check_lib_save_LIBS 6043fi 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6045$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6046if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6047 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6048fi 6049 6050 LDFLAGS=$ac_save_LDFLAGS 6051 6052fi 6053 6054if test "x$no_x" != "x"; then 6055 if test $usingX11 ; then 6056 echo Cannot find X11---will attempt to compile anyway. 6057 echo Graphics options will be NULL only! 6058 usingX11= 6059 fi 6060 if test $usingTcl ; then 6061 echo "Cannot compile TCL version without X11, disabling." 6062 usingTcl= 6063 fi 6064fi 6065 6066 6067if test $usingTcl ; then 6068 usingX11=1 6069 cadinstall="$cadinstall tcltk" 6070 modules="$modules tcltk" 6071 programs="$programs tcltk" 6072 ALL_TARGET="tcl" 6073 INSTALL_TARGET="install-tcl" 6074 $as_echo "#define TCL_NETGEN 1" >>confdefs.h 6075 6076 extra_libs="$extra_libs \${NETGENDIR}/tcltk/libtcltk.o" 6077 extra_defs="$extra_defs -DTCL_DIR=\\\"\${TCLDIR}\\\"" 6078 stub_defs="$stub_defs -DUSE_TCL_STUBS -DUSE_TK_STUBS" 6079else 6080 programs="$programs netgen" 6081 unused="$unused tcltk" 6082fi 6083 6084 6085 6086if test $usingTcl ; then 6087 if test $usingX11 ; then 6088 gr_dflags="$gr_dflags -DX11 -DXLIB" 6089 gr_libs="$gr_libs -lX11" 6090 gr_srcs="$gr_srcs \${TK_SRCS}" 6091 else 6092 gr_srcs="$gr_srcs \${NULL_SRCS}" 6093 fi 6094else 6095 if test $usingX11 ; then 6096 gr_dflags="$gr_dflags -DX11 -DXLIB" 6097 gr_libs="$gr_libs -lX11" 6098 gr_srcs="$gr_srcs \${X11_SRCS}" 6099 fi 6100fi 6101 6102 6103case $target in 6104 *-linux*) 6105 $as_echo "#define linux 1" >>confdefs.h 6106 6107 $as_echo "#define SYSV 1" >>confdefs.h 6108 6109 $as_echo "#define ISC 1" >>confdefs.h 6110 6111 case $target in 6112 *x86_64*) 6113 CFLAGS="${CFLAGS} -m64 -fPIC" 6114 ;; 6115 esac 6116 if test -f /usr/lib/libbsd-compat.a ; then 6117 gr_libs="$gr_libs -lbsd-compat" 6118 elif test -f /usr/lib/libbsd.a ; then 6119 gr_libs="$gr_libs -lbsd" 6120 fi 6121 ;; 6122 *solaris*) 6123 $as_echo "#define SYSV 1" >>confdefs.h 6124 6125 ;; 6126 *irix*) 6127 $as_echo "#define SYSV 1" >>confdefs.h 6128 6129 $as_echo "#define IRIX 1" >>confdefs.h 6130 6131 $as_echo "#define _BSD_SIGNALS 1" >>confdefs.h 6132 6133 ;; 6134 *sysv*) 6135 $as_echo "#define SYSV 1" >>confdefs.h 6136 6137 ;; 6138 *cygwin*) 6139 $as_echo "#define CYGWIN 1" >>confdefs.h 6140 6141 $as_echo "#define i386 1" >>confdefs.h 6142 6143 ;; 6144 *darwin*) 6145 $as_echo "#define macosx macos" >> confdefs.h 6146 if test "$CPP" = "cc -E" ; then 6147 CPPFLAGS="$CPPFLAGS -no-cpp-precomp" 6148 fi 6149 ;; 6150esac 6151# ----------------------------------------------------------------------- 6152# Tcl/Tk configuration 6153# ----------------------------------------------------------------------- 6154 6155if test $usingTcl ; then 6156 LIB_SPECS_NOSTUB="${LIB_SPECS}" 6157 6158# ----------------------------------------------------------------------- 6159# 6160# Tk libraries and header files 6161# 6162# ----------------------------------------------------------------------- 6163 if test "${TK_INC_DIR}" != "/usr/include" ; then 6164 INC_SPECS="${INC_SPECS} -I${TK_INC_DIR}" 6165 fi 6166 if test "${TK_LIB_DIR}" = "/usr/lib" -o \ 6167 "${TK_LIB_DIR}" = "/usr/lib64" ; then 6168 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} ${TK_LIB_SPEC}" 6169 LIB_SPECS="${LIB_SPECS} ${TK_STUB_LIB_SPEC}" 6170 else 6171 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} -L${TK_LIB_DIR} ${TK_LIB_SPEC}" 6172 LIB_SPECS="${LIB_SPECS} -L${TK_LIB_DIR} ${TK_STUB_LIB_SPEC}" 6173 if test "x${loader_run_path}" = "x" ; then 6174 loader_run_path="${TK_LIB_DIR}" 6175 else 6176 loader_run_path="${TK_LIB_DIR}:${loader_run_path}" 6177 fi 6178 fi 6179 6180# ----------------------------------------------------------------------- 6181# 6182# Tcl libraries and header files 6183# 6184# Add a header file directory specification only if the Tcl headers reside 6185# in a different directory from Tk's. 6186# 6187## ----------------------------------------------------------------------- 6188 if test "${TCL_INC_DIR}" != "/usr/include" -a \ 6189 "${TCL_INC_DIR}" != "${TK_INC_DIR}" ; then 6190 INC_SPECS="${INC_SPECS} -I${TCL_INC_DIR}" 6191 fi 6192 6193 if test "${TCL_LIB_DIR}" = "/usr/lib" -o \ 6194 "${TCL_LIB_DIR}" = "/usr/lib64" -o \ 6195 "${TCL_LIB_DIR}" = "${TK_LIB_DIR}" ; then 6196 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} ${TCL_LIB_SPEC}" 6197 LIB_SPECS="${LIB_SPECS} ${TCL_STUB_LIB_SPEC}" 6198 else 6199 LIB_SPECS_NOSTUB="${LIB_SPECS_NOSTUB} -L${TCL_LIB_DIR} ${TCL_LIB_SPEC}" 6200 LIB_SPECS="${LIB_SPECS} -L${TCL_LIB_DIR} ${TCL_STUB_LIB_SPEC}" 6201 if test "x${loader_run_path}" = "x" ; then 6202 loader_run_path="${TCL_LIB_DIR}" 6203 else 6204 loader_run_path="${TCL_LIB_DIR}:${loader_run_path}" 6205 fi 6206 fi 6207 6208#-------------------------------------------------------------------- 6209# 6210# Check if we can generate shared libraries on this system. Set flags 6211# to generate shared libraries for systems that we know about. Start 6212# with the values found in tclConfig.sh, make changes as we know about 6213# the different systems. 6214# 6215#-------------------------------------------------------------------- 6216 6217# Initialize shared library build variables 6218 6219 SHLIB_LD="" 6220 LDDL_FLAGS="-shared" 6221 SHDLIB_EXT=".so" 6222 EXTRA_LIB_SPECS="" 6223 6224 build_shared="yes" 6225 6226 case $target in 6227 *-aix4.[2-9]*) 6228 # No Position-Independent flags needed 6229 6230 # Use the installed export file or the one found in the source directory. 6231 6232 if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then 6233 tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" 6234 else 6235 tcl_exp="${TCL_SRC_DIR}/unix/lib.exp" 6236 fi 6237 if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then 6238 tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" 6239 else 6240 tk_exp="${TK_SRC_DIR}/unix/lib.exp" 6241 fi 6242 6243 full_src_path=`cd ${srcdir}; pwd` 6244 6245 # Use shell-script to link shared library 6246 LD="${full_src_path}/cf/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}" 6247 6248 SHLIB_LIB_SPECS="${aix_lib_specs} -lc" 6249 6250 LDFLAGS="-L${loader_run_path}" 6251 EXTRA_LIB_SPECS="-ldl" 6252 ;; 6253 6254 *-aix*) 6255 # No Position-Independent flags needed 6256 6257 # Use the installed export file or the one found in the source directory. 6258 6259 if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then 6260 tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" 6261 else 6262 tcl_exp="${TCL_SRC_DIR}/unix/lib.exp" 6263 fi 6264 if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then 6265 tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" 6266 else 6267 tk_exp="${TK_SRC_DIR}/unix/lib.exp" 6268 fi 6269 6270 full_src_path=`cd ${srcdir}/cf; pwd` 6271 6272 # Use shell-script to link shared library 6273 6274 LD="${full_src_path}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}" 6275 SHLIB_LIB_SPECS="${aix_lib_specs} -lc" 6276 LDFLAGS="-L${loader_run_path}" 6277 EXTRA_LIB_SPECS="-lld" 6278 ;; 6279 6280 *-bsdi2*|*-bsdi3*) 6281 LD="shlicc" 6282 LDDL_FLAGS="-r" 6283 EXTRA_LIB_SPECS="-ldl" 6284 ;; 6285 6286 *darwin*) 6287 SHDLIB_EXT=".dylib" 6288 LDDL_FLAGS="-dynamiclib -flat_namespace -undefined suppress -noprebind" 6289 LDFLAGS="${LDFLAGS} ${LIB_SPECS}" 6290 CFLAGS="${CFLAGS} ${X_CFLAGS} ${INC_SPECS} -I/sw/include -fno-common" 6291 ;; 6292 6293 *cygwin*) 6294 SHDLIB_EXT=".dll" 6295 $as_echo "#define USE_DL_IMPORT 1" >>confdefs.h 6296 6297 LDDL_FLAGS='-shared -Wl,--enable-auto-image-base' 6298 if test "x${loader_run_path}" != "x" ; then 6299 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" 6300 fi 6301 ld_extra_libs=${LIB_SPECS} 6302 sub_extra_libs='-L${NETGENDIR}/netgen -ltclnetgen' 6303 ;; 6304 6305 *-bsdi4*) 6306 SHLIB_CFLAGS="-export-dynamic -fPIC" 6307 LDDL_FLAGS='-shared -Wl,-E -Wl,-soname,$@' 6308 ;; 6309 6310 *-dgux*) 6311 SHLIB_CFLAGS="-K PIC" 6312 LDDL_FLAGS="-G" 6313 EXTRA_LIB_SPECS="-ldl" 6314 ;; 6315 6316 *-hpux*) 6317 if test "$GCC" = "no" ; then 6318 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 6319 6320 fi 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6322$as_echo_n "checking for shl_load in -ldld... " >&6; } 6323if ${ac_cv_lib_dld_shl_load+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 ac_check_lib_save_LIBS=$LIBS 6327LIBS="-ldld $LIBS" 6328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330 6331/* Override any GCC internal prototype to avoid an error. 6332 Use char because int might match the return type of a GCC 6333 builtin and then its argument prototype would still apply. */ 6334#ifdef __cplusplus 6335extern "C" 6336#endif 6337char shl_load (); 6338int 6339main () 6340{ 6341return shl_load (); 6342 ; 6343 return 0; 6344} 6345_ACEOF 6346if ac_fn_c_try_link "$LINENO"; then : 6347 ac_cv_lib_dld_shl_load=yes 6348else 6349 ac_cv_lib_dld_shl_load=no 6350fi 6351rm -f core conftest.err conftest.$ac_objext \ 6352 conftest$ac_exeext conftest.$ac_ext 6353LIBS=$ac_check_lib_save_LIBS 6354fi 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6356$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6357if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6358 found=yes 6359else 6360 found=no 6361fi 6362 6363 if test "${found}" = "yes" ; then 6364 SHLIB_CFLAGS="+z" 6365 LDDL_FLAGS="-b -E -n +s +b,${loader_run_path}:." 6366 SHDLIB_EXT=".sl" 6367 6368 # The run path is included in both LDFLAGS and LDDL_FLAGS 6369 # because SHLIB_LD is ld and LD is cc/gcc. 6370 6371 LDFLAGS="-Wl,-E -Wl,+s,+b,${loader_run_path}:." 6372 EXTRA_LIB_SPECS="-ldld" 6373 fi 6374 ;; 6375 6376 *-irix64-6.5*) 6377 LDDL_FLAGS="-32 -shared -rdata_shared" 6378 if test "x${loader_run_path}" != "x" ; then 6379 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" 6380 fi 6381 ;; 6382 6383 *-irix-56.*|*-irix64-*) 6384 LDDL_FLAGS="-shared -rdata_shared" 6385 if test "x${loader_run_path}" != "x" ; then 6386 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" 6387 fi 6388 LDFLAGS="" 6389 if test "$GCC" = "yes" ; then 6390 SHLIB_CFLAGS="-mabi=n32 $SHLIB_CFLAGS" 6391 LDDL_FLAGS="-mabi=n32 $LDDL_FLAGS" 6392 LDFLAGS="-mabi=n32 $LDFLAGS" 6393 else 6394 CFLAGS="-n32 $CFLAGS" 6395 LDFLAGS="-n32 $LDFLAGS" 6396 fi 6397 ;; 6398 6399 *-linux*) 6400 LDDL_FLAGS=' -shared -Wl,-soname,$@' 6401 if test "x${loader_run_path}" != "x" ; then 6402 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" 6403 fi 6404 LDFLAGS="" 6405 EXTRA_LIB_SPECS="-ldl" 6406 ;; 6407 6408 *-mp-ras-02*) 6409 SHLIB_CFLAGS="-G -K PIC" 6410 LDDL_FLAGS="" 6411 ;; 6412 6413 *-mp-ras-*) 6414 SHLIB_CFLAGS="-G -K PIC" 6415 LDDL_FLAGS="-Wl,-Bexport" 6416 ;; 6417 6418 *-ncr-sysv4-*2*) 6419 SHLIB_CFLAGS="-K PIC" 6420 LDDL_FLAGS="-G" 6421 6422 EXTRA_LIB_SPECS="-ldl" 6423 ;; 6424 6425 *-ncr-sysv4*) 6426 SHLIB_CFLAGS="-K PIC" 6427 LDDL_FLAGS="-G -Wl,-Bexport" 6428 6429 LDFLAGS="-Wl,-Bexport" 6430 EXTRA_LIB_SPECS="-ldl" 6431 ;; 6432 6433 *-freebsd*) 6434 # Not available on all versions: check for include file. 6435 SHLIB_CFLAGS="-fpic" 6436 LDDL_FLAGS="-shared ${LIB_SPECS}" 6437 CFLAGS="${CFLAGS} -L/usr/X11R6/include" 6438 ;; 6439 6440 *-netbsd*|*-openbsd*) 6441 # Not available on all versions: check for include file. 6442 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 6443if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6444 test_ok=yes 6445else 6446 test_ok=no 6447fi 6448 6449 6450 if test "$test_ok" = yes; then 6451 SHLIB_CFLAGS="-fPIC" 6452 LDDL_FLAGS="-shared ${LIB_SPEC}" 6453 fi 6454 ;; 6455 6456 *-nextstep*) 6457 LDDL_FLAGS="-nostdlib -r" 6458 ;; 6459 6460 *-osf1-1.012*) 6461 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 6462 6463 # Warning: Ugly Makefile Hack 6464 # Make package name same as library name 6465 6466 SHLIB_LD='ld -R -export $@:' 6467 ;; 6468 6469 *-osf1-1.*) 6470 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 6471 6472 SHLIB_CFLAGS="-fpic" 6473 SHLIB_LD="ld -shared" 6474 ;; 6475 6476 *-osf1V*) 6477 # Digital OSF/1 6478 6479 LDDL_FLAGS='-shared -expect_unresolved "*"' 6480 if test "x${loader_run_path}" != "x" ; then 6481 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" 6482 fi 6483 LDFLAGS="" 6484 ;; 6485 6486 *-sco*) 6487 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 6488 # this test works, since "uname -s" was non-standard in 3.2.4 and 6489 # below. 6490 6491 SHLIB_CFLAGS="-Kpic -belf" 6492 LDDL_FLAGS="-G" 6493 LDFLAGS="-belf -Wl,-Bexport" 6494 ;; 6495 6496 *-sni-sysv*) 6497 6498 SHLIB_CFLAGS="-K PIC" 6499 LDDL_FLAGS="-G" 6500 6501 EXTRA_LIB_SPECS="-ldl" 6502 ;; 6503 6504 *-sunos4*) 6505 6506 SHLIB_CFLAGS="-PIC" 6507 LDDL_FLAGS="-assert pure-text" 6508 6509 EXTRA_LIB_SPECS="-ldl" 6510 ;; 6511 6512 *-solaris2*) 6513 6514 if test "$with_gnu_ld" = "yes" ; then 6515 LDDL_FLAGS='-shared -Wl,-E -Wl,-soname,$@ ${LIB_SPEC}' 6516 if test "x${loader_run_path}" != "x" ; then 6517 LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}" 6518 fi 6519 else 6520 LDDL_FLAGS="-shared -mimpure-text" 6521 if test "x${loader_run_path}" != "x" ; then 6522 LD_RUN_PATH="${LD_RUN_PATH} -R ${loader_run_path}" 6523 fi 6524 fi 6525 EXTRA_LIB_SPECS="-ldl" 6526 ;; 6527 6528 *-mips-dde-sysv*) 6529 6530 SHLIB_CFLAGS="-KPIC" 6531 LDDL_FLAGS="-G" 6532 6533 EXTRA_LIB_SPECS="-ldl" 6534 ;; 6535 6536 *-pc-sysv4* | *-unixware-5*) 6537 SHLIB_CFLAGS="-G -KPIC" 6538 LDDL_FLAGS=" -Wl,-Bexport" 6539 ;; 6540 6541 esac 6542 6543# If we're running gcc, then set SHLIB_CFLAGS flags for compiling 6544# shared libraries for gcc, instead of those of the vendor's compiler. 6545 6546 if test "$GCC" = "yes" ; then 6547 case $target in 6548 *cygwin*) 6549 ;; 6550 *) 6551 SHLIB_CFLAGS="-fPIC" 6552 ;; 6553 esac 6554 fi 6555 if test "$with_gnu_ld" = "yes" ; then 6556 LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=\${NETGENDIR}/netgen/symbol.map" 6557 fi 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574fi 6575 6576if test "$GCC" = "yes" ; then 6577 DEPEND_FLAG="-MM" 6578fi 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614ac_config_files="$ac_config_files defs.mak" 6615 6616cat >confcache <<\_ACEOF 6617# This file is a shell script that caches the results of configure 6618# tests run on this system so they can be shared between configure 6619# scripts and configure runs, see configure's option --config-cache. 6620# It is not useful on other systems. If it contains results you don't 6621# want to keep, you may remove or edit it. 6622# 6623# config.status only pays attention to the cache file if you give it 6624# the --recheck option to rerun configure. 6625# 6626# `ac_cv_env_foo' variables (set or unset) will be overridden when 6627# loading this file, other *unset* `ac_cv_foo' will be assigned the 6628# following values. 6629 6630_ACEOF 6631 6632# The following way of writing the cache mishandles newlines in values, 6633# but we know of no workaround that is simple, portable, and efficient. 6634# So, we kill variables containing newlines. 6635# Ultrix sh set writes to stderr and can't be redirected directly, 6636# and sets the high bit in the cache file unless we assign to the vars. 6637( 6638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6639 eval ac_val=\$$ac_var 6640 case $ac_val in #( 6641 *${as_nl}*) 6642 case $ac_var in #( 6643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6644$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6645 esac 6646 case $ac_var in #( 6647 _ | IFS | as_nl) ;; #( 6648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6649 *) { eval $ac_var=; unset $ac_var;} ;; 6650 esac ;; 6651 esac 6652 done 6653 6654 (set) 2>&1 | 6655 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6656 *${as_nl}ac_space=\ *) 6657 # `set' does not quote correctly, so add quotes: double-quote 6658 # substitution turns \\\\ into \\, and sed turns \\ into \. 6659 sed -n \ 6660 "s/'/'\\\\''/g; 6661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6662 ;; #( 6663 *) 6664 # `set' quotes correctly as required by POSIX, so do not add quotes. 6665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6666 ;; 6667 esac | 6668 sort 6669) | 6670 sed ' 6671 /^ac_cv_env_/b end 6672 t clear 6673 :clear 6674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6675 t end 6676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6677 :end' >>confcache 6678if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6679 if test -w "$cache_file"; then 6680 if test "x$cache_file" != "x/dev/null"; then 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6682$as_echo "$as_me: updating cache $cache_file" >&6;} 6683 if test ! -f "$cache_file" || test -h "$cache_file"; then 6684 cat confcache >"$cache_file" 6685 else 6686 case $cache_file in #( 6687 */* | ?:*) 6688 mv -f confcache "$cache_file"$$ && 6689 mv -f "$cache_file"$$ "$cache_file" ;; #( 6690 *) 6691 mv -f confcache "$cache_file" ;; 6692 esac 6693 fi 6694 fi 6695 else 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6697$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6698 fi 6699fi 6700rm -f confcache 6701 6702test "x$prefix" = xNONE && prefix=$ac_default_prefix 6703# Let make expand exec_prefix. 6704test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6705 6706# Transform confdefs.h into DEFS. 6707# Protect against shell expansion while executing Makefile rules. 6708# Protect against Makefile macro expansion. 6709# 6710# If the first sed substitution is executed (which looks for macros that 6711# take arguments), then branch to the quote section. Otherwise, 6712# look for a macro that doesn't take arguments. 6713ac_script=' 6714:mline 6715/\\$/{ 6716 N 6717 s,\\\n,, 6718 b mline 6719} 6720t clear 6721:clear 6722s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 6723t quote 6724s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 6725t quote 6726b any 6727:quote 6728s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 6729s/\[/\\&/g 6730s/\]/\\&/g 6731s/\$/$$/g 6732H 6733:any 6734${ 6735 g 6736 s/^\n// 6737 s/\n/ /g 6738 p 6739} 6740' 6741DEFS=`sed -n "$ac_script" confdefs.h` 6742 6743 6744ac_libobjs= 6745ac_ltlibobjs= 6746U= 6747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6748 # 1. Remove the extension, and $U if already installed. 6749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6752 # will be set to the directory where LIBOBJS objects are built. 6753 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6754 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6755done 6756LIBOBJS=$ac_libobjs 6757 6758LTLIBOBJS=$ac_ltlibobjs 6759 6760 6761 6762 6763: "${CONFIG_STATUS=./config.status}" 6764ac_write_fail=0 6765ac_clean_files_save=$ac_clean_files 6766ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6769as_write_fail=0 6770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6771#! $SHELL 6772# Generated by $as_me. 6773# Run this file to recreate the current configuration. 6774# Compiler output produced by configure, useful for debugging 6775# configure, is in config.log if it exists. 6776 6777debug=false 6778ac_cs_recheck=false 6779ac_cs_silent=false 6780 6781SHELL=\${CONFIG_SHELL-$SHELL} 6782export SHELL 6783_ASEOF 6784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6785## -------------------- ## 6786## M4sh Initialization. ## 6787## -------------------- ## 6788 6789# Be more Bourne compatible 6790DUALCASE=1; export DUALCASE # for MKS sh 6791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6792 emulate sh 6793 NULLCMD=: 6794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6795 # is contrary to our usage. Disable this feature. 6796 alias -g '${1+"$@"}'='"$@"' 6797 setopt NO_GLOB_SUBST 6798else 6799 case `(set -o) 2>/dev/null` in #( 6800 *posix*) : 6801 set -o posix ;; #( 6802 *) : 6803 ;; 6804esac 6805fi 6806 6807 6808as_nl=' 6809' 6810export as_nl 6811# Printing a long string crashes Solaris 7 /usr/bin/printf. 6812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6815# Prefer a ksh shell builtin over an external printf program on Solaris, 6816# but without wasting forks for bash or zsh. 6817if test -z "$BASH_VERSION$ZSH_VERSION" \ 6818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6819 as_echo='print -r --' 6820 as_echo_n='print -rn --' 6821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6822 as_echo='printf %s\n' 6823 as_echo_n='printf %s' 6824else 6825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6827 as_echo_n='/usr/ucb/echo -n' 6828 else 6829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6830 as_echo_n_body='eval 6831 arg=$1; 6832 case $arg in #( 6833 *"$as_nl"*) 6834 expr "X$arg" : "X\\(.*\\)$as_nl"; 6835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6836 esac; 6837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6838 ' 6839 export as_echo_n_body 6840 as_echo_n='sh -c $as_echo_n_body as_echo' 6841 fi 6842 export as_echo_body 6843 as_echo='sh -c $as_echo_body as_echo' 6844fi 6845 6846# The user is always right. 6847if test "${PATH_SEPARATOR+set}" != set; then 6848 PATH_SEPARATOR=: 6849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6851 PATH_SEPARATOR=';' 6852 } 6853fi 6854 6855 6856# IFS 6857# We need space, tab and new line, in precisely that order. Quoting is 6858# there to prevent editors from complaining about space-tab. 6859# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6860# splitting by setting IFS to empty value.) 6861IFS=" "" $as_nl" 6862 6863# Find who we are. Look in the path if we contain no directory separator. 6864as_myself= 6865case $0 in #(( 6866 *[\\/]* ) as_myself=$0 ;; 6867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6873 done 6874IFS=$as_save_IFS 6875 6876 ;; 6877esac 6878# We did not find ourselves, most probably we were run as `sh COMMAND' 6879# in which case we are not to be found in the path. 6880if test "x$as_myself" = x; then 6881 as_myself=$0 6882fi 6883if test ! -f "$as_myself"; then 6884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6885 exit 1 6886fi 6887 6888# Unset variables that we do not need and which cause bugs (e.g. in 6889# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6890# suppresses any "Segmentation fault" message there. '((' could 6891# trigger a bug in pdksh 5.2.14. 6892for as_var in BASH_ENV ENV MAIL MAILPATH 6893do eval test x\${$as_var+set} = xset \ 6894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6895done 6896PS1='$ ' 6897PS2='> ' 6898PS4='+ ' 6899 6900# NLS nuisances. 6901LC_ALL=C 6902export LC_ALL 6903LANGUAGE=C 6904export LANGUAGE 6905 6906# CDPATH. 6907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6908 6909 6910# as_fn_error STATUS ERROR [LINENO LOG_FD] 6911# ---------------------------------------- 6912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6914# script with STATUS, using 1 if that was 0. 6915as_fn_error () 6916{ 6917 as_status=$1; test $as_status -eq 0 && as_status=1 6918 if test "$4"; then 6919 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 6921 fi 6922 $as_echo "$as_me: error: $2" >&2 6923 as_fn_exit $as_status 6924} # as_fn_error 6925 6926 6927# as_fn_set_status STATUS 6928# ----------------------- 6929# Set $? to STATUS, without forking. 6930as_fn_set_status () 6931{ 6932 return $1 6933} # as_fn_set_status 6934 6935# as_fn_exit STATUS 6936# ----------------- 6937# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6938as_fn_exit () 6939{ 6940 set +e 6941 as_fn_set_status $1 6942 exit $1 6943} # as_fn_exit 6944 6945# as_fn_unset VAR 6946# --------------- 6947# Portably unset VAR. 6948as_fn_unset () 6949{ 6950 { eval $1=; unset $1;} 6951} 6952as_unset=as_fn_unset 6953# as_fn_append VAR VALUE 6954# ---------------------- 6955# Append the text in VALUE to the end of the definition contained in VAR. Take 6956# advantage of any shell optimizations that allow amortized linear growth over 6957# repeated appends, instead of the typical quadratic growth present in naive 6958# implementations. 6959if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6960 eval 'as_fn_append () 6961 { 6962 eval $1+=\$2 6963 }' 6964else 6965 as_fn_append () 6966 { 6967 eval $1=\$$1\$2 6968 } 6969fi # as_fn_append 6970 6971# as_fn_arith ARG... 6972# ------------------ 6973# Perform arithmetic evaluation on the ARGs, and store the result in the 6974# global $as_val. Take advantage of shells that can avoid forks. The arguments 6975# must be portable across $(()) and expr. 6976if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6977 eval 'as_fn_arith () 6978 { 6979 as_val=$(( $* )) 6980 }' 6981else 6982 as_fn_arith () 6983 { 6984 as_val=`expr "$@" || test $? -eq 1` 6985 } 6986fi # as_fn_arith 6987 6988 6989if expr a : '\(a\)' >/dev/null 2>&1 && 6990 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6991 as_expr=expr 6992else 6993 as_expr=false 6994fi 6995 6996if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6997 as_basename=basename 6998else 6999 as_basename=false 7000fi 7001 7002if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7003 as_dirname=dirname 7004else 7005 as_dirname=false 7006fi 7007 7008as_me=`$as_basename -- "$0" || 7009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7010 X"$0" : 'X\(//\)$' \| \ 7011 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7012$as_echo X/"$0" | 7013 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7014 s//\1/ 7015 q 7016 } 7017 /^X\/\(\/\/\)$/{ 7018 s//\1/ 7019 q 7020 } 7021 /^X\/\(\/\).*/{ 7022 s//\1/ 7023 q 7024 } 7025 s/.*/./; q'` 7026 7027# Avoid depending upon Character Ranges. 7028as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7030as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7031as_cr_digits='0123456789' 7032as_cr_alnum=$as_cr_Letters$as_cr_digits 7033 7034ECHO_C= ECHO_N= ECHO_T= 7035case `echo -n x` in #((((( 7036-n*) 7037 case `echo 'xy\c'` in 7038 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7039 xy) ECHO_C='\c';; 7040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7041 ECHO_T=' ';; 7042 esac;; 7043*) 7044 ECHO_N='-n';; 7045esac 7046 7047rm -f conf$$ conf$$.exe conf$$.file 7048if test -d conf$$.dir; then 7049 rm -f conf$$.dir/conf$$.file 7050else 7051 rm -f conf$$.dir 7052 mkdir conf$$.dir 2>/dev/null 7053fi 7054if (echo >conf$$.file) 2>/dev/null; then 7055 if ln -s conf$$.file conf$$ 2>/dev/null; then 7056 as_ln_s='ln -s' 7057 # ... but there are two gotchas: 7058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7060 # In both cases, we have to default to `cp -pR'. 7061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7062 as_ln_s='cp -pR' 7063 elif ln conf$$.file conf$$ 2>/dev/null; then 7064 as_ln_s=ln 7065 else 7066 as_ln_s='cp -pR' 7067 fi 7068else 7069 as_ln_s='cp -pR' 7070fi 7071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7072rmdir conf$$.dir 2>/dev/null 7073 7074 7075# as_fn_mkdir_p 7076# ------------- 7077# Create "$as_dir" as a directory, including parents if necessary. 7078as_fn_mkdir_p () 7079{ 7080 7081 case $as_dir in #( 7082 -*) as_dir=./$as_dir;; 7083 esac 7084 test -d "$as_dir" || eval $as_mkdir_p || { 7085 as_dirs= 7086 while :; do 7087 case $as_dir in #( 7088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7089 *) as_qdir=$as_dir;; 7090 esac 7091 as_dirs="'$as_qdir' $as_dirs" 7092 as_dir=`$as_dirname -- "$as_dir" || 7093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7094 X"$as_dir" : 'X\(//\)[^/]' \| \ 7095 X"$as_dir" : 'X\(//\)$' \| \ 7096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7097$as_echo X"$as_dir" | 7098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7099 s//\1/ 7100 q 7101 } 7102 /^X\(\/\/\)[^/].*/{ 7103 s//\1/ 7104 q 7105 } 7106 /^X\(\/\/\)$/{ 7107 s//\1/ 7108 q 7109 } 7110 /^X\(\/\).*/{ 7111 s//\1/ 7112 q 7113 } 7114 s/.*/./; q'` 7115 test -d "$as_dir" && break 7116 done 7117 test -z "$as_dirs" || eval "mkdir $as_dirs" 7118 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7119 7120 7121} # as_fn_mkdir_p 7122if mkdir -p . 2>/dev/null; then 7123 as_mkdir_p='mkdir -p "$as_dir"' 7124else 7125 test -d ./-p && rmdir ./-p 7126 as_mkdir_p=false 7127fi 7128 7129 7130# as_fn_executable_p FILE 7131# ----------------------- 7132# Test if FILE is an executable regular file. 7133as_fn_executable_p () 7134{ 7135 test -f "$1" && test -x "$1" 7136} # as_fn_executable_p 7137as_test_x='test -x' 7138as_executable_p=as_fn_executable_p 7139 7140# Sed expression to map a string onto a valid CPP name. 7141as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7142 7143# Sed expression to map a string onto a valid variable name. 7144as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7145 7146 7147exec 6>&1 7148## ----------------------------------- ## 7149## Main body of $CONFIG_STATUS script. ## 7150## ----------------------------------- ## 7151_ASEOF 7152test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7153 7154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7155# Save the log message, to keep $0 and so on meaningful, and to 7156# report actual input values of CONFIG_FILES etc. instead of their 7157# values after options handling. 7158ac_log=" 7159This file was extended by netgen $as_me 1.3, which was 7160generated by GNU Autoconf 2.69. Invocation command line was 7161 7162 CONFIG_FILES = $CONFIG_FILES 7163 CONFIG_HEADERS = $CONFIG_HEADERS 7164 CONFIG_LINKS = $CONFIG_LINKS 7165 CONFIG_COMMANDS = $CONFIG_COMMANDS 7166 $ $0 $@ 7167 7168on `(hostname || uname -n) 2>/dev/null | sed 1q` 7169" 7170 7171_ACEOF 7172 7173case $ac_config_files in *" 7174"*) set x $ac_config_files; shift; ac_config_files=$*;; 7175esac 7176 7177 7178 7179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7180# Files that config.status was made for. 7181config_files="$ac_config_files" 7182 7183_ACEOF 7184 7185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7186ac_cs_usage="\ 7187\`$as_me' instantiates files and other configuration actions 7188from templates according to the current configuration. Unless the files 7189and actions are specified as TAGs, all are instantiated by default. 7190 7191Usage: $0 [OPTION]... [TAG]... 7192 7193 -h, --help print this help, then exit 7194 -V, --version print version number and configuration settings, then exit 7195 --config print configuration, then exit 7196 -q, --quiet, --silent 7197 do not print progress messages 7198 -d, --debug don't remove temporary files 7199 --recheck update $as_me by reconfiguring in the same conditions 7200 --file=FILE[:TEMPLATE] 7201 instantiate the configuration file FILE 7202 7203Configuration files: 7204$config_files 7205 7206Report bugs to <eda-dev@opencircuitdesign.com>." 7207 7208_ACEOF 7209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7210ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7211ac_cs_version="\\ 7212netgen config.status 1.3 7213configured by $0, generated by GNU Autoconf 2.69, 7214 with options \\"\$ac_cs_config\\" 7215 7216Copyright (C) 2012 Free Software Foundation, Inc. 7217This config.status script is free software; the Free Software Foundation 7218gives unlimited permission to copy, distribute and modify it." 7219 7220ac_pwd='$ac_pwd' 7221srcdir='$srcdir' 7222INSTALL='$INSTALL' 7223test -n "\$AWK" || AWK=awk 7224_ACEOF 7225 7226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7227# The default lists apply if the user does not specify any file. 7228ac_need_defaults=: 7229while test $# != 0 7230do 7231 case $1 in 7232 --*=?*) 7233 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7234 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7235 ac_shift=: 7236 ;; 7237 --*=) 7238 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7239 ac_optarg= 7240 ac_shift=: 7241 ;; 7242 *) 7243 ac_option=$1 7244 ac_optarg=$2 7245 ac_shift=shift 7246 ;; 7247 esac 7248 7249 case $ac_option in 7250 # Handling of the options. 7251 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7252 ac_cs_recheck=: ;; 7253 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7254 $as_echo "$ac_cs_version"; exit ;; 7255 --config | --confi | --conf | --con | --co | --c ) 7256 $as_echo "$ac_cs_config"; exit ;; 7257 --debug | --debu | --deb | --de | --d | -d ) 7258 debug=: ;; 7259 --file | --fil | --fi | --f ) 7260 $ac_shift 7261 case $ac_optarg in 7262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7263 '') as_fn_error $? "missing file argument" ;; 7264 esac 7265 as_fn_append CONFIG_FILES " '$ac_optarg'" 7266 ac_need_defaults=false;; 7267 --he | --h | --help | --hel | -h ) 7268 $as_echo "$ac_cs_usage"; exit ;; 7269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7270 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7271 ac_cs_silent=: ;; 7272 7273 # This is an error. 7274 -*) as_fn_error $? "unrecognized option: \`$1' 7275Try \`$0 --help' for more information." ;; 7276 7277 *) as_fn_append ac_config_targets " $1" 7278 ac_need_defaults=false ;; 7279 7280 esac 7281 shift 7282done 7283 7284ac_configure_extra_args= 7285 7286if $ac_cs_silent; then 7287 exec 6>/dev/null 7288 ac_configure_extra_args="$ac_configure_extra_args --silent" 7289fi 7290 7291_ACEOF 7292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7293if \$ac_cs_recheck; then 7294 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7295 shift 7296 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7297 CONFIG_SHELL='$SHELL' 7298 export CONFIG_SHELL 7299 exec "\$@" 7300fi 7301 7302_ACEOF 7303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7304exec 5>>config.log 7305{ 7306 echo 7307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7308## Running $as_me. ## 7309_ASBOX 7310 $as_echo "$ac_log" 7311} >&5 7312 7313_ACEOF 7314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7315_ACEOF 7316 7317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7318 7319# Handling of arguments. 7320for ac_config_target in $ac_config_targets 7321do 7322 case $ac_config_target in 7323 "defs.mak") CONFIG_FILES="$CONFIG_FILES defs.mak" ;; 7324 7325 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7326 esac 7327done 7328 7329 7330# If the user did not use the arguments to specify the items to instantiate, 7331# then the envvar interface is used. Set only those that are not. 7332# We use the long form for the default assignment because of an extremely 7333# bizarre bug on SunOS 4.1.3. 7334if $ac_need_defaults; then 7335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7336fi 7337 7338# Have a temporary directory for convenience. Make it in the build tree 7339# simply because there is no reason against having it here, and in addition, 7340# creating and moving files from /tmp can sometimes cause problems. 7341# Hook for its removal unless debugging. 7342# Note that there is a small window in which the directory will not be cleaned: 7343# after its creation but before its name has been assigned to `$tmp'. 7344$debug || 7345{ 7346 tmp= ac_tmp= 7347 trap 'exit_status=$? 7348 : "${ac_tmp:=$tmp}" 7349 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7350' 0 7351 trap 'as_fn_exit 1' 1 2 13 15 7352} 7353# Create a (secure) tmp directory for tmp files. 7354 7355{ 7356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7357 test -d "$tmp" 7358} || 7359{ 7360 tmp=./conf$$-$RANDOM 7361 (umask 077 && mkdir "$tmp") 7362} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7363ac_tmp=$tmp 7364 7365# Set up the scripts for CONFIG_FILES section. 7366# No need to generate them if there are no CONFIG_FILES. 7367# This happens for instance with `./config.status config.h'. 7368if test -n "$CONFIG_FILES"; then 7369 7370 7371ac_cr=`echo X | tr X '\015'` 7372# On cygwin, bash can eat \r inside `` if the user requested igncr. 7373# But we know of no other shell where ac_cr would be empty at this 7374# point, so we can use a bashism as a fallback. 7375if test "x$ac_cr" = x; then 7376 eval ac_cr=\$\'\\r\' 7377fi 7378ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7379if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7380 ac_cs_awk_cr='\\r' 7381else 7382 ac_cs_awk_cr=$ac_cr 7383fi 7384 7385echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7386_ACEOF 7387 7388 7389{ 7390 echo "cat >conf$$subs.awk <<_ACEOF" && 7391 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7392 echo "_ACEOF" 7393} >conf$$subs.sh || 7394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7395ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7396ac_delim='%!_!# ' 7397for ac_last_try in false false false false false :; do 7398 . ./conf$$subs.sh || 7399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7400 7401 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7402 if test $ac_delim_n = $ac_delim_num; then 7403 break 7404 elif $ac_last_try; then 7405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7406 else 7407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7408 fi 7409done 7410rm -f conf$$subs.sh 7411 7412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7413cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7414_ACEOF 7415sed -n ' 7416h 7417s/^/S["/; s/!.*/"]=/ 7418p 7419g 7420s/^[^!]*!// 7421:repl 7422t repl 7423s/'"$ac_delim"'$// 7424t delim 7425:nl 7426h 7427s/\(.\{148\}\)..*/\1/ 7428t more1 7429s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7430p 7431n 7432b repl 7433:more1 7434s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7435p 7436g 7437s/.\{148\}// 7438t nl 7439:delim 7440h 7441s/\(.\{148\}\)..*/\1/ 7442t more2 7443s/["\\]/\\&/g; s/^/"/; s/$/"/ 7444p 7445b 7446:more2 7447s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7448p 7449g 7450s/.\{148\}// 7451t delim 7452' <conf$$subs.awk | sed ' 7453/^[^""]/{ 7454 N 7455 s/\n// 7456} 7457' >>$CONFIG_STATUS || ac_write_fail=1 7458rm -f conf$$subs.awk 7459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7460_ACAWK 7461cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7462 for (key in S) S_is_set[key] = 1 7463 FS = "" 7464 7465} 7466{ 7467 line = $ 0 7468 nfields = split(line, field, "@") 7469 substed = 0 7470 len = length(field[1]) 7471 for (i = 2; i < nfields; i++) { 7472 key = field[i] 7473 keylen = length(key) 7474 if (S_is_set[key]) { 7475 value = S[key] 7476 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7477 len += length(value) + length(field[++i]) 7478 substed = 1 7479 } else 7480 len += 1 + keylen 7481 } 7482 7483 print line 7484} 7485 7486_ACAWK 7487_ACEOF 7488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7489if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7490 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7491else 7492 cat 7493fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7494 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7495_ACEOF 7496 7497# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7498# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7499# trailing colons and then remove the whole line if VPATH becomes empty 7500# (actually we leave an empty line to preserve line numbers). 7501if test "x$srcdir" = x.; then 7502 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7503h 7504s/// 7505s/^/:/ 7506s/[ ]*$/:/ 7507s/:\$(srcdir):/:/g 7508s/:\${srcdir}:/:/g 7509s/:@srcdir@:/:/g 7510s/^:*// 7511s/:*$// 7512x 7513s/\(=[ ]*\).*/\1/ 7514G 7515s/\n// 7516s/^[^=]*=[ ]*$// 7517}' 7518fi 7519 7520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7521fi # test -n "$CONFIG_FILES" 7522 7523 7524eval set X " :F $CONFIG_FILES " 7525shift 7526for ac_tag 7527do 7528 case $ac_tag in 7529 :[FHLC]) ac_mode=$ac_tag; continue;; 7530 esac 7531 case $ac_mode$ac_tag in 7532 :[FHL]*:*);; 7533 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7534 :[FH]-) ac_tag=-:-;; 7535 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7536 esac 7537 ac_save_IFS=$IFS 7538 IFS=: 7539 set x $ac_tag 7540 IFS=$ac_save_IFS 7541 shift 7542 ac_file=$1 7543 shift 7544 7545 case $ac_mode in 7546 :L) ac_source=$1;; 7547 :[FH]) 7548 ac_file_inputs= 7549 for ac_f 7550 do 7551 case $ac_f in 7552 -) ac_f="$ac_tmp/stdin";; 7553 *) # Look for the file first in the build tree, then in the source tree 7554 # (if the path is not absolute). The absolute path cannot be DOS-style, 7555 # because $ac_f cannot contain `:'. 7556 test -f "$ac_f" || 7557 case $ac_f in 7558 [\\/$]*) false;; 7559 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7560 esac || 7561 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7562 esac 7563 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7564 as_fn_append ac_file_inputs " '$ac_f'" 7565 done 7566 7567 # Let's still pretend it is `configure' which instantiates (i.e., don't 7568 # use $as_me), people would be surprised to read: 7569 # /* config.h. Generated by config.status. */ 7570 configure_input='Generated from '` 7571 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7572 `' by configure.' 7573 if test x"$ac_file" != x-; then 7574 configure_input="$ac_file. $configure_input" 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7576$as_echo "$as_me: creating $ac_file" >&6;} 7577 fi 7578 # Neutralize special characters interpreted by sed in replacement strings. 7579 case $configure_input in #( 7580 *\&* | *\|* | *\\* ) 7581 ac_sed_conf_input=`$as_echo "$configure_input" | 7582 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7583 *) ac_sed_conf_input=$configure_input;; 7584 esac 7585 7586 case $ac_tag in 7587 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7589 esac 7590 ;; 7591 esac 7592 7593 ac_dir=`$as_dirname -- "$ac_file" || 7594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7595 X"$ac_file" : 'X\(//\)[^/]' \| \ 7596 X"$ac_file" : 'X\(//\)$' \| \ 7597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7598$as_echo X"$ac_file" | 7599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7600 s//\1/ 7601 q 7602 } 7603 /^X\(\/\/\)[^/].*/{ 7604 s//\1/ 7605 q 7606 } 7607 /^X\(\/\/\)$/{ 7608 s//\1/ 7609 q 7610 } 7611 /^X\(\/\).*/{ 7612 s//\1/ 7613 q 7614 } 7615 s/.*/./; q'` 7616 as_dir="$ac_dir"; as_fn_mkdir_p 7617 ac_builddir=. 7618 7619case "$ac_dir" in 7620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7621*) 7622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7623 # A ".." for each directory in $ac_dir_suffix. 7624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7625 case $ac_top_builddir_sub in 7626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7628 esac ;; 7629esac 7630ac_abs_top_builddir=$ac_pwd 7631ac_abs_builddir=$ac_pwd$ac_dir_suffix 7632# for backward compatibility: 7633ac_top_builddir=$ac_top_build_prefix 7634 7635case $srcdir in 7636 .) # We are building in place. 7637 ac_srcdir=. 7638 ac_top_srcdir=$ac_top_builddir_sub 7639 ac_abs_top_srcdir=$ac_pwd ;; 7640 [\\/]* | ?:[\\/]* ) # Absolute name. 7641 ac_srcdir=$srcdir$ac_dir_suffix; 7642 ac_top_srcdir=$srcdir 7643 ac_abs_top_srcdir=$srcdir ;; 7644 *) # Relative name. 7645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7646 ac_top_srcdir=$ac_top_build_prefix$srcdir 7647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7648esac 7649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7650 7651 7652 case $ac_mode in 7653 :F) 7654 # 7655 # CONFIG_FILE 7656 # 7657 7658 case $INSTALL in 7659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7660 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7661 esac 7662_ACEOF 7663 7664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7665# If the template does not know about datarootdir, expand it. 7666# FIXME: This hack should be removed a few years after 2.60. 7667ac_datarootdir_hack=; ac_datarootdir_seen= 7668ac_sed_dataroot=' 7669/datarootdir/ { 7670 p 7671 q 7672} 7673/@datadir@/p 7674/@docdir@/p 7675/@infodir@/p 7676/@localedir@/p 7677/@mandir@/p' 7678case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7679*datarootdir*) ac_datarootdir_seen=yes;; 7680*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7682$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7683_ACEOF 7684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7685 ac_datarootdir_hack=' 7686 s&@datadir@&$datadir&g 7687 s&@docdir@&$docdir&g 7688 s&@infodir@&$infodir&g 7689 s&@localedir@&$localedir&g 7690 s&@mandir@&$mandir&g 7691 s&\\\${datarootdir}&$datarootdir&g' ;; 7692esac 7693_ACEOF 7694 7695# Neutralize VPATH when `$srcdir' = `.'. 7696# Shell code in configure.ac might set extrasub. 7697# FIXME: do we really want to maintain this feature? 7698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7699ac_sed_extra="$ac_vpsub 7700$extrasub 7701_ACEOF 7702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7703:t 7704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7705s|@configure_input@|$ac_sed_conf_input|;t t 7706s&@top_builddir@&$ac_top_builddir_sub&;t t 7707s&@top_build_prefix@&$ac_top_build_prefix&;t t 7708s&@srcdir@&$ac_srcdir&;t t 7709s&@abs_srcdir@&$ac_abs_srcdir&;t t 7710s&@top_srcdir@&$ac_top_srcdir&;t t 7711s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7712s&@builddir@&$ac_builddir&;t t 7713s&@abs_builddir@&$ac_abs_builddir&;t t 7714s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7715s&@INSTALL@&$ac_INSTALL&;t t 7716$ac_datarootdir_hack 7717" 7718eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7719 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7720 7721test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7722 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7724 "$ac_tmp/out"`; test -z "$ac_out"; } && 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7726which seems to be undefined. Please make sure it is defined" >&5 7727$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7728which seems to be undefined. Please make sure it is defined" >&2;} 7729 7730 rm -f "$ac_tmp/stdin" 7731 case $ac_file in 7732 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7733 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7734 esac \ 7735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7736 ;; 7737 7738 7739 7740 esac 7741 7742done # for ac_tag 7743 7744 7745as_fn_exit 0 7746_ACEOF 7747ac_clean_files=$ac_clean_files_save 7748 7749test $ac_write_fail = 0 || 7750 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 7751 7752 7753# configure is writing to config.log, and then calls config.status. 7754# config.status does its own redirection, appending to config.log. 7755# Unfortunately, on DOS this fails, as config.log is still kept open 7756# by configure, so config.status won't be able to write to it; its 7757# output is simply discarded. So we exec the FD to /dev/null, 7758# effectively closing config.log, so it can be properly (re)opened and 7759# appended to by config.status. When coming back to configure, we 7760# need to make the FD available again. 7761if test "$no_create" != yes; then 7762 ac_cs_success=: 7763 ac_config_status_args= 7764 test "$silent" = yes && 7765 ac_config_status_args="$ac_config_status_args --quiet" 7766 exec 5>/dev/null 7767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7768 exec 5>>config.log 7769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7770 # would make configure fail if this is the last instruction. 7771 $ac_cs_success || as_fn_exit 1 7772fi 7773if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7775$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7776fi 7777 7778 7779 7780ECHO_N=printf 7781 7782echo 7783echo "-----------------------------------------------------------" 7784echo "Configuration Summary (principle requirements):" 7785echo 7786 7787${ECHO_N} "Tcl/Tk: " 7788if test $usingTcl ; then 7789 echo "yes" 7790else 7791 echo "no" 7792 echo 7793 echo " Without Tcl/Tk, you cannot run the enhanced version of netgen" 7794 echo " with scripting ability, console window, convenience commands" 7795 echo " such as \"lvs\", and other useful features. If you did not" 7796 echo " specifically disable Tcl/Tk on the configure command line, then" 7797 echo " getting this message means that you do not have Tcl/Tk headers" 7798 echo " and/or libraries installed, or they are not in a standard path." 7799 echo " Try using configure options --with-tcl=<DIR> and --with-tk=<DIR>." 7800 echo 7801fi 7802 7803${ECHO_N} "Python3: " 7804if test "${HAVE_PYTHON3}" == "yes"; then 7805 echo "yes" 7806else 7807 echo "no" 7808 echo 7809 echo " Without Python3, you cannot run the GUI interface to netgen." 7810 echo " This is purely optional, as it contains no features not" 7811 echo " available in the command-line (Tcl/Tk) version. If you want" 7812 echo " python3 support, make sure that you have installed python3" 7813 echo " on your system." 7814 echo 7815fi 7816 7817echo "-----------------------------------------------------------" 7818echo 7819 7820echo "Use 'make' to compile and 'make install' to install." 7821echo 7822echo "Errors may not be printed to stdout: see files 'make.log' " 7823echo " and 'install.log' for a complete error summary." 7824echo 7825echo "-----------------------------------------------------------" 7826echo 7827 7828cp defs.mak .. 7829