1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Regina Rexx Interpreter 3.9.3. 4# 5# Report bugs to <mark@rexx.org>. 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 mark@rexx.org 270$0: about your system, including any error possibly output 271$0: before this message. Then install a modern shell, or 272$0: manually run the script under such a shell if you do 273$0: have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='Regina Rexx Interpreter' 582PACKAGE_TARNAME='Regina-REXX' 583PACKAGE_VERSION='3.9.3' 584PACKAGE_STRING='Regina Rexx Interpreter 3.9.3' 585PACKAGE_BUGREPORT='mark@rexx.org' 586PACKAGE_URL='' 587 588ac_default_prefix=/usr/local 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 626MH_UNSIGNED_CHAR_SWITCH 627systemdinstallpath 628initinstaller 629MYDISTRO 630lsb_release 631RPMTOPDIR 632mh_rpm_exists 633addonsdir 634HAVE_REGINA_ADDON_DIR 635REXXSOCKET 636FLISTS 637TRACEMEM 638REGINA_CONFIG_LIBS 639EXECISER_BINARY_LIBS 640THREADER_BINARY_LIBS 641REGINA_BINARY_LIBS 642LIBREGINA_BINARY_LIBS 643REXX_BINARY_LIBS 644STACK_BINARY_LIBS 645LARGE_FILE_SUPPORT 646getconf 647STATICLD_SHO 648REGINA_PACKAGE_NAME 649O2TSO 650O2TSAVE 651MODPST 652SHLPST 653RANLIB_DYNAMIC 654USE_ABI 655REGUTILEXPORTS 656REGUTILEXP 657TEST2EXPORTS 658TEST2EXP 659TEST1EXPORTS 660TEST1EXP 661STATIC_LDFLAGS 662STATICLIB 663SHL_TARGETS 664SHL_LD 665BUNDLE 666SHLPRE 667SHLIBS 668SHLFILE 669SAVE2O 670REGINAEXP 671OTHER_INSTALLS 672OSAVE 673OBJECTS 674OBJ 675O2SHO 676O2SAVE 677LINKREG 678LIBPST 679LIBPRE 680LINKSHL 681LIBLINK 682LIBFLAGS 683LIBFILE 684LIBEXE 685LD_RXLIB_UTILB 686LD_RXLIB_B2 687LD_RXLIB_B1 688LD_RXLIB_UTILA 689LD_RXLIB_A2 690LD_RXLIB_A1 691GETOPT 692EXECISER_DEP 693EEXTRA 694DYN_COMP 695DYNAMIC_LDFLAGS 696CEXTRA 697CC2O 698BOTHLIBS 699BASE_INSTALL 700BASE_BINARY 701MH_FUNC_LIBS 702rexxpdf_config 703rexxcsv_config 704rexxdw_config 705rxsock_config 706rexxisam_config 707rexxeec_config 708rexxsql_config 709rexxcurl_config 710rexxgd_config 711rexxtk_config 712rxcurses_config 713REGINAMULTITHREAD 714MT_FILE 715MH_MT_LIBS 716THREADSAFE_TARGET 717THREADING_LINK 718THREADING_COMPILE 719SHL_SCRIPT 720HAVE_GCI 721GCI_SHO 722DLFCNLIBDIR 723DLFCNINCDIR 724EFENCE 725PURIFY 726DEBUGGING 727DEBUG 728REGUTIL_MATH_LIB 729REGUTIL_TERM_LIB 730REGSCREENUX 731SCREEN_FUNCS 732FNMATCH_TSO 733FNMATCH_SHO 734FNMATCH 735ALLOCA_TSO 736ALLOCA_SHO 737ALLOCA 738LIBOBJS 739EGREP 740GREP 741CPP 742SET_MAKE 743LN_S 744RANLIB 745LEXLIB 746LEX_OUTPUT_ROOT 747LEX 748STATIC_BINARY_LIBS 749GCI_CONVERT_HEADER 750SYS_DEFS 751bitflag 752libdir32 753libdir64 754MY_PREFIX 755valid_arch_flags 756binarybitprefix 757MACH_ARCH 758target_os 759target_vendor 760target_cpu 761target 762host_os 763host_vendor 764host_cpu 765host 766build_os 767build_vendor 768build_cpu 769build 770OBJEXT 771EXEEXT 772ac_ct_CC 773CPPFLAGS 774LDFLAGS 775CFLAGS 776CC 777VER_SUPP 778VER_RELEASE 779VER_MINOR 780VER_MAJOR 781VER_DATE 782VERSION_NODOT 783VERSION_UNQUOTED 784VERSION 785target_alias 786host_alias 787build_alias 788LIBS 789ECHO_T 790ECHO_N 791ECHO_C 792DEFS 793mandir 794localedir 795libdir 796psdir 797pdfdir 798dvidir 799htmldir 800infodir 801docdir 802oldincludedir 803includedir 804runstatedir 805localstatedir 806sharedstatedir 807sysconfdir 808datadir 809datarootdir 810libexecdir 811sbindir 812bindir 813program_transform_name 814prefix 815exec_prefix 816PACKAGE_URL 817PACKAGE_BUGREPORT 818PACKAGE_STRING 819PACKAGE_VERSION 820PACKAGE_TARNAME 821PACKAGE_NAME 822PATH_SEPARATOR 823SHELL' 824ac_subst_files='' 825ac_user_opts=' 826enable_option_checking 827enable_32bit 828enable_64bit 829with_arch 830enable_libdir_change 831enable_screen 832enable_debug 833enable_purify 834enable_efence 835enable_hpux_portable 836with_dlfcnincdir 837with_dlfcnlibdir 838with_staticfunctions 839enable_orexx_binary_compatible 840enable_posix_threads 841enable_gci 842with_testpackage 843with_regutil 844with_rexxcurses 845with_rexxtk 846with_rexxgd 847with_rexxcurl 848with_rexxsql 849with_rexxeec 850with_rexxisam 851with_rxsock 852with_rexxdw 853with_rexxcsv 854with_rexxpdf 855enable_tracemem 856enable_flists 857with_socket 858with_addon_dir 859' 860 ac_precious_vars='build_alias 861host_alias 862target_alias 863CC 864CFLAGS 865LDFLAGS 866LIBS 867CPPFLAGS 868CPP' 869 870 871# Initialize some variables set by options. 872ac_init_help= 873ac_init_version=false 874ac_unrecognized_opts= 875ac_unrecognized_sep= 876# The variables have the same names as the options, with 877# dashes changed to underlines. 878cache_file=/dev/null 879exec_prefix=NONE 880no_create= 881no_recursion= 882prefix=NONE 883program_prefix=NONE 884program_suffix=NONE 885program_transform_name=s,x,x, 886silent= 887site= 888srcdir= 889verbose= 890x_includes=NONE 891x_libraries=NONE 892 893# Installation directory options. 894# These are left unexpanded so users can "make install exec_prefix=/foo" 895# and all the variables that are supposed to be based on exec_prefix 896# by default will actually change. 897# Use braces instead of parens because sh, perl, etc. also accept them. 898# (The list follows the same order as the GNU Coding Standards.) 899bindir='${exec_prefix}/bin' 900sbindir='${exec_prefix}/sbin' 901libexecdir='${exec_prefix}/libexec' 902datarootdir='${prefix}/share' 903datadir='${datarootdir}' 904sysconfdir='${prefix}/etc' 905sharedstatedir='${prefix}/com' 906localstatedir='${prefix}/var' 907runstatedir='${localstatedir}/run' 908includedir='${prefix}/include' 909oldincludedir='/usr/include' 910docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 911infodir='${datarootdir}/info' 912htmldir='${docdir}' 913dvidir='${docdir}' 914pdfdir='${docdir}' 915psdir='${docdir}' 916libdir='${exec_prefix}/lib' 917localedir='${datarootdir}/locale' 918mandir='${datarootdir}/man' 919 920ac_prev= 921ac_dashdash= 922for ac_option 923do 924 # If the previous option needs an argument, assign it. 925 if test -n "$ac_prev"; then 926 eval $ac_prev=\$ac_option 927 ac_prev= 928 continue 929 fi 930 931 case $ac_option in 932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 933 *=) ac_optarg= ;; 934 *) ac_optarg=yes ;; 935 esac 936 937 # Accept the important Cygnus configure options, so we can diagnose typos. 938 939 case $ac_dashdash$ac_option in 940 --) 941 ac_dashdash=yes ;; 942 943 -bindir | --bindir | --bindi | --bind | --bin | --bi) 944 ac_prev=bindir ;; 945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 946 bindir=$ac_optarg ;; 947 948 -build | --build | --buil | --bui | --bu) 949 ac_prev=build_alias ;; 950 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 951 build_alias=$ac_optarg ;; 952 953 -cache-file | --cache-file | --cache-fil | --cache-fi \ 954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 955 ac_prev=cache_file ;; 956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 958 cache_file=$ac_optarg ;; 959 960 --config-cache | -C) 961 cache_file=config.cache ;; 962 963 -datadir | --datadir | --datadi | --datad) 964 ac_prev=datadir ;; 965 -datadir=* | --datadir=* | --datadi=* | --datad=*) 966 datadir=$ac_optarg ;; 967 968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 969 | --dataroo | --dataro | --datar) 970 ac_prev=datarootdir ;; 971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 973 datarootdir=$ac_optarg ;; 974 975 -disable-* | --disable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: $ac_useropt" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984"enable_$ac_useropt" 985"*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=no ;; 990 991 -docdir | --docdir | --docdi | --doc | --do) 992 ac_prev=docdir ;; 993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 994 docdir=$ac_optarg ;; 995 996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 997 ac_prev=dvidir ;; 998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 999 dvidir=$ac_optarg ;; 1000 1001 -enable-* | --enable-*) 1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005 as_fn_error $? "invalid feature name: $ac_useropt" 1006 ac_useropt_orig=$ac_useropt 1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1008 case $ac_user_opts in 1009 *" 1010"enable_$ac_useropt" 1011"*) ;; 1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1013 ac_unrecognized_sep=', ';; 1014 esac 1015 eval enable_$ac_useropt=\$ac_optarg ;; 1016 1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1019 | --exec | --exe | --ex) 1020 ac_prev=exec_prefix ;; 1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1023 | --exec=* | --exe=* | --ex=*) 1024 exec_prefix=$ac_optarg ;; 1025 1026 -gas | --gas | --ga | --g) 1027 # Obsolete; use --with-gas. 1028 with_gas=yes ;; 1029 1030 -help | --help | --hel | --he | -h) 1031 ac_init_help=long ;; 1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1033 ac_init_help=recursive ;; 1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1035 ac_init_help=short ;; 1036 1037 -host | --host | --hos | --ho) 1038 ac_prev=host_alias ;; 1039 -host=* | --host=* | --hos=* | --ho=*) 1040 host_alias=$ac_optarg ;; 1041 1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1043 ac_prev=htmldir ;; 1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1045 | --ht=*) 1046 htmldir=$ac_optarg ;; 1047 1048 -includedir | --includedir | --includedi | --included | --include \ 1049 | --includ | --inclu | --incl | --inc) 1050 ac_prev=includedir ;; 1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1052 | --includ=* | --inclu=* | --incl=* | --inc=*) 1053 includedir=$ac_optarg ;; 1054 1055 -infodir | --infodir | --infodi | --infod | --info | --inf) 1056 ac_prev=infodir ;; 1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1058 infodir=$ac_optarg ;; 1059 1060 -libdir | --libdir | --libdi | --libd) 1061 ac_prev=libdir ;; 1062 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1063 libdir=$ac_optarg ;; 1064 1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1066 | --libexe | --libex | --libe) 1067 ac_prev=libexecdir ;; 1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1069 | --libexe=* | --libex=* | --libe=*) 1070 libexecdir=$ac_optarg ;; 1071 1072 -localedir | --localedir | --localedi | --localed | --locale) 1073 ac_prev=localedir ;; 1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1075 localedir=$ac_optarg ;; 1076 1077 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1078 | --localstate | --localstat | --localsta | --localst | --locals) 1079 ac_prev=localstatedir ;; 1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1082 localstatedir=$ac_optarg ;; 1083 1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1085 ac_prev=mandir ;; 1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1087 mandir=$ac_optarg ;; 1088 1089 -nfp | --nfp | --nf) 1090 # Obsolete; use --without-fp. 1091 with_fp=no ;; 1092 1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1094 | --no-cr | --no-c | -n) 1095 no_create=yes ;; 1096 1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1099 no_recursion=yes ;; 1100 1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1103 | --oldin | --oldi | --old | --ol | --o) 1104 ac_prev=oldincludedir ;; 1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1108 oldincludedir=$ac_optarg ;; 1109 1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1111 ac_prev=prefix ;; 1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1113 prefix=$ac_optarg ;; 1114 1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1116 | --program-pre | --program-pr | --program-p) 1117 ac_prev=program_prefix ;; 1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1120 program_prefix=$ac_optarg ;; 1121 1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1123 | --program-suf | --program-su | --program-s) 1124 ac_prev=program_suffix ;; 1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1127 program_suffix=$ac_optarg ;; 1128 1129 -program-transform-name | --program-transform-name \ 1130 | --program-transform-nam | --program-transform-na \ 1131 | --program-transform-n | --program-transform- \ 1132 | --program-transform | --program-transfor \ 1133 | --program-transfo | --program-transf \ 1134 | --program-trans | --program-tran \ 1135 | --progr-tra | --program-tr | --program-t) 1136 ac_prev=program_transform_name ;; 1137 -program-transform-name=* | --program-transform-name=* \ 1138 | --program-transform-nam=* | --program-transform-na=* \ 1139 | --program-transform-n=* | --program-transform-=* \ 1140 | --program-transform=* | --program-transfor=* \ 1141 | --program-transfo=* | --program-transf=* \ 1142 | --program-trans=* | --program-tran=* \ 1143 | --progr-tra=* | --program-tr=* | --program-t=*) 1144 program_transform_name=$ac_optarg ;; 1145 1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1147 ac_prev=pdfdir ;; 1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1149 pdfdir=$ac_optarg ;; 1150 1151 -psdir | --psdir | --psdi | --psd | --ps) 1152 ac_prev=psdir ;; 1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1154 psdir=$ac_optarg ;; 1155 1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1157 | -silent | --silent | --silen | --sile | --sil) 1158 silent=yes ;; 1159 1160 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1161 | --runstate | --runstat | --runsta | --runst | --runs \ 1162 | --run | --ru | --r) 1163 ac_prev=runstatedir ;; 1164 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1165 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1166 | --run=* | --ru=* | --r=*) 1167 runstatedir=$ac_optarg ;; 1168 1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1170 ac_prev=sbindir ;; 1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1172 | --sbi=* | --sb=*) 1173 sbindir=$ac_optarg ;; 1174 1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1177 | --sharedst | --shareds | --shared | --share | --shar \ 1178 | --sha | --sh) 1179 ac_prev=sharedstatedir ;; 1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1183 | --sha=* | --sh=*) 1184 sharedstatedir=$ac_optarg ;; 1185 1186 -site | --site | --sit) 1187 ac_prev=site ;; 1188 -site=* | --site=* | --sit=*) 1189 site=$ac_optarg ;; 1190 1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1192 ac_prev=srcdir ;; 1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1194 srcdir=$ac_optarg ;; 1195 1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1197 | --syscon | --sysco | --sysc | --sys | --sy) 1198 ac_prev=sysconfdir ;; 1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1201 sysconfdir=$ac_optarg ;; 1202 1203 -target | --target | --targe | --targ | --tar | --ta | --t) 1204 ac_prev=target_alias ;; 1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1206 target_alias=$ac_optarg ;; 1207 1208 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1209 verbose=yes ;; 1210 1211 -version | --version | --versio | --versi | --vers | -V) 1212 ac_init_version=: ;; 1213 1214 -with-* | --with-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 as_fn_error $? "invalid package name: $ac_useropt" 1219 ac_useropt_orig=$ac_useropt 1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 case $ac_user_opts in 1222 *" 1223"with_$ac_useropt" 1224"*) ;; 1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1226 ac_unrecognized_sep=', ';; 1227 esac 1228 eval with_$ac_useropt=\$ac_optarg ;; 1229 1230 -without-* | --without-*) 1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1232 # Reject names that are not valid shell variable names. 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1234 as_fn_error $? "invalid package name: $ac_useropt" 1235 ac_useropt_orig=$ac_useropt 1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1237 case $ac_user_opts in 1238 *" 1239"with_$ac_useropt" 1240"*) ;; 1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1242 ac_unrecognized_sep=', ';; 1243 esac 1244 eval with_$ac_useropt=no ;; 1245 1246 --x) 1247 # Obsolete; use --with-x. 1248 with_x=yes ;; 1249 1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1251 | --x-incl | --x-inc | --x-in | --x-i) 1252 ac_prev=x_includes ;; 1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1255 x_includes=$ac_optarg ;; 1256 1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1259 ac_prev=x_libraries ;; 1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1262 x_libraries=$ac_optarg ;; 1263 1264 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1265Try \`$0 --help' for more information" 1266 ;; 1267 1268 *=*) 1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1270 # Reject names that are not valid shell variable names. 1271 case $ac_envvar in #( 1272 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1274 esac 1275 eval $ac_envvar=\$ac_optarg 1276 export $ac_envvar ;; 1277 1278 *) 1279 # FIXME: should be removed in autoconf 3.0. 1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1284 ;; 1285 1286 esac 1287done 1288 1289if test -n "$ac_prev"; then 1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1291 as_fn_error $? "missing argument to $ac_option" 1292fi 1293 1294if test -n "$ac_unrecognized_opts"; then 1295 case $enable_option_checking in 1296 no) ;; 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1299 esac 1300fi 1301 1302# Check all directory arguments for consistency. 1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1304 datadir sysconfdir sharedstatedir localstatedir includedir \ 1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1306 libdir localedir mandir runstatedir 1307do 1308 eval ac_val=\$$ac_var 1309 # Remove trailing slashes. 1310 case $ac_val in 1311 */ ) 1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1313 eval $ac_var=\$ac_val;; 1314 esac 1315 # Be sure to have absolute directory names. 1316 case $ac_val in 1317 [\\/$]* | ?:[\\/]* ) continue;; 1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1319 esac 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1321done 1322 1323# There might be people who depend on the old broken behavior: `$host' 1324# used to hold the argument of --host etc. 1325# FIXME: To remove some day. 1326build=$build_alias 1327host=$host_alias 1328target=$target_alias 1329 1330# FIXME: To remove some day. 1331if test "x$host_alias" != x; then 1332 if test "x$build_alias" = x; then 1333 cross_compiling=maybe 1334 elif test "x$build_alias" != "x$host_alias"; then 1335 cross_compiling=yes 1336 fi 1337fi 1338 1339ac_tool_prefix= 1340test -n "$host_alias" && ac_tool_prefix=$host_alias- 1341 1342test "$silent" = yes && exec 6>/dev/null 1343 1344 1345ac_pwd=`pwd` && test -n "$ac_pwd" && 1346ac_ls_di=`ls -di .` && 1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1348 as_fn_error $? "working directory cannot be determined" 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1350 as_fn_error $? "pwd does not report name of working directory" 1351 1352 1353# Find the source files, if location was not specified. 1354if test -z "$srcdir"; then 1355 ac_srcdir_defaulted=yes 1356 # Try the directory containing this script, then the parent directory. 1357 ac_confdir=`$as_dirname -- "$as_myself" || 1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1359 X"$as_myself" : 'X\(//\)[^/]' \| \ 1360 X"$as_myself" : 'X\(//\)$' \| \ 1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1362$as_echo X"$as_myself" | 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\/\)[^/].*/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\).*/{ 1376 s//\1/ 1377 q 1378 } 1379 s/.*/./; q'` 1380 srcdir=$ac_confdir 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 srcdir=.. 1383 fi 1384else 1385 ac_srcdir_defaulted=no 1386fi 1387if test ! -r "$srcdir/$ac_unique_file"; then 1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1390fi 1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1392ac_abs_confdir=`( 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1394 pwd)` 1395# When building in place, set srcdir=. 1396if test "$ac_abs_confdir" = "$ac_pwd"; then 1397 srcdir=. 1398fi 1399# Remove unnecessary trailing slashes from srcdir. 1400# Double slashes in file names in object file debugging info 1401# mess up M-x gdb in Emacs. 1402case $srcdir in 1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1404esac 1405for ac_var in $ac_precious_vars; do 1406 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1407 eval ac_env_${ac_var}_value=\$${ac_var} 1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1410done 1411 1412# 1413# Report the --help message. 1414# 1415if test "$ac_init_help" = "long"; then 1416 # Omit some internal or obsolete options to make the list less imposing. 1417 # This message is too long to be a string in the A/UX 3.1 sh. 1418 cat <<_ACEOF 1419\`configure' configures Regina Rexx Interpreter 3.9.3 to adapt to many kinds of systems. 1420 1421Usage: $0 [OPTION]... [VAR=VALUE]... 1422 1423To assign environment variables (e.g., CC, CFLAGS...), specify them as 1424VAR=VALUE. See below for descriptions of some of the useful variables. 1425 1426Defaults for the options are specified in brackets. 1427 1428Configuration: 1429 -h, --help display this help and exit 1430 --help=short display options specific to this package 1431 --help=recursive display the short help of all the included packages 1432 -V, --version display version information and exit 1433 -q, --quiet, --silent do not print \`checking ...' messages 1434 --cache-file=FILE cache test results in FILE [disabled] 1435 -C, --config-cache alias for \`--cache-file=config.cache' 1436 -n, --no-create do not create output files 1437 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1438 1439Installation directories: 1440 --prefix=PREFIX install architecture-independent files in PREFIX 1441 [$ac_default_prefix] 1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1443 [PREFIX] 1444 1445By default, \`make install' will install all the files in 1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1447an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1448for instance \`--prefix=\$HOME'. 1449 1450For better control, use the options below. 1451 1452Fine tuning of the installation directories: 1453 --bindir=DIR user executables [EPREFIX/bin] 1454 --sbindir=DIR system admin executables [EPREFIX/sbin] 1455 --libexecdir=DIR program executables [EPREFIX/libexec] 1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1459 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/Regina-REXX] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473_ACEOF 1474 1475 cat <<\_ACEOF 1476 1477System types: 1478 --build=BUILD configure for building on BUILD [guessed] 1479 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1480 --target=TARGET configure for building compilers for TARGET [HOST] 1481_ACEOF 1482fi 1483 1484if test -n "$ac_init_help"; then 1485 case $ac_init_help in 1486 short | recursive ) echo "Configuration of Regina Rexx Interpreter 3.9.3:";; 1487 esac 1488 cat <<\_ACEOF 1489 1490Optional Features: 1491 --disable-option-checking ignore unrecognized --enable/--with options 1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1494 --enable-32bit specify if 32bit libraries are to be used 1495 --enable-64bit specify if 64bit libraries are to be used 1496 --enable-libdir-change specify --disable-libdir-change if building a .deb 1497 --disable-screen disable terminal functions 1498 --enable-debug turn on debugging 1499 --enable-purify link with Purify (TM) 1500 --enable-efence link with Electric Fence 1501 --enable-hpux-portable make HP-UX binaries portable 1502 --enable-orexx-binary-compatible enable binary compatibility with ORexx 1503 --disable-posix-threads disable POSIX-style multi-threading 1504 --disable-gci disable General Call Interface 1505 --enable-tracemem enable memory tracing in debug mode 1506 --disable-flists disable memory management functions 1507 1508Optional Packages: 1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1511 --with-arch=option build universal binaries on OS X, option: one of "all 32bit 64bit intel ppc ppc64 x86_64 i386" 1512 --with-dlfcnincdir location of dlfcn.h 1513 --with-dlfcnlibdir location of libdl.a(AIX) libdl.dylib(MacOSX) 1514 --with-staticfunctions enable static linking of external function packages 1515 --with-testpackage enable static linking with Regina test external function packages 1516 --with-regutil enable static linking with RegUtil external function package 1517 --with-rexxcurses enable static linking with Rexx/Curses external function package 1518 --with-rexxtk enable static linking with Rexx/Tk external function package 1519 --with-rexxgd enable static linking with Rexx/Gd external function package 1520 --with-rexxcurl enable static linking with Rexx/CURL external function package 1521 --with-rexxsql enable static linking with Rexx/SQL external function package 1522 --with-rexxeec enable static linking with Rexx/EEC external function package 1523 --with-rexxisam enable static linking with Rexx/ISAM external function package 1524 --with-rxsock enable static linking with RxSock external function package 1525 --with-rexxdw enable static linking with Rexx/DW external function package 1526 --with-rexxcsv enable static linking with Rexx/CSV external function package 1527 --with-rexxpdf enable static linking with Rexx/PDF external function package 1528 --with-socket=9999 socket to use for external queues (default 5757) 1529 --with-addon-dir=dir location of external function packages (default blank) 1530 1531Some influential environment variables: 1532 CC C compiler command 1533 CFLAGS C compiler flags 1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1535 nonstandard directory <lib dir> 1536 LIBS libraries to pass to the linker, e.g. -l<library> 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1538 you have headers in a nonstandard directory <include dir> 1539 CPP C preprocessor 1540 1541Use these variables to override the choices made by `configure' or to help 1542it to find libraries and programs with nonstandard names/locations. 1543 1544Report bugs to <mark@rexx.org>. 1545_ACEOF 1546ac_status=$? 1547fi 1548 1549if test "$ac_init_help" = "recursive"; then 1550 # If there are subdirs, report their specific --help. 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1552 test -d "$ac_dir" || 1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1554 continue 1555 ac_builddir=. 1556 1557case "$ac_dir" in 1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559*) 1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1561 # A ".." for each directory in $ac_dir_suffix. 1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1563 case $ac_top_builddir_sub in 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1566 esac ;; 1567esac 1568ac_abs_top_builddir=$ac_pwd 1569ac_abs_builddir=$ac_pwd$ac_dir_suffix 1570# for backward compatibility: 1571ac_top_builddir=$ac_top_build_prefix 1572 1573case $srcdir in 1574 .) # We are building in place. 1575 ac_srcdir=. 1576 ac_top_srcdir=$ac_top_builddir_sub 1577 ac_abs_top_srcdir=$ac_pwd ;; 1578 [\\/]* | ?:[\\/]* ) # Absolute name. 1579 ac_srcdir=$srcdir$ac_dir_suffix; 1580 ac_top_srcdir=$srcdir 1581 ac_abs_top_srcdir=$srcdir ;; 1582 *) # Relative name. 1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1584 ac_top_srcdir=$ac_top_build_prefix$srcdir 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1586esac 1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1588 1589 cd "$ac_dir" || { ac_status=$?; continue; } 1590 # Check for guested configure. 1591 if test -f "$ac_srcdir/configure.gnu"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 elif test -f "$ac_srcdir/configure"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure" --help=recursive 1597 else 1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1599 fi || ac_status=$? 1600 cd "$ac_pwd" || { ac_status=$?; break; } 1601 done 1602fi 1603 1604test -n "$ac_init_help" && exit $ac_status 1605if $ac_init_version; then 1606 cat <<\_ACEOF 1607Regina Rexx Interpreter configure 3.9.3 1608generated by GNU Autoconf 2.69 1609 1610Copyright (C) 2012 Free Software Foundation, Inc. 1611This configure script is free software; the Free Software Foundation 1612gives unlimited permission to copy, distribute and modify it. 1613_ACEOF 1614 exit 1615fi 1616 1617## ------------------------ ## 1618## Autoconf initialization. ## 1619## ------------------------ ## 1620 1621# ac_fn_c_try_compile LINENO 1622# -------------------------- 1623# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624ac_fn_c_try_compile () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 rm -f conftest.$ac_objext 1628 if { { ac_try="$ac_compile" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_compile") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } && { 1644 test -z "$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 } && test -s conftest.$ac_objext; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_compile 1658 1659# ac_fn_c_try_link LINENO 1660# ----------------------- 1661# Try to link conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_link () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext conftest$ac_exeext 1666 if { { ac_try="$ac_link" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest$ac_exeext && { 1685 test "$cross_compiling" = yes || 1686 test -x conftest$ac_exeext 1687 }; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1697 # interfere with the next link command; also delete a directory that is 1698 # left behind by Apple's compiler. We do this before executing the actions. 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_c_try_link 1704 1705# ac_fn_c_try_cpp LINENO 1706# ---------------------- 1707# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1708ac_fn_c_try_cpp () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 if { { ac_try="$ac_cpp conftest.$ac_ext" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } > conftest.i && { 1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1728 test ! -s conftest.err 1729 }; then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=1 1736fi 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_cpp 1741 1742# ac_fn_c_try_run LINENO 1743# ---------------------- 1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1745# that executables *can* be run. 1746ac_fn_c_try_run () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 if { { ac_try="$ac_link" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_link") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1760 { { case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_try") 2>&5 1767 ac_status=$? 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; }; }; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: program exited with status $ac_status" >&5 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=$ac_status 1777fi 1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 as_fn_set_status $ac_retval 1781 1782} # ac_fn_c_try_run 1783 1784# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1785# ------------------------------------------------------- 1786# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1787# the include files in INCLUDES and setting the cache variable VAR 1788# accordingly. 1789ac_fn_c_check_header_mongrel () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 if eval \${$3+:} false; then : 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801else 1802 # Is the header compilable? 1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1804$as_echo_n "checking $2 usability... " >&6; } 1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807$4 1808#include <$2> 1809_ACEOF 1810if ac_fn_c_try_compile "$LINENO"; then : 1811 ac_header_compiler=yes 1812else 1813 ac_header_compiler=no 1814fi 1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1817$as_echo "$ac_header_compiler" >&6; } 1818 1819# Is the header present? 1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1821$as_echo_n "checking $2 presence... " >&6; } 1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824#include <$2> 1825_ACEOF 1826if ac_fn_c_try_cpp "$LINENO"; then : 1827 ac_header_preproc=yes 1828else 1829 ac_header_preproc=no 1830fi 1831rm -f conftest.err conftest.i conftest.$ac_ext 1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1833$as_echo "$ac_header_preproc" >&6; } 1834 1835# So? What about this header? 1836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1837 yes:no: ) 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1839$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1842 ;; 1843 no:yes:* ) 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1845$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1847$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1849$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1851$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1854( $as_echo "## ---------------------------- ## 1855## Report this to mark@rexx.org ## 1856## ---------------------------- ##" 1857 ) | sed "s/^/$as_me: WARNING: /" >&2 1858 ;; 1859esac 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861$as_echo_n "checking for $2... " >&6; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 1865 eval "$3=\$ac_header_compiler" 1866fi 1867eval ac_res=\$$3 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869$as_echo "$ac_res" >&6; } 1870fi 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1872 1873} # ac_fn_c_check_header_mongrel 1874 1875# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1876# ------------------------------------------------------- 1877# Tests whether HEADER exists and can be compiled using the include files in 1878# INCLUDES, setting the cache variable VAR accordingly. 1879ac_fn_c_check_header_compile () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883$as_echo_n "checking for $2... " >&6; } 1884if eval \${$3+:} false; then : 1885 $as_echo_n "(cached) " >&6 1886else 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890#include <$2> 1891_ACEOF 1892if ac_fn_c_try_compile "$LINENO"; then : 1893 eval "$3=yes" 1894else 1895 eval "$3=no" 1896fi 1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898fi 1899eval ac_res=\$$3 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1901$as_echo "$ac_res" >&6; } 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 1904} # ac_fn_c_check_header_compile 1905 1906# ac_fn_c_check_func LINENO FUNC VAR 1907# ---------------------------------- 1908# Tests whether FUNC exists, setting the cache variable VAR accordingly 1909ac_fn_c_check_func () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if eval \${$3+:} false; then : 1915 $as_echo_n "(cached) " >&6 1916else 1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1918/* end confdefs.h. */ 1919/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1921#define $2 innocuous_$2 1922 1923/* System header to define __stub macros and hopefully few prototypes, 1924 which can conflict with char $2 (); below. 1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1926 <limits.h> exists even on freestanding compilers. */ 1927 1928#ifdef __STDC__ 1929# include <limits.h> 1930#else 1931# include <assert.h> 1932#endif 1933 1934#undef $2 1935 1936/* Override any GCC internal prototype to avoid an error. 1937 Use char because int might match the return type of a GCC 1938 builtin and then its argument prototype would still apply. */ 1939#ifdef __cplusplus 1940extern "C" 1941#endif 1942char $2 (); 1943/* The GNU C library defines this for functions which it implements 1944 to always fail with ENOSYS. Some functions are actually named 1945 something starting with __ and the normal name is an alias. */ 1946#if defined __stub_$2 || defined __stub___$2 1947choke me 1948#endif 1949 1950int 1951main () 1952{ 1953return $2 (); 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_link "$LINENO"; then : 1959 eval "$3=yes" 1960else 1961 eval "$3=no" 1962fi 1963rm -f core conftest.err conftest.$ac_objext \ 1964 conftest$ac_exeext conftest.$ac_ext 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1970 1971} # ac_fn_c_check_func 1972 1973# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1974# ------------------------------------------- 1975# Tests whether TYPE exists after having included INCLUDES, setting cache 1976# variable VAR accordingly. 1977ac_fn_c_check_type () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if eval \${$3+:} false; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 eval "$3=no" 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988$4 1989int 1990main () 1991{ 1992if (sizeof ($2)) 1993 return 0; 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998if ac_fn_c_try_compile "$LINENO"; then : 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002int 2003main () 2004{ 2005if (sizeof (($2))) 2006 return 0; 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 2013else 2014 eval "$3=yes" 2015fi 2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 2025} # ac_fn_c_check_type 2026cat >config.log <<_ACEOF 2027This file contains any messages produced by compilers while 2028running configure, to aid debugging if configure makes a mistake. 2029 2030It was created by Regina Rexx Interpreter $as_me 3.9.3, which was 2031generated by GNU Autoconf 2.69. Invocation command line was 2032 2033 $ $0 $@ 2034 2035_ACEOF 2036exec 5>>config.log 2037{ 2038cat <<_ASUNAME 2039## --------- ## 2040## Platform. ## 2041## --------- ## 2042 2043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2044uname -m = `(uname -m) 2>/dev/null || echo unknown` 2045uname -r = `(uname -r) 2>/dev/null || echo unknown` 2046uname -s = `(uname -s) 2>/dev/null || echo unknown` 2047uname -v = `(uname -v) 2>/dev/null || echo unknown` 2048 2049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2050/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2051 2052/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2053/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2055/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2056/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2057/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2058/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2059 2060_ASUNAME 2061 2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2063for as_dir in $PATH 2064do 2065 IFS=$as_save_IFS 2066 test -z "$as_dir" && as_dir=. 2067 $as_echo "PATH: $as_dir" 2068 done 2069IFS=$as_save_IFS 2070 2071} >&5 2072 2073cat >&5 <<_ACEOF 2074 2075 2076## ----------- ## 2077## Core tests. ## 2078## ----------- ## 2079 2080_ACEOF 2081 2082 2083# Keep a trace of the command line. 2084# Strip out --no-create and --no-recursion so they do not pile up. 2085# Strip out --silent because we don't want to record it for future runs. 2086# Also quote any args containing shell meta-characters. 2087# Make two passes to allow for proper duplicate-argument suppression. 2088ac_configure_args= 2089ac_configure_args0= 2090ac_configure_args1= 2091ac_must_keep_next=false 2092for ac_pass in 1 2 2093do 2094 for ac_arg 2095 do 2096 case $ac_arg in 2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2099 | -silent | --silent | --silen | --sile | --sil) 2100 continue ;; 2101 *\'*) 2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2103 esac 2104 case $ac_pass in 2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2106 2) 2107 as_fn_append ac_configure_args1 " '$ac_arg'" 2108 if test $ac_must_keep_next = true; then 2109 ac_must_keep_next=false # Got value, back to normal. 2110 else 2111 case $ac_arg in 2112 *=* | --config-cache | -C | -disable-* | --disable-* \ 2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2115 | -with-* | --with-* | -without-* | --without-* | --x) 2116 case "$ac_configure_args0 " in 2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2118 esac 2119 ;; 2120 -* ) ac_must_keep_next=true ;; 2121 esac 2122 fi 2123 as_fn_append ac_configure_args " '$ac_arg'" 2124 ;; 2125 esac 2126 done 2127done 2128{ ac_configure_args0=; unset ac_configure_args0;} 2129{ ac_configure_args1=; unset ac_configure_args1;} 2130 2131# When interrupted or exit'd, cleanup temporary files, and complete 2132# config.log. We remove comments because anyway the quotes in there 2133# would cause problems or look ugly. 2134# WARNING: Use '\'' to represent an apostrophe within the trap. 2135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2136trap 'exit_status=$? 2137 # Save into config.log some information that might help in debugging. 2138 { 2139 echo 2140 2141 $as_echo "## ---------------- ## 2142## Cache variables. ## 2143## ---------------- ##" 2144 echo 2145 # The following way of writing the cache mishandles newlines in values, 2146( 2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2148 eval ac_val=\$$ac_var 2149 case $ac_val in #( 2150 *${as_nl}*) 2151 case $ac_var in #( 2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2154 esac 2155 case $ac_var in #( 2156 _ | IFS | as_nl) ;; #( 2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2158 *) { eval $ac_var=; unset $ac_var;} ;; 2159 esac ;; 2160 esac 2161 done 2162 (set) 2>&1 | 2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2164 *${as_nl}ac_space=\ *) 2165 sed -n \ 2166 "s/'\''/'\''\\\\'\'''\''/g; 2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2168 ;; #( 2169 *) 2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2171 ;; 2172 esac | 2173 sort 2174) 2175 echo 2176 2177 $as_echo "## ----------------- ## 2178## Output variables. ## 2179## ----------------- ##" 2180 echo 2181 for ac_var in $ac_subst_vars 2182 do 2183 eval ac_val=\$$ac_var 2184 case $ac_val in 2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2186 esac 2187 $as_echo "$ac_var='\''$ac_val'\''" 2188 done | sort 2189 echo 2190 2191 if test -n "$ac_subst_files"; then 2192 $as_echo "## ------------------- ## 2193## File substitutions. ## 2194## ------------------- ##" 2195 echo 2196 for ac_var in $ac_subst_files 2197 do 2198 eval ac_val=\$$ac_var 2199 case $ac_val in 2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2201 esac 2202 $as_echo "$ac_var='\''$ac_val'\''" 2203 done | sort 2204 echo 2205 fi 2206 2207 if test -s confdefs.h; then 2208 $as_echo "## ----------- ## 2209## confdefs.h. ## 2210## ----------- ##" 2211 echo 2212 cat confdefs.h 2213 echo 2214 fi 2215 test "$ac_signal" != 0 && 2216 $as_echo "$as_me: caught signal $ac_signal" 2217 $as_echo "$as_me: exit $exit_status" 2218 } >&5 2219 rm -f core *.core core.conftest.* && 2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2221 exit $exit_status 2222' 0 2223for ac_signal in 1 2 13 15; do 2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2225done 2226ac_signal=0 2227 2228# confdefs.h avoids OS command line length limits that DEFS can exceed. 2229rm -f -r conftest* confdefs.h 2230 2231$as_echo "/* confdefs.h */" > confdefs.h 2232 2233# Predefined preprocessor variables. 2234 2235cat >>confdefs.h <<_ACEOF 2236#define PACKAGE_NAME "$PACKAGE_NAME" 2237_ACEOF 2238 2239cat >>confdefs.h <<_ACEOF 2240#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2241_ACEOF 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE_VERSION "$PACKAGE_VERSION" 2245_ACEOF 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PACKAGE_STRING "$PACKAGE_STRING" 2249_ACEOF 2250 2251cat >>confdefs.h <<_ACEOF 2252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2253_ACEOF 2254 2255cat >>confdefs.h <<_ACEOF 2256#define PACKAGE_URL "$PACKAGE_URL" 2257_ACEOF 2258 2259 2260# Let the site file select an alternate cache file if it wants to. 2261# Prefer an explicitly selected file to automatically selected ones. 2262ac_site_file1=NONE 2263ac_site_file2=NONE 2264if test -n "$CONFIG_SITE"; then 2265 # We do not want a PATH search for config.site. 2266 case $CONFIG_SITE in #(( 2267 -*) ac_site_file1=./$CONFIG_SITE;; 2268 */*) ac_site_file1=$CONFIG_SITE;; 2269 *) ac_site_file1=./$CONFIG_SITE;; 2270 esac 2271elif test "x$prefix" != xNONE; then 2272 ac_site_file1=$prefix/share/config.site 2273 ac_site_file2=$prefix/etc/config.site 2274else 2275 ac_site_file1=$ac_default_prefix/share/config.site 2276 ac_site_file2=$ac_default_prefix/etc/config.site 2277fi 2278for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2279do 2280 test "x$ac_site_file" = xNONE && continue 2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2283$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2284 sed 's/^/| /' "$ac_site_file" >&5 2285 . "$ac_site_file" \ 2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2288as_fn_error $? "failed to load site script $ac_site_file 2289See \`config.log' for more details" "$LINENO" 5; } 2290 fi 2291done 2292 2293if test -r "$cache_file"; then 2294 # Some versions of bash will fail to source /dev/null (special files 2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2298$as_echo "$as_me: loading cache $cache_file" >&6;} 2299 case $cache_file in 2300 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2301 *) . "./$cache_file";; 2302 esac 2303 fi 2304else 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2306$as_echo "$as_me: creating cache $cache_file" >&6;} 2307 >$cache_file 2308fi 2309 2310# Check that the precious variables saved in the cache have kept the same 2311# value. 2312ac_cache_corrupted=false 2313for ac_var in $ac_precious_vars; do 2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2315 eval ac_new_set=\$ac_env_${ac_var}_set 2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2317 eval ac_new_val=\$ac_env_${ac_var}_value 2318 case $ac_old_set,$ac_new_set in 2319 set,) 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2321$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2322 ac_cache_corrupted=: ;; 2323 ,set) 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2325$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2326 ac_cache_corrupted=: ;; 2327 ,);; 2328 *) 2329 if test "x$ac_old_val" != "x$ac_new_val"; then 2330 # differences in whitespace do not lead to failure. 2331 ac_old_val_w=`echo x $ac_old_val` 2332 ac_new_val_w=`echo x $ac_new_val` 2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2335$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2336 ac_cache_corrupted=: 2337 else 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2339$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2340 eval $ac_var=\$ac_old_val 2341 fi 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2343$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2345$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2346 fi;; 2347 esac 2348 # Pass precious variables to config.status. 2349 if test "$ac_new_set" = set; then 2350 case $ac_new_val in 2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2352 *) ac_arg=$ac_var=$ac_new_val ;; 2353 esac 2354 case " $ac_configure_args " in 2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2357 esac 2358 fi 2359done 2360if $ac_cache_corrupted; then 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2364$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2365 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2366fi 2367## -------------------- ## 2368## Main body of script. ## 2369## -------------------- ## 2370 2371ac_ext=c 2372ac_cpp='$CPP $CPPFLAGS' 2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2375ac_compiler_gnu=$ac_cv_c_compiler_gnu 2376 2377 2378 2379 2380. $srcdir/regina.ver 2381VERSION_NODOT=\"$VER\" 2382VERSION=\"$VER_DOT\" 2383VERSION_UNQUOTED=$VER_DOT 2384VER_DATE=\"$VER_DATE\" 2385 2386 2387 2388 2389 2390 2391 2392 2393cp $srcdir/common/config.guess $srcdir 2394cp $srcdir/common/config.sub $srcdir 2395 2396 2397mh_sysv_incdir="" 2398mh_sysv_libdir="" 2399all_words="clang xlc gcc c99 c89 acc cc" 2400ac_dir="" 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for one of the following C compilers: $all_words" >&5 2402$as_echo_n "checking for one of the following C compilers: $all_words... " >&6; } 2403if ${ac_cv_prog_CC+:} false; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 2407if test -n "$CC"; then 2408 ac_cv_prog_CC="$CC" # Let the user override the test. 2409else 2410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2411 for mh_cc in $all_words; do 2412 for ac_dir in $PATH; do 2413 test -z "$ac_dir" && ac_dir=. 2414 if test -f $ac_dir/$mh_cc; then 2415 ac_cv_prog_CC="$mh_cc" 2416 if test "$ac_dir" = "/usr/5bin"; then 2417 mh_sysv_incdir="/usr/5include" 2418 mh_sysv_libdir="/usr/5lib" 2419 fi 2420 break 2 2421 fi 2422 done 2423 done 2424 IFS="$ac_save_ifs" 2425 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" 2426fi 2427CC="$ac_cv_prog_CC" 2428 2429fi 2430 2431 2432if test "$ac_dir" = ""; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ac_cv_prog_CC specified in CC env variable" >&5 2434$as_echo "using $ac_cv_prog_CC specified in CC env variable" >&6; } 2435else 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ac_dir/$ac_cv_prog_CC" >&5 2437$as_echo "using $ac_dir/$ac_cv_prog_CC" >&6; } 2438fi 2439 2440 2441ac_config_headers="$ac_config_headers config.h" 2442 2443ac_ext=c 2444ac_cpp='$CPP $CPPFLAGS' 2445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2447ac_compiler_gnu=$ac_cv_c_compiler_gnu 2448if test -n "$ac_tool_prefix"; then 2449 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2450set dummy ${ac_tool_prefix}gcc; ac_word=$2 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2452$as_echo_n "checking for $ac_word... " >&6; } 2453if ${ac_cv_prog_CC+:} false; then : 2454 $as_echo_n "(cached) " >&6 2455else 2456 if test -n "$CC"; then 2457 ac_cv_prog_CC="$CC" # Let the user override the test. 2458else 2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 for ac_exec_ext in '' $ac_executable_extensions; do 2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2466 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2468 break 2 2469 fi 2470done 2471 done 2472IFS=$as_save_IFS 2473 2474fi 2475fi 2476CC=$ac_cv_prog_CC 2477if test -n "$CC"; then 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2479$as_echo "$CC" >&6; } 2480else 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2482$as_echo "no" >&6; } 2483fi 2484 2485 2486fi 2487if test -z "$ac_cv_prog_CC"; then 2488 ac_ct_CC=$CC 2489 # Extract the first word of "gcc", so it can be a program name with args. 2490set dummy gcc; ac_word=$2 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2492$as_echo_n "checking for $ac_word... " >&6; } 2493if ${ac_cv_prog_ac_ct_CC+:} false; then : 2494 $as_echo_n "(cached) " >&6 2495else 2496 if test -n "$ac_ct_CC"; then 2497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2498else 2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2500for as_dir in $PATH 2501do 2502 IFS=$as_save_IFS 2503 test -z "$as_dir" && as_dir=. 2504 for ac_exec_ext in '' $ac_executable_extensions; do 2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2506 ac_cv_prog_ac_ct_CC="gcc" 2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2508 break 2 2509 fi 2510done 2511 done 2512IFS=$as_save_IFS 2513 2514fi 2515fi 2516ac_ct_CC=$ac_cv_prog_ac_ct_CC 2517if test -n "$ac_ct_CC"; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2519$as_echo "$ac_ct_CC" >&6; } 2520else 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2522$as_echo "no" >&6; } 2523fi 2524 2525 if test "x$ac_ct_CC" = x; then 2526 CC="" 2527 else 2528 case $cross_compiling:$ac_tool_warned in 2529yes:) 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2532ac_tool_warned=yes ;; 2533esac 2534 CC=$ac_ct_CC 2535 fi 2536else 2537 CC="$ac_cv_prog_CC" 2538fi 2539 2540if test -z "$CC"; then 2541 if test -n "$ac_tool_prefix"; then 2542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2543set dummy ${ac_tool_prefix}cc; ac_word=$2 2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2545$as_echo_n "checking for $ac_word... " >&6; } 2546if ${ac_cv_prog_CC+:} false; then : 2547 $as_echo_n "(cached) " >&6 2548else 2549 if test -n "$CC"; then 2550 ac_cv_prog_CC="$CC" # Let the user override the test. 2551else 2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2553for as_dir in $PATH 2554do 2555 IFS=$as_save_IFS 2556 test -z "$as_dir" && as_dir=. 2557 for ac_exec_ext in '' $ac_executable_extensions; do 2558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2559 ac_cv_prog_CC="${ac_tool_prefix}cc" 2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2561 break 2 2562 fi 2563done 2564 done 2565IFS=$as_save_IFS 2566 2567fi 2568fi 2569CC=$ac_cv_prog_CC 2570if test -n "$CC"; then 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2572$as_echo "$CC" >&6; } 2573else 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2575$as_echo "no" >&6; } 2576fi 2577 2578 2579 fi 2580fi 2581if test -z "$CC"; then 2582 # Extract the first word of "cc", so it can be a program name with args. 2583set dummy cc; ac_word=$2 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2585$as_echo_n "checking for $ac_word... " >&6; } 2586if ${ac_cv_prog_CC+:} false; then : 2587 $as_echo_n "(cached) " >&6 2588else 2589 if test -n "$CC"; then 2590 ac_cv_prog_CC="$CC" # Let the user override the test. 2591else 2592 ac_prog_rejected=no 2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2594for as_dir in $PATH 2595do 2596 IFS=$as_save_IFS 2597 test -z "$as_dir" && as_dir=. 2598 for ac_exec_ext in '' $ac_executable_extensions; do 2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2600 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2601 ac_prog_rejected=yes 2602 continue 2603 fi 2604 ac_cv_prog_CC="cc" 2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2606 break 2 2607 fi 2608done 2609 done 2610IFS=$as_save_IFS 2611 2612if test $ac_prog_rejected = yes; then 2613 # We found a bogon in the path, so make sure we never use it. 2614 set dummy $ac_cv_prog_CC 2615 shift 2616 if test $# != 0; then 2617 # We chose a different compiler from the bogus one. 2618 # However, it has the same basename, so the bogon will be chosen 2619 # first if we set CC to just the basename; use the full file name. 2620 shift 2621 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2622 fi 2623fi 2624fi 2625fi 2626CC=$ac_cv_prog_CC 2627if test -n "$CC"; then 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2629$as_echo "$CC" >&6; } 2630else 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2632$as_echo "no" >&6; } 2633fi 2634 2635 2636fi 2637if test -z "$CC"; then 2638 if test -n "$ac_tool_prefix"; then 2639 for ac_prog in cl.exe 2640 do 2641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2642set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2644$as_echo_n "checking for $ac_word... " >&6; } 2645if ${ac_cv_prog_CC+:} false; then : 2646 $as_echo_n "(cached) " >&6 2647else 2648 if test -n "$CC"; then 2649 ac_cv_prog_CC="$CC" # Let the user override the test. 2650else 2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2652for as_dir in $PATH 2653do 2654 IFS=$as_save_IFS 2655 test -z "$as_dir" && as_dir=. 2656 for ac_exec_ext in '' $ac_executable_extensions; do 2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2658 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2660 break 2 2661 fi 2662done 2663 done 2664IFS=$as_save_IFS 2665 2666fi 2667fi 2668CC=$ac_cv_prog_CC 2669if test -n "$CC"; then 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2671$as_echo "$CC" >&6; } 2672else 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2674$as_echo "no" >&6; } 2675fi 2676 2677 2678 test -n "$CC" && break 2679 done 2680fi 2681if test -z "$CC"; then 2682 ac_ct_CC=$CC 2683 for ac_prog in cl.exe 2684do 2685 # Extract the first word of "$ac_prog", so it can be a program name with args. 2686set dummy $ac_prog; ac_word=$2 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2688$as_echo_n "checking for $ac_word... " >&6; } 2689if ${ac_cv_prog_ac_ct_CC+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 if test -n "$ac_ct_CC"; then 2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2694else 2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696for as_dir in $PATH 2697do 2698 IFS=$as_save_IFS 2699 test -z "$as_dir" && as_dir=. 2700 for ac_exec_ext in '' $ac_executable_extensions; do 2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2702 ac_cv_prog_ac_ct_CC="$ac_prog" 2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2704 break 2 2705 fi 2706done 2707 done 2708IFS=$as_save_IFS 2709 2710fi 2711fi 2712ac_ct_CC=$ac_cv_prog_ac_ct_CC 2713if test -n "$ac_ct_CC"; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2715$as_echo "$ac_ct_CC" >&6; } 2716else 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2718$as_echo "no" >&6; } 2719fi 2720 2721 2722 test -n "$ac_ct_CC" && break 2723done 2724 2725 if test "x$ac_ct_CC" = x; then 2726 CC="" 2727 else 2728 case $cross_compiling:$ac_tool_warned in 2729yes:) 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2732ac_tool_warned=yes ;; 2733esac 2734 CC=$ac_ct_CC 2735 fi 2736fi 2737 2738fi 2739 2740 2741test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2743as_fn_error $? "no acceptable C compiler found in \$PATH 2744See \`config.log' for more details" "$LINENO" 5; } 2745 2746# Provide some information about the compiler. 2747$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2748set X $ac_compile 2749ac_compiler=$2 2750for ac_option in --version -v -V -qversion; do 2751 { { ac_try="$ac_compiler $ac_option >&5" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2757$as_echo "$ac_try_echo"; } >&5 2758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2759 ac_status=$? 2760 if test -s conftest.err; then 2761 sed '10a\ 2762... rest of stderr output deleted ... 2763 10q' conftest.err >conftest.er1 2764 cat conftest.er1 >&5 2765 fi 2766 rm -f conftest.er1 conftest.err 2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2768 test $ac_status = 0; } 2769done 2770 2771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2772/* end confdefs.h. */ 2773 2774int 2775main () 2776{ 2777 2778 ; 2779 return 0; 2780} 2781_ACEOF 2782ac_clean_files_save=$ac_clean_files 2783ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2784# Try to create an executable without -o first, disregard a.out. 2785# It will help us diagnose broken compilers, and finding out an intuition 2786# of exeext. 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2788$as_echo_n "checking whether the C compiler works... " >&6; } 2789ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2790 2791# The possible output files: 2792ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2793 2794ac_rmfiles= 2795for ac_file in $ac_files 2796do 2797 case $ac_file in 2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2800 esac 2801done 2802rm -f $ac_rmfiles 2803 2804if { { ac_try="$ac_link_default" 2805case "(($ac_try" in 2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807 *) ac_try_echo=$ac_try;; 2808esac 2809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2810$as_echo "$ac_try_echo"; } >&5 2811 (eval "$ac_link_default") 2>&5 2812 ac_status=$? 2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2814 test $ac_status = 0; }; then : 2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2817# in a Makefile. We should not override ac_cv_exeext if it was cached, 2818# so that the user can short-circuit this test for compilers unknown to 2819# Autoconf. 2820for ac_file in $ac_files '' 2821do 2822 test -f "$ac_file" || continue 2823 case $ac_file in 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2825 ;; 2826 [ab].out ) 2827 # We found the default executable, but exeext='' is most 2828 # certainly right. 2829 break;; 2830 *.* ) 2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2832 then :; else 2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2834 fi 2835 # We set ac_cv_exeext here because the later test for it is not 2836 # safe: cross compilers may not add the suffix if given an `-o' 2837 # argument, so we may need to know it at that point already. 2838 # Even if this section looks crufty: it has the advantage of 2839 # actually working. 2840 break;; 2841 * ) 2842 break;; 2843 esac 2844done 2845test "$ac_cv_exeext" = no && ac_cv_exeext= 2846 2847else 2848 ac_file='' 2849fi 2850if test -z "$ac_file"; then : 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852$as_echo "no" >&6; } 2853$as_echo "$as_me: failed program was:" >&5 2854sed 's/^/| /' conftest.$ac_ext >&5 2855 2856{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2858as_fn_error 77 "C compiler cannot create executables 2859See \`config.log' for more details" "$LINENO" 5; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2862$as_echo "yes" >&6; } 2863fi 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2865$as_echo_n "checking for C compiler default output file name... " >&6; } 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2867$as_echo "$ac_file" >&6; } 2868ac_exeext=$ac_cv_exeext 2869 2870rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2871ac_clean_files=$ac_clean_files_save 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2873$as_echo_n "checking for suffix of executables... " >&6; } 2874if { { ac_try="$ac_link" 2875case "(($ac_try" in 2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2877 *) ac_try_echo=$ac_try;; 2878esac 2879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2880$as_echo "$ac_try_echo"; } >&5 2881 (eval "$ac_link") 2>&5 2882 ac_status=$? 2883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2884 test $ac_status = 0; }; then : 2885 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2887# work properly (i.e., refer to `conftest.exe'), while it won't with 2888# `rm'. 2889for ac_file in conftest.exe conftest conftest.*; do 2890 test -f "$ac_file" || continue 2891 case $ac_file in 2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2894 break;; 2895 * ) break;; 2896 esac 2897done 2898else 2899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2901as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2902See \`config.log' for more details" "$LINENO" 5; } 2903fi 2904rm -f conftest conftest$ac_cv_exeext 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2906$as_echo "$ac_cv_exeext" >&6; } 2907 2908rm -f conftest.$ac_ext 2909EXEEXT=$ac_cv_exeext 2910ac_exeext=$EXEEXT 2911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2912/* end confdefs.h. */ 2913#include <stdio.h> 2914int 2915main () 2916{ 2917FILE *f = fopen ("conftest.out", "w"); 2918 return ferror (f) || fclose (f) != 0; 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924ac_clean_files="$ac_clean_files conftest.out" 2925# Check that the compiler produces executables we can run. If not, either 2926# the compiler is broken, or we cross compile. 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2928$as_echo_n "checking whether we are cross compiling... " >&6; } 2929if test "$cross_compiling" != yes; then 2930 { { ac_try="$ac_link" 2931case "(($ac_try" in 2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2933 *) ac_try_echo=$ac_try;; 2934esac 2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2936$as_echo "$ac_try_echo"; } >&5 2937 (eval "$ac_link") 2>&5 2938 ac_status=$? 2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2940 test $ac_status = 0; } 2941 if { ac_try='./conftest$ac_cv_exeext' 2942 { { case "(($ac_try" in 2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2944 *) ac_try_echo=$ac_try;; 2945esac 2946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2947$as_echo "$ac_try_echo"; } >&5 2948 (eval "$ac_try") 2>&5 2949 ac_status=$? 2950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2951 test $ac_status = 0; }; }; then 2952 cross_compiling=no 2953 else 2954 if test "$cross_compiling" = maybe; then 2955 cross_compiling=yes 2956 else 2957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2959as_fn_error $? "cannot run C compiled programs. 2960If you meant to cross compile, use \`--host'. 2961See \`config.log' for more details" "$LINENO" 5; } 2962 fi 2963 fi 2964fi 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2966$as_echo "$cross_compiling" >&6; } 2967 2968rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2969ac_clean_files=$ac_clean_files_save 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2971$as_echo_n "checking for suffix of object files... " >&6; } 2972if ${ac_cv_objext+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2976/* end confdefs.h. */ 2977 2978int 2979main () 2980{ 2981 2982 ; 2983 return 0; 2984} 2985_ACEOF 2986rm -f conftest.o conftest.obj 2987if { { ac_try="$ac_compile" 2988case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2993$as_echo "$ac_try_echo"; } >&5 2994 (eval "$ac_compile") 2>&5 2995 ac_status=$? 2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2997 test $ac_status = 0; }; then : 2998 for ac_file in conftest.o conftest.obj conftest.*; do 2999 test -f "$ac_file" || continue; 3000 case $ac_file in 3001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3003 break;; 3004 esac 3005done 3006else 3007 $as_echo "$as_me: failed program was:" >&5 3008sed 's/^/| /' conftest.$ac_ext >&5 3009 3010{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3012as_fn_error $? "cannot compute suffix of object files: cannot compile 3013See \`config.log' for more details" "$LINENO" 5; } 3014fi 3015rm -f conftest.$ac_cv_objext conftest.$ac_ext 3016fi 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3018$as_echo "$ac_cv_objext" >&6; } 3019OBJEXT=$ac_cv_objext 3020ac_objext=$OBJEXT 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3022$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3023if ${ac_cv_c_compiler_gnu+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3027/* end confdefs.h. */ 3028 3029int 3030main () 3031{ 3032#ifndef __GNUC__ 3033 choke me 3034#endif 3035 3036 ; 3037 return 0; 3038} 3039_ACEOF 3040if ac_fn_c_try_compile "$LINENO"; then : 3041 ac_compiler_gnu=yes 3042else 3043 ac_compiler_gnu=no 3044fi 3045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3046ac_cv_c_compiler_gnu=$ac_compiler_gnu 3047 3048fi 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3050$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3051if test $ac_compiler_gnu = yes; then 3052 GCC=yes 3053else 3054 GCC= 3055fi 3056ac_test_CFLAGS=${CFLAGS+set} 3057ac_save_CFLAGS=$CFLAGS 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3059$as_echo_n "checking whether $CC accepts -g... " >&6; } 3060if ${ac_cv_prog_cc_g+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 ac_save_c_werror_flag=$ac_c_werror_flag 3064 ac_c_werror_flag=yes 3065 ac_cv_prog_cc_g=no 3066 CFLAGS="-g" 3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3068/* end confdefs.h. */ 3069 3070int 3071main () 3072{ 3073 3074 ; 3075 return 0; 3076} 3077_ACEOF 3078if ac_fn_c_try_compile "$LINENO"; then : 3079 ac_cv_prog_cc_g=yes 3080else 3081 CFLAGS="" 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3083/* end confdefs.h. */ 3084 3085int 3086main () 3087{ 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093if ac_fn_c_try_compile "$LINENO"; then : 3094 3095else 3096 ac_c_werror_flag=$ac_save_c_werror_flag 3097 CFLAGS="-g" 3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3099/* end confdefs.h. */ 3100 3101int 3102main () 3103{ 3104 3105 ; 3106 return 0; 3107} 3108_ACEOF 3109if ac_fn_c_try_compile "$LINENO"; then : 3110 ac_cv_prog_cc_g=yes 3111fi 3112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3113fi 3114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3115fi 3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3117 ac_c_werror_flag=$ac_save_c_werror_flag 3118fi 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3120$as_echo "$ac_cv_prog_cc_g" >&6; } 3121if test "$ac_test_CFLAGS" = set; then 3122 CFLAGS=$ac_save_CFLAGS 3123elif test $ac_cv_prog_cc_g = yes; then 3124 if test "$GCC" = yes; then 3125 CFLAGS="-g -O2" 3126 else 3127 CFLAGS="-g" 3128 fi 3129else 3130 if test "$GCC" = yes; then 3131 CFLAGS="-O2" 3132 else 3133 CFLAGS= 3134 fi 3135fi 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3137$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3138if ${ac_cv_prog_cc_c89+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 ac_cv_prog_cc_c89=no 3142ac_save_CC=$CC 3143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3144/* end confdefs.h. */ 3145#include <stdarg.h> 3146#include <stdio.h> 3147struct stat; 3148/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3149struct buf { int x; }; 3150FILE * (*rcsopen) (struct buf *, struct stat *, int); 3151static char *e (p, i) 3152 char **p; 3153 int i; 3154{ 3155 return p[i]; 3156} 3157static char *f (char * (*g) (char **, int), char **p, ...) 3158{ 3159 char *s; 3160 va_list v; 3161 va_start (v,p); 3162 s = g (p, va_arg (v,int)); 3163 va_end (v); 3164 return s; 3165} 3166 3167/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3168 function prototypes and stuff, but not '\xHH' hex character constants. 3169 These don't provoke an error unfortunately, instead are silently treated 3170 as 'x'. The following induces an error, until -std is added to get 3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3172 array size at least. It's necessary to write '\x00'==0 to get something 3173 that's true only with -std. */ 3174int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3175 3176/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3177 inside strings and character constants. */ 3178#define FOO(x) 'x' 3179int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3180 3181int test (int i, double x); 3182struct s1 {int (*f) (int a);}; 3183struct s2 {int (*f) (double a);}; 3184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3185int argc; 3186char **argv; 3187int 3188main () 3189{ 3190return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3191 ; 3192 return 0; 3193} 3194_ACEOF 3195for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3197do 3198 CC="$ac_save_CC $ac_arg" 3199 if ac_fn_c_try_compile "$LINENO"; then : 3200 ac_cv_prog_cc_c89=$ac_arg 3201fi 3202rm -f core conftest.err conftest.$ac_objext 3203 test "x$ac_cv_prog_cc_c89" != "xno" && break 3204done 3205rm -f conftest.$ac_ext 3206CC=$ac_save_CC 3207 3208fi 3209# AC_CACHE_VAL 3210case "x$ac_cv_prog_cc_c89" in 3211 x) 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3213$as_echo "none needed" >&6; } ;; 3214 xno) 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3216$as_echo "unsupported" >&6; } ;; 3217 *) 3218 CC="$CC $ac_cv_prog_cc_c89" 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3220$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3221esac 3222if test "x$ac_cv_prog_cc_c89" != xno; then : 3223 3224fi 3225 3226ac_ext=c 3227ac_cpp='$CPP $CPPFLAGS' 3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3230ac_compiler_gnu=$ac_cv_c_compiler_gnu 3231 3232 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3234$as_echo_n "checking for library containing strerror... " >&6; } 3235if ${ac_cv_search_strerror+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 ac_func_search_save_LIBS=$LIBS 3239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3240/* end confdefs.h. */ 3241 3242/* Override any GCC internal prototype to avoid an error. 3243 Use char because int might match the return type of a GCC 3244 builtin and then its argument prototype would still apply. */ 3245#ifdef __cplusplus 3246extern "C" 3247#endif 3248char strerror (); 3249int 3250main () 3251{ 3252return strerror (); 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257for ac_lib in '' cposix; do 3258 if test -z "$ac_lib"; then 3259 ac_res="none required" 3260 else 3261 ac_res=-l$ac_lib 3262 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3263 fi 3264 if ac_fn_c_try_link "$LINENO"; then : 3265 ac_cv_search_strerror=$ac_res 3266fi 3267rm -f core conftest.err conftest.$ac_objext \ 3268 conftest$ac_exeext 3269 if ${ac_cv_search_strerror+:} false; then : 3270 break 3271fi 3272done 3273if ${ac_cv_search_strerror+:} false; then : 3274 3275else 3276 ac_cv_search_strerror=no 3277fi 3278rm conftest.$ac_ext 3279LIBS=$ac_func_search_save_LIBS 3280fi 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3282$as_echo "$ac_cv_search_strerror" >&6; } 3283ac_res=$ac_cv_search_strerror 3284if test "$ac_res" != no; then : 3285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3286 3287fi 3288 3289 3290ac_aux_dir= 3291for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3292 if test -f "$ac_dir/install-sh"; then 3293 ac_aux_dir=$ac_dir 3294 ac_install_sh="$ac_aux_dir/install-sh -c" 3295 break 3296 elif test -f "$ac_dir/install.sh"; then 3297 ac_aux_dir=$ac_dir 3298 ac_install_sh="$ac_aux_dir/install.sh -c" 3299 break 3300 elif test -f "$ac_dir/shtool"; then 3301 ac_aux_dir=$ac_dir 3302 ac_install_sh="$ac_aux_dir/shtool install -c" 3303 break 3304 fi 3305done 3306if test -z "$ac_aux_dir"; then 3307 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3308fi 3309 3310# These three variables are undocumented and unsupported, 3311# and are intended to be withdrawn in a future Autoconf release. 3312# They can cause serious problems if a builder's source tree is in a directory 3313# whose full name contains unusual characters. 3314ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3315ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3316ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3317 3318 3319# Make sure we can run config.sub. 3320$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3321 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3322 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3324$as_echo_n "checking build system type... " >&6; } 3325if ${ac_cv_build+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 ac_build_alias=$build_alias 3329test "x$ac_build_alias" = x && 3330 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3331test "x$ac_build_alias" = x && 3332 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3333ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3334 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3335 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3338$as_echo "$ac_cv_build" >&6; } 3339case $ac_cv_build in 3340*-*-*) ;; 3341*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3342esac 3343build=$ac_cv_build 3344ac_save_IFS=$IFS; IFS='-' 3345set x $ac_cv_build 3346shift 3347build_cpu=$1 3348build_vendor=$2 3349shift; shift 3350# Remember, the first character of IFS is used to create $*, 3351# except with old shells: 3352build_os=$* 3353IFS=$ac_save_IFS 3354case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3355 3356 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3358$as_echo_n "checking host system type... " >&6; } 3359if ${ac_cv_host+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 if test "x$host_alias" = x; then 3363 ac_cv_host=$ac_cv_build 3364else 3365 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3366 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3367fi 3368 3369fi 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3371$as_echo "$ac_cv_host" >&6; } 3372case $ac_cv_host in 3373*-*-*) ;; 3374*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3375esac 3376host=$ac_cv_host 3377ac_save_IFS=$IFS; IFS='-' 3378set x $ac_cv_host 3379shift 3380host_cpu=$1 3381host_vendor=$2 3382shift; shift 3383# Remember, the first character of IFS is used to create $*, 3384# except with old shells: 3385host_os=$* 3386IFS=$ac_save_IFS 3387case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3388 3389 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3391$as_echo_n "checking target system type... " >&6; } 3392if ${ac_cv_target+:} false; then : 3393 $as_echo_n "(cached) " >&6 3394else 3395 if test "x$target_alias" = x; then 3396 ac_cv_target=$ac_cv_host 3397else 3398 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3400fi 3401 3402fi 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3404$as_echo "$ac_cv_target" >&6; } 3405case $ac_cv_target in 3406*-*-*) ;; 3407*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3408esac 3409target=$ac_cv_target 3410ac_save_IFS=$IFS; IFS='-' 3411set x $ac_cv_target 3412shift 3413target_cpu=$1 3414target_vendor=$2 3415shift; shift 3416# Remember, the first character of IFS is used to create $*, 3417# except with old shells: 3418target_os=$* 3419IFS=$ac_save_IFS 3420case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3421 3422 3423# The aliases save the names the user supplied, while $host etc. 3424# will get canonicalized. 3425test -n "$target_alias" && 3426 test "$program_prefix$program_suffix$program_transform_name" = \ 3427 NONENONEs,x,x, && 3428 program_prefix=${target_alias}- 3429 3430 3431 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ANSI prototypes" >&5 3433$as_echo_n "checking if compiler supports ANSI prototypes... " >&6; } 3434ac_compile='$ac_cv_prog_CC conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5' 3435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437#include <stdio.h> 3438int 3439main () 3440{ 3441extern int xxx(int, char *); 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446if ac_fn_c_try_compile "$LINENO"; then : 3447 mh_have_proto=yes; $as_echo "#define HAVE_PROTO 1" >>confdefs.h 3448 3449else 3450 mh_have_proto=no 3451fi 3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_have_proto" >&5 3454$as_echo "$mh_have_proto" >&6; } 3455 3456if test "$mh_have_proto" = "no"; then 3457 as_fn_error $? "Regina requires an ANSI compiler; cannot continue" "$LINENO" 5 3458fi 3459 3460 3461 3462# Check whether --enable-32bit was given. 3463if test "${enable_32bit+set}" = set; then : 3464 enableval=$enable_32bit; bitflag32=yes 3465else 3466 bitflag32=no 3467fi 3468 3469# Check whether --enable-64bit was given. 3470if test "${enable_64bit+set}" = set; then : 3471 enableval=$enable_64bit; bitflag64=yes 3472else 3473 bitflag64=no 3474fi 3475 3476 3477# 3478# Now do platform specific tests 3479# 3480gcc_64bit="-m64" 3481gcc_32bit="-m32" 3482on_osx="no" 3483osis64bit=no 3484bitflag="" 3485case "$target" in 3486 *hp-hpux*) 3487 ;; 3488 *ibm-aix*) 3489 rc=`lsconf -k | grep -c 64-bit` 3490 if test $rc -eq 1; then 3491 bitflag="64" 3492 osis64bit=yes 3493 fi 3494 # 3495 # AIX gcc has its own special bit switches :-( 3496 # 3497 gcc_64bit="-maix64" 3498 gcc_32bit="-maix32" 3499 ;; 3500 *dec-osf4*) 3501 ;; 3502 *dec-osf*) 3503 ;; 3504 *sequent-dynix*) 3505 ;; 3506 i*86*solaris*) 3507 ;; 3508 *solaris*) 3509 rc=`isainfo -v | grep -c 64-bit` 3510 if test $rc -eq 1; then 3511 bitflag="64" 3512 osis64bit=yes 3513 fi 3514 ;; 3515 sparc*sunos*) 3516 ;; 3517 *linux* | *kfreebsd*-gnu*) 3518 mach="`uname -m`" 3519 if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "alpha" -o "$mach" = "ppc64" -o "$mach" = "s390x"; then 3520 bitflag="64" 3521 osis64bit=yes 3522 fi 3523 ;; 3524 *-dragonfly*) 3525 mach="`uname -m`" 3526 if test "$mach" = "x86_64"; then 3527 bitflag="64" 3528 osis64bit=yes 3529 fi 3530 ;; 3531 *-freebsd* | *-openbsd*) 3532 mach="`uname -p`" 3533 if test "${mach%64}" = "$mach"; then 3534 bitflag="32" 3535 else 3536 bitflag="64" 3537 osis64bit=yes 3538 fi 3539 ;; 3540 *nto-qnx*) 3541 ;; 3542 *qnx*) 3543 ;; 3544 *beos*) 3545 ;; 3546 *cygwin*) 3547 mach="`uname -m`" 3548 if test "$mach" = "x86_64"; then 3549 bitflag="64" 3550 osis64bit=yes 3551 fi 3552 ;; 3553 *apple-darwin*) 3554 on_osx="yes" 3555 osx_64bit=`sysctl hw.cpu64bit_capable | cut -f2 -d' '` 3556 if test $osx_64bit -eq 1; then 3557 bitflag="64" 3558 osis64bit=yes 3559 fi 3560 ;; 3561esac 3562 3563if test "x$bitflag32" = "xyes" -a "x$bitflag64" = "xyes"; then 3564 as_fn_error $? "--enable-32bit and --enable-64bit flags cannot both be specified." "$LINENO" 5 3565fi 3566 3567if test "x$bitflag64" = "xyes" -a "$osis64bit" = "no"; then 3568 as_fn_error $? "--enable-64bit cannot be specified on non-64bit OS." "$LINENO" 5 3569fi 3570 3571binarybitprefix="" 3572if test "x$bitflag32" = "xyes"; then 3573 bitflag="32" 3574 if test "$osis64bit" = "yes"; then 3575 binarybitprefix="32" 3576 fi 3577elif test "x$bitflag64" = "xyes"; then 3578 bitflag="64" 3579fi 3580MACH_ARCH=`$ac_config_guess | cut -f1 -d-` 3581 3582 3583 3584if test "$on_osx" = "yes"; then 3585 3586valid_arch_flags="" 3587found_arch_flags="" 3588 3589# Check whether --with-arch was given. 3590if test "${with_arch+set}" = set; then : 3591 withval=$with_arch; with_arch=$withval 3592else 3593 with_arch=none 3594fi 3595 3596case "$with_arch" in 3597 none) 3598 arch_flags="" 3599 ;; 3600 all) 3601 arch_flags="-arch ppc -arch ppc64 -arch x86_64 -arch i386" 3602 ;; 3603 32bit) 3604 arch_flags="-arch ppc -arch i386" 3605 ;; 3606 64bit) 3607 arch_flags="-arch ppc64 -arch x86_64" 3608 ;; 3609 intel) 3610 arch_flags="-arch i386 -arch x86_64" 3611 ;; 3612 *) 3613 arch_flags="-arch $with_arch" 3614 ;; 3615esac 3616 3617valid_arch_flags="" 3618found_arch_flags="" 3619if test $on_osx = "yes"; then 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which Mac OSX -arch flags are supported for universal binaries" >&5 3621$as_echo_n "checking for which Mac OSX -arch flags are supported for universal binaries... " >&6; } 3622 for a in $arch_flags; do 3623 save_ldflags="$LDFLAGS" 3624 LDFLAGS="$LDFLAGS -arch $a" 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627#include <stdio.h> 3628int 3629main () 3630{ 3631exit(0) 3632 ; 3633 return 0; 3634} 3635_ACEOF 3636if ac_fn_c_try_link "$LINENO"; then : 3637 valid_arch_flags="$valid_arch_flags -arch $a";found_arch_flags="$found_arch_flags $a" 3638else 3639 a="$a" 3640 3641fi 3642rm -f core conftest.err conftest.$ac_objext \ 3643 conftest$ac_exeext conftest.$ac_ext 3644 LDFLAGS="$save_ldflags" 3645 done 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_arch_flags" >&5 3647$as_echo "$found_arch_flags" >&6; } 3648 3649fi 3650 3651else 3652 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 3653 if test "$bitflag" = "32"; then 3654 CFLAGS="${CFLAGS} $gcc_32bit" 3655 LDFLAGS="${LDFLAGS} $gcc_32bit" 3656 elif test "$bitflag" = "64"; then 3657 CFLAGS="${CFLAGS} $gcc_64bit" 3658 LDFLAGS="${LDFLAGS} $gcc_64bit" 3659 else 3660 bitflag="32" 3661 fi 3662 elif test "$ac_cv_prog_CC" = "xlc" -o "$ac_cv_prog_CC" = "xlC"; then 3663 if test "$bitflag" = "32"; then 3664 CFLAGS="${CFLAGS} -q32" 3665 LDFLAGS="${LDFLAGS} -q32" 3666 elif test "$bitflag" = "64"; then 3667 CFLAGS="${CFLAGS} -q64" 3668 LDFLAGS="${LDFLAGS} -q64" 3669 else 3670 bitflag="32" 3671 fi 3672 fi 3673fi 3674 3675#libdir_change=yes 3676# Check whether --enable-libdir-change was given. 3677if test "${enable_libdir_change+set}" = set; then : 3678 enableval=$enable_libdir_change; libdir_change=$enableval 3679else 3680 libdir_change=yes 3681fi 3682 3683if test "$libdir_change" = yes; then 3684 if test "${libdir}" = '${exec_prefix}/lib'; then 3685 myprefix=$prefix 3686 3687 prefix_NONE= 3688 exec_prefix_NONE= 3689 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 3690 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 3691 eval ac_define_dir="\""$myprefix"\"" 3692 eval ac_define_dir="\"$ac_define_dir\"" 3693 MY_PREFIX="$ac_define_dir" 3694 3695 cat >>confdefs.h <<_ACEOF 3696#define MY_PREFIX "$ac_define_dir" 3697_ACEOF 3698 3699 test "$prefix_NONE" && prefix=NONE 3700 test "$exec_prefix_NONE" && exec_prefix=NONE 3701 3702 if test "${myprefix}" = "NONE"; then 3703 myprefix="$ac_default_prefix" 3704 fi 3705 if test -d "${myprefix}/lib/x86_64-linux-gnu"; then 3706 libdir64="${myprefix}/lib/x86_64-linux-gnu" 3707 elif test -d "${myprefix}/lib64"; then 3708 libdir64="${myprefix}/lib64" 3709 else 3710 libdir64="${myprefix}/lib" 3711 fi 3712 if test -d "${myprefix}/lib/i386-linux-gnu"; then 3713 libdir32="${myprefix}/lib/i386-linux-gnu" 3714 elif test -d "${myprefix}/lib32"; then 3715 libdir32="${myprefix}/lib32" 3716 else 3717 libdir32="${myprefix}/lib" 3718 fi 3719 if test "$bitflag" = "64"; then 3720 libdir="$libdir64" 3721 else 3722 libdir="$libdir32" 3723 fi 3724 else 3725 libdir64="$libdir" 3726 libdir32="$libdir" 3727 fi 3728else 3729 libdir64="$libdir" 3730 libdir32="$libdir" 3731fi 3732 3733 3734 3735 3736 3737mymakefile="Makefile" 3738on_qnx4=no 3739on_beos=no 3740gci_available=no 3741GCI_CONVERT_HEADER="gci_convert.unsupported" 3742case "$target" in 3743 *hp-hpux*) 3744 SYS_DEFS="-D_HPUX_SOURCE" 3745 ;; 3746 *ibm-aix*) 3747 SYS_DEFS="-D_ALL_SOURCE" 3748# mymakefile="Makefile.aix" 3749 ;; 3750 *apple-darwin*) 3751 SYS_DEFS="$valid_arch_flags" 3752 EEXTRA="$valid_arch_flags" 3753 ;; 3754 *dec-osf*) 3755 ;; 3756 *sequent-dynix*) 3757 ;; 3758 i*86*solaris*) 3759 GCI_CONVERT_HEADER="gci_convert.solaris.i86" 3760 gci_available=yes 3761 ;; 3762 *solaris*) 3763 GCI_CONVERT_HEADER="gci_convert.solaris.sparc" 3764 gci_available=yes 3765 ;; 3766 sparc*sunos*) 3767 ;; 3768 i*86-*linux*|*-k*bsd-gnu*|*-gnu*) 3769 GCI_CONVERT_HEADER="gci_convert.linux.i86" 3770 gci_available=yes 3771 ;; 3772 *86_64-*linux*|*-k*bsd-gnu*|*-gnu*) 3773 GCI_CONVERT_HEADER="gci_convert.linux.86_64" 3774 gci_available=yes 3775 ;; 3776 alpha*-*linux*) 3777 GCI_CONVERT_HEADER="gci_convert.linux.alpha" 3778 gci_available=yes 3779 ;; 3780 powerpc64-*linux*) 3781 GCI_CONVERT_HEADER="gci_convert.linux.powerpc64" 3782 gci_available=yes 3783 ;; 3784 *cygwin*) 3785 GCI_CONVERT_HEADER="gci_convert.cygwin.i86" 3786 gci_available=yes 3787 ;; 3788 *apple-darwin*) 3789 GCI_CONVERT_HEADER="gci_convert.macX.all" 3790 gci_available=yes 3791 ;; 3792 *nto-qnx*) 3793 ;; 3794 *qnx*) 3795 on_qnx4=yes 3796 SYS_DEFS="-Q" 3797 ;; 3798 *beos*) 3799 on_beos=yes 3800 ;; 3801 *minix*) 3802 SYS_DEFS="-D__MINIX__" 3803 ;; 3804esac 3805 3806 3807 3808 3809#MH_EXTRA_LIBS="" 3810#MH_CHECK_LIB(dld dl) 3811#SHLIBS="${MH_EXTRA_LIBS}" 3812 3813#MH_EXTRA_LIBS="" 3814#MH_CHECK_LIB(m nsl nsl_s socket net network) 3815 3816mh_save_libs="$LIBS" 3817 3818if test "$on_qnx4" = no; then 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5 3820$as_echo_n "checking for main in -lcrypt... " >&6; } 3821if ${ac_cv_lib_crypt_main+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 ac_check_lib_save_LIBS=$LIBS 3825LIBS="-lcrypt $LIBS" 3826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829 3830int 3831main () 3832{ 3833return main (); 3834 ; 3835 return 0; 3836} 3837_ACEOF 3838if ac_fn_c_try_link "$LINENO"; then : 3839 ac_cv_lib_crypt_main=yes 3840else 3841 ac_cv_lib_crypt_main=no 3842fi 3843rm -f core conftest.err conftest.$ac_objext \ 3844 conftest$ac_exeext conftest.$ac_ext 3845LIBS=$ac_check_lib_save_LIBS 3846fi 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5 3848$as_echo "$ac_cv_lib_crypt_main" >&6; } 3849if test "x$ac_cv_lib_crypt_main" = xyes; then : 3850 mh_crypt_found=yes 3851else 3852 mh_crypt_found=no 3853fi 3854 3855 if test "$mh_crypt_found" = yes; then 3856 LIBS="${LIBS} -lcrypt" 3857 fi 3858fi 3859 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt function" >&5 3861$as_echo_n "checking for crypt function... " >&6; } 3862 3863if ${mh_cv_func_crypt+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865else 3866 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#include <unistd.h> 3870int 3871main () 3872{ 3873crypt("fred","aa") 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878if ac_fn_c_try_link "$LINENO"; then : 3879 mh_cv_func_crypt=yes 3880else 3881 mh_cv_func_crypt=no 3882 3883fi 3884rm -f core conftest.err conftest.$ac_objext \ 3885 conftest$ac_exeext conftest.$ac_ext 3886 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_func_crypt" >&5 3889$as_echo "$mh_cv_func_crypt" >&6; } 3890STATIC_BINARY_LIBS="" 3891if test "$mh_cv_func_crypt" = yes ; then 3892 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h 3893 3894 if test "$mh_crypt_found" = yes; then 3895 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -lcrypt" 3896 STATIC_BINARY_LIBS="-lcrypt" 3897 fi 3898fi 3899 3900LIBS="$mh_save_libs" 3901 3902 3903if test "$on_qnx4" = "no"; then 3904 for ac_prog in flex lex 3905do 3906 # Extract the first word of "$ac_prog", so it can be a program name with args. 3907set dummy $ac_prog; ac_word=$2 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3909$as_echo_n "checking for $ac_word... " >&6; } 3910if ${ac_cv_prog_LEX+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 if test -n "$LEX"; then 3914 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3915else 3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3917for as_dir in $PATH 3918do 3919 IFS=$as_save_IFS 3920 test -z "$as_dir" && as_dir=. 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3923 ac_cv_prog_LEX="$ac_prog" 3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3925 break 2 3926 fi 3927done 3928 done 3929IFS=$as_save_IFS 3930 3931fi 3932fi 3933LEX=$ac_cv_prog_LEX 3934if test -n "$LEX"; then 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 3936$as_echo "$LEX" >&6; } 3937else 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3939$as_echo "no" >&6; } 3940fi 3941 3942 3943 test -n "$LEX" && break 3944done 3945test -n "$LEX" || LEX=":" 3946 3947if test "x$LEX" != "x:"; then 3948 cat >conftest.l <<_ACEOF 3949%% 3950a { ECHO; } 3951b { REJECT; } 3952c { yymore (); } 3953d { yyless (1); } 3954e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 3955 yyless ((input () != 0)); } 3956f { unput (yytext[0]); } 3957. { BEGIN INITIAL; } 3958%% 3959#ifdef YYTEXT_POINTER 3960extern char *yytext; 3961#endif 3962int 3963main (void) 3964{ 3965 return ! yylex () + ! yywrap (); 3966} 3967_ACEOF 3968{ { ac_try="$LEX conftest.l" 3969case "(($ac_try" in 3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3971 *) ac_try_echo=$ac_try;; 3972esac 3973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3974$as_echo "$ac_try_echo"; } >&5 3975 (eval "$LEX conftest.l") 2>&5 3976 ac_status=$? 3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3978 test $ac_status = 0; } 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 3980$as_echo_n "checking lex output file root... " >&6; } 3981if ${ac_cv_prog_lex_root+:} false; then : 3982 $as_echo_n "(cached) " >&6 3983else 3984 3985if test -f lex.yy.c; then 3986 ac_cv_prog_lex_root=lex.yy 3987elif test -f lexyy.c; then 3988 ac_cv_prog_lex_root=lexyy 3989else 3990 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 3991fi 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 3994$as_echo "$ac_cv_prog_lex_root" >&6; } 3995LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3996 3997if test -z "${LEXLIB+set}"; then 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 3999$as_echo_n "checking lex library... " >&6; } 4000if ${ac_cv_lib_lex+:} false; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 4004 ac_save_LIBS=$LIBS 4005 ac_cv_lib_lex='none needed' 4006 for ac_lib in '' -lfl -ll; do 4007 LIBS="$ac_lib $ac_save_LIBS" 4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009/* end confdefs.h. */ 4010`cat $LEX_OUTPUT_ROOT.c` 4011_ACEOF 4012if ac_fn_c_try_link "$LINENO"; then : 4013 ac_cv_lib_lex=$ac_lib 4014fi 4015rm -f core conftest.err conftest.$ac_objext \ 4016 conftest$ac_exeext conftest.$ac_ext 4017 test "$ac_cv_lib_lex" != 'none needed' && break 4018 done 4019 LIBS=$ac_save_LIBS 4020 4021fi 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4023$as_echo "$ac_cv_lib_lex" >&6; } 4024 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4025fi 4026 4027 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4029$as_echo_n "checking whether yytext is a pointer... " >&6; } 4030if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4031 $as_echo_n "(cached) " >&6 4032else 4033 # POSIX says lex can declare yytext either as a pointer or an array; the 4034# default is implementation-dependent. Figure out which it is, since 4035# not all implementations provide the %pointer and %array declarations. 4036ac_cv_prog_lex_yytext_pointer=no 4037ac_save_LIBS=$LIBS 4038LIBS="$LEXLIB $ac_save_LIBS" 4039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041 4042 #define YYTEXT_POINTER 1 4043`cat $LEX_OUTPUT_ROOT.c` 4044_ACEOF 4045if ac_fn_c_try_link "$LINENO"; then : 4046 ac_cv_prog_lex_yytext_pointer=yes 4047fi 4048rm -f core conftest.err conftest.$ac_objext \ 4049 conftest$ac_exeext conftest.$ac_ext 4050LIBS=$ac_save_LIBS 4051 4052fi 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4054$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4055if test $ac_cv_prog_lex_yytext_pointer = yes; then 4056 4057$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4058 4059fi 4060rm -f conftest.l $LEX_OUTPUT_ROOT.c 4061 4062fi 4063fi 4064#BOTHLIBS="${LEXLIB} ${MH_EXTRA_LIBS}" 4065 4066if test -n "$ac_tool_prefix"; then 4067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4068set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070$as_echo_n "checking for $ac_word... " >&6; } 4071if ${ac_cv_prog_RANLIB+:} false; then : 4072 $as_echo_n "(cached) " >&6 4073else 4074 if test -n "$RANLIB"; then 4075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4076else 4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4078for as_dir in $PATH 4079do 4080 IFS=$as_save_IFS 4081 test -z "$as_dir" && as_dir=. 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4086 break 2 4087 fi 4088done 4089 done 4090IFS=$as_save_IFS 4091 4092fi 4093fi 4094RANLIB=$ac_cv_prog_RANLIB 4095if test -n "$RANLIB"; then 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4097$as_echo "$RANLIB" >&6; } 4098else 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4100$as_echo "no" >&6; } 4101fi 4102 4103 4104fi 4105if test -z "$ac_cv_prog_RANLIB"; then 4106 ac_ct_RANLIB=$RANLIB 4107 # Extract the first word of "ranlib", so it can be a program name with args. 4108set dummy ranlib; ac_word=$2 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4110$as_echo_n "checking for $ac_word... " >&6; } 4111if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113else 4114 if test -n "$ac_ct_RANLIB"; then 4115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4116else 4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4118for as_dir in $PATH 4119do 4120 IFS=$as_save_IFS 4121 test -z "$as_dir" && as_dir=. 4122 for ac_exec_ext in '' $ac_executable_extensions; do 4123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4124 ac_cv_prog_ac_ct_RANLIB="ranlib" 4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4126 break 2 4127 fi 4128done 4129 done 4130IFS=$as_save_IFS 4131 4132fi 4133fi 4134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4135if test -n "$ac_ct_RANLIB"; then 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4137$as_echo "$ac_ct_RANLIB" >&6; } 4138else 4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4140$as_echo "no" >&6; } 4141fi 4142 4143 if test "x$ac_ct_RANLIB" = x; then 4144 RANLIB=":" 4145 else 4146 case $cross_compiling:$ac_tool_warned in 4147yes:) 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4150ac_tool_warned=yes ;; 4151esac 4152 RANLIB=$ac_ct_RANLIB 4153 fi 4154else 4155 RANLIB="$ac_cv_prog_RANLIB" 4156fi 4157 4158 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4160$as_echo_n "checking whether ln -s works... " >&6; } 4161LN_S=$as_ln_s 4162if test "$LN_S" = "ln -s"; then 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4164$as_echo "yes" >&6; } 4165else 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4167$as_echo "no, using $LN_S" >&6; } 4168fi 4169 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4171$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4172set x ${MAKE-make} 4173ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4174if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4175 $as_echo_n "(cached) " >&6 4176else 4177 cat >conftest.make <<\_ACEOF 4178SHELL = /bin/sh 4179all: 4180 @echo '@@@%%%=$(MAKE)=@@@%%%' 4181_ACEOF 4182# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4183case `${MAKE-make} -f conftest.make 2>/dev/null` in 4184 *@@@%%%=?*=@@@%%%*) 4185 eval ac_cv_prog_make_${ac_make}_set=yes;; 4186 *) 4187 eval ac_cv_prog_make_${ac_make}_set=no;; 4188esac 4189rm -f conftest.make 4190fi 4191if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4193$as_echo "yes" >&6; } 4194 SET_MAKE= 4195else 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197$as_echo "no" >&6; } 4198 SET_MAKE="MAKE=${MAKE-make}" 4199fi 4200 4201 4202ac_ext=c 4203ac_cpp='$CPP $CPPFLAGS' 4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4206ac_compiler_gnu=$ac_cv_c_compiler_gnu 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4208$as_echo_n "checking how to run the C preprocessor... " >&6; } 4209# On Suns, sometimes $CPP names a directory. 4210if test -n "$CPP" && test -d "$CPP"; then 4211 CPP= 4212fi 4213if test -z "$CPP"; then 4214 if ${ac_cv_prog_CPP+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 # Double quotes because CPP needs to be expanded 4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4219 do 4220 ac_preproc_ok=false 4221for ac_c_preproc_warn_flag in '' yes 4222do 4223 # Use a header file that comes with gcc, so configuring glibc 4224 # with a fresh cross-compiler works. 4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4226 # <limits.h> exists even on freestanding compilers. 4227 # On the NeXT, cc -E runs the code through the compiler's parser, 4228 # not just through cpp. "Syntax error" is here to catch this case. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#ifdef __STDC__ 4232# include <limits.h> 4233#else 4234# include <assert.h> 4235#endif 4236 Syntax error 4237_ACEOF 4238if ac_fn_c_try_cpp "$LINENO"; then : 4239 4240else 4241 # Broken: fails on valid input. 4242continue 4243fi 4244rm -f conftest.err conftest.i conftest.$ac_ext 4245 4246 # OK, works on sane cases. Now check whether nonexistent headers 4247 # can be detected and how. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <ac_nonexistent.h> 4251_ACEOF 4252if ac_fn_c_try_cpp "$LINENO"; then : 4253 # Broken: success on invalid input. 4254continue 4255else 4256 # Passes both tests. 4257ac_preproc_ok=: 4258break 4259fi 4260rm -f conftest.err conftest.i conftest.$ac_ext 4261 4262done 4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4264rm -f conftest.i conftest.err conftest.$ac_ext 4265if $ac_preproc_ok; then : 4266 break 4267fi 4268 4269 done 4270 ac_cv_prog_CPP=$CPP 4271 4272fi 4273 CPP=$ac_cv_prog_CPP 4274else 4275 ac_cv_prog_CPP=$CPP 4276fi 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4278$as_echo "$CPP" >&6; } 4279ac_preproc_ok=false 4280for ac_c_preproc_warn_flag in '' yes 4281do 4282 # Use a header file that comes with gcc, so configuring glibc 4283 # with a fresh cross-compiler works. 4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4285 # <limits.h> exists even on freestanding compilers. 4286 # On the NeXT, cc -E runs the code through the compiler's parser, 4287 # not just through cpp. "Syntax error" is here to catch this case. 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#ifdef __STDC__ 4291# include <limits.h> 4292#else 4293# include <assert.h> 4294#endif 4295 Syntax error 4296_ACEOF 4297if ac_fn_c_try_cpp "$LINENO"; then : 4298 4299else 4300 # Broken: fails on valid input. 4301continue 4302fi 4303rm -f conftest.err conftest.i conftest.$ac_ext 4304 4305 # OK, works on sane cases. Now check whether nonexistent headers 4306 # can be detected and how. 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309#include <ac_nonexistent.h> 4310_ACEOF 4311if ac_fn_c_try_cpp "$LINENO"; then : 4312 # Broken: success on invalid input. 4313continue 4314else 4315 # Passes both tests. 4316ac_preproc_ok=: 4317break 4318fi 4319rm -f conftest.err conftest.i conftest.$ac_ext 4320 4321done 4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4323rm -f conftest.i conftest.err conftest.$ac_ext 4324if $ac_preproc_ok; then : 4325 4326else 4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4329as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4330See \`config.log' for more details" "$LINENO" 5; } 4331fi 4332 4333ac_ext=c 4334ac_cpp='$CPP $CPPFLAGS' 4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4337ac_compiler_gnu=$ac_cv_c_compiler_gnu 4338 4339 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4341$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4342if ${ac_cv_path_GREP+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 if test -z "$GREP"; then 4346 ac_path_GREP_found=false 4347 # Loop through the user's path and test for each of PROGNAME-LIST 4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4350do 4351 IFS=$as_save_IFS 4352 test -z "$as_dir" && as_dir=. 4353 for ac_prog in grep ggrep; do 4354 for ac_exec_ext in '' $ac_executable_extensions; do 4355 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4356 as_fn_executable_p "$ac_path_GREP" || continue 4357# Check for GNU ac_path_GREP and select it if it is found. 4358 # Check for GNU $ac_path_GREP 4359case `"$ac_path_GREP" --version 2>&1` in 4360*GNU*) 4361 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4362*) 4363 ac_count=0 4364 $as_echo_n 0123456789 >"conftest.in" 4365 while : 4366 do 4367 cat "conftest.in" "conftest.in" >"conftest.tmp" 4368 mv "conftest.tmp" "conftest.in" 4369 cp "conftest.in" "conftest.nl" 4370 $as_echo 'GREP' >> "conftest.nl" 4371 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4373 as_fn_arith $ac_count + 1 && ac_count=$as_val 4374 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4375 # Best one so far, save it but keep looking for a better one 4376 ac_cv_path_GREP="$ac_path_GREP" 4377 ac_path_GREP_max=$ac_count 4378 fi 4379 # 10*(2^10) chars as input seems more than enough 4380 test $ac_count -gt 10 && break 4381 done 4382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4383esac 4384 4385 $ac_path_GREP_found && break 3 4386 done 4387 done 4388 done 4389IFS=$as_save_IFS 4390 if test -z "$ac_cv_path_GREP"; then 4391 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4392 fi 4393else 4394 ac_cv_path_GREP=$GREP 4395fi 4396 4397fi 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4399$as_echo "$ac_cv_path_GREP" >&6; } 4400 GREP="$ac_cv_path_GREP" 4401 4402 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4404$as_echo_n "checking for egrep... " >&6; } 4405if ${ac_cv_path_EGREP+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4409 then ac_cv_path_EGREP="$GREP -E" 4410 else 4411 if test -z "$EGREP"; then 4412 ac_path_EGREP_found=false 4413 # Loop through the user's path and test for each of PROGNAME-LIST 4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4416do 4417 IFS=$as_save_IFS 4418 test -z "$as_dir" && as_dir=. 4419 for ac_prog in egrep; do 4420 for ac_exec_ext in '' $ac_executable_extensions; do 4421 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4422 as_fn_executable_p "$ac_path_EGREP" || continue 4423# Check for GNU ac_path_EGREP and select it if it is found. 4424 # Check for GNU $ac_path_EGREP 4425case `"$ac_path_EGREP" --version 2>&1` in 4426*GNU*) 4427 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4428*) 4429 ac_count=0 4430 $as_echo_n 0123456789 >"conftest.in" 4431 while : 4432 do 4433 cat "conftest.in" "conftest.in" >"conftest.tmp" 4434 mv "conftest.tmp" "conftest.in" 4435 cp "conftest.in" "conftest.nl" 4436 $as_echo 'EGREP' >> "conftest.nl" 4437 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4439 as_fn_arith $ac_count + 1 && ac_count=$as_val 4440 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4441 # Best one so far, save it but keep looking for a better one 4442 ac_cv_path_EGREP="$ac_path_EGREP" 4443 ac_path_EGREP_max=$ac_count 4444 fi 4445 # 10*(2^10) chars as input seems more than enough 4446 test $ac_count -gt 10 && break 4447 done 4448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4449esac 4450 4451 $ac_path_EGREP_found && break 3 4452 done 4453 done 4454 done 4455IFS=$as_save_IFS 4456 if test -z "$ac_cv_path_EGREP"; then 4457 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4458 fi 4459else 4460 ac_cv_path_EGREP=$EGREP 4461fi 4462 4463 fi 4464fi 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4466$as_echo "$ac_cv_path_EGREP" >&6; } 4467 EGREP="$ac_cv_path_EGREP" 4468 4469 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4471$as_echo_n "checking for ANSI C header files... " >&6; } 4472if ${ac_cv_header_stdc+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477#include <stdlib.h> 4478#include <stdarg.h> 4479#include <string.h> 4480#include <float.h> 4481 4482int 4483main () 4484{ 4485 4486 ; 4487 return 0; 4488} 4489_ACEOF 4490if ac_fn_c_try_compile "$LINENO"; then : 4491 ac_cv_header_stdc=yes 4492else 4493 ac_cv_header_stdc=no 4494fi 4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4496 4497if test $ac_cv_header_stdc = yes; then 4498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501#include <string.h> 4502 4503_ACEOF 4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4505 $EGREP "memchr" >/dev/null 2>&1; then : 4506 4507else 4508 ac_cv_header_stdc=no 4509fi 4510rm -f conftest* 4511 4512fi 4513 4514if test $ac_cv_header_stdc = yes; then 4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517/* end confdefs.h. */ 4518#include <stdlib.h> 4519 4520_ACEOF 4521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4522 $EGREP "free" >/dev/null 2>&1; then : 4523 4524else 4525 ac_cv_header_stdc=no 4526fi 4527rm -f conftest* 4528 4529fi 4530 4531if test $ac_cv_header_stdc = yes; then 4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4533 if test "$cross_compiling" = yes; then : 4534 : 4535else 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538#include <ctype.h> 4539#include <stdlib.h> 4540#if ((' ' & 0x0FF) == 0x020) 4541# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4542# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4543#else 4544# define ISLOWER(c) \ 4545 (('a' <= (c) && (c) <= 'i') \ 4546 || ('j' <= (c) && (c) <= 'r') \ 4547 || ('s' <= (c) && (c) <= 'z')) 4548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4549#endif 4550 4551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4552int 4553main () 4554{ 4555 int i; 4556 for (i = 0; i < 256; i++) 4557 if (XOR (islower (i), ISLOWER (i)) 4558 || toupper (i) != TOUPPER (i)) 4559 return 2; 4560 return 0; 4561} 4562_ACEOF 4563if ac_fn_c_try_run "$LINENO"; then : 4564 4565else 4566 ac_cv_header_stdc=no 4567fi 4568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4569 conftest.$ac_objext conftest.beam conftest.$ac_ext 4570fi 4571 4572fi 4573fi 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4575$as_echo "$ac_cv_header_stdc" >&6; } 4576if test $ac_cv_header_stdc = yes; then 4577 4578$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4579 4580fi 4581 4582# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4584 inttypes.h stdint.h unistd.h 4585do : 4586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4587ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4588" 4589if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4590 cat >>confdefs.h <<_ACEOF 4591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4592_ACEOF 4593 4594fi 4595 4596done 4597 4598 4599for ac_header in \ 4600 arpa/inet.h \ 4601 assert.h \ 4602 ctype.h \ 4603 crypt.h \ 4604 dl.h \ 4605 dlfcn.h \ 4606 errno.h \ 4607 fcntl.h \ 4608 fnmatch.h \ 4609 grp.h \ 4610 iconv.h \ 4611 inttypes.h \ 4612 limits.h \ 4613 malloc.h \ 4614 math.h \ 4615 ncurses.h \ 4616 netdb.h \ 4617 netinet/in.h \ 4618 paths.h \ 4619 poll.h \ 4620 process.h \ 4621 pwd.h \ 4622 setjmp.h \ 4623 share.h \ 4624 signal.h \ 4625 socket.h \ 4626 stdarg.h \ 4627 stdio.h \ 4628 statvfs.h \ 4629 stdlib.h \ 4630 stdint.h \ 4631 string.h \ 4632 sys/ioctl.h \ 4633 sys/mount.h \ 4634 sys/poll.h \ 4635 sys/resource.h \ 4636 sys/select.h \ 4637 sys/socket.h \ 4638 sys/stat.h \ 4639 sys/statfs.h \ 4640 sys/statvfs.h \ 4641 sys/mman.h \ 4642 sys/time.h \ 4643 sys/utsname.h \ 4644 sys/wait.h \ 4645 term.h \ 4646 termcap.h \ 4647 time.h \ 4648 unistd.h \ 4649 vfs.h 4650 4651do : 4652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4653ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4655 cat >>confdefs.h <<_ACEOF 4656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4657_ACEOF 4658 4659fi 4660 4661done 4662 4663 4664for ac_func in sysconf div raise putenv usleep random ftruncate \ 4665 memcpy memmove strerror strerror_r gettimeofday ftime poll \ 4666 _fullpath vsprintf _splitpath2 _splitpath sigaction strtof \ 4667 lstat mkstemp inet_ntop gmtime_r localtime_r \ 4668 getgrgid_r getpwuid_r gethostbyname_r \ 4669 atoll fseeko ftello \ 4670 readlink realpath getbootfile tgetstr statfs mbstowcs mmap iconv 4671do : 4672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4673ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4674if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4675 cat >>confdefs.h <<_ACEOF 4676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4677_ACEOF 4678 4679fi 4680done 4681 4682 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4684$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4685if ${ac_cv_c_const+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4689/* end confdefs.h. */ 4690 4691int 4692main () 4693{ 4694 4695#ifndef __cplusplus 4696 /* Ultrix mips cc rejects this sort of thing. */ 4697 typedef int charset[2]; 4698 const charset cs = { 0, 0 }; 4699 /* SunOS 4.1.1 cc rejects this. */ 4700 char const *const *pcpcc; 4701 char **ppc; 4702 /* NEC SVR4.0.2 mips cc rejects this. */ 4703 struct point {int x, y;}; 4704 static struct point const zero = {0,0}; 4705 /* AIX XL C 1.02.0.0 rejects this. 4706 It does not let you subtract one const X* pointer from another in 4707 an arm of an if-expression whose if-part is not a constant 4708 expression */ 4709 const char *g = "string"; 4710 pcpcc = &g + (g ? g-g : 0); 4711 /* HPUX 7.0 cc rejects these. */ 4712 ++pcpcc; 4713 ppc = (char**) pcpcc; 4714 pcpcc = (char const *const *) ppc; 4715 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4716 char tx; 4717 char *t = &tx; 4718 char const *s = 0 ? (char *) 0 : (char const *) 0; 4719 4720 *t++ = 0; 4721 if (s) return 0; 4722 } 4723 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4724 int x[] = {25, 17}; 4725 const int *foo = &x[0]; 4726 ++foo; 4727 } 4728 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4729 typedef const int *iptr; 4730 iptr p = 0; 4731 ++p; 4732 } 4733 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4734 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4735 struct s { int j; const int *ap[3]; } bx; 4736 struct s *b = &bx; b->j = 5; 4737 } 4738 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4739 const int foo = 10; 4740 if (!foo) return 0; 4741 } 4742 return !cs[0] && !zero.x; 4743#endif 4744 4745 ; 4746 return 0; 4747} 4748_ACEOF 4749if ac_fn_c_try_compile "$LINENO"; then : 4750 ac_cv_c_const=yes 4751else 4752 ac_cv_c_const=no 4753fi 4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4755fi 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4757$as_echo "$ac_cv_c_const" >&6; } 4758if test $ac_cv_c_const = no; then 4759 4760$as_echo "#define const /**/" >>confdefs.h 4761 4762fi 4763 4764ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4765if test "x$ac_cv_type_size_t" = xyes; then : 4766 4767else 4768 4769cat >>confdefs.h <<_ACEOF 4770#define size_t unsigned int 4771_ACEOF 4772 4773fi 4774 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 4776$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 4777if ${ac_cv_header_time+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4781/* end confdefs.h. */ 4782#include <sys/types.h> 4783#include <sys/time.h> 4784#include <time.h> 4785 4786int 4787main () 4788{ 4789if ((struct tm *) 0) 4790return 0; 4791 ; 4792 return 0; 4793} 4794_ACEOF 4795if ac_fn_c_try_compile "$LINENO"; then : 4796 ac_cv_header_time=yes 4797else 4798 ac_cv_header_time=no 4799fi 4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4801fi 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 4803$as_echo "$ac_cv_header_time" >&6; } 4804if test $ac_cv_header_time = yes; then 4805 4806$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 4807 4808fi 4809 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 4811$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 4812if ${ac_cv_struct_tm+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816/* end confdefs.h. */ 4817#include <sys/types.h> 4818#include <time.h> 4819 4820int 4821main () 4822{ 4823struct tm tm; 4824 int *p = &tm.tm_sec; 4825 return !p; 4826 ; 4827 return 0; 4828} 4829_ACEOF 4830if ac_fn_c_try_compile "$LINENO"; then : 4831 ac_cv_struct_tm=time.h 4832else 4833 ac_cv_struct_tm=sys/time.h 4834fi 4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 4838$as_echo "$ac_cv_struct_tm" >&6; } 4839if test $ac_cv_struct_tm = sys/time.h; then 4840 4841$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 4842 4843fi 4844 4845 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4847$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4848set dummy $CC; ac_cc="`echo $2 | 4849 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" 4850if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 echo 'int foo(){}' > conftest.c 4854# We do the test twice because some compilers refuse to overwrite an 4855# existing .o file with -o, though they will create one. 4856eval ac_cv_prog_cc_${ac_cc}_c_o=no 4857ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5' 4858if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 4859 (eval $ac_try) 2>&5 4860 ac_status=$? 4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4862 test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 4863 (eval $ac_try) 2>&5 4864 ac_status=$? 4865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4866 test $ac_status = 0; }; 4867then 4868 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5' 4869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 4870 (eval $ac_try) 2>&5 4871 ac_status=$? 4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4873 test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 4874 (eval $ac_try) 2>&5 4875 ac_status=$? 4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4877 test $ac_status = 0; }; 4878 then 4879 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4880 fi 4881fi 4882rm -f conftest* 4883 4884fi 4885if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 4886 O2SHO="" 4887 O2SAVE="" 4888 SAVE2O="" 4889 O2TSO="" 4890 O2TSAVE="" 4891 TSAVE2O="" 4892 CC2O="-o $"'@' 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4894$as_echo "yes" >&6; } 4895else 4896 O2SHO="-mv \`basename "$'@'" .so.o\`.o "$'@' 4897 O2SAVE="-mv \`basename "$'@'" .so.o\`.o \`basename "$'@'" .so.o\`.o.save" 4898 SAVE2O="-mv \`basename "$'@'" .so.o\`.o.save \`basename "$'@'" .so.o\`.o" 4899 O2TSO="-mv \`basename "$'@'" .tso\`.o "$'@' 4900 O2TSAVE="-mv \`basename "$'@'" .tso\`.o \`basename "$'@'" .tso\`.tso.save" 4901 TSAVE2O="-mv \`basename "$'@'" .tso\`.tso.save \`basename "$'@'" .tso\`.o" 4902 CC2O="" 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904$as_echo "no" >&6; } 4905fi 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __sighandler_t is defined" >&5 4909$as_echo_n "checking whether __sighandler_t is defined... " >&6; } 4910 4911if ${mh_cv__sighandler_t+:} false; then : 4912 $as_echo_n "(cached) " >&6 4913else 4914 4915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916/* end confdefs.h. */ 4917#include <sys/types.h> 4918#include <signal.h> 4919int 4920main () 4921{ 4922__sighandler_t fred 4923 ; 4924 return 0; 4925} 4926_ACEOF 4927if ac_fn_c_try_compile "$LINENO"; then : 4928 mh_cv__sighandler_t=yes 4929else 4930 mh_cv__sighandler_t=no 4931 4932fi 4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4934 4935fi 4936 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv__sighandler_t" >&5 4938$as_echo "$mh_cv__sighandler_t" >&6; } 4939if test "$mh_cv__sighandler_t" = yes ; then 4940 $as_echo "#define HAVE__SIGHANDLER_T 1" >>confdefs.h 4941 4942fi 4943 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct random_data" >&5 4945$as_echo_n "checking for struct random_data... " >&6; } 4946if ${mh_cv_struct_random_data+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951#include <stdlib.h> 4952#include <stdio.h> 4953int 4954main () 4955{ 4956struct random_data s; 4957 ; 4958 return 0; 4959} 4960_ACEOF 4961if ac_fn_c_try_compile "$LINENO"; then : 4962 mh_cv_struct_random_data=yes 4963else 4964 mh_cv_struct_random_data=no 4965fi 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_struct_random_data" >&5 4969$as_echo "$mh_cv_struct_random_data" >&6; } 4970if test $mh_cv_struct_random_data = yes; then 4971 $as_echo "#define HAVE_RANDOM_DATA 1" >>confdefs.h 4972 4973fi 4974 4975 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __builtin_return_address inline function" >&5 4977$as_echo_n "checking whether compiler supports __builtin_return_address inline function... " >&6; } 4978if ${mh_cv_builtin_return_address+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 4982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984#include <stdio.h> 4985int 4986main () 4987{ 4988__builtin_return_address(0) 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993if ac_fn_c_try_link "$LINENO"; then : 4994 mh_cv_builtin_return_address=yes 4995else 4996 mh_cv_builtin_return_address=no 4997 4998fi 4999rm -f core conftest.err conftest.$ac_objext \ 5000 conftest$ac_exeext conftest.$ac_ext 5001 5002fi 5003 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_builtin_return_address" >&5 5005$as_echo "$mh_cv_builtin_return_address" >&6; } 5006if test "$mh_cv_builtin_return_address" = yes; then 5007 $as_echo "#define HAVE_BUILTIN_RETURN_ADDRESS 1" >>confdefs.h 5008 5009fi 5010 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 5012$as_echo_n "checking for long long int... " >&6; } 5013if ${mh_cv_c_long_long+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 5017 mh_cv_c_long_long=yes 5018 else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020/* end confdefs.h. */ 5021 5022int 5023main () 5024{ 5025long long int i; 5026 ; 5027 return 0; 5028} 5029_ACEOF 5030if ac_fn_c_try_compile "$LINENO"; then : 5031 mh_cv_c_long_long=yes 5032else 5033 mh_cv_c_long_long=no 5034fi 5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5036 fi 5037fi 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_c_long_long" >&5 5039$as_echo "$mh_cv_c_long_long" >&6; } 5040 if test $mh_cv_c_long_long = yes; then 5041 5042$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 5043 5044 fi 5045 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 5047$as_echo_n "checking for socklen_t... " >&6; } 5048if ${ac_cv_type_socklen_t+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054#include <sys/types.h> 5055 #include <sys/socket.h> 5056int 5057main () 5058{ 5059socklen_t len = 42; return 0; 5060 ; 5061 return 0; 5062} 5063_ACEOF 5064if ac_fn_c_try_compile "$LINENO"; then : 5065 ac_cv_type_socklen_t=yes 5066else 5067 ac_cv_type_socklen_t=no 5068fi 5069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5070 5071fi 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5 5073$as_echo "$ac_cv_type_socklen_t" >&6; } 5074 if test $ac_cv_type_socklen_t = yes; then 5075 5076$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 5077 5078 fi 5079 5080ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h> 5081#include <sys/ipc.h> 5082#include <sys/sem.h> 5083" 5084if test "x$ac_cv_type_union_semun" = xyes; then : 5085 5086cat >>confdefs.h <<_ACEOF 5087#define HAVE_UNION_SEMUN 1 5088_ACEOF 5089 5090 5091fi 5092 5093 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if statvfs.f_mntfromname exists..." >&5 5095$as_echo "$as_me: checking if statvfs.f_mntfromname exists..." >&6;} 5096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5097/* end confdefs.h. */ 5098 5099 #include <sys/types.h> 5100 #include <sys/statvfs.h> 5101 5102int 5103main () 5104{ 5105 5106 struct statvfs buf; 5107 char *p = buf.f_mntfromname; 5108 5109 statvfs(".", &buf); 5110 5111 ; 5112 return 0; 5113} 5114_ACEOF 5115if ac_fn_c_try_compile "$LINENO"; then : 5116 5117 5118$as_echo "#define HAVE_STATVFS_F_MNTFROMNAME /**/" >>confdefs.h 5119 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5121$as_echo "yes" >&6; } 5122 5123else 5124 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5126$as_echo "no" >&6; } 5127 5128fi 5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 5133$as_echo_n "checking for working memcmp... " >&6; } 5134if ${ac_cv_func_memcmp_working+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 if test "$cross_compiling" = yes; then : 5138 ac_cv_func_memcmp_working=no 5139else 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142$ac_includes_default 5143int 5144main () 5145{ 5146 5147 /* Some versions of memcmp are not 8-bit clean. */ 5148 char c0 = '\100', c1 = '\200', c2 = '\201'; 5149 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 5150 return 1; 5151 5152 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 5153 or more and with at least one buffer not starting on a 4-byte boundary. 5154 William Lewis provided this test program. */ 5155 { 5156 char foo[21]; 5157 char bar[21]; 5158 int i; 5159 for (i = 0; i < 4; i++) 5160 { 5161 char *a = foo + i; 5162 char *b = bar + i; 5163 strcpy (a, "--------01111111"); 5164 strcpy (b, "--------10000000"); 5165 if (memcmp (a, b, 16) >= 0) 5166 return 1; 5167 } 5168 return 0; 5169 } 5170 5171 ; 5172 return 0; 5173} 5174_ACEOF 5175if ac_fn_c_try_run "$LINENO"; then : 5176 ac_cv_func_memcmp_working=yes 5177else 5178 ac_cv_func_memcmp_working=no 5179fi 5180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5181 conftest.$ac_objext conftest.beam conftest.$ac_ext 5182fi 5183 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 5186$as_echo "$ac_cv_func_memcmp_working" >&6; } 5187test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 5188 *" memcmp.$ac_objext "* ) ;; 5189 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 5190 ;; 5191esac 5192 5193 5194# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5195# for constant arguments. Useless! 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 5197$as_echo_n "checking for working alloca.h... " >&6; } 5198if ${ac_cv_working_alloca_h+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203#include <alloca.h> 5204int 5205main () 5206{ 5207char *p = (char *) alloca (2 * sizeof (int)); 5208 if (p) return 0; 5209 ; 5210 return 0; 5211} 5212_ACEOF 5213if ac_fn_c_try_link "$LINENO"; then : 5214 ac_cv_working_alloca_h=yes 5215else 5216 ac_cv_working_alloca_h=no 5217fi 5218rm -f core conftest.err conftest.$ac_objext \ 5219 conftest$ac_exeext conftest.$ac_ext 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 5222$as_echo "$ac_cv_working_alloca_h" >&6; } 5223if test $ac_cv_working_alloca_h = yes; then 5224 5225$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 5226 5227fi 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 5230$as_echo_n "checking for alloca... " >&6; } 5231if ${ac_cv_func_alloca_works+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236#ifdef __GNUC__ 5237# define alloca __builtin_alloca 5238#else 5239# ifdef _MSC_VER 5240# include <malloc.h> 5241# define alloca _alloca 5242# else 5243# ifdef HAVE_ALLOCA_H 5244# include <alloca.h> 5245# else 5246# ifdef _AIX 5247 #pragma alloca 5248# else 5249# ifndef alloca /* predefined by HP cc +Olibcalls */ 5250void *alloca (size_t); 5251# endif 5252# endif 5253# endif 5254# endif 5255#endif 5256 5257int 5258main () 5259{ 5260char *p = (char *) alloca (1); 5261 if (p) return 0; 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266if ac_fn_c_try_link "$LINENO"; then : 5267 ac_cv_func_alloca_works=yes 5268else 5269 ac_cv_func_alloca_works=no 5270fi 5271rm -f core conftest.err conftest.$ac_objext \ 5272 conftest$ac_exeext conftest.$ac_ext 5273fi 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 5275$as_echo "$ac_cv_func_alloca_works" >&6; } 5276 5277if test $ac_cv_func_alloca_works = yes; then 5278 5279$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 5280 5281else 5282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5283# that cause trouble. Some versions do not even contain alloca or 5284# contain a buggy version. If you still want to use their alloca, 5285# use ar to extract alloca.o from them instead of compiling alloca.c. 5286 5287ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5288 5289$as_echo "#define C_ALLOCA 1" >>confdefs.h 5290 5291 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 5293$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 5294if ${ac_cv_os_cray+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299#if defined CRAY && ! defined CRAY2 5300webecray 5301#else 5302wenotbecray 5303#endif 5304 5305_ACEOF 5306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5307 $EGREP "webecray" >/dev/null 2>&1; then : 5308 ac_cv_os_cray=yes 5309else 5310 ac_cv_os_cray=no 5311fi 5312rm -f conftest* 5313 5314fi 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 5316$as_echo "$ac_cv_os_cray" >&6; } 5317if test $ac_cv_os_cray = yes; then 5318 for ac_func in _getb67 GETB67 getb67; do 5319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5321if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5322 5323cat >>confdefs.h <<_ACEOF 5324#define CRAY_STACKSEG_END $ac_func 5325_ACEOF 5326 5327 break 5328fi 5329 5330 done 5331fi 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 5334$as_echo_n "checking stack direction for C alloca... " >&6; } 5335if ${ac_cv_c_stack_direction+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 if test "$cross_compiling" = yes; then : 5339 ac_cv_c_stack_direction=0 5340else 5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5342/* end confdefs.h. */ 5343$ac_includes_default 5344int 5345find_stack_direction (int *addr, int depth) 5346{ 5347 int dir, dummy = 0; 5348 if (! addr) 5349 addr = &dummy; 5350 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 5351 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 5352 return dir + dummy; 5353} 5354 5355int 5356main (int argc, char **argv) 5357{ 5358 return find_stack_direction (0, argc + !argv + 20) < 0; 5359} 5360_ACEOF 5361if ac_fn_c_try_run "$LINENO"; then : 5362 ac_cv_c_stack_direction=1 5363else 5364 ac_cv_c_stack_direction=-1 5365fi 5366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5367 conftest.$ac_objext conftest.beam conftest.$ac_ext 5368fi 5369 5370fi 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 5372$as_echo "$ac_cv_c_stack_direction" >&6; } 5373cat >>confdefs.h <<_ACEOF 5374#define STACK_DIRECTION $ac_cv_c_stack_direction 5375_ACEOF 5376 5377 5378fi 5379 5380if test $ac_cv_func_alloca_works = yes; then 5381 ALLOCA="" 5382 ALLOCA_SHO="" 5383 ALLOCA_TSO="" 5384else 5385 ALLOCA="alloca.o" 5386 ALLOCA_SHO="alloca.so.o" 5387 ALLOCA_TSO="alloca.tso.o" 5388fi 5389 5390 5391 5392if test $ac_cv_header_fnmatch_h = yes; then 5393 FNMATCH="" 5394 FNMATCH_SHO="" 5395 FNMATCH_TSO="" 5396else 5397 FNMATCH="fnmatch.o" 5398 FNMATCH_SHO="fnmatch.so.o" 5399 FNMATCH_TSO="fnmatch.tso.o" 5400fi 5401 5402 5403 5404 5405# Check whether --enable-screen was given. 5406if test "${enable_screen+set}" = set; then : 5407 enableval=$enable_screen; with_screen=$enableval 5408else 5409 with_screen=yes 5410fi 5411 5412if test "$with_screen" = no; then 5413 SCREEN_FUNCS="-DNOSCREEN_FUNCS" 5414 REGSCREENUX="" 5415else 5416 SCREEN_FUNCS="" 5417 REGSCREENUX="regscreenux.\$(OBJ)" 5418fi 5419 5420 5421 5422save_LIBS="$LIBS" 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 5424$as_echo_n "checking for library containing tgetent... " >&6; } 5425if ${ac_cv_search_tgetent+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 ac_func_search_save_LIBS=$LIBS 5429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431 5432/* Override any GCC internal prototype to avoid an error. 5433 Use char because int might match the return type of a GCC 5434 builtin and then its argument prototype would still apply. */ 5435#ifdef __cplusplus 5436extern "C" 5437#endif 5438char tgetent (); 5439int 5440main () 5441{ 5442return tgetent (); 5443 ; 5444 return 0; 5445} 5446_ACEOF 5447for ac_lib in '' ncurses termcap curses termlib; do 5448 if test -z "$ac_lib"; then 5449 ac_res="none required" 5450 else 5451 ac_res=-l$ac_lib 5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5453 fi 5454 if ac_fn_c_try_link "$LINENO"; then : 5455 ac_cv_search_tgetent=$ac_res 5456fi 5457rm -f core conftest.err conftest.$ac_objext \ 5458 conftest$ac_exeext 5459 if ${ac_cv_search_tgetent+:} false; then : 5460 break 5461fi 5462done 5463if ${ac_cv_search_tgetent+:} false; then : 5464 5465else 5466 ac_cv_search_tgetent=no 5467fi 5468rm conftest.$ac_ext 5469LIBS=$ac_func_search_save_LIBS 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 5472$as_echo "$ac_cv_search_tgetent" >&6; } 5473ac_res=$ac_cv_search_tgetent 5474if test "$ac_res" != no; then : 5475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5476 REGUTIL_TERM_LIB="$ac_cv_search_tgetent" 5477else 5478 REGUTIL_TERM_LIB="" 5479fi 5480 5481if test "$REGUTIL_TERM_LIB" = "none required" -o "$REGUTIL_TERM_LIB" = "no" -o "$with_screen" = "no"; then 5482 REGUTIL_TERM_LIB="" 5483fi 5484LIBS="$save_LIBS" 5485 5486save_LIBS="$LIBS" 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10" >&5 5488$as_echo_n "checking for library containing log10... " >&6; } 5489if ${ac_cv_search_log10+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 ac_func_search_save_LIBS=$LIBS 5493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5494/* end confdefs.h. */ 5495 5496/* Override any GCC internal prototype to avoid an error. 5497 Use char because int might match the return type of a GCC 5498 builtin and then its argument prototype would still apply. */ 5499#ifdef __cplusplus 5500extern "C" 5501#endif 5502char log10 (); 5503int 5504main () 5505{ 5506return log10 (); 5507 ; 5508 return 0; 5509} 5510_ACEOF 5511for ac_lib in '' m c; do 5512 if test -z "$ac_lib"; then 5513 ac_res="none required" 5514 else 5515 ac_res=-l$ac_lib 5516 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5517 fi 5518 if ac_fn_c_try_link "$LINENO"; then : 5519 ac_cv_search_log10=$ac_res 5520fi 5521rm -f core conftest.err conftest.$ac_objext \ 5522 conftest$ac_exeext 5523 if ${ac_cv_search_log10+:} false; then : 5524 break 5525fi 5526done 5527if ${ac_cv_search_log10+:} false; then : 5528 5529else 5530 ac_cv_search_log10=no 5531fi 5532rm conftest.$ac_ext 5533LIBS=$ac_func_search_save_LIBS 5534fi 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10" >&5 5536$as_echo "$ac_cv_search_log10" >&6; } 5537ac_res=$ac_cv_search_log10 5538if test "$ac_res" != no; then : 5539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5540 REGUTIL_MATH_LIB="$ac_cv_search_log10" 5541else 5542 REGUTIL_MATH_LIB="" 5543fi 5544 5545if test "$REGUTIL_MATH_LIB" = "none required" -o "$REGUTIL_MATH_LIB" = "no"; then 5546 REGUTIL_MATH_LIB="" 5547fi 5548LIBS="$save_LIBS" 5549 5550save_LIBS="$LIBS" 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 5552$as_echo_n "checking for library containing crypt... " >&6; } 5553if ${ac_cv_search_crypt+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 ac_func_search_save_LIBS=$LIBS 5557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5558/* end confdefs.h. */ 5559 5560/* Override any GCC internal prototype to avoid an error. 5561 Use char because int might match the return type of a GCC 5562 builtin and then its argument prototype would still apply. */ 5563#ifdef __cplusplus 5564extern "C" 5565#endif 5566char crypt (); 5567int 5568main () 5569{ 5570return crypt (); 5571 ; 5572 return 0; 5573} 5574_ACEOF 5575for ac_lib in '' crypt; do 5576 if test -z "$ac_lib"; then 5577 ac_res="none required" 5578 else 5579 ac_res=-l$ac_lib 5580 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5581 fi 5582 if ac_fn_c_try_link "$LINENO"; then : 5583 ac_cv_search_crypt=$ac_res 5584fi 5585rm -f core conftest.err conftest.$ac_objext \ 5586 conftest$ac_exeext 5587 if ${ac_cv_search_crypt+:} false; then : 5588 break 5589fi 5590done 5591if ${ac_cv_search_crypt+:} false; then : 5592 5593else 5594 ac_cv_search_crypt=no 5595fi 5596rm conftest.$ac_ext 5597LIBS=$ac_func_search_save_LIBS 5598fi 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 5600$as_echo "$ac_cv_search_crypt" >&6; } 5601ac_res=$ac_cv_search_crypt 5602if test "$ac_res" != no; then : 5603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5604 REGINA_CRYPT_LIB="$ac_cv_search_crypt" 5605else 5606 REGINA_CRYPT_LIB="" 5607fi 5608 5609if test "$REGINA_CRYPT_LIB" = "none required" -o "$REGINA_CRYPT_LIB" = "no"; then 5610 REGINA_CRYPT_LIB="" 5611fi 5612LIBS="$save_LIBS" 5613 5614save_LIBS="$LIBS" 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 5616$as_echo_n "checking for library containing dlopen... " >&6; } 5617if ${ac_cv_search_dlopen+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 ac_func_search_save_LIBS=$LIBS 5621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5622/* end confdefs.h. */ 5623 5624/* Override any GCC internal prototype to avoid an error. 5625 Use char because int might match the return type of a GCC 5626 builtin and then its argument prototype would still apply. */ 5627#ifdef __cplusplus 5628extern "C" 5629#endif 5630char dlopen (); 5631int 5632main () 5633{ 5634return dlopen (); 5635 ; 5636 return 0; 5637} 5638_ACEOF 5639for ac_lib in '' dl; do 5640 if test -z "$ac_lib"; then 5641 ac_res="none required" 5642 else 5643 ac_res=-l$ac_lib 5644 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5645 fi 5646 if ac_fn_c_try_link "$LINENO"; then : 5647 ac_cv_search_dlopen=$ac_res 5648fi 5649rm -f core conftest.err conftest.$ac_objext \ 5650 conftest$ac_exeext 5651 if ${ac_cv_search_dlopen+:} false; then : 5652 break 5653fi 5654done 5655if ${ac_cv_search_dlopen+:} false; then : 5656 5657else 5658 ac_cv_search_dlopen=no 5659fi 5660rm conftest.$ac_ext 5661LIBS=$ac_func_search_save_LIBS 5662fi 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 5664$as_echo "$ac_cv_search_dlopen" >&6; } 5665ac_res=$ac_cv_search_dlopen 5666if test "$ac_res" != no; then : 5667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5668 REGINA_DLOPEN_LIB="$ac_cv_search_dlopen" 5669else 5670 REGINA_DLOPEN_LIB="" 5671fi 5672 5673if test "$REGINA_DLOPEN_LIB" = "none required" -o "$REGINA_DLOPEN_LIB" = "no"; then 5674 REGINA_DLOPEN_LIB="" 5675fi 5676LIBS="$save_LIBS" 5677 5678save_LIBS="$LIBS" 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 5680$as_echo_n "checking for library containing shl_load... " >&6; } 5681if ${ac_cv_search_shl_load+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 ac_func_search_save_LIBS=$LIBS 5685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687 5688/* Override any GCC internal prototype to avoid an error. 5689 Use char because int might match the return type of a GCC 5690 builtin and then its argument prototype would still apply. */ 5691#ifdef __cplusplus 5692extern "C" 5693#endif 5694char shl_load (); 5695int 5696main () 5697{ 5698return shl_load (); 5699 ; 5700 return 0; 5701} 5702_ACEOF 5703for ac_lib in '' dld; do 5704 if test -z "$ac_lib"; then 5705 ac_res="none required" 5706 else 5707 ac_res=-l$ac_lib 5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5709 fi 5710 if ac_fn_c_try_link "$LINENO"; then : 5711 ac_cv_search_shl_load=$ac_res 5712fi 5713rm -f core conftest.err conftest.$ac_objext \ 5714 conftest$ac_exeext 5715 if ${ac_cv_search_shl_load+:} false; then : 5716 break 5717fi 5718done 5719if ${ac_cv_search_shl_load+:} false; then : 5720 5721else 5722 ac_cv_search_shl_load=no 5723fi 5724rm conftest.$ac_ext 5725LIBS=$ac_func_search_save_LIBS 5726fi 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 5728$as_echo "$ac_cv_search_shl_load" >&6; } 5729ac_res=$ac_cv_search_shl_load 5730if test "$ac_res" != no; then : 5731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5732 REGINA_SHL_LOAD_LIB="$ac_cv_search_shl_load" 5733else 5734 REGINA_SHL_LOAD_LIB="" 5735fi 5736 5737if test "$REGINA_SHL_LOAD_LIB" = "none required" -o "$REGINA_SHL_LOAD_LIB" = "no"; then 5738 REGINA_SHL_LOAD_LIB="" 5739fi 5740LIBS="$save_LIBS" 5741 5742save_LIBS="$LIBS" 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5744$as_echo_n "checking for library containing socket... " >&6; } 5745if ${ac_cv_search_socket+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 ac_func_search_save_LIBS=$LIBS 5749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751 5752/* Override any GCC internal prototype to avoid an error. 5753 Use char because int might match the return type of a GCC 5754 builtin and then its argument prototype would still apply. */ 5755#ifdef __cplusplus 5756extern "C" 5757#endif 5758char socket (); 5759int 5760main () 5761{ 5762return socket (); 5763 ; 5764 return 0; 5765} 5766_ACEOF 5767for ac_lib in '' socket network; do 5768 if test -z "$ac_lib"; then 5769 ac_res="none required" 5770 else 5771 ac_res=-l$ac_lib 5772 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5773 fi 5774 if ac_fn_c_try_link "$LINENO"; then : 5775 ac_cv_search_socket=$ac_res 5776fi 5777rm -f core conftest.err conftest.$ac_objext \ 5778 conftest$ac_exeext 5779 if ${ac_cv_search_socket+:} false; then : 5780 break 5781fi 5782done 5783if ${ac_cv_search_socket+:} false; then : 5784 5785else 5786 ac_cv_search_socket=no 5787fi 5788rm conftest.$ac_ext 5789LIBS=$ac_func_search_save_LIBS 5790fi 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5792$as_echo "$ac_cv_search_socket" >&6; } 5793ac_res=$ac_cv_search_socket 5794if test "$ac_res" != no; then : 5795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5796 REGINA_SOCKET_LIB="$ac_cv_search_socket" 5797else 5798 REGINA_SOCKET_LIB="" 5799fi 5800 5801if test "$REGINA_SOCKET_LIB" = "none required" -o "$REGINA_SOCKET_LIB" = "no"; then 5802 REGINA_SOCKET_LIB="" 5803fi 5804LIBS="$save_LIBS" 5805 5806save_LIBS="$LIBS" 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 5808$as_echo_n "checking for library containing gethostbyname... " >&6; } 5809if ${ac_cv_search_gethostbyname+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 ac_func_search_save_LIBS=$LIBS 5813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814/* end confdefs.h. */ 5815 5816/* Override any GCC internal prototype to avoid an error. 5817 Use char because int might match the return type of a GCC 5818 builtin and then its argument prototype would still apply. */ 5819#ifdef __cplusplus 5820extern "C" 5821#endif 5822char gethostbyname (); 5823int 5824main () 5825{ 5826return gethostbyname (); 5827 ; 5828 return 0; 5829} 5830_ACEOF 5831for ac_lib in '' nsl socket network; do 5832 if test -z "$ac_lib"; then 5833 ac_res="none required" 5834 else 5835 ac_res=-l$ac_lib 5836 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5837 fi 5838 if ac_fn_c_try_link "$LINENO"; then : 5839 ac_cv_search_gethostbyname=$ac_res 5840fi 5841rm -f core conftest.err conftest.$ac_objext \ 5842 conftest$ac_exeext 5843 if ${ac_cv_search_gethostbyname+:} false; then : 5844 break 5845fi 5846done 5847if ${ac_cv_search_gethostbyname+:} false; then : 5848 5849else 5850 ac_cv_search_gethostbyname=no 5851fi 5852rm conftest.$ac_ext 5853LIBS=$ac_func_search_save_LIBS 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 5856$as_echo "$ac_cv_search_gethostbyname" >&6; } 5857ac_res=$ac_cv_search_gethostbyname 5858if test "$ac_res" != no; then : 5859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5860 REGINA_GETHOSTBYNAME_LIB="$ac_cv_search_gethostbyname" 5861else 5862 REGINA_GETHOSTBYNAME_LIB="" 5863fi 5864 5865if test "$REGINA_GETHOSTBYNAME_LIB" = "none required" -o "$REGINA_GETHOSTBYNAME_LIB" = "no"; then 5866 REGINA_GETHOSTBYNAME_LIB="" 5867fi 5868LIBS="$save_LIBS" 5869 5870 5871 5872#MH_CHECK_LIB(m nsl nsl_s socket net network) 5873 5874# Check whether --enable-debug was given. 5875if test "${enable_debug+set}" = set; then : 5876 enableval=$enable_debug; with_debug=$enableval 5877else 5878 with_debug=no 5879fi 5880 5881DEBUG="" 5882DEBUGGING="" 5883cflags_g="`echo $CFLAGS | grep -c '\-g'`" 5884cflags_O="`echo $CFLAGS | grep -c '\-O'`" 5885 5886if test "$with_debug" = yes; then 5887 DEBUG="-DDEBUG" 5888 DEBUGGING="-g" 5889 if test "$cflags_g" = "0"; then 5890 CFLAGS="${CFLAGS} -g" 5891 fi 5892 if test "$cflags_O" != "0"; then 5893 CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`" 5894 fi 5895else 5896 DEBUG="-DNDEBUG" 5897 if test "$cflags_O" = "0"; then 5898 CFLAGS="${CFLAGS} -O" 5899 fi 5900 if test "$cflags_g" = "0"; then 5901 CFLAGS="${CFLAGS} -g" 5902 fi 5903fi 5904if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 5905 if test "$with_debug" = yes; then 5906 CFLAGS="${CFLAGS} -Wall" 5907 else 5908# CFLAGS="${CFLAGS} -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subscripts" 5909 CFLAGS="${CFLAGS} -O3 -Wall" 5910 fi 5911fi 5912if test "$on_qnx4" = yes; then 5913 if test "$ac_cv_prog_CC" = "gcc"; then 5914 QNX4_CFLAGS="" 5915 else 5916 QNX4_CFLAGS="-Wc,-r -b -j -Wc,-ei -N4096000 -mf -DNO_REGEX -DQNX -DQNX4 -D__QNX__ -DSTRINGS_ALIGNED -Q" 5917 fi 5918 if test "$with_debug" = yes; then 5919 CFLAGS="-g $QNX4_CFLAGS" 5920 else 5921 CFLAGS="-Otax $QNX4_CFLAGS" 5922 fi 5923fi 5924if test "$on_beos" = yes; then 5925 if test "$with_debug" = yes; then 5926 CFLAGS="${CFLAGS} -Wall" 5927 else 5928 CFLAGS="${CFLAGS} -O2 -Wall" 5929 fi 5930 if test "$datadir" = "\${prefix}/share"; then 5931 datadir="/boot/home/config/add-ons" 5932 fi 5933fi 5934 5935 5936 5937# Check whether --enable-purify was given. 5938if test "${enable_purify+set}" = set; then : 5939 enableval=$enable_purify; with_purify=$enableval 5940else 5941 with_purify=no 5942fi 5943 5944if test "$with_purify" = yes; then 5945 PURIFY="purify" 5946else 5947 PURIFY="" 5948fi 5949 5950 5951# Check whether --enable-efence was given. 5952if test "${enable_efence+set}" = set; then : 5953 enableval=$enable_efence; with_efence=$enableval 5954else 5955 with_efence=no 5956fi 5957 5958if test "$with_efence" = yes; then 5959 EFENCE="-lefence" 5960else 5961 EFENCE="" 5962fi 5963 5964 5965# Check whether --enable-hpux_portable was given. 5966if test "${enable_hpux_portable+set}" = set; then : 5967 enableval=$enable_hpux_portable; enable_hpux_portable=$enableval 5968else 5969 enable_hpux_portable=no 5970fi 5971 5972 5973 5974# Check whether --with-dlfcnincdir was given. 5975if test "${with_dlfcnincdir+set}" = set; then : 5976 withval=$with_dlfcnincdir; with_dlfcnincdir=$withval 5977else 5978 with_dlfcnincdir=no 5979fi 5980 5981if test "$with_dlfcnincdir" = no; then 5982 DLFCNINCDIR="" 5983 for ac_header in dlfcn.h 5984do : 5985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5986ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5988 cat >>confdefs.h <<_ACEOF 5989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5990_ACEOF 5991 5992fi 5993 5994done 5995 5996 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then 5997 HAVE_DLFCN_H="1" 5998 else 5999 # 6000 # Ignore the warning messages for specified platforms 6001 # 6002 case "$target" in 6003 *beos*) 6004 ;; 6005 *) 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find dlfcn.h in the standard header locations." >&5 6007$as_echo "$as_me: WARNING: Could not find dlfcn.h in the standard header locations." >&2;} 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&5 6009$as_echo "$as_me: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&2;} 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&5 6011$as_echo "$as_me: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&2;} 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&5 6013$as_echo "$as_me: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&2;} 6014 ;; 6015 esac 6016 fi 6017else 6018 if test -f "$with_dlfcnincdir/dlfcn.h"; then 6019 DLFCNINCDIR="-I$with_dlfcnincdir" 6020 HAVE_DLFCN_H="1" 6021 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 6022 6023 else 6024 as_fn_error $? "dlfcn.h not found in \"$with_dlfcnincdir\" as specified in --with-dlfcnincdir switch; cannot continue" "$LINENO" 5 6025 fi 6026fi 6027 6028 6029 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking shared library/external function extensions" >&5 6031$as_echo_n "checking shared library/external function extensions... " >&6; } 6032SHLPST=".so" 6033MODPST=".so" 6034 6035case "$target" in 6036 *hp-hpux*) 6037 SHLPST=".sl" 6038 MODPST=".sl" 6039 ;; 6040 *ibm-aix5*) 6041 SHLPST=".a" 6042 MODPST=".a" 6043 ;; 6044 *ibm-aix*) 6045 SHLPST=".a" 6046 MODPST=".a" 6047 ;; 6048 *nto-qnx*) 6049 ;; 6050 *qnx*) 6051 SHLPST="" 6052 MODPST="" 6053 ;; 6054 *cygwin*) 6055 SHLPST=".dll" 6056 MODPST=".dll" 6057 ;; 6058 *skyos*) 6059 SHLPST=".dll" 6060 MODPST=".dll" 6061 ;; 6062 *darwin*) 6063 SHLPST=".dylib" 6064 MODPST=".dylib" 6065# MH MODPST=".so" 6066 ;; 6067esac 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLPST/$MODPST" >&5 6069$as_echo "$SHLPST/$MODPST" >&6; } 6070 6071 6072# Check whether --with-dlfcnlibdir was given. 6073if test "${with_dlfcnlibdir+set}" = set; then : 6074 withval=$with_dlfcnlibdir; with_dlfcnlibdir=$withval 6075else 6076 with_dlfcnlibdir=no 6077fi 6078 6079if test "$with_dlfcnlibdir" = no; then 6080 DLFCNLIBDIR="" 6081else 6082 if test -f "$with_dlfcnlibdir/libdl$SHLPST"; then 6083 DLFCNLIBDIR="-L$with_dlfcnlibdir -ldl" 6084 else 6085 as_fn_error $? "libdl$SHLPST not found in \"$with_dlfcnlibdir\" as specified in --with-dlfcnlibdir switch; cannot continue" "$LINENO" 5 6086 fi 6087fi 6088 6089 6090 6091 6092# Check whether --with-staticfunctions was given. 6093if test "${with_staticfunctions+set}" = set; then : 6094 withval=$with_staticfunctions; with_staticfunctions=$withval 6095else 6096 with_staticfunctions=no 6097fi 6098 6099if test "$with_staticfunctions" = "yes" -o "$on_qnx4" = "yes"; then 6100 build_static="yes" 6101else 6102 build_static="no" 6103fi 6104 6105# Check whether --enable-orexx-binary-compatible was given. 6106if test "${enable_orexx_binary_compatible+set}" = set; then : 6107 enableval=$enable_orexx_binary_compatible; with_orexx_bc=$enableval 6108else 6109 with_orexx_bc=no 6110fi 6111 6112if test "$with_orexx_bc" = yes; then 6113 OREXX_BINARY_COMPATIBLE="1" 6114 $as_echo "#define OREXX_BINARY_COMPATIBLE 1" >>confdefs.h 6115 6116fi 6117 6118# Check whether --enable-posix-threads was given. 6119if test "${enable_posix_threads+set}" = set; then : 6120 enableval=$enable_posix_threads; enable_posix_threads=no 6121else 6122 enable_posix_threads=yes 6123fi 6124 6125if test "$build_static" = "yes"; then 6126 enable_posix_threads="no" 6127fi 6128 6129# Check whether --enable-gci was given. 6130if test "${enable_gci+set}" = set; then : 6131 enableval=$enable_gci; with_gci=no 6132else 6133 with_gci=$gci_available 6134fi 6135 6136if test "$with_gci" = yes; then 6137 GCI_SHO="gci_call.so.o gci_convert.so.o gci_execute.so.o gci_helper.so.o gci_prepare.so.o gci_reginabridge.so.o gci_rxfuncdefine.so.o gci_tree.so.o" 6138 HAVE_GCI="-DHAVE_GCI -I\$(gcidir)" 6139else 6140 GCI_SHO="" 6141 HAVE_GCI="" 6142fi 6143 6144 6145 6146if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then 6147 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands --version-script" >&5 6149$as_echo_n "checking whether gcc understands --version-script... " >&6; } 6150if ${mh_cv_version_script+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 6154echo "TEST {" > conftest.def 6155echo "global:" >> conftest.def 6156echo "Test;" >> conftest.def 6157echo "};" >> conftest.def 6158mh_save_libs="$LDFLAGS" 6159LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.def" 6160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161/* end confdefs.h. */ 6162#include <stdio.h> 6163int 6164main () 6165{ 6166exit(0); 6167 ; 6168 return 0; 6169} 6170_ACEOF 6171if ac_fn_c_try_link "$LINENO"; then : 6172 mh_cv_version_script=yes 6173else 6174 mh_cv_version_script=no 6175 6176fi 6177rm -f core conftest.err conftest.$ac_objext \ 6178 conftest$ac_exeext conftest.$ac_ext 6179LDFLAGS="$mh_save_libs" 6180rm -f conftest.def 6181 6182fi 6183 6184if test "$mh_cv_version_script" = yes; then 6185 SHL_SCRIPT="-Wl,--version-script=${srcdir}/regina_elf.def" 6186else 6187 SHL_SCRIPT="" 6188fi 6189 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5 6191$as_echo "$mh_cv_version_script" >&6; } 6192 6193fi 6194 6195 6196MH_MT_LIBS="" 6197THREADING_COMPILE="" 6198THREADING_LINK="" 6199THREADSAFE_TARGET="" 6200MT_FILE="mt_notmt" 6201if test "$enable_posix_threads" = yes; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5 6203$as_echo_n "checking for main in -lrt... " >&6; } 6204if ${ac_cv_lib_rt_main+:} false; then : 6205 $as_echo_n "(cached) " >&6 6206else 6207 ac_check_lib_save_LIBS=$LIBS 6208LIBS="-lrt $LIBS" 6209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211 6212 6213int 6214main () 6215{ 6216return main (); 6217 ; 6218 return 0; 6219} 6220_ACEOF 6221if ac_fn_c_try_link "$LINENO"; then : 6222 ac_cv_lib_rt_main=yes 6223else 6224 ac_cv_lib_rt_main=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext \ 6227 conftest$ac_exeext conftest.$ac_ext 6228LIBS=$ac_check_lib_save_LIBS 6229fi 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5 6231$as_echo "$ac_cv_lib_rt_main" >&6; } 6232if test "x$ac_cv_lib_rt_main" = xyes; then : 6233 mh_rt_lib_found=yes 6234else 6235 mh_rt_lib_found=no 6236fi 6237 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Posix Threads are supported" >&5 6239$as_echo_n "checking whether Posix Threads are supported... " >&6; } 6240 tmpLIBS=$LIBS 6241 save_cflags="$CFLAGS" 6242 pthread_libs="pthreads pthread c_r c" 6243 case "$target" in 6244 *freebsd*) 6245 CFLAGS="$CFLAGS -pthread" 6246 ;; 6247 esac 6248 for mh_lib in $pthread_libs; do 6249 LIBS="$tmpLIBS -l${mh_lib}" 6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6251/* end confdefs.h. */ 6252#include <pthread.h> 6253int 6254main () 6255{ 6256pthread_create(NULL,NULL,NULL,NULL) 6257 ; 6258 return 0; 6259} 6260_ACEOF 6261if ac_fn_c_try_link "$LINENO"; then : 6262 mh_has_pthreads=yes 6263else 6264 mh_has_pthreads=no 6265 6266fi 6267rm -f core conftest.err conftest.$ac_objext \ 6268 conftest$ac_exeext conftest.$ac_ext 6269 if test "$mh_has_pthreads" = yes; then 6270 MH_MT_LIBS="-l${mh_lib}" 6271 6272 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6273 THREADING_LINK="" 6274 THREADSAFE_TARGET="threader${binarybitprefix}${EXEEXT}" 6275 MT_FILE="mt_posix" 6276 case "$target" in 6277 *solaris*) 6278 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 6279 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6280 if test "$mh_rt_lib_found" = "yes"; then 6281 THREADING_LINK="-lrt" 6282 fi 6283 else 6284 THREADING_COMPILE="-mt -D_REENTRANT -DREENTRANT -D_PTHREAD_SEMANTICS -DREGINA_REENTRANT" 6285 THREADING_LINK="-mt" 6286 fi 6287 ;; 6288 *hp-hpux1*) 6289 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 6290 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6291 fi 6292 if test "$mh_rt_lib_found" = "yes"; then 6293 THREADING_LINK="-lrt" 6294 fi 6295 ;; 6296 *linux*) 6297 ;; 6298 *dragonfly*) 6299 THREADING_COMPILE="-pthread -D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6300 THREADING_LINK="-pthread" 6301 ;; 6302 *freebsd*) 6303 THREADING_COMPILE="-pthread -D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6304 THREADING_LINK="-pthread" 6305 ;; 6306 *cygwin*) 6307 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6308 THREADING_LINK="" 6309 ;; 6310 *) 6311 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 6312 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT" 6313 fi 6314 ;; 6315 esac 6316 break 6317 fi 6318 done 6319 LIBS="$tmpLIBS" 6320 CFLAGS="$save_cflags" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_has_pthreads" >&5 6322$as_echo "$mh_has_pthreads" >&6; } 6323fi 6324 6325 6326 6327 6328 6329 6330if test "$mh_has_pthreads" = yes; then 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_exit" >&5 6332$as_echo_n "checking for library containing pthread_exit... " >&6; } 6333if ${ac_cv_search_pthread_exit+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 ac_func_search_save_LIBS=$LIBS 6337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6338/* end confdefs.h. */ 6339 6340/* Override any GCC internal prototype to avoid an error. 6341 Use char because int might match the return type of a GCC 6342 builtin and then its argument prototype would still apply. */ 6343#ifdef __cplusplus 6344extern "C" 6345#endif 6346char pthread_exit (); 6347int 6348main () 6349{ 6350return pthread_exit (); 6351 ; 6352 return 0; 6353} 6354_ACEOF 6355for ac_lib in '' pthread pthreads c_r; do 6356 if test -z "$ac_lib"; then 6357 ac_res="none required" 6358 else 6359 ac_res=-l$ac_lib 6360 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6361 fi 6362 if ac_fn_c_try_link "$LINENO"; then : 6363 ac_cv_search_pthread_exit=$ac_res 6364fi 6365rm -f core conftest.err conftest.$ac_objext \ 6366 conftest$ac_exeext 6367 if ${ac_cv_search_pthread_exit+:} false; then : 6368 break 6369fi 6370done 6371if ${ac_cv_search_pthread_exit+:} false; then : 6372 6373else 6374 ac_cv_search_pthread_exit=no 6375fi 6376rm conftest.$ac_ext 6377LIBS=$ac_func_search_save_LIBS 6378fi 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_exit" >&5 6380$as_echo "$ac_cv_search_pthread_exit" >&6; } 6381ac_res=$ac_cv_search_pthread_exit 6382if test "$ac_res" != no; then : 6383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6384 REGINA_PTHREAD_LIB="$ac_cv_search_pthread_exit" 6385else 6386 REGINA_PTHREAD_LIB="" 6387fi 6388 6389 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 6391$as_echo_n "checking for library containing sem_init... " >&6; } 6392if ${ac_cv_search_sem_init+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 ac_func_search_save_LIBS=$LIBS 6396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397/* end confdefs.h. */ 6398 6399/* Override any GCC internal prototype to avoid an error. 6400 Use char because int might match the return type of a GCC 6401 builtin and then its argument prototype would still apply. */ 6402#ifdef __cplusplus 6403extern "C" 6404#endif 6405char sem_init (); 6406int 6407main () 6408{ 6409return sem_init (); 6410 ; 6411 return 0; 6412} 6413_ACEOF 6414for ac_lib in '' pthread pthreads c_r; do 6415 if test -z "$ac_lib"; then 6416 ac_res="none required" 6417 else 6418 ac_res=-l$ac_lib 6419 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6420 fi 6421 if ac_fn_c_try_link "$LINENO"; then : 6422 ac_cv_search_sem_init=$ac_res 6423fi 6424rm -f core conftest.err conftest.$ac_objext \ 6425 conftest$ac_exeext 6426 if ${ac_cv_search_sem_init+:} false; then : 6427 break 6428fi 6429done 6430if ${ac_cv_search_sem_init+:} false; then : 6431 6432else 6433 ac_cv_search_sem_init=no 6434fi 6435rm conftest.$ac_ext 6436LIBS=$ac_func_search_save_LIBS 6437fi 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 6439$as_echo "$ac_cv_search_sem_init" >&6; } 6440ac_res=$ac_cv_search_sem_init 6441if test "$ac_res" != no; then : 6442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6443 REGINA_PTHREAD_LIB="$ac_cv_search_sem_init" 6444else 6445 REGINA_PTHREAD_LIB="" 6446fi 6447 6448 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then 6449 REGINA_PTHREAD_LIB="" 6450 fi 6451 fi 6452 save_cflags="$CFLAGS" 6453 CFLAGS="$CFLAGS $THREADING_COMPILE" 6454# 6455# Where we know the format of getgrgid_r() function 6456# only test for that case 6457# 6458 if test "$ac_cv_func_getgrgid_r" = yes; then 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 5 args and returns an int" >&5 6460$as_echo_n "checking if getgrgid_r has 5 args and returns an int... " >&6; } 6461if ${mh_cv_getgrgid_r_int5+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466#include <sys/types.h> 6467#include <grp.h> 6468#include <pwd.h> 6469int 6470main () 6471{ 6472 6473struct group *ptr,result; 6474int rc; 6475gid_t gid; 6476char buf[100]; 6477rc = getgrgid_r(gid,&result,buf,sizeof(buf),&ptr); 6478 6479 ; 6480 return 0; 6481} 6482_ACEOF 6483if ac_fn_c_try_compile "$LINENO"; then : 6484 mh_cv_getgrgid_r_int5=yes 6485else 6486 mh_cv_getgrgid_r_int5=no 6487fi 6488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6489fi 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int5" >&5 6491$as_echo "$mh_cv_getgrgid_r_int5" >&6; } 6492if test $mh_cv_getgrgid_r_int5 = yes; then 6493 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_5_PARAMS 1" >>confdefs.h 6494 6495fi 6496 6497 if test "$mh_cv_getgrgid_r_int5" = "no"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 4 args and returns an int" >&5 6499$as_echo_n "checking if getgrgid_r has 4 args and returns an int... " >&6; } 6500if ${mh_cv_getgrgid_r_int4+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505#include <sys/types.h> 6506#include <grp.h> 6507#include <pwd.h> 6508int 6509main () 6510{ 6511 6512struct group *ptr,result; 6513int rc; 6514gid_t gid; 6515char buf[100]; 6516rc = getgrgid_r(gid,&result,buf,sizeof(buf)); 6517 6518 ; 6519 return 0; 6520} 6521_ACEOF 6522if ac_fn_c_try_compile "$LINENO"; then : 6523 mh_cv_getgrgid_r_int4=yes 6524else 6525 mh_cv_getgrgid_r_int4=no 6526fi 6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6528fi 6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int4" >&5 6530$as_echo "$mh_cv_getgrgid_r_int4" >&6; } 6531if test $mh_cv_getgrgid_r_int4 = yes; then 6532 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_4_PARAMS 1" >>confdefs.h 6533 6534fi 6535 6536 if test "$mh_cv_getgrgid_r_int4" = "no"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5 6538$as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; } 6539if ${mh_cv_getgrgid_r_struct+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544#include <sys/types.h> 6545#include <grp.h> 6546#include <pwd.h> 6547int 6548main () 6549{ 6550 6551struct group *ptr,result; 6552int rc; 6553gid_t gid; 6554char buf[100]; 6555ptr = getgrgid_r(gid,&result,buf,sizeof(buf)); 6556 6557 ; 6558 return 0; 6559} 6560_ACEOF 6561if ac_fn_c_try_compile "$LINENO"; then : 6562 mh_cv_getgrgid_r_struct=yes 6563else 6564 mh_cv_getgrgid_r_struct=no 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567fi 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5 6569$as_echo "$mh_cv_getgrgid_r_struct" >&6; } 6570if test $mh_cv_getgrgid_r_struct = yes; then 6571 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h 6572 6573fi 6574 6575 if test "$mh_cv_getgrgid_r_int4" = "no"; then 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5 6577$as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; } 6578if ${mh_cv_getgrgid_r_struct+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583#include <sys/types.h> 6584#include <grp.h> 6585#include <pwd.h> 6586int 6587main () 6588{ 6589 6590struct group *ptr,result; 6591int rc; 6592gid_t gid; 6593char buf[100]; 6594ptr = getgrgid_r(gid,&result,buf,sizeof(buf)); 6595 6596 ; 6597 return 0; 6598} 6599_ACEOF 6600if ac_fn_c_try_compile "$LINENO"; then : 6601 mh_cv_getgrgid_r_struct=yes 6602else 6603 mh_cv_getgrgid_r_struct=no 6604fi 6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6606fi 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5 6608$as_echo "$mh_cv_getgrgid_r_struct" >&6; } 6609if test $mh_cv_getgrgid_r_struct = yes; then 6610 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h 6611 6612fi 6613 6614 fi 6615 fi 6616 fi 6617 fi 6618 if test "$ac_cv_func_getpwuid_r" = yes; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns an int" >&5 6620$as_echo_n "checking if getpwuid_r returns an int... " >&6; } 6621if ${mh_cv_getpwuid_r_int+:} false; then : 6622 $as_echo_n "(cached) " >&6 6623else 6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6625/* end confdefs.h. */ 6626#include <sys/types.h> 6627#include <grp.h> 6628#include <pwd.h> 6629int 6630main () 6631{ 6632 6633struct passwd *ptr,*result; 6634int rc; 6635uid_t uid; 6636char buf[100]; 6637rc = getpwuid_r(uid,&result,buf,sizeof(buf),&ptr); 6638 6639 ; 6640 return 0; 6641} 6642_ACEOF 6643if ac_fn_c_try_compile "$LINENO"; then : 6644 mh_cv_getpwuid_r_int=yes 6645else 6646 mh_cv_getpwuid_r_int=no 6647fi 6648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6649fi 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_int" >&5 6651$as_echo "$mh_cv_getpwuid_r_int" >&6; } 6652if test $mh_cv_getpwuid_r_int = yes; then 6653 $as_echo "#define HAVE_GETPWUID_R_RETURNS_INT 1" >>confdefs.h 6654 6655fi 6656 6657 if test "$mh_cv_getpwuid_r_int" = "no"; then 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns a struct passwd *" >&5 6659$as_echo_n "checking if getpwuid_r returns a struct passwd *... " >&6; } 6660if ${mh_cv_getpwuid_r_struct+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665#include <sys/types.h> 6666#include <grp.h> 6667#include <pwd.h> 6668int 6669main () 6670{ 6671 6672struct group *ptr,*result; 6673int rc; 6674uid_t uid; 6675char buf[100]; 6676ptr = getpwuid_r(uid,&result,buf,sizeof(buf)); 6677 6678 ; 6679 return 0; 6680} 6681_ACEOF 6682if ac_fn_c_try_compile "$LINENO"; then : 6683 mh_cv_getpwuid_r_struct=yes 6684else 6685 mh_cv_getpwuid_r_struct=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_struct" >&5 6690$as_echo "$mh_cv_getpwuid_r_struct" >&6; } 6691if test $mh_cv_getpwuid_r_struct = yes; then 6692 $as_echo "#define HAVE_GETPWUID_R_RETURNS_STRUCT 1" >>confdefs.h 6693 6694fi 6695 6696 fi 6697 fi 6698 if test "$ac_cv_func_gethostbyname_r" = yes; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 6 args and returns an int" >&5 6700$as_echo_n "checking if gethostbyname_r has 6 args and returns an int... " >&6; } 6701if ${mh_cv_gethostbyname_r_int6+:} false; then : 6702 $as_echo_n "(cached) " >&6 6703else 6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705/* end confdefs.h. */ 6706#include <sys/types.h> 6707#include <netdb.h> 6708int 6709main () 6710{ 6711 6712int herr; 6713struct hostent *he,*rc; 6714char buf[8192]; 6715struct hostent retval; 6716rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&he,&herr); 6717 6718 ; 6719 return 0; 6720} 6721_ACEOF 6722if ac_fn_c_try_compile "$LINENO"; then : 6723 mh_cv_gethostbyname_r_int6=yes 6724else 6725 mh_cv_gethostbyname_r_int6=no 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6728fi 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_int6" >&5 6730$as_echo "$mh_cv_gethostbyname_r_int6" >&6; } 6731if test $mh_cv_gethostbyname_r_int6 = yes; then 6732 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_INT_6_PARAMS 1" >>confdefs.h 6733 6734fi 6735 6736 if test "$mh_cv_gethostbyname_r_int6" = "no"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 5 args and returns a struct" >&5 6738$as_echo_n "checking if gethostbyname_r has 5 args and returns a struct... " >&6; } 6739if ${mh_cv_gethostbyname_r_struct5+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743/* end confdefs.h. */ 6744#include <sys/types.h> 6745#include <netdb.h> 6746int 6747main () 6748{ 6749 6750int herr; 6751struct hostent *he,*rc; 6752char buf[8192]; 6753struct hostent retval; 6754rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&herr); 6755 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760if ac_fn_c_try_compile "$LINENO"; then : 6761 mh_cv_gethostbyname_r_struct5=yes 6762else 6763 mh_cv_gethostbyname_r_struct5=no 6764fi 6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6766fi 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_struct5" >&5 6768$as_echo "$mh_cv_gethostbyname_r_struct5" >&6; } 6769if test $mh_cv_gethostbyname_r_struct5 = yes; then 6770 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_STRUCT_5_PARAMS 1" >>confdefs.h 6771 6772fi 6773 6774 fi 6775 fi 6776 6777 CFLAGS="$save_cflags" 6778 REGINAMULTITHREAD="yes" 6779else 6780 REGINAMULTITHREAD="no" 6781fi 6782 6783if test "$build_static" = "yes"; then 6784 STATICLD_SHO="staticld.so.o rxpack.so.o" 6785 if test "$on_qnx4" = "yes"; then 6786 with_regutil="yes" 6787 6788SHLPRE="lib" 6789SHLPST=".a" 6790MODPST=".a" 6791LIBFILE="rexx" 6792SHLFILE="regina" 6793OSAVE=".o.save" 6794OBJ="o" 6795LIBPST=".a" 6796LIBPRE="lib" 6797LIBEXE="ar" 6798GETOPT="" 6799OBJECTS='$('OFILES')' 6800STATIC_LDFLAGS="" 6801AIX_DYN="no" 6802BEOS_DYN="no" 6803DYN_COMP="-DDYNAMIC" 6804 6805SHL_LD="" 6806TEST1EXPORTS="" 6807TEST2EXPORTS="" 6808TEST1EXP="" 6809TEST2EXP="" 6810REGINAEXP="" 6811REGUTILEXPORTS="" 6812REGUTILEXP="" 6813 6814 6815# OTHER_INSTALLS is set to install a non-version numbered shared library 6816# by default; ie. no .\$(ABI) suffix. If the regina executable is not built, 6817# then there is no shared library. Set OTHER_INSTALLS="installabilib" if you 6818# are building a version numbered shared library. 6819OTHER_INSTALLS="installlib" 6820BASE_INSTALL="installbase" 6821BASE_BINARY="binarybase" 6822USE_ABI="no" 6823BUNDLE="" 6824EXTRATARGET="" 6825 6826case "$target" in 6827 *hp-hpux9*) 6828 SYS_DEFS="-D_HPUX_SOURCE" 6829 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h 6830 6831 ;; 6832 *hp-hpux*) 6833 SYS_DEFS="-D_HPUX_SOURCE" 6834 ;; 6835 *ibm-aix*) 6836 SYS_DEFS="-D_ALL_SOURCE -DAIX" 6837# STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp" 6838 ;; 6839 *dec-osf*) 6840 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 6841 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE" 6842 else 6843 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800" 6844 fi 6845 ;; 6846 sparc*sunos*) 6847 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG" 6848 ;; 6849 *atheos* | *syllable*) 6850 BASE_BINARY="atheosbinary" 6851 ;; 6852 *beos* | *haiku*) 6853 BASE_INSTALL="beosinstall" 6854 BASE_BINARY="beosbinary" 6855 OTHER_INSTALLS="" 6856 ;; 6857 *nto-qnx*) 6858 ;; 6859 *qnx*) 6860 SHLPRE="" 6861 SHLPST=".lib" 6862 MODPST=".lib" 6863 # getting duplicate targets 6864 BUNDLE=".junk2" 6865 EEXTRA="-mf -N0x20000 -Q" 6866 LIBPRE="" 6867 LIBPST=".lib" 6868 ;; 6869 *cygwin*) 6870 LIBPRE="lib" 6871 SHLPRE="cyg" 6872 LIBPST=".a" 6873 BASE_INSTALL="cygwininstall" 6874 BASE_BINARY="cygwinbinary" 6875 OTHER_INSTALLS="" 6876 ;; 6877 *apple-darwin*) 6878 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1 6879 # 6880 # Link switches for building "bundles" 6881 # 6882 OTHER_INSTALLS="installlib installmacosx" 6883 ;; 6884 *) 6885 ;; 6886esac 6887LD_RXLIB_A1="${LIBEXE} cr \$(@)" 6888LD_RXLIB_A2="${LIBEXE} cr \$(@)" 6889LD_RXLIB_UTILA="${LIBEXE} cr \$(@)" 6890LD_RXLIB_B1="" 6891LD_RXLIB_B2="" 6892LD_RXLIB_UTILB="" 6893SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)" 6894 6895STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}" 6896 6897LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}" 6898LIBLINK="-L. -l${LIBFILE}" 6899LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser 6900DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC" 6901 6902SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 6903SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET" 6904EXECISER_DEP="${STATICLIB}" 6905OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS" 6906RANLIB_DYNAMIC="-\$(RANLIB) \$(@)" 6907 6908# Check whether --with-testpackage was given. 6909if test "${with_testpackage+set}" = set; then : 6910 withval=$with_testpackage; with_test=$withval 6911else 6912 with_testpackage=no 6913fi 6914 6915MH_FUNC_LIBS="" 6916if test "$with_testpackage" = "yes"; then 6917 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}" 6918 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h 6919 6920 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}" 6921fi 6922 6923# Check whether --with-regutil was given. 6924if test "${with_regutil+set}" = set; then : 6925 withval=$with_regutil; with_regutil=$withval 6926else 6927 with_regutil=no 6928fi 6929 6930if test "$with_regutil" = "yes" -o "xregutil" = "xregutil"; then 6931 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}" 6932 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h 6933 6934fi 6935 6936# Check whether --with-rexxcurses was given. 6937if test "${with_rexxcurses+set}" = set; then : 6938 withval=$with_rexxcurses; with_rexxcurses=$withval 6939else 6940 with_rexxcurses=no 6941fi 6942 6943if test "$with_rexxcurses" = "yes"; then 6944 # Extract the first word of "rxcurses-config", so it can be a program name with args. 6945set dummy rxcurses-config; ac_word=$2 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6947$as_echo_n "checking for $ac_word... " >&6; } 6948if ${ac_cv_prog_rxcurses_config+:} false; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 if test -n "$rxcurses_config"; then 6952 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test. 6953else 6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955for as_dir in $PATH 6956do 6957 IFS=$as_save_IFS 6958 test -z "$as_dir" && as_dir=. 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6961 ac_cv_prog_rxcurses_config="yes" 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965done 6966 done 6967IFS=$as_save_IFS 6968 6969 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no" 6970fi 6971fi 6972rxcurses_config=$ac_cv_prog_rxcurses_config 6973if test -n "$rxcurses_config"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5 6975$as_echo "$rxcurses_config" >&6; } 6976else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978$as_echo "no" >&6; } 6979fi 6980 6981 6982 if test "$ac_cv_prog_rxcurses_config" = yes; then 6983 EXTRA_LIB=`rxcurses-config --libs-static` 6984 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 6985 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h 6986 6987 else 6988 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5 6989 fi 6990fi 6991 6992# Check whether --with-rexxtk was given. 6993if test "${with_rexxtk+set}" = set; then : 6994 withval=$with_rexxtk; with_rexxtk=$withval 6995else 6996 with_rexxtk=no 6997fi 6998 6999if test "$with_rexxtk" = "yes"; then 7000 # Extract the first word of "rexxtk-config", so it can be a program name with args. 7001set dummy rexxtk-config; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_prog_rexxtk_config+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if test -n "$rexxtk_config"; then 7008 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7017 ac_cv_prog_rexxtk_config="yes" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021done 7022 done 7023IFS=$as_save_IFS 7024 7025 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no" 7026fi 7027fi 7028rexxtk_config=$ac_cv_prog_rexxtk_config 7029if test -n "$rexxtk_config"; then 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5 7031$as_echo "$rexxtk_config" >&6; } 7032else 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034$as_echo "no" >&6; } 7035fi 7036 7037 7038 if test "$ac_cv_prog_rexxtk_config" = yes; then 7039 EXTRA_LIB=`rexxtk-config --libs-static` 7040 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7041 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h 7042 7043 else 7044 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5 7045 fi 7046fi 7047 7048# Check whether --with-rexxgd was given. 7049if test "${with_rexxgd+set}" = set; then : 7050 withval=$with_rexxgd; with_rexxgd=$withval 7051else 7052 with_rexxgd=no 7053fi 7054 7055if test "$with_rexxgd" = "yes"; then 7056 # Extract the first word of "rexxgd-config", so it can be a program name with args. 7057set dummy rexxgd-config; ac_word=$2 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7059$as_echo_n "checking for $ac_word... " >&6; } 7060if ${ac_cv_prog_rexxgd_config+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 if test -n "$rexxgd_config"; then 7064 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test. 7065else 7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7067for as_dir in $PATH 7068do 7069 IFS=$as_save_IFS 7070 test -z "$as_dir" && as_dir=. 7071 for ac_exec_ext in '' $ac_executable_extensions; do 7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7073 ac_cv_prog_rexxgd_config="yes" 7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7075 break 2 7076 fi 7077done 7078 done 7079IFS=$as_save_IFS 7080 7081 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no" 7082fi 7083fi 7084rexxgd_config=$ac_cv_prog_rexxgd_config 7085if test -n "$rexxgd_config"; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5 7087$as_echo "$rexxgd_config" >&6; } 7088else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7090$as_echo "no" >&6; } 7091fi 7092 7093 7094 if test "$ac_cv_prog_rexxgd_config" = yes; then 7095 EXTRA_LIB=`rexxgd-config --libs-static` 7096 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7097 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h 7098 7099 else 7100 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5 7101 fi 7102fi 7103 7104# Check whether --with-rexxcurl was given. 7105if test "${with_rexxcurl+set}" = set; then : 7106 withval=$with_rexxcurl; with_rexxcurl=$withval 7107else 7108 with_rexxcurl=no 7109fi 7110 7111if test "$with_rexxcurl" = "yes"; then 7112 # Extract the first word of "rexxcurl-config", so it can be a program name with args. 7113set dummy rexxcurl-config; ac_word=$2 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115$as_echo_n "checking for $ac_word... " >&6; } 7116if ${ac_cv_prog_rexxcurl_config+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 if test -n "$rexxcurl_config"; then 7120 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test. 7121else 7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123for as_dir in $PATH 7124do 7125 IFS=$as_save_IFS 7126 test -z "$as_dir" && as_dir=. 7127 for ac_exec_ext in '' $ac_executable_extensions; do 7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7129 ac_cv_prog_rexxcurl_config="yes" 7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7131 break 2 7132 fi 7133done 7134 done 7135IFS=$as_save_IFS 7136 7137 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no" 7138fi 7139fi 7140rexxcurl_config=$ac_cv_prog_rexxcurl_config 7141if test -n "$rexxcurl_config"; then 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5 7143$as_echo "$rexxcurl_config" >&6; } 7144else 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7146$as_echo "no" >&6; } 7147fi 7148 7149 7150 if test "$ac_cv_prog_rexxcurl_config" = yes; then 7151 EXTRA_LIB=`rexxcurl-config --libs-static` 7152 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7153 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h 7154 7155 else 7156 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5 7157 fi 7158fi 7159 7160# Check whether --with-rexxsql was given. 7161if test "${with_rexxsql+set}" = set; then : 7162 withval=$with_rexxsql; with_rexxsql=$withval 7163else 7164 with_rexxsql=no 7165fi 7166 7167if test "$with_rexxsql" = "yes"; then 7168 # Extract the first word of "rexxsql-config", so it can be a program name with args. 7169set dummy rexxsql-config; ac_word=$2 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7171$as_echo_n "checking for $ac_word... " >&6; } 7172if ${ac_cv_prog_rexxsql_config+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 if test -n "$rexxsql_config"; then 7176 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7185 ac_cv_prog_rexxsql_config="yes" 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190 done 7191IFS=$as_save_IFS 7192 7193 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no" 7194fi 7195fi 7196rexxsql_config=$ac_cv_prog_rexxsql_config 7197if test -n "$rexxsql_config"; then 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5 7199$as_echo "$rexxsql_config" >&6; } 7200else 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202$as_echo "no" >&6; } 7203fi 7204 7205 7206 if test "$ac_cv_prog_rexxsql_config" = yes; then 7207 EXTRA_LIB=`rexxsql-config --libs-static` 7208 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7209 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h 7210 7211 else 7212 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5 7213 fi 7214fi 7215 7216# Check whether --with-rexxeec was given. 7217if test "${with_rexxeec+set}" = set; then : 7218 withval=$with_rexxeec; with_rexxeec=$withval 7219else 7220 with_rexxeec=no 7221fi 7222 7223if test "$with_rexxeec" = "yes"; then 7224 # Extract the first word of "rexxeec-config", so it can be a program name with args. 7225set dummy rexxeec-config; ac_word=$2 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227$as_echo_n "checking for $ac_word... " >&6; } 7228if ${ac_cv_prog_rexxeec_config+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 if test -n "$rexxeec_config"; then 7232 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test. 7233else 7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235for as_dir in $PATH 7236do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7241 ac_cv_prog_rexxeec_config="yes" 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245done 7246 done 7247IFS=$as_save_IFS 7248 7249 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no" 7250fi 7251fi 7252rexxeec_config=$ac_cv_prog_rexxeec_config 7253if test -n "$rexxeec_config"; then 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5 7255$as_echo "$rexxeec_config" >&6; } 7256else 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7258$as_echo "no" >&6; } 7259fi 7260 7261 7262 if test "$ac_cv_prog_rexxeec_config" = yes; then 7263 EXTRA_LIB=`rexxeec-config --libs-static` 7264 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7265 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h 7266 7267 else 7268 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5 7269 fi 7270fi 7271 7272# Check whether --with-rexxisam was given. 7273if test "${with_rexxisam+set}" = set; then : 7274 withval=$with_rexxisam; with_rexxisam=$withval 7275else 7276 with_rexxisam=no 7277fi 7278 7279if test "$with_rexxisam" = "yes"; then 7280 # Extract the first word of "rexxisam-config", so it can be a program name with args. 7281set dummy rexxisam-config; ac_word=$2 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7283$as_echo_n "checking for $ac_word... " >&6; } 7284if ${ac_cv_prog_rexxisam_config+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 if test -n "$rexxisam_config"; then 7288 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test. 7289else 7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 test -z "$as_dir" && as_dir=. 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7297 ac_cv_prog_rexxisam_config="yes" 7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7299 break 2 7300 fi 7301done 7302 done 7303IFS=$as_save_IFS 7304 7305 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no" 7306fi 7307fi 7308rexxisam_config=$ac_cv_prog_rexxisam_config 7309if test -n "$rexxisam_config"; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5 7311$as_echo "$rexxisam_config" >&6; } 7312else 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314$as_echo "no" >&6; } 7315fi 7316 7317 7318 if test "$ac_cv_prog_rexxisam_config" = yes; then 7319 EXTRA_LIB=`rexxisam-config --libs-static` 7320 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7321 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h 7322 7323 else 7324 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5 7325 fi 7326fi 7327 7328# Check whether --with-rxsock was given. 7329if test "${with_rxsock+set}" = set; then : 7330 withval=$with_rxsock; with_rxsock=$withval 7331else 7332 with_rxsock=no 7333fi 7334 7335if test "$with_rxsock" = "yes"; then 7336 # Extract the first word of "rxsock-config", so it can be a program name with args. 7337set dummy rxsock-config; ac_word=$2 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if ${ac_cv_prog_rxsock_config+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$rxsock_config"; then 7344 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7353 ac_cv_prog_rxsock_config="yes" 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358 done 7359IFS=$as_save_IFS 7360 7361 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no" 7362fi 7363fi 7364rxsock_config=$ac_cv_prog_rxsock_config 7365if test -n "$rxsock_config"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5 7367$as_echo "$rxsock_config" >&6; } 7368else 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 7374 if test "$ac_cv_prog_rxsock_config" = yes; then 7375 EXTRA_LIB=`rxsock-config --libs-static` 7376 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7377 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h 7378 7379 else 7380 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5 7381 fi 7382fi 7383 7384# Check whether --with-rexxdw was given. 7385if test "${with_rexxdw+set}" = set; then : 7386 withval=$with_rexxdw; with_rexxdw=$withval 7387else 7388 with_rexxdw=no 7389fi 7390 7391if test "$with_rexxdw" = "yes"; then 7392 # Extract the first word of "rexxdw-config", so it can be a program name with args. 7393set dummy rexxdw-config; ac_word=$2 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7395$as_echo_n "checking for $ac_word... " >&6; } 7396if ${ac_cv_prog_rexxdw_config+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test -n "$rexxdw_config"; then 7400 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test. 7401else 7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7403for as_dir in $PATH 7404do 7405 IFS=$as_save_IFS 7406 test -z "$as_dir" && as_dir=. 7407 for ac_exec_ext in '' $ac_executable_extensions; do 7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7409 ac_cv_prog_rexxdw_config="yes" 7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7411 break 2 7412 fi 7413done 7414 done 7415IFS=$as_save_IFS 7416 7417 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no" 7418fi 7419fi 7420rexxdw_config=$ac_cv_prog_rexxdw_config 7421if test -n "$rexxdw_config"; then 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5 7423$as_echo "$rexxdw_config" >&6; } 7424else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426$as_echo "no" >&6; } 7427fi 7428 7429 7430 if test "$ac_cv_prog_rexxdw_config" = yes; then 7431 EXTRA_LIB=`rexxdw-config --libs-static` 7432 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7433 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h 7434 7435 else 7436 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5 7437 fi 7438fi 7439 7440# Check whether --with-rexxcsv was given. 7441if test "${with_rexxcsv+set}" = set; then : 7442 withval=$with_rexxcsv; with_rexxcsv=$withval 7443else 7444 with_rexxcsv=no 7445fi 7446 7447if test "$with_rexxcsv" = "yes"; then 7448 # Extract the first word of "rexxcsv-config", so it can be a program name with args. 7449set dummy rexxcsv-config; ac_word=$2 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451$as_echo_n "checking for $ac_word... " >&6; } 7452if ${ac_cv_prog_rexxcsv_config+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 if test -n "$rexxcsv_config"; then 7456 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test. 7457else 7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7465 ac_cv_prog_rexxcsv_config="yes" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470 done 7471IFS=$as_save_IFS 7472 7473 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no" 7474fi 7475fi 7476rexxcsv_config=$ac_cv_prog_rexxcsv_config 7477if test -n "$rexxcsv_config"; then 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5 7479$as_echo "$rexxcsv_config" >&6; } 7480else 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7482$as_echo "no" >&6; } 7483fi 7484 7485 7486 if test "$ac_cv_prog_rexxcsv_config" = yes; then 7487 EXTRA_LIB=`rexxcsv-config --libs-static` 7488 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7489 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h 7490 7491 else 7492 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5 7493 fi 7494fi 7495 7496# Check whether --with-rexxpdf was given. 7497if test "${with_rexxpdf+set}" = set; then : 7498 withval=$with_rexxpdf; with_rexxpdf=$withval 7499else 7500 with_rexxpdf=no 7501fi 7502 7503if test "$with_rexxpdf" = "yes"; then 7504 # Extract the first word of "rexxpdf-config", so it can be a program name with args. 7505set dummy rexxpdf-config; ac_word=$2 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7507$as_echo_n "checking for $ac_word... " >&6; } 7508if ${ac_cv_prog_rexxpdf_config+:} false; then : 7509 $as_echo_n "(cached) " >&6 7510else 7511 if test -n "$rexxpdf_config"; then 7512 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test. 7513else 7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7515for as_dir in $PATH 7516do 7517 IFS=$as_save_IFS 7518 test -z "$as_dir" && as_dir=. 7519 for ac_exec_ext in '' $ac_executable_extensions; do 7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7521 ac_cv_prog_rexxpdf_config="yes" 7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7523 break 2 7524 fi 7525done 7526 done 7527IFS=$as_save_IFS 7528 7529 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no" 7530fi 7531fi 7532rexxpdf_config=$ac_cv_prog_rexxpdf_config 7533if test -n "$rexxpdf_config"; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5 7535$as_echo "$rexxpdf_config" >&6; } 7536else 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7538$as_echo "no" >&6; } 7539fi 7540 7541 7542 if test "$ac_cv_prog_rexxpdf_config" = yes; then 7543 EXTRA_LIB=`rexxpdf-config --libs-static` 7544 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7545 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h 7546 7547 else 7548 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5 7549 fi 7550fi 7551 7552LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}" 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 else 7606 7607SHLPRE="lib" 7608SHLPST=".a" 7609MODPST=".a" 7610LIBFILE="rexx" 7611SHLFILE="regina" 7612OSAVE=".o.save" 7613OBJ="o" 7614LIBPST=".a" 7615LIBPRE="lib" 7616LIBEXE="ar" 7617GETOPT="" 7618OBJECTS='$('OFILES')' 7619STATIC_LDFLAGS="" 7620AIX_DYN="no" 7621BEOS_DYN="no" 7622DYN_COMP="-DDYNAMIC" 7623 7624SHL_LD="" 7625TEST1EXPORTS="" 7626TEST2EXPORTS="" 7627TEST1EXP="" 7628TEST2EXP="" 7629REGINAEXP="" 7630REGUTILEXPORTS="" 7631REGUTILEXP="" 7632 7633 7634# OTHER_INSTALLS is set to install a non-version numbered shared library 7635# by default; ie. no .\$(ABI) suffix. If the regina executable is not built, 7636# then there is no shared library. Set OTHER_INSTALLS="installabilib" if you 7637# are building a version numbered shared library. 7638OTHER_INSTALLS="installlib" 7639BASE_INSTALL="installbase" 7640BASE_BINARY="binarybase" 7641USE_ABI="no" 7642BUNDLE="" 7643EXTRATARGET="" 7644 7645case "$target" in 7646 *hp-hpux9*) 7647 SYS_DEFS="-D_HPUX_SOURCE" 7648 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h 7649 7650 ;; 7651 *hp-hpux*) 7652 SYS_DEFS="-D_HPUX_SOURCE" 7653 ;; 7654 *ibm-aix*) 7655 SYS_DEFS="-D_ALL_SOURCE -DAIX" 7656# STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp" 7657 ;; 7658 *dec-osf*) 7659 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 7660 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE" 7661 else 7662 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800" 7663 fi 7664 ;; 7665 sparc*sunos*) 7666 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG" 7667 ;; 7668 *atheos* | *syllable*) 7669 BASE_BINARY="atheosbinary" 7670 ;; 7671 *beos* | *haiku*) 7672 BASE_INSTALL="beosinstall" 7673 BASE_BINARY="beosbinary" 7674 OTHER_INSTALLS="" 7675 ;; 7676 *nto-qnx*) 7677 ;; 7678 *qnx*) 7679 SHLPRE="" 7680 SHLPST=".lib" 7681 MODPST=".lib" 7682 # getting duplicate targets 7683 BUNDLE=".junk2" 7684 EEXTRA="-mf -N0x20000 -Q" 7685 LIBPRE="" 7686 LIBPST=".lib" 7687 ;; 7688 *cygwin*) 7689 LIBPRE="lib" 7690 SHLPRE="cyg" 7691 LIBPST=".a" 7692 BASE_INSTALL="cygwininstall" 7693 BASE_BINARY="cygwinbinary" 7694 OTHER_INSTALLS="" 7695 ;; 7696 *apple-darwin*) 7697 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1 7698 # 7699 # Link switches for building "bundles" 7700 # 7701 OTHER_INSTALLS="installlib installmacosx" 7702 ;; 7703 *) 7704 ;; 7705esac 7706LD_RXLIB_A1="${LIBEXE} cr \$(@)" 7707LD_RXLIB_A2="${LIBEXE} cr \$(@)" 7708LD_RXLIB_UTILA="${LIBEXE} cr \$(@)" 7709LD_RXLIB_B1="" 7710LD_RXLIB_B2="" 7711LD_RXLIB_UTILB="" 7712SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)" 7713 7714STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}" 7715 7716LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}" 7717LIBLINK="-L. -l${LIBFILE}" 7718LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser 7719DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC" 7720 7721SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 7722SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET" 7723EXECISER_DEP="${STATICLIB}" 7724OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS" 7725RANLIB_DYNAMIC="-\$(RANLIB) \$(@)" 7726 7727# Check whether --with-testpackage was given. 7728if test "${with_testpackage+set}" = set; then : 7729 withval=$with_testpackage; with_test=$withval 7730else 7731 with_testpackage=no 7732fi 7733 7734MH_FUNC_LIBS="" 7735if test "$with_testpackage" = "yes"; then 7736 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}" 7737 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h 7738 7739 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}" 7740fi 7741 7742# Check whether --with-regutil was given. 7743if test "${with_regutil+set}" = set; then : 7744 withval=$with_regutil; with_regutil=$withval 7745else 7746 with_regutil=no 7747fi 7748 7749if test "$with_regutil" = "yes" -o "x" = "xregutil"; then 7750 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}" 7751 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h 7752 7753fi 7754 7755# Check whether --with-rexxcurses was given. 7756if test "${with_rexxcurses+set}" = set; then : 7757 withval=$with_rexxcurses; with_rexxcurses=$withval 7758else 7759 with_rexxcurses=no 7760fi 7761 7762if test "$with_rexxcurses" = "yes"; then 7763 # Extract the first word of "rxcurses-config", so it can be a program name with args. 7764set dummy rxcurses-config; ac_word=$2 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7766$as_echo_n "checking for $ac_word... " >&6; } 7767if ${ac_cv_prog_rxcurses_config+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 if test -n "$rxcurses_config"; then 7771 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test. 7772else 7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7774for as_dir in $PATH 7775do 7776 IFS=$as_save_IFS 7777 test -z "$as_dir" && as_dir=. 7778 for ac_exec_ext in '' $ac_executable_extensions; do 7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7780 ac_cv_prog_rxcurses_config="yes" 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7782 break 2 7783 fi 7784done 7785 done 7786IFS=$as_save_IFS 7787 7788 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no" 7789fi 7790fi 7791rxcurses_config=$ac_cv_prog_rxcurses_config 7792if test -n "$rxcurses_config"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5 7794$as_echo "$rxcurses_config" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799 7800 7801 if test "$ac_cv_prog_rxcurses_config" = yes; then 7802 EXTRA_LIB=`rxcurses-config --libs-static` 7803 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7804 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h 7805 7806 else 7807 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5 7808 fi 7809fi 7810 7811# Check whether --with-rexxtk was given. 7812if test "${with_rexxtk+set}" = set; then : 7813 withval=$with_rexxtk; with_rexxtk=$withval 7814else 7815 with_rexxtk=no 7816fi 7817 7818if test "$with_rexxtk" = "yes"; then 7819 # Extract the first word of "rexxtk-config", so it can be a program name with args. 7820set dummy rexxtk-config; ac_word=$2 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7822$as_echo_n "checking for $ac_word... " >&6; } 7823if ${ac_cv_prog_rexxtk_config+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 if test -n "$rexxtk_config"; then 7827 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test. 7828else 7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7830for as_dir in $PATH 7831do 7832 IFS=$as_save_IFS 7833 test -z "$as_dir" && as_dir=. 7834 for ac_exec_ext in '' $ac_executable_extensions; do 7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7836 ac_cv_prog_rexxtk_config="yes" 7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7838 break 2 7839 fi 7840done 7841 done 7842IFS=$as_save_IFS 7843 7844 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no" 7845fi 7846fi 7847rexxtk_config=$ac_cv_prog_rexxtk_config 7848if test -n "$rexxtk_config"; then 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5 7850$as_echo "$rexxtk_config" >&6; } 7851else 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7853$as_echo "no" >&6; } 7854fi 7855 7856 7857 if test "$ac_cv_prog_rexxtk_config" = yes; then 7858 EXTRA_LIB=`rexxtk-config --libs-static` 7859 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7860 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h 7861 7862 else 7863 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5 7864 fi 7865fi 7866 7867# Check whether --with-rexxgd was given. 7868if test "${with_rexxgd+set}" = set; then : 7869 withval=$with_rexxgd; with_rexxgd=$withval 7870else 7871 with_rexxgd=no 7872fi 7873 7874if test "$with_rexxgd" = "yes"; then 7875 # Extract the first word of "rexxgd-config", so it can be a program name with args. 7876set dummy rexxgd-config; ac_word=$2 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7878$as_echo_n "checking for $ac_word... " >&6; } 7879if ${ac_cv_prog_rexxgd_config+:} false; then : 7880 $as_echo_n "(cached) " >&6 7881else 7882 if test -n "$rexxgd_config"; then 7883 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test. 7884else 7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7886for as_dir in $PATH 7887do 7888 IFS=$as_save_IFS 7889 test -z "$as_dir" && as_dir=. 7890 for ac_exec_ext in '' $ac_executable_extensions; do 7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7892 ac_cv_prog_rexxgd_config="yes" 7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7894 break 2 7895 fi 7896done 7897 done 7898IFS=$as_save_IFS 7899 7900 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no" 7901fi 7902fi 7903rexxgd_config=$ac_cv_prog_rexxgd_config 7904if test -n "$rexxgd_config"; then 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5 7906$as_echo "$rexxgd_config" >&6; } 7907else 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7909$as_echo "no" >&6; } 7910fi 7911 7912 7913 if test "$ac_cv_prog_rexxgd_config" = yes; then 7914 EXTRA_LIB=`rexxgd-config --libs-static` 7915 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7916 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h 7917 7918 else 7919 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5 7920 fi 7921fi 7922 7923# Check whether --with-rexxcurl was given. 7924if test "${with_rexxcurl+set}" = set; then : 7925 withval=$with_rexxcurl; with_rexxcurl=$withval 7926else 7927 with_rexxcurl=no 7928fi 7929 7930if test "$with_rexxcurl" = "yes"; then 7931 # Extract the first word of "rexxcurl-config", so it can be a program name with args. 7932set dummy rexxcurl-config; ac_word=$2 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934$as_echo_n "checking for $ac_word... " >&6; } 7935if ${ac_cv_prog_rexxcurl_config+:} false; then : 7936 $as_echo_n "(cached) " >&6 7937else 7938 if test -n "$rexxcurl_config"; then 7939 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test. 7940else 7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7942for as_dir in $PATH 7943do 7944 IFS=$as_save_IFS 7945 test -z "$as_dir" && as_dir=. 7946 for ac_exec_ext in '' $ac_executable_extensions; do 7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7948 ac_cv_prog_rexxcurl_config="yes" 7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7950 break 2 7951 fi 7952done 7953 done 7954IFS=$as_save_IFS 7955 7956 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no" 7957fi 7958fi 7959rexxcurl_config=$ac_cv_prog_rexxcurl_config 7960if test -n "$rexxcurl_config"; then 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5 7962$as_echo "$rexxcurl_config" >&6; } 7963else 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7965$as_echo "no" >&6; } 7966fi 7967 7968 7969 if test "$ac_cv_prog_rexxcurl_config" = yes; then 7970 EXTRA_LIB=`rexxcurl-config --libs-static` 7971 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 7972 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h 7973 7974 else 7975 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5 7976 fi 7977fi 7978 7979# Check whether --with-rexxsql was given. 7980if test "${with_rexxsql+set}" = set; then : 7981 withval=$with_rexxsql; with_rexxsql=$withval 7982else 7983 with_rexxsql=no 7984fi 7985 7986if test "$with_rexxsql" = "yes"; then 7987 # Extract the first word of "rexxsql-config", so it can be a program name with args. 7988set dummy rexxsql-config; ac_word=$2 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7990$as_echo_n "checking for $ac_word... " >&6; } 7991if ${ac_cv_prog_rexxsql_config+:} false; then : 7992 $as_echo_n "(cached) " >&6 7993else 7994 if test -n "$rexxsql_config"; then 7995 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test. 7996else 7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7998for as_dir in $PATH 7999do 8000 IFS=$as_save_IFS 8001 test -z "$as_dir" && as_dir=. 8002 for ac_exec_ext in '' $ac_executable_extensions; do 8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8004 ac_cv_prog_rexxsql_config="yes" 8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8006 break 2 8007 fi 8008done 8009 done 8010IFS=$as_save_IFS 8011 8012 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no" 8013fi 8014fi 8015rexxsql_config=$ac_cv_prog_rexxsql_config 8016if test -n "$rexxsql_config"; then 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5 8018$as_echo "$rexxsql_config" >&6; } 8019else 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021$as_echo "no" >&6; } 8022fi 8023 8024 8025 if test "$ac_cv_prog_rexxsql_config" = yes; then 8026 EXTRA_LIB=`rexxsql-config --libs-static` 8027 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8028 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h 8029 8030 else 8031 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5 8032 fi 8033fi 8034 8035# Check whether --with-rexxeec was given. 8036if test "${with_rexxeec+set}" = set; then : 8037 withval=$with_rexxeec; with_rexxeec=$withval 8038else 8039 with_rexxeec=no 8040fi 8041 8042if test "$with_rexxeec" = "yes"; then 8043 # Extract the first word of "rexxeec-config", so it can be a program name with args. 8044set dummy rexxeec-config; ac_word=$2 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8046$as_echo_n "checking for $ac_word... " >&6; } 8047if ${ac_cv_prog_rexxeec_config+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 if test -n "$rexxeec_config"; then 8051 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test. 8052else 8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8054for as_dir in $PATH 8055do 8056 IFS=$as_save_IFS 8057 test -z "$as_dir" && as_dir=. 8058 for ac_exec_ext in '' $ac_executable_extensions; do 8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8060 ac_cv_prog_rexxeec_config="yes" 8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8062 break 2 8063 fi 8064done 8065 done 8066IFS=$as_save_IFS 8067 8068 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no" 8069fi 8070fi 8071rexxeec_config=$ac_cv_prog_rexxeec_config 8072if test -n "$rexxeec_config"; then 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5 8074$as_echo "$rexxeec_config" >&6; } 8075else 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8077$as_echo "no" >&6; } 8078fi 8079 8080 8081 if test "$ac_cv_prog_rexxeec_config" = yes; then 8082 EXTRA_LIB=`rexxeec-config --libs-static` 8083 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8084 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h 8085 8086 else 8087 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5 8088 fi 8089fi 8090 8091# Check whether --with-rexxisam was given. 8092if test "${with_rexxisam+set}" = set; then : 8093 withval=$with_rexxisam; with_rexxisam=$withval 8094else 8095 with_rexxisam=no 8096fi 8097 8098if test "$with_rexxisam" = "yes"; then 8099 # Extract the first word of "rexxisam-config", so it can be a program name with args. 8100set dummy rexxisam-config; ac_word=$2 8101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102$as_echo_n "checking for $ac_word... " >&6; } 8103if ${ac_cv_prog_rexxisam_config+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 if test -n "$rexxisam_config"; then 8107 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test. 8108else 8109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8110for as_dir in $PATH 8111do 8112 IFS=$as_save_IFS 8113 test -z "$as_dir" && as_dir=. 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_rexxisam_config="yes" 8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no" 8125fi 8126fi 8127rexxisam_config=$ac_cv_prog_rexxisam_config 8128if test -n "$rexxisam_config"; then 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5 8130$as_echo "$rexxisam_config" >&6; } 8131else 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8133$as_echo "no" >&6; } 8134fi 8135 8136 8137 if test "$ac_cv_prog_rexxisam_config" = yes; then 8138 EXTRA_LIB=`rexxisam-config --libs-static` 8139 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8140 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h 8141 8142 else 8143 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5 8144 fi 8145fi 8146 8147# Check whether --with-rxsock was given. 8148if test "${with_rxsock+set}" = set; then : 8149 withval=$with_rxsock; with_rxsock=$withval 8150else 8151 with_rxsock=no 8152fi 8153 8154if test "$with_rxsock" = "yes"; then 8155 # Extract the first word of "rxsock-config", so it can be a program name with args. 8156set dummy rxsock-config; ac_word=$2 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8158$as_echo_n "checking for $ac_word... " >&6; } 8159if ${ac_cv_prog_rxsock_config+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161else 8162 if test -n "$rxsock_config"; then 8163 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test. 8164else 8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8166for as_dir in $PATH 8167do 8168 IFS=$as_save_IFS 8169 test -z "$as_dir" && as_dir=. 8170 for ac_exec_ext in '' $ac_executable_extensions; do 8171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8172 ac_cv_prog_rxsock_config="yes" 8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8174 break 2 8175 fi 8176done 8177 done 8178IFS=$as_save_IFS 8179 8180 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no" 8181fi 8182fi 8183rxsock_config=$ac_cv_prog_rxsock_config 8184if test -n "$rxsock_config"; then 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5 8186$as_echo "$rxsock_config" >&6; } 8187else 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8189$as_echo "no" >&6; } 8190fi 8191 8192 8193 if test "$ac_cv_prog_rxsock_config" = yes; then 8194 EXTRA_LIB=`rxsock-config --libs-static` 8195 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8196 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h 8197 8198 else 8199 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5 8200 fi 8201fi 8202 8203# Check whether --with-rexxdw was given. 8204if test "${with_rexxdw+set}" = set; then : 8205 withval=$with_rexxdw; with_rexxdw=$withval 8206else 8207 with_rexxdw=no 8208fi 8209 8210if test "$with_rexxdw" = "yes"; then 8211 # Extract the first word of "rexxdw-config", so it can be a program name with args. 8212set dummy rexxdw-config; ac_word=$2 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8214$as_echo_n "checking for $ac_word... " >&6; } 8215if ${ac_cv_prog_rexxdw_config+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217else 8218 if test -n "$rexxdw_config"; then 8219 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test. 8220else 8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8222for as_dir in $PATH 8223do 8224 IFS=$as_save_IFS 8225 test -z "$as_dir" && as_dir=. 8226 for ac_exec_ext in '' $ac_executable_extensions; do 8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8228 ac_cv_prog_rexxdw_config="yes" 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8230 break 2 8231 fi 8232done 8233 done 8234IFS=$as_save_IFS 8235 8236 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no" 8237fi 8238fi 8239rexxdw_config=$ac_cv_prog_rexxdw_config 8240if test -n "$rexxdw_config"; then 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5 8242$as_echo "$rexxdw_config" >&6; } 8243else 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8245$as_echo "no" >&6; } 8246fi 8247 8248 8249 if test "$ac_cv_prog_rexxdw_config" = yes; then 8250 EXTRA_LIB=`rexxdw-config --libs-static` 8251 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8252 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h 8253 8254 else 8255 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5 8256 fi 8257fi 8258 8259# Check whether --with-rexxcsv was given. 8260if test "${with_rexxcsv+set}" = set; then : 8261 withval=$with_rexxcsv; with_rexxcsv=$withval 8262else 8263 with_rexxcsv=no 8264fi 8265 8266if test "$with_rexxcsv" = "yes"; then 8267 # Extract the first word of "rexxcsv-config", so it can be a program name with args. 8268set dummy rexxcsv-config; ac_word=$2 8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8270$as_echo_n "checking for $ac_word... " >&6; } 8271if ${ac_cv_prog_rexxcsv_config+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 if test -n "$rexxcsv_config"; then 8275 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test. 8276else 8277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8278for as_dir in $PATH 8279do 8280 IFS=$as_save_IFS 8281 test -z "$as_dir" && as_dir=. 8282 for ac_exec_ext in '' $ac_executable_extensions; do 8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8284 ac_cv_prog_rexxcsv_config="yes" 8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8286 break 2 8287 fi 8288done 8289 done 8290IFS=$as_save_IFS 8291 8292 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no" 8293fi 8294fi 8295rexxcsv_config=$ac_cv_prog_rexxcsv_config 8296if test -n "$rexxcsv_config"; then 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5 8298$as_echo "$rexxcsv_config" >&6; } 8299else 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8301$as_echo "no" >&6; } 8302fi 8303 8304 8305 if test "$ac_cv_prog_rexxcsv_config" = yes; then 8306 EXTRA_LIB=`rexxcsv-config --libs-static` 8307 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8308 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h 8309 8310 else 8311 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5 8312 fi 8313fi 8314 8315# Check whether --with-rexxpdf was given. 8316if test "${with_rexxpdf+set}" = set; then : 8317 withval=$with_rexxpdf; with_rexxpdf=$withval 8318else 8319 with_rexxpdf=no 8320fi 8321 8322if test "$with_rexxpdf" = "yes"; then 8323 # Extract the first word of "rexxpdf-config", so it can be a program name with args. 8324set dummy rexxpdf-config; ac_word=$2 8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8326$as_echo_n "checking for $ac_word... " >&6; } 8327if ${ac_cv_prog_rexxpdf_config+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329else 8330 if test -n "$rexxpdf_config"; then 8331 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test. 8332else 8333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8334for as_dir in $PATH 8335do 8336 IFS=$as_save_IFS 8337 test -z "$as_dir" && as_dir=. 8338 for ac_exec_ext in '' $ac_executable_extensions; do 8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8340 ac_cv_prog_rexxpdf_config="yes" 8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8342 break 2 8343 fi 8344done 8345 done 8346IFS=$as_save_IFS 8347 8348 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no" 8349fi 8350fi 8351rexxpdf_config=$ac_cv_prog_rexxpdf_config 8352if test -n "$rexxpdf_config"; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5 8354$as_echo "$rexxpdf_config" >&6; } 8355else 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8357$as_echo "no" >&6; } 8358fi 8359 8360 8361 if test "$ac_cv_prog_rexxpdf_config" = yes; then 8362 EXTRA_LIB=`rexxpdf-config --libs-static` 8363 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB" 8364 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h 8365 8366 else 8367 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5 8368 fi 8369fi 8370 8371LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}" 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 fi 8425else 8426 STATICLD_SHO="" 8427 8428 8429 8430 8431 8432 8433SHLPRE="lib" 8434LIBFILE="regina" 8435SHLFILE="regina" 8436OSAVE=".o.save" 8437OBJ="o" 8438LIBPST=".a" 8439LIBPRE="lib" 8440LIBEXE="ar" 8441GETOPT="" 8442OBJECTS='$('OFILES')' 8443STATIC_LDFLAGS="" 8444AIX_DYN="no" 8445BEOS_DYN="no" 8446 8447 8448case "$target" in 8449 *hp-hpux9*) 8450 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89 8451 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h 8452 8453 ;; 8454 *hp-hpux*) 8455 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 8456 SYS_DEFS="-D_HPUX_SOURCE" 8457 else 8458 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89 8459 fi 8460 ;; 8461 *ibm-aix3*|*ibm-aix4.1*) 8462 SYS_DEFS="-D_ALL_SOURCE -DAIX" 8463 ;; 8464 *ibm-aix*) 8465 SYS_DEFS="-D_ALL_SOURCE -DAIX" 8466 DYN_COMP="-DDYNAMIC" 8467 ;; 8468 *dec-osf*) 8469 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 8470 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE" 8471 else 8472 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800" 8473 fi 8474 ;; 8475 sparc*sunos*) 8476 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG" 8477 ;; 8478 *nto-qnx*) 8479 ;; 8480 *skyos*) 8481 DYN_COMP="-DDYNAMIC" 8482 ;; 8483 *qnx*) 8484 LIBPRE="" 8485 LIBPST=".lib" 8486 SHLPRE="" 8487 SHLPST=".lib" 8488 SHLFILE="rexx" 8489 ;; 8490 *cygwin*) 8491 LIBPRE="lib" 8492 SHLPRE="cyg" 8493 DYN_COMP="-DDYNAMIC" 8494 LIBPST=".a" 8495 ;; 8496 *darwin*) 8497 DYN_COMP="-fno-common" 8498 ;; 8499esac 8500 8501if test "$DYN_COMP" = ""; then 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for a dynamic object" >&5 8503$as_echo_n "checking compiler flags for a dynamic object... " >&6; } 8504 8505cat > conftest.$ac_ext <<EOF 8506#line 8493 "configure" 8507int a=0 8508EOF 8509 8510 DYN_COMP="" 8511 mh_cv_stop=no 8512 save_cflags="$CFLAGS" 8513 mh_cv_flags="-fPIC -KPIC +Z" 8514 for a in $mh_cv_flags; do 8515 CFLAGS="-c $a" 8516 8517 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1' 8518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5 8519 (eval $mh_compile) 2>&5 8520 ac_status=$? 8521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8522 test $ac_status = 0; }; then 8523 DYN_COMP="" 8524 else 8525 slash="\\" 8526 mh_dyncomp="`egrep -c $slash$a conftest.tmp`" 8527 if test "$mh_dyncomp" = "0"; then 8528 DYN_COMP="$a -DDYNAMIC" 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a" >&5 8530$as_echo "$a" >&6; } 8531 break 8532 else 8533 DYN_COMP="" 8534 fi 8535 fi 8536 done 8537 if test "$DYN_COMP" = ""; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none of $mh_cv_flags supported" >&5 8539$as_echo "none of $mh_cv_flags supported" >&6; } 8540 fi 8541 CFLAGS="$save_cflags" 8542 rm -f conftest.* 8543fi 8544 8545SHL_LD="" 8546TEST1EXPORTS="" 8547TEST2EXPORTS="" 8548TEST1EXP="" 8549TEST2EXP="" 8550REGINAEXP="" 8551REGUTILEXP="" 8552 8553# If the build OS can handle version numbers in the shared library name, 8554# then set SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8555SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 8556 8557# OTHER_INSTALLS is set to install a non-version numbered shared library 8558# by default; ie. no .\$(ABI) suffix. If the regina executable is not built, 8559# then there is no shared library. Set OTHER_INSTALLS="installabilib" if you 8560# are building a version numbered shared library. 8561#RXSTACK_INSTALL="installrxstack" 8562RXSTACK_INSTALL="" 8563OTHER_INSTALLS="installlib" 8564BASE_INSTALL="installbase" 8565BASE_BINARY="binarybase" 8566USE_ABI="no" 8567BUNDLE="" 8568EXTRATARGET="" 8569REGINA_PACKAGE_NAME="regina-rexx" 8570case "$target" in 8571 *hp-hpux*) 8572 SHLPRE="lib" 8573 if test "$ac_cv_prog_CC" = "gcc"; then 8574 LD_RXLIB_A1="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)" 8575 LD_RXLIB_A2="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)" 8576 LD_RXLIB_UTILA="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)" 8577 LD_RXLIB_B1="-L. -l${SHLFILE}" 8578 LD_RXLIB_B2="-L. -l${SHLFILE}" 8579 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 8580 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -fPIC -shared ${LDFLAGS} \$(SHOFILES)" 8581 else 8582 EEXTRA="-Wl,-E" 8583 LD_RXLIB_A1="ld -b -q -n -o \$(@)" 8584 LD_RXLIB_A2="ld -b -q -n -o \$(@)" 8585 LD_RXLIB_UTILA="ld -b -q -n -o \$(@)" 8586 LD_RXLIB_B1="" 8587 LD_RXLIB_B2="" 8588 LD_RXLIB_UTILB="" 8589 DYNAMIC_LDFLAGS="-Wl,+s" 8590 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8591 fi 8592 ;; 8593 *ibm-aix3*) 8594 STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp" 8595 LD_RXLIB_A1="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)" 8596 LD_RXLIB_A2="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)" 8597 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)" 8598 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc" 8599 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc" 8600 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc" 8601 SHLPRE="lib" 8602 TEST1EXPORTS="-bE:test1.exp" 8603 TEST2EXPORTS="-bE:test2.exp" 8604 TEST1EXP="test1.exp" 8605 TEST2EXP="test2.exp" 8606 REGINAEXP="regina.exp" 8607 REGUTILEXP="regutil.exp" 8608 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then 8609 AIX_DYN="yes" 8610 DYN_COMP="-DDYNAMIC" 8611 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE -bT:512 -bH:512 "'$('SHOFILES')'" -lc" 8612 else 8613 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')' 8614 DYN_COMP="" 8615 fi 8616 ;; 8617 *ibm-aix*) 8618# STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp" 8619 SHLPRE="lib" 8620 if test "$ac_cv_prog_CC" = "gcc"; then 8621 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)" 8622 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)" 8623 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)" 8624 LD_RXLIB_B1="-L. -l${SHLFILE}" 8625 LD_RXLIB_B2="-L. -l${SHLFILE}" 8626 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 8627 else 8628 LD_RXLIB_A1="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)" 8629 LD_RXLIB_A2="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)" 8630 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)" 8631 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc" 8632 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc" 8633 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc" 8634 TEST1EXPORTS="-bE:test1.exp" 8635 TEST2EXPORTS="-bE:test2.exp" 8636 TEST1EXP="test1.exp" 8637 TEST2EXP="test2.exp" 8638 REGUTILEXPORTS="-bE:regutil.exp" 8639 REGUTILEXP="regutil.exp" 8640 fi 8641 REGINAEXP="regina.exp" 8642 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then 8643 AIX_DYN="yes" 8644 DYN_COMP="-DDYNAMIC" 8645 if test "$ac_cv_prog_CC" = "gcc"; then 8646 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-bnoentry -Wl,-bE:regina.exp -Wl,-bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)" 8647 else 8648 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)" 8649 fi 8650 else 8651 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')' 8652 DYN_COMP="" 8653 fi 8654 ;; 8655 *dec-osf*) 8656 LD_RXLIB_A1="ld -shared -o \$(@)" 8657 LD_RXLIB_A2="ld -shared -o \$(@)" 8658 LD_RXLIB_UTILA="ld -shared -o \$(@)" 8659 LD_RXLIB_B1="-lc -L. -l${SHLFILE}" 8660 LD_RXLIB_B2="-lc -L. -l${SHLFILE}" 8661 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}" 8662 SHLPRE="lib" 8663 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc" 8664 ;; 8665 *esix*) 8666 LD_RXLIB_A1="ld -G -o \$(@)" 8667 LD_RXLIB_A2="ld -G -o \$(@)" 8668 LD_RXLIB_UTILA="ld -G -o \$(@)" 8669 LD_RXLIB_B1="" 8670 LD_RXLIB_B2="" 8671 LD_RXLIB_UTILB="" 8672 DYNAMIC_LDFLAGS="" 8673 SHLPRE="lib" 8674 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8675 ;; 8676 *dgux*) 8677 LD_RXLIB_A1="ld -G -o \$(@)" 8678 LD_RXLIB_A2="ld -G -o \$(@)" 8679 LD_RXLIB_UTILA="ld -G -o \$(@)" 8680 LD_RXLIB_B1="" 8681 LD_RXLIB_B2="" 8682 LD_RXLIB_UTILB="" 8683 DYNAMIC_LDFLAGS="" 8684 SHLPRE="lib" 8685 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8686 ;; 8687 *pc-sco*) 8688 LD_RXLIB_A1="ld -dy -G -o \$(@)" 8689 LD_RXLIB_A2="ld -dy -G -o \$(@)" 8690 LD_RXLIB_UTILA="ld -dy -G -o \$(@)" 8691 LD_RXLIB_B1="" 8692 LD_RXLIB_B2="" 8693 LD_RXLIB_UTILB="" 8694 DYNAMIC_LDFLAGS="" 8695 SHLPRE="lib" 8696 SHL_LD="ld -dy -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8697 ;; 8698 *solaris*) 8699 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 8700 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8701 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8702 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8703 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8704 else 8705 LD_RXLIB_A1="ld -G ${LDFLAGS} -o \$(@)" 8706 LD_RXLIB_A2="ld -G ${LDFLAGS} -o \$(@)" 8707 LD_RXLIB_UTILA="ld -G ${LDFLAGS} -o \$(@)" 8708 SHL_LD="ld -G ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8709 fi 8710 LD_RXLIB_B1="" 8711 LD_RXLIB_B2="" 8712 LD_RXLIB_UTILB="" 8713 DYNAMIC_LDFLAGS="" 8714 SHLPRE="lib" 8715 ;; 8716 sparc*sunos*) 8717 LD_RXLIB_A1="ld -o \$(@)" 8718 LD_RXLIB_A2="ld -o \$(@)" 8719 LD_RXLIB_UTILA="ld -o \$(@)" 8720 LD_RXLIB_B1="" 8721 LD_RXLIB_B2="" 8722 LD_RXLIB_UTILB="" 8723 SHLPRE="lib" 8724 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8725 ;; 8726 *freebsd* | *dragonfly* ) 8727 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8728 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8729 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8730 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8731 REGINA_PACKAGE_NAME="rexx-regina" 8732 ;; 8733 *openbsd*) 8734 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then 8735 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8736 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8737 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)" 8738 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8739 else 8740 LD_RXLIB_A1="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)" 8741 LD_RXLIB_A2="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)" 8742 LD_RXLIB_UTILA="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)" 8743 LD_RXLIB_B1="-lc -L. -l${SHLFILE}" 8744 LD_RXLIB_B2="-lc -L. -l${SHLFILE}" 8745 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}" 8746 SHL_LD="ld -Bdynamic -Bshareable ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8747 fi 8748 STATIC_LDFLAGS="-static" 8749 SHLPRE="lib" 8750 ;; 8751 *linux*|*kfreebsd*-gnu*) 8752 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)" 8753 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)" 8754 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)" 8755# LD_RXLIB_B1="-L. -l${SHLFILE}" 8756# LD_RXLIB_B2="-L. -l${SHLFILE}" 8757 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8758 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8759 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8760 SHLPRE="lib" 8761 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)" 8762 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8763 OTHER_INSTALLS="installabilib" 8764 USE_ABI="yes" 8765 ;; 8766 *gnu*) 8767 LD_RXLIB_A1="${CC} -shared -o \$(@)" 8768 LD_RXLIB_A2="${CC} -shared -o \$(@)" 8769 LD_RXLIB_UTILA="${CC} -shared -o \$(@)" 8770 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8771 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8772 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8773 SHLPRE="lib" 8774 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES) -lc" 8775 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 8776 OTHER_INSTALLS="installabilib" 8777 USE_ABI="yes" 8778 ;; 8779 *atheos* | *syllable*) 8780 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)" 8781 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)" 8782 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)" 8783 LD_RXLIB_B1="-L. -l${SHLFILE} "'$('BOTHLIBS')' 8784 LD_RXLIB_B2="-L. -l${SHLFILE} "'$('BOTHLIBS')' 8785 LD_RXLIB_UTILB="-L. -l${SHLFILE} "'$('BOTHLIBS')' 8786 SHLPRE="lib" 8787 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared ${LDFLAGS} \$(SHOFILES) "'$('BOTHLIBS')' 8788 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}" 8789 BASE_BINARY="atheosbinary" 8790 ;; 8791 *beos* | *haiku*) 8792 LD_RXLIB_A1="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)" 8793 LD_RXLIB_A2="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)" 8794 LD_RXLIB_UTILA="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)" 8795 LD_RXLIB_B1="-L. -l${SHLFILE}" 8796 LD_RXLIB_B2="-L. -l${SHLFILE}" 8797 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 8798 SHLPRE="lib" 8799 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared -nostart -Xlinker \$(SHOFILES)" 8800 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 8801 BEOS_DYN="yes" 8802 BASE_INSTALL="beosinstall" 8803 BASE_BINARY="beosbinary" 8804 OTHER_INSTALLS="" 8805 ;; 8806 *nto-qnx*) 8807 LD_RXLIB_A1="${CC} -shared -o \$(@)" 8808 LD_RXLIB_A2="${CC} -shared -o \$(@)" 8809 LD_RXLIB_UTILA="${CC} -shared -o \$(@)" 8810 LD_RXLIB_B1="-L. -l${SHLFILE}" 8811 LD_RXLIB_B2="-L. -l${SHLFILE}" 8812 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 8813 SHLPRE="lib" 8814 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)" 8815 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 8816 ;; 8817 *skyos*) 8818 LD_RXLIB_A1="${CC} -shared -o \$(@)" 8819 LD_RXLIB_A2="${CC} -shared -o \$(@)" 8820 LD_RXLIB_UTILA="${CC} -shared -o \$(@)" 8821 LD_RXLIB_B1="-L. -l${SHLFILE}" 8822 LD_RXLIB_B2="-L. -l${SHLFILE}" 8823 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 8824 SHLPRE="lib" 8825 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)" 8826 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 8827 ;; 8828 *qnx*) 8829 LD_RXLIB_A1="" 8830 LD_RXLIB_A2="" 8831 LD_RXLIB_UTILA="" 8832 LD_RXLIB_B1="" 8833 LD_RXLIB_B2="" 8834 LD_RXLIB_UTILB="" 8835 SHLPRE="" 8836 # set BUNDLE to unique junk names to stop the Makefile 8837 # getting duplicate targets 8838 BUNDLE=".junk2" 8839 SHLPST=".junk" 8840 SHL_LD="" 8841 EEXTRA="-mf -N0x20000 -Q" 8842 LIBPRE="" 8843 LIBPST=".lib" 8844 LIBFILE="rexx" 8845 ;; 8846 *cygwin*) 8847 LD_RXLIB_A1="${CC} -shared -o \$(@)" 8848 LD_RXLIB_A2="${CC} -shared -o \$(@)" 8849 LD_RXLIB_UTILA="${CC} -shared -o \$(@)" 8850 LD_RXLIB_B1="-L. -lcygregina" 8851 LD_RXLIB_B2="-L. -lcygregina" 8852 LD_RXLIB_UTILB="-L. -lcygregina" 8853 SHLPRE="cyg" 8854 SHL_LD="${CC} -shared -o \$(@) -o cygregina.dll \$(SHOFILES)" 8855 EEXTRA="" 8856 LIBPRE="lib" 8857 LIBPST=".a" 8858 LIBFILE="rexx" 8859 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}" 8860 TEST1EXPORTS="" 8861 TEST2EXPORTS="" 8862 REGUTILEXPORTS="" 8863 TEST1EXP="${srcdir}/test1_w32_dll.def" 8864 TEST2EXP="${srcdir}/test2_w32_dll.def" 8865 REGINAEXP="${srcdir}/regina_w32_dll.def" 8866 REGUTILEXP="${srcdir}/regutil/regutil.def" 8867 BASE_INSTALL="cygwininstall" 8868 OTHER_INSTALLS="" 8869 RXSTACK_INSTALL="" 8870 REGINA_PACKAGE_NAME="regina-rexx" 8871 ;; 8872 *apple-darwin*) 8873 # to test on platform other than real Mac OSX use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1 8874 # 8875 # Link switches for building "bundles" 8876 # 8877# MH LD_RXLIB_A1="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)" 8878# MH LD_RXLIB_A2="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)" 8879 LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)" 8880 LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)" 8881 LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)" 8882 LD_RXLIB_B1="-L. -l${SHLFILE} -lc \$(SHLIBS)" 8883 LD_RXLIB_B2="-L. -l${SHLFILE} -lc \$(SHLIBS)" 8884 LD_RXLIB_UTILB="-L. -l${SHLFILE} -lc \$(SHLIBS) $REGUTIL_TERM_LIB" 8885 DYN_COMP="-DDYNAMIC -fno-common" 8886 SHLPRE="lib" 8887 BUNDLE=".junk" 8888 SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -headerpad_max_install_names -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8889 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}" 8890 OTHER_INSTALLS="installmaclib" 8891 ;; 8892 *) 8893 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a shared library" >&5 8895$as_echo_n "checking how to create a shared library... " >&6; } 8896mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5' 8897cat > conftest.$ac_ext <<EOF 8898#line 8878 "configure" 8899int foo() 8900{ 8901return(0); 8902} 8903EOF 8904if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5 8905 (eval $mh_compile) 2>&5 8906 ac_status=$? 8907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8908 test $ac_status = 0; } && test -s conftest.o; then 8909 mh_dyn_link='ld -shared -o conftest.so.1.0 conftest.o -lc 1>&5' 8910# mh_dyn_link='${CC} -Wl,-shared -o conftest.so.1.0 conftest.o -lc 1>&AC_FD_CC' 8911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 8912 (eval $mh_dyn_link) 2>&5 8913 ac_status=$? 8914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8915 test $ac_status = 0; } && test -s conftest.so.1.0; then 8916 SHL_LD="ld -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc" 8917# SHL_LD="${CC} -Wl,-shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc" 8918 else 8919 mh_dyn_link='ld -G -o conftest.so.1.0 conftest.o 1>&5' 8920# mh_dyn_link='${CC} -Wl,-G -o conftest.so.1.0 conftest.o 1>&AC_FD_CC' 8921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 8922 (eval $mh_dyn_link) 2>&5 8923 ac_status=$? 8924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8925 test $ac_status = 0; } && test -s conftest.so.1.0; then 8926 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8927# SHL_LD="${CC} -Wl,-G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8928 else 8929 mh_dyn_link='ld -o conftest.so.1.0 -shared -no_archive conftest.o -lc 1>&5' 8930# mh_dyn_link='${CC} -o conftest.so.1.0 -Wl,-shared,-no_archive conftest.o -lc 1>&AC_FD_CC' 8931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 8932 (eval $mh_dyn_link) 2>&5 8933 ac_status=$? 8934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8935 test $ac_status = 0; } && test -s conftest.so.1.0; then 8936 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc" 8937# SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared,-no_archive "'$('SHOFILES')'" -lc" 8938 else 8939 mh_dyn_link='ld -b -o conftest.so.1.0 conftest.o 1>&5' 8940# mh_dyn_link='${CC} -Wl,-b -o conftest.so.1.0 conftest.o 1>&AC_FD_CC' 8941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 8942 (eval $mh_dyn_link) 2>&5 8943 ac_status=$? 8944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8945 test $ac_status = 0; } && test -s conftest.so.1.0; then 8946 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8947# SHL_LD="${CC} -Wl,-b -o ${SHLPRE}${SHLFILE}.${SHLPST} "'$('SHOFILES')' 8948 else 8949 mh_dyn_link='ld -Bshareable -o conftest.so.1.0 conftest.o 1>&5' 8950# mh_dyn_link='${CC} -Wl,-Bshareable -o conftest.so.1.0 conftest.o 1>&AC_FD_CC' 8951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 8952 (eval $mh_dyn_link) 2>&5 8953 ac_status=$? 8954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8955 test $ac_status = 0; } && test -s conftest.so.1.0; then 8956 SHL_LD="ld -Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8957# SHL_LD="${CC} -Wl,-Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8958 else 8959 mh_dyn_link='ld -assert pure-text -o conftest.so.1.0 conftest.o 1>&5' 8960# mh_dyn_link='${CC} -Wl,-assert pure-text -o conftest.so.1.0 conftest.o 1>&AC_FD_CC' 8961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 8962 (eval $mh_dyn_link) 2>&5 8963 ac_status=$? 8964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8965 test $ac_status = 0; } && test -s conftest.so.1.0; then 8966 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8967# SHL_LD="${CC} -Wl,-assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')' 8968 else 8969 SHL_LD="" 8970 fi 8971 fi 8972 fi 8973 fi 8974 fi 8975 fi 8976fi 8977if test "$SHL_LD" = ""; then 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 8979$as_echo "unknown" >&6; } 8980else 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 8982$as_echo "found" >&6; } 8983fi 8984rm -f conftest* 8985 8986 8987mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5' 8988cat > conftest.$ac_ext <<EOF 8989#line 8969 "configure" 8990int foo() 8991{ 8992return(0); 8993} 8994EOF 8995if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5 8996 (eval $mh_compile) 2>&5 8997 ac_status=$? 8998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8999 test $ac_status = 0; } && test -s conftest.o; then 9000 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5' 9001# mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC' 9002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 9003 (eval $mh_dyn_link) 2>&5 9004 ac_status=$? 9005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9006 test $ac_status = 0; } && test -s conftest.rxlib; then 9007 LD_RXLIB_A1="ld -shared -o \$(@)" 9008 LD_RXLIB_A2="ld -shared -o \$(@)" 9009 LD_RXLIB_UTILA="ld -shared -o \$(@)" 9010# LD_RXLIB1="${CC} -Wl,-shared" 9011 LD_RXLIB_B1="-L. -l${SHLFILE}" 9012 LD_RXLIB_B2="-L. -l${SHLFILE}" 9013 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 9014 SHLPRE="lib" 9015 SHLPST=".so" 9016 else 9017 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5' 9018# mh_dyn_link='${CC} -Wl,-G -o conftest.rxlib conftest.o 1>&AC_FD_CC' 9019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5 9020 (eval $mh_dyn_link) 2>&5 9021 ac_status=$? 9022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9023 test $ac_status = 0; } && test -s conftest.rxlib; then 9024 LD_RXLIB_A1="ld -G -o \$(@)" 9025 LD_RXLIB_A2="ld -G -o \$(@)" 9026 LD_RXLIB_UTILA="ld -G -o \$(@)" 9027# LD_RXLIB1="${CC} -Wl,-G" 9028 LD_RXLIB_B1="-L. -l${SHLFILE}" 9029 LD_RXLIB_B2="-L. -l${SHLFILE}" 9030 LD_RXLIB_UTILB="-L. -l${SHLFILE}" 9031 SHLPRE="lib" 9032 SHLPST=".so" 9033 else 9034 LD_RXLIB_A1="" 9035 LD_RXLIB_A2="" 9036 LD_RXLIB_UTILA="" 9037 LD_RXLIB_B1="" 9038 LD_RXLIB_B2="" 9039 LD_RXLIB_UTILB="" 9040 SHLPRE="" 9041 SHLPST="" 9042 fi 9043 fi 9044fi 9045rm -f conftest* 9046 9047 ;; 9048esac 9049 9050LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}" 9051LIBLINK="-L. -l${LIBFILE}" 9052LINKSHL="-L. -l${SHLFILE}" 9053 9054case "$target" in 9055 *hp-hpux*) 9056 # 9057 # For HPUX, we must link the "regina" executable with -lregina 9058 # otherwise you can't move the shared library anywhere other 9059 # than where it was built. Fix by PJM 9060 # 9061 LINKREG="${LINKSHL}" 9062 ;; 9063 *cygwin*) 9064 # 9065 # For CygWin, we must link with the import library 9066 # not the actual DLL 9067 # 9068 LINKREG="${LINKSHL}" 9069 ;; 9070 *skyos*) 9071 # 9072 # SkyOS requires linking with -L. -lregina format 9073 # 9074 LINKREG="${LINKSHL}" 9075 ;; 9076 *linux*|*kfreebsd*-gnu*) 9077 LINKSHL="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)" 9078 LINKREG="${LINKSHL}" 9079 ;; 9080 *) 9081 LINKREG="${SHLPRE}${SHLFILE}${SHLPST}" 9082 ;; 9083esac 9084 9085if test "$SHL_LD" != ""; then 9086 SHL_LD="$SHL_LD \$(BOTHLIBS) \$(MH_MT_LIBS)" 9087fi 9088 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic loading of external functions is supported" >&5 9090$as_echo_n "checking if dynamic loading of external functions is supported... " >&6; } 9091if test "$HAVE_DLFCN_H" = "1" -o "$ac_cv_header_dl_h" = "yes" -o "$ac_cv_header_dlfcn_h" = "yes" -o "$AIX_DYN" = "yes" -o "$BEOS_DYN" = "yes"; then 9092 SHL_TARGETS="${SHL_BASE} regina${binarybitprefix}${EXEEXT} ${SHLPRE}regutil${MODPST} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET" 9093 EXECISER_DEP="${SHL_BASE}" 9094 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS" 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 9096$as_echo "\"yes\"" >&6; } 9097else 9098 SHL_TARGETS="" 9099 EXECISER_DEP="${STATICLIB}" 9100 OTHER_INSTALLS="" 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 9102$as_echo "\"no\"" >&6; } 9103fi 9104# 9105# Add $RXSTACK_INSTALL 9106# 9107OTHER_INSTALLS="$OTHER_INSTALLS $RXSTACK_INSTALL" 9108 9109if test "$AIX_DYN" = "yes"; then 9110 STATICLIB="" 9111 LIBPST=".junk" 9112else 9113 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}" 9114fi 9115 9116RANLIB_DYNAMIC="" 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if symbols need underscore prepended in loadable modules" >&5 9173$as_echo_n "checking if symbols need underscore prepended in loadable modules... " >&6; } 9174 tmpLIBS="$LIBS" 9175 save_cflags="$CFLAGS" 9176 LIBS="$LIBS $DLFCNLIBDIR" 9177 CFLAGS="$CFLAGS $DLFCNINCDIR" 9178 if ${mh_cv_uscore+:} false; then : 9179 $as_echo_n "(cached) " >&6 9180else 9181 9182 if test "$cross_compiling" = yes; then : 9183 mh_cv_uscore=no 9184else 9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9186/* end confdefs.h. */ 9187 9188 #include <dlfcn.h> 9189 int mh_underscore_test (void) { return 42; } 9190 int main() { 9191 void *f1 = (void*)0, *f2 = (void*)0, *handle; 9192 handle = dlopen ((void*)0, 0); 9193 if (handle) { 9194 f1 = dlsym (handle, "mh_underscore_test"); 9195 f2 = dlsym (handle, "_mh_underscore_test"); 9196 } return (!f2 || f1); 9197 } 9198 9199_ACEOF 9200if ac_fn_c_try_run "$LINENO"; then : 9201 mh_cv_uscore=yes 9202else 9203 mh_cv_uscore=no 9204fi 9205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9206 conftest.$ac_objext conftest.beam conftest.$ac_ext 9207fi 9208 9209 9210fi 9211 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_uscore" >&5 9213$as_echo "$mh_cv_uscore" >&6; } 9214 if test "x$mh_cv_uscore" = "xyes"; then 9215 $as_echo "#define MODULES_NEED_USCORE 1" >>confdefs.h 9216 9217 fi 9218 LIBS="$tmpLIBS" 9219 CFLAGS="$save_cflags" 9220fi 9221 9222fi 9223 9224 9225 9226 9227 9228 9229 9230LARGE_FILE_SUPPORT="" 9231# Extract the first word of "getconf", so it can be a program name with args. 9232set dummy getconf; ac_word=$2 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9234$as_echo_n "checking for $ac_word... " >&6; } 9235if ${ac_cv_prog_getconf+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 if test -n "$getconf"; then 9239 ac_cv_prog_getconf="$getconf" # Let the user override the test. 9240else 9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9242for as_dir in $PATH 9243do 9244 IFS=$as_save_IFS 9245 test -z "$as_dir" && as_dir=. 9246 for ac_exec_ext in '' $ac_executable_extensions; do 9247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9248 ac_cv_prog_getconf="yes" 9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9250 break 2 9251 fi 9252done 9253 done 9254IFS=$as_save_IFS 9255 9256 test -z "$ac_cv_prog_getconf" && ac_cv_prog_getconf="no" 9257fi 9258fi 9259getconf=$ac_cv_prog_getconf 9260if test -n "$getconf"; then 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $getconf" >&5 9262$as_echo "$getconf" >&6; } 9263else 9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9265$as_echo "no" >&6; } 9266fi 9267 9268 9269if test "$ac_cv_prog_getconf" = yes; then 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking large file support flags" >&5 9271$as_echo_n "checking large file support flags... " >&6; } 9272 LARGE_FILE_SUPPORT=`getconf LFS_CFLAGS` 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LARGE_FILE_SUPPORT" >&5 9274$as_echo "$LARGE_FILE_SUPPORT" >&6; } 9275fi 9276if test "$LARGE_FILE_SUPPORT" = "undefined"; then 9277 LARGE_FILE_SUPPORT="" 9278fi 9279 9280 9281#if test "$with_staticfunctions" = "yes"; then 9282# DYNAMIC_LIBRARY_LIBS="" 9283#else 9284# DYNAMIC_LIBRARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB" 9285# DYNAMIC_REGUTIL_TERM_LIB="$REGUTIL_TERM_LIB" 9286# AC_SUBST(DYNAMIC_REGUTIL_TERM_LIB) 9287#fi 9288#AC_SUBST(DYNAMIC_LIBRARY_LIBS) 9289#DYNAMIC_BINARY_LIBS="-L. -lregina" 9290#AC_SUBST(DYNAMIC_BINARY_LIBS) 9291 9292 9293STACK_BINARY_LIBS="$REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB" 9294 9295REXX_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB $REGINA_PTHREAD_LIB" 9296 9297#STATIC_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGINA_PTHREAD_LIB" 9298#AC_SUBST(STATIC_BINARY_LIBS) 9299if test "$build_static" = "yes"; then 9300 REGINA_CONFIG_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB" 9301 LIBREGINA_BINARY_LIBS="" 9302 REGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB" 9303 THREADER_BINARY_LIBS="-L. -lrexx $REGINA_PTHREAD_LIB" 9304 EXECISER_BINARY_LIBS="-L. -lrexx $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB" 9305else 9306 REGINA_CONFIG_LIBS="" 9307 LIBREGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB" 9308 REGINA_BINARY_LIBS="-L. -lregina" 9309 THREADER_BINARY_LIBS="-L. -lregina $REGINA_PTHREAD_LIB" 9310 EXECISER_BINARY_LIBS="-L. -lregina" 9311fi 9312 9313 9314 9315 9316 9317 9318# Check whether --enable-tracemem was given. 9319if test "${enable_tracemem+set}" = set; then : 9320 enableval=$enable_tracemem; with_tracemem=$enableval 9321else 9322 with_tracemem=no 9323fi 9324 9325if test "$with_tracemem" = yes; then 9326 TRACEMEM="-DTRACEMEM" 9327else 9328 TRACEMEM="" 9329fi 9330 9331 9332# Check whether --enable-flists was given. 9333if test "${enable_flists+set}" = set; then : 9334 enableval=$enable_flists; with_flists=$enableval 9335else 9336 with_flists=yes 9337fi 9338 9339if test "$with_flists" = no; then 9340 FLISTS="-DNOFLISTS" 9341else 9342 FLISTS="" 9343fi 9344 9345 9346 9347# Check whether --with-socket was given. 9348if test "${with_socket+set}" = set; then : 9349 withval=$with_socket; with_socket=$withval 9350else 9351 with_socket=no 9352fi 9353 9354if test "$with_socket" = no; then 9355 REXXSOCKET="" 9356else 9357 REXXSOCKET="-DRXSOCKET=$with_socket" 9358fi 9359 9360 9361 9362# Check whether --with-addon-dir was given. 9363if test "${with_addon_dir+set}" = set; then : 9364 withval=$with_addon_dir; addonsdir=$withval 9365else 9366 addonsdir=$libdir/regina-rexx/addons 9367fi 9368 9369 9370 prefix_NONE= 9371 exec_prefix_NONE= 9372 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 9373 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 9374 eval ac_define_dir="\""$addonsdir"\"" 9375 eval ac_define_dir="\"$ac_define_dir\"" 9376 HAVE_REGINA_ADDON_DIR="$ac_define_dir" 9377 9378 cat >>confdefs.h <<_ACEOF 9379#define HAVE_REGINA_ADDON_DIR "$ac_define_dir" 9380_ACEOF 9381 9382 test "$prefix_NONE" && prefix=NONE 9383 test "$exec_prefix_NONE" && exec_prefix=NONE 9384 9385 9386 9387 9388# Extract the first word of "rpm", so it can be a program name with args. 9389set dummy rpm; ac_word=$2 9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9391$as_echo_n "checking for $ac_word... " >&6; } 9392if ${ac_cv_prog_mh_rpm_exists+:} false; then : 9393 $as_echo_n "(cached) " >&6 9394else 9395 if test -n "$mh_rpm_exists"; then 9396 ac_cv_prog_mh_rpm_exists="$mh_rpm_exists" # Let the user override the test. 9397else 9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9399for as_dir in $PATH 9400do 9401 IFS=$as_save_IFS 9402 test -z "$as_dir" && as_dir=. 9403 for ac_exec_ext in '' $ac_executable_extensions; do 9404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9405 ac_cv_prog_mh_rpm_exists="yes" 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9407 break 2 9408 fi 9409done 9410 done 9411IFS=$as_save_IFS 9412 9413 test -z "$ac_cv_prog_mh_rpm_exists" && ac_cv_prog_mh_rpm_exists="no " 9414fi 9415fi 9416mh_rpm_exists=$ac_cv_prog_mh_rpm_exists 9417if test -n "$mh_rpm_exists"; then 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_rpm_exists" >&5 9419$as_echo "$mh_rpm_exists" >&6; } 9420else 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9422$as_echo "no" >&6; } 9423fi 9424 9425 9426if test "$mh_rpm_exists" = yes; then 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where rpms are built" >&5 9428$as_echo_n "checking where rpms are built... " >&6; } 9429 RPMTOPDIR=`rpm --eval "%{_topdir}"` 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMTOPDIR" >&5 9431$as_echo "$RPMTOPDIR" >&6; } 9432 9433fi 9434 9435 9436# Extract the first word of "lsb_release", so it can be a program name with args. 9437set dummy lsb_release; ac_word=$2 9438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9439$as_echo_n "checking for $ac_word... " >&6; } 9440if ${ac_cv_prog_lsb_release+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 if test -n "$lsb_release"; then 9444 ac_cv_prog_lsb_release="$lsb_release" # Let the user override the test. 9445else 9446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9447for as_dir in $PATH 9448do 9449 IFS=$as_save_IFS 9450 test -z "$as_dir" && as_dir=. 9451 for ac_exec_ext in '' $ac_executable_extensions; do 9452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9453 ac_cv_prog_lsb_release="yes" 9454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9455 break 2 9456 fi 9457done 9458 done 9459IFS=$as_save_IFS 9460 9461 test -z "$ac_cv_prog_lsb_release" && ac_cv_prog_lsb_release="no" 9462fi 9463fi 9464lsb_release=$ac_cv_prog_lsb_release 9465if test -n "$lsb_release"; then 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsb_release" >&5 9467$as_echo "$lsb_release" >&6; } 9468else 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9470$as_echo "no" >&6; } 9471fi 9472 9473 9474if test "$ac_cv_prog_lsb_release" = yes; then 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS distribution name" >&5 9476$as_echo_n "checking OS distribution name... " >&6; } 9477 MYDISTRO="`lsb_release -i | cut -f 2`-`lsb_release -r | cut -f 2`" 9478 MYDISTRO="`echo $MYDISTRO | sed \"s/ /_/g\"`" 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYDISTRO" >&5 9480$as_echo "$MYDISTRO" >&6; } 9481else 9482 case "$target" in 9483 *freebsd* | *openbsd* | *dragonfly* ) 9484 MYDISTRO="`echo $target | cut -f3 -d-`" 9485 ;; 9486 *darwin*) 9487 MYDISTRO="`echo $target | cut -f2-3 -d-`" 9488 ;; 9489 *pc-solaris2*) 9490 MYDISTRO="`echo $target | cut -f2- -d-`" 9491 ;; 9492 *cygwin*) 9493 MYDISTRO="`echo $target | cut -f2- -d-`" 9494 ;; 9495 *) 9496 MYDISTRO="$target" 9497 ;; 9498 esac 9499fi 9500 9501 9502 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for service manager" >&5 9504$as_echo_n "checking for service manager... " >&6; } 9505if test -f /usr/bin/systemctl -o -f /bin/systemctl ; then 9506 initinstaller="installsystemd" 9507 systemdinstallpath=`pkg-config systemd --variable=systemdsystemunitdir` 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: systemd" >&5 9509$as_echo "systemd" >&6; } 9510elif test -f /sbin/initctl ; then 9511 initinstaller="installupstart" 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: upstart" >&5 9513$as_echo "upstart" >&6; } 9514elif test -f /sbin/insserv ; then 9515# SuSE sysvinit 9516 initinstaller="installinsserv" 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: insserv" >&5 9518$as_echo "insserv" >&6; } 9519else 9520 initinstaller="installsysvinit" 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysvinit" >&5 9522$as_echo "sysvinit" >&6; } 9523fi 9524 9525 9526 9527 9528$as_echo "#define UNIX 1" >>confdefs.h 9529 9530 9531 9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9533$as_echo_n "checking whether char is unsigned... " >&6; } 9534if ${ac_cv_c_char_unsigned+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536else 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539$ac_includes_default 9540int 9541main () 9542{ 9543static int test_array [1 - 2 * !(((char) -1) < 0)]; 9544test_array [0] = 0; 9545return test_array [0]; 9546 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551if ac_fn_c_try_compile "$LINENO"; then : 9552 ac_cv_c_char_unsigned=no 9553else 9554 ac_cv_c_char_unsigned=yes 9555fi 9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9557fi 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9559$as_echo "$ac_cv_c_char_unsigned" >&6; } 9560if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9561 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9562 9563fi 9564 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler switch for unsigned char" >&5 9566$as_echo_n "checking compiler switch for unsigned char... " >&6; } 9567# 9568# QNX4 Watcom compiler is unsigned char by default 9569# 9570if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" = "cc" ; then 9571 qnx4_char_unsigned="yes" 9572fi 9573 9574if test "$ac_cv_c_char_unsigned" = yes -o "$qnx4_char_unsigned" = yes; then 9575 MH_UNSIGNED_CHAR_SWITCH="" 9576 msg="not needed - char is unsigned by default" 9577else 9578 case "$ac_cv_prog_CC" in 9579 gcc) 9580 MH_UNSIGNED_CHAR_SWITCH="-funsigned-char" 9581 msg="$MH_UNSIGNED_CHAR_SWITCH" 9582 ;; 9583 xlC) 9584 MH_UNSIGNED_CHAR_SWITCH="-qchars=unsigned" 9585 msg="$MH_UNSIGNED_CHAR_SWITCH" 9586 ;; 9587 *) 9588 save_cflags="$CFLAGS" 9589 mh_have_unsigned_char_switch=no 9590 mh_unsigned_flags="-funsigned-char -xchar=unsigned" 9591 for mh_flag in $mh_unsigned_flags; do 9592 CFLAGS="$CFLAGS $mh_flag" 9593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595#include <stdio.h> 9596int 9597main () 9598{ 9599char x; 9600 ; 9601 return 0; 9602} 9603_ACEOF 9604if ac_fn_c_try_compile "$LINENO"; then : 9605 MH_UNSIGNED_CHAR_SWITCH="$mh_flag"; msg="$MH_UNSIGNED_CHAR_SWITCH"; mh_have_unsigned_char_switch=yes 9606fi 9607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9608 CFLAGS="$save_cflags" 9609 if test "$mh_have_unsigned_char_switch" = yes; then 9610 break 9611 fi 9612 done 9613 if test "$mh_have_unsigned_char_switch" = no; then 9614 msg="unknown - assuming unsigned by default but running execiser will confirm" 9615 fi 9616 ;; 9617 esac 9618fi 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$msg\"" >&5 9620$as_echo "\"$msg\"" >&6; } 9621 9622 9623 9624 9625ac_config_files="$ac_config_files $mymakefile regina-config rxstack.init.d libregina.pc" 9626 9627cat >confcache <<\_ACEOF 9628# This file is a shell script that caches the results of configure 9629# tests run on this system so they can be shared between configure 9630# scripts and configure runs, see configure's option --config-cache. 9631# It is not useful on other systems. If it contains results you don't 9632# want to keep, you may remove or edit it. 9633# 9634# config.status only pays attention to the cache file if you give it 9635# the --recheck option to rerun configure. 9636# 9637# `ac_cv_env_foo' variables (set or unset) will be overridden when 9638# loading this file, other *unset* `ac_cv_foo' will be assigned the 9639# following values. 9640 9641_ACEOF 9642 9643# The following way of writing the cache mishandles newlines in values, 9644# but we know of no workaround that is simple, portable, and efficient. 9645# So, we kill variables containing newlines. 9646# Ultrix sh set writes to stderr and can't be redirected directly, 9647# and sets the high bit in the cache file unless we assign to the vars. 9648( 9649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9650 eval ac_val=\$$ac_var 9651 case $ac_val in #( 9652 *${as_nl}*) 9653 case $ac_var in #( 9654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9655$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9656 esac 9657 case $ac_var in #( 9658 _ | IFS | as_nl) ;; #( 9659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9660 *) { eval $ac_var=; unset $ac_var;} ;; 9661 esac ;; 9662 esac 9663 done 9664 9665 (set) 2>&1 | 9666 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9667 *${as_nl}ac_space=\ *) 9668 # `set' does not quote correctly, so add quotes: double-quote 9669 # substitution turns \\\\ into \\, and sed turns \\ into \. 9670 sed -n \ 9671 "s/'/'\\\\''/g; 9672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9673 ;; #( 9674 *) 9675 # `set' quotes correctly as required by POSIX, so do not add quotes. 9676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9677 ;; 9678 esac | 9679 sort 9680) | 9681 sed ' 9682 /^ac_cv_env_/b end 9683 t clear 9684 :clear 9685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9686 t end 9687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9688 :end' >>confcache 9689if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9690 if test -w "$cache_file"; then 9691 if test "x$cache_file" != "x/dev/null"; then 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9693$as_echo "$as_me: updating cache $cache_file" >&6;} 9694 if test ! -f "$cache_file" || test -h "$cache_file"; then 9695 cat confcache >"$cache_file" 9696 else 9697 case $cache_file in #( 9698 */* | ?:*) 9699 mv -f confcache "$cache_file"$$ && 9700 mv -f "$cache_file"$$ "$cache_file" ;; #( 9701 *) 9702 mv -f confcache "$cache_file" ;; 9703 esac 9704 fi 9705 fi 9706 else 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9708$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9709 fi 9710fi 9711rm -f confcache 9712 9713test "x$prefix" = xNONE && prefix=$ac_default_prefix 9714# Let make expand exec_prefix. 9715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9716 9717DEFS=-DHAVE_CONFIG_H 9718 9719ac_libobjs= 9720ac_ltlibobjs= 9721U= 9722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9723 # 1. Remove the extension, and $U if already installed. 9724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9727 # will be set to the directory where LIBOBJS objects are built. 9728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9730done 9731LIBOBJS=$ac_libobjs 9732 9733LTLIBOBJS=$ac_ltlibobjs 9734 9735 9736 9737: "${CONFIG_STATUS=./config.status}" 9738ac_write_fail=0 9739ac_clean_files_save=$ac_clean_files 9740ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9742$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9743as_write_fail=0 9744cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9745#! $SHELL 9746# Generated by $as_me. 9747# Run this file to recreate the current configuration. 9748# Compiler output produced by configure, useful for debugging 9749# configure, is in config.log if it exists. 9750 9751debug=false 9752ac_cs_recheck=false 9753ac_cs_silent=false 9754 9755SHELL=\${CONFIG_SHELL-$SHELL} 9756export SHELL 9757_ASEOF 9758cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9759## -------------------- ## 9760## M4sh Initialization. ## 9761## -------------------- ## 9762 9763# Be more Bourne compatible 9764DUALCASE=1; export DUALCASE # for MKS sh 9765if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9766 emulate sh 9767 NULLCMD=: 9768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9769 # is contrary to our usage. Disable this feature. 9770 alias -g '${1+"$@"}'='"$@"' 9771 setopt NO_GLOB_SUBST 9772else 9773 case `(set -o) 2>/dev/null` in #( 9774 *posix*) : 9775 set -o posix ;; #( 9776 *) : 9777 ;; 9778esac 9779fi 9780 9781 9782as_nl=' 9783' 9784export as_nl 9785# Printing a long string crashes Solaris 7 /usr/bin/printf. 9786as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9787as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9788as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9789# Prefer a ksh shell builtin over an external printf program on Solaris, 9790# but without wasting forks for bash or zsh. 9791if test -z "$BASH_VERSION$ZSH_VERSION" \ 9792 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9793 as_echo='print -r --' 9794 as_echo_n='print -rn --' 9795elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9796 as_echo='printf %s\n' 9797 as_echo_n='printf %s' 9798else 9799 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9800 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9801 as_echo_n='/usr/ucb/echo -n' 9802 else 9803 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9804 as_echo_n_body='eval 9805 arg=$1; 9806 case $arg in #( 9807 *"$as_nl"*) 9808 expr "X$arg" : "X\\(.*\\)$as_nl"; 9809 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9810 esac; 9811 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9812 ' 9813 export as_echo_n_body 9814 as_echo_n='sh -c $as_echo_n_body as_echo' 9815 fi 9816 export as_echo_body 9817 as_echo='sh -c $as_echo_body as_echo' 9818fi 9819 9820# The user is always right. 9821if test "${PATH_SEPARATOR+set}" != set; then 9822 PATH_SEPARATOR=: 9823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9825 PATH_SEPARATOR=';' 9826 } 9827fi 9828 9829 9830# IFS 9831# We need space, tab and new line, in precisely that order. Quoting is 9832# there to prevent editors from complaining about space-tab. 9833# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9834# splitting by setting IFS to empty value.) 9835IFS=" "" $as_nl" 9836 9837# Find who we are. Look in the path if we contain no directory separator. 9838as_myself= 9839case $0 in #(( 9840 *[\\/]* ) as_myself=$0 ;; 9841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9842for as_dir in $PATH 9843do 9844 IFS=$as_save_IFS 9845 test -z "$as_dir" && as_dir=. 9846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9847 done 9848IFS=$as_save_IFS 9849 9850 ;; 9851esac 9852# We did not find ourselves, most probably we were run as `sh COMMAND' 9853# in which case we are not to be found in the path. 9854if test "x$as_myself" = x; then 9855 as_myself=$0 9856fi 9857if test ! -f "$as_myself"; then 9858 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9859 exit 1 9860fi 9861 9862# Unset variables that we do not need and which cause bugs (e.g. in 9863# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9864# suppresses any "Segmentation fault" message there. '((' could 9865# trigger a bug in pdksh 5.2.14. 9866for as_var in BASH_ENV ENV MAIL MAILPATH 9867do eval test x\${$as_var+set} = xset \ 9868 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9869done 9870PS1='$ ' 9871PS2='> ' 9872PS4='+ ' 9873 9874# NLS nuisances. 9875LC_ALL=C 9876export LC_ALL 9877LANGUAGE=C 9878export LANGUAGE 9879 9880# CDPATH. 9881(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9882 9883 9884# as_fn_error STATUS ERROR [LINENO LOG_FD] 9885# ---------------------------------------- 9886# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9887# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9888# script with STATUS, using 1 if that was 0. 9889as_fn_error () 9890{ 9891 as_status=$1; test $as_status -eq 0 && as_status=1 9892 if test "$4"; then 9893 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9894 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9895 fi 9896 $as_echo "$as_me: error: $2" >&2 9897 as_fn_exit $as_status 9898} # as_fn_error 9899 9900 9901# as_fn_set_status STATUS 9902# ----------------------- 9903# Set $? to STATUS, without forking. 9904as_fn_set_status () 9905{ 9906 return $1 9907} # as_fn_set_status 9908 9909# as_fn_exit STATUS 9910# ----------------- 9911# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9912as_fn_exit () 9913{ 9914 set +e 9915 as_fn_set_status $1 9916 exit $1 9917} # as_fn_exit 9918 9919# as_fn_unset VAR 9920# --------------- 9921# Portably unset VAR. 9922as_fn_unset () 9923{ 9924 { eval $1=; unset $1;} 9925} 9926as_unset=as_fn_unset 9927# as_fn_append VAR VALUE 9928# ---------------------- 9929# Append the text in VALUE to the end of the definition contained in VAR. Take 9930# advantage of any shell optimizations that allow amortized linear growth over 9931# repeated appends, instead of the typical quadratic growth present in naive 9932# implementations. 9933if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9934 eval 'as_fn_append () 9935 { 9936 eval $1+=\$2 9937 }' 9938else 9939 as_fn_append () 9940 { 9941 eval $1=\$$1\$2 9942 } 9943fi # as_fn_append 9944 9945# as_fn_arith ARG... 9946# ------------------ 9947# Perform arithmetic evaluation on the ARGs, and store the result in the 9948# global $as_val. Take advantage of shells that can avoid forks. The arguments 9949# must be portable across $(()) and expr. 9950if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9951 eval 'as_fn_arith () 9952 { 9953 as_val=$(( $* )) 9954 }' 9955else 9956 as_fn_arith () 9957 { 9958 as_val=`expr "$@" || test $? -eq 1` 9959 } 9960fi # as_fn_arith 9961 9962 9963if expr a : '\(a\)' >/dev/null 2>&1 && 9964 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9965 as_expr=expr 9966else 9967 as_expr=false 9968fi 9969 9970if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9971 as_basename=basename 9972else 9973 as_basename=false 9974fi 9975 9976if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9977 as_dirname=dirname 9978else 9979 as_dirname=false 9980fi 9981 9982as_me=`$as_basename -- "$0" || 9983$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9984 X"$0" : 'X\(//\)$' \| \ 9985 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9986$as_echo X/"$0" | 9987 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9988 s//\1/ 9989 q 9990 } 9991 /^X\/\(\/\/\)$/{ 9992 s//\1/ 9993 q 9994 } 9995 /^X\/\(\/\).*/{ 9996 s//\1/ 9997 q 9998 } 9999 s/.*/./; q'` 10000 10001# Avoid depending upon Character Ranges. 10002as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10003as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10004as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10005as_cr_digits='0123456789' 10006as_cr_alnum=$as_cr_Letters$as_cr_digits 10007 10008ECHO_C= ECHO_N= ECHO_T= 10009case `echo -n x` in #((((( 10010-n*) 10011 case `echo 'xy\c'` in 10012 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10013 xy) ECHO_C='\c';; 10014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10015 ECHO_T=' ';; 10016 esac;; 10017*) 10018 ECHO_N='-n';; 10019esac 10020 10021rm -f conf$$ conf$$.exe conf$$.file 10022if test -d conf$$.dir; then 10023 rm -f conf$$.dir/conf$$.file 10024else 10025 rm -f conf$$.dir 10026 mkdir conf$$.dir 2>/dev/null 10027fi 10028if (echo >conf$$.file) 2>/dev/null; then 10029 if ln -s conf$$.file conf$$ 2>/dev/null; then 10030 as_ln_s='ln -s' 10031 # ... but there are two gotchas: 10032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10034 # In both cases, we have to default to `cp -pR'. 10035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10036 as_ln_s='cp -pR' 10037 elif ln conf$$.file conf$$ 2>/dev/null; then 10038 as_ln_s=ln 10039 else 10040 as_ln_s='cp -pR' 10041 fi 10042else 10043 as_ln_s='cp -pR' 10044fi 10045rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10046rmdir conf$$.dir 2>/dev/null 10047 10048 10049# as_fn_mkdir_p 10050# ------------- 10051# Create "$as_dir" as a directory, including parents if necessary. 10052as_fn_mkdir_p () 10053{ 10054 10055 case $as_dir in #( 10056 -*) as_dir=./$as_dir;; 10057 esac 10058 test -d "$as_dir" || eval $as_mkdir_p || { 10059 as_dirs= 10060 while :; do 10061 case $as_dir in #( 10062 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10063 *) as_qdir=$as_dir;; 10064 esac 10065 as_dirs="'$as_qdir' $as_dirs" 10066 as_dir=`$as_dirname -- "$as_dir" || 10067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10068 X"$as_dir" : 'X\(//\)[^/]' \| \ 10069 X"$as_dir" : 'X\(//\)$' \| \ 10070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10071$as_echo X"$as_dir" | 10072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10073 s//\1/ 10074 q 10075 } 10076 /^X\(\/\/\)[^/].*/{ 10077 s//\1/ 10078 q 10079 } 10080 /^X\(\/\/\)$/{ 10081 s//\1/ 10082 q 10083 } 10084 /^X\(\/\).*/{ 10085 s//\1/ 10086 q 10087 } 10088 s/.*/./; q'` 10089 test -d "$as_dir" && break 10090 done 10091 test -z "$as_dirs" || eval "mkdir $as_dirs" 10092 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10093 10094 10095} # as_fn_mkdir_p 10096if mkdir -p . 2>/dev/null; then 10097 as_mkdir_p='mkdir -p "$as_dir"' 10098else 10099 test -d ./-p && rmdir ./-p 10100 as_mkdir_p=false 10101fi 10102 10103 10104# as_fn_executable_p FILE 10105# ----------------------- 10106# Test if FILE is an executable regular file. 10107as_fn_executable_p () 10108{ 10109 test -f "$1" && test -x "$1" 10110} # as_fn_executable_p 10111as_test_x='test -x' 10112as_executable_p=as_fn_executable_p 10113 10114# Sed expression to map a string onto a valid CPP name. 10115as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10116 10117# Sed expression to map a string onto a valid variable name. 10118as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10119 10120 10121exec 6>&1 10122## ----------------------------------- ## 10123## Main body of $CONFIG_STATUS script. ## 10124## ----------------------------------- ## 10125_ASEOF 10126test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10127 10128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10129# Save the log message, to keep $0 and so on meaningful, and to 10130# report actual input values of CONFIG_FILES etc. instead of their 10131# values after options handling. 10132ac_log=" 10133This file was extended by Regina Rexx Interpreter $as_me 3.9.3, which was 10134generated by GNU Autoconf 2.69. Invocation command line was 10135 10136 CONFIG_FILES = $CONFIG_FILES 10137 CONFIG_HEADERS = $CONFIG_HEADERS 10138 CONFIG_LINKS = $CONFIG_LINKS 10139 CONFIG_COMMANDS = $CONFIG_COMMANDS 10140 $ $0 $@ 10141 10142on `(hostname || uname -n) 2>/dev/null | sed 1q` 10143" 10144 10145_ACEOF 10146 10147case $ac_config_files in *" 10148"*) set x $ac_config_files; shift; ac_config_files=$*;; 10149esac 10150 10151case $ac_config_headers in *" 10152"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10153esac 10154 10155 10156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10157# Files that config.status was made for. 10158config_files="$ac_config_files" 10159config_headers="$ac_config_headers" 10160 10161_ACEOF 10162 10163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10164ac_cs_usage="\ 10165\`$as_me' instantiates files and other configuration actions 10166from templates according to the current configuration. Unless the files 10167and actions are specified as TAGs, all are instantiated by default. 10168 10169Usage: $0 [OPTION]... [TAG]... 10170 10171 -h, --help print this help, then exit 10172 -V, --version print version number and configuration settings, then exit 10173 --config print configuration, then exit 10174 -q, --quiet, --silent 10175 do not print progress messages 10176 -d, --debug don't remove temporary files 10177 --recheck update $as_me by reconfiguring in the same conditions 10178 --file=FILE[:TEMPLATE] 10179 instantiate the configuration file FILE 10180 --header=FILE[:TEMPLATE] 10181 instantiate the configuration header FILE 10182 10183Configuration files: 10184$config_files 10185 10186Configuration headers: 10187$config_headers 10188 10189Report bugs to <mark@rexx.org>." 10190 10191_ACEOF 10192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10193ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10194ac_cs_version="\\ 10195Regina Rexx Interpreter config.status 3.9.3 10196configured by $0, generated by GNU Autoconf 2.69, 10197 with options \\"\$ac_cs_config\\" 10198 10199Copyright (C) 2012 Free Software Foundation, Inc. 10200This config.status script is free software; the Free Software Foundation 10201gives unlimited permission to copy, distribute and modify it." 10202 10203ac_pwd='$ac_pwd' 10204srcdir='$srcdir' 10205test -n "\$AWK" || AWK=awk 10206_ACEOF 10207 10208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10209# The default lists apply if the user does not specify any file. 10210ac_need_defaults=: 10211while test $# != 0 10212do 10213 case $1 in 10214 --*=?*) 10215 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10217 ac_shift=: 10218 ;; 10219 --*=) 10220 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10221 ac_optarg= 10222 ac_shift=: 10223 ;; 10224 *) 10225 ac_option=$1 10226 ac_optarg=$2 10227 ac_shift=shift 10228 ;; 10229 esac 10230 10231 case $ac_option in 10232 # Handling of the options. 10233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10234 ac_cs_recheck=: ;; 10235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10236 $as_echo "$ac_cs_version"; exit ;; 10237 --config | --confi | --conf | --con | --co | --c ) 10238 $as_echo "$ac_cs_config"; exit ;; 10239 --debug | --debu | --deb | --de | --d | -d ) 10240 debug=: ;; 10241 --file | --fil | --fi | --f ) 10242 $ac_shift 10243 case $ac_optarg in 10244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10245 '') as_fn_error $? "missing file argument" ;; 10246 esac 10247 as_fn_append CONFIG_FILES " '$ac_optarg'" 10248 ac_need_defaults=false;; 10249 --header | --heade | --head | --hea ) 10250 $ac_shift 10251 case $ac_optarg in 10252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10253 esac 10254 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10255 ac_need_defaults=false;; 10256 --he | --h) 10257 # Conflict between --help and --header 10258 as_fn_error $? "ambiguous option: \`$1' 10259Try \`$0 --help' for more information.";; 10260 --help | --hel | -h ) 10261 $as_echo "$ac_cs_usage"; exit ;; 10262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10263 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10264 ac_cs_silent=: ;; 10265 10266 # This is an error. 10267 -*) as_fn_error $? "unrecognized option: \`$1' 10268Try \`$0 --help' for more information." ;; 10269 10270 *) as_fn_append ac_config_targets " $1" 10271 ac_need_defaults=false ;; 10272 10273 esac 10274 shift 10275done 10276 10277ac_configure_extra_args= 10278 10279if $ac_cs_silent; then 10280 exec 6>/dev/null 10281 ac_configure_extra_args="$ac_configure_extra_args --silent" 10282fi 10283 10284_ACEOF 10285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10286if \$ac_cs_recheck; then 10287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10288 shift 10289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10290 CONFIG_SHELL='$SHELL' 10291 export CONFIG_SHELL 10292 exec "\$@" 10293fi 10294 10295_ACEOF 10296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10297exec 5>>config.log 10298{ 10299 echo 10300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10301## Running $as_me. ## 10302_ASBOX 10303 $as_echo "$ac_log" 10304} >&5 10305 10306_ACEOF 10307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10308_ACEOF 10309 10310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10311 10312# Handling of arguments. 10313for ac_config_target in $ac_config_targets 10314do 10315 case $ac_config_target in 10316 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10317 "$mymakefile") CONFIG_FILES="$CONFIG_FILES $mymakefile" ;; 10318 "regina-config") CONFIG_FILES="$CONFIG_FILES regina-config" ;; 10319 "rxstack.init.d") CONFIG_FILES="$CONFIG_FILES rxstack.init.d" ;; 10320 "libregina.pc") CONFIG_FILES="$CONFIG_FILES libregina.pc" ;; 10321 10322 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10323 esac 10324done 10325 10326 10327# If the user did not use the arguments to specify the items to instantiate, 10328# then the envvar interface is used. Set only those that are not. 10329# We use the long form for the default assignment because of an extremely 10330# bizarre bug on SunOS 4.1.3. 10331if $ac_need_defaults; then 10332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10334fi 10335 10336# Have a temporary directory for convenience. Make it in the build tree 10337# simply because there is no reason against having it here, and in addition, 10338# creating and moving files from /tmp can sometimes cause problems. 10339# Hook for its removal unless debugging. 10340# Note that there is a small window in which the directory will not be cleaned: 10341# after its creation but before its name has been assigned to `$tmp'. 10342$debug || 10343{ 10344 tmp= ac_tmp= 10345 trap 'exit_status=$? 10346 : "${ac_tmp:=$tmp}" 10347 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10348' 0 10349 trap 'as_fn_exit 1' 1 2 13 15 10350} 10351# Create a (secure) tmp directory for tmp files. 10352 10353{ 10354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10355 test -d "$tmp" 10356} || 10357{ 10358 tmp=./conf$$-$RANDOM 10359 (umask 077 && mkdir "$tmp") 10360} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10361ac_tmp=$tmp 10362 10363# Set up the scripts for CONFIG_FILES section. 10364# No need to generate them if there are no CONFIG_FILES. 10365# This happens for instance with `./config.status config.h'. 10366if test -n "$CONFIG_FILES"; then 10367 10368 10369ac_cr=`echo X | tr X '\015'` 10370# On cygwin, bash can eat \r inside `` if the user requested igncr. 10371# But we know of no other shell where ac_cr would be empty at this 10372# point, so we can use a bashism as a fallback. 10373if test "x$ac_cr" = x; then 10374 eval ac_cr=\$\'\\r\' 10375fi 10376ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10377if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10378 ac_cs_awk_cr='\\r' 10379else 10380 ac_cs_awk_cr=$ac_cr 10381fi 10382 10383echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10384_ACEOF 10385 10386 10387{ 10388 echo "cat >conf$$subs.awk <<_ACEOF" && 10389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10390 echo "_ACEOF" 10391} >conf$$subs.sh || 10392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10393ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10394ac_delim='%!_!# ' 10395for ac_last_try in false false false false false :; do 10396 . ./conf$$subs.sh || 10397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10398 10399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10400 if test $ac_delim_n = $ac_delim_num; then 10401 break 10402 elif $ac_last_try; then 10403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10404 else 10405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10406 fi 10407done 10408rm -f conf$$subs.sh 10409 10410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10411cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10412_ACEOF 10413sed -n ' 10414h 10415s/^/S["/; s/!.*/"]=/ 10416p 10417g 10418s/^[^!]*!// 10419:repl 10420t repl 10421s/'"$ac_delim"'$// 10422t delim 10423:nl 10424h 10425s/\(.\{148\}\)..*/\1/ 10426t more1 10427s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10428p 10429n 10430b repl 10431:more1 10432s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10433p 10434g 10435s/.\{148\}// 10436t nl 10437:delim 10438h 10439s/\(.\{148\}\)..*/\1/ 10440t more2 10441s/["\\]/\\&/g; s/^/"/; s/$/"/ 10442p 10443b 10444:more2 10445s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10446p 10447g 10448s/.\{148\}// 10449t delim 10450' <conf$$subs.awk | sed ' 10451/^[^""]/{ 10452 N 10453 s/\n// 10454} 10455' >>$CONFIG_STATUS || ac_write_fail=1 10456rm -f conf$$subs.awk 10457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10458_ACAWK 10459cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10460 for (key in S) S_is_set[key] = 1 10461 FS = "" 10462 10463} 10464{ 10465 line = $ 0 10466 nfields = split(line, field, "@") 10467 substed = 0 10468 len = length(field[1]) 10469 for (i = 2; i < nfields; i++) { 10470 key = field[i] 10471 keylen = length(key) 10472 if (S_is_set[key]) { 10473 value = S[key] 10474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10475 len += length(value) + length(field[++i]) 10476 substed = 1 10477 } else 10478 len += 1 + keylen 10479 } 10480 10481 print line 10482} 10483 10484_ACAWK 10485_ACEOF 10486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10487if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10489else 10490 cat 10491fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10492 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10493_ACEOF 10494 10495# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10496# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10497# trailing colons and then remove the whole line if VPATH becomes empty 10498# (actually we leave an empty line to preserve line numbers). 10499if test "x$srcdir" = x.; then 10500 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10501h 10502s/// 10503s/^/:/ 10504s/[ ]*$/:/ 10505s/:\$(srcdir):/:/g 10506s/:\${srcdir}:/:/g 10507s/:@srcdir@:/:/g 10508s/^:*// 10509s/:*$// 10510x 10511s/\(=[ ]*\).*/\1/ 10512G 10513s/\n// 10514s/^[^=]*=[ ]*$// 10515}' 10516fi 10517 10518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10519fi # test -n "$CONFIG_FILES" 10520 10521# Set up the scripts for CONFIG_HEADERS section. 10522# No need to generate them if there are no CONFIG_HEADERS. 10523# This happens for instance with `./config.status Makefile'. 10524if test -n "$CONFIG_HEADERS"; then 10525cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10526BEGIN { 10527_ACEOF 10528 10529# Transform confdefs.h into an awk script `defines.awk', embedded as 10530# here-document in config.status, that substitutes the proper values into 10531# config.h.in to produce config.h. 10532 10533# Create a delimiter string that does not exist in confdefs.h, to ease 10534# handling of long lines. 10535ac_delim='%!_!# ' 10536for ac_last_try in false false :; do 10537 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10538 if test -z "$ac_tt"; then 10539 break 10540 elif $ac_last_try; then 10541 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10542 else 10543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10544 fi 10545done 10546 10547# For the awk script, D is an array of macro values keyed by name, 10548# likewise P contains macro parameters if any. Preserve backslash 10549# newline sequences. 10550 10551ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10552sed -n ' 10553s/.\{148\}/&'"$ac_delim"'/g 10554t rset 10555:rset 10556s/^[ ]*#[ ]*define[ ][ ]*/ / 10557t def 10558d 10559:def 10560s/\\$// 10561t bsnl 10562s/["\\]/\\&/g 10563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10564D["\1"]=" \3"/p 10565s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10566d 10567:bsnl 10568s/["\\]/\\&/g 10569s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10570D["\1"]=" \3\\\\\\n"\\/p 10571t cont 10572s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10573t cont 10574d 10575:cont 10576n 10577s/.\{148\}/&'"$ac_delim"'/g 10578t clear 10579:clear 10580s/\\$// 10581t bsnlc 10582s/["\\]/\\&/g; s/^/"/; s/$/"/p 10583d 10584:bsnlc 10585s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10586b cont 10587' <confdefs.h | sed ' 10588s/'"$ac_delim"'/"\\\ 10589"/g' >>$CONFIG_STATUS || ac_write_fail=1 10590 10591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10592 for (key in D) D_is_set[key] = 1 10593 FS = "" 10594} 10595/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10596 line = \$ 0 10597 split(line, arg, " ") 10598 if (arg[1] == "#") { 10599 defundef = arg[2] 10600 mac1 = arg[3] 10601 } else { 10602 defundef = substr(arg[1], 2) 10603 mac1 = arg[2] 10604 } 10605 split(mac1, mac2, "(") #) 10606 macro = mac2[1] 10607 prefix = substr(line, 1, index(line, defundef) - 1) 10608 if (D_is_set[macro]) { 10609 # Preserve the white space surrounding the "#". 10610 print prefix "define", macro P[macro] D[macro] 10611 next 10612 } else { 10613 # Replace #undef with comments. This is necessary, for example, 10614 # in the case of _POSIX_SOURCE, which is predefined and required 10615 # on some systems where configure will not decide to define it. 10616 if (defundef == "undef") { 10617 print "/*", prefix defundef, macro, "*/" 10618 next 10619 } 10620 } 10621} 10622{ print } 10623_ACAWK 10624_ACEOF 10625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10626 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10627fi # test -n "$CONFIG_HEADERS" 10628 10629 10630eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 10631shift 10632for ac_tag 10633do 10634 case $ac_tag in 10635 :[FHLC]) ac_mode=$ac_tag; continue;; 10636 esac 10637 case $ac_mode$ac_tag in 10638 :[FHL]*:*);; 10639 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10640 :[FH]-) ac_tag=-:-;; 10641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10642 esac 10643 ac_save_IFS=$IFS 10644 IFS=: 10645 set x $ac_tag 10646 IFS=$ac_save_IFS 10647 shift 10648 ac_file=$1 10649 shift 10650 10651 case $ac_mode in 10652 :L) ac_source=$1;; 10653 :[FH]) 10654 ac_file_inputs= 10655 for ac_f 10656 do 10657 case $ac_f in 10658 -) ac_f="$ac_tmp/stdin";; 10659 *) # Look for the file first in the build tree, then in the source tree 10660 # (if the path is not absolute). The absolute path cannot be DOS-style, 10661 # because $ac_f cannot contain `:'. 10662 test -f "$ac_f" || 10663 case $ac_f in 10664 [\\/$]*) false;; 10665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10666 esac || 10667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10668 esac 10669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10670 as_fn_append ac_file_inputs " '$ac_f'" 10671 done 10672 10673 # Let's still pretend it is `configure' which instantiates (i.e., don't 10674 # use $as_me), people would be surprised to read: 10675 # /* config.h. Generated by config.status. */ 10676 configure_input='Generated from '` 10677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10678 `' by configure.' 10679 if test x"$ac_file" != x-; then 10680 configure_input="$ac_file. $configure_input" 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10682$as_echo "$as_me: creating $ac_file" >&6;} 10683 fi 10684 # Neutralize special characters interpreted by sed in replacement strings. 10685 case $configure_input in #( 10686 *\&* | *\|* | *\\* ) 10687 ac_sed_conf_input=`$as_echo "$configure_input" | 10688 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10689 *) ac_sed_conf_input=$configure_input;; 10690 esac 10691 10692 case $ac_tag in 10693 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10695 esac 10696 ;; 10697 esac 10698 10699 ac_dir=`$as_dirname -- "$ac_file" || 10700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10701 X"$ac_file" : 'X\(//\)[^/]' \| \ 10702 X"$ac_file" : 'X\(//\)$' \| \ 10703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10704$as_echo X"$ac_file" | 10705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10706 s//\1/ 10707 q 10708 } 10709 /^X\(\/\/\)[^/].*/{ 10710 s//\1/ 10711 q 10712 } 10713 /^X\(\/\/\)$/{ 10714 s//\1/ 10715 q 10716 } 10717 /^X\(\/\).*/{ 10718 s//\1/ 10719 q 10720 } 10721 s/.*/./; q'` 10722 as_dir="$ac_dir"; as_fn_mkdir_p 10723 ac_builddir=. 10724 10725case "$ac_dir" in 10726.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10727*) 10728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10729 # A ".." for each directory in $ac_dir_suffix. 10730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10731 case $ac_top_builddir_sub in 10732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10734 esac ;; 10735esac 10736ac_abs_top_builddir=$ac_pwd 10737ac_abs_builddir=$ac_pwd$ac_dir_suffix 10738# for backward compatibility: 10739ac_top_builddir=$ac_top_build_prefix 10740 10741case $srcdir in 10742 .) # We are building in place. 10743 ac_srcdir=. 10744 ac_top_srcdir=$ac_top_builddir_sub 10745 ac_abs_top_srcdir=$ac_pwd ;; 10746 [\\/]* | ?:[\\/]* ) # Absolute name. 10747 ac_srcdir=$srcdir$ac_dir_suffix; 10748 ac_top_srcdir=$srcdir 10749 ac_abs_top_srcdir=$srcdir ;; 10750 *) # Relative name. 10751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10752 ac_top_srcdir=$ac_top_build_prefix$srcdir 10753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10754esac 10755ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10756 10757 10758 case $ac_mode in 10759 :F) 10760 # 10761 # CONFIG_FILE 10762 # 10763 10764_ACEOF 10765 10766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10767# If the template does not know about datarootdir, expand it. 10768# FIXME: This hack should be removed a few years after 2.60. 10769ac_datarootdir_hack=; ac_datarootdir_seen= 10770ac_sed_dataroot=' 10771/datarootdir/ { 10772 p 10773 q 10774} 10775/@datadir@/p 10776/@docdir@/p 10777/@infodir@/p 10778/@localedir@/p 10779/@mandir@/p' 10780case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10781*datarootdir*) ac_datarootdir_seen=yes;; 10782*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10784$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10785_ACEOF 10786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10787 ac_datarootdir_hack=' 10788 s&@datadir@&$datadir&g 10789 s&@docdir@&$docdir&g 10790 s&@infodir@&$infodir&g 10791 s&@localedir@&$localedir&g 10792 s&@mandir@&$mandir&g 10793 s&\\\${datarootdir}&$datarootdir&g' ;; 10794esac 10795_ACEOF 10796 10797# Neutralize VPATH when `$srcdir' = `.'. 10798# Shell code in configure.ac might set extrasub. 10799# FIXME: do we really want to maintain this feature? 10800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10801ac_sed_extra="$ac_vpsub 10802$extrasub 10803_ACEOF 10804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10805:t 10806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10807s|@configure_input@|$ac_sed_conf_input|;t t 10808s&@top_builddir@&$ac_top_builddir_sub&;t t 10809s&@top_build_prefix@&$ac_top_build_prefix&;t t 10810s&@srcdir@&$ac_srcdir&;t t 10811s&@abs_srcdir@&$ac_abs_srcdir&;t t 10812s&@top_srcdir@&$ac_top_srcdir&;t t 10813s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10814s&@builddir@&$ac_builddir&;t t 10815s&@abs_builddir@&$ac_abs_builddir&;t t 10816s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10817$ac_datarootdir_hack 10818" 10819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10821 10822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10825 "$ac_tmp/out"`; test -z "$ac_out"; } && 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10827which seems to be undefined. Please make sure it is defined" >&5 10828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10829which seems to be undefined. Please make sure it is defined" >&2;} 10830 10831 rm -f "$ac_tmp/stdin" 10832 case $ac_file in 10833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10835 esac \ 10836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10837 ;; 10838 :H) 10839 # 10840 # CONFIG_HEADER 10841 # 10842 if test x"$ac_file" != x-; then 10843 { 10844 $as_echo "/* $configure_input */" \ 10845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10846 } >"$ac_tmp/config.h" \ 10847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10850$as_echo "$as_me: $ac_file is unchanged" >&6;} 10851 else 10852 rm -f "$ac_file" 10853 mv "$ac_tmp/config.h" "$ac_file" \ 10854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10855 fi 10856 else 10857 $as_echo "/* $configure_input */" \ 10858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10859 || as_fn_error $? "could not create -" "$LINENO" 5 10860 fi 10861 ;; 10862 10863 10864 esac 10865 10866done # for ac_tag 10867 10868 10869as_fn_exit 0 10870_ACEOF 10871ac_clean_files=$ac_clean_files_save 10872 10873test $ac_write_fail = 0 || 10874 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10875 10876 10877# configure is writing to config.log, and then calls config.status. 10878# config.status does its own redirection, appending to config.log. 10879# Unfortunately, on DOS this fails, as config.log is still kept open 10880# by configure, so config.status won't be able to write to it; its 10881# output is simply discarded. So we exec the FD to /dev/null, 10882# effectively closing config.log, so it can be properly (re)opened and 10883# appended to by config.status. When coming back to configure, we 10884# need to make the FD available again. 10885if test "$no_create" != yes; then 10886 ac_cs_success=: 10887 ac_config_status_args= 10888 test "$silent" = yes && 10889 ac_config_status_args="$ac_config_status_args --quiet" 10890 exec 5>/dev/null 10891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10892 exec 5>>config.log 10893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10894 # would make configure fail if this is the last instruction. 10895 $ac_cs_success || as_fn_exit 1 10896fi 10897if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10899$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10900fi 10901 10902chmod 755 regina-config 10903echo 10904echo "Regina has now been configured with the following options:" 10905echo 10906if test "x$SHL_TARGETS" = "x"; then 10907 echo " Dynamic Loading Support: none" 10908else 10909 echo " Dynamic Loading Support: supported. Extra components: $SHL_TARGETS" 10910fi 10911if test "$with_dlfcnincdir" != no ; then 10912 echo " dlfcn headers in: $with_dlfcnincdir" 10913fi 10914if test "$with_dlfcnlibdir" != no ; then 10915 echo " dlfcn libraries in: $with_dlfcnlibdir" 10916fi 10917 10918myopts="${bitflag}BIT" 10919if test "$with_debug" = yes ; then 10920 myopts="$myopts DEBUG" 10921fi 10922if test "$with_purify" = yes ; then 10923 myopts="$myopts PURIFY" 10924fi 10925if test "$with_efence" = yes; then 10926 myopts="$myopts EFENCE" 10927fi 10928if test "$with_orexx_bc" = yes; then 10929 myopts="$myopts OREXX_BINARY" 10930fi 10931if test "$with_gci" = yes; then 10932 myopts="$myopts GCI" 10933fi 10934if test "$with_flists" = no; then 10935 myopts="$myopts NO_FLISTS" 10936fi 10937if test "$with_socket" = no; then 10938 myopts="$myopts" 10939else 10940 myopts="$myopts SOCKET=$with_socket" 10941fi 10942 10943if test "$build_static" = "yes"; then 10944 myfuncs="" 10945 if test "$with_testpackage" = "yes"; then 10946 myfuncs="$myfuncs test" 10947 fi 10948 if test "$with_regutil" = "yes"; then 10949 myfuncs="$myfuncs regutil" 10950 fi 10951 if test "$with_rexxcurses" = "yes"; then 10952 myfuncs="$myfuncs rexxcurses" 10953 fi 10954 if test "$with_rexxtk" = "yes"; then 10955 myfuncs="$myfuncs rexxtk" 10956 fi 10957 if test "$with_rexxgd" = "yes"; then 10958 myfuncs="$myfuncs rexxgd" 10959 fi 10960 if test "$with_rexxcurl" = "yes"; then 10961 myfuncs="$myfuncs rexxcurl" 10962 fi 10963 if test "$with_rexxsql" = "yes"; then 10964 myfuncs="$myfuncs rexxsql" 10965 fi 10966 if test "$with_rexxeec" = "yes"; then 10967 myfuncs="$myfuncs rexxeec" 10968 fi 10969 if test "$with_rexxisam" = "yes"; then 10970 myfuncs="$myfuncs rexxisam" 10971 fi 10972 if test "$with_rxsock" = "yes"; then 10973 myfuncs="$myfuncs rxsock" 10974 fi 10975 if test "$with_rexxdw" = "yes"; then 10976 myfuncs="$myfuncs rexxdw" 10977 fi 10978 if test "$with_rexxcsv" = "yes"; then 10979 myfuncs="$myfuncs rexxcsv" 10980 fi 10981 if test "$with_rexxpdf" = "yes"; then 10982 myfuncs="$myfuncs rexxpdf" 10983 fi 10984 echo " Static Loaded Packages: $myfuncs" 10985fi 10986 10987if test "$on_beos" = yes; then 10988 bindir="/boot/home/config/bin" 10989 libdir="/boot/home/config/lib" 10990fi 10991 10992echo " Build options: $myopts" 10993echo " binaries will be installed in: $bindir" 10994if test "x$binarybitprefix" = "x32"; then 10995 echo " binaries will have '32' appended to them. eg rexx32, regina32" 10996fi 10997echo " libraries will be installed in: $libdir" 10998echo " addons will be installed in: $addonsdir" 10999echo " {prefix}: $prefix" 11000echo " {exec_prefix}: $exec_prefix" 11001echo " RPM topdir: $RPMTOPDIR" 11002echo 11003echo "To build the Regina binaries, and dynamically loadable libraries, type 'make'" 11004echo "To install Regina in the above directories, type 'make install'" 11005echo 11006